This is a quick document aimed at highlighting the basics of what you might want to do using MongoDB
and R
. I am coming at this, almost completely, from a SQL
mindset.
The easiest way to install, I believe, is
// Works in modern browsers + IE9, but Modernizr has a polyfill baked in for function.bind. | |
// Hat tip Paul Irish | |
var o = $( {} ); | |
$.subscribe = o.on.bind(o); | |
$.unsubscribe = o.off.bind(o); | |
$.publish = o.trigger.bind(o); | |
// Usage | |
$(document.body).on( 'click', function() { |
{ | |
"files": | |
{ | |
"backbone": "http://documentcloud.github.com/backbone/backbone.js", | |
"backbone.min": "http://documentcloud.github.com/backbone/backbone-min.js", | |
"history": "https://raw.github.com/balupton/history.js/master/scripts/compressed/history.js", | |
"jquery": "http://code.jquery.com/jquery.js", | |
"jquery-extra-selectors": "https://raw.github.com/keithclark/JQuery-Extended-Selectors/master/jquery-extra-selectors.js", | |
"jquery.min": "http://code.jquery.com/jquery.min.js", | |
"json2": "https://raw.github.com/douglascrockford/JSON-js/master/json2.js", |
require.config({ | |
baseUrl: "/js/", | |
urlArgs: 'cb=' + Math.random(), | |
paths : { | |
jquery : 'libs/jquery/jquery-1.8.0.min', | |
bootstrap : 'libs/bootstrap/bootstrap', | |
underscore : 'libs/underscore/underscore-min', | |
backbone : 'libs/backbone/backbone-min', | |
text : 'libs/require/text', | |
mainConfigFile : "public/js/main", |
<script> | |
var foo = function(){ | |
return 'hello world'; | |
} | |
</script> |
var foo = function(){ | |
return 'hello world'; | |
} |
{ | |
"src_files":[ | |
"tests/*coffee", | |
"scripts/*.coffee" | |
], | |
"serve_files": [ | |
"scripts/*.js", | |
"tests/*.js" | |
], | |
"before_tests" : "coffee -c ." |
doskey subl="C:\Program Files\Sublime Text 2\sublime_text.exe" $* |
LoginViewController *controller = [self.storyboard instantiateViewControllerWithIdentifier:@"LoginIdentifier"]; | |
[self.navigationController pushViewController:controller animated:YES]; |
library(RCurl) | |
library(RJSONIO) | |
library(plyr) | |
url <- function(origin, destination) { | |
root <- "https://maps.googleapis.com/maps/api/directions/json" | |
u <- paste(root, "?origin=", origin, "&destination=", destination, "&key=AIzaSyAuj0ix2b8t54hrhIEHRsQNk0r6y9eBK2U", sep = "") | |
return (URLencode(u)) | |
} |