Skip to content

Instantly share code, notes, and snippets.

@adaptivedev
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 @ 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 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")
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 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
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 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
why i am getting called in "options" on the node side?
View client_events.js
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
famo.us grunt examples transitions: how to run it?
View gist:0daa67f3c2cc10b91d47
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 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
system.indexes
test
> db.test.find()
{ "_id" : ObjectId("533d5ec091d39080c18ec8ba"), "_accountId" : "100000057408993" }
>
@adaptivedev
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
/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 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"
You can’t perform that action at this time.