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
class Program | |
{ | |
static BackgroundWorker _bgWorker = new BackgroundWorker(); | |
static ManualResetEvent _terminateSignal = new ManualResetEvent(false); | |
static void Main(string[] args) | |
{ | |
_bgWorker.DoWork += BgWorkerOnDoWork; |
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
public void Update() | |
{ | |
bool isFiring = Input.GetButton("Fire1") || XboxBigButtonJoystick.GetButton(Controller.Red, Buttons.A); | |
if (isFiring && Time.time > nextFire) | |
{ | |
... | |
} | |
} | |
public void FixedUpdate() |
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
public partial class Form1 : Form | |
{ | |
public enum Players | |
{ | |
None, | |
VLC, | |
Netflix | |
} | |
/// <summary> |
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
@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! ( |
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
; 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 |
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.Collections.Generic; | |
using System.Diagnostics.Contracts; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace RectifyLib | |
{ |
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.Runtime.InteropServices; | |
// ReSharper disable SuspiciousTypeConversion.Global | |
// ReSharper disable InconsistentNaming | |
namespace VideoPlayerController | |
{ | |
/// <summary> | |
/// Controls audio using the Windows CoreAudio API | |
/// from: http://stackoverflow.com/questions/14306048/controling-volume-mixer |
OlderNewer