- Create a project in XCode with the default settings
- iOS > Application > Single View Application
- Language: Swift
- Under project General settings, add ReactKit to Linked Framework and Libraries
- + > Add Other... and choose /path/to/react-native/ReactKit/ReactKit.xcodeproj
- Now ReactKit would have been imported. Link it by choosing it from the list.
- + > lib.ReactKit.a
- Under project Build Settings,
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
| # see https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/ | |
| # core | |
| brew install coreutils | |
| # key commands | |
| brew install binutils | |
| brew install diffutils | |
| brew install ed --default-names | |
| brew install findutils --with-default-names |
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
| # Composition of the containers | |
| owncloud: | |
| image: owncloud | |
| ports: | |
| - 80:80 | |
| volumes_from: | |
| - owncloud-data | |
| links: | |
| - postgres:owncloud-db |
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
| /*jslint node:true, vars:true, bitwise:true, unparam:true */ | |
| /*jshint unused:false */ | |
| /*global */ | |
| var mraa = require('mraa'); | |
| var request = require('request') // https://github.com/request/request | |
| var _ = require('underscore') // docs: http://underscorejs.org/ | |
| var addr2watch = '1PzTDHe2GKjv2sHHKoN4Gbu2njLtekkYHh' // bitcoin address to watch | |
| var loop_time = 1000 // ms (check every second) |
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
| // Using the Jenkins Groovy Post build plugin to execute the following after every build | |
| // https://wiki.jenkins-ci.org/display/JENKINS/Groovy+Postbuild+Plugin | |
| // It would be nice not to have to specify these here... the repo name should be available within the hudson | |
| // api somehow, but I didn't know how to get it. The access token should maybe be saved in a config file, and | |
| // read in at runtime? | |
| GITHUB_REPO_NAME = 'myusername/myreponame' | |
| GITHUB_ACCESS_TOKEN = 'my_github_api_v3_access_token' |
#Mac OS X
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
| /** | |
| * Handles the comet event stream. | |
| */ | |
| def cometStream = Action { | |
| AsyncResult { | |
| implicit val timeout = Timeout(5.seconds) | |
| val actor=Akka.system.actorOf(Props[EventListener]) | |
| // Actor is listening for event on the eventStream | |
| Akka.system.eventStream.subscribe(actor,classOf[ChangeEvent]) | |
| // For each event, stream the data to client |
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
| package controllers | |
| import lib._ | |
| import play.api.mvc._ | |
| import play.api.libs.json._ | |
| object Auth extends Controller { | |
| val GITHUB = new OAuth2[GithubUser](OAuth2Settings( |
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
| web: node server.js |
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
| ## Server configuration for nginx to host Atlassian Jira / Jetbrain TeamCity or any other Tomcat web application | |
| # | |
| # author cedric.walter, www.waltercedric.com | |
| # to be saved for ex in /etc/nginx/sites-available/example | |
| server { | |
| listen 80; | |
| server_name jira.example.com; | |
| access_log off; | |
| location / { |
NewerOlder