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 | |
''' | |
api_test.py | |
''' | |
import requests | |
engine = 'pv66-lab' | |
auth = ('admin', 'redwood') | |
''' |
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 | |
''' | |
thumb.py | |
making little images; PIL's thumbnail method be damned! | |
usage: | |
$ thumb target.png | |
$ thumb target.png -W 300 | |
$ thumb target.jpg -W 300 -H 200 | |
$ thumb target.jpg -W 300 -H 200 -o /thumbs/target_thumb.png | |
''' |
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 | |
''' | |
testing a login to meduele using sessions | |
meduele checks csrf tokens with every request, even during login | |
''' | |
import requests | |
from BeautifulSoup import BeautifulSoup | |
# need to capture a valid csrf token | |
# first visit the login page to generate one |
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 | |
''' | |
ncdc_processor.py | |
imports a csv of historical weather data from the NCDC | |
exports a somewhat more sanely formatted csv suitable for graphing | |
data from http://www7.ncdc.noaa.gov/CDO/cdo | |
usage: | |
$ python ncdc_processor.py /path/to/ncdc_data.txt /path/to/export.csv |
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 | |
''' | |
csv_to_flot_data.py | |
extract data from a csv; save a js file with flot-compatible data | |
usage: | |
$ python csv_to_flot_data.py /path/to/input.csv /path/to/output.js | |
''' | |
import csv | |
import sys | |
import time |
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
Map { background-color: #b8dee6; } | |
#countries { ::polygon { polygon-fill: #fff; } } | |
#boladm { | |
::polygon { | |
polygon-fill: #76b8d5; | |
} | |
::line { | |
line-color: #3f3f3f; |
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
$ ssh-keygen -l -f /path/to/keys/id_rsa.pub | |
2048 aa:bb:cc:dd:ee:ff:00:11:22:33:44:55:66:77:88:99 id_rsa.pub (RSA) |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<Response> | |
<Say>Hello. This form is called nother-form. First question.</Say> | |
<Play>https://ivrhub_prompts_akiajf7vh6epo5gc7eia.s3.amazonaws.com/kvv27g7m4eknsqv2nnudqpge.mp3</Play> | |
<Gather /> | |
</Response> |
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
$(function() { | |
// drop the ajax-ed-ness..it's just not working out | |
// save the below in a gist | |
$('.edit').editable(function(value, settings) { | |
// gather up the user data | |
var form_data = { | |
_csrf_token: '{{ csrf_token() }}' | |
}; |
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
Map { | |
background-color: #b8dee6; | |
} | |
#10madmin0countries { | |
line-color:#594; | |
line-width:0.5; | |
polygon-opacity:1; | |
polygon-fill:#ae8; | |
} |