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
;;; | |
;;; 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
// 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
using PTIRelianceLib; | |
using System; | |
using System.Drawing; | |
using System.Drawing.Printing; | |
using System.Threading; | |
namespace RelianceCLI | |
{ | |
internal class Program | |
{ |
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) => |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import javafx.animation.KeyFrame; | |
import javafx.animation.KeyValue; | |
import javafx.animation.Timeline; | |
import javafx.geometry.Point3D; | |
import javafx.scene.image.Image; | |
import javafx.scene.image.ImageView; | |
import javafx.scene.layout.StackPane; | |
import javafx.scene.transform.Rotate; | |
import javafx.util.Duration; |
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 xml.dom import minidom | |
from subprocess import check_output | |
#Set this to the Visual Studio output directory, no trailing \ | |
path = 'X:\absolute\path\tp\publish\directory' | |
#Typically found as MyApp.application in the publish directory | |
app = "MyApp" | |
#Path to Mage.exe. Notice the delimented \v | |
mage = '"C:\Program Files (x86)\Microsoft SDKs\Windows\\v7.0A\Bin\mage.exe"' |
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/sh | |
# Makefile fixer | |
# Some old projects that have been touched by dumb text editors | |
# may have had their makefile tabs turned in spaces. For large | |
# projects, this is a pia to fix. Use this script in your project | |
# directory as a quick fix. +1 for the expand command. | |
set -e | |
old="$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
http://stackoverflow.com/questions/9023129/algorithm-for-bit-expansion-duplication | |
We are isolating each nibble, then each bit per the expansion factor (3 in this case) | |
out = (in | in << 8) & 0x0F00F; | |
out = (out | out << 4) & 0x0C30C3; | |
out = (out | out << 2) & 0x249249; | |
out *= 7; | |
== 0000 0000 0000 0000 1101 0101 (in == 0xD5) |
NewerOlder