Skip to content

Instantly share code, notes, and snippets.

View johnantoni's full-sized avatar

John Griffiths johnantoni

View GitHub Profile
@johnantoni
johnantoni / dabblet.css
Created July 14, 2014 03:04 — forked from LeaVerou/dabblet.css
Scoop corners with only one gradient
/**
* Scoop corners with only one gradient
* Caveats: backdrop must be a solid color,
* dimensions need to be known
* For more flexibility, see: http://lea.verou.me/2011/03/beveled-corners-negative-border-radius-with-css3-gradients/
*/
div {
width: 400px;
height: 300px;
@johnantoni
johnantoni / 0_reuse_code.js
Created January 29, 2014 19:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@johnantoni
johnantoni / Gemfile
Created December 24, 2012 21:01 — forked from anonymous/Gemfile
source 'https://rubygems.org'
# ------------------------------------------------------------------------------------
gem 'rails', '3.2.9'
gem 'sqlite3'
gem 'bcrypt-ruby', '~> 3.0.0' # To use ActiveModel has_secure_password
gem 'oj' # json - https://github.com/ohler55/oj
# ------------------------------------------------------------------------------------
@johnantoni
johnantoni / LICENSE.txt
Created June 20, 2011 02:12 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
// detect Internet Explorer and version number through injected conditional comments (no UA detect, no need for cond. compilation / jscript check)
//
// author: Scott Jehl
//
// http://gist.github.com/scottjehl
//
// version arg is for IE version (optional)
// comparison arg supports 'lte', 'gte', etc (optional)
//
// is it IE?