Skip to content

Instantly share code, notes, and snippets.

View tmplt's full-sized avatar

Viktor Vilhelm Sonesten tmplt

View GitHub Profile
@KittyKatt
KittyKatt / pomf
Last active March 24, 2018 14:49
pomf.se BASH script to upload images
#!/usr/bin/env bash
# pomf.se uploader
# requires: curl
dest_url='http://pomf.se/upload.php'
return_url='http://a.pomf.se'
if [[ -n "${1}" ]]; then
file="${1}"
if [ -f "${file}" ]; then
@torazuka
torazuka / calculator02.cpp
Created September 7, 2011 23:24
Chapter06_drill_PPPC++
//
// This is example code from Chapter 6.7 "Trying the second version" of
// "Software - Principles and Practice using C++" by Bjarne Stroustrup
//
/*
>This file is known as calculator02buggy.cpp
>
>I have inserted 5 errors that should cause this not to compile