$ rails g model User
belongs_to
has_one
| #Requires | |
| %w(rubygems rake webrick net/http fileutils daemons).each {|lib| require lib} | |
| @config = { | |
| #Files to compile | |
| :targets => { | |
| "source/classes/spfc_main.as" => "public/spfc_main.swf", | |
| "source/classes/spfc_intro.as" => "public/spfc_intro.swf", | |
| "source/classes/spfc_loader.as" => "public/spfc_loader.swf", | |
| "source/classes/test.as" => "public/test.swf" |
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
| MKMapRect zoomRect = MKMapRectNull; | |
| for (id <MKAnnotation> annotation in mapView.annotations) { | |
| MKMapPoint annotationPoint = MKMapPointForCoordinate(annotation.coordinate); | |
| MKMapRect pointRect = MKMapRectMake(annotationPoint.x, annotationPoint.y, 0, 0); | |
| if (MKMapRectIsNull(zoomRect)) { | |
| zoomRect = pointRect; | |
| } else { | |
| zoomRect = MKMapRectUnion(zoomRect, pointRect); | |
| } | |
| } |
| // Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
| // Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
| var FORMAT_ONELINE = 'One-line'; | |
| var FORMAT_MULTILINE = 'Multi-line'; | |
| var FORMAT_PRETTY = 'Pretty'; | |
| var LANGUAGE_JS = 'JavaScript'; | |
| var LANGUAGE_PYTHON = 'Python'; |
| // For example: | |
| // UIColorFromRGBA(0xffee00, 0.5) | |
| // UIColorFromRGB(0xffee00) | |
| static inline UIColor *UIColorFromRGBA(int rgb, float a) { | |
| return [UIColor colorWithRed:((float)((rgb & 0xFF0000) >> 16))/255.0 | |
| green:((float)((rgb & 0xFF00) >> 8))/255.0 | |
| blue:((float)(rgb & 0xFF))/255.0 alpha:a]; | |
| } |
| def emptyMap = [:] | |
| assert emptyMap.size() == 0 | |
| def notEmptyMap = ["person1":"john", "person2":"mus"] | |
| assert notEmptyMap.size() == 2 | |
| notEmptyMap.put "person3","test" //adding to existing one | |
| assert notEmptyMap.size() == 3 | |
| notEmptyMap["person4"] = "beth" | |
| assert notEmptyMap.size() == 4 |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
Located in alphabetical order (not prefer)
Cab), also designed as a more modern replacement, written in Cgolang)