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
// Call out from some place else... | |
private static void RunReconnectionTest() | |
{ | |
while (true) | |
{ | |
using (var printer = new ReliancePrinter()) | |
{ | |
var start = DateTime.Now; |
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
;;; | |
;;; Minispy | |
;;; | |
;;; | |
;;; Copyright (c) 2001, Microsoft Corporation | |
;;; | |
[Version] | |
Signature = "$Windows NT$" | |
Class = "ActivityMonitor" ;This is determined by the work this filter driver does |
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 rauth import OAuth1Service | |
import BaseHTTPServer | |
import threading,time | |
import webbrowser | |
import urlparse | |
class Config(object): | |
def __init__(self): | |
# Create a new consumer at https://bitbucket.org/account/user/{username}/api | |
self.consumer_key = <YOUR_KEY> |
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 System; | |
using System.IO.Ports; | |
class PortDataReceived | |
{ | |
public static void Main() | |
{ | |
SerialPort portA = new SerialPort("COM7"); |
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
#!/bin/bash -eu | |
TOOLCHAIN=${TOOLCHAIN-arm-none-eabi-} | |
OBJDUMP=${TOOLCHAIN}objdump | |
GDB=${TOOLCHAIN}gdb | |
function usage() | |
{ | |
cat <<EOF | |
Usage: dism.sh -f|function -b|--binary --no-source |
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
#region Win32 GDI | |
private void btnTextDrawCenter_Click(object sender, RoutedEventArgs e) | |
{ | |
var doc = new PrintDocument() | |
{ | |
PrintController = new StandardPrintController(), | |
}; | |
doc.OriginAtMargins = false; | |
doc.PrinterSettings.PrinterName = CurrentPrinter; | |
doc.PrintPage += (s, args) => |
OlderNewer