-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ledoux
committed
May 31, 2015
1 parent
83b4f40
commit f285995
Showing
66 changed files
with
2,816 additions
and
1,585 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'}} | ||
) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) | ||
) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'}} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.