Skip to content

Instantly share code, notes, and snippets.

View BinRoot's full-sized avatar

Nishant Shukla BinRoot

View GitHub Profile
@BinRoot
BinRoot / groups.quote
Created November 12, 2012 02:26
Groups
What we are talking about is the decomposition of
the direct product of two irreducible representations of
the rotation group into a direct sum of irreducible representations.
- Griffiths' "Introduction to Quantum Mechanics"
int change(int target, int [] coins) {
if(target <= 0) {
return 0;
}
for(int i=0; i<coins.length; i++) {
if(target == coins[i]) return 1;
}
@BinRoot
BinRoot / dilettante.quote
Created November 23, 2012 01:58
Dilettante
Rasmus Ledorf is a self-confessed dilettante in language design.
- Andrei Alexandrescu
@BinRoot
BinRoot / gist:4138256
Created November 24, 2012 03:40
Sqrt.java
private static double sqrt(double n, double low, double high, double e) {
double guess = (low+high)/2;
if(Math.abs(guess*guess - n) < e) {
return guess;
}
else if(guess*guess > n) {
return sqrt(n, low, guess, e);
}
else {
return sqrt(n, guess, high, e);
@BinRoot
BinRoot / forget.quote
Created November 29, 2012 04:26
Forget
People will forget what you said, people will forget what you did,
but people will never forget how you made them feel.
- Maya Angelou
@BinRoot
BinRoot / silence.quote
Created November 30, 2012 21:13
Silence
The silence was deafening.
- Multiple sources
@BinRoot
BinRoot / facebook.quote
Created December 3, 2012 01:34
Facebook
What was once a means of creative expression and a connection to a living community has ossified:
a hidden record of who you aspired to be, as you became who you are now instead.
- Eric Bellm
@BinRoot
BinRoot / river.quote
Created December 3, 2012 15:41
River
No man ever steps in the same river twice, for it's not the same river and he's not the same man.
- Heraclitus
@BinRoot
BinRoot / gist:4197112
Created December 3, 2012 18:58
Transpose all the things!
for k=1:size(cmat,2),
cmat(:,k)=toggleToZero(cmat(:,k)', 0.2)';
end
@BinRoot
BinRoot / hipster.quote
Created December 4, 2012 05:45
Hipster
The hipster is a scholar of social forms, a student of cool.
- Christy Wampole