Skip to content

Instantly share code, notes, and snippets.

View jamieshepherd's full-sized avatar
👋
:jamie:

Jamie Shepherd jamieshepherd

👋
:jamie:
View GitHub Profile
@jamieshepherd
jamieshepherd / ITINERARY.md
Last active August 2, 2019 04:04
Itinerary

Sat 7th

MILLBRAE > SALT LAKE CITY

  • Leaving 1am, 12 hrs drive
  • Arrive 1pm Saturday
  • Lunch, stay at salt lake city, visit lake

Sun 8th

SLC > GRAND TETON

$378 2 DAYS

  • Leave 11am, 6 hours drive
@jamieshepherd
jamieshepherd / JamieBuild.md
Last active January 7, 2016 00:16
Jamie build 2016
f 1562//2583 1557//2190 1095//1188
g group_tail_blades
usemtl tail_blades
s off
f 1227//554 1350//2282 1190//1091
// Index or face
else if (streamChar == 'f') {
UINT value = 0;
m_TriangleCount = 0;
if (!fileStream) {
MessageBox(NULL, L"BROKE1", L"Critical error", MB_ICONWARNING | MB_OK);
}
// As long as we're on the same line
@jamieshepherd
jamieshepherd / mesh.cpp
Created November 6, 2015 13:44
mesh loader
bool Model::LoadModel(char* filename, wchar_t* texturename, bool leftHanded, bool isTextured)
{
m_Textured = isTextured;
std::ifstream fileStream;
char streamChar;
fileStream.open(filename);
while (!fileStream.eof()) {
// READ LINES
Not sure how old this is, but the list of API calls you can make
player.tick()
player.correctMedia()
player.update()
player.wait()
player.showSlideID()
player.showSlideIndex()
player.showNextSlide()
player.showPreviousSlide()
@jamieshepherd
jamieshepherd / gist:e46bb1102a37f2091a58
Created March 27, 2015 10:55
Loop music Flash AS2
// Background music
this.createEmptyMovieClip("m",_root.getNextHighestDepth());
audioVolume = 50;
backgroundMusic = new Sound(m);
backgroundMusic.attachSound("background-music");
backgroundMusic.setVolume(audioVolume);
backgroundMusic.start(0,0);
backgroundMusic.onSoundComplete = function() { this.start(); }
@jamieshepherd
jamieshepherd / gist:7e21084abbe1a41d27c1
Last active August 29, 2015 14:17
Fade music Flash AS2
// Fade music
function fadeMusic(newVolume){
Tweener.addTween(this,{audioVolume:newVolume, time:3, delay:0, transition:"easeOutSine"});
this.onEnterFrame = function(){
backgroundMusic.setVolume(Math.round(audioVolume));
if(audioVolume==newVolume){
delete this.onEnterFrame
}
}
@jamieshepherd
jamieshepherd / gist:e012772f6a9eedc95091
Created May 12, 2014 20:57
json deserialize into object list
/* -- EXAMPLE JSON
[
{"boxID":1,"boxName":"testname","boxPath":"D:\\Web\\jamie\\Vagrantfile","boxStatus":false},
{"boxID":2,"boxName":"anotherbox","boxPath":"D:\\Web\\jamie\\Vagrantfile","boxStatus":false}
]
*/
// My current method
public static void loadSettings()