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 subprocess import check_output | |
import matplotlib | |
import matplotlib.pyplot as plt | |
from time import sleep | |
TITLE = 'gunicorn/gevent 50ms' | |
SERVER = 'localhost' | |
PORT = 8888 |
Loading
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
#!/usr/bin/python3 | |
import os | |
LAZDIR = os.path.expanduser("~/lazsvn") | |
print(LAZDIR) | |
exit | |
def shell(cmd): | |
if os.system(cmd) != 0: |
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
/* | |
* psk31.c | |
* | |
* Created on: 09.01.2015 | |
* Author: bernd | |
*/ | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <string.h> |
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
procedure CRC16_Update(var CRC: Word; Data: Byte); | |
var | |
I: Integer; | |
begin | |
CRC := CRC xor (Word(Data)); | |
for I := 0 to 7 do begin | |
if (CRC and 1) <> 0 then | |
CRC := (CRC shr 1) xor $A001 | |
else | |
CRC := CRC shr 1; |
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
procedure CRC16_Xmodem_Update(var CRC: Word; Data: Byte); | |
var | |
I: Integer; | |
begin | |
CRC := CRC xor (Word(Data) shl 8); | |
for I := 0 to 7 do begin | |
if (CRC and $8000) <> 0 then | |
CRC := (CRC shl 1) xor $1021 | |
else | |
CRC := CRC shl 1; |
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
""" | |
Geiger counter for MtGox. | |
This goxtool strategy module makes a click sound for every | |
depth message and a louder click for every trade. | |
You must have python-alsaaudio installed to use this. | |
usage: | |
save file as "geiger.py" in the goxtool folder and then: |
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
""" | |
a simple stop loss bot. | |
adjust STOP_PRICE and STOP_VOLUME to your needs. | |
The file can be reloaded after editing without | |
restarting goxtool by simply pressing the l key. | |
""" | |
import strategy | |
import goxapi | |
# pylint: disable=C0301 |
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
/.project |
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
procedure TBuddy.OnProxyConnect(ASocket: TLSocket); | |
type | |
TSocksReqestHeader = packed record | |
Typ : Byte; | |
Cmd : Byte; | |
Port : Word; | |
Addr4 : DWord; | |
end; | |
var | |
ReqHeader: TSocksReqestHeader; |
NewerOlder