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
| #!/bin/zsh -e | |
| if [ ! -d "$PROJECT_HOME" ]; then | |
| echo 'Your $PROJECT_HOME needs to be defined' | |
| echo 'http://virtualenvwrapper.readthedocs.org/en/latest/install.html#location-of-project-directories' | |
| exit 1 | |
| fi | |
| if [ "" = "$1" ]; then | |
| echo "Usage: $0 <project_name>" |
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 datetime | |
| def timer(print_=True): | |
| last = datetime.datetime.now() | |
| while True: | |
| now = datetime.datetime.now() | |
| delta = now - last | |
| if print_: | |
| print 'Duration: %s' % delta |
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> | |
| <html> | |
| <head> | |
| <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
| <meta charset="utf-8"> | |
| <title>Qlikview Extension Test</title> | |
| <style> | |
| html, body, #map-canvas { | |
| height: 100%; | |
| margin: 0px; |
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
| #!/usr/bin/python | |
| # ############################################################################ | |
| # INFORMATION | |
| # ############################################################################ | |
| # Developed by: Steven Johnson | |
| # | |
| # Last Updated: 11/13/2013 4:00AM PST | |
| # | |
| # Description: Auto-Delete Watched Items In Plex | |
| # |
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
| def spam(): | |
| def spam(): | |
| def spam(): | |
| def spam(): | |
| def spam(): | |
| def spam(): | |
| def spam(): | |
| def spam(): | |
| def spam(): | |
| def spam(): |
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
| # Author: Raynor Vliegendhart | |
| # LICENSE: MIT | |
| import numpy | |
| def multirater_kfree_np(n_ij, n, k): | |
| ''' | |
| Computes Randolph's free marginal multirater kappa for assessing the | |
| reliability of agreement between annotators. |
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
| #!/bin/bash -e | |
| function image_all(){ | |
| echo "Processing $1" | |
| test -d "$1" || return 1 | |
| cd "$1" | |
| for i in *; do | |
| if [ "$i" == "utils" ]; then | |
| continue |
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
| #!/bin/sh | |
| source=$1 | |
| dest=$2 | |
| snapshot=$3 | |
| size=$(zfs send -nP $source@$snapshot 2>&1 | grep size | awk '{print $2}') | |
| echo "$source@$snapshot -> $dest: $size" | |
| zfs send $source@$snapshot | pv --timer --progress --eta --rate --average-rate --bytes --size $size --cursor --name $source | zfs receive -Fvu $dest |
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 gevent.local import local | |
| from gevent.pywsgi import WSGIServer | |
| from gevent import monkey | |
| import socket | |
| import pprint | |
| import sys | |
| def application(environ, start_response): | |
| url = environ['PATH_INFO'] |
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
| #include <stdio.h> | |
| int a(){ | |
| return 42; | |
| } | |
| double b(){ | |
| return 3.141592653589793; | |
| } |