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 json | |
with open('issuelist_json') as json_data: | |
myjson = json.load(json_data) | |
for issue in myjson: | |
print("- [ ]", "[" + issue["title"] + "](" + issue["html_url"], ")" ) |
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/env python3.4 | |
# mainly copied from https://cherrypy.readthedocs.org/en/3.2.6/progguide/files/uploading.html | |
import os | |
localDir = os.path.dirname(__file__) # current working directory | |
absDir = os.path.join(os.getcwd(), localDir) # os.getcwd() : Return a string representing the current working directory. | |
import cherrypy |
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
// requires jQuery | |
$(function clickToActivate() { | |
$(".videoplaceholder" ).click(function() { | |
var videourl = $( this ).attr( "videourl" ); | |
$( this ).replaceWith( '<iframe src="' + videourl + '" frameborder="0"></iframe>' ); | |
}); | |
}); | |
// CODE FOR CSS |
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
;; Adapted following script to OSX: | |
;; https://genomeek.wordpress.com/2013/03/08/emarch-2-create-a-pdf-with-highlighted-code-source/ | |
(defun print-to-pdf () | |
(interactive) | |
(ps-spool-buffer-with-faces) | |
(switch-to-buffer "*PostScript*") | |
(write-file "tmp.ps") | |
(kill-buffer "tmp.ps") | |
(setq cmd (concat "pstopdf tmp.ps -o " (buffer-name) ".pdf")) | |
(shell-command cmd) |
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 argparse | |
import configparser | |
# Parse the command line arguments | |
parser = argparse.ArgumentParser() | |
parser.add_argument('filename', help='the name of the config file') | |
args = parser.parse_args() | |
# Parse the input data | |
config = configparser.ConfigParser() |