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 serial | |
import socket | |
import string | |
import struct | |
import zlib | |
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) | |
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) | |
sock.bind(('', 7040)) | |
mreq = struct.pack("=4sl", socket.inet_aton("230.0.0.1"), socket.INADDR_ANY) |
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 serial | |
import socket | |
import string | |
import struct | |
import zlib | |
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) | |
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) | |
sock.bind(('', 7040)) | |
mreq = struct.pack("=4sl", socket.inet_aton("230.0.0.1"), socket.INADDR_ANY) |
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
alias forwardspawn_random "join_class "random"" | |
alias forwardspawn_medic "join_class "medic"" | |
bind f1 forwardspawn_random | |
bind f2 forwardspawn_medic | |
bind d "+showscores_netgraph" | |
bind i "hide" | |
bind mouse2 "+attack2;say_team woop woop! that's the sound of da police! move out!" | |
bind r "toggle_without" |
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
cl_cmdrate "66" | |
cl_interp_ratio "1" | |
cl_lagcompensation "1" | |
cl_pred_optimize "2" | |
cl_smooth "0" | |
cl_smoothtime "0.01" | |
cl_updaterate "66" | |
rate "60000" |
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
*!~6252f8fc*@* |
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
win_ratio | games_played | nick | |
-----------+--------------+-------------------------------- | |
63 | 121 | Orzo | |
35 | 163 | Tormented_Soul | |
34 | 105 | Big`D | |
22 | 44 | daniel` | |
20 | 114 | cMw | |
19 | 94 | thursday` | |
18 | 28 | Kodyl | |
16 | 36 | CowPimp |
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 serial | |
import socket | |
import string | |
import struct | |
import zlib | |
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) | |
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) | |
sock.bind(('', 7050)) | |
mreq = struct.pack("=4sl", socket.inet_aton("230.0.0.1"), socket.INADDR_ANY) |
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
// Pin 13 has an LED connected on most Arduino boards. | |
// give it a name: | |
int incomingByte = 0; | |
int led = 13; | |
// the setup routine runs once when you press reset: | |
void setup() { | |
// initialize the digital pin as an output. | |
pinMode(led, OUTPUT); | |
Serial.begin(9600); |
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
#include <stdio.h> | |
#include <windows.h> | |
#define AF_INET 2 | |
#define SOCK_STREAM 1 | |
#define IPPROTO_TCP 6 | |
#define INVALID_SOCKET (SOCKET)(~0) | |
#define SOCKET_ERROR (-1) | |
#define DEFAULT_BUFLEN 512 |
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
http://www.pythonprasanna.com/Papers%20and%20Articles/Sockets/tcpserver.c |