This file contains hidden or 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
+ActionMappings=(ActionName="MenuButtonLeft",Key=MotionController_Left_Shoulder,bShift=False,bCtrl=False,bAlt=False,bCmd=False) | |
+ActionMappings=(ActionName="LeftTouchpadPress",Key=MotionController_Left_Thumbstick,bShift=False,bCtrl=False,bAlt=False,bCmd=False) | |
+ActionMappings=(ActionName="LeftTouchpadTouch",Key=Steam_Touch_0,bShift=False,bCtrl=False,bAlt=False,bCmd=False) | |
+ActionMappings=(ActionName="LeftGrip",Key=MotionController_Left_Grip1,bShift=False,bCtrl=False,bAlt=False,bCmd=False) | |
+ActionMappings=(ActionName="LeftTrigger",Key=MotionController_Left_Trigger,bShift=False,bCtrl=False,bAlt=False,bCmd=False) | |
+ActionMappings=(ActionName="MenuButtonRight",Key=MotionController_Right_Shoulder,bShift=False,bCtrl=False,bAlt=False,bCmd=False) | |
+ActionMappings=(ActionName="RightTouchpadPress",Key=MotionController_Right_Thumbstick,bShift=False,bCtrl=False,bAlt=False,bCmd=False) | |
+ActionMappings=(ActionName="RightTouchpadTouch",Key=Steam_Touch_1,bShift=False,bCtrl=False,bAlt=False,bCmd=False) | |
+ActionMappings=(ActionNam |
This file contains hidden or 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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
F1::Run % "D:\Path\to\carve.bat " + Explorer_GetSelection() | |
Explorer_GetSelection(hwnd="") { | |
hwnd := hwnd ? hwnd : WinExist("A") | |
WinGetClass class, ahk_id %hwnd% | |
if (class="CabinetWClass" or class="ExploreWClass" or class="Progman") | |
for window in ComObjCreate("Shell.Application").Windows | |
if (window.hwnd==hwnd) |
This file contains hidden or 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
TMap<FString, FSomeOtherType> MyMap; | |
MyMap.KeySort([](const FString& A, const FString& B) { | |
return A.Compare(B, ESearchCase::IgnoreCase) < 0; | |
}); | |
for (const auto& Entry : MyMap) | |
{ | |
// Do something with sorted values | |
Entry.Value; |
This file contains hidden or 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 os | |
files = os.listdir('.') | |
for file in files: | |
s = file.split(".wav.ogg") | |
if len(s) > 1: | |
name = s[0] + ".ogg" | |
os.rename(file, name) |
This file contains hidden or 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 subprocess | |
import os | |
import glob | |
convertpath = 'C:\Program Files\ImageMagick-6.9.2-Q16\convert.exe' | |
def MakeGif(folder): | |
gifcommand = [convertpath, '-delay', '10', folder +'/*.jpg', folder + '.gif'] | |
print gifcommand | |
subprocess.call(gifcommand) |
This file contains hidden or 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
;***************************************************************************************************** | |
; Program file name: snes.asm | |
; | |
; CPTR 215 Final Project: | |
; Language: 8051 Assembly | |
; Operating system: Windows | |
; Programmer: Zach Burke | |
; Date Written: 12/11/01 | |
; | |
; Description: This program emulates SNES hardware to capture SNES controller |
This file contains hidden or 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 os | |
files = os.listdir('.') | |
files.sort() | |
num = 1 | |
for file in files: | |
os.rename(file, "part" + str(num) + ".rar") | |
num = num + 1 |
This file contains hidden or 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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="js/gsap/TweenMax.js"></script> | |
<script src="js/gsap/TimelineMax.js"></script> | |
<script src="js/coherent_animations.js"></script> | |
<script src="js/coherent.js"></script> | |
<link rel="stylesheet" href="css/main.css"> | |
</head> |
This file contains hidden or 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 time import sleep | |
import time | |
import datetime | |
import zachhue | |
import os | |
import winsound, sys | |
lastColor = zachhue.office.xy | |
lastBrightness = zachhue.office.brightness | |
bIsBuilding = False |
This file contains hidden or 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
// ==UserScript== | |
// @name Sketchfab Oculus-izer | |
// @namespace https://sketchfab.com/ | |
// @description Replace all model links with dk1/dk2 links | |
// @include https://sketchfab.com/* | |
// ==/UserScript== | |
// DK1 users change this to false | |
var bIsUsingDK2 = true; | |
var dk1String = '/embed?oculus=1' |