Skip to content

Instantly share code, notes, and snippets.

View this-dude-is-nuts.txt
21:02:38 < Owner> who is this loser in the press conference
21:02:49 < Owner> what a clown
21:03:19 < Owner> somehow this guy gets 4 bullshit questions in a row
21:07:52 < Owner> https://nypost.com/2018/07/16/swimsuit-model-breastfeeds-on-the-catwalk/
21:07:59 < Owner> liberal flipout in 3...2...
21:11:37 < Owner> 1. she didnt abort the baby
21:11:41 < Owner> 2. she is being a mother
21:11:46 < Owner> 3. she is a real woman and not a tranny
21:11:59 < Owner> thats enough reason to make them flip out hard
21:19:50 < Owner> lol https://i.redd.it/tylfuzfd5ba11.jpg
@habnabit
habnabit / playground.rs
Created Jul 2, 2018 — forked from rust-play/playground.rs
Code shared from the Rust Playground
View playground.rs
let pipeline = framed_reader
.map(move |b| {
let message: proto::Message = bincode::deserialize(&b).unwrap();
let file;
let blocking_future;
match message {
proto::Message::Request(m) => {
file = m.file.clone();
if m.file == Path::new("/root/test/file").to_path_buf() {
blocking_future = poll_fn(move || {
View they-are-comments.py
if 1:
spam()
# comment
else:
eggs() # comment
View generated.txt
This file has been truncated, but you can view the full file.
fn mtproto::<impl at clacks-mtproto/src/mtproto.rs:31629:1: 32915:2>::deserialize_boxed(_1: ConstructorNumber, _2: &mut Deserializer) -> std::result::Result<mtproto_prelude::TLObject, error::Error>{
let mut _0: std::result::Result<mtproto_prelude::TLObject, error::Error>; // return place
scope 1 {
let _4: ConstructorNumber; // "id" in scope 1 at clacks-mtproto/src/mtproto.rs:32912:13: 32912:15
}
scope 2 {
let _12: error::Error; // "err" in scope 2 at clacks-mtproto/src/mtproto.rs:32274:61: 32274:140
scope 4 {
}
View stretch-shuffle.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@habnabit
habnabit / playground.rs
Last active Sep 28, 2017 — forked from anonymous/playground.rs
Rust code shared from the playground
View playground.rs
use linux;
use log;
use core::fmt::Write;
use core::fmt;
use log::{LogRecord, LogLevel, LogMetadata};
#[derive(Default)]
struct DMesgLogger;
View gist:ba80e1470f8d46875dffa9e1438a00df
for location in locations:
for mode in ['driving', 'transit']:
row = [place, mytime, mode]
for i in range(10):
mytime += timedelta(minutes=20)
row.append(get_directions(location, (lat,lon), mytime, mode, gmaps))
csv_file.writerow(row)
View angel_system.rs
use sodiumoxide::crypto::box_::{SecretKey, PublicKey};
use typemap::TypeMap;
use std::sync::{Arc, RwLock};
use llsd::frames::{Frame, FrameKind};
use llsd::session::server::Session;
use llsd::session::Sendable;
use llsd::sessionstore::SessionStore;
use llsd::authenticator::Authenticator;
use errors::{AWResult, AWErrorKind};
@habnabit
habnabit / steps.sh
Created Aug 21, 2016
rust on emscripten
View steps.sh
./emsdk update
./emsdk install emscripten-incoming-64bit
./emsdk activate emscripten-incoming-64bit
./emsdk install sdk-incoming-64bit
./emsdk activate sdk-incoming-64bit
# [...]
git clone -b emscripten https://github.com/habnabit/rust
cd rust
View LICENSE
Copyright 2016 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
You can’t perform that action at this time.