Skip to content

Instantly share code, notes, and snippets.


Vikrum vikrum

Block or report user

Report or block vikrum

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View index.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href=".css">
<script src=".js"></script>
vikrum / 401k
Last active Jan 18, 2017
Quantopian 401K simplified SPY model; front loaded (4 pay cycles) VS throughout year (26 pay cycles) of $27k
View 401k
def initialize(context):
# Reference to SPY
context.spy = sid(8554)
schedule_function(buySpread, date_rules.week_start(), time_rules.market_open())
def buyFront(context, data):
weekno = get_datetime('US/Eastern').isocalendar()[1]
# Invest in first 4 pay cycles
if (weekno % 2 == 0) and (weekno <=8):
if data.can_trade(context.spy):
View openscad
S=10; // size in mm
// "C" "A" "D" - modelled letters
intersection() {
M("A", S); // "A"
vikrum /
Created Sep 18, 2014
iHarder Base64 — MIT licensed by author via email Sept. 2014
* <p>
* This file is licensed under the MIT License as read at
* and reproduced here:</p>
* <blockquote>Copyright (c) 2009 Robert Harder.
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
vikrum /
Last active Aug 29, 2015
curl debug
curl -so /dev/null -w "url_effective = %{url_effective}\n http_code = %{http_code}\n http_connect = %{http_connect}\n time_total = %{time_total}\n time_namelookup = %{time_namelookup}\n time_connect = %{time_connect}\n time_appconnect = %{time_appconnect}\n time_pretransfer = %{time_pretransfer}\n time_redirect = %{time_redirect}\n time_starttransfer = %{time_starttransfer}\n size_download = %{size_download}\n size_upload = %{size_upload}\n size_header = %{size_header}\n size_request = %{size_request}\n speed_download = %{speed_download}\n speed_upload = %{speed_upload}" https://zzz
# -*- coding: utf-8 -*-
This script will delete all of the tweets in the specified account.
You may need to hit the "more" button on the bottom of your twitter profile
page every now and then as the script runs, this is due to a bug in twitter.
You will need to get a consumer key and consumer secret token to use this
script, you can do so by registering a twitter application at
@requirements: Python 2.5+, Tweepy (
vikrum / spin.c
Created Apr 1, 2014
Terminal screensaver/session activity bumper thing.
View spin.c
/* .. spin ..
* $ gcc spin.c -o spin -lncurses -Wall -O3
* vsn - 2006
#include <stdlib.h> // srand
#include <time.h> // time
#include <string.h>

Keybase proof

I hereby claim:

  • I am vikrum on github.
  • I am vikrum ( on keybase.
  • I have a public key whose fingerprint is C7D6 A287 0BF0 3A38 474A 5EC5 3215 E45A E1F4 FD83

To claim this, I am signing this object:

vikrum /
Created Dec 31, 2013
Get 95th percentile from stdin
#!/usr/bin/env python
# based on
# input needs to be presorted
import math
import functools
import fileinput
You can’t perform that action at this time.