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
from subprocess import check_output | |
import matplotlib | |
import matplotlib.pyplot as plt | |
from time import sleep | |
TITLE = 'gunicorn/gevent 50ms' | |
SERVER = 'localhost' | |
PORT = 8888 |
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
#!/usr/bin/python3 | |
import os | |
LAZDIR = os.path.expanduser("~/lazsvn") | |
print(LAZDIR) | |
exit | |
def shell(cmd): | |
if os.system(cmd) != 0: |
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
""" | |
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
""" | |
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
procedure TBuddy.OnProxyConnect(ASocket: TLSocket); | |
type | |
TSocksReqestHeader = packed record | |
Typ : Byte; | |
Cmd : Byte; | |
Port : Word; | |
Addr4 : DWord; | |
end; | |
var | |
ReqHeader: TSocksReqestHeader; |
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
/** | |
* Starts a file transfer. | |
* | |
* Either @a fd must be specified <i>or</i> @a ip and @a port on a | |
* file receive transfer. On send, @a fd must be specified, and | |
* @a ip and @a port are ignored. | |
* | |
* Prior to libpurple 2.6.0, passing '0' to @a fd was special-cased to | |
* allow the protocol plugin to facilitate the file transfer itself. As of | |
* 2.6.0, this is supported (for backward compatibility), but will be |
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
{ This function is not what it seems to be. It will NOT simply be called | |
with the filename already known (as one might assume when looking | |
at its signature) instead it will be called with filename=nil when | |
the user clicks on the "Send File..." menu item. At this time there | |
has not yet been a file dialog to select the file, this will happen | |
when we call purple_xfer_request(). All the rest is then done from | |
within the callbacks that we are registering here. } | |
procedure torchat_send_file(gc: PPurpleConnection; who, filename: PChar); cdecl; | |
var | |
xfer: PPurpleXfer; |
NewerOlder