Skip to content

Instantly share code, notes, and snippets.

View marciobarrios's full-sized avatar

Marcio Barrios marciobarrios

View GitHub Profile
@marciobarrios
marciobarrios / dabblet.css
Created August 6, 2013 13:54 — forked from glorialangreo/dabblet.css
Spinner adjustments, original by Gloria Langreo (http://dabblet.com/gist/6163594)
/**
* Spinner adjustments, original by Gloria Langreo (http://dabblet.com/gist/6163594)
*/
* { margin: 0; padding: 0; }
body { background-color: #434343; text-align:center; padding: 2em; }
.spinner { display: inline-block; margin-left: -2px; }
.spinner li {
display: inline-block;

Code Style

  • Tab indentation
  • Single-quotes
  • Semicolon
  • Strict mode
  • No trailing whitespace
  • Variables at the top of the scope
  • Multiple variable statements
  • Space after keywords and between arguments and operators
@marciobarrios
marciobarrios / html-entities.md
Created November 8, 2012 09:12 — forked from leostratus/html-entities.md
HTML Entities/HTML Escape Characters

Because somehow I always end up trolling the interwebs looking for a reference for these.

Symbol Code Entity Name
@marciobarrios
marciobarrios / dabblet.css
Created November 4, 2012 22:41 — forked from trevorgerzen/dabblet.css
YouTube Footer Buttons
/*
YouTube Footer Buttons
*/
.button {
border: 1px solid #DDD;
border-radius: 3px;
text-shadow: 0 1px 1px white;
box-shadow: 0 1px 1px #fff;
font: bold 11px Sans-Serif;
@marciobarrios
marciobarrios / Questions.md
Created October 31, 2012 17:52 — forked from Integralist/Questions.md
Recruitment Questions for front-end developer (modified from https://github.com/darcyclarke/Front-end-Developer-Interview-Questions)

##JavaScript specific Questions

  • Which JavaScript libraries have you used?
  • How is JavaScript different from Java?
  • What are undefined and undeclared variables?
  • What is an expression?
  • What is a statement?
  • Give an example of a function declaration
  • Give an example of a function expression
  • Explain what the DOM is and some best practices for interacting with it.
@marciobarrios
marciobarrios / LICENSE.txt
Created October 31, 2012 17:49 — forked from Integralist/LICENSE.txt
140byt.es -- addObserverMethods
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Sascha Depold http://depold.com
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
@marciobarrios
marciobarrios / gist:3962467
Created October 27, 2012 00:43 — forked from ditman/gist:3772090
Basic JS inheritance
// Constructor function. Code run by the "new" operator
var Rabbit = function(name) {
// All Rabbit instances have their own property "name"
this.name = name;
}
// All Rabbit instances can speak, of course!
Rabbit.prototype.speak = function(what) {
return this.name + " says: " + what;
}
@marciobarrios
marciobarrios / 1. Example.scss
Created October 23, 2012 02:09 — forked from Integralist/1. Example.scss
Sass Mixin for CSS3 Animations
@include keyframe(fadeout) {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
@marciobarrios
marciobarrios / dabblet.css
Created October 10, 2012 09:43 — forked from daneden/dabblet.css
CSS Photo Album
/* CSS Photo Album */
/* Rebound of this shot by @daryl: http://drbl.in/fwwM */
* {
margin: 0;
padding: 0;
position: relative;
box-sizing: border-box;
}
@marciobarrios
marciobarrios / dabblet.css
Created October 4, 2012 16:03 — forked from kizu/dabblet.css
Triangle with the box-shadow
/**
* Triangle with the box-shadow
*/
.bubble {
position: relative;
width: 30em;
height: 30em;