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 glob | |
from PIL import Image | |
import json | |
def calculate_black_stats(): | |
data = {} | |
files = glob.glob("png/*.png") | |
for f in files: | |
year = f.split(".pdf")[0].split("__")[1] | |
page = int(f.split("-")[1].split(".png")[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
#!/bin/bash | |
# | |
#````````````````````````````````````````````````````````````````````````````````````````````````````````````````````` | |
#```````````***`````````````***```````***```````````***````````````******```````````************``````************```` | |
#```````***********`````````***```````***``````````*****```````````**********```````************``````************```` | |
#`````***`````````***```````***```````***`````````***`***``````````***`````***``````````***```````````````````***````` | |
#````***```````````***``````***```````***````````***```***`````````***``````***`````````***`````````````````***``````` | |
#````***```````````***``````***```````***```````***`````***````````***********``````````***```````````````***````````` | |
#````***``````***`***```````***```````***``````*************```````*********````````````***``````````````***`````````` | |
#`````***```````****`````````***`````***``````***************``````***````***```````````***````````````***```````````` |
This file has been truncated, but you can view the full file.
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
Place Overall Place Gender Place Division Name Bib Half Finish Net Finish Gun url | |
3284 3012 520 Aaberg, Thomas (USA) 6337 01:31:31 03:07:34 03:11:44 http://boston-iframe.r.mikatiming.de/2013/?content=detail&fpid=search&pid=search&idp=999999117A73260000086958&lang=EN&event=R | |
Aaker, Aaron (USA) 2018 http://boston-iframe.r.mikatiming.de/2013/?content=detail&fpid=search&pid=search&idp=999999117A732600000889BD&lang=EN&event=R | |
4067 3686 686 Aalholm, Christopher (NOR) 6400 01:31:32 03:11:45 03:15:53 http://boston-iframe.r.mikatiming.de/2013/?content=detail&fpid=search&pid=search&idp=999999117A73260000089E91&lang=EN&event=R | |
9887 2607 1948 Aanonsen, Jacqueline (USA) 21345 01:39:14 03:35:11 03:38:16 http://boston-iframe.r.mikatiming.de/2013/?content=detail&fpid=search&pid=search&idp=999999117A7326000008981C&lang=EN&event=R | |
11119 3283 2330 Abanero, Jennifer (USA) 16758 01:47:03 03:39:28 03:44:41 http://boston-iframe.r.mikatiming.de/2013/?content=detail&fpid=search&pid=search&idp=999999117A73260000089E58&lang |
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
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit |
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
#change the working directory to the Desktop | |
cd ~/Desktop | |
#unzip the word doc into a new directory called anonDocument | |
unzip myDocument.docx -d anonDocument/ | |
#search all of the files in the word doc package and replace any comment or track changes author with anonymous edit | |
grep -rl "w:author" ./anonDocument | xargs sed -i '' 's/w:author="[a-zA-Z0-9 ]*"/w:author="anonymous edit"/g' | |
#change the working directory to the anonDocument directory |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>Text bbox issue</title> | |
</head> | |
<style type="text/css" media="screen"> | |
@import url(http://fonts.googleapis.com/css?family=Cutive); | |
svg text { |
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 | |
# encoding: utf-8 | |
import sys | |
import os | |
import csv | |
import datetime | |
#define market holidays | |
marketHolidays = ["2013-01-21","2013-02-18","2013-03-29","2013-05-27","2013-07-04","2013-09-02","2013-11-28","2013-12-25"] |
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
<html> | |
<head> | |
<title>Perfect sp 500 graphic</title> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
<script src="http://www.datejs.com/build/date.js" charset="utf-8"></script> | |
</head> | |
<body> | |
<style type="text/css"> | |
@font-face { |
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
#download the data and save it as json for the overview via a python script | |
cd overview | |
python overview_scraper.py | |
cd ../sector | |
#download the data and save it as json for the sector info via python script | |
python sector_scraper.py | |
cd .. |
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
# requirement! install imagemagick | |
# brew install imagemagick | |
# or build from source here http://www.imagemagick.org/script/binary-releases.php | |
#navigate to folder of the images | |
cd folderofmyimages/ | |
# take every jpg in the folder and smash into a gif with a frame rate of 0.5 sec | |
convert -delay 50 *.jpg gif_of_my_images.gif |
OlderNewer