Skip to content

Instantly share code, notes, and snippets.

const BASIC_RESET = {
margin: 0,
padding: 0,
border: 0,
fontSize: "100%",
font: "inherit",
verticalAlign: "baseline",
}
const HTML5_POLYFILL_STYLE = {

Keybase proof

I hereby claim:

  • I am thewillk on github.
  • I am thewillk (https://keybase.io/thewillk) on keybase.
  • I have a public key ASDtO6AiyjkRsfOCmvwEcL-YaCLWthhvdJ4YWd9rlNq3HAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am thewillk on github.
  • I am william16 (https://keybase.io/william16) on keybase.
  • I have a public key whose fingerprint is D427 71F2 BEE0 1E1C 832E C1C3 36D5 A27A 5C61 A811

To claim this, I am signing this object:

@thewillk
thewillk / SassMeister-input.scss
Created September 4, 2014 17:00
Generated by SassMeister.com.
// ----
// Sass (v3.4.1)
// Compass (v1.0.1)
// ----
&.grey {
background: hotpink;
}
module AttrExist
def attr_exist(*names)
names.each do |name|
define_method("#{name}?") { !self.send(name.to_sym).blank? }
end
end
end
@thewillk
thewillk / gist:5600260
Created May 17, 2013 16:27
Horizontal Scroll Gradients
@mixin horizontal-scroll-gradients( $background-color: #FFFFFF, $color: #CCCCCC ) {
background:
-webkit-linear-gradient(0deg, $background-color 20%, rgba($background-color,0)),
-webkit-linear-gradient(180deg, $background-color 20%, rgba($background-color,0)) 100% 0,
-webkit-linear-gradient(00deg, $color 10%, rgba($background-color,0)),
-webkit-linear-gradient(180deg, $color 10%, rgba($background-color,0)) 100% 0,
png_base64($background-color);
background:
linear-gradient(90deg, $background-color 20%, rgba($background-color,0)),
@thewillk
thewillk / gist:2913779
Created June 12, 2012 01:16
Bootstrap for basket.js
/*! basket bootstrap
* based on.....
* basket.js - v0.2.0 - 3/9/2012
* http://addyosmani.github.com/basket.js
* Copyright (c) 2012 Addy Osmani; Licensed MIT, GPL
* Credits: Addy Osmani, Ironsjp, Mathias Bynens, Rick Waldron, Sindre Sorhus, Andrée Hansson */
;(function ( document, url, useXDR ) {
var
@thewillk
thewillk / gist:2830927
Created May 29, 2012 21:39
Basic Javascript Module Inheritance
var Animal = function(){
var walked = false;
return {
walk: function(){
console.log('walking');
walked = true;
},
isWalked: function(){
return walked;
}
@thewillk
thewillk / gist:2775844
Created May 23, 2012 15:17
Basic Namespacing/Sandboxing System
(function(){
var n$,
decorate,
expand,
libraries = [],
set_libraries;
n$ = function(cb){
if(cb.apply) {
cb.apply(n$,libraries);
@thewillk
thewillk / gist:2711078
Created May 16, 2012 15:11
The Copy/Paste portion of my .profile
alias pbstrip="pbpaste | pbcopy"
alias pwdcopy="pwd | pbcopy"
alias pwdpaste="cd `pbpaste`"
if [ -d "`pbpaste`" ]; then cd "`pbpaste`"; fi