Skip to content

Commit

Permalink
Dimanche
Browse files Browse the repository at this point in the history
  • Loading branch information
ledoux committed May 31, 2015
1 parent 83b4f40 commit f285995
Show file tree
Hide file tree
Showing 66 changed files with 2,816 additions and 1,585 deletions.
17 changes: 17 additions & 0 deletions Coffeelogy/Angularer/src.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

phonecatApp = angular.module "phonecatApp", []

phonecatApp.controller "PhoneListCtrl",
($scope)->
$scope.phones = [
name: "Nexus S",
snippet: "Fast just got faster with Nexus S.",
name: "Motorola XOOM™ with Wi-Fi",
snippet: "The Next, Next Generation tablet.",
name: "MOTOROLA XOOM™",
snippet: "The Next, Next Generation tablet."
]

console.log(
{name:3, surname:{name:4,surname: 'u'}}
)
25 changes: 25 additions & 0 deletions Coffeelogy/Angularer/src.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

100 changes: 87 additions & 13 deletions Coffeelogy/Coffeelogy.coffee
Original file line number Diff line number Diff line change
@@ -1,16 +1,90 @@
phonecatApp = angular.module "phonecatApp", []

phonecatApp.controller "PhoneListCtrl",
($scope)->
$scope.phones = [
name: "Nexus S",
snippet: "Fast just got faster with Nexus S.",
name: "Motorola XOOM™ with Wi-Fi",
snippet: "The Next, Next Generation tablet.",
name: "MOTOROLA XOOM™",
snippet: "The Next, Next Generation tablet."
]
###/#################/#
# Define a require
# server or client side working
###/###

#init
SYS = {}

#Check
if typeof window!="undefined"

#debug
###
console.log(
"We are client side"
)
###

#set
SYS.SideStr = "client"

#set
exports = {}

#alias
run = (_ScriptStr,_BackFunction) ->
require(
[_ScriptStr],
->
#first extend
_.extend(SYS,exports)

#call
_BackFunction()
)



else

#debug
###
console.log(
"We are server side"
)
###

#require
SYS._ = require("underscore")

#set
SYS.SideStr = "server"

run = (_ScriptStr,_BackFunction) ->

#require
ModuleObject = require(_ScriptStr)

#debug
###
console.log(
"ModuleObject is \n",
ModuleObject
)
###

#extend
SYS._.extend(SYS,ModuleObject)

#back call like...
_BackFunction()

#debug
console.log(
{name:3, surname:{name:4,surname: 'u'}}
"************************\n"
"Welcome to Coffeelogy \n",
"We are " + SYS.SideStr + " side ! \n",
#"require function is ",
#require
)

#require
run(
"./Teamer/src.js",
->
console.log(
"HHHH\n",
SYS.TeamerClass
)
)
72 changes: 50 additions & 22 deletions Coffeelogy/Coffeelogy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
Manager Class
###

#debug
console.log(
"import Manager \n"
)

#require
Teamer = require('../Teamer/Teamer.js')
Teamer = require('../Teamer/src.js')

#define
class exports.ManagerClass extends Teamer.TeamerClass
class ManagerClass extends Teamer.TeamerClass

#constructor:
ManagementObject = {}
Expand Down Expand Up @@ -35,3 +40,8 @@ class exports.ManagerClass extends Teamer.TeamerClass
#return
return this

#Check
if GLOBAL.SideStr == 'server'

#export
exports.ManagerClass = ManagerClass
12 changes: 9 additions & 3 deletions Coffeelogy/Manager/Manager.js → Coffeelogy/Manager/src.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions Coffeelogy/Reacter/src.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

phonecatApp = angular.module "phonecatApp", []

phonecatApp.controller "PhoneListCtrl",
($scope)->
$scope.phones = [
name: "Nexus S",
snippet: "Fast just got faster with Nexus S.",
name: "Motorola XOOM™ with Wi-Fi",
snippet: "The Next, Next Generation tablet.",
name: "MOTOROLA XOOM™",
snippet: "The Next, Next Generation tablet."
]

console.log(
{name:3, surname:{name:4,surname: 'u'}}
)
12 changes: 12 additions & 0 deletions Coffeelogy/Teamer/Teamer.coffee → Coffeelogy/Teamer/src.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@
Teamer Class
###

#Check
if typeof window == "undefined"
SideStr = "server"
else
SideStr = "client"

#debug
console.log(
"import Teamer \n",
"Side is "+SideStr
)

#define
class exports.TeamerClass

Expand Down
11 changes: 10 additions & 1 deletion Coffeelogy/Teamer/Teamer.js → Coffeelogy/Teamer/src.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Coffeelogy/bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"bootstrap": "~3.1.1",
"angular-route": "1.3.x",
"angular-resource": "1.3.x",
"angular-animate": "1.3.x"
"angular-animate": "1.3.x",
"underscore":"1.8.x"
}
}
19 changes: 16 additions & 3 deletions Coffeelogy/index.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,28 @@
<!doctype html>

<!--
<html lang="en" ng-app="phonecatApp">
-->


<head>
<meta charset="utf-8">
<title>My HTML File</title>
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css">
<link rel="stylesheet" href="css/app.css">
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular/angular.min.js"></script>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="require.min.js"></script>
<script src="bower_components/underscore/underscore-min.js"></script>
<script src="Coffeelogy.js"></script>
</head>

<body>

Salut

</body>

<!--
<body ng-controller="PhoneListCtrl">
<table border="1">
Expand Down Expand Up @@ -43,4 +55,5 @@
</table>
</body>
</body>
-->
5 changes: 0 additions & 5 deletions Coffeelogy/main.js

This file was deleted.

Loading

0 comments on commit f285995

Please sign in to comment.