Install brew and pip
(sudo easy_install pip
)
brew update
brew install homebrew/science/openblas
#* | |
Via <http://kennbrodhagen.net/2015/12/06/how-to-create-a-request-object-for-your-lambda-event-from-api-gateway/>. | |
This mapping template formats most information that API Gateway receives, for easy use in a Lambda function (or whatever). | |
Not sure why the same effect isn't achieved with the "Input passthrough" option! | |
*# | |
{ | |
"method": "$context.httpMethod", | |
"body" : $input.json('$'), | |
"headers": { | |
#foreach($param in $input.params().header.keySet()) |
// paste this into your browser's console and jQuery will be loaded | |
var jq = document.createElement('script'); | |
jq.type = 'text/javascript'; | |
jq.src = '//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js'; | |
document.head.appendChild(jq); |
q:before { content: '\201C' } | |
q:after { content: '\201D'; } |
loadSamples: (urls, callback) -> | |
loaded = [] | |
requests = [] | |
decode = (_raw) => | |
@audio.decodeAudioData _raw, (sample) -> | |
loaded.push sample | |
callback(loaded) if loaded.length is urls.length |
* { outline: 1px dotted red } * * { outline: 1px dotted green } * * * { outline: 1px dotted orange } * * * * { outline: 1px dotted blue } * * * * * { outline: 1px solid fuchsia } * * * * * * { outline: 1px solid teal } * * * * * * * { outline: 1px solid indigo } * * * * * * * * { outline: 1px solid brown } |
# type this in a terminal window to get your current local ip address: | |
ifconfig | grep 192 | awk '{print $2}' | |
# add this to whatever file runs when you open a new shell | |
# (~/.profile on OS X) | |
alias ip="ifconfig | grep 192 | awk '{print \$2}'" | |
# now you can type "ip" in a terminal window to get your local ip. | |
# note: you can replace "ip" with whatever you want. |
if location.protocol is "http:" | |
window.location = window.location.toString().replace("http:", "https:") |
$(window).resize(function(){ | |
$('#someElement').each(function(i) { | |
$(this).css('left', ($(this).parent().width() - $(this).outerWidth(true)) / 2); | |
}); | |
}).resize(); |
<?PHP | |
/* | |
neat_r works like print_r but with much less visual clutter. | |
By Jake Lodwick. Copy freely. | |
Example with an array: | |
$data = array( | |
"mode" => "sets", |
Install brew and pip
(sudo easy_install pip
)
brew update
brew install homebrew/science/openblas