I hereby claim:
- I am zetahunter on github.
- I am zeta (https://keybase.io/zeta) on keybase.
- I have a public key whose fingerprint is 1695 776B 5BA4 B2BF 43D0 8004 7392 9363 1F30 18CB
To claim this, I am signing this object:
#include <iostream> | |
#include <string> | |
namespace utils { | |
template< typename ParamType, typename Functor > | |
ParamType sanitize(Functor callback, std::string entryMessage) { | |
ParamType temp; | |
do { | |
std::cout << entryMessage; | |
} while(!(std::cin >> temp) || !callback(temp)); |
import os | |
class FeatureBroker: | |
def __init__(self, allowReplace=False): | |
self.providers = {} | |
self.allowReplace = allowReplace | |
def Provide(self, feature, provider, *args, **kwargs): | |
if not self.allowReplace: |
[ | |
{ | |
"executables": { | |
"win32": [ | |
"pol.exe" | |
] | |
}, | |
"id": 0, | |
"name": "FINAL FANTASY XI" | |
}, |
package main | |
import ( | |
"code.google.com/p/gcfg" | |
"fmt" | |
r "github.com/dancannon/gorethink" | |
irc "github.com/fluffle/goirc/client" | |
"log" | |
"strings" | |
) |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
# Development | |
cinst -y powershell | |
cinst -y githubforwindows | |
cinst -y python3 | |
cinst -y git.commandline | |
cinst -y sublimetext3 | |
# Media |
# My version of kardan theme. | |
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi | |
function get_host { | |
echo '@'$HOST | |
} | |
function get_user { | |
echo "%{$fg[$NCOLOR]%}(as "`who am i | sed -e 's/ .*//'`")%{$reset_color%}" |
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// v2 of the great example of SSE in go by @ismasan. | |
// includes fixes: | |
// * infinite loop ending in panic | |
// * closing a client twice | |
// * potentially blocked listen() from closing a connection during multiplex step. | |
package main | |
import ( | |
"fmt" | |
"log" |