Examples have been tested with MySQL
8.0.12.
CREATE TABLE `nodes` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`parent` INT(11) DEFAULT NULL,I hereby claim:
To claim this, I am signing this object:
| <?php | |
| $fizzbuzz = new \FizzBuzz\Application; | |
| $fizzbuzz->addDefinition(new \FizzBuzz\Definition('Fizz', 3)); | |
| $fizzbuzz->addDefinition(new \FizzBuzz\Definition('Buzz', 5)); | |
| $fizzbuzz->run(1, 100); |
| 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"; |
| #!/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 |
| # Inputs. | |
| SHELL_NAME="\\v" | |
| TERMINAL="\\l" | |
| EXIT_CODE="\$?" | |
| USERNAME="\\u" | |
| WORKING_DIRECTORY="\\w" | |
| DIRECTORY_BASENAME="\\W" | |
| NEWLINE="\\n" | |
| HOSTNAME_FULL="\\H" | |
| HOSTNAME_SHORT="\\h" |
| 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"; |
| <style>*{position:relative}</style><table><input></table> |