SlideShare a Scribd company logo
1 of 32
var bitlist, kids, singers, song;

song = ["do", "re", "mi", "fa", "so"]
                                            song = ["do", "re", "mi", "fa", "so"];

singers = {Jagger: "Rock", Elvis: "Roll"}
                                            singers = {
                                               Jagger: "Rock",
bitlist   = [
                                               Elvis: "Roll"
  1, 0,   1
                                            };
  0, 0,   1
  1, 1,   0
                                            bitlist = [1, 0, 1, 0, 0, 1, 1, 1, 0];
]

                                            kids = {
kids =
                                               brother: {
  brother:
                                                  name: "Max",
    name: "Max"
                                                  age: 11
    age: 11
                                               },
  sister:
                                               sister: {
    name: "Ida"
                                                  name: "Ida",
    age: 9
                                                  age: 9
                                               }
                                            };
var cube, square;

                                square = function(x) {
                                   return x * x;
square = (x) -> x * x
                                };
cube   = (x) -> square(x) * x
                                cube = function(x) {
                                   return square(x) * x;
                                };
var Animal, Horse, Snake, sam, tom;

                                         // js


                                         Animal = (function() {
                                           function Animal(name) {
                                              this.name = name;
                                           }
                                           Animal.prototype.move =
                                         function(meters) {
                                              return alert(this.name + (" moved " +
                                         meters + "m."));
class Animal                               };
  constructor: (@name) ->                  return Animal;
                                         })();
  move: (meters) ->
    alert @name + " moved #{meters}m."   Snake = (function() {
                                           __extends(Snake, Animal);
class Snake extends Animal                 function Snake() {
  move: ->
    alert "Slithering..."                Snake.__super__.constructor.apply(this,
    super 5                              arguments);
                                           }
                                           Snake.prototype.move = function() {
                                              alert("Slithering...");
                                              return
                                         Snake.__super__.move.call(this, 5);
                                           };
                                           return Snake;
                                         })();
enchant.Class.create(enchant.Scene, {
class SceneMain extends enchant.Scene     initialize: function() {
  constructor: () ->                        enchant.Scene.call(this);
    super()                               }
                                        });
var constructor = function() {
 __extends = function(child, parent) {      if (this instanceof constructor) {
   for (var key in parent) {                   constructor.prototype.initialize.apply(this
     if (__hasProp.call(parent, key))       } else {
       child[key] = parent[key];               return new constructor();
   }                                        }
   function ctor() {                     };
     this.constructor = child;           constructor.prototype = Object.create(superclas
   }                                     constructor.prototype.constructor = constructor
   ctor.prototype = parent.prototype;    if (constructor.prototype.initialize == null) {
   child.prototype = new ctor;              constructor.prototype.initialize = function()
   child.__super__ = parent.prototype;         superclass.apply(this, arguments);
   return child;                            };
};                                       }
                                         return constructor;
var Hoge = enchant.Class.create({
                        name: {
class Hoge
                          get: function() {
  name:
                            return "tom";
    get: () ->
                          }
      "tom"
                        }
                      });
hoge = new Hoge
hoge.name // Object
                      var hoge = new Hoge();
                      hoge.name; // “tom”
!
Coffee Scriptでenchant.js
Coffee Scriptでenchant.js

More Related Content

What's hot

The secrets of inverse brogramming
The secrets of inverse brogrammingThe secrets of inverse brogramming
The secrets of inverse brogrammingRichie Cotton
 
What can be done with Java, but should better be done with Erlang (@pavlobaron)
What can be done with Java, but should better be done with Erlang (@pavlobaron)What can be done with Java, but should better be done with Erlang (@pavlobaron)
What can be done with Java, but should better be done with Erlang (@pavlobaron)Pavlo Baron
 
JavaOne 2013 - Clojure for Java Developers
JavaOne 2013 - Clojure for Java DevelopersJavaOne 2013 - Clojure for Java Developers
JavaOne 2013 - Clojure for Java DevelopersJan Kronquist
 
The Macronomicon
The MacronomiconThe Macronomicon
The MacronomiconMike Fogus
 
An Exploration of the Formal Properties of PromQL
An Exploration of the Formal Properties of PromQLAn Exploration of the Formal Properties of PromQL
An Exploration of the Formal Properties of PromQLBrian Brazil
 
Clojure for Java developers - Stockholm
Clojure for Java developers - StockholmClojure for Java developers - Stockholm
Clojure for Java developers - StockholmJan Kronquist
 
Scala - den smarta kusinen
Scala - den smarta kusinenScala - den smarta kusinen
Scala - den smarta kusinenRedpill Linpro
 
(map Clojure everyday-tasks)
(map Clojure everyday-tasks)(map Clojure everyday-tasks)
(map Clojure everyday-tasks)Jacek Laskowski
 
Continuation Passing Style and Macros in Clojure - Jan 2012
Continuation Passing Style and Macros in Clojure - Jan 2012Continuation Passing Style and Macros in Clojure - Jan 2012
Continuation Passing Style and Macros in Clojure - Jan 2012Leonardo Borges
 
Turtle Graphics in Groovy
Turtle Graphics in GroovyTurtle Graphics in Groovy
Turtle Graphics in GroovyJim Driscoll
 
Linguistic Symbiosis between Actors and Threads
Linguistic Symbiosis between Actors and ThreadsLinguistic Symbiosis between Actors and Threads
Linguistic Symbiosis between Actors and ThreadsESUG
 
Scala - fra newbie til ninja på en time
Scala - fra newbie til ninja på en timeScala - fra newbie til ninja på en time
Scala - fra newbie til ninja på en timekarianneberg
 
The Ring programming language version 1.10 book - Part 45 of 212
The Ring programming language version 1.10 book - Part 45 of 212The Ring programming language version 1.10 book - Part 45 of 212
The Ring programming language version 1.10 book - Part 45 of 212Mahmoud Samir Fayed
 
Functional Patterns for the non-mathematician
Functional Patterns for the non-mathematicianFunctional Patterns for the non-mathematician
Functional Patterns for the non-mathematicianBrian Lonsdorf
 

What's hot (20)

The Groovy Way
The Groovy WayThe Groovy Way
The Groovy Way
 
ScalaBlitz
ScalaBlitzScalaBlitz
ScalaBlitz
 
Introduction kot iin
Introduction kot iinIntroduction kot iin
Introduction kot iin
 
The secrets of inverse brogramming
The secrets of inverse brogrammingThe secrets of inverse brogramming
The secrets of inverse brogramming
 
Introduction to Scala
Introduction to ScalaIntroduction to Scala
Introduction to Scala
 
What can be done with Java, but should better be done with Erlang (@pavlobaron)
What can be done with Java, but should better be done with Erlang (@pavlobaron)What can be done with Java, but should better be done with Erlang (@pavlobaron)
What can be done with Java, but should better be done with Erlang (@pavlobaron)
 
JavaOne 2013 - Clojure for Java Developers
JavaOne 2013 - Clojure for Java DevelopersJavaOne 2013 - Clojure for Java Developers
JavaOne 2013 - Clojure for Java Developers
 
The Macronomicon
The MacronomiconThe Macronomicon
The Macronomicon
 
An Exploration of the Formal Properties of PromQL
An Exploration of the Formal Properties of PromQLAn Exploration of the Formal Properties of PromQL
An Exploration of the Formal Properties of PromQL
 
Clojure for Java developers - Stockholm
Clojure for Java developers - StockholmClojure for Java developers - Stockholm
Clojure for Java developers - Stockholm
 
Scala - den smarta kusinen
Scala - den smarta kusinenScala - den smarta kusinen
Scala - den smarta kusinen
 
(map Clojure everyday-tasks)
(map Clojure everyday-tasks)(map Clojure everyday-tasks)
(map Clojure everyday-tasks)
 
ddd+scala
ddd+scaladdd+scala
ddd+scala
 
Continuation Passing Style and Macros in Clojure - Jan 2012
Continuation Passing Style and Macros in Clojure - Jan 2012Continuation Passing Style and Macros in Clojure - Jan 2012
Continuation Passing Style and Macros in Clojure - Jan 2012
 
Turtle Graphics in Groovy
Turtle Graphics in GroovyTurtle Graphics in Groovy
Turtle Graphics in Groovy
 
Linguistic Symbiosis between Actors and Threads
Linguistic Symbiosis between Actors and ThreadsLinguistic Symbiosis between Actors and Threads
Linguistic Symbiosis between Actors and Threads
 
Millionways
MillionwaysMillionways
Millionways
 
Scala - fra newbie til ninja på en time
Scala - fra newbie til ninja på en timeScala - fra newbie til ninja på en time
Scala - fra newbie til ninja på en time
 
The Ring programming language version 1.10 book - Part 45 of 212
The Ring programming language version 1.10 book - Part 45 of 212The Ring programming language version 1.10 book - Part 45 of 212
The Ring programming language version 1.10 book - Part 45 of 212
 
Functional Patterns for the non-mathematician
Functional Patterns for the non-mathematicianFunctional Patterns for the non-mathematician
Functional Patterns for the non-mathematician
 

Similar to Coffee Scriptでenchant.js

FITC CoffeeScript 101
FITC CoffeeScript 101FITC CoffeeScript 101
FITC CoffeeScript 101Faisal Abid
 
CoffeeScript
CoffeeScriptCoffeeScript
CoffeeScriptNone
 
Programming To Patterns
Programming To PatternsProgramming To Patterns
Programming To Patternsguest2ee5e2c
 
Ian 20150116 java script oop
Ian 20150116 java script oopIan 20150116 java script oop
Ian 20150116 java script oopLearningTech
 
TypeScript Introduction
TypeScript IntroductionTypeScript Introduction
TypeScript IntroductionDmitry Sheiko
 
Javascript Uncommon Programming
Javascript Uncommon ProgrammingJavascript Uncommon Programming
Javascript Uncommon Programmingjeffz
 
Javascript best practices
Javascript best practicesJavascript best practices
Javascript best practicesManav Gupta
 
Internal Project: Under the Hood
Internal Project: Under the HoodInternal Project: Under the Hood
Internal Project: Under the HoodVladik Khononov
 
Jscex: Write Sexy JavaScript (中文)
Jscex: Write Sexy JavaScript (中文)Jscex: Write Sexy JavaScript (中文)
Jscex: Write Sexy JavaScript (中文)jeffz
 
2.1 recap from-day_one
2.1 recap from-day_one2.1 recap from-day_one
2.1 recap from-day_onefuturespective
 
Object Oriented JavaScript
Object Oriented JavaScriptObject Oriented JavaScript
Object Oriented JavaScriptJulie Iskander
 
深入浅出Jscex
深入浅出Jscex深入浅出Jscex
深入浅出Jscexjeffz
 
An Introduction to Scala (2014)
An Introduction to Scala (2014)An Introduction to Scala (2014)
An Introduction to Scala (2014)William Narmontas
 
ECMAScript 6 new features
ECMAScript 6 new featuresECMAScript 6 new features
ECMAScript 6 new featuresGephenSG
 
Google Guava for cleaner code
Google Guava for cleaner codeGoogle Guava for cleaner code
Google Guava for cleaner codeMite Mitreski
 

Similar to Coffee Scriptでenchant.js (20)

FITC CoffeeScript 101
FITC CoffeeScript 101FITC CoffeeScript 101
FITC CoffeeScript 101
 
CoffeeScript
CoffeeScriptCoffeeScript
CoffeeScript
 
CoffeeScript
CoffeeScriptCoffeeScript
CoffeeScript
 
Programming To Patterns
Programming To PatternsProgramming To Patterns
Programming To Patterns
 
Ian 20150116 java script oop
Ian 20150116 java script oopIan 20150116 java script oop
Ian 20150116 java script oop
 
TypeScript Introduction
TypeScript IntroductionTypeScript Introduction
TypeScript Introduction
 
Scala 2013 review
Scala 2013 reviewScala 2013 review
Scala 2013 review
 
Javascript Uncommon Programming
Javascript Uncommon ProgrammingJavascript Uncommon Programming
Javascript Uncommon Programming
 
Javascript best practices
Javascript best practicesJavascript best practices
Javascript best practices
 
Internal Project: Under the Hood
Internal Project: Under the HoodInternal Project: Under the Hood
Internal Project: Under the Hood
 
Jscex: Write Sexy JavaScript (中文)
Jscex: Write Sexy JavaScript (中文)Jscex: Write Sexy JavaScript (中文)
Jscex: Write Sexy JavaScript (中文)
 
2.1 recap from-day_one
2.1 recap from-day_one2.1 recap from-day_one
2.1 recap from-day_one
 
Object Oriented JavaScript
Object Oriented JavaScriptObject Oriented JavaScript
Object Oriented JavaScript
 
深入浅出Jscex
深入浅出Jscex深入浅出Jscex
深入浅出Jscex
 
Say It With Javascript
Say It With JavascriptSay It With Javascript
Say It With Javascript
 
An Introduction to Scala (2014)
An Introduction to Scala (2014)An Introduction to Scala (2014)
An Introduction to Scala (2014)
 
JS OO and Closures
JS OO and ClosuresJS OO and Closures
JS OO and Closures
 
Scala in practice
Scala in practiceScala in practice
Scala in practice
 
ECMAScript 6 new features
ECMAScript 6 new featuresECMAScript 6 new features
ECMAScript 6 new features
 
Google Guava for cleaner code
Google Guava for cleaner codeGoogle Guava for cleaner code
Google Guava for cleaner code
 

More from Naoyuki Totani

コミュニケーションから逆算するゲームデザイン
コミュニケーションから逆算するゲームデザインコミュニケーションから逆算するゲームデザイン
コミュニケーションから逆算するゲームデザインNaoyuki Totani
 
スプラトゥーン2、どう練習するのが良いか?意識と無意識の話
スプラトゥーン2、どう練習するのが良いか?意識と無意識の話スプラトゥーン2、どう練習するのが良いか?意識と無意識の話
スプラトゥーン2、どう練習するのが良いか?意識と無意識の話Naoyuki Totani
 
Live2DとCocos2d-xで恋愛ゲーム作ってみた
Live2DとCocos2d-xで恋愛ゲーム作ってみたLive2DとCocos2d-xで恋愛ゲーム作ってみた
Live2DとCocos2d-xで恋愛ゲーム作ってみたNaoyuki Totani
 
Cocos2d xゲームでuiテスト自動化
Cocos2d xゲームでuiテスト自動化Cocos2d xゲームでuiテスト自動化
Cocos2d xゲームでuiテスト自動化Naoyuki Totani
 
cocos2d-xを使った開発で効率よく多職種連携したい話
cocos2d-xを使った開発で効率よく多職種連携したい話cocos2d-xを使った開発で効率よく多職種連携したい話
cocos2d-xを使った開発で効率よく多職種連携したい話Naoyuki Totani
 
enchant.jsにおけるチーム開発手法
enchant.jsにおけるチーム開発手法enchant.jsにおけるチーム開発手法
enchant.jsにおけるチーム開発手法Naoyuki Totani
 

More from Naoyuki Totani (6)

コミュニケーションから逆算するゲームデザイン
コミュニケーションから逆算するゲームデザインコミュニケーションから逆算するゲームデザイン
コミュニケーションから逆算するゲームデザイン
 
スプラトゥーン2、どう練習するのが良いか?意識と無意識の話
スプラトゥーン2、どう練習するのが良いか?意識と無意識の話スプラトゥーン2、どう練習するのが良いか?意識と無意識の話
スプラトゥーン2、どう練習するのが良いか?意識と無意識の話
 
Live2DとCocos2d-xで恋愛ゲーム作ってみた
Live2DとCocos2d-xで恋愛ゲーム作ってみたLive2DとCocos2d-xで恋愛ゲーム作ってみた
Live2DとCocos2d-xで恋愛ゲーム作ってみた
 
Cocos2d xゲームでuiテスト自動化
Cocos2d xゲームでuiテスト自動化Cocos2d xゲームでuiテスト自動化
Cocos2d xゲームでuiテスト自動化
 
cocos2d-xを使った開発で効率よく多職種連携したい話
cocos2d-xを使った開発で効率よく多職種連携したい話cocos2d-xを使った開発で効率よく多職種連携したい話
cocos2d-xを使った開発で効率よく多職種連携したい話
 
enchant.jsにおけるチーム開発手法
enchant.jsにおけるチーム開発手法enchant.jsにおけるチーム開発手法
enchant.jsにおけるチーム開発手法
 

Recently uploaded

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Hyundai Motor Group
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 

Recently uploaded (20)

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 

Coffee Scriptでenchant.js

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18. var bitlist, kids, singers, song; song = ["do", "re", "mi", "fa", "so"] song = ["do", "re", "mi", "fa", "so"]; singers = {Jagger: "Rock", Elvis: "Roll"} singers = { Jagger: "Rock", bitlist = [ Elvis: "Roll" 1, 0, 1 }; 0, 0, 1 1, 1, 0 bitlist = [1, 0, 1, 0, 0, 1, 1, 1, 0]; ] kids = { kids = brother: { brother: name: "Max", name: "Max" age: 11 age: 11 }, sister: sister: { name: "Ida" name: "Ida", age: 9 age: 9 } };
  • 19. var cube, square; square = function(x) { return x * x; square = (x) -> x * x }; cube = (x) -> square(x) * x cube = function(x) { return square(x) * x; };
  • 20. var Animal, Horse, Snake, sam, tom; // js Animal = (function() { function Animal(name) { this.name = name; } Animal.prototype.move = function(meters) { return alert(this.name + (" moved " + meters + "m.")); class Animal }; constructor: (@name) -> return Animal; })(); move: (meters) -> alert @name + " moved #{meters}m." Snake = (function() { __extends(Snake, Animal); class Snake extends Animal function Snake() { move: -> alert "Slithering..." Snake.__super__.constructor.apply(this, super 5 arguments); } Snake.prototype.move = function() { alert("Slithering..."); return Snake.__super__.move.call(this, 5); }; return Snake; })();
  • 21.
  • 22.
  • 23.
  • 24.
  • 25. enchant.Class.create(enchant.Scene, { class SceneMain extends enchant.Scene initialize: function() { constructor: () -> enchant.Scene.call(this); super() } });
  • 26. var constructor = function() { __extends = function(child, parent) { if (this instanceof constructor) { for (var key in parent) { constructor.prototype.initialize.apply(this if (__hasProp.call(parent, key)) } else { child[key] = parent[key]; return new constructor(); } } function ctor() { }; this.constructor = child; constructor.prototype = Object.create(superclas } constructor.prototype.constructor = constructor ctor.prototype = parent.prototype; if (constructor.prototype.initialize == null) { child.prototype = new ctor; constructor.prototype.initialize = function() child.__super__ = parent.prototype; superclass.apply(this, arguments); return child; }; }; } return constructor;
  • 27. var Hoge = enchant.Class.create({ name: { class Hoge get: function() { name: return "tom"; get: () -> } "tom" } }); hoge = new Hoge hoge.name // Object var hoge = new Hoge(); hoge.name; // “tom”
  • 28.
  • 29.
  • 30. !

Editor's Notes

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n
  29. \n
  30. \n
  31. \n
  32. \n