Skip to content

Instantly share code, notes, and snippets.

View Dahlgren's full-sized avatar

Björn Dahlgren Dahlgren

View GitHub Profile
@Dahlgren
Dahlgren / init.sqf
Last active January 20, 2016 11:48
Fired EH Json
SerializeJson = {
_type = _this select 0;
switch _type do
{
case "number":
{
_this select 1;
};
case "string":
@Dahlgren
Dahlgren / fix_gpu_switching.sh
Created May 8, 2015 08:11
Add support for Automatic Graphics Switching in OSX application
#!/bin/bash
AppName="$1"
defaults write "$AppName/Contents/Info.plist" "NSSupportsAutomaticGraphicsSwitching" -bool true
if [ $? -eq 0 ]; then
chmod 664 "$AppName/Contents/Info.plist"
codesign -f --verbose --deep -s - "$AppName/"
fi
@Dahlgren
Dahlgren / gist:2159958
Created March 22, 2012 17:13 — forked from lalala/gist:2159331
Din Mamma
<!doctype html>
<html>
<head>
<title>XxX_DinMamma_XxX</title>
<style>
* {
padding: 0;
margin: 0;
}
html,body {