I hereby claim:
- I am aguestuser on github.
- I am aguestuser (https://keybase.io/aguestuser) on keybase.
- I have a public key whose fingerprint is 0995 5956 FCCE 9986 E81C C8FC E58B D15A 1D4E FD5B
To claim this, I am signing this object:
# ********************* | |
# *****CONTROLLERS***** | |
# ********************* | |
# ************************************* | |
# SHIFTS CONTROLLER | |
# app/controllers/shifts_controller.rb | |
# ************************************* | |
def batch_edit |
var arr = [1,2,3,4]; | |
function dumbAddOne(arr) { | |
if (arr == []) return []; | |
else return ([1 + arr[0]]) + dumbAddOne(arr.slice(1)); | |
} | |
function findActivty(pdfArr){ | |
if (pdfArr == []) return []; | |
if (/Activity/.test(pdfArr[0])) { |
//Riddle me this... | |
//This compiles: | |
def plotGrowth[A,T[B] <: Seq[B]](l: T[A], fn: T[A] => T[A]): Boolean = { | |
val intervals = (0 to 50).map(_ * l.size / 50) | |
intervals map { i => | |
val sub = l.take(i) | |
System.gc() | |
val start = System.nanoTime |
var _ = require('underscore'); | |
// getDupeList([Tweet]) -> { String : [Int] } | |
// runs in O(n+m) where n is # tweets, m is # dupes | |
function getDupeList(ts){ | |
var tts =_.chain(ts) | |
.map(function(t,i){ return _.extend(t, { i: i });}) | |
.groupBy(function(tt){ return tt.id_str;}) | |
.value(); | |
return _.chain(tts) |
var _ = require('underscore'); | |
// getDupeList([Tweet]) -> { String : [Int] } | |
// runs in O(n+m) where n is # tweets, m is # dupes | |
function getDupeList(ts){ | |
var tts =_.chain(ts) | |
.map(function(t,i){ return _.extend(t, { i: i });}) | |
.groupBy(function(tt){ return tt.id_str;}) | |
.value(); | |
return _.chain(tts) |
// pseudo-classical v1 | |
var Mammal = function(name){ | |
this.name = name; | |
this.get_name = function(){ | |
return this.name; | |
}; | |
this.purr = function() { | |
return "purr" | |
}; |
import sys | |
import MySQLdb as my | |
import networkx as nx | |
import csv | |
from IPython import embed | |
db = my.connect(host='localhost', user='littlesis', passwd='midm681_beet', db='littlesis') | |
cur = db.cursor(my.cursors.DictCursor) | |
# all positions |
I hereby claim:
To claim this, I am signing this object:
;;; init.el --- Prelude's configuration entry point. | |
;; | |
;; Copyright (c) 2011 Bozhidar Batsov | |
;; | |
;; Author: Bozhidar Batsov <[email protected]> | |
;; URL: http://batsov.com/prelude | |
;; Version: 1.0.0 | |
;; Keywords: convenience | |
;; This file is not part of GNU Emacs. |