This file contains hidden or 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 PIL import Image | |
| height = 1039 | |
| width = 1039 | |
| im = Image.new("RGB", (width,height), "white") | |
| pixels = im.load() | |
| f = open('prime_colors', 'r') | |
| for x in range(width): |
This file contains hidden or 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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <title>Tracking Millions of Ganks in Near Real Time</title> | |
| <meta http-equiv="pragma" content="no-cache" /> |
This file contains hidden or 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
| apply plugin: 'java' | |
| apply plugin: 'groovy' | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| compile 'org.antlr:antlr4:4.1' | |
| compile 'org.codehaus.groovy:groovy-all:2.1.7' |
This file contains hidden or 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
| :benchmarkException in thread "main" com.thoughtworks.xstream.converters.ConversionException: For input string: ".02" : For input string: ".02" | |
| ---- Debugging information ---- | |
| message : For input string: ".02" | |
| cause-exception : java.lang.NumberFormatException | |
| cause-message : For input string: ".02" | |
| class : java.lang.Integer | |
| required-type : java.lang.Integer | |
| converter-type : com.thoughtworks.xstream.converters.SingleValueConverterWrapper | |
| wrapped-converter : com.thoughtworks.xstream.converters.basic.IntConverter | |
| line number : 114 |
This file contains hidden or 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 csv | |
| import requests | |
| GITHUB_USER = 'REDACTED' | |
| GITHUB_PASSWORD = 'REDACTED' | |
| REPO = 'USER/REPO' # format is username/repo | |
| ISSUES_FOR_REPO_URL = 'https://api.github.com/repos/%s/issues' % REPO | |
| AUTH = (GITHUB_USER, GITHUB_PASSWORD) | |
NewerOlder