Install [Beta 0.4.4](https://developer.oculus.com/downloads/#PC SDK). Install dependencies:
./configureDebian.sh
make
./oculusd&
make run
Huzzah!
# generates a laplacian pyramid decomposition of an image A, with nlevels + 1 residual level | |
function lappyramid(A, nlevels) | |
residual = A | |
pyramid = () | |
for n = 1:nlevels | |
(N, Ns) = impyramid(residual, sizes="both") | |
L = residual - N | |
residual = Ns | |
pyramid = tuple(pyramid..., L) |
function gaussianpyramid(A, levels) | |
pyramid = () | |
Ns = A | |
for n = 1:levels | |
pyramid = tuple(pyramid..., Ns) | |
Ns = impyramid(Ns) | |
end | |
return pyramid |
# generates a lower level of the Gaussian pyramid decomposition of an image. | |
function impyramid(A; sizes="downsampled") | |
a = 0.375 | |
kernel = [1/4 - a/2, 1/4, a, 1/4, 1/4 - a/2] | |
B = imfilter(imfilter(A,kernel), kernel') # slowest part of impyramid, by far | |
if (sizes == "downsampled") | |
return (B[1:2:end, 1:2:end]) | |
elseif (sizes == "both") | |
return (B, B[1:2:end,1:2:end]) |
Install [Beta 0.4.4](https://developer.oculus.com/downloads/#PC SDK). Install dependencies:
./configureDebian.sh
make
./oculusd&
make run
Huzzah!
rt.main=> (check-ns) | |
Initializing core.typed ... | |
Loading Clojurescript... | |
Clojurescript found and loaded. | |
Initializing cljs.core | |
NullPointerException clojure.core/deref-future (core.clj:2108) | |
rt.main=> (e) | |
java.lang.NullPointerException: null | |
at clojure.core$deref_future.invoke (core.clj:2108) |
Initializing core.typed ... | |
Loading Clojurescript... | |
Clojurescript not found | |
"Elapsed time: 3083.994912 msecs" | |
core.typed initialized. | |
Start collecting rt.core | |
Finished collecting rt.core | |
Collected 1 namespaces in 3721.379436 msecs | |
Start checking rt.core | |
44: Not checking rt.core/->Vector3 definition |
var clickTargetIds = ['installButton1', 'installButton2']; | |
var isChrome = navigator.userAgent.indexOf("Chrome")!=-1; | |
for(var i in clickTargetIds) { | |
document.getElementById(clickTargetIds[i]).onclick = function() { | |
if(isChrome) { | |
window['chrome']['webstore']['install'](undefined, function() { | |
// damn, they even record analytics events to see how effective the install button is... |
`source /afs/athena.mit.edu/user/e/t/ethanis/MacData/.rvm/scripts/rvm` | |
rvm get head | |
rvm autolibs disable | |
rvm list remote | |
rvm install ruby-1.9.3-p327 --binary | |
rvm alias create default ruby-1.9.3-p327 | |
rvm use default | |
gem install cocoapods | |
pod install |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: xflux | |
# Required-Start: $all | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Initialize flux on launch | |
# Description: Flux helps you to avoid eye and disrupted sleep patterns strain by adjusting your display colors based on time of day. | |
### END INIT INFO |
ns rt.core | |
(:refer-clojure :exclude [+ - * /]) | |
(:require [clojure.core.typed :as typed | |
:refer [ann ann-datatype ann-form ann-record check-ns tc-ignore]]) | |
(:require [clojure.algo.generic.arithmetic :as arith :refer [+ - * /]])) | |
(ann-record Vec3 [x :- Number y :- Number z :- Number]) | |
(defrecord Vec3 [x y z]) | |
(ann ^:no-check clojure.algo.generic.arithmetic/+ [Vec3 Vec3 -> Vec3]) |