README is empty
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 re | |
with open("calon-dprd_diy.csv", 'rU') as f: | |
for line in f: | |
if re.search(r'[\x80-\xFF]', line): | |
print 'bad string in line ' + line |
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
{ | |
"results": { | |
"count": 1, | |
"polygons": [{ | |
"id_polygon": 22848, | |
"provinsi DPD": "Daerah Khusus Ibukota Jakarta", | |
"caleg_results": { | |
"count": 35, | |
"caleg": [] | |
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 shutil | |
import os | |
# from http://stackoverflow.com/a/15664273/958481 | |
def folders_only(dir, files): | |
return [f for f in files if os.path.isfile(os.path.join(dir, f))] | |
folderin = './hello' | |
folderout = './goodbye' |
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 moviepy.editor import * | |
for filename in glob.glob("./*.MOV"): | |
output_filename = './gifs/' + filename.split('/')[-1].split('.')[0] + '.gif' | |
VideoFileClip(filename).speedx(6.0).resize(0.14).to_gif(output_filename, fps=2) |
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 moviepy.editor import * | |
for filename in glob.glob("./*.mov"): | |
output_filename = './' + filename.split('/')[-1].split('.')[0] + '-resized.mov' | |
VideoFileClip(filename).fx(vfx.rotation, 180).resize(0.3).to_videofile(output_filename, audio=False) |
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
Consider using 'dppx' units, as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 144dpi) (index):1 | |
Failed to load resource: net::ERR_NETWORK_CHANGED https://slack.global.ssl.fastly.net/29047/js/rollup-client_1415507847.https.gz.js | |
Failed to load resource: net::ERR_NETWORK_CHANGED https://fonts.googleapis.com/css?family=Lato:400,700,900,400italic,700italic,900italic | |
Failed to load resource: net::ERR_NETWORK_CHANGED https://www.dropbox.com/static/api/1/dropins.js | |
Failed to load resource: net::ERR_BLOCKED_BY_CLIENT https://www.google-analytics.com/analytics.js | |
Failed to load resource: net::ERR_BLOCKED_BY_CLIENT https://slack.global.ssl.fastly.net/20653/img/services/twitter_64.png | |
Failed to load resource: net::ERR_NETWORK_CHANGED https://slack.global.ssl.fastly.net/29046/js/libs_emoji_1415507749.https.gz.js | |
Failed to load resource |
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 operator import itemgetter | |
import re | |
import sys | |
import xml.etree.cElementTree as ET | |
def parseXML(xml_in): | |
''' | |
parse the document XML | |
''' |
OlderNewer