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
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
<?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 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
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
# -*- 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
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
-0.37,-0.21,-0.90 | |
-0.49,-0.13,-0.86 | |
-0.51,-0.50,-0.70 | |
-0.41,-0.65,-0.64 | |
-0.10,-0.71,-0.69 | |
0.15,-0.67,-0.73 | |
-0.23,-0.68,-0.70 | |
-0.25,-0.65,-0.72 | |
-0.11,-0.76,-0.64 | |
-0.00,-0.77,-0.63 |
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
260.1698 | |
252.5288 | |
252.7186 | |
258.8632 | |
268.6543 | |
261.7526 | |
255.9899 | |
254.7416 | |
243.1971 | |
246.9501 |
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
306.3489 | |
313.7200 | |
308.6886 | |
320.0897 | |
312.3171 | |
314.3034 | |
291.0218 | |
315.6839 | |
322.0313 | |
300.6635 |