Skip to content

Instantly share code, notes, and snippets.

@hernamesbarbara
hernamesbarbara / .bash_profile
Created February 29, 2012 04:59
bash_profile with terminal colors and useful aliases
#!/bin/bash
export TERM=xterm-color
export CLICOLOR=1
export GREP_OPTIONS='--color=auto'
# export LSCOLORS=Exfxcxdxbxegedabagacad
export LSCOLORS=gxfxcxdxbxegedabagacad # Dark lscolor scheme
# Don't put duplicate lines in your bash history
export HISTCONTROL=ignoredups
# increase history limit (100KB or 5K entries)
export HISTFILESIZE=100000
@pipster
pipster / gist:1992046
Created March 7, 2012 08:59
HTML: Country Code Drop Down
<select>
<option value=" " selected>(please select a country)</option>
<option value="--">none</option>
<option value="AF">Afghanistan</option>
<option value="AL">Albania</option>
<option value="DZ">Algeria</option>
<option value="AS">American Samoa</option>
<option value="AD">Andorra</option>
<option value="AO">Angola</option>
<option value="AI">Anguilla</option>
@cam-gists
cam-gists / fade.js
Created August 20, 2012 15:47
JQuery: Progressive Fade in
/*
Plugin: Progressive Fade In
Version: 1
Author: Tim Wright - csskarma.com
Call: $(elems).progressiveFadeIn({ 'speedMultiplier': ###, 'fadeInSpeed': ### });
Options: speedMultiplier, fadeInSpeed
URL: http://www.csskarma.com/lab/jquery.plugins/jquery.progressiveFadeIn.js
*/
(function ($) {
@awshout
awshout / foundation4-section-menu.php
Last active May 5, 2020 20:46
WordPress Menu & Walker for ZURB's Foundation 4 Sections
<?php
add_theme_support('menus');
/**
* http://codex.wordpress.org/Function_Reference/register_nav_menus#Examples
*/
register_nav_menus(array(
'main-menu' => 'Main Menu',
));
@pablolobos
pablolobos / mixin_ellipsis.scss
Created July 23, 2013 16:38
mixin: ellipsis
@mixin ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
@robertmagnusson
robertmagnusson / size_mixin.scss
Created February 3, 2014 08:52
Mixin to set height and width.
@mixin size($width, $height: $width) {
width: $width;
height: $height;
}
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="[email protected]"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="[email protected]"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
@cs150bf
cs150bf / README.md
Last active February 26, 2024 09:59
Create cross reference links in Evernote (OSX)

Create cross reference links in Evernote (OSX)

Create links within a single note.

Requirement