Skip to content

Instantly share code, notes, and snippets.

View kn0ll's full-sized avatar
🏠
Working from home

Nic Luciano kn0ll

🏠
Working from home
View GitHub Profile
@kn0ll
kn0ll / satellite.php
Last active September 26, 2015 07:48
connect-style middleware handling in php.
<?php
namespace satellite;
class Request {
public $method;
public $url;
public $headers;
@kn0ll
kn0ll / clutch.php
Last active October 3, 2022 13:08
an asynchronous http library for php.
<?php
namespace clutch;
class Request {
/**
* The url of the request
* @var string
*/
public $url;
@kn0ll
kn0ll / bookmarklet.js
Created June 11, 2011 04:31
advanced bookmarklet template
javascript:(function() {
if(!window.your_bookmarklet) {
var doc = document,
js = doc.createElement('script');
js.type = 'text/javascript';
js.src = 'loader.js';
js.async = true;
@kn0ll
kn0ll / grabby.rb
Created October 30, 2010 04:47
small ruby server to show a random tinygrab image
require 'sinatra'
require 'open-uri'
get '/' do
tryImg
end
def tryImg
rand = ''
@kn0ll
kn0ll / config.ru
Created October 30, 2010 04:46
google image search proxy for hi-res movie posters
require 'movies'
run Sinatra::Application