Skip to content

Instantly share code, notes, and snippets.

View jeffmarshall's full-sized avatar

Jeff Marshall jeffmarshall

View GitHub Profile
@jeffmarshall
jeffmarshall / countries.json
Created September 30, 2016 17:01 — forked from keeguon/countries.json
A list of countries in JSON
[
{name: 'Afghanistan', code: 'AF'},
{name: 'Åland Islands', code: 'AX'},
{name: 'Albania', code: 'AL'},
{name: 'Algeria', code: 'DZ'},
{name: 'American Samoa', code: 'AS'},
{name: 'AndorrA', code: 'AD'},
{name: 'Angola', code: 'AO'},
{name: 'Anguilla', code: 'AI'},
{name: 'Antarctica', code: 'AQ'},
@jeffmarshall
jeffmarshall / gist:5067570
Last active December 14, 2015 09:49 — forked from dianaj/gist:5067043
public class cosine2 {
public static void main(String [] args) {
double x = Double.parseDouble(args [0]);
x = Math.toRadians (x);
System.out.println (x);
double r = 0.0;
for (int i=0; i<8; i=i+1) {
int n = 2*i;
public class cosine2 {
public static void main(String [] args) {
double x = Double.parseDouble(args [0]);
x = Math.toRadians (x);
System.out.println (x);
double r = 0.0;
for (int i=0; i<8; i=i+1) {
@jeffmarshall
jeffmarshall / gist:5067229
Last active December 14, 2015 09:49 — forked from dianaj/gist:5067043
public class cosine2 {
public static void main(String [] args) {
double x = Double.parseDouble(args [0]);
x = Math.toRadians (x);
System.out.println (x);
for (int i=0; i<8; i=i+1) {
int n = 2*i;
double p = Math.pow(x,n);
@jeffmarshall
jeffmarshall / es.sh
Last active December 14, 2015 01:39 — forked from sgringwe/es.sh
cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless -y
# Download the compiled elasticsearch rather than the source.
wget http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.5.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