Skip to content

Instantly share code, notes, and snippets.

View orlp's full-sized avatar
⚠️
This user's social credit score is unknown.

Orson Peters orlp

⚠️
This user's social credit score is unknown.
View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
char *p = calloc(4194304, 1);
// START BRAINFUCK CODE //
++(*p);++(*p);++(*p);++(*p);++(*p);++(*p);++(*p);++(*p);++(*p);++(*p);
#!/usr/bin/env python
from __future__ import division, print_function
import function
import pygame
class Map(object):
def __init__(self, game, mapname):
self.mapname = mapname
from __future__ import division, print_function
import pyglet
from pyglet.gl import *
import function
class Map(object):
def __init__(self, game, mapname):
self.mapname = mapname
#include <cstdio>
#include "GL/glfw.h"
#include "SOIL.h"
// function declarations
void drawscene();
void idlefunc();
void updatedisplay();
#include <string>
#include <cstdio>
#include <cmath>
#include "GL/glfw.h"
#include "SOIL.h"
// function declarations
void drawscene();
void updatedisplay();
# set-like class with automatic expiration of entries.
import time
import sys
# high precision timer function, cross-platform
if sys.platform == "win32":
timer_func = time.clock # on Windows, the best timer is time.clock()
else:
timer_func = time.time # on most other platforms the best timer is time.time()
#! /usr/bin/env python
import ircbot
import time
TIMESTAMP = "%d-%m-%Y %H:%M"
class IrcLogger(ircbot.SingleServerIRCBot):
def __init__(self, filename, channel, nickname, server, port=6667):
ircbot.SingleServerIRCBot.__init__(self, [(server, port)], nickname, nickname)
--- Started logging on 23-12-2011 14:02 ---
23-12-2011 14:02 <nightcracker!nightcrack@a80-127-246-34.mobile.xs4all.nl>: hey bob
23-12-2011 14:02 <Orpheon!~Orpheon@80-219-43-57.dclient.hispeed.ch>: Orpheon!~Orpheon@80-219-43-57.dclient.hispeed.ch
23-12-2011 14:02 <Orpheon!~Orpheon@80-219-43-57.dclient.hispeed.ch>: :Luigibro606!Mibbit@cpc14-lutn10-2-0-cust202.9-3.cable.virginmedia.com PRIVMSG #gg2 :Orph-bot lol
23-12-2011 14:02 <nightcracker!nightcrack@a80-127-246-34.mobile.xs4all.nl>: (I called mine bob)
23-12-2011 14:02 <Orpheon!~Orpheon@80-219-43-57.dclient.hispeed.ch>: ...
23-12-2011 14:02 <Orpheon!~Orpheon@80-219-43-57.dclient.hispeed.ch>: and it's not answering :P
23-12-2011 14:02 <nightcracker!nightcrack@a80-127-246-34.mobile.xs4all.nl>: its a logger
23-12-2011 14:02 <Luigibro606!Mibbit@cpc14-lutn10-2-0-cust202.9-3.cable.virginmedia.com>: how do maek bots
23-12-2011 14:02 <Orpheon!~Orpheon@80-219-43-57.dclient.hispeed.ch>: oh damn
if self.texture.target == GL_TEXTURE_RECTANGLE_ARB:
# 0, 0
texcoords[0] = 0
texcoords[1] = 0
# 0, tex_height
texcoords[2] = 0
texcoords[3] = self.texture.height
# tex_width, tex_height
cdef int vertices[8]
cdef int texcoords[8]
if self.texture.target == GL_TEXTURE_RECTANGLE_ARB:
# 0, 0
texcoords[0] = 0
texcoords[1] = 0
# 0, tex_height
texcoords[2] = 0