Skip to content

Instantly share code, notes, and snippets.

View boki's full-sized avatar
💭
Moo

Björn Graf boki

💭
Moo
View GitHub Profile
Verifying that +bjoern23 is my blockchain ID. https://onename.com/bjoern23
@boki
boki / get-gitignore.ps1
Created May 12, 2013 18:45
A simple PowerShell implementation to access http://gitignore.io/cli Save as get-gitignore.ps1 in your PoSH script directory for easy access
# Simple PoSH script to access http://gitignore.io/
# Usage: get-gitignore type [type]*
(New-Object System.Net.WebClient).DownloadString("http://gitignore.io/api/" + [string]::Join(",", [string[]]$args))
@boki
boki / SpriteBatch.cs
Created April 18, 2011 11:35
A simple SpriteBatch for XNA in Silverlight 5
namespace Botomata.Xna
{
using System;
using System.Globalization;
using System.Runtime.InteropServices;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
/// <summary>
/// The glyph batch class provides methods and properties to render batches
@boki
boki / VC2010 f != f + 1, part II
Created February 17, 2011 14:05
The generated asm for float f = 0; while (f != f + 1) { f += 1; }
;
; cl.exe /Od (no optimization)
;
; float f = 0;
fldz
fstp DWORD PTR _f$[ebp]
$LN2@wmain:
; while (f != f + 1) {
fld DWORD PTR _f$[ebp]