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
#!/bin/sh | |
# Jerome Martinez | |
# MON20-APR15: gif making or whatev idk | |
# nyoom | |
WOOSH1="woosh1.gif" | |
WOOSH2="woosh2.gif" | |
OUTFILE="woosh.gif" | |
# lmao im gurl |
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
#define OFF_THE_CHARTS 10000000000000000000000000000000000000000bitch00000000000000000 | |
Class Victor : Person | |
{ | |
Private: | |
int mDramaticLevel; | |
int mCoolnessLevel; | |
int mNerdLevel; | |
Public: |
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
(program graph1 (progn output) | |
(progn (:= i 0) | |
(label 1) | |
(if (<= i 32) | |
(progn (:= x (* 6.250000e-02 | |
(float i))) | |
(:= y (* (funcall exp (- x)) | |
(funcall sin (* 6.283180e+00 | |
x)))) | |
(:= n (+ (funcall round (* 3.200000e+01 |
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
from pprint import pprint | |
import re, sys, unicodedata | |
from django.utils import simplejson | |
from google.appengine.ext import webapp | |
from google.appengine.ext.webapp.util import run_wsgi_app | |
from google.appengine.ext import db | |
from DataModels import Crisis, Organization, Person | |
class SearchResults(webapp.RequestHandler): | |
def get(self): |
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
# Jerome Martinez | |
# N-Gram parser | |
# November, 10, 2011 | |
# run through command line: | |
# arguments: <input_file_name> <output_file_name> <n-gram_count> | |
# (optional) arguments: <input_file_name> --verbose <n-gram_count> | |
# outputs the n-gram as a dictionary | |
# of keys and values where the key |
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 java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.Random; | |
import org.lwjgl.LWJGLException; | |
import org.lwjgl.input.Keyboard; | |
import org.lwjgl.input.Mouse; | |
import org.lwjgl.opengl.Display; | |
import org.lwjgl.opengl.DisplayMode; | |
import org.lwjgl.opengl.GL11; |
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
cd ~ | |
sudo apt-get update | |
sudo apt-get install openjdk-7-jre -y | |
wget http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.1.tar.gz -O elasticsearch.tar.gz | |
tar -xf elasticsearch.tar.gz | |
rm elasticsearch.tar.gz | |
sudo mv elasticsearch-* elasticsearch | |
sudo mv elasticsearch /usr/local/share |
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
# Jerome Martinez | |
# 19 February 2013 | |
# Context-free grammar production | |
# This is our grammar: | |
# | |
# S -> SS [NonTerm, NonTerm] | |
# S -> ( S ) [LPAREN, NonTerm, RPAREN] | |
# S -> [ S ] [LBRACK, NonTerm, RBRACK] | |
# S -> { S } [LBRACE, NonTerm, RBRACE] |
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
int[] numbers = {1,2,3,6,1,6,48,38,77,23}; | |
void setup() { | |
int x = findMaximum(numbers); | |
println(x); | |
} | |
int findMaximum(int[] someNumbers) { | |
int currentMax = someNumbers[0]; | |
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
int numFlorets = 500; | |
float angleFloret = 137.5; | |
int scaleFloret = 15; | |
void setup() { | |
size(500,500); | |
} | |
void draw() { | |
background(255); |
OlderNewer