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" | |
"log" | |
"regexp" | |
"runtime" | |
) | |
func traceln(v ...interface{}) { |
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" | |
"io/ioutil" | |
"log" | |
"os" | |
"os/exec" | |
"time" | |
) |
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 ( | |
"log" | |
"log/syslog" | |
"os" | |
) | |
func main() { | |
trace, err := syslog.New(syslog.LOG_INFO, "myapp") |
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 <iostream> | |
#include <signal.h> | |
#include <unistd.h> | |
#include <sys/file.h> | |
// signal handler | |
void signal_handler(int s) | |
{ | |
std::cout << "Caught signal: " << s << std::endl; | |
exit(1); |
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 <Windows.h> | |
BOOL TouchInput(POINTER_FLAGS pointerFlags, int x, int y) | |
{ | |
POINTER_TOUCH_INFO contact = { 0 }; | |
contact.pointerInfo.pointerType = PT_TOUCH; | |
contact.pointerInfo.pointerFlags = pointerFlags; | |
contact.pointerInfo.ptPixelLocation.x = x; | |
contact.pointerInfo.ptPixelLocation.y = y; | |
contact.pointerInfo.pointerId = 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
var Pad int = 2 | |
func Indent(count int) string { | |
pad := "" | |
for i := 0; i < count; i++ { | |
pad += " " | |
} | |
return pad | |
} |
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 ( | |
"log" | |
"time" | |
) | |
func main() { | |
log.SetFlags(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
FROM golang:1.8.3-nanoserver | |
ADD . /go/src/demoapp | |
WORKDIR /go/src/demoapp | |
RUN go build -v | |
ENTRYPOINT ["/go/src/demoapp/demoapp"] |
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
<?xml version='1.0' encoding='utf-8'?> | |
<providers> | |
<provider level="5" ID="a3693192-9ed6-46d2-a981-f8226c8363bd" > | |
<keyword ID="0xF"/> | |
</provider> | |
</providers> |
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 ( | |
goflag "flag" | |
"github.com/golang/glog" | |
"github.com/spf13/cobra" | |
flag "github.com/spf13/pflag" | |
) |
OlderNewer