Skip to content

Instantly share code, notes, and snippets.

Avatar

momoterraw andrewvmail

  • Vancouver
View GitHub Profile
View permutation.js
function permutation(n) {
if(n == 0 || n == 1) return 1;
if(f[n] > 0) return f[n];
//console.log(n);
return f[n] = factorial(n-1) * n;
}
function permutation(n) {
var p = 1;
View gist:c23990a7fe8bf24dd218
//Finding users based on location publications
Meteor.publish('postsList', function(terms) {
if(can.viewById(this.userId)){
var parameters = getPostsParameters(terms);
//posts = Posts.find(parameters.find, parameters.options);
//By default *the current? username, emails, and profile are published to the client.
parameters.find._id = { $ne: this.userId };
View gist:a6da503020ca6ab27cc8
var assert = require("assert"); // node.js core module
var should = require('should');
var fs = require("fs");
var base = process.env.PWD;
var Inserter = require("../../api/services/ratesimporter/Inserter.js");
describe('Inserter', function(){
//describe('#changeHeader()', function(){
View gist:7adad1fcd5311b20b22e
'use strict';
var base = process.env.PWD;
var _ = require('lodash');
module.exports = {
/**
* TODO: checkheader
View gist:041100980b2179a24012
'use strict';
var base = process.env.PWD;
var _ = require('lodash');
module.exports = {
/**
* TODO: checkheader
View gist:2bc22da964003759475e
'use strict';
var base = process.env.PWD;
var _ = require('lodash');
module.exports = {
/**
* TODO: checkheader
View gist:1d50368a701ef8ae4c79
var assert = require("assert"); // node.js core module
var should = require('should');
var fs = require("fs");
var base = process.env.PWD;
var Inserter = require("../../api/services/ratesimporter/Inserter.js");
describe('Inserter', function () {
//describe('#changeHeader()', function(){
//it('it should return serviceProvider csv when passed in flowroute provider', function(done){
View gist:e77205b6adc2e7907b79
{
"snuid": "u16047198083",
"currency": 1,
"mac_address": "",
"display_multiplier": "1.0",
"id": "kash::f06fec3e-3760-4063-a123-ccf0fa5ee3e5",
"verifier": "bf321571ab7954fcc6d480db690c46f4",
"type": "kash",
"planBId": "u16047198083",
"used": false,
View gist:a489ae09c75eaa87817b
==> sipXproxy.log <==
"2015-09-10T08:05:25.678792Z":28459:SIP:NOTICE:apollo.spectralsonic.net::7ff630606700:sipxproxy:"SipTransactionList::removeOldTransactions deleting 2 of 12 transactions (0 busy)"
==> sipxhomer.log <==
"2015-09-10T08:05:27.770547Z":16897:NET:INFO:apollo.spectralsonic.net::7f6eab20d700:sipxhomer:"StateQueueClient::eventLoop::0x2640000 received event: sqw.CAP.E38E-DEA8"
"2015-09-10T08:05:27.770697Z":16898:NET:INFO:apollo.spectralsonic.net::7f6eaa80c700:sipxhomer:"HEPDao::save Incoming: REGISTER 75.157.146.228:60813->206.116.9.147:5060"
"2015-09-10T08:05:27.771294Z":16899:NET:INFO:apollo.spectralsonic.net::7f6eaa80c700:sipxhomer:"StateQueueClient::watch::0x2640000 () INVOKED"
"2015-09-10T08:05:27.809423Z":16900:NET:INFO:apollo.spectralsonic.net::7f6eab20d700:sipxhomer:"StateQueueClient::eventLoop::0x2640000 received event: sqw.CAP.AA32-B972"
"2015-09-10T08:05:27.809591Z":16901:NET:INFO:apollo.spectralsonic.net::7f6eaa80c700:sipxhomer:"HEPDao::save Outgoing: SIP/2.0 408 Request timeout 206.1
View gist:b65852446322dd2e59b4
855,"01/09/07 00:00:00","Gen Advice","Jan 10th @ 10am meeting with Mamie Hutt-Temoana
203 - 3102 Main Street, Vancouver","01/09/07 00:00:00","DP",""
3032,"11/30/07 00:00:00","285T1","Allowed?
","","DP",""