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 <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); |
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
| #!/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 |
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
| 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 | |
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 <cstdio> | |
| #include "GL/glfw.h" | |
| #include "SOIL.h" | |
| // function declarations | |
| void drawscene(); | |
| void idlefunc(); | |
| void updatedisplay(); |
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 <string> | |
| #include <cstdio> | |
| #include <cmath> | |
| #include "GL/glfw.h" | |
| #include "SOIL.h" | |
| // function declarations | |
| void drawscene(); | |
| void updatedisplay(); |
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
| # 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() |
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
| #! /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) |
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
| --- 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 |
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
| 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 |
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
| 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 |