Skip to content

Instantly share code, notes, and snippets.

View webglider's full-sized avatar

Midhul webglider

View GitHub Profile
fuhkdfjslkfjsljfdslkfjsldjfl
@webglider
webglider / template
Created March 18, 2015 13:20
gSoC 2014 BeagleBoard.org proposal template
--About you--
What is your name?
What is your email address?
What is your eLinux wiki username?
What is your IRC nickname?
@webglider
webglider / xmonad.hs
Created May 18, 2015 13:12
Xmonad conf
import XMonad
import XMonad.Config.Gnome
import XMonad.Util.EZConfig
import XMonad.Actions.CycleWindows
import XMonad.Actions.RotSlaves
import XMonad.Actions.Submap
import XMonad.Layout.Tabbed
import XMonad.Layout.Circle
import XMonad.Layout.ThreeColumns
import XMonad.Actions.CycleWS
@webglider
webglider / knn.ipynb
Created June 17, 2015 13:25
Test ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@webglider
webglider / vhsrec.cc
Created December 12, 2015 12:34
Daily programmer challenge 242 Intermediate
// https://www.reddit.com/r/dailyprogrammer/comments/3u6o56/20151118_challenge_242_intermediate_vhs_recording/
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
class Show {
-SRS Travels (11:00 PM) AC sleeper - Rs. 900 - videhi - stay at dads place
-SRS Travels (9:10PM) Non-AC sleeper - Rs. 750 - videhi - stay at dads place
-Padmesh Travels (10:30PM) - Rs. 650 - kalasipalyam - stay at station
@webglider
webglider / pow.py
Created April 22, 2016 23:46
Proof of Work based throttling
# Playing around with Proof of Work
import random, binascii, md5
# random byte string generator
# k byte random string is output
def rand_bytes(k):
num = random.getrandbits(8*k)
s = hex(num)[2:]
if(s[-1]=='L'):
s = s[:-1]