Skip to content

Instantly share code, notes, and snippets.

According to all known laws of aviation, there is no way a bee should be able to fly.
Its wings are too small to get its fat little body off the ground.
The bee, of course, flies anyway because bees don't care what humans think is impossible.
Yellow, black. Yellow, black. Yellow, black. Yellow, black.
Ooh, black and yellow!
Let's shake it up a little.
Barry! Breakfast is ready!
Coming!
Hang on a second.
Hello?
#!/bin/sh
#Emulates the sweeking step up/down Chicago tornado alarm
#Can be repeated multiple times
beep -f 300 -l 50 -d 0 -n -f 309 -l 50 -d 0 -n -f 318 -l 50 -d 0 -n -f 328 -l 50 -d 0 -n -f 337 -l 50 -d 0 -n -f 346 -l 50 -d 0 -n -f 355 -l 50 -d 0 -n -f 364 -l 50 -d 0 -n -f 373 -l 50 -d 0 -n -f 383 -l 50 -d 0 -n -f 392 -l 50 -d 0 -n -f 401 -l 50 -d 0 -n -f 492 -l 50 -d 0 -n -f 503 -l 50 -d 0 -n -f 514 -l 50 -d 0 -n -f 525 -l 50 -d 0 -n -f 536 -l 50 -d 0 -n -f 547 -l 50 -d 0 -n -f 558 -l 50 -d 0 -n -f 569 -l 50 -d 0 -n -f 580 -l 50 -d 0 -n -f 591 -l 50 -d 0 -n -f 602 -l 50 -d 0 -n -f 613 -l 50 -d 0 -n -f 520 -l 50 -d 0 -n -f 529 -l 50 -d 0 -n -f 538 -l 50 -d 0 -n -f 548 -l 50 -d 0 -n -f 557 -l 50 -d 0 -n -f 566 -l 50 -d 0 -n -f 575 -l 50 -d 0 -n -f 584 -l 50 -d 0 -n -f 593 -l 50 -d 0 -n -f 603 -l 50 -d 0 -n -f 612 -l 50 -d 0 -n -f 621 -l 50 -d 0 -n -f 756 -l 50 -d 0 -n -f 767 -l 50 -d 0 -n -f 778 -l 50 -d 0 -n -f 789 -l 50 -d 0 -n -f 800 -l 50 -d 0 -n -f 811 -l 50 -d 0 -n -f 822 -l 50 -d 0 -n -f 833 -l 50 -
@mastef
mastef / isexist_vs_isnotexist.go
Created February 4, 2016 08:30
os.IsExist(err) vs os.IsNotExist(err)
/*
Watch out, os.IsExist(err) != !os.IsNotExist(err)
They are error checkers, so use them only when err != nil, and you want to handle
specific errors in a different way!
Their main purpose is to wrap around OS error messages for you, so you don't have to test
for Windows/Unix/Mobile/other OS error messages for "file exists/directory exists" and
"file does not exist/directory does not exist"
@ar-pa
ar-pa / BigInt.cpp
Last active October 24, 2023 09:30
bignum class for C++
// In the name of Allah.
// We're nothing and you're everything.
// Ya Ali!
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int maxn = 1e2 + 14, lg = 15;
@cirosantilli
cirosantilli / README.md
Last active July 3, 2018 12:23
Streak generator. 100 year streak: https://github.com/cirosantilli/test-streak
@cgoldberg
cgoldberg / gource.sh
Created July 2, 2013 14:05
Gource - Mir development video
# install bzr and gource
# get a branch of Mir's trunk code
# create gource video
$ sudo apt-get install bzr gource
$ bzr branch lp:mir
$ cd mir
$ gource \
-s .06 \
@spudbean
spudbean / gist:1558257
Last active August 25, 2023 19:26
Look of disapproval and other emoticons
ಠ_ಠ
( ͡° ͜ʖ ͡°)
¯\_(ツ)_/¯
(╯°□°)╯︵ ┻━┻
http://www.fileformat.info/convert/text/upside-down.htm
WRTTN http://wrttn.me/30dbfd/
Unicode Emoticons
@un33k
un33k / sed cheatsheet
Created August 22, 2011 13:28
magic of sed -- find and replace "text" in a string or a file
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'