Skip to content

Instantly share code, notes, and snippets.

// Assign these to play around with
$a = 1;
$b = 2;
// 1. Assignment operators
$a = $b; // Assign the value of $b to $a
$a += $b; // Assign the value of $a + $b to $a
$a -= $b; // Assign the value of $a - $b to $a
$a .= $b; // Concatenate $a and $b

Notes On Susy

General

  • Susy removes this layer altogether. You can immediately target any css class and apply a grid to it.
@danomanion
danomanion / .bash_profile
Last active August 29, 2015 14:04
Bash Profile
#function for all the fun GIT stuff, w00t!
function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*"
}
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/"
}
export PS1='\[\033[1m\]\[\033[40m\]\[\033[40m\]\[\033[30m\]Mac\[\033[40m\]\[\033[35m\] \w\[\033[0;32m\]$(parse_git_branch)\[\033[35m\]$\[\033[37m\] '
#export PATH="$PATH:~/dev/drush:/usr/local/bin"
@danomanion
danomanion / JS-Ghetto-Tab-Scroll.js
Last active October 11, 2015 13:47
JS Ghetto Scroll to ID and move 50 pixels up
$(function(){
var win = $(window); //cache your jq objects!
function fixScrollTop(){
win.scrollTop(win.scrollTop() - 50);
}
if(window.location.hash !== ""){
@danomanion
danomanion / .jQuery Slideshow Readme.md
Last active December 14, 2015 17:49
Messing around with this to see if it will be a useful snippet repository.

Readme:

Hello.

@danomanion
danomanion / .jQuery for Designers Code Examples
Last active December 14, 2015 23:49
jQuery for Designers code examples for future reference.
Code examples from book.
http://my.safaribooksonline.com/book/-/9781849516709
@danomanion
danomanion / temp.css
Created May 31, 2013 18:33
temp images
asdsad
asdsa
d
ds
da
s
da
@danomanion
danomanion / gist:6092210
Created July 26, 2013 21:01
Comment HTML
<div class="comment-count sticker">
<a href="#disqus_thread" data-disqus-identifier="" class="icon icon--online">Comment</a>
</div>
@danomanion
danomanion / add-this.css
Created October 4, 2013 04:00
Project Keeping Pace Button Line Height
#featured a.join-today strong {
line-height: 32px;
}