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/bash | |
PIDFILE=.git/cscope.pid | |
log() { | |
: # echo "[$$]" $(date +'%F %T'): "$@" >>.git/cscope.log | |
} | |
if [ -e $PIDFILE ]; then | |
PID=$(cat $PIDFILE) | |
PGRP=$(ps x -o "%p %r" | grep $PID | awk '{print $2}') |
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
### Keybase proof | |
I hereby claim: | |
* I am myme on github. | |
* I am myme (https://keybase.io/myme) on keybase. | |
* I have a public key whose fingerprint is B629 3D25 9181 FEB7 6046 5EEC 1228 F4DE 385A 6C38 | |
To claim this, I am signing this object: |
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
while (<$log>) { | |
if (/^${esc_color}commit -?($::sha1_short)/o) { | |
my $cmt = $1; | |
if ($c && cmt_showable($c) && $c->{r} != $r_last) { | |
$r_last = $c->{r}; | |
process_commit($c, $r_min, $r_max, \@k) or | |
goto out; | |
} | |
$d = undef; | |
$c = { c => $cmt }; |
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
if (defined $headrev && $self->use_svm_props) { | |
if ($self->rewrite_root) { | |
die "Can't have both 'useSvmProps' and 'rewriteRoot' ", | |
"options set!\n"; | |
} | |
if ($self->rewrite_uuid) { | |
die "Can't have both 'useSvmProps' and 'rewriteUUID' ", | |
"options set!\n"; | |
} | |
my ($uuid, $r) = $headrev =~ m{^([a-f\d\-]{30,}):(\d+)$}i; |
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
diff -r 383d275de04c transifex/webtrans/wizards.py | |
--- a/transifex/webtrans/wizards.py Thu Jul 01 00:43:08 2010 +0000 | |
+++ b/transifex/webtrans/wizards.py Wed May 18 09:21:56 2011 +0000 | |
@@ -404,7 +404,7 @@ | |
filename = self.pofile.filename | |
if self.po_entries_changed: | |
- po_contents = self.po_entries.__str__().encode('utf-8') | |
+ po_contents = self.po_entries.__str__().decode('utf-8').encode('utf-8') | |
edited_file = SimpleUploadedFile(filename, po_contents) |
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
#!/usr/bin/env python | |
import sys | |
alpha = { | |
'a' : u'\u1EA1', 'b' : u'\u1E05', 'c' : u'\u1E09', | |
'd' : u'\u1E0D', 'e' : u'\u1EB9', 'f' : u'\u1E1F', | |
'g' : u'\u1E21', 'h' : u'\u1E25', 'i' : u'\u1ECB', | |
'k' : u'\u1E33', 'l' : u'\u1E37', 'm' : u'\u1E43', | |
'n' : u'\u1E45', 'o' : u'\u1ECD', 'p' : u'\u1E57', |
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
eplemos :: ~ » gcc --version | |
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00) | |
Copyright (C) 2007 Free Software Foundation, Inc. | |
This is free software; see the source for copying conditions. There is NO | |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
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
browserify({ debug: true }) | |
.require('./src/assets.js') | |
.transform('babelify') | |
.bundle() | |
.on('error', console.error) | |
.pipe(exorcist('./build/assets.js.map')) | |
.pipe(fs.createWriteStream('./build/assets.js', 'utf8')); |
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
def _import(dep): | |
print "importing %s" % dep | |
imported = None | |
exec "import %s; imported = %s" % (dep, dep) | |
return imported | |
def inject(*deps): | |
def wrapper(fn): | |
loaded_deps = {} |
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
djent :: ~/try-bin/hs » ./toFive.hs | |
222 | |
2 2 | |
2 | |
22 | |
22222 | |
--- le mirror --- | |
55555 |
OlderNewer