Skip to content

Instantly share code, notes, and snippets.

View BinRoot's full-sized avatar

Nishant Shukla BinRoot

View GitHub Profile
@BinRoot
BinRoot / realnumber.quote
Created December 26, 2013 18:08
Real Numbers
The
real number system
is that
unique
algebraic structure
represented by
all
Dedekind-complete ordered fields.
- Eric Schechter
@BinRoot
BinRoot / zshot.sh
Created December 21, 2013 19:56
This script allows you the change the destination and name of your screenshots right after hitting printscreen. Bind your printscreen key to this script.
#!/bin/bash
# zshot allows you to easily change the filename and destination of each screenshot
# Dependencies: scrot, zenity
cd ~
if [ ! -d "Pictures" ]
then mkdir ~/Pictures
fi
@BinRoot
BinRoot / punctuation.hs
Last active December 31, 2015 17:09
Remove punctuation from a string
clean :: String -> String
clean = foldr (.) id $ map (flip replace "") ["!", "\"", "#", "$", "%", "(", ")", ".", ",", "?"]
Ars longa, vita brevis
Airplanes don’t flap their wings; why should computers think?
@BinRoot
BinRoot / sigint.rs
Created September 23, 2013 21:40
Ctrl-C Signal Detection in Rust (does not work!)
use std::libc::c_int;
extern {
fn signal(sig: c_int, handler: &fn(c_int));
}
#[fixed_stack_segment]
fn main() {
unsafe { signal(2, handle); }
loop {}
@BinRoot
BinRoot / dlab.quote
Created August 17, 2013 20:49
d.lab
Most of the time a design is started by asking a block of
wood what it wants to be, how it would like to exist, what
the materials themselves can offer, how they can exist
within the context of our living space, our tablescape?
- d.lab
@BinRoot
BinRoot / heartthroat.quote
Created August 16, 2013 02:45
Heart In My Throat
With my heart in my throat...
- Sue Johnson, 68, Houston, TX
@BinRoot
BinRoot / pastpawn.quote
Created August 15, 2013 21:28
Past Pawn
The past pawn posseses a soul just like a human being.
It has unrecognized desires which slumber deep inside it
and it has fears. The very existance of which it can but scarcely divine.
- "My System" by Aron Nimzowitsch