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
package main | |
import ( | |
"errors" | |
"fmt" | |
"io" | |
"log" | |
"os" | |
"github.com/segmentio/parquet-go" |
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
import ( | |
"fmt" | |
"strings" | |
"regexp" | |
) | |
var matchFirstCap = regexp.MustCompile("(.)([A-Z][a-z]+)") | |
var matchAllCap = regexp.MustCompile("([a-z0-9])([A-Z])") |
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
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
type Foo struct { | |
Bar string `param:"bar"` | |
Bla string `param:"bla"` |
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
UPDATE conference SET isactive = FALSE WHERE isactive IS NULL ; | |
UPDATE conference SET haspresentationprefs = TRUE WHERE haspresentationprefs IS NULL ; | |
UPDATE conference SET ctime = deadline WHERE ctime IS NULL ; | |
UPDATE conference SET mtime = deadline WHERE mtime IS NULL ; | |
UPDATE conference SET conferencegroup = 'BC' WHERE conferencegroup IS NULL ; | |
UPDATE abstract SET ctime = c.deadline FROM abstract a JOIN conference c ON a.conference_uuid = c.uuid WHERE a.ctime IS NULL ; | |
UPDATE abstract SET mtime = c.deadline FROM abstract a JOIN conference c ON a.conference_uuid = c.uuid WHERE a.mtime IS NULL ; | |
UPDATE account SET ctime = (SELECT deadline FROM conference WHERE short = 'BC15') WHERE ctime IS NULL ; |
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
# git status | |
function parse_git_dirty { | |
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" | |
} | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/" | |
} | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]:$(parse_git_branch)$ ' |
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
template<typename TOBJ, typename TRET, typename TCHECK> | |
condition | |
must(const TOBJ &parent, TRET(TOBJ::*get)(void)const, const TCHECK &check, const std::string &msg); |
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
-----BEGIN PGP MESSAGE----- | |
Version: GnuPG v1 | |
owFdkntQFVUcx7kECj4QCAclZsQlLRQve/acu7sHfGBSZCpaVwcE6s7ZPWdhFe7F | |
vReuQBoilvQwSCvLQFPKUKcCzXTGB4oylTaOgqNm6Iz2UEpTJ6CGAdplbNLOX+fx | |
+f1+3+/vd2pGPxIQaOvYEZ6bXtPQYTt1UwlwbiPR5ZzioaVccjmnFujM7bN2blLI | |
uGRuOStViJfZdU+c20OZfZk37j6TyJUww6t73CbF25Fd4lYlWrgVrOnuPGYUGbqV | |
iyNIVSASHQqSiUOTqQJFGYg8pohAwDtUJGGeIIrMlPker++hqtxQTpdOzds0NNvi | |
51j8bJRm8cVDDxIlCANIsWCmBohBghnQNEXElAHA8xboZcZ9S4QaOnG7vD4P8zPD | |
Ul3IjOUFzGV4PEPWVZ9ugQDxkAfYAQVTF/Hmm6FUIiIAiFJJFHgFASLwMqIaQKrA |
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
function isGlobal(other) { | |
return (function() { return this == other; })(); | |
} | |
function inherit(object, superclass) { | |
if (superclass instanceof Function) { | |
if (arguments.length > 2) { |