Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am chadsmith on github.
  • I am chadsmith (https://keybase.io/chadsmith) on keybase.
  • I have a public key whose fingerprint is 14D9 6E73 8AF1 E58F AA27 4337 9373 EC62 8189 1FF7

To claim this, I am signing this object:

@chadsmith
chadsmith / FavicoMoon.js
Last active February 24, 2016 15:35
IcoMoon in Favicons
(function() {
var FavicoMoon = function(icon, color, bg) {
'use strict';
var
container = document.createElement('div'),
span = document.createElement('span'),
body = document.body,
content,
canvas = document.createElement('canvas'),
getContext = function(w) {
@chadsmith
chadsmith / FavEmoji.js
Created January 22, 2015 21:29
Favicons from Emoji
(function() {
var FavEmoji = function(unicode) {
'use strict';
var
canvas = document.createElement('canvas'),
getContext = function(w) {
canvas.width = canvas.height = w;
context = canvas.getContext('2d');
context.font = 'normal normal normal 32px/' + w + 'px sans';
context.textBaseline = 'middle';
@chadsmith
chadsmith / FaviconAwesome.js
Last active January 11, 2018 19:03
FontAwesome in Favicons
(function() {
var FaviconAwesome = function(icon, color, bg) {
'use strict';
var
container = document.createElement('div'),
span = document.createElement('span'),
body = document.body,
content,
canvas = document.createElement('canvas'),
getContext = function(w) {
@chadsmith
chadsmith / jailbreak.js
Last active January 24, 2021 07:04
Paywall
chrome.webRequest.onBeforeRequest.addListener(function(details) {
return { cancel: true };
}, {
urls: [ "*://*.ppjol.net/*", "*://*.ppjol.com/*" ]
}, [ "blocking" ]);
#!/bin/bash
#####################################################################
#
# Copyright (c) 2009 Twilio, Inc.
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use,
# copy, modify, merge, publish, distribute, sublicense, and/or sell