This file contains hidden or 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 python3 | |
# -*- coding: utf-8 -*- | |
# | |
# git-dolly -- Clone a git repository and retain directory structure | |
# | |
# Uses by default "~/src" as the root to where to clone repositories. It then | |
# automatically sets up the target directory based on the given URL. | |
# | |
# To override the default, set GIT_DOLLY_PATH. | |
# |
This file contains hidden or 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
" Settings | |
set autohidecursor " hide the mouse cursor when scrolling | |
set typelinkhints " type text in the link to narrow down numeric hints | |
let mapleader = "," | |
" Create a shortcut for search engines. For example, typing ':tabnew g example' | |
" would act the same way as ':tabnew google example' | |
let searchalias s = "stackoverflow" | |
let searchalias g = "google" |
This file contains hidden or 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
#include "src/nn.h" | |
#include "src/reqrep.h" | |
#include "src/utils/err.c" | |
#include "src/utils/thread.c" | |
#include "src/utils/sleep.c" | |
#include <stddef.h> | |
#include <assert.h> | |
#include <stdlib.h> |
This file contains hidden or 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
#include "src/nn.h" | |
#include "src/reqrep.h" | |
#include "src/utils/err.c" | |
#include "src/utils/thread.c" | |
#include "src/utils/sleep.c" | |
#include <stddef.h> | |
#include <assert.h> | |
#include <stdlib.h> |
This file contains hidden or 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 | |
# -*- coding: utf-8 -*- | |
# | |
# This is how I used it: | |
# $ cat ~/.bash_history | bash-history-to-zsh-history >> ~/.zsh_history | |
import sys | |
def main(): |
This file contains hidden or 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
#include <assert.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <zmq.h> | |
int main (int argc, char *argv[]) | |
{ | |
const char *msg[] = {"0", "1", "2"}; |
This file contains hidden or 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 f487d74ff495 src/pkg/flag/export_test.go | |
--- a/src/pkg/flag/export_test.go Thu Feb 10 23:01:45 2011 +0800 | |
+++ b/src/pkg/flag/export_test.go Fri Feb 18 15:24:20 2011 +0800 | |
@@ -12,7 +12,7 @@ | |
// After calling ResetForTesting, parse errors in flag handling will panic rather | |
// than exit the program. | |
func ResetForTesting(usage func()) { | |
- flags = &allFlags{make(map[string]*Flag), make(map[string]*Flag), os.Args[1:]} | |
+ flags = NewParser() | |
Usage = usage |