Skip to content

Instantly share code, notes, and snippets.

View futuro's full-sized avatar

Evan Niessen-Derry futuro

  • St. Paul, MN
  • 09:48 (UTC -05:00)
View GitHub Profile
@futuro
futuro / project_ideas.org
Last active August 29, 2015 13:57
some MC project ideas

Mod Features

  • Artifice
  • BiblioCraft
  • Blood Magic
  • BuildCraft
  • Carpenter’s Blocks
  • ComputerCraft
  • Dimensional Doors
  • EnderStorage
  • Forestry
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
typedef enum { false, true } bool;
char charlist[] = "Some text."; /* An example character list */
char* reverse(char *char_list)
{
;;; Example implementation of a character list
(define chr_list '(#\w #\h #\a #\t))
;;; Helper function to make reversing easy
(define (rev list)
(pushonto list '()))
;;; Function that does all of the work
(define (pushonto list1 list2)
;; If the first list is empty, return the second
@futuro
futuro / gist:8499152
Created January 19, 2014 01:20
Alternative representation for s-xml:xml-to-string or whatever it's called.
(:|node|
(:|interface| (:@ (:|name| "org.freedesktop.DBus"))
(:|method| (:@ (:|name| "Hello"))
(:|arg| (:@ (:|direction| "out")
(:|type| "s"))))
(:|method| (:@ (:|name| "RequestName"))
(:|arg| (:@ (:|direction| "in")
(:|type| "s")))
(:|arg| (:@ (:|direction| "in")
(:|type| "u")))
diff --git a/default.build b/default.build
index 9700db9..7af7f1f 100644
--- a/default.build
+++ b/default.build
@@ -58,7 +58,7 @@
<exec program="msbuild " commandline="MonoGame.Framework.Linux.sln /t:Build /p:Configuration=Release" />
</if>
<if test="${os == 'Unix'}">
- <exec program="xbuild" commandline="/t:Build /p:Configuration=Clean MonoGame.Framework.Linux.sln" />
+ <exec program="xbuild" commandline="/t:Build /p:Configuration=Release MonoGame.Framework.Linux.sln" />
@futuro
futuro / slime_dbus.lisp
Created January 25, 2013 12:50
This is a log of some of my work dicking around with dbus and lisp.
; SLIME 2012-12-17
CL-USER> (in-package :stumpwm)
#<PACKAGE "STUMPWM">
STUMPWM> (ql:quickload :dbus)
To load "dbus":
Load 1 ASDF system:
dbus
; Loading "dbus"
....
;;; Checking for wide character support... WARNING: Lisp implementation doesn't use UTF-16, but accepts surrogate code points.
;;; erc-hl-nicks.el --- ERC nick highlighter that ignores uniquifying chars when colorizing
;; Copyright (C) 2011-2012 David Leatherman
;; Author: David Leatherman <leathekd@gmail.com>
;; URL: http://www.github.com/leathekd/erc-hl-nicks
;; Version: 1.3.0
;; This file is not part of GNU Emacs.
"""Define names for all type symbols known in the standard interpreter.
Types that are part of optional modules (e.g. array) are not listed.
"""
import sys
# Iterators in Python aren't a matter of type but of protocol. A large
# and changing number of builtin types implement *some* flavor of
# iterator. Don't check the type! Use hasattr to check for both
# "__iter__" and "next" attributes instead.
!! Fix the Alt-p is wacko char problem.
XTerm*eightBitInput: false
XTerm*metaSendsEscape: true