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 | |
# encoding: utf-8 | |
from __future__ import print_function | |
from __future__ import division | |
""" | |
broadband_cap | |
============== | |
Calculate time to reach broadband cap with specified bandwidth speeds | |
Usage:: |
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 | |
import json | |
import rdflib | |
from rdflib.plugin import register, Parser, Serializer | |
register('json-ld', Serializer, 'rdflib_jsonld.serializer', 'JsonLDSerializer') | |
ex = rdflib.Namespace("http://example.com/ns#") | |
g = rdflib.ConjunctiveGraph() |
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/sh | |
## newtab.sh -- newtab(), newwin() functions and osascripts for OSX Terminal | |
## src: https://stackoverflow.com/questions/7171725/open-new-terminal-tab-from-command-line-mac-os-x/12147804#12147804 | |
## license: Creative Commons cc by-sa 3.0 | |
function newtab { | |
# newtab() -- Open a new tab in the current Terminal window and | |
# optionally run a command. | |
# When invoked via a function named 'newwin', opens a new Terminal *window* instead. |
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 rdflib import * | |
SDO = Namespace("http://schema.org/") | |
datatype_coerce_map = { | |
#SDO.Number: XSD.double, | |
SDO.Date: 'xsd:date', | |
SDO.DateTime: "xsd:dateTime", | |
} |
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
jQuery(document).ready(function($){ | |
var body = $(document.body); | |
body.on('click', 'a[rel~="external"], a[target="_blank"]', function(e) { | |
e.preventDefault(); | |
var destination = window.open(); | |
destination.opener = null; | |
destination.location = this.href; | |
return 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
{ | |
"@context": { | |
"@vocab": "http://ipython.org/nbformat/v4/", | |
"nb4": "http://ipython.org/nbformat/v4/", | |
"xsd": "http://www.w3.org/2001/XMLSchema#", | |
"foaf": "http://xmlns.com/foaf/0.1/", | |
"language": {"@type": "@id"}, | |
"codemirror_mode": {"@type": "@id"}, | |
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/bash | |
# Call with a percentage value from 0 to 100 | |
# 0 means only red, 50 means half of green and blue is shown through | |
# if you don't give any arguments the calibration is cleared | |
if [[ -z "$1" ]]; then | |
echo Clearing all calibrations | |
xcalib -clear | |
else |
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 | |
""" | |
ordereddefaultdict.OrderedDefaultDict | |
.. code:: bash | |
$ python ./ordereddefaultdict.py -t | |
$ nosetests ./ordereddefaultdict.py | |
$ py.test ./ordereddefaultdict.py |
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 java.awt.*; | |
import java.awt.image.*; | |
import java.io.*; | |
import java.util.*; | |
import java.util.List; | |
import javax.swing.*; | |
import javax.imageio.ImageIO; | |
import java.net.*; | |
/** |
OlderNewer