Skip to content

Instantly share code, notes, and snippets.

View sid-code's full-sized avatar

Sidharth Kulkarni sid-code

  • Phoenix, AZ
View GitHub Profile

Keybase proof

I hereby claim:

  • I am sid-code on github.
  • I am kulks (https://keybase.io/kulks) on keybase.
  • I have a public key whose fingerprint is 1AB3 342B F4C2 84A0 42F0 85FC 3CB8 4FA2 E75C 602C

To claim this, I am signing this object:

dAABAAQABgBhAT4BAQAAAAAAAgAFAAAAxgELAQIAAAACAAMAAAAAAAAAAQABAL8BzAABAAAAAwACAAAABAAAAAEAAQACAAQAAwCAAdkAAQAAAAEABQAAAAEAAgAAAAEAAQACAAMAAgACAAEAAgACAAAAAwA=
@sid-code
sid-code / numbers.rb
Created April 21, 2015 02:11
numbers benchmark
require 'benchmark'
n = 12352834
t = 40000
Benchmark.bm do |x|
x.report("Split map") do
t.times { n.to_s.split('').map(&:to_i) }
end
@sid-code
sid-code / haste.nim
Created April 20, 2015 03:18
hastebin client in Nim
# syntax: haste [--raw] [file] (if no file, then stdin)
import httpclient
import re
import os
from strutils import `%`
const url = "http://hastebin.com"
proc haste(text: string): string =
@sid-code
sid-code / .cvimrc
Last active August 29, 2015 14:12
cvimrc
site '*://*.reddit.com/*' {
unmap j
unmap k
unmap J
unmap K
unmap x
set numerichints
}