The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
class Program | |
{ | |
static BackgroundWorker _bgWorker = new BackgroundWorker(); | |
static ManualResetEvent _terminateSignal = new ManualResetEvent(false); | |
static void Main(string[] args) | |
{ | |
_bgWorker.DoWork += BgWorkerOnDoWork; |
public void Update() | |
{ | |
bool isFiring = Input.GetButton("Fire1") || XboxBigButtonJoystick.GetButton(Controller.Red, Buttons.A); | |
if (isFiring && Time.time > nextFire) | |
{ | |
... | |
} | |
} | |
public void FixedUpdate() |
public partial class Form1 : Form | |
{ | |
public enum Players | |
{ | |
None, | |
VLC, | |
Netflix | |
} | |
/// <summary> |
@echo off | |
REM START BY FINDING THE OEM INF FILE | |
setlocal EnableDelayedExpansion | |
SET OEM_FILE= | |
set oemdata="devcon.exe dp_enum" | |
FOR /F "eol=. tokens=*" %%a IN ( '%oemdata%' ) DO ( | |
set line=%%a | |
set ourline=!line:Sverrir Sigmundarson=! | |
if not !line!==!ourline! ( |
; Set working dir to the driver dir (otherwise the uninstall of any loaded devices wont work) | |
Push $OUTDIR | |
SetOutPath "$INSTDIR\driver" | |
; Execute the device uninstall and inf deletion script | |
ExecWait '"$INSTDIR\driver\uninstall_device.bat"' $0 | |
DetailPrint "Return code was $0" | |
; Restore the working directory | |
Pop $OUTDIR |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics.Contracts; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace RectifyLib | |
{ |
using System; | |
using System.Runtime.InteropServices; | |
/// <summary> | |
/// From: https://www.codeproject.com/Articles/3792/C-does-Shell-Part-4 | |
/// Note: The UCOMIEnumString interface is deprecated in .NET as of 2018! | |
/// </summary> | |
public class AutoCompleteExt { | |
public static Guid CLSID_AutoComplete = new Guid("{00BB2763-6A77-11D0-A535-00C04FD7D062}"); |