Skip to content

Instantly share code, notes, and snippets.

0x6BC8D4f1FAA132Da95B34DEb8Da0bE9a0828aE5d
@adaptivedev
adaptivedev / crises.txt
Last active April 6, 2016 22:05
on bernie sanders, the financial crises of 2008, and everything you ever wanted to ask quants, and an economic enthusiasts panel
[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 @ http://www.teralaser.net/economics/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
adaptivedev / AppDelegate.m
Created August 19, 2014 15:38
Cordova-Facebook plugin issue solved: FBSessionStateClosedLoginFailed
JZN's answer here helped me (and I had to comment out the plugin's function "openURL")
http://stackoverflow.com/questions/12661104/ios6-facebook-integration-login-always-fbsessionstateclosedloginfailed-never-ope
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
return [FBSession.activeSession handleOpenURL:url];
}
/*
@adaptivedev
adaptivedev / app.js
Created June 16, 2014 06:50
Ionic: problems getting started: 1) "todo", 2) ionic serve, 3) Codepen
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
adaptivedev / ionic_install.txt
Created June 15, 2014 16:36
ionic install problems
RoverMR:webapp rover$ sudo npm install -g cordova ionic
npm http GET https://registry.npmjs.org/cordova
npm http 304 https://registry.npmjs.org/cordova
npm http GET https://registry.npmjs.org/ionic
npm http 304 https://registry.npmjs.org/ionic
npm http GET https://registry.npmjs.org/ionic/-/ionic-1.0.14.tgz
npm http 200 https://registry.npmjs.org/ionic/-/ionic-1.0.14.tgz
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
adaptivedev / client_events.js
Created May 31, 2014 05:28
why i am getting called in "options" on the node side?
function getEvents($scope, $http) {
$http.get('http://adaptivedev.com:5432/events').
success(function(data) {
$scope.event = data;
});
}
@adaptivedev
adaptivedev / gist:0daa67f3c2cc10b91d47
Created May 3, 2014 10:55
famo.us grunt examples transitions: how to run it?
RoverMR:transitions rover$ pwd
/Users/rover/Documents/Dev/Famous/examples/src/famous/transitions
RoverMR:transitions rover$ grunt serve
Warning: Task "serve" not found. Use --force to continue.
Aborted due to warnings.
@adaptivedev
adaptivedev / mongo shell
Created April 3, 2014 14:08
trying to use findAndModify from node.js to mongo: problem: no record inserted, null returned
// no such record insert
> use test
switched to db test
> show collections
system.indexes
test
> db.test.find()
{ "_id" : ObjectId("533d5ec091d39080c18ec8ba"), "_accountId" : "100000057408993" }
>
@adaptivedev
adaptivedev / error.output
Created March 26, 2014 12:23
how can I call findAll in games.js from turnys.js (how do I define an object-function that defines "send"
creating 1 turny per 1 game
/Users/rover/.nvm/v0.10.26/lib/node_modules/mongodb/lib/mongodb/connection/base.js:242
throw message;
^
TypeError: Object function (){
send = function(msg) {
console.log("populateDb: gamesAll: res: send: msg="+msg);
};
} has no method 'send'
@adaptivedev
adaptivedev / JSHint.sublime-build
Created March 24, 2014 14:52
errors for JSHint using Sublime on mac
{
"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"