Skip to content

Instantly share code, notes, and snippets.

"""This is blank. Review python packages in the python manual for understanding."""
@croxis
croxis / Player.log
Created April 13, 2015 22:11
Robocraft crash
ERROR: ld.so: object '/home/croxis/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
pid 1999 != 1947, skipping destruction (fork without exec?)
pid 2004 != 1947, skipping destruction (fork without exec?)
pid 2005 != 1947, skipping destruction (fork without exec?)
Setting breakpad minidump AppID = 301520
Steam_SetMinidumpSteamID: Caching Steam ID: 76561197985142402 [API loaded no]
pid 2021 != 1947, skipping destruction (fork without exec?)
pid 2026 != 1947, skipping destruction (fork without exec?)
pid 2027 != 1947, skipping destruction (fork without exec?)
pid 2030 != 1947, skipping destruction (fork without exec?)
@croxis
croxis / main.py
Created July 2, 2015 17:07
Pyserial + panda3d example
from __future__ import print_function
from direct.showbase.ShowBase import ShowBase
import serial
ser = serial.Serial(1, 38400, timeout=0, parity=serial.PARITY_EVEN, rtscts=1)
buffer = ""
MyProgram(ShowBase):
__init__(self):
ShowBase.__init__(self)
#version 410
#pragma include "Includes/Configuration.include"
#pragma include "Includes/Structures/VertexOutput.struct"
#extension GL_EXT_shader_image_load_store : enable
// Input from the vertex shader
layout(location=0) in VertexOutput vOutput;
|gorilla berserkers||creature||human cleric|&/&^^^^^|{^^^WW}|morph {^^WWWW}|when @ enters the battlefield, if you control a plains, you may pay {^}. if you do, return target creature card from your graveyard to your hand.|
|king thug||sorcery||||{^^^^BBBB}|destroy target land or nonblack.|
|river kalds||enchantment||||{^GG}|{^}: the next time an artifact spell, if there are tished four or more targets a permanent you control.|
|enferbender||creature||human spellshaper|&^^/&^^|{^^UU}|{^^^^^}, T, discard a card: draw a card.|
|hammerheid||creature||plant wall|&/&|{^^GGGG}|@ enters the battlefield with X +&^/+&^ counters on it.|
@croxis
croxis / rylaeval2014.py
Created September 16, 2015 00:45
Ocular Ryla Evaluation Scanner and Tabulator for Python 3. Needs imagemagick installed on a system path and the python extension "wand"
# python eval.py test.pdf 'Top Person' 'Top topic' 'Bottom Person' 'Bottom topic'
import argparse
import os
import shlex
import subprocess
import glob
from wand.image import Image
from wand.display import display
from wand.color import Color
@croxis
croxis / cgui.py
Last active December 14, 2015 21:59
Attempt at combining bpython with panda3d. Currently does not show input until enter is pressed.
## Overrides for bpython to work under panda's loop and modified urwid ##
import os
import urwid
from urwid.display_common import INPUT_DESCRIPTORS_CHANGED
# urwid overrides to work with Panda3D's task system #
class PandaEventLoop(urwid.SelectEventLoop):
@croxis
croxis / mc
Last active December 15, 2015 21:29
--[[
computer_0 mission control
monitor_1 monitor
computer_2 force field generator
MISSION CONTROL
--]]
--[[monitor = peripheral.wrap('left')
@croxis
croxis / mc2
Last active December 15, 2015 21:38
mc2
--[[
computer_0 mission control
monitor_1 monitor
computer_2 force field generator
MISSION CONTROL LAUNCH WARNING
--]]
print("Starting mission control launch warning system")
modem = peripheral.wrap('right')
2013-04-14 20:10:56 [INFO] [ForgeModLoader] Forge Mod Loader version 5.1.21.651 for Minecraft 1.5.1 loading
2013-04-14 20:10:56 [INFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_09, running on Windows 8:amd64:6.2, installed at C:\Program Files\Java\jre7
2013-04-14 20:10:56 [FINE] [ForgeModLoader] Java classpath at launch is C:\Users\croxis\Desktop\TechnicLauncher.exe
2013-04-14 20:10:56 [FINE] [ForgeModLoader] Java library path at launch is C:\Program Files\Java\jre7\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel