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
0.01,0.02,0.03 | |
0.00,0.05,0.01 | |
-0.02,0.12,0.01 | |
-0.00,0.13,0.01 | |
0.01,0.07,-0.01 | |
-0.01,0.04,0.00 | |
-0.04,0.04,0.00 | |
-0.05,0.06,-0.01 | |
-0.04,0.07,0.01 | |
0.01,0.05,0.02 |
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
# -*- coding: utf-8 -*- | |
from random import random, uniform | |
from sys import argv, exit, path | |
from time import clock | |
from PySide import QtCore, QtGui | |
from numpy import arange, mean |
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
PluginTest/ | |
dist/ | |
plugin_test/ | |
plugin_test | |
* | |
src/ | |
plugin_test.py | |
plugins/ | |
platform_printer.py |
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 ctypes | |
import re | |
def ValidHandle(value, func, arguments): | |
if value == 0: | |
raise ctypes.WinError() | |
return value | |
import serial | |
from serial.win32 import ULONG_PTR, is_64bit |
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
<?php | |
function sortRoomNumberList($a, $b) { | |
$diffIndex = strspn($a ^ $b, "\0"); | |
if(strlen($a) > $diffIndex && strlen($b) > $diffIndex) { | |
if($a[$diffIndex] == 'G' && $b[$diffIndex] != 'G') { | |
return -1; | |
} elseif($a[$diffIndex] != 'G' && $b[$diffIndex] == 'G') { | |
return 1; | |
} |
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 json | |
import requests | |
import socket | |
oldPort = newPort = firstChunk = secondChunk = thirdChunk = fourthChunk = 0 | |
port = 50000 | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) | |
s.bind(('', port)) |
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 _make_post(self, params): | |
params['user_id'] = self.user_id | |
body = urllib.urlencode(params) | |
sig = self._signature(body) | |
body += '|sig:' + sig | |
body = 'padded|sig:newsig' | |
return body |
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
<?php | |
Configure::write('maintenance', 0); | |
?> |
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
Delivered-To: ###REMOVED### | |
Received: by 10.43.55.197 with SMTP id vz5csp354213icb; | |
Tue, 24 Jul 2012 05:29:07 -0700 (PDT) | |
Received: by 10.236.149.162 with SMTP id x22mr8020685yhj.92.1343132946580; | |
Tue, 24 Jul 2012 05:29:06 -0700 (PDT) | |
Return-Path: <admin+caf_=###REMOVED###@foiledspun.com> | |
Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) | |
by mx.google.com with ESMTPS id n64si14622153yhk.150.2012.07.24.05.29.06 | |
(version=TLSv1/SSLv3 cipher=OTHER); |
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
class Node: | |
def __init__(self, value, left, right): | |
(self.value, self.left, self.right) = (value, left, right) | |
def preorder(tree): | |
if tree.value: | |
print tree.value | |
if tree.left: | |
Node.preorder(tree.left) | |
if tree.right: |