Skip to content

Instantly share code, notes, and snippets.

View catwell's full-sized avatar

Pierre Chapuis catwell

View GitHub Profile
@catwell
catwell / main.js
Created July 3, 2019 11:51 — forked from kdzwinel/main.js
List all undefined CSS classes
/*
This script attempts to identify all CSS classes mentioned in HTML but not defined in the stylesheets.
In order to use it, just run it in the DevTools console (or add it to DevTools Snippets and run it from there).
Note that this script requires browser to support `fetch` and some ES6 features (fat arrow, Promises, Array.from, Set). You can transpile it to ES5 here: https://babeljs.io/repl/ .
Known limitations:
- it won't be able to take into account some external stylesheets (if CORS isn't set up)
- it will produce false negatives for classes that are mentioned in the comments.
@catwell
catwell / AWS.lua
Created August 30, 2012 16:38 — forked from vladfedin/AWS.lua
Amazon S3 REST API description and tests for lua-Spore
--
-- lua-Spore : <http://fperrad.github.com/lua-Spore/>
--
--[[
See http://docs.amazonwebservices.com/AmazonS3/latest/dev/index.html?RESTAuthentication.html
]]
local pairs = pairs
local tostring = tostring
@catwell
catwell / about.md
Created August 9, 2011 14:58 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer