Skip to content

Instantly share code, notes, and snippets.

Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Xeon(R) CPU E3-1275 v3 @ 3.50GHz
CPU Family: 0x6
@flags
flags / blank_entity.xml
Created July 3, 2013 20:33
Blank entity for Reactor 3.
<name></name>
<species></name>
<type></type>
<flags></flags>
<vars></vars>
<icon></icon>
<body>
</body>
[TALK]
DESIRES_CONVERSATION_WITH:IS_SAME_RACE
CAN_TALK_TO:IS_SAME_RACE
[JUDGE]
TRUST:IS_SAME_RACE{TARGET.TRUST+5},IS_FAMILY{TARGET.TRUST+10},HAS_ATTACKED_TRUSTED{TARGET.DANGER+5}
FACTORS:IS_SAME_RACE
BREAK_TRUST:HAS_ATTACKED_TRUSTED{TARGET.DANGER+5}
[GROUP]
@flags
flags / 3heads.xml
Created July 2, 2013 19:51
3-headed human
<race>Human</race>
<flags>HUMAN|INTELLIGENT|USES_FIREARMS|LEGS[lthigh,rthigh]|HANDS[lhand,rhand]|ARMS[lshouder,rshoulder]|CAN_GROUP_WITH[HUMAN]|CAN_SEE|HUNGER|THIRST|MELEE[rfoot,lfoot,lhand,rhand]|RANGED[lhand,rhand]</flags>
<vars>vision_max=21|hunger_max=20000|thirst_max=10000|hunger=hunger_max|thirst=thirst_max</vars>
<icon>@</icon>
<body>
<head>
<flags>SKIN|BONE|CRUCIAL|AFFECTS[sight,smell,hearing]</flags>
<damage_mod>2</damage_mod>
#Register use:
# $t1 = a
# $t2 = b
# $t3 = temp
#data segment begins here
.data
intro: .asciiz "CS230 Assignment#7. Written by:\n"
enter: .asciiz "Enter an integer (>= 2): "
astr: .asciiz "*"
@flags
flags / gcmixer.py
Created April 28, 2013 20:45
Controls volume of different OSS mixers through controller input.
import subprocess
import pygame
import time
pygame.joystick.init()
pygame.display.init()
for stick in [pygame.joystick.Joystick(x) for x in range(pygame.joystick.get_count())]:
stick.init()
import java.sql.*;
import java.util.*;
import java.io.*;
public class Database{
public static void main (String args []) throws SQLException, IOException {
// Load the Oracle JDBC driver
DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
String serverName = "csor6.bsu.edu";
@flags
flags / gist:5161201
Last active December 14, 2015 22:49
if (x >= y) #A label
x=x-y;
else
y=y-x
.data
x: word;
y: word;
//Machine Code
@flags
flags / api_rev2.md
Created October 29, 2012 22:54
API reference for SwanBot

Gets and Sends

The two most basic operations are api-get and api-send, which are named simply based on their interaction with the node mesh. Simply put, api-get can only search and retrieve entries from the mesh, while api-send can modify the mesh in any way.

@flags
flags / brainfuck.py
Created July 29, 2012 20:19
Brainfuck interpreter that isn't complete garbage and does not abuse OOP like every other version I found online
#flags - 2012
#wtfplv2
import sys
if not len(sys.argv)==2:
print 'Usage: brainfuck.py <file>'
sys.exit(1)
PROGRAM = bytearray(9999)
CELL = 0