Skip to content

Instantly share code, notes, and snippets.

@vurral
vurral / dabblet.css
Created April 20, 2015 16:00
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body {
background: #f06;
background: white;
min-height: 100%;
}
.icon {
@vurral
vurral / desc.txt
Created October 12, 2013 12:42
install auto launch daemon for mongodb on mac
To have launchd start mongodb at login:
ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
Then to load mongodb now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
Or, if you don't want/need launchctl, you can just run:
mongod
@vurral
vurral / .gitconfig
Created September 13, 2013 03:16 — forked from robmiller/.gitconfig
#
# Working with branches
#
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"
@vurral
vurral / founctions.scss
Created September 2, 2013 14:07
Extended Foundation Media Queries
// remember the QUERIES
// no predefined query for small ( < 768px ), cause you should design mobile first!
@media #{$retina-small} { /* retina < 768px */ }
@media #{$small} { /* > 768px (medium) */ }
@media #{$retina-medium} { /* > 768px (retina-medium) */ }
@media #{$medium} { /* > 1280px (large) */ }
@media #{$retina-large} { /* > 1280px (retina-large) */ }
@media #{$large} { /* > 1440px (xlarge) */ }
$("div.check_boxes label").each(function() {
attrId = $(this).find(">:first-child").attr("id");
$(this).attr("for", attrId);
});
$("div.radio_buttons label").each(function() {
attrId = $(this).find(">:first-child").attr("id");
$(this).attr("for", attrId);
});