Skip to content

Instantly share code, notes, and snippets.

View jasdev's full-sized avatar

Jasdev Singh jasdev

View GitHub Profile
@jasdev
jasdev / gist:7504303
Created November 16, 2013 19:33
On valuations
“You could take all the gold that’s ever been mined, and it would fill a cube 67 feet in each direction. For what it’s worth at current gold prices, you could buy — not some — all of the farmland in the United States. Plus, you could buy 10 Exxon Mobils (XOM), plus have $1 trillion of walking-around money. Or you could have a big cube of metal. Which would you take? Which is going to produce more value?” - Warren Buffett
@jasdev
jasdev / rtb.html
Created April 16, 2013 01:39
For future trolling
<html>
<title>rtb</title>
<head>
<meta http-equiv="refresh" content="5; url=http://twitter.com/r00tth3b0x">
</head>
<body bgcolor="black">
<pre><center><font color="white">
d8888b. .d88b. .d88b. d888888b d888888b db db d88888b d8888b. .d88b. db db
88 `8D .8P Y8. .8P Y8. `~~88~~' `~~88~~' 88 88 88' 88 `8D .8P Y8. `8b d8'
@jasdev
jasdev / rtb.txt
Created April 16, 2013 01:38
lolyes
d8888b. .d88b. .d88b. d888888b d888888b db db d88888b d8888b. .d88b. db db
88 `8D .8P Y8. .8P Y8. `~~88~~' `~~88~~' 88 88 88' 88 `8D .8P Y8. `8b d8'
88oobY' 88 88 88 88 88 88 88ooo88 88ooooo 88oooY' 88 88 `8bd8'
88`8b 88 88 88 88 88 88 88~~~88 88~~~~~ 88~~~b. 88 88 .dPYb.
88 `88. `8b d8' `8b d8' 88 88 88 88 88. 88 8D `8b d8' .8P Y8.
88 YD `Y88P' `Y88P' YP YP YP YP Y88888P Y8888P' `Y88P' YP YP
@jasdev
jasdev / sample.json
Created January 20, 2013 02:07
Sample Snapgraph /leaderboard output
[
{
_id: "yodawg",
score: "72948"
},
{
_id: "vivekb",
score: "10557"
},
{
@jasdev
jasdev / sample.json
Created January 20, 2013 02:04
Sample Snapgraph /getuser out
{
_id: "octopi",
score: "3749",
children: [
{
name: "justdavesingh",
score: "5"
},
{
name: "vivekb",
cdls() {
if [ -z "$1" ]; then
cd && ls
else
cd "$*" && ls
fi
}
alias cd=cdls
@jasdev
jasdev / jsonp.js
Created December 3, 2012 21:51
JSONP Call Scaffolding
function postCall(data) {
console.log("Data from JSON");
}
$(document).ready(function () {
var endpoint = //URL here
$.ajax({url: endpoint, dataType: "jsonp", success: postCall});
});
@jasdev
jasdev / paste.txt
Created November 20, 2012 21:11
Keep fighting.
"Sometimes when I find myself comparing myself to others and losing
steam mentally/emotionally, I have to remind myself where I started, the
attitude I had when I began, and how I have already achieved things I never
thought possible and that there is no reason for that to change so long as I
stay committed, balanced, consistent and hungry."
@jasdev
jasdev / DummyContent.java
Created November 2, 2012 04:58
Async Task with Content
package com.cs4720.drinkengine_android.dummy;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@jasdev
jasdev / Runner2.java
Created October 31, 2012 15:49
Create duplicates through recursion
//Helping out a friend with a quick hack to make duplicates recursively (made in 2 mins)
import java.util.LinkedList;
public class Runner2 {
/**
* @param args
*/