Re: http://twitter.com/hondallica/status/436117998823165952
クソコードを見たとき: "Looking at this code is pure agony!"
同僚がバグを直してくれた時: "You are an angel sent to save me!"
Tiny_RayTracing.ps by Takashi Hayakawa (h-takasi@isea.is.titech.ac.jp) | |
is a ray tracing program in only 762 bytes (plus header)! | |
BEST OBFUSCATED ARTWORK -- 1st prize | |
-- The 2nd most coveted prize. These combine obfuscation with great artwork. | |
Don't send this one to a printer. It will take too long. Display it | |
on the screen and be ready to wait a while. The picture is well worth it. | |
If you want to print the picture much faster, use Tiny_RayTracing_Fast.ps instead. |
// 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, |
Re: http://twitter.com/hondallica/status/436117998823165952
クソコードを見たとき: "Looking at this code is pure agony!"
同僚がバグを直してくれた時: "You are an angel sent to save me!"
<? | |
///////////////////// | |
// slack2html | |
// by @levelsio | |
///////////////////// | |
// | |
///////////////////// | |
// WHAT DOES THIS DO? | |
///////////////////// | |
// |
javascript:(function(){ | |
var pre = 'Googleドライブ:'; | |
var xpath = '//*[@guidedhelpid="folder_path"]'; | |
document.getElementsByXPath = function(expression, parentElement) { | |
var r = []; | |
var x = document.evaluate(expression, parentElement || document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); | |
for (var i = 0, l = x.snapshotLength; i < l; i++) { | |
r.push(x.snapshotItem(i)); | |
} return r; |