This file contains 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/local/bin/python | |
import re, os, sys | |
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "relux.settings.local") | |
import inspect | |
from django.conf import settings | |
from django.core import urlresolvers | |
urlconf = settings.ROOT_URLCONF | |
urlresolvers.set_urlconf(urlconf) |
This file contains 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
#!/bin/sh | |
set -e | |
trap 'echo FAILED (need git push -u on new branch?)' EXIT | |
[ -r "$VIRTUAL_ENV" ] | |
branch=`git branch|awk '/\*/{print $2}'` | |
find . -iname '*.pyc' -print0 | xargs -0 rm -f | |
git fetch --prune origin | |
git pull origin $branch | |
git pull origin develop | |
while ! [ -e setup/requirements.txt ]; do cd -P .; cd ..; done |
This file contains 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
blocks 3 | |
max depth 2 | |
max block 143 | |
scripts 2 | |
max script 51 |
This file contains 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> | |
<title>WebGL Example</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> | |
<script> | |
function useShader(gl, program, scriptId) { | |
var shaderScript= document.getElementById(scriptId); console.log('shaderScript: ',shaderScript); | |
var shaderType= gl[shaderScript.type.replace(/.*\//,'')]; console.log('shaderType: ',shaderType); | |
var shader= gl.createShader(shaderType); console.log('shader: ',shader); | |
gl.shaderSource(shader, shaderScript.text); |
This file contains 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
ing=: `'' | |
evoke=:adverb define NB. ( | |
'`yes please'=. ,&<~m | |
please f. | |
) | |
apply=:dyad define NB. ( | |
(x evoke)@(y evoke) ing | |
) |
This file contains 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
filename=: 'name'&extract_fromxmlfile_ | |
directory=: 'hash'&extract_fromxmlfile_ | |
sosgatetime=: ('utterance';'startofspeechgate';'time')&extract_fromxmlfile_ | |
sosgatevalue=: ('utterance';'startofspeechgate';'value')&extract_fromxmlfile_ | |
sostime=: ('utterance';'startofspeech';'time')&extract_fromxmlfile_ | |
sosvalue=: ('utterance';'startofspeech';'value')&extract_fromxmlfile_ | |
eostime=: ('utterance';'endofspeech';'time')&extract_fromxmlfile_ | |
eosvalue=: ('utterance';'endofspeech';'value')&extract_fromxmlfile_ | |
finalresult=: ('utterance';'finalresult';'value')&extract_fromxmlfile_ | |
confidence=: ('utterance';'finalresult';'confidence')&extract_fromxmlfile_ |
This file contains 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
cocurrent 'CurveFp' | |
Help=: 'Elliptic Curve over the field of integers modulo a prime.' | |
create=:3 :0 | |
NB. The curve of points satisfying y^2 = x^3 + a*x + b (mod p). | |
'P A B'=: x:&> y | |
poly=: B,A,0,1 | |
) | |
p=:3 :'P' | |
a=:3 :'A' |
This file contains 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
require 'csv' | |
stordir=: <'c:\voxtst\' NB. note < and trailing \ | |
NB. Convert the csv file to a boxed J array | |
csvdata=: readcsv 'c:\voxtst\prophecy.csv' | |
NB. filenames | |
sourcefnames=: }. 0 {"1 csvdata | |
targetfnames=: stordir,each (}. 2 {"1 csvdata),each <'.wav' | |
assert (-: ~.) targetnames NB. unique file names |
This file contains 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
NB. roughly patterened after http://rpmfind.net/linux/RPM/sourceforge/p/py/pyffi/OldFiles/PyFFI-0.0-1.noarch.html | |
NB. you should not expect to read this any faster than you read the whole of PyFFI | |
NB. and if you are new to J you should also expect to spend some time learning the language | |
NB. recommendation: take breaks occasionally, play with this, try to make it fun | |
require '~user/nifxml.ijs' | |
coinsert 'nifxml' NB. for cond expressions | |
NB. FIXME: do not inherit from nifxml - factor out the expr support | |
NB. FIXME: most of this nif.ijs should be factored out into readnif.ijs which inherits from nif.ijs |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am rdm on github. | |
* I am rdm (https://keybase.io/rdm) on keybase. | |
* I have a public key whose fingerprint is D3CE 2BCC 07BC 89E2 B49B 8822 6C88 FCF8 618C C6E0 | |
To claim this, I am signing this object: |
OlderNewer