Code Monkey home page Code Monkey logo

gyosen's Introduction

Gyosen

三三\     /三
三三三\   /三三
 ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
 Nice boat.  ~~~
        ~~~~
   ィ†N==ュ  ~~~
  /互巫乢/"/L ~~
  Lェェェェェイ"/L|彡~
  「ロロロロロロロイL/|彡
 ∥ ̄ ̄ ̄7/ /彡
 ∥===/ /彡
`ミ\j_/ /彡
 ミヽ__/彡
  ミ 彡

ソイヤソイヤソイヤソイヤ!

ソイヤ…
Kazitori.js
Hunanori.js

ソイヤ!

###ソイヤ!

class App extends Gyosen.Engine
  routes:
    "/": "index"
    "/foo": "foo"

  index:()->
    @.log "ソイヤ!"

  foo:()->
    @.log "ソイヤ?"

app = new App()

###ソイヤ!!

class Index extends Gyosen.Engine
  routes:
    "/": "index"
    "/<int:id>": "show"

  index:()->
    @.log "ソイヤ!"

  show:(id)->
    @.log "ソイヤ!:" + id

class Foo extends Gyosen.Engine
  routes:
    "/": "index"
    "/<int:id>": "show"

  index:()->
    @.log "foo: ソイヤ!"

  show:(id)->
    @.log "foo: ソイヤ!:" + id

class App extends Gyosen.Engine
  routes:
  	"/": Index
  	"/foo": Foo

ソイヤソイヤ!

###ソイヤ!

class IyoboyaModel extends Gyosen.BaseModel
  url: '/'
  sex: false
  size: 0
  created_at: null
  updated_at: null

loaded:(event)->
  Gyosen.log "ソイヤソイヤー!"

IyoboyaModel.on(Gyosen.Event.COMPLETE, loaded).load()

###ソイヤソイヤ!?

#for model in IyoboyaModel.collection
#  Gyosen.log model.size
#
#results...
#80, 93, 100, 128, 143, 112

checkSize =(model)->
  return model.size > 120

dekkaino = IyoboyaModel.filter(checkSize).fetch()
#for model in dekkaino
#  Gyosen.log model.size
#
#results...
#[128, 143]

ソイヤソイヤソイヤ!

ソイヤ…

gyosen's People

Contributors

glassesfactory avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.