Skip to content

Instantly share code, notes, and snippets.

View jromeem's full-sized avatar
🍰
Eating cake

Jerome Martinez jromeem

🍰
Eating cake
View GitHub Profile
@jromeem
jromeem / bibliography.bib
Created September 21, 2021 19:09 — forked from nylki/bibliography.bib
bibTeX file
@article{powsner_graphical_1994,
title = {Graphical Summary of Patient Status},
volume = {344},
url = {http://www.sciencedirect.com/science/article/pii/S0140673694914060},
timestamp = {2015-09-09T18:25:01Z},
number = {8919},
journaltitle = {The Lancet},
author = {Powsner, Seth M. and Tufte, Edward R.},
urldate = {2015-09-09},
#!/bin/bash
python -m SimpleHTTPServer
### Keybase proof
I hereby claim:
* I am jromeem on github.
* I am jromeem (https://keybase.io/jromeem) on keybase.
* I have a public key whose fingerprint is D5B0 C2C5 9145 2274 EE63 7387 B18E F40F 0E90 71A2
To claim this, I am signing this object:
int numFlorets = 500;
float angleFloret = 137.5;
int scaleFloret = 15;
void setup() {
size(500,500);
}
void draw() {
background(255);
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];
@jromeem
jromeem / CFGProd.py
Created February 27, 2013 01:25
well formed brackets of many types! python is awesome! hooray for noam chomsky + regular grammars! :D
# 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]
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
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;
@jromeem
jromeem / ngrams.py
Created August 22, 2012 22:18
In the fields of computational linguistics and probability, an n-gram is a contiguous sequence of n items from a given sequence of text or speech. --wiki
# 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
@jromeem
jromeem / Search.py
Last active October 9, 2015 03:18
I written the search functionality for our world crisis database
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):