I hereby claim:
- I am yvmarques on github.
- I am yvan (https://keybase.io/yvan) on keybase.
- I have a public key ASDs0EllpU40m544eI5rDvBPOoKyl0Jl4-HC6DAQmlPsuwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| var adblock = false; |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/sh | |
| # stash unstaged changes, run release task, stage release updates and restore stashed files | |
| PATH=$PATH:/usr/local/bin:/usr/local/sbin | |
| NAME=$(git branch | grep '*' | sed 's/* //') | |
| # Run the commit only if we have css,less or js files changed | |
| files=$(git diff --cached --name-only --diff-filter=ACM | grep -E "\.(js|less|css)$") | |
| if [ "$files" = "" ] |
| <?php | |
| $key = 'SomeAgreedKey'; | |
| $algo = 'ripemd160'; | |
| $data = array( | |
| 'uid' => 1234, | |
| 'passwd' => '12345' | |
| ); | |
| $token = hash_hmac($algo, implode(',', $data), $key); |
| { | |
| "close_windows_when_empty": false, | |
| "default_line_ending": "unix", | |
| "draw_white_spaces": "all", | |
| "ensure_newline_at_eof_on_save": true, | |
| "fallback_encoding": "UTF-8", | |
| "fold_buttons": false, | |
| "font_size": 14.0, | |
| "highlight_line": true, | |
| "highlight_modified_tabs": true, |
Attention: if you attempt to fork this gist, github will think that you are a spammer and you will have to confirm that you are human with them. Apparantly there are too many links in this list. Also I update it rather frequently (see revisions on the left), so it's probably wise to not fork it anyway.
| <?php | |
| # Bench functional programming | |
| $start = microtime(true); | |
| $fact = function($x, $y = 1) use (&$fact) { | |
| if ($x == 0) { | |
| return $y; | |
| } | |
| return $fact($x - 1, $y * $x); | |
| }; | |
| $fact(30000) . "\n"; |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Sticky footer · Twitter Bootstrap</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta name="description" content=""> | |
| <meta name="author" content=""> | |
| <!-- CSS --> |