Skip to content

Instantly share code, notes, and snippets.

@migerh
migerh / Base game
Last active August 29, 2015 14:05
bl2 items
== Weapons ==
Acuminous Hellfire OP1
BL2(hwAAAAD5XABDKANBEJE8rmIxwYKLJQELC5YGLBJY/v/nYpnBIozl)
Analytical Bane 72
BL2(hwAAAABncwBCSAFBDIFEdmIZwZKJBQELChYILBNY/v9rYsHBAorl)
Analytical Bitch 72
BL2(hwAAAAAOZwBCSANBDIFEpmIZwWKLZQGLCpYGLBNY/v/fYsHBEozl)
@migerh
migerh / PKGBUILD
Last active August 29, 2015 14:12
wxlua
# Maintainer : Michael Gerhaeuser <michael dot gerhaeuser at gmail dot com>
# Contributor : speps <speps at aur dot archlinux dot org>
# Contributor: Eric Forgeot < http://ifiction.free.fr >
pkgname=wxlua
pkgver=2.8.12.3
pkgrel=3
pkgdesc="A set of bindings to the wxWidgets library for the Lua programming language."
arch=('i686' 'x86_64')
url="http://wxlua.sourceforge.net"
@migerh
migerh / PKGBUILD
Created May 20, 2015 15:18
wxlua-svn
# Maintainer: hollunder <murks at tuxfamily dot org>
pkgname=wxlua-svn
pkgver=247
pkgrel=1
pkgdesc="WxLua - SVN version."
arch=('i686' 'x86_64')
url="http://wxlua.sourceforge.net"
license=('custom:wxWindows')
depends=('desktop-file-utils' 'wxgtk' 'webkitgtk2')
@migerh
migerh / xrandr scale example
Created January 19, 2011 22:32
get high res on low res screens
#!/bin/bash
xrandr --fb 1536x900 --output LVDS1 --mode 1024x600 --scale 1.5x1.5 --panning 0x0
@migerh
migerh / fp-2011-02-04.js
Created February 6, 2011 11:02
Solve the equation "1 2 3 4 5 6 7 8 9 = 100" by putting in only adds and takes. Requires a div with id "result" on the page to work.
var calc = function() {
var coefficients = [1, 2, 3, 4, 5, 6, 7, 8, 9],
signTable = ['-', '', '+'],
cases = 0,
caseFormula = '',
ternary = '',
i = 0,
result = {},
r = document.getElementById('result'),
@migerh
migerh / gist:1275802
Created October 10, 2011 17:04
cuda matrix addition example
// Kernel definition
__global__ void MatAdd(float A[N][N], float B[N][N], float C[N][N]) {
int i = threadIdx.x;
int j = threadIdx.y;
C[i][j] = A[i][j] + B[i][j];
}
int main() {
// Kernel invocation with one block of N * N * 1 threads
int numBlocks = 1;
@migerh
migerh / gist:1278233
Created October 11, 2011 14:32
diff of r256
Index: Documents/katowice/index.html
===================================================================
--- Documents/katowice/index.html (revision 255)
+++ Documents/katowice/index.html (revision 256)
@@ -424,7 +424,7 @@
<h3 style="margin-top: -20px">
JSXGraph - visualizing mathematics on (nearly) every device
</h3>
- <p style="font-size: 28px; margin-top: -20px">Michael Gerh&auml;user, Alfred Wassermann,<br /> University of Bayreuth, Germany</p>
+ <p style="font-size: 28px; margin-top: -20px">Michael Gerh&auml;user, Alfred Wassermann<br /> University of Bayreuth, Germany</p>
@migerh
migerh / gist:1278593
Created October 11, 2011 16:26
diff to downscale 1024x768 presentation to 800x600
@@ -78,11 +78,11 @@
display: block; /* none */
position: absolute;
overflow: hidden;
- width: 900px;
- height: 700px;
+ width: 700px;
+ height: 550px;
left: 50%;
top: 50%;
@migerh
migerh / jessiecode.par.js
Created January 30, 2012 14:54
just trying the webstorm gist integration
/**
* Assigns a value to a variable in the current scope.
* @param {String} vname Variable name
* @param {%} value Anything
* @see JXG.JessieCode#sstack
* @see JXG.JessieCode#scope
*/
letvar: function (vname, value) {
if (this.builtIn[vname]) {
this._warn('"' + vname + '" is a predefined value.');
@migerh
migerh / share.dasm16
Created April 15, 2012 05:55
dcpu asm reference example
set A, 0x30 ; 7c01 0030
SET [0x1000], 0x20 ; 7de1 1000 0020
SUB a, [0x1000] ; 7803 1000
IfN A, 0x10 ; c00d
SET Pc, crash ; 7dc1 001a [*]
; Do a loopy thing
SET I, 10 ; a861
SET A, 0x2000 ; 7c01 2000