This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| require 'rubygems' | |
| require 'sinatra' | |
| require 'fileutils' | |
| # upload with: | |
| # curl -v -F "data=@/path/to/filename" http://localhost:4567/user/filename | |
| post '/:name/:filename' do | |
| userdir = File.join("files", params[:name]) |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| namespace ConsoleApplication1 | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) |
| // Marmalade headers | |
| #include "s3e.h" | |
| #include "Iw2D.h" | |
| int main() | |
| { | |
| // Initialise the 2D graphics system | |
| Iw2DInit(); |
| /** | |
| * Sample React Native App | |
| * https://github.com/facebook/react-native | |
| */ | |
| 'use strict'; | |
| var React = require('react-native'); | |
| var { | |
| AppRegistry, | |
| StyleSheet, |
| { | |
| "name": "my-app", | |
| "version": "0.0.0", | |
| "dependencies": { | |
| "browserify": "~2.36.1", | |
| "less": "~1.5.1" | |
| }, | |
| "devDependencies": { | |
| "watchify": "~0.4.1", | |
| "catw": "~0.2.0" |
| #import <Foundation/Foundation.h> | |
| #import "RCTBridgeModule.h" | |
| #define RCT_EXTERN_MODULE(objc_name, objc_supername) \ | |
| RCT_EXTERN_REMAP_MODULE(objc_name, objc_name, objc_supername) | |
| #define RCT_EXTERN_REMAP_MODULE(js_name, objc_name, objc_supername) \ | |
| objc_name : objc_supername \ | |
| @end \ | |
| @interface objc_name (RCTExternModule) <RCTBridgeModule> \ |
| OS X - This repo only contains the iOS implementation right now, and Xcode only runs on Mac. | |
| New to Xcode? Download it from the Mac App Store. | |
| Homebrew is the recommended way to install node, watchman, and flow. | |
| brew install node. | |
| brew install --HEAD watchman. We recommend installing watchman, otherwise you might hit a node file watching bug. | |
| brew install flow. If you want to use flow. |
| https://stripe-three-way-payment.herokuapp.com/ |
| http://jsfiddle.net/JMZc5/1/ |