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
var async = require('async'); | |
var AWS = require('aws-sdk'); | |
var util = require('util'); | |
var spawn = require('child_process').spawn; | |
var fs = require('fs'); | |
var s3 = new AWS.S3(); | |
// globals | |
var dstBucket = "outrender1121" |
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, os.path | |
import numpy as np | |
import scipy | |
import scipy.misc | |
import scipy.ndimage.morphology as morphology | |
import subprocess | |
def printarr(arr): | |
print "\n".join([''.join(map(str,row)) for row in arr]) |
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 pymc import * | |
import numpy as np | |
import matplotlib.pyplot as pyplot | |
from pprint import pprint | |
#----------------------------------------------------------------------------------------- | |
# Simulated data | |
# | |
def simulated(N, weekday_mean, weekend_mean, click_mean, conversion_rate): |
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
#----------------------------------------------------------------------------------------- | |
# | |
# Spectral Matting | |
# | |
import time | |
import logging | |
import numpy as np | |
from scipy import ndimage, sparse | |
import scipy.sparse.linalg as sparse_linalg |
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 bpy, math | |
deg2rad = 2*math.pi/360.0 | |
scn = bpy.context.scene | |
scn.cursor_location = (0,0,0) | |
OVERALL_SCALE = 1/8.0 | |
cgap = 0.525 * OVERALL_SCALE | |
#-------------------------------------------------------------- | |
# Delete everything for starting over |