Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@christhchild28
christhchild28 / .block
Last active December 11, 2018 14:49
spiral circles
license: MIT
The Instructions:
Using Node.js (in Cloud 9), make a request for each of the ten "Meeting List Agenda" pages for Manhattan. Important: show the code for all ten requests.
https://parsons.nyc/aa/m01.html
https://parsons.nyc/aa/m02.html
https://parsons.nyc/aa/m03.html
https://parsons.nyc/aa/m04.html
https://parsons.nyc/aa/m05.html
https://parsons.nyc/aa/m06.html
https://parsons.nyc/aa/m07.html
@christhchild28
christhchild28 / Pair Trading Algorithm
Created April 19, 2018 16:09
The following is a function that implements the trading strategy using two airline stocks (American Airlines and United Airlines)
// Implements a Pair Trading Strategy
import numpy as np
def initialize(context):
"""
Called once at the start of the algorithm.
"""
# Every day we check the pair status
schedule_function(check_pairs, date_rules.every_day(), time_rules.market_close(minutes=60))
@christhchild28
christhchild28 / HumanCostData.csv
Created September 9, 2015 19:08
The Human Cost Project
inflation adjusted detail culture / context when? gender original cost
4,480 slave (very young child) Ancient Egypt -500 either 140 silver drachmas
20,480 slave (8 years old) Ancient Egypt -500 Female (girl) 640 silver drachmas
32,000 slave Ancient Egypt -500 Male 1000 silver drachmas
2,080 Gladiator Ancient Rome 0 Male 208 denarii
6,000 slave Ancient Rome 0 Male (boy) 300 denarii
12,000 slave Ancient Rome 0 Female (girl) 600 denarii
24,000 slave Ancient Rome 0 Male 1200 denarii
1,200 Afghanistan Civilian death (Australian Military) Australian Military 2011-2013 both $1200 AUD
1,300 Male Irish Slave Caribbean 1650 Male $8
This file has been truncated, but you can view the full file.
eventid iyear imonth iday approxdate extended resolution country country_txt region region_txt provstate city latitude longitude specificity vicinity location summary crit1 crit2 crit3 doubtterr alternative alternative_txt multiple success suicide attacktype1 attacktype1_txt attacktype2 attacktype2_txt attacktype3 attacktype3_txt targtype1 targtype1_txt targsubtype1 targsubtype1_txt corp1 target1 natlty1 natlty1_txt targtype2 targtype2_txt targsubtype2 targsubtype2_txt corp2 target2 natlty2 natlty2_txt targtype3 targtype3_txt targsubtype3 targsubtype3_txt corp3 target3 natlty3 natlty3_txt gname gsubname gname2 gsubname2 gname3 gsubname3 motive guncertain1 guncertain2 guncertain3 nperps nperpcap claimed claimmode claimmode_txt claim2 claimmode2 claimmode2_txt claim3 claimmode3 claimmode3_txt compclaim weaptype1 weaptype1_txt weapsubtype1 weapsubtype1_txt weaptype2 weaptype2_txt weapsubtype2 weapsubtype2_txt weaptype3 weaptype3_txt weapsubtype3 weapsubtype3_txt weaptype4 weaptype4_txt weapsubtype4 weapsubtype4_
attack_id location_names campaign_name verified_attack_type attack_date number_killed number_wounded
1224284004 Lebanon Hezbollah vs. Israel Confirmed Suicide 11/11/1982 115 28
252966201 Lebanon Hezbollah vs. U.S. & France Confirmed Suicide 4/18/1983 60 120
-65942158 Lebanon Hezbollah vs. U.S. & France Confirmed Suicide 10/23/1983 58 88
338923077 Lebanon Hezbollah vs. U.S. & France Confirmed Suicide 10/23/1983 230 88
1596604401 Lebanon Hezbollah vs. Israel Confirmed Suicide 11/4/1983 60 10
489179294 Kuwait Hezbollah vs. U.S. & France Confirmed Suicide 12/12/1983 6 62
1337055501 Lebanon Hezbollah vs. Israel Confirmed Suicide 4/12/1984 6 4
-641581578 Lebanon Hezbollah vs. Israel Confirmed Suicide 6/16/1984 0 5
-1340462525 Lebanon Hezbollah vs. U.S. & France Confirmed Suicide 9/20/1984 23 40