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
% ./all.bash | |
# Building C bootstrap tool. | |
cmd/dist | |
# Building compilers and Go bootstrap tool for host, darwin/amd64. | |
lib9 | |
libbio | |
libmach | |
misc/pprof | |
cmd/addr2line |
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
func main() { | |
index, err := search.NewIndex(os.Args[1:]...) | |
if err != nil { | |
log.Fatal(err) | |
} | |
scanner := bufio.NewScanner(os.Stdin) | |
scanner.Split(bufio.ScanLines) | |
fmt.Print("> ") | |
for scanner.Scan() { | |
articles, err := index.Search(scanner.Text()) |
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
package main | |
import ( | |
"github.com/fsouza/lb" | |
"net/http" | |
) | |
func main() { | |
l, _ := lb.NewLoadBalancer("http://localhost:8080", "http://localhost:8888", "http://localhost:9999") | |
http.Handle("/", l) |
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 8e1d1da398b3 src/feature.h | |
--- a/src/feature.h Mon Apr 15 22:22:57 2013 +0200 | |
+++ b/src/feature.h Thu Apr 18 23:37:57 2013 -0300 | |
@@ -525,14 +525,6 @@ | |
#endif | |
/* | |
- * +syntax syntax highlighting. When using this, it's a good | |
- * idea to have +autocmd and +eval too. | |
- */ |
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
OBJECTS=asm_swap.o swap.o | |
all: $(OBJECTS) | |
$(CC) -o swap $(OBJECTS) | |
clean: | |
rm -f swap *.o |
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
package quota | |
// Usage represents the usage of units. It's a draft for #382. | |
// | |
// A user will have a limit of units, and an slice of the current units. | |
// Whenever the user creates a new unit (calling unit-add or app-create), it | |
// will get appended to the Current slice. | |
// | |
// Limit represents the maximum number of units. | |
// |
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
package docker | |
type Client struct { | |
server string | |
} | |
func NewClient(server string) *Client { | |
return &Client{server: server} | |
} |
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 <stdio.h> | |
struct Person | |
{ | |
int x; | |
int y[4]; | |
}; | |
int | |
main(void) |
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 <stdio.h> | |
int | |
main(void) | |
{ | |
int x[4] = {4, 3, 2, 1}; | |
int *p = x; | |
p += 3; | |
printf("%d\n", p[-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
% ./make.bash | |
# Building C bootstrap tool. | |
cmd/dist | |
# Building compilers and Go bootstrap tool for host, darwin/amd64. | |
lib9 | |
libbio | |
libmach | |
misc/pprof | |
cmd/addr2line |