Skip to content

Instantly share code, notes, and snippets.

View jakswa's full-sized avatar

Jake Swanson jakswa

View GitHub Profile
import java.util.Scanner;
//Jake Swanson
//Doubly linked list example
class Node { // Node.java
//tests node class
public static void main(String [] args) {
final int LIST_LENGTH = 10;
//variables for test
@jakswa
jakswa / QueueJakes.java
Created February 25, 2010 03:38
circular queue in java
import java.util.Scanner;
public class QueueJakes {
public static void main (String [] args) {
Scanner myscan = new Scanner(System.in);
System.out.print("Enter max queue size: ");
int qSize = myscan.nextInt(), choice;
Queue q = new Queue(qSize);
<html>
<head>
<title>My Heap</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<style type="text/css">
body {
font-family: monospace;
}
</style>
<script type="text/javascript">
@jakswa
jakswa / notifyme
Created May 29, 2010 21:11
notifyme: timed notifications in ubuntu
#!/bin/sh
# I wrote this to create timed notifications in ubuntu
# Usage: notifyme <time> <title> [text]
# Example command: notifyme 5s "Title" "Msg text"
# Being input with Alt-F2: http://i.imgur.com/u5SCP.jpg
# example result: http://i.imgur.com/xFS9x.jpg
if which notify-send > /dev/null; then
if [ -n "$1" ] && [ -n "$2" ]; then
@jakswa
jakswa / HelloNode.html
Created May 28, 2011 16:45
CLOUD9IDE WOOO
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"
type="text/javascript"></script>
<script type="text/javascript">
$().ready(function() { $("#btnn").click(function() {
$.get("http://hellonode.jakswa.cloud9ide.com",
function(data) {
$("body").html(data);
}
@jakswa
jakswa / gist:1263579
Created October 5, 2011 03:52
this program prints out: HOLY FUNKY FUNC!
package main
import "fmt"
func funky() func() func() func() {
return func() func() func() {
return func() func() {
return func() {
fmt.Println("HOLY FUNKY FUNC!")
}
@jakswa
jakswa / 0-readme.md
Last active December 17, 2015 19:29 — forked from samgranieri/0-readme.md

ruby-1.9.3-p385 cumulative performance patch for rbenv

This installs a patched ruby 1.9.3-p385 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.

Requirements

You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.

### Keybase proof
I hereby claim:
* I am jakswa on github.
* I am jakswa (https://keybase.io/jakswa) on keybase.
* I have a public key whose fingerprint is 7D53 0FE7 2E7F 75CB 2D54 0197 1992 D824 1500 6FF6
To claim this, I am signing this object:
@jakswa
jakswa / gzip.md
Last active September 24, 2015 20:04

non-gzip (35KB):

➜  callrail git:(js/phones) ✗ wget -S  http://cdn.callrail.com/companies/297407543/f6b60be971df89061219/12/swap.js
--2015-09-24 16:01:20--  http://cdn.callrail.com/companies/297407543/f6b60be971df89061219/12/swap.js
Resolving cdn.callrail.com... 94.31.29.146
Connecting to cdn.callrail.com|94.31.29.146|:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 200 OK
  Date: Thu, 24 Sep 2015 20:01:20 GMT