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> | |
<style> | |
@-moz-keyframes draw { | |
50% { | |
stroke-dashoffset: 0; | |
} | |
} | |
@-webkit-keyframes draw { | |
50% { |
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
ffmpeg -i input.m4v -ss 00:50:57 -t 00:00:14 cut.mp4 | |
ffmpeg -i cut.mp4 -r 10 output%05d.png | |
convert tagd*.png -loop 0 -dither none -deconstruct -layers optimize -matte -depth 8 -background none -quantize transparent output.gif |
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 turtle | |
t = turtle.Pen() | |
t.left(180) | |
t.up() | |
t.forward(60) | |
t.down() | |
t.right(90) | |
t.forward(60) | |
t.left(90) |
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
[ | |
{ | |
"joke": "orange", | |
"punchline": "Orange you glad I'm telling you all these knock-knock jokes?", | |
"knockknock": true | |
}, | |
{ | |
"joke": "boo", | |
"punchline": "Don't cry about it. It's just a joke.", | |
"knockknock": true |
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
SALAMMBO | |
By Gustave Flaubert | |
(http://www.gutenberg.org/files/1290/1290-h/1290-h.htm) | |
CHAPTER I: THE FEAST | |
It was at Megara, a suburb of Carthage, in the gardens of Hamilcar. The soldiers whom he had commanded in Sicily were having a great feast to celebrate the anniversary of the battle of Eryx, and as the master was away, and they were numerous, they ate and drank with perfect freedom. |
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
city=$1 | |
if [[ -n "$city" ]]; then | |
echo "$city" | |
wget -q -O states.txt -nc http://www2.census.gov/geo/docs/reference/state.txt | |
echo "Fetched state file" | |
wget -q -O places.txt -nc http://www2.census.gov/geo/docs/reference/codes/files/national_places.txt | |
echo "Fetched national places file" | |
csvjoin -e "iso-8859-1" -d "|" -c 2,1 places.txt states.txt | csvcut -c 8,9,10,7,4,3 | csvsort -c 6 | csvformat -D "|" > places_with_state_names.txt | |
echo "Merged place file with states" |
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
# like ok say you have a local file called `test.md` and your access token saved as an environmental variable ($GITHUB_TOKEN) | |
file_contents=$(cat test.md); curl -u cjwinchester:$GITHUB_TOKEN -X POST -d '{ "files": { "test.md": { "content": "'"$(echo $file_contents)"'" } }, "description": "testing the gist endpoint here don't mind me", "public": true }' https://api.github.com/gists |
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
[{"client": {"city": "AUSTIN", "name": "ST. DAVID'S FOUNDATION", "zip": "78704", "state": "TEXAS", "biz": "NON-PROFIT", "address": "811 BARTON SPRINGS RD, STE 600"}, "lobbyist": {"city": "AUSTIN", "fname": "MICHAEL", "zip": "78701", "lname": "WHELLAN", "state": "TEXAS", "full_name": "MICHAEL WHELLAN", "address": "401 CONGRESS AVENUE, SUITE 2200"}}, {"client": {"city": "AUSTIN", "name": "TX RR620 APARTMENTS, LTD", "zip": "78705", "state": "TEXAS", "biz": "APARTMENT DEVELOPMENT", "address": "1101 S. CAP OF TEXAS HWY, STE F2100"}, "lobbyist": {"city": "AUSTIN", "fname": "JERRY", "zip": "78701", "lname": "HARRIS", "state": "TEXAS", "full_name": "JERRY HARRIS", "address": "111 CONGRESS AVENUE, SUITE 1400"}}, {"client": {"city": "AUSTIN", "name": "SCENIC AUSTIN", "zip": "78762", "state": "TEXAS", "biz": "ENVIRONMENTAL ADVOCACY", "address": "PO BOX 6456"}, "lobbyist": {"city": "AUSTIN", "fname": "KELAN", "zip": "78703", "lname": "ROBINSON", "state": "TEXAS", "full_name": "KELAN ROBINSON", "address": "1717 WEST 6TH S |
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
[{"owner": "24/2 CHILD CARE CENTER INC", "phone": "402-614-0277", "name": "24/2 CHILD CARE CENTER INC", "address": "8025 MAPLE ST Omaha, NE 68134"}, {"owner": "OMAHA CHILD CARE CENTER LLC", "phone": "402-933-4404", "name": "A TO Z LEARNING ACADEMY owned by OMAHA CHILD CARE CENTER LLC", "address": "6901 NORTH 102nd CIR Omaha, NE 68122"}, {"owner": "TJ WOLF LLC", "phone": "402-496-1020", "name": "ABC CHILDCARE", "address": "15650 W MAPLE RD Omaha, NE 68116"}, {"owner": "THE PETRY GROUP INC", "phone": "402-496-1020", "name": "ABC CHILDCARE", "address": "15650 W MAPLE RD Omaha, NE 68116"}, {"owner": "KELLY PETRY", "phone": "402-496-1020", "name": "ABC CHILDCARE", "address": "15650 W MAPLE RD OMAHA, NE 68116"}, {"owner": "ABC DAYCARE LLC", "phone": "402-496-1020", "name": "ABC DAYCARE LLC", "address": "15650 W MAPLE RD Omaha, NE 68116"}, {"owner": "ACADEMIC ADVENTURES, INC", "phone": "402-884-0888", "name": "ACADEMIC ADVENTURES, INC", "address": "16909 BLONDO ST Omaha, NE 68116"}, {"owner": "TINA THAMM", "phone": |
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 twitter import * | |
import requests | |
"Reference: https://pypi.python.org/pypi/twitter" | |
t = Twitter(auth=OAuth( | |
token, | |
token_secret, | |
consumer_key, | |
consumer_secret |