Skip to content

Instantly share code, notes, and snippets.

@fgnass
fgnass / download.php
Created September 5, 2012 11:29
HTTP download without curl or fopen wrappers
function download($url, $timeout=10) {
$host;
$path = '/';
$port = 80;
extract(parse_url($url));
if (isset($query)) $path .= '?'.$query;
$req = array(
"GET $path HTTP/1.1",
"Host: $host",
@fgnass
fgnass / LICENSE.txt
Created October 4, 2011 08:44 — forked from 140bytes/LICENSE.txt
The Mandelbro™
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Felix Gnass <http://twitter.com/fgnass>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@fgnass
fgnass / LICENSE.txt
Created September 28, 2011 10:53 — forked from p01/LICENSE.txt
Sudoku Solver in 140bytes
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Mathieu 'p01' Henri <http://www.p01.org/releases/>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@fgnass
fgnass / index.html
Created September 8, 2011 14:18
Amazon-to-SoundCloud Bookmarklet
<html>
<body style="font:14px Helvetica Neue">
This bookmarklet converts all Amazon search links on a page into SoundCloud links. Useful when listening to <a href="http://byte.fm">byte.fm</a>.
<p>
To install, add this link to your bookmarks toolbar: <a href="javascript:for(var i=0,a;a=document.links[i++];a.href=(a.href||'').replace(/amazon.*rds=(.*?)&.*/,'soundcloud.com/search?q=$1'));">⤻☁</a>
</p>
</body>
</html>
@fgnass
fgnass / LICENSE.txt
Created May 30, 2011 13:33 — forked from 140bytes/LICENSE.txt
display a loading spinner
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Felix Gnass <https://github.com/fgnass>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@fgnass
fgnass / README.md
Created October 5, 2010 15:41
Supervisor for node.js