Skip to content

Instantly share code, notes, and snippets.

From: http://www.longestjokeintheworld.com/
The Longest Joke in the World
* * *
Lost in the Desert
So, there's a man crawling through the desert.
He'd decided to try his SUV in a little bit of cross-country travel, had great fun zooming over the badlands and through the sand, got lost, hit a big rock, and then he couldn't get it started again. There were no cell phone towers anywhere near, so his cell phone was useless. He had no family, his parents had died a few years before in an auto accident, and his few friends had no idea he was out here.
import java.util.LinkedList;
import java.util.List;
public class Main {
public static void main(String[] args) {
List<byte[]> ls = new LinkedList<>();
try {
while (true) {
byte[] b = new byte[1024 * 1024];
ls.add(b);
fn main() {
for i := 0; i < 100; i++ {
if i % 15 == 0 {
println("FizzBuzz")
} else if i % 5 == 0 {
println("Buzz")
} else if i % 3 == 0 {
println("Fizz")
} else {
println(i)
setw -g mode-keys emacs
set -g mouse on
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind-key -n S-Left prev
bind-key -n S-Right next
@xolve
xolve / print_type_names.rs
Created May 9, 2019 10:58
Rust print typenames - nightly only
#![feature(core_intrinsics)]
fn main() {
let x = &false;
print_type_name_of(x);
let ref x = false;
print_type_name_of(x);
let &x = &false;