Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
Consumer key: CjulERsDeqhhjSme66ECg
| namespace :app do | |
| desc "create a new app with the given name -- for example, app:create[new_app_name]" | |
| task :create, [:name] => :environment do |t, args| | |
| underscore = get_underscore(args) | |
| name = underscore.camelize | |
| directory = get_directory(args) | |
| raise "#{directory} already exists!" if File.exists?(directory) | |
| puts "Creating app #{name} in #{directory}" |
| ### Most of the summary is taken from the awesome R twotorials at http://www.twotorials.com/ by Anthony Damico | |
| ### Some of it are my additions from my experience. This is intended so you can Ctrl+F and find what you want using | |
| ### common names of functions and concepts from other languages or statistics. | |
| ### Troubleshooting: Search http://tolstoy.newcastle.edu.au/R/ , http://www.r-bloggers.com/, http://www.rseek.org/ | |
| ### Basics | |
| traceback() # Get the call stack after an error, for debugging | |
| 32 %% 2 # == 0 mod operator | |
| 5 %/% 3 # == 1 integer division |
| #author: Davit Khaburdzania | |
| #email: davit.khaburdzania@gmail.com | |
| #github: github.com/davit-khaburdzania | |
| fs = require "fs" | |
| mongojs = require "mongojs" | |
| db = mongojs 'mongodb://db_address', ['airports'] | |
| #countries in europe | |
| eu_countries = ["austria", "belgium", "bulgaria", "cyprus", "czech republic", "denmark", "estonia", "finland", "france", "germany", "greece", "hungary", "ireland", "iceland", "italy", "latvia", "lithuania", "luxembourg", "malta", "netherlands", "norway", "poland", "portugal", "romania", "slovakia", "slovenia", "spain", "sweden", "switzerland", "united kingdom"] |
| PyWebsocket http://code.google.com/p/pywebsocket/ | |
| HTML from http://pedroassuncao.com/blog/2009/12/18/websockets-tutorialexample-with-pywebsocket/ |
| DEPS = $(CURDIR)/deps | |
| DIALYZER_OPTS = -Wunderspecs | |
| # List dependencies that should be included in a cached dialyzer PLT file. | |
| # DIALYZER_DEPS = deps/app1/ebin \ | |
| # deps/app2/ebin | |
| DEPS_PLT = {{name}}.plt |
Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
Consumer key: CjulERsDeqhhjSme66ECg
| DEPS = $(CURDIR)/deps | |
| DIALYZER_OPTS = -Wunderspecs | |
| # List dependencies that should be included in a cached dialyzer PLT file. | |
| # DIALYZER_DEPS = deps/app1/ebin \ | |
| # deps/app2/ebin | |
| DEPS_PLT = {{name}}.plt |
This allows you to use the following video streaming services outside of the US from your Mac without having to use a proxy or VPN, so no big bandwidth issues:
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| #!/usr/bin/env ruby | |
| # | |
| # Subscribe to BBC Radio 3 LiveText over MQTT | |
| # | |
| require 'rubygems' | |
| require 'mqtt' | |
| MQTT::Client.connect('test.mosquitto.org') do |c| | |
| # If you pass a block to the get method, then it will loop |