Skip to content

Instantly share code, notes, and snippets.

View a10k's full-sized avatar

Alok Pepakayala a10k

View GitHub Profile
@a10k
a10k / dabblet.css
Created October 7, 2012 14:09
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
// Closest 64 bit integers to a given binary 64 bit integer,less than a distance of 4 will be sorted and printed
//input line will have 0,1,2,232983293 .. keys
//input line2 is a 64 char binary 100100111010....11
//we print all keys that are within a max bit error of 4
#include<stdio.h>
#define STR_LEN 40000000
@a10k
a10k / index.html
Last active November 6, 2015 20:28
A Managed Object Model Diagram Proposal
<html xml:lang="en" lang="en">
<meta charset="utf-8">
<style>
.node {
cursor: pointer;
}
.node circle {
fill: #fff;
stroke: steelblue;
stroke-width: 1.5px;
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@a10k
a10k / index.html
Last active November 17, 2015 19:14
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Sankey Diagram</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.9/d3.min.js"></script>
<style type="text/css">
body {
margin: 1em;
}
@a10k
a10k / index.html
Created November 28, 2015 08:20
quicksort
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<style>
line {
stroke: #002776;
stroke-width: 5px;
}
@a10k
a10k / index.html
Created November 28, 2015 08:42
mergesort
<!DOCTYPE html>
<meta charset="utf-8">
<style>
line {
stroke: #002776;
stroke-width: 5px;
}
</style>
<body>
@a10k
a10k / index.html
Last active November 28, 2015 09:05
titanic
<!DOCTYPE html>
<meta charset="utf-8">
<title>Parallel Sets</title>
<style>
.dimension { cursor: ns-resize; }
.category { cursor: ew-resize; }
.dimension tspan.name { font-size: 1.5em; fill: #333; font-weight: bold; }
.dimension tspan.sort { fill: #000; cursor: pointer; opacity: 0; }
.dimension tspan.sort:hover { fill: #333; }
.dimension:hover tspan.name { fill: #000; }
@a10k
a10k / index.html
Last active November 28, 2015 09:22
uber
<!DOCTYPE html>
<html class="ocks-org do-not-copy">
<meta charset="utf-8">
<title>Uber Rides by Neighborhood</title>
<style>
#circle circle {
fill: none;
pointer-events: all;
}
@a10k
a10k / data.tsv
Last active November 30, 2015 09:18
letter frequency
A .08167
B .01492
C .02780
D .04253
E .12702
F .02288
G .02022
H .06094