Skip to content

Instantly share code, notes, and snippets.

@hynner
hynner / POL_Install_steam
Created January 3, 2015 21:16
PlayOnLinux POL_Install_Steam override to use shared Steam installation
#!/bin/bash
# set it so that it points to your steam installation, no / at the end!
# also, because of hardlink usage this must be on the same disc partition as the PlayOnLinux wineprefixes
STEAM_PATH=~/WINEApps/Steam
[ ! -e "$STEAM_PATH/Steam.exe" ] && POL_Debug_Fatal "Steam wasn't found in path $STEAM_PATH, check your STEAM_PATH variable in POL_Install_steam function override"
POL_LoadVar_PROGRAMFILES
# mandatory dependencies, taken from original POL_Install_steam script
POL_Wine_InstallFonts
POL_Call POL_Install_corefonts
POL_Call POL_Function_FontsSmoothRGB
@hynner
hynner / index.html
Created June 11, 2013 16:32
Simple Javascript loot calculator for Ogame
<!DOCTYPE html>
<html>
<head>
<title>LootCalculator</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script type="text/javascript">
function number_format (number, decimals, dec_point, thousands_sep) {
// Strip all characters but numerical ones.
number = (number + '').replace(/[^0-9+\-Ee.]/g, '');