- Projet: http://nuit-info-2012.herokuapp.com
- Lieu: Strasbourg
- Ruby
- HTML / CSS / JS
| using System; | |
| using ReactiveUI.Cocoa; | |
| using MonoTouch.Foundation; | |
| using ReactiveUI; | |
| using System.Reactive.Linq; | |
| using MonoTouch.UIKit; | |
| using System.Drawing; | |
| namespace MyApp | |
| { |
| 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); |
That is, while there is value in the items on the right, we value the items on the left more.
| # 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 |
| (?<!(NSLocalizedString\(|NSLog\())@".*" |
| extension Optional { | |
| func `let`(_ action: (Wrapped) -> ()) { | |
| if let value = self { | |
| action(value) | |
| } | |
| } | |
| } | |
| // Usage |