Skip to content

Instantly share code, notes, and snippets.

adaptivedev / crises.txt
Last active Apr 6, 2016
on bernie sanders, the financial crises of 2008, and everything you ever wanted to ask quants, and an economic enthusiasts panel
View crises.txt
[11:24pm] ChanServ: [##economics] Hiya. Welcome to ##economics -- Freenode's channel based upon economic policy,basics,macro,micro,markets,trading & math in economics. Enjoy your stay ! Econbot makes stats @ but no public logs
[11:24pm] MrReader left the chat room. (Quit: Leaving)
[11:25pm] mylord: milton friedman was for abolishing the fed, but against the gold standard.. what would a system wihtout the fed or gold standard look like?
[11:25pm] rmah: mylord: not a clue
[11:26pm] rmah: without a central bank managing the money supply, I'd think you'd have to base money on some sort of asset backing
[11:26pm] rmah: else banks would just print whatever the fuck they wanted (not that a gold backing requirement stopped that)
[11:27pm] blablaa: mylord, multiple currencies with fluctuating exchange rates, the physically backed ones would have negative interest rates, the bank backed would have positive rate and periodically blow up
[11:27pm] blablaa: and the usual inflation
adaptivedev / AppDelegate.m
Created Aug 19, 2014
Cordova-Facebook plugin issue solved: FBSessionStateClosedLoginFailed
View AppDelegate.m
JZN's answer here helped me (and I had to comment out the plugin's function "openURL")
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
return [FBSession.activeSession handleOpenURL:url];
adaptivedev / app.js
Created Jun 16, 2014
Ionic: problems getting started: 1) "todo", 2) ionic serve, 3) Codepen
View app.js
RoverMR:www rover$ cat js/app.js
// Ionic Starter App
// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
//angular.module('starter', ['ionic'])
angular.module('todo', ['ionic']);
.run(function($ionicPlatform) {
adaptivedev / ionic_install.txt
Created Jun 15, 2014
ionic install problems
View ionic_install.txt
RoverMR:webapp rover$ sudo npm install -g cordova ionic
npm http GET
npm http 304
npm http GET
npm http 304
npm http GET
npm http 200
npm ERR! tar pack Error reading /Users/rover/tmp/npm-17449/1402850106338-0.5961648433003575/package
npm ERR! TypeError: Cannot call method 'filter' of undefined
npm ERR! at Packer.IgnoreReader.addIgnoreRules (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:148:13)
adaptivedev / client_events.js
Created May 31, 2014
why i am getting called in "options" on the node side?
View client_events.js
function getEvents($scope, $http) {
success(function(data) {
$scope.event = data;
adaptivedev / gist:0daa67f3c2cc10b91d47
Created May 3, 2014 grunt examples transitions: how to run it?
View gist:0daa67f3c2cc10b91d47
RoverMR:transitions rover$ pwd
RoverMR:transitions rover$ grunt serve
Warning: Task "serve" not found. Use --force to continue.
Aborted due to warnings.
adaptivedev / mongo shell
Created Apr 3, 2014
trying to use findAndModify from node.js to mongo: problem: no record inserted, null returned
View mongo shell
// no such record insert
> use test
switched to db test
> show collections
> db.test.find()
{ "_id" : ObjectId("533d5ec091d39080c18ec8ba"), "_accountId" : "100000057408993" }
adaptivedev / error.output
Created Mar 26, 2014
how can I call findAll in games.js from turnys.js (how do I define an object-function that defines "send"
View error.output
creating 1 turny per 1 game
throw message;
TypeError: Object function (){
send = function(msg) {
console.log("populateDb: gamesAll: res: send: msg="+msg);
} has no method 'send'
adaptivedev / JSHint.sublime-build
Created Mar 24, 2014
errors for JSHint using Sublime on mac
View JSHint.sublime-build
"selector": "source.js",
"cmd": ["jshint", "$file"],
"file_regex": "JSHint: (.+)\\]",
"line_regex": "(\\d+),(\\d+): (.*)$",
"osx": {
"path": "/usr/bin/npm:/usr/local/share/npm/bin:/usr/local/bin:/opt/local/bin"