git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
<?php | |
/** | |
* This is free and unencumbered software released into the public domain. | |
* | |
* Anyone is free to copy, modify, publish, use, compile, sell, or | |
* distribute this software, either in source code form or as a compiled | |
* binary, for any purpose, commercial or non-commercial, and by any | |
* means. | |
* |
// Bind context | |
_.bindAll( this, "animate", "render", "update" ); | |
// Initialize camera | |
this.camera = new THREE.Camera( 45, window.innerWidth / window.innerHeight, -2000, 10000 ); | |
this.camera.projectionMatrix = THREE.Matrix4.makeOrtho( window.innerWidth / - 2, window.innerWidth / 2, window.innerHeight / 2, window.innerHeight / - 2, -2000, 10000 ); | |
this.camera.position.y = 70.711; | |
this.camera.position.x = 100; | |
this.camera.position.z = 100; | |
// this is a rudimentary attempt to implement a slideshow that doesn't saturate downloads with every image upon page load; instead the first slide is embedded in the HTML and loads with the page immediately, the second upon DOM ready, and subsequent upon the advance of each slide; additionally a progress indicator is displayed and slideshow paused if the next slide is still downloading thus preventing displaying partially downloaded images, or missing images entirely | |
var slides = [ // this is an array of the html representing each slide to display, in reverse order starting with the second slide (the first should be in the HTML page, see below); this markup may contain anything (e.g. li, div, captions) and should have corresponding css, but the first img tag is assumed to be the main image which we monitor for its download state | |
'<img src="/path/to/file4.jpg">', | |
'<img src="/path/to/file3.jpg">', | |
'<img src="/path/to/file2.jpg">', | |
]; | |
// callback functions | |
function loadedSlide(){ |
""" Play an audio file with pyaudio while concurrently showing audio playhead | |
on a matplotlib plot of the audio time series and spectrogram. | |
Adjust duration and filename in the script below to reflect your audio file. | |
v. 0.1 | |
21 Mar 2012 | |
Eric Bruning | |
""" |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Population Projection</title> | |
<link rel="stylesheet" href="main.css"> | |
</head> |
#!BPY | |
""" | |
Name: 'FaceGen TRI (.tri)...' | |
Blender: 249 | |
Group: 'Import' | |
Tooltip: 'Load a FaceGen TRI file.' | |
""" | |
__author__= "himika" |
#!BPY | |
""" | |
Name: 'FaceGen TRI (.tri)...' | |
Blender: 249 | |
Group: 'Export' | |
Tooltip: 'Write a FaceGen TRI file.' | |
""" | |
__author__= "himika" |
#!BPY | |
""" | |
Name: 'Transfer Shape Keys...' | |
Blender: 249 | |
Group: 'Object' | |
Tooltip: 'Copy another selected object's shapes to this one by applying the relative offsets' | |
""" | |
__author__ = 'himika' |
import wave | |
import pylab | |
import os | |
import numpy as np | |
def readwavefile(filename): | |
""" | |
Reads a WAV file and returns all the frames converted to floats and the framerate. | |
""" | |
assert os.path.exists(filename) and os.path.isfile(filename) |