- List sections http://learn.ractivejs.org/list-sections/1/
- Triples (embedded HTML)
- Extending Ractive
- Two-way binding
- Partials
- Animation
- SVG
- Transitions
This file contains hidden or 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
| html, body { | |
| width: 100%; | |
| height: 100%; | |
| min-height: 100%; | |
| margin: 0; | |
| padding: 0; | |
| background: #333; | |
| } | |
| #workspace { |
This file contains hidden or 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
| 0.1 : 25 | |
| 0.2 : 33 | |
| 0.3 : 4C | |
| 0.4 : 66 | |
| 0.5 : 7F | |
| 0.6 : 99 | |
| 0.7 : B2 | |
| 0.8 : CC | |
| 0.9 : E5 |
This file contains hidden or 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
| { | |
| houses: [ | |
| { | |
| name: "なんとかライブハウス", | |
| lat: 11.111, | |
| lng: 99.999, | |
| landmarks: [ | |
| { | |
| name: "なんとか交差点", |
This file contains hidden or 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
| var BitmapData = (function() { | |
| function BitmapData(width, height) { | |
| this.width = width; | |
| this.height = height; | |
| this.canvas = document.createElement('canvas'); | |
| this.canvas.setAttribute('width', this.width + 'px'); | |
| this.canvas.setAttribute('height', this.height + 'px'); |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| </head> | |
| <body> | |
| <p>姓:<input data-bind='value: firstName' /></p> | |
| <p>名:<input data-bind='value: lastName' /></p> |
This file contains hidden or 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
| $ npm init | |
| $ npm install grunt --save-dev | |
| $ npm install grunt-contrib-jade grunt-contrib-stylus grunt-contrib-watch --save-dev |
This file contains hidden or 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
| var STAGE_WIDTH = 320; | |
| var STAGE_HEIGHT = 480; | |
| var $window = $(window); | |
| // XXX: debounce | |
| $window.resize(onResize); | |
| function onResize() { | |
| var width; |
This file contains hidden or 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
| var emptyBase64; | |
| var emptyTexture; | |
| emptyBase64 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQAAAAA3bvkkAAAAAnRSTlMAAHaTzTgAAAAKSURBVHgBY2AAAAACAAFzdQEYAAAAAElFTkSuQmCC'; | |
| emptyTexture = PIXI.Texture.fromImage(emptyBase64); |
This file contains hidden or 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
| filenames = Dir.glob("*.png") | |
| filenames.each do |filename| | |
| name = filename.gsub('_', '_0') | |
| p name | |
| File.rename(filename, name) | |
| end |