- Projet: http://nuit-info-2012.herokuapp.com
- Lieu: Strasbourg
- Ruby
- HTML / CSS / JS
| # Add a library | |
| $ git remote add -f lib/[libname] [lib-remote-URL] # Add the lib remote and fetch | |
| $ git read-tree --prefix=lib/[libname]/ -u lib/[libname]/master # Import the library files | |
| $ git commit -m "Add [libname] library." # Commit the added library | |
| $ git push # We're done ! | |
| # Update to the latest version of a library | |
| $ git pull -s subtree --squash --no-commit lib/[libname] master # Update files of the library |
| 'use strict'; | |
| /* | |
| # Javascript Prototyping Best Practices | |
| * To create a class, create a constructor function with a `Name` and assign | |
| it to a variable of the same `Name`. | |
| * In this constructor only define properties using `this.prop` notation |
| Rails Guide | |
| 1) Create a new rails app | |
| rails new APP_NAME --skip-test-unit | |
| cd APP_NAME | |
| 2) The GEMFILE | |
| source 'https://rubygems.org' |
| //Non-Plugin Function | |
| var doBlink = function(obj,start,finish) { | |
| jQuery(obj).fadeOut(300).fadeIn(300, function() { | |
| if(start!=finish) { | |
| start=start+1; | |
| doBlink(obj,start,finish); | |
| } | |
| }); | |
| }; |
| /* Declaration */ | |
| // In ObjC | |
| typedef void (^onCompletion)(bool completed); | |
| // In C# | |
| public delegate void OnCompletion(bool completed); | |
| /* Implementation */ |
| // event driven | |
| loadArticle(function (article) { | |
| myTextField.text = article.title; | |
| if (article.title == "toto") | |
| alert("Toto arrived"); | |
| }); | |
| // FRP | |
| var article = loadArticle(); | |
| article.whenAnyValue('title').bindTo(myTextField.text); |
| using System; | |
| using ReactiveUI.Cocoa; | |
| using MonoTouch.Foundation; | |
| using ReactiveUI; | |
| using System.Reactive.Linq; | |
| using MonoTouch.UIKit; | |
| using System.Drawing; | |
| namespace MyApp | |
| { |
| (?<!(NSLocalizedString\(|NSLog\())@".*" |
That is, while there is value in the items on the right, we value the items on the left more.