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 ( | |
"expvar" | |
"log" | |
"net/http" | |
"github.com/gorilla/mux" | |
) |
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
Param($MonitorFolder, $SleepInSec) | |
if (!$MonitorFolder) { | |
Write-Host "You need to set -MonitorFolder parameter." | |
Return | |
} | |
$sleep = 1 | |
if ($SleepInSec) { | |
$sleep = $SleepInSec |
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
using CommandLine; | |
using CommandLine.Text; | |
using Grapevine; | |
using Grapevine.Client; | |
using Grapevine.Server; | |
using System; | |
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.Collections.Specialized; | |
using System.Diagnostics; |
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
; Defines | |
#define MyAppVersion "1.0.0" | |
#define MyAppVersionInfoVersion "1.0.0" | |
#define MyAppName "My Superb App That Will Save The World" | |
#define MyAppPublisher "Superb, Inc." | |
#define MyAppURL "http://www.a-very-superb-url-to-my-app.com/" | |
#define MyAppCopyright "Copyright (C) Copyright 3056. All rights reserved." | |
#define MyAppId "{{88C6A6D9-324C-46E8-BA87-563D14021442}" | |
#define MyAppPath "{pf}\Superb\WorldSavingApp" |
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
#include <Windows.h> | |
typedef struct _param_t { | |
int code; | |
} param_t; | |
HANDLE hTerm = NULL; // terminate event | |
HANDLE hThr = NULL; // apc thread | |
HANDLE hReady = NULL; // apc thread ready event |
OlderNewer