Skip to content

Instantly share code, notes, and snippets.

View jgillman's full-sized avatar

Joel Gillman jgillman

View GitHub Profile
@jgillman
jgillman / dabblet.css
Created March 19, 2012 18:43
CSS only button arrows
/**
* CSS only button arrows
*/
ul {
border: 2px solid red;
}
ul:after {
content: '.';
clear: both;
@jgillman
jgillman / dabblet.css
Created March 20, 2012 14:20
Half responsive, half static
/**
* Half responsive, half static
*/
html {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
font-family: Helvetica,Arial;
}
@jgillman
jgillman / .bash_aliases
Created April 5, 2012 19:33
Joel's files
alias ~="cd ~/"
alias ..="cd .."
alias la="ls -A"
alias ll="ls -lAhF"
alias screen="screen -d -R"
# Recursively delete `.DS_Store` files
alias cleanup="find . -name '*.DS_Store' -type f -ls -delete"
# Enhanced WHOIS lookups
@jgillman
jgillman / global.scss
Created May 31, 2012 16:40
My Reusable Sass Mixins
@mixin truncate {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
@mixin prefixify($style, $params) {
-webkit-#{$style}: $params;
-moz-#{$style}: $params;
-ms-#{$style}: $params;
@jgillman
jgillman / input.scss
Created July 2, 2012 21:40 — forked from twe4ked/input.scss
FREE! Sass (SCSS) mixin for including retina images in Webkit and Mozilla browsers.
@mixin background-image-retina($file, $type, $width, $height:$width) {
background-image: url($file + '.' + $type);
@media all and (-webkit-min-device-pixel-ratio: 2), all and (-moz-min-device-pixel-ratio: 2) {
& {
background-image: url($file + '@2x.' + $type);
-webkit-background-size: $width $height;
-moz-background-size: $width $height;
background-size: $width $height;
}
class GoogleAnalytics
@init: (webPropertyId) ->
@_initQueue(webPropertyId)
scriptTag = @_createScriptTag()
@_injectScriptTag(scriptTag)
@_initQueue: (webPropertyId) ->
window._gaq ?= []
window._gaq.push ['_setAccount', webPropertyId]
window._gaq.push ['_trackPageview']
@jgillman
jgillman / global-regex-test.js
Last active January 3, 2016 23:29
A node script with confusing output.
var re = /s\d{2}/i;
var reGlobal = /s\d{2}/gi;
var string = 's05';
console.log( 'Testing reGlobal 4 times:' );
console.log( reGlobal.test(string) );
console.log( reGlobal.test(string) );
console.log( reGlobal.test(string) );
console.log( reGlobal.test(string) );
@jgillman
jgillman / keybase.md
Created March 5, 2014 21:53
keybase.md

Keybase proof

I hereby claim:

  • I am jgillman on github.
  • I am jgillman (https://keybase.io/jgillman) on keybase.
  • I have a public key whose fingerprint is E3EE D513 929D 3C0A 69A9 B9CA 5B58 90FE 1310 4968

To claim this, I am signing this object:

@jgillman
jgillman / dabblet.css
Created March 20, 2014 00:02
GB Kitty Tiles..
/**
* GB Kitty Tiles..
*/
html {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
}
@jgillman
jgillman / dabblet.css
Created March 20, 2014 00:35
Ribbon Banners
/**
* Ribbon Banners
*/
html {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
font-family: sans-serif;
}