Skip to content

Instantly share code, notes, and snippets.

View stuartpb's full-sized avatar

Stuart P. Bentley stuartpb

View GitHub Profile
@stuartpb
stuartpb / README.md
Created December 17, 2012 17:03 — forked from anonymous/README.md
Mindsight Apps Logo Colorizer

This is a page I made for experimenting with different color schemes for a client logo I made. It provides a sample favicon in the upper-left-hand corner, by employing an SVG use element at 16x16.

@stuartpb
stuartpb / README.md
Created December 18, 2012 09:08 — forked from anonymous/README.md
Mindsight Apps logo color picker with workarounds for Webkit

This is a page I made for experimenting with different color schemes for a client logo I made. It provides a sample favicon in the upper-left-hand corner, by employing an SVG use element at 16x16.

@stuartpb
stuartpb / achewood-fix-titles.js
Created December 23, 2012 13:50
A quick script I made to fix a mistake I'd made in setup for achewatr
var mongodb = require("mongodb")
var env = require("jsdom").env
var url = require('url')
var queue = require("queue-async")
function onSuccess(cb){
return function(err) {
if (err) {
console.error(err)
} else {
@stuartpb
stuartpb / jsperf-js-startswith-edit
Created December 24, 2012 17:10
My attempt to expand the scope of jsperf's startsWith test at http://jsperf.com/js-startswith
<script>
// sample data
var shortSubject = 'hello, world',
shortWin = 'he',
shortFail = 'bye';
longSubject = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam imperdiet feugiat bibendum. In in mi odio. Donec sed urna massa, sed fermentum risus. Proin non erat orci. Ut at mauris eget diam mollis tristique. Praesent ornare, dolor ut consectetur tempor, diam dolor luctus metus, eget pharetra mauris nulla id mauris. Phasellus id arcu ut ipsum pretium vulputate sit amet nec metus. Ut lacinia ante dignissim mauris vehicula id placerat diam ornare. Quisque ut eros eget lectus suscipit blandit quis nec ligula. Nulla hendrerit pulvinar leo, sit amet dictum mauris fermentum et. Curabitur vitae consequat purus. Phasellus odio orci, viverra a interdum sit amet, placerat sit amet augue. Vestibulum justo orci, feugiat vitae imperdiet non, molestie ac ante. Praesent in enim est, eget placerat tellus. Suspendisse augue nibh, placerat non pellentesque id, pellentesque sit amet nibh. Mauri
@stuartpb
stuartpb / paintcans.html
Created January 20, 2013 12:02
Page for constructing GIMP palette from TF2 resource files
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>TF2 Color Kanger</title>
<style>
body {font-family: sans-serif}
textarea {width:100%; height:7em;}
#output {height: 44em;}
</style>
@stuartpb
stuartpb / squircledrop.lua
Last active April 20, 2016 07:31
An old experiment for getting to know Cairo bindings to Lua.
local iup = require "iuplua"
local cairo = require "lcairo"
local dlg
local sqx, sqy = 0, 0
local dragx, dragy
local mx, my = 0, 0
local sqsize = 50
local can = iup.canvas{}
magic
fairy
pixie
pony
glitter
sparkle
pearl
rainbow
unicorn
princess
@stuartpb
stuartpb / glorw.txt
Created June 4, 2013 22:43
General list of reserved words
### General List of Reserved Words
### Stuart P. Bentley <[email protected]>, June 4, 2013
## This is a general list of words you may want to consider reserving,
## in a system where users can pick any name, in a context where the
## system may use names as well. One prominent example of a system
## where this is the case would be a site that serves pages for users,
## at their username, from the site root, like
## http://twitter.com/stuartpb . In this system, you would want to
## reserve some routes for pages that would commonly be expected to
@stuartpb
stuartpb / deprecated-petlog.md
Last active May 7, 2017 23:26
Log of config actions taken on my old removable Linux setup
@stuartpb
stuartpb / deprecated-petlog.md
Last active May 7, 2017 23:27
Log of changes made to my Linode from after the point where I reinstalled the system image