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
-- | |
-- Put at the root of your project and run | |
-- | |
lfs = require "lfs" | |
function findAllAI ( ) | |
local t = {} | |
count = 1 | |
for file in lfs.dir('./Resources/AIModels') do | |
local sName, sExt = getFileNameAndExtension ( file ) |
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 math | |
# This is based on original code from http://stackoverflow.com/a/22649803 | |
def EnhanceColor(normalized): | |
if normalized > 0.04045: | |
return math.pow( (normalized + 0.055) / (1.0 + 0.055), 2.4) | |
else: | |
return normalized / 12.92 | |
def RGBtoXY(r, g, b): |
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
@echo off | |
set SOURCE=C:\projects\UnrealEngine | |
set DESTINATION=C:\projects\perforce\UnrealEngine | |
REM Samples | |
xcopy /e /f /r /h /i %SOURCE%\Samples %DESTINATION%\Samples | |
REM Templates | |
xcopy /e /f /r /h /i %SOURCE%\Templates %DESTINATION%\Templates |
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
#!/usr/bin/env python | |
# vim:set ft=python fileencoding=utf-8 sr et ts=4 sw=4 : See help 'modeline' | |
# From http://www.noah.org/wiki/Wavelength_to_RGB_in_Python | |
''' | |
== A few notes about color == | |
Color Wavelength(nm) Frequency(THz) | |
Red 620-750 484-400 | |
Orange 590-620 508-484 |
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
# http://codingmess.blogspot.com/2009/05/conversion-of-wavelength-in-nanometers.html | |
def wav2RGB(wavelength): | |
w = int(wavelength) | |
# colour | |
if w >= 380 and w < 440: | |
R = -(w - 440.) / (440. - 350.) | |
G = 0.0 | |
B = 1.0 | |
elif w >= 440 and w < 490: |
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' |
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
<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
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
;***************************************************************************************************** | |
; 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 |