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/python | |
import glob | |
import re | |
import os | |
import sys | |
def assemble_paths(paths): | |
"""Assemble multiple files together into a main sketch. paths is a list |
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 argbench | |
import ( | |
"testing" | |
) | |
// n limits the size of the constructed arrays, to prevent the benchmarks from | |
// measuring memory bandwidth instead of performance. | |
const n = 1024 |
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 argbench | |
import ( | |
"testing" | |
) | |
// n limits the size of the constructed arrays, to prevent the benchmarks from | |
// measuring memory bandwidth instead of performance. | |
const n = 1024 |
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" | |
xdg "github.com/twpayne/go-xdg" | |
) | |
func main() { | |
bds, err := xdg.NewBaseDirectorySpecification() |
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 | |
// Run this with: | |
// $ go test -count=1 -race -timeout=2s -dsn=postgresql://... . | |
import ( | |
"context" | |
"database/sql" | |
"flag" | |
"strconv" |
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 ( | |
"bytes" | |
"database/sql" | |
"flag" | |
"html/template" | |
"strconv" | |
"strings" | |
"testing" |
OlderNewer