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 ( | |
"io" | |
"log" | |
"math/rand" | |
"net/http" | |
"os" | |
) |
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
# receiver should be made into a pointer | |
func (revocationCodes).Len() int | |
# receiver should be made into a pointer | |
func (revocationCodes).Less(i int, j int) bool | |
# receiver should be made into a pointer | |
func (revocationCodes).Swap(i int, j int) | |
# return value 'certChecker' at index 0 should be made into a pointer |
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 comeatme | |
import ( | |
"code.google.com/p/google-api-go-client/plus/v1" | |
"net/http" | |
) | |
type SimpleKeyTransport struct { | |
Key string | |
Transport http.RoundTripper |
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
changeset: 3:172d32922e72 | |
user: Brian Kernighan <bwk@research.att.com> | |
date: Fri Apr 01 02:03:04 1988 -0500 | |
summary: last-minute fix: convert to ANSI C | |
diff -r ac3363d7e788 -r 172d32922e72 src/pkg/debug/macho/testdata/hello.c | |
--- a/src/pkg/debug/macho/testdata/hello.c Fri Apr 01 02:02:04 1988 -0500 | |
+++ b/src/pkg/debug/macho/testdata/hello.c Fri Apr 01 02:03:04 1988 -0500 | |
@@ -1,6 +1,8 @@ | |
#include <stdio.h> |
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
[jhodges@thehost ~]$ identify -list resource | |
File Area Memory Map Disk Thread Time | |
------------------------------------------------------------------------------- | |
24576 50.551GB 35.309GiB 94.158GiB 18.446744EB 16 unlimited |
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
trying to | |
attempting to | |
to help | |
that helps | |
utilize | |
helps to |
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 ( | |
"flag" | |
"fmt" | |
"os" | |
) | |
func makeTable(word string) ([]int) { | |
table := make([]int, len(word)) |
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
#include <ruby.h> | |
#include <node.h> | |
int main(int argc, char **argv) { | |
ruby_init(); | |
ruby_script("embedded"); | |
// The bizness | |
rb_thread_t th = ALLOC(struct rb_thread); \ | |
th->last_status = 0; |
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?(JSON) | |
require 'yajl' | |
else | |
require 'json' | |
module Yajl | |
LOOKUP = %w[null boolean string bytes int long float double]. | |
inject({}){|h,k| h[k.inspect] = k; h } | |
def self.dump(obj) | |
JSON.dump(obj) | |
end |
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" | |
"time" | |
) | |
// SlowShepherd is for making sure that a func used in a tight loop | |
// does not cause a thundering herd problem. If the function | |
// thunderingHerdFunc returns quicker than the sleepInterval given, |