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
<html> | |
<head> | |
<title>Age Dating Calculator</title> | |
<script> | |
<!-- | |
/* This function does the actual calculation as described in your email*/ | |
function calculate(age, worth) { | |
/* If they are less than 14 assume they wouldn't date anyone more than 1 year |
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
# $BISLR_APP_NAME Pong | |
# $BISLR_APP_AUTHOR Chris Sharkey | |
# $BISLR_APP_DESCRIPTION An exciting game involving two bats and a ball. | |
BAT_ACCELERATION = 0.40 | |
BAT_TERMINAL_VELOCITY = 5 | |
BAT_FRICTION = 0.10 | |
BALL_ACCELERATION = 10 | |
BALL_TERMINAL_VELOCITY = 10 | |
BALL_FRICTION = 0 |
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
#!/usr/bin/env node | |
CHANNEL = '#bozler' | |
MINIMUM_HUMAN_REACTION = 2 | |
DIALOGUE = | |
ACTIONS_IN_REPLY: [ | |
"We should rename Bislr to pineapple!", | |
"Of course! Why didn't I think of that? Call Bislr Pineapple!", | |
"Wow - smart idea - Bislr to rename to Pineapple", |
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
#!/usr/bin/env node | |
CHANNEL = '#bozler' | |
MINIMUM_HUMAN_REACTION = 2 | |
DIALOGUE = | |
ACTIONS_IN_REPLY: [ | |
"I vote for pizza", | |
"Disregard that, I vote for pizza", | |
"Another vote for pizza!" |
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
icj = ImageCreationJob.new :new_tag_name => "1.3.44-201309200518", :container => "1.3.44-201309200518", :asset_host => "http://8cb764c4db97361161d7-004cc728b3556a08f5656162392bdbf6.r34.cf2.rackcdn.com", :ssl_asset_host => "https://ecc8e1fed6c6fca9c206-004cc728b3556a08f5656162392bdbf6.ssl.cf2.rackcdn.com" |
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
# Contact [/v1/contact] | |
## Get contact [GET] | |
## Add or update contact [POST] | |
## Delete a contact [DELETE] |
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
for l in 0..lines.len() { | |
let (data, tx) = (data.clone(), tx.clone()); | |
thread::spawn(move || { | |
let mut data = data.lock().unwrap(); | |
*data += 1; | |
println!("LINE: {}", lines[l].clone()); | |
tx.send(()); | |
}); |
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
extern crate hyper; | |
use std::io::prelude::*; | |
use hyper::Client; | |
use hyper::header::Connection; | |
use hyper::header::Basic; | |
use hyper::header::Authorization; | |
use std::sync::{Arc, Mutex}; | |
use std::thread; | |
use std::sync::mpsc; |
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
let mut client = Client::new(); | |
let mut req = client.post("http://localhost:3001"); | |
let bytes = l.clone(); | |
let request_body = Body::BufBody(bytes.as_bytes(), l.len()); | |
req.body(request_body); | |
let mut res = req.header(Connection::close()).send().unwrap(); | |
let mut view_keys = String::new(); | |
res.read_to_string(&mut view_keys).unwrap(); |