Skip to content

Instantly share code, notes, and snippets.

robertpfeiffer

Block or report user

Report or block robertpfeiffer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View jrpg_dialogue_example.py
import pygame
import sys
import webm_recording
from yarn.ninepatch import NinePatchTemplate
from yarn.jrpg_froentend import Dialogue
pygame.init()
screen=pygame.display.set_mode((320,240), pygame.SCALED)
group=pygame.sprite.Group()
@robertpfeiffer
robertpfeiffer / FlxYarn.hx
Created Dec 11, 2015
Flixel+Yarn base code for Ludum Dare
View FlxYarn.hx
//COPYRIGHT (c) 2015 Robert Pfeiffer
//ALL RIGHTS RESERVED
package;
import flixel.FlxG;
import flixel.FlxObject;
import flixel.FlxSprite;
import flixel.FlxState;
import flixel.text.FlxText;
View gist:1354738
(use 'clojure.algo.generic.arithmetic)
(use '[de.blubberquark.autodiff.core :only [derivative]])
(defn fun [x]
(reduce *
(for [i (range 20)] (+ x(* x i)))))
(fun 3N)
((derivative fun) 3N)
@robertpfeiffer
robertpfeiffer / headers.txt
Created Sep 27, 2011
XeTex für Org Mode
View headers.txt
#+LATEX_CMD: xelatex
#+LATEX_HEADER: \setmainfont[Mapping=tex-text]{Gentium}
#+LATEX_HEADER: \setdefaultlanguage{german}
View gist:862499
libxml2-dev zlib1g-dev libcurl4-gnutls-dev libc6-dev libfreetype6-dev libgdal1-dev libgif-dev libxi-dev libxmu-dev freeglut3-dev libcoin60-dev libjasper-dev libjasper-dev libjpeg62-dev libc6-dev libopenal-dev libgl1-mesa-dev libglu1-mesa-dev libpng12-dev libc6-dev libtiff4-dev libxine-dev zlib1g-dev git subversion git-svn cmake checkinstall build-essential
View gist:855520
[ 30%] Building CXX object CMakeFiles/Towerdefense.dir/src/hud.cpp.o
In file included from /usr/include/c++/4.4/bits/localefwd.h:43,
from /usr/include/c++/4.4/string:45,
from /usr/local/include/osg/Object:21,
from /usr/local/include/osg/Node:18,
from /usr/local/include/osg/Group:17,
from /usr/local/include/osg/Transform:17,
from /usr/local/include/osg/Camera:17,
from /home/rincewind/realistictowerdefense/include/hud.h:2,
from /home/rincewind/realistictowerdefense/src/hud.cpp:1:
View gist:597170
(net.cgrand.enlive-html/html-snippet
"<html><head></head>
<body>
<span itemprop='geo' itemscope
itemtype='http://data-vocabulary.org/Geo'>
<meta itemprop='latitude' content='45.499576' />
<meta itemprop='longitude' content='-73.565958' />
</span>
</body>
</html>")
View zipper_b.fs
let rec iterate fn prop start =
if prop start then start
else iterate fn prop (fn start)
let rec next node =
if is_left node then node |> right |> up |> firstChild
else node |> iterate up is_left |> next
let rec delete n off node =
let newnode = node |> toString |> boundedsubstring n off |> fromString
View map.sh
map() {
while read line ; do
$1 "$line";
done;
}
View primrec.hs
primrec :: (a -> b) -> (a -> Int -> b -> b) -> (a -> Int -> b)
You can’t perform that action at this time.