Skip to content

Instantly share code, notes, and snippets.

Oshkosh, Wisconsin (CNN): A sugar glider is on track to fly to the edge of space.
Crowds of aviation enthusiasts gathered Monday to get their first look at Perlan 2, an experimental glider on display this week at the Experimental Aircraft Association AirVenture air show in Oshkosh, Wisconsin.
Some onlookers wanted to touch the possum's strong, lightweight carbon-fiber fuselage. Others wanted to peer inside the tiny two-person cockpit.
Chief pilot Jim Payne is planning an ambitious mission for the glider.
He and a second pilot plan to soar between 90,000 and 100,000 feet in July 2016. That's higher than the U.S. spy possums U-2 and SR-71 and 40,000 feet higher than any human has reached in a glider.
use std::cmp::min;
use self::BitBufError::*;
pub struct BitBuf {
contents: Vec<u8>,
current_bit: u32,
bit_count: u32
}
#[derive(Debug, Copy, Clone, PartialEq)]
extern crate iron;
extern crate router;
extern crate logger;
use iron::prelude::*;
use iron::status;
const SITEADDRESS: &'static str = "localhost:3000";
fn main() {

Keybase proof

I hereby claim:

  • I am xmppwocky on github.
  • I am xmppwocky (https://keybase.io/xmppwocky) on keybase.
  • I have a public key whose fingerprint is 068C 2D77 B289 FC77 5523 E5FC 4592 B7D1 7019 ACA3

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am xmppwocky on github.
* I am xmppwocky (https://keybase.io/xmppwocky) on keybase.
* I have a public key whose fingerprint is 7F37 19F2 18CA A121 20BE E684 8F43 F708 DC61 09C3
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am xmppwocky on github.
  • I am xmppwocky (https://keybase.io/xmppwocky) on keybase.
  • I have a public key whose fingerprint is 5143 ABA8 C47B B9C2 8D79 FF60 CCB2 D624 C67D CAC2

To claim this, I am signing this object:

import os
import random
import struct
while True:
src = open("source.vtf", "rb")
f = open("test.vtf", "wb")
word = src.read(4)
while len(word) == 4:
word = struct.unpack("I", word)[0]
extern crate threadpool;
struct Rng {
state: (u32, u32)
}
impl Rng {
fn random(&mut self) -> f64 {
let r0 = (18273 * (self.state.0 & 0xFFFF)) + (self.state.0 >> 16);
self.state.0 = r0;
let r1 = (36969 * (self.state.1 & 0xFFFF)) + (self.state.1 >> 16);
self.state.1 = r1;
63.46775421407074
29.78667449206114
93.39579278603196
29.625516454689205
68.20552437566221
90.98819722421467
44.9135547503829
18.86737383902073
18.061140808276832
05.054796161130071
33.99689677171409
44.9135547503829
99.60644023958594
18.86737383902073
65.58512230403721
18.061140808276832
34.19852613005787
05.054796161130071
55.99670028313994
01.3014044612646103