This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$fizzbuzz = new \FizzBuzz\Application; | |
$fizzbuzz->addDefinition(new \FizzBuzz\Definition('Fizz', 3)); | |
$fizzbuzz->addDefinition(new \FizzBuzz\Definition('Buzz', 5)); | |
$fizzbuzz->run(1, 100); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:for(var n=new Date,m="Seconds Minutes Hours Date Month FullYear".split(" "),s="",i=m.length,a=document.activeElement;i;i--)f=n["get"+m[i-1]](),s+=10>f?"0"+f:f;if(a.isContentEditable||["input","textarea"].indexOf(a.tagName.toLowerCase())>-1)a.value="email.user+"+s+"@domain.tld"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Really simple, but I need a Gist to remind me each time. | |
# Make sure the build dependencies of node-gyp are available before running NPM commands. | |
apk add --no-cache --virtual .npmdeps make python g++ | |
if [ $# -gt 0 ]; then | |
npm $@ | |
apk del .npmdeps | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Inputs. | |
SHELL_NAME="\\v" | |
TERMINAL="\\l" | |
EXIT_CODE="\$?" | |
USERNAME="\\u" | |
WORKING_DIRECTORY="\\w" | |
DIRECTORY_BASENAME="\\W" | |
NEWLINE="\\n" | |
HOSTNAME_FULL="\\H" | |
HOSTNAME_SHORT="\\h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p=389;$=l=t=0;c=" _ "; | |
onkeydown=function(e){ | |
(k=e.which)==39?p++:k==37?p--:!l&&(l=p) | |
}; | |
setInterval(function(){ | |
_="<pre>";l&&(l-=20)<0&&(l=0); | |
for(i=0;i<400;i++){ | |
if(i%20==0)_+="\n"; | |
if(~b[n="indexOf"](l))b.splice(b[n](l),1),$+=25,l=0; | |
if(~b[n](p))p=n,b=[],c="xxx"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style>*{position:relative}</style><table><input></table> |
NewerOlder