$ git commit --amend --author="Author Name <email@address.com>"or
$ git commit --amend --reset-author| # print files in current dir, by date | |
| my @files = sort { -M $a <=> -M $b } grep { ! -d } glob "./*"; | |
| print "files by modified date:\n"; | |
| print "\t$_\n" for @files; |
| [user] | |
| name = Sérgio Bernardino | |
| email = code@sergiobernardino.net | |
| [color] | |
| branch = auto | |
| diff = auto | |
| grep = auto | |
| status = auto | |
| log = auto | |
| [color "status"] |
| { | |
| author => 'sergio', | |
| handle => 'smpb', | |
| country => 'portugal', | |
| complexity => { | |
| number => 4, | |
| depth => [ 'a', 'b', 'c' ] | |
| } | |
| } |
| (function poll(){ | |
| $.ajax({ | |
| url: '/poll', | |
| success: function(data) { | |
| console.log(data); | |
| }, | |
| error: function(msg) { console.log('bummer...') }, | |
| dataType: 'json', | |
| complete: poll, | |
| timeout: 30000 |
| #!/usr/bin/perl -w # camel code | |
| use strict; | |
| $_='ev | |
| al("seek\040D | |
| ATA,0, 0;");foreach(1..3) | |
| {<DATA>;}my @camel1hump;my$camel; | |
| my$Camel ;while( <DATA>){$_=sprintf("%-6 | |
| 9s",$_);my@dromedary 1=split(//);if(defined($ | |
| _=<DATA>)){@camel1hum p=split(//);}while(@dromeda |
| --- src/malloc.orig.c 2009-10-29 03:16:07.000000000 -0500 | |
| +++ src/malloc.c 2009-10-29 03:16:18.000000000 -0500 | |
| @@ -12,7 +12,7 @@ static const char RCSid[] = "$Id: malloc | |
| #include "signals.h" | |
| #include "malloc.h" | |
| -caddr_t mmalloc_base = NULL; | |
| +void *mmalloc_base = NULL; | |
| int low_memory_warning = 0; | |
| static char *reserve = NULL; |
| #!/usr/bin/env bash | |
| # See <http://perltricks.com/article/57/2014/1/1/Shazam-Use-Image-Magick-with-Perlbrew-in-minutes> | |
| # may need to have the perl configured with -Duseshrplib | |
| # | |
| # perl -V | grep -- '-Duseshrplib' | |
| # compile perl with perlbrew: | |
| # |
| // ES7, async/await | |
| function sleep(ms = 0) { | |
| return new Promise(r => setTimeout(r, ms)); | |
| } | |
| (async () => { | |
| console.log('a'); | |
| await sleep(1000); | |
| console.log('b'); | |
| })() |