Skip to content

Instantly share code, notes, and snippets.

View devyn's full-sized avatar
👨‍💻
Nushell is really cool

Devyn Cairns devyn

👨‍💻
Nushell is really cool
View GitHub Profile
implementation console trace[] Hi @#two;
infrastructure affix[] [ foo[] a b c d [two: implementation console explode[] Yo!] ];
foo bar (widget dongle)
baz mud
wibble wobble
spaz
-- or --
{foo bar (widget dongle); baz mud} {wibble wobble}; spaz
abc
foo bar (widget dongle)
def
baz mud
wibble wobble
spaz
@devyn
devyn / gist:7520392
Last active December 28, 2015 15:19 — forked from anonymous/gist:7518312
// -------------------------------------------------------------------------------------------------------------
// simpleStarTrekSK - The program skeleton for a simple star trek game. The student must complete the game
// according to the lab instructions. The bulk of the game must be defined in the function
// starTrek(), to be defined by the student including any necessary other functions. As students
// implement the required code, they should add their attributions to the change log below,
// as well as add comment headers explaining each function they write and include attributions
// for any new code and functions they add.
//
// Written: E. Basiachvili, Langara College, 2011 used with permission by below
// Changes: P. Baker, Langara College, October 2013, comments added, minor modifications, starTrek() function
@devyn
devyn / game.html
Last active December 10, 2015 23:59 — forked from anonymous/game.html
<html>
<head>
<title>Game</title>
<script>
var g, lt = Date.now();
var scene = [];
function step() {
var ot = lt;
#ifdef WINDOWS
typedef SAL_Thread HANDLE;
#elif POSIX
typedef SAL_Thread pthread_t;
#endif
SAL_Thread SAL_Thread_Create(SAL_Thread_StartAddress startAddress, void* startParameter) {
#ifdef WINDOWS
return CreateThread(null, 0, startAddress, startParameter, null, null);
#elif POSIX
example = ['banana', 'elephant', 'apple', 'friday', 'cocaine', 'damage']
parray = example.map { |str| str.each_byte.to_a }
puts parray
@devyn
devyn / darkf_dix.js
Created March 16, 2012 08:46
An example of a pink petal
module.exports = function (hub, name) {
// We register ourself as darkf_dix and are returned a handle that
// allows us to subscribe to or unsubscribe from events.
hub.register (name || "darkf_dix", function (handle) {
// The first argument specifies what item to subscribe to events from.
// If null or undefined, the default is "*". The second argument
// specifies what kind of events to accept. If left null or undefined,
// it defaults to the special event kind "*", which matches any kind of
// event.
handle.subscribe ("irc/*", "message", function (e) {
@devyn
devyn / darkf_dix.js
Created March 15, 2012 03:07
An example of a pink petal
var darkf_dix = module.exports = function (hub) {
var self = this;
this.hub = hub;
// We register ourself as darkf_dix and are returned a handle that
// allows us to subscribe to or unsubscribe from events.
hub.register (this, "darkf_dix", function (handle) {
// The first argument specifies what item to subscribe to events from.
// If null or undefined, the default is "*". The second argument
// specifies what kind of events to accept. If left null or undefined,
@devyn
devyn / config.json
Created January 7, 2012 07:16 — forked from dsamarin/config.json
Example Diaptoval configuration file
{
"Core": {
"socket": "/tmp/diaptoval.sock"
},
"IRC": {
"quit_message": "bbye!",
"profiles": [
{
"host": "irc.freenode.net",
"nick": ["devyn", "devyn_", "devyn__", "devyn___"],