This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias tmux="TERM=screen-256color-bce tmux -2" | |
alias geany="sublime" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(import javax.swing.JFrame) | |
(import javax.swing.JPanel) | |
(import java.awt.event.ActionEvent) | |
(import java.awt.Dimension) | |
(import java.awt.Color) | |
(import javax.swing.Timer) | |
(import java.awt.event.ActionListener) | |
(import java.awt.event.KeyListener) | |
(import java.awt.image.BufferedImage) | |
(set! *warn-on-reflection* true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <GL/glut.h> | |
#define GOOP_WIDTH 1000 | |
#define GOOP_HEIGHT 1000 | |
static GLubyte GoopImage[GOOP_WIDTH][GOOP_HEIGHT][3]; | |
void goop(void) { | |
int i, j, k; | |
for (i = 2; i < GOOP_HEIGHT-2; i++) { | |
for (j = 10; j < GOOP_WIDTH-25; j++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import random | |
from pyglet.image import ImageData | |
from pyglet.window import * | |
w = 320 | |
h = 320 | |
window = pyglet.window.Window() | |
window.set_size(w,h) | |
img = pyglet.image.create(w,h) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.swing.*; | |
import java.awt.*; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import java.awt.image.BufferedImage; | |
public class Goop extends JPanel implements ActionListener { | |
private BufferedImage canvas; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from math import pi, sin, cos | |
from pyglet.gl import * | |
from pyglet.window import * | |
import pyglet | |
tile = 24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
express = require "express" | |
crypto = require "crypto" | |
user = require "./src/user" | |
project = require "./src/project" | |
app = express.createServer() | |
app.listen 8008 | |
app.get '/', (req, res) -> | |
res.write JSON.stringify {version:0.3} | |
res.end "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
puts "limit number:" | |
max = Integer(gets) | |
primes = [] | |
puts "going from 2 to #{max}" | |
(2..max).select do |current| | |
# if current is divisible by any number in the array (that is not itself) it is not prime | |
isPrime = true | |
primes.each do |prime| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn random-letters [limit iteration] | |
(println (format "iteration: %s" iteration)) | |
(println (format "limit: %s" limit)) | |
) | |
(random-letters 25 5) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test; | |
public class Test { | |
private static String alphabet = "abcdefghijklmnopqrstuvwxyz"; | |
public static void main(args[]) { //haven't written main in awhile... pretty sure this is wrong | |
int limit = 100; //hard coding since I dont remember how to work with args | |
int iteration = 3; //every third number | |
int count = iteratin; | |
for(int i = 0; i < limit; i++) { |
NewerOlder