Skip to content

Instantly share code, notes, and snippets.

View marciobarrios's full-sized avatar

Marcio Barrios marciobarrios

View GitHub Profile
/*
* timeago: a jQuery plugin ported to Zepto, version: 0.9.3 (2011-01-21)
* @requires Zepto.js 0.4
*
* Timeago is a jQuery plugin that makes it easy to support automatically
* updating fuzzy timestamps (e.g. "4 minutes ago" or "about 1 day ago").
*
* For usage and examples, visit:
* http://timeago.yarp.com/
*
@marciobarrios
marciobarrios / dabblet.css
Created March 2, 2012 10:16
Pure CSS Picture Frame
/* Pure CSS Picture Frame */
html {
background-color: #653845;
background-image: linear-gradient(45deg, hsla(0,0%,0%,.1) 50%, transparent 50%),
linear-gradient(-45deg, hsla(0,0%,0%,.1) 50%, transparent 50%);
background-size: .25em .25em;
box-shadow: inset 0 0 500px hsla(0,0%,0%,.5);
height: 100%;
}
@marciobarrios
marciobarrios / dabblet.css
Created March 2, 2012 10:06 — forked from daneden/dabblet.css
Picture frame
/**
* Picture frame
*/
* {
margin: 0;
padding: 0;
}
html {
@marciobarrios
marciobarrios / gist:1864721
Created February 19, 2012 17:25 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@marciobarrios
marciobarrios / dabblet.css
Created February 13, 2012 14:56 — forked from daneden/dabblet.css
Slider
/**
* Slider
*/
* {
margin: 0;
padding: 0;
}
html {
@marciobarrios
marciobarrios / dabblet.css
Created February 13, 2012 14:56 — forked from daneden/dabblet.css
Slider
/**
* Slider
*/
* {
margin: 0;
padding: 0;
}
html {
@marciobarrios
marciobarrios / gist:1810846
Created February 12, 2012 21:05 — forked from abozhilov/gist:1779852
HashMap
var HashMap = (function () {
var PROTO_SUPPORT = !Object.prototype.isPrototypeOf({__proto__ : null}),
OBJECT_CREATE = typeof Object.create != 'undefined',
DONT_ENUM_BUG = !{'toString' : true}.propertyIsEnumerable('toString');
var hasOwnP = {}.hasOwnProperty,
dontEnums = [];
if (DONT_ENUM_BUG) {
dontEnums = [
@marciobarrios
marciobarrios / csslint-api.js
Created February 11, 2012 11:20 — forked from nzakas/csslint-api.js
CSS Lint API
//include
var CSSLint = require("csslint").CSSLint;
/*
* Basic usage
* First argument is the CSS text.
* Second argument is the options object. Name is the ID of the rule (see wiki) set to
* either 1 for a warning or 2 for an error.
*/
var result = CSSLint.verify(".foo { }", { "compatible-vendor-prefixes": 1 }),
@marciobarrios
marciobarrios / dabblet.css
Created February 9, 2012 10:12 — forked from LeaVerou/dabblet.css
Move in a circle without wrapper elements
/**
* Move in a circle without wrapper elements
* Idea by Aryeh Gregor, simplified by Lea Verou
*/
@keyframes rot {
from {
transform: rotate(0deg)
translate(-150px)
rotate(0deg);
@marciobarrios
marciobarrios / dabblet.css
Created January 29, 2012 23:26 — forked from daneden/dabblet.css
Path icon hover
/**
* Path icon hover
*
* Example of the desired effect (hover over the user avatar) https://path.com/p/5Eplz
*
* Close, but annoying that the animation runs on page load.
* Possible solution could be to fade entire page content in while initial
* animation runs.
*/