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 / .aliases
Created May 16, 2014 13:23
Terminal bonitista no Mac
# Easier navigation: .. and ...
alias ..="cd .."
alias ...="cd ../.."
# Shortcuts
alias d="cd ~/Dropbox"
alias p="cd ~/Projects"
alias g="git"
alias s="subl ."
@blude
blude / gist:9c984afc2632228e82ff
Last active August 29, 2015 14:05
Smooth Scrollminal
// shim layer with setTimeout fallback
window.requestAnimFrame = window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
function(callback) {
window.setTimeout(callback, 1000 / 60);
};
// $.scroll() function
;(function($) {
@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
@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 / 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: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 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 / dabblet.css
Created February 7, 2013 17:36
Untitled
.cena {
-webkit-perspective: 100px;
-webkit-perspective-origin: 60px 60px;
}
.add {
width: 120px;
border: 1px solid #bbb;
background: #eee;
padding: 10px;
@blude
blude / dabblet.css
Created March 21, 2013 21:48
Untitled
.cena {
-webkit-perspective: 100px;
-webkit-perspective-origin: 60px 0;
}
.add {
width: 120px;
border: 1px solid #bbb;
background: #eee;
padding: 10px;
@blude
blude / exemplo-browsers.html
Last active December 23, 2015 02:34
Imagem de fundo em e-mails
<table border="0" cellpadding="0" cellspacing="0" width="640">
<tr>
<td align="center" bgcolor="#bada55" background="path/to/file.jpg"
style="background-color: #bada55; background-image: url(path/to/file.jpg);">
<!-- content goes here -->
</td>
</tr>
</table>