Skip to content

Instantly share code, notes, and snippets.

from __future__ import division, print_function
import struct, math
data = ""
for i in range(1, 2):
text = open("output1", "r")
data += text.read()
text.close()
package Modules;
import Engine.Constants;
import Engine.Module;
import Engine.Pipe;
public class Highpass extends Module
{
public static final int SIGNAL_INPUT = 0;
public static final int FREQUENCY_INPUT = 1;
from __future__ import division, print_function
import Image
class Wallmask(object):
def __init__(self):
self.load_wallmask("Maps/ctf_dirtbowl_v2.png")
self.name = "ctf_dirtbowl_v2"
def load_wallmask(self, name):
print("---LOADING WALLMASK---")
from __future__ import division, print_function
import pygame, random
import gameobject
import vector
import constants
class Creature(gameobject.GameObject):
OBJECT_TYPE = "Swarm particles"
/**
* Diese Klasse stellt einen Binˆ§ren Baum dar.
*
* @author EFI-5
* @version 0.1
*/
public class BinaererBaum {
/*
linker Ast
from __future__ import division, print_function
import random, sys
class Bot(object):
def __init__(self):
self.words = {}
self.LINE_LENGTH = 100
self.BEGIN = "THIS_IS_A_BEGINNING;_IF_THIS_APPEARS_IN_YOUR_TEXT:FUCK_YOU"
self.beginning_words = []
from __future__ import division, print_function
import sys
import pyglet
window = pyglet.window.Window(800, 800, resizable=True)
window.set_caption('Pyglet Testing')
window.flip()
@Orpheon
Orpheon / gist:6196546
Last active December 20, 2015 21:18 — forked from arctic5/gist:6196534
//respawn timer here
if (global.respawntimer == 1)
{
if (time <= global.Server_Respawntime)
{
time += 1
}
else
{
instance_destroy();
bool collides_with_wallmask(Character *character, Bitmask *map)
{
bool collided = false;
for (int w=0; w<character->width; w++)
{
for (int h=0; h<character->height; h++)
{
printf("\nRound:\n%i, %i", (int)character->x + w, (int)character->y - h);
printf("\n%i, %i", w, h);
#ifndef DATA_TYPES_H_INCLUDED
#define DATA_TYPES_H_INCLUDED
#include <stdbool.h>
typedef struct Bitmask;
typedef struct Point;
typedef struct Rect;
typedef struct RectLinkedList;
typedef struct Navmesh;