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
# 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 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 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 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 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 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 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 | |
exec <"$0" || exit; read v; read v; exec /usr/bin/osascript - "$@"; exit | |
-- the above is some shell trickery that lets us write the rest of | |
-- the file in plain applescript | |
-- Usage: | |
-- For a simple reload and nothing else: | |
-- # sh reload_chrome.sh | |
-- For a reload with activating a different app after (iTerm in this case): | |
-- # sh reload_chrome.sh iTerm |
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 bash -e | |
HOST=$(echo "$1" | sed -E -e 's/https?:\/\///' -e 's/\/.*//') | |
if [[ "$HOST" =~ .*\..* ]]; then | |
echo "Adding certificate for $HOST" | |
echo -n | openssl s_client -connect $HOST:443 -servername $HOST \ | |
| sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' \ | |
| tee "/tmp/$HOST.cert" | |
sudo security add-trusted-cert -d -r trustRoot \ |
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 | |
sticks = { | |
0: 6, | |
1: 2, | |
2: 5, | |
3: 5, | |
4: 4, | |
5: 5, | |
6: 6, |
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
// ==UserScript== | |
// @name Play in external player | |
// @namespace http://wol.ph/ | |
// @version 1.0 | |
// @grant GM_getValue | |
// @grant GM_openInTab | |
// @grant GM_registerMenuCommand | |
// @grant GM_setValue | |
// @include http://* | |
// @include https://* |