Skip to content

Instantly share code, notes, and snippets.

View calderon's full-sized avatar
💡
Knowledadge is power

Daniel Calderón calderon

💡
Knowledadge is power
View GitHub Profile
@calderon
calderon / .zshrc
Last active October 10, 2018 10:45
# 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 11:15
Solution to Sub-pixel IE's bug with SASS
// !!! 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 November 28, 2011 19:30
Home-made border-radius SCSS mixin
$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);