Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am vikramls on github.
  • I am vikramls (https://keybase.io/vikramls) on keybase.
  • I have a public key whose fingerprint is 3A0D 157C 2320 288D A4F3 B3B1 F606 2D80 5244 6C2F

To claim this, I am signing this object:

@vikramls
vikramls / build_photos.py
Last active August 29, 2015 14:05
Script to automatically deploy photos
#!/usr/bin/env python
"""
Watch for check-in to the source git repository and build photos using sigal.
"""
import os
from subprocess import check_call
from glob import glob
@vikramls
vikramls / glasses.py
Created June 3, 2014 20:45
Amount of water for glasses arranged in a pyramid
"""glasses arranged in a pyramid:
1
2 3
4 5 6
7 8 9 10
Each glass gets half the water of the one diagonally above it. So for 2 units, 1=1unit, 2,3=1/2unit.
"""
def make_pyramid(levels):
@vikramls
vikramls / emerge_example_A.cpp
Created June 3, 2014 05:15
emacs emerge example
#include <map>
#include <iostream>
using namespace std;
multimap<string, int> data;
int& get_value(string key)
{
return data.find(key)->second;