Skip to content

Instantly share code, notes, and snippets.

@iBiryukov
iBiryukov / social
Last active January 17, 2021 03:58
social
facebook.com
www.facebook.com
m.facebook.com
boards.ie
www.boards.ie
touch.boards.ie
thejournal.ie
www.thejournal.ie
twitter.com
mobile.twitter.com
// Parser
query: count key
// Lexer
count: [Cc] [Oo] [Uu] [Nn] [Tt]
key: [0-9a-zA-Z]
var manager = new GameManager(4, KeyboardInputManager, HTMLActuator, LocalScoreManager);
function move(){ var i = 0; return function(){ var d = [ 1, 0, 3, 0 ]; manager.move( d[i] ); i++; if (i===4){i=0} } };
setInterval(move(), 500);
@iBiryukov
iBiryukov / cpp_madness
Created October 14, 2013 21:51
C++ Madness
// 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,
@iBiryukov
iBiryukov / LICENSE.txt
Created May 24, 2011 19:31 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE