Skip to content

Instantly share code, notes, and snippets.

View sraboy's full-sized avatar

Steve Lavoie sraboy

  • United States
View GitHub Profile
@sraboy
sraboy / n64_joy.py
Last active October 1, 2018 15:17 — forked from rdb/js_linux.py
Access joysticks/game controllers from Python in Linux via the joystick driver. See https://www.panda3d.org/forums/viewtopic.php?f=8&t=16767
# Released by rdb under the Unlicense (unlicense.org)
# Modified for N64 controller from https://gist.github.com/rdb/8864666
import os, struct, array
from fcntl import ioctl
# Iterate over the joystick devices.
print('Available devices:')
for fn in os.listdir('/dev/input'):
@sraboy
sraboy / data.php
Last active August 17, 2018 01:14 — forked from snaquaye/data.php
An updated server-side processing script for DataTables
<?php
/*
* Script: DataTables server-side script for PHP and MySQL
* Copyright: 2016 - Steven Lavoie
* Copyright: 2012 - John Becker, Beckersoft, Inc.
* Copyright: 2010 - Allan Jardine
* License: GPL v2 or BSD (3-point)
*/
namespace Common\Utilities;
@sraboy
sraboy / gist:410521b323c1d749ffe050c96845a108
Created April 14, 2016 01:31 — forked from Erendis42/gist:3559692
filetypes.asm geany custom syntax highlighting for nasm 32 bit
# For complete documentation of this file, please see Geany's main documentation
[styling]
# foreground;background;bold;italic
default=0x000000;0xffffff;false;false
comment=0x808080;0xffffff;false;false
number=0x007f00;0xffffff;false;false
string=0xff901e;0xffffff;false;false
operator=0x000000;0xffffff;false;false
identifier=0x880000;0xffffff;false;false
cpuinstruction=0x111199;0xffffff;true;false