Skip to content

Instantly share code, notes, and snippets.

View johnfredcee's full-sized avatar
🚀
On an intergalactic cruise

John Connors johnfredcee

🚀
On an intergalactic cruise
View GitHub Profile
@johnfredcee
johnfredcee / udk.el
Created May 16, 2011 10:30
Emacs Unreal Development Kit Support Functions
;; -- UNREALSCRIPT --------------------------------------------------------------
(require 'unrealscript-mode)
(defcustom udk-location "C:\\UDK\\UDK-2011-11\\"
"Directory where udk executables are found"
:type 'directory
:group 'udk)
(defcustom udk-map "TestMap"
"Name of the map to launch the Unreal game with"
--langdef=INI
--langmap=INI:.ini
--regex-INI=/^[ \t]*\[(.*)\]/\1/b,block/
--regex-INI=/^[ \t]*([^\[=]+)=(.*)/\1/k,key/
--langdef=unrealscript
--langmap=unrealscript:.uc
--regex-unrealscript=/^[ \t]*[cC]lass[ \t]*([a-zA-Z0-9_]+)/\1/c,class/
--regex-unrealscript=/^[ \t]*[Ee]num[ \t]+.*[ \t]+([0-9-A-Za-z]+)$/\1/e,enum/
--regex-unrealscript=/^[ \t]*[Ss]truct[ \t]+.*[ \t]+([0-9-A-Za-z]+)$/\1/s,struct/
--regex-unrealscript=/^[ \t]*[sS]tate[() \t]*([a-zA-Z0-9]+)/\1/c,class/
;; Unrealscript major mode
;; Copyright (C) 2012 John Connors
;; Author: John Connors
;; Keywords: extensions
;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
@johnfredcee
johnfredcee / gist:1000554
Created May 31, 2011 14:05
Emacs Init for HP Laptop
;;; generic Emacs utility
;;; ------------------------------------------------------------------
(defun add-subdirs-to-load-path (dir)
(let ((default-directory (concat dir "/")))
(normal-top-level-add-subdirs-to-load-path)))
;;; basic load-path setup
;;; ------------------------------------------------------------------
@johnfredcee
johnfredcee / LavaLampGameInfo.uc
Created June 1, 2011 18:57
Lava Lamp Game Info Class
class LavaLampGameInfo extends GameInfo;
defaultproperties
{
PlayerControllerClass=class'LavaLamp.LavaLampPlayerController'
DefaultPawnClass=class'LavaLamp.LavaLampPawn'
}
event PostLogin( PlayerController NewPlayer )
@johnfredcee
johnfredcee / .emacs
Created June 16, 2011 15:43
Dell Box Dot Emacs
(require 'color-theme)
(require 'mirror-mode)
(require 'python)
(require 'dired-aux)
(require 'yasnippet)
(require 'dedicated)
(require 'winner)
(require 'thingatpt)
(require 'doxygen)
@johnfredcee
johnfredcee / dump.py
Created July 21, 2011 12:40
Dump Blender Scene via introspection
import bpy
import mathutils
def introspect_obj(o, txt):
print (txt)
if len(txt) > 200:
print ("Something is wrong")
print (txt)
return
type_o = type(o)
@johnfredcee
johnfredcee / w32shell.el
Created July 21, 2011 13:09
Standalone w32shell.el (for vanilla windows emacs)
;;; w32shell.el --- Helpers for inferior shells on w32
;; Copyright (C) 2005, 2006, 2007 by Lennart Borgman
;;
;; Author: Lennart Borgman
;; Created: Tue Nov 22 01:07:13 2005
;; Version: 0.52
;; Last-Updated: Fri May 18 10:58:41 2007 (7200 +0200)
;; Keywords:
;; Compatibility: Emacs 22
@johnfredcee
johnfredcee / sexp_dump.py
Created August 25, 2011 20:13
Dumping Blender Scene as an S-Expression
import bpy
import mathutils
import types
# transform python property to lisp keyword
def lispify(s):
if ((s == None) or (s[-1:]==']')):
return None
result = s.split('.')[-1:]
result = ":" + result[0].upper()
@johnfredcee
johnfredcee / Glop patch
Created September 1, 2011 11:56
Patch for glop Win32 keycode scan
From 7fc6632ed9c0febc058fee3c40ce47830aa40ed9 Mon Sep 17 00:00:00 2001
From: John Connors <[email protected]>
Date: Thu, 1 Sep 2011 12:46:31 +0100
Subject: [PATCH] Fixing keycode scan
---
src/win32/win32.lisp | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/src/win32/win32.lisp b/src/win32/win32.lisp