I hereby claim:
- I am silverjam on github.
- I am silverjam (https://keybase.io/silverjam) on keybase.
- I have a public key whose fingerprint is 419A 9B7C 828C 5976 E6E5 8479 5D43 186D E68D C7DD
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#include <stdlib.h> | |
#include <stdio.h> | |
#include <stdarg.h> | |
#include <string.h> | |
#include <strings.h> | |
#include <unistd.h> | |
#define COUNTOF(arr) (sizeof(arr) / sizeof(arr[0])) | |
char* pathsearch(const char* program) |
var state = { | |
headerLevel1: 0, | |
headerLevel2: 0, | |
headerLevel3: 0, | |
} | |
var private = { | |
getSectionNumber: function (paragraph) | |
{ | |
if ( paragraph.getHeading() == DocumentApp.ParagraphHeading.HEADING1 ) |
import java.util.*; | |
public class HasUniqueChars | |
{ | |
public static boolean hasUniqueChars(String toTest) | |
{ | |
char charArray[] = toTest.toCharArray(); | |
Arrays.sort(charArray); | |
for (int x = 1; x < charArray.length; x++) |
import java.util.*; | |
import java.lang.*; | |
class Main | |
{ | |
public static void countLevels(Integer tree[], int index, int levels[], int level) | |
{ | |
if ( index >= tree.length ) | |
return; | |
import java.util.*; | |
class Node | |
{ | |
public Integer value; | |
public int index; | |
public int level; | |
public Node(int index, int value, int level) |
import java.util.*; | |
class Main | |
{ | |
public static void sumsTo(int nums[], int sum) | |
{ | |
HashMap<Integer, Integer> hash = new HashMap<Integer, Integer>(); | |
for(int num : nums) | |
hash.put(num, 1); | |
static final float CANVAS_X = 900; | |
static float CANVAS_Y = 0; // compute me later | |
class Node | |
{ | |
Integer value; | |
int level; | |
int levelOffset; | |
int index; |
// Answering the "how many squares" problem (my answer = 40): | |
// | |
// http://media-geeks.com/special-features/how-many-squares-indeed/ | |
// | |
// HasCanvas: | |
// | |
// http://hascanvas.com/Counting-Squares | |
// | |
// GIF outptu: | |
// |
// Paste in to JavaScript console | |
function killzergs() | |
{ | |
var zergs = document.getElementsByClassName("zr_zergling_container"); | |
for(x = 0; x < zergs.length; x = x + 1) { | |
var evt = document.createEvent("HTMLEvents"); | |
evt.initEvent('mousedown', true, true ); | |
zergs[x].dispatchEvent(evt); | |
var evt = document.createEvent("HTMLEvents"); | |
evt.initEvent('mouseup', true, true ); |