Skip to content

Instantly share code, notes, and snippets.

Avatar
💡
Knowledadge is power

Daniel Calderón calderon

💡
Knowledadge is power
View GitHub Profile
View .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/dani/.oh-my-zsh"
export DISABLE_SPRING=1
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
@calderon
calderon / gist:2601635
Created May 5, 2012
Solution to Sub-pixel IE's bug with SASS
View gist:2601635
// !!! NOT TESTED WITH WIDTH OR MARGIN NEGATIVE VALUES
// IE correction
@function correction($container-width){
@return (0.5 / $container-width) * 100%;
}
//Fixed % to IE
@function pc($container-width: 0,$percentage: 0){
@if $percentage == auto or $percentage == 0{
@calderon
calderon / gist:1401658
Created Nov 28, 2011
Home-made border-radius SCSS mixin
View gist:1401658
$default-border-radius: 10px;
@mixin radius($radius: $default-border-radius){
@include left-radius($radius);
@include right-radius($radius);
}
@mixin top-radius($radius: $default-border-radius){
@include top-left-radius($radius);
@include top-right-radius($radius);