Skip to content

Instantly share code, notes, and snippets.

View futuro's full-sized avatar

Evan Niessen-Derry futuro

  • St. Paul, MN
  • 01:27 (UTC -05:00)
View GitHub Profile
!! Fix the Alt-p is wacko char problem.
XTerm*eightBitInput: false
XTerm*metaSendsEscape: true
"""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.
;;; 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.
@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.
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 / 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")))
;;; 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
#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)
{
@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
@futuro
futuro / hello-world
Created January 11, 2015 04:07
hello-world program to show xlib:open-font problems with 9x15bold
(defun hello-world (width height &optional (host ""))
(let* ((display (xlib:open-display host))
(screen (first (xlib:display-roots display)))
(black (xlib:screen-black-pixel screen))
(white (xlib:screen-white-pixel screen))
(root-window (xlib:screen-root screen))
(grackon (xlib:create-gcontext
:drawable root-window
:font "9x15bold"
:foreground white