Skip to content

Instantly share code, notes, and snippets.

View blude's full-sized avatar
💜
PICO-8

Sarah Pratti blude

💜
PICO-8
View GitHub Profile
@blude
blude / dabblet.css
Created December 13, 2012 17:26
Untitled
label[for="login"] {
color: red;
font-weight: bold;
}
img:not([width]):not([height]),
img[alt=""], img:not([alt]) {
outline: 2px solid red;
}
@blude
blude / gist:2496133
Created April 26, 2012 05:14
Primeiras experimentações com Pen-C.
// desenho formado por esse código:
// http://is.gd/sbxOxQ
void main(void) {
inicia();
origem(320, 240);
int i;
@blude
blude / dabblet.css
Created February 17, 2012 15:49
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;
@blude
blude / gist:996352
Created May 27, 2011 22:52
Terminal bonitinho :)
[[ -s "/Users/saulo/.rvm/scripts/rvm" ]] && source "/Users/saulo/.rvm/scripts/rvm" # This loads RVM into a shell session.
PATH=$PATH:/usr/local/mysql/bin/
DYLD_LIBRARY_PATH=/usr/local/mysql/lib:$DYLD_LIBRARY_PATH
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# Make bash check its window size after a process completes
shopt -s checkwinsize
@blude
blude / gist:979122
Created May 18, 2011 18:00
CSS com "classe"

Coisas que NÃO se deve fazer

  • CSS in-line. Ex.: <div style="border: 1px solid #fafafa; padding: 10px; margin: 0 auto;"></div>
  • Classes semanticamente pobres. Ex.: <td class="bottom-gray-border"> ou <div class="azul">
  • Classes super específicas #product #sidebar div.categeory span a { ... }
  • input.greendiv#wrapper