Skip to content

Instantly share code, notes, and snippets.

View andrewarrow's full-sized avatar
💭
https://andrewarrow.dev/

Andrew Arrow andrewarrow

💭
https://andrewarrow.dev/
View GitHub Profile
@andrewarrow
andrewarrow / gist:2270306
Created April 1, 2012 01:19
email chain about CBT app - name changed for privacy
We couldn’t find that file to show.
@andrewarrow
andrewarrow / gist:2303251
Created April 4, 2012 16:03
email chain about CBT - name changed for privacy
---------- Forwarded message ----------
From: andrew@cbtreferee.com <andrew@cbtreferee.com>
Date: Sat, Mar 31, 2012 at 7:47 AM
Subject: Re: CBTReferee
To: Rachel Harris <rharris@...>
try and view the world this way:
every morning when you wake up, the first thought to "catch" is something like:
Faye = require 'faye'
run_it = () ->
fc = new Faye.Client 'http://localhost:8000/channel'
sub = fc.subscribe '/foo', (payload) ->
fc.disconnect()
sub.callback () ->
fc.publish '/foo', {hi: 'hello'}
require 'net/https'
require 'uri'
require 'json'
require 'csv'
if ARGV.size < 4
puts 'usage: ruby bitium_list_subscribers.rb slug org_id token device_id'
exit 1
end
require 'net/https'
require 'uri'
require 'json'
require 'csv'
if ARGV.size < 5
puts 'usage: ruby events.rb org_id token device_id email event'
exit 1
end
how about this - a "VR timeout room" - think star trek halodeck but
much smaller, and current tech not science fiction. A small shed in
the backyard of the house has a complete virtual reality room in there
for the kid to expereince a "fake car ride" or any other very calming
nice human expereince. (Walk in the park, along the beach, etc.) The
kid is monitored for his heart rate, breathing, all vitals, and the
parents can see a video an audio feed from inside. BUT the kid is
locked in the VR room until the parent says they can leave. Cuz the
parent might wanna go cook dinner for an hour, still watching their
smart phone with all the data on if kid is ok, but not actually
"data": [
{
"timestamp": 1462460504,
"value": 6.96,
"event_type": "br"
},
{
"timestamp": 1462460506,
"value": 8.47,
"event_type": "br"
2001 Dodge Viper For Sale $30k
Okay. Full disclosure. I almost killed myself in it.
It is VERY powerful. Extremely, EXTREMELY fast.
I've driven Ferrari's that don't feel as crazy as this thing. I am frankly afraid of it now.
That's right. It's in my garage and I'm afraid to drive it because it's like a crazy steroid bull that wants to kill me.
I've done 130 mph on a Ducati while laughing into the face of death. The viper is a completely different bowl of crack. The engine sounds like 40 pit bulls eating kittens while lifting weights.
I cannot truly explain it's power. It has whiplash acceleration in 3rd gear at 60mph. That sentence doesn't even make sense. But it's true.
That's why I'm telling you. I will not have your soul on my conscience.
You need to know what you are getting into. What insane level of crazy you are buying.
* If {@link Crypt_Rijndael::setBlockLength() setBlockLength()} isn't called, it'll be assumed to be 128 bits. If
* {@link Crypt_Rijndael::setKeyLength() setKeyLength()} isn't called, it'll be calculated from
* {@link Crypt_Rijndael::setKey() setKey()}. ie. if the key is 128-bits, the key length will be 128-bits. If it's
* 136-bits it'll be null-padded to 160-bits and 160 bits will be the key length until
* {@link Crypt_Rijndael::setKey() setKey()} is called, again, at which point, it'll be recalculated.
*
* Not all Rijndael implementations may support 160-bits or 224-bits as the block length / key length. mcrypt, for example,
* does not. AES, itself, only supports block lengths of 128 and key lengths of 128, 192, and 256.
* {@link http://csrc.nist.gov/archive/aes/rijndael/Rijndael-ammended.pdf#page=10 Rijndael-ammended.pdf#page=10} defines the
* algorithm for block lengths of 192 and 256 but not for block lengths / key lengths of 160 and 224. Indeed, 160 and 224
package main
import "net/http"
import "os/exec"
func handler(w http.ResponseWriter, r *http.Request) {
cmd := exec.Command("killall", "Safari")
cmd.Run()
cmd = exec.Command("killall", "Google Chrome")
cmd.Run()