Skip to content

Instantly share code, notes, and snippets.

View hglbrg's full-sized avatar
💻
/dev/null

Pierre Hagelberg hglbrg

💻
/dev/null
View GitHub Profile
@hglbrg
hglbrg / gist:7033670
Created October 17, 2013 22:46
Engineering Flowchart in PHP
$behaviour = $_GET['behaviour'];
$shouldIt = $_GET['shouldIt'];
switch($behaviour){
case "moves";
if ($shouldIt == "yes"){
return "Everything works!";
} else {
return "Apply duct tape.";
}
@hglbrg
hglbrg / gist:1673ac10b5001710dbc3
Created January 11, 2015 18:18
Spartan IRC Bot in Python
import socket #imports module allowing connection to IRC
import threading #imports module allowing timing functions
#sets variables for connection to twitch chat
bot_owner = 'SpartacurseTV'
nick = 'phaseplant'
channel = '#SpartacurseTV'
server = 'irc.twitch.tv'
password = '*snip*'
@hglbrg
hglbrg / Protection Warrior Vengeace WeakAuras 7.0
Last active July 21, 2016 22:52
WeakAuras import string. Displays the duration of Ignore Pain and Focused Rage, the Vengeance Duration for the two spells and the stack count of Focused Rage in a rather compact view.
d4tZsaGAQkz9uvQDjLW2OOoTIzkLupMqZMK5lLeDtvromPUnr(MG0ovQ9c7Mk7xj8tkYWOGXrq9Cknucudwjz4sHdsvHll5ycCoIkwOQKLsuwmrvTCHEibYtrTmQQwNQOmrPKKPQYKvvth5IcIRQkQEMG66IAJkP2krLSzQY2vIMLusQVsvrFwKVlLOrkLeMMu0OvLA8ev5KeWTufUgf68sPEnrL63s1FjiJaCG14ab2c2Fl83cdTWiyjWFWFCG)J1xzNinllWALcSwKML1fNuQIp1)f2pcmaUKxdT7xFiFWYZKNNTiSw4qnBqo(dmg2Ob)bgmAgEpAAeCBtEE2IW6hMd1OXMgcmkSWgdlNWYXp8E00myBP8eCFCe4xMUZ0tToK1hy9)p00DALquCsPkAXbcSllDXjLQOf7aWZhSCvUuPDIvREXkz6uTyL29xSsW6Xbw11FCGjTQCeoWszfn4abcSOsBT4aBhxsvG9PpKjtatYaboBlHevARfmfZf4OwSWbwkRObhiqGBSSbPvLJWbwkRObhiqG90I00D4alLv0GdeiWXUQWbwkRObhiqG)JN3iMvuBCGLYkAWbceiWXknD31Urbof75gGalId7aCG1I0SSU4Ksv8P(VW(rGbWuCsPkIdStlvwCyhawGKRhRfReSECGaNTLSscValMTuxsO3ZVatJu9bb(DnP3e2nfgSQR)4atAv5iCGTJlPkSdmdwkRObh2bMXlqGaNTLqIkT1IxGJDvHdSuwrdoqGalQ0wloW2XLufyF6dzYeWKmqGBSSbPvLJWbwkRObhiqG90I00D4alLv0GdeiW)XZBeZkQnoWszfn4abcCulw4alLv0GdeiqG96oIhFxyh2p4yLMU7A3OapIDhy5zYZZwe2pccBeSV7DjSn0c)gbpFWcKC9yTyvd94wSk3aClNp9g7Mcd2LLU4Ksv0IDa42M88SfHDGbW)X6RStKMLfyTsb2sAr52k4(4iWckK9fImqy7hhy5zYZZwe2pccBeSwKML1fNu