I hereby claim:
- I am axw on github.
- I am axw (https://keybase.io/axw) on keybase.
- I have a public key ASCx6q32COJmBADGwDpZt1bGvOZ8lOLsBMFepUH8EMr0qAo
To claim this, I am signing this object:
| import cmonster | |
| import cmonster.ast | |
| import sys | |
| parser = cmonster.Parser( | |
| "test.cpp", | |
| data="""\ | |
| #include <stdio.h> | |
| int main(int argc, const char *argv[]) | |
| { |
| package main | |
| import ( | |
| "fmt" | |
| "os/exec" | |
| "runtime" | |
| "strings" | |
| "syscall" | |
| ) |
| import pushy | |
| # Load the local package into a "PushyPackageLoader". This takes care of loading package | |
| # sources and crafting them into a structure that can be loaded by "InMemoryImporter". | |
| import whatever | |
| loader = pushy.client.PushyPackageLoader() | |
| packages = loader.load(whatever) | |
| with pushy.connect("ssh:remotehost") as conn: | |
| remote_importer = conn.modules.pushy.client.InMemoryImporter(*packages) |
| import pushy | |
| import sys | |
| with pushy.connect("ssh:remotehost") as conn: | |
| whatever = conn.modules.whatever | |
| loader = conn.modules.pushy.client.PushyPackageLoader() | |
| packages = loader.load(whatever) | |
| importer = pushy.client.InMemoryImporter(*packages) | |
| sys.meta_path.insert(0, importer) |
| package main | |
| import "flag" | |
| var b = flag.Bool("myflag", false, "description") | |
| func main() { | |
| flag.Parse() | |
| if *b { | |
| println("true") |
| var LinesMatch gc.Checker = &linesMatchChecker{ | |
| &gc.CheckerInfo{Name: "LinesMatch", Params: []string{"obtained", "regexps"}}, | |
| } | |
| type linesMatchChecker struct { | |
| *gc.CheckerInfo | |
| } | |
| func (linesMatchChecker) Check(params []interface{}, names []string) (result bool, error string) { | |
| obtainedLines := strings.Split(params[0].(string), "\n") |
| #!/bin/bash | |
| set -e | |
| tmp=$(mktemp -d -p "" gocov.XXXXXXXXXX) | |
| function cleanup { | |
| rm -rf "$tmp" | |
| } | |
| trap cleanup EXIT |
I hereby claim:
To claim this, I am signing this object:
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "regexp" | |
| "strings" | |
| "github.com/lestrrat/go-jsschema" | |
| ) |