I hereby claim:
- I am zet4 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:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| // 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, |
| # 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%}" |
| Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
| # Development | |
| cinst -y powershell | |
| cinst -y githubforwindows | |
| cinst -y python3 | |
| cinst -y git.commandline | |
| cinst -y sublimetext3 | |
| # Media |
| package main | |
| import ( | |
| "code.google.com/p/gcfg" | |
| "fmt" | |
| r "github.com/dancannon/gorethink" | |
| irc "github.com/fluffle/goirc/client" | |
| "log" | |
| "strings" | |
| ) |
| [ | |
| { | |
| "executables": { | |
| "win32": [ | |
| "pol.exe" | |
| ] | |
| }, | |
| "id": 0, | |
| "name": "FINAL FANTASY XI" | |
| }, |
| 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: |
| #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)); |
| data_uri = open("sample.png", "rb").read().encode("base64").replace("\n", "") | |
| # HTML Image Element | |
| img_tag = '<img alt="" src="data:image/png;base64,{0}">'.format(data_uri) | |
| print img_tag | |
| # CSS Background Image | |
| css = 'background-image: url(data:image/png;base64,{0});'.format(data_uri) | |
| print css |