Skip to content

Instantly share code, notes, and snippets.

View daneden's full-sized avatar

Daniel Eden daneden

View GitHub Profile
defaults write jp.informationarchitects.WriterForMacOSX nightMode -bool true
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
.block {
&:hover {
&__element {
color: red;
}
}
}
/* Expected/desired output: */
.block:hover .block__element {
@daneden
daneden / SassMeister-input.scss
Created December 11, 2014 22:13
Generated by SassMeister.com.
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
.block {
&:hover {
&__element {
color: red;
}
/* This variable is for demonstration only, but the naming convention is a shorthand for:
** $globalVar-spacingVar-baseline
*/
$g-s-baseline: 23px;
/* You could imagine different variables following the same pattern, for example:
** $g-c-blue (global, color, blue)
** $l-f-sans (local/themed, font, sans-serif)
*/
@daneden
daneden / SassMeister-input.scss
Created February 9, 2015 23:55
Generated by SassMeister.com.
// ----
// Sass (v3.4.11)
// Compass (v1.0.3)
// ----
@mixin share($value, $props...) {
@each $prop in $props {
#{$prop}: $value;
}
}
#!/bin/bash
# cd to the cwd of this script
cd "$(dirname "$0")"
# Let the user know what's happening, yo
printf "\nInstalling Sketch templates..."
# OS X's `ditto` command is basically like `cp --parents` and it is awesome
ditto "Web/Web Blankslates.sketch" "$HOME/Library/Containers/com.bohemiancoding.sketch3/Data/Library/Application Support/com.bohemiancoding.sketch3/Templates/Dropbox Web.sketch"
@daneden
daneden / grilled-cheese.md
Last active August 29, 2015 14:15
Maybe the simplest, tastiest, most budget-friendly grilled cheese sandwich I’ve ever made.
  1. Butter both sides of two slices of bread
  2. Spread a light layer of cream cheese on one side of each slice
  3. (Optional) Spread a light layer of BBQ sauce on each slice
  4. Add the main cheese to one slice. Cheddar, prefarably. Shredded/grated is best. Make sure it reaches all those corners.
  5. (Optional) Sprinkle some Worcestor sauce over the cheese
  6. Assemble the sandwich. Marvel at its glory.
  7. Fry both sides in a pan over a medium heat, until the bread is evenly toasted. A little overdone won't hurt.
  8. Eat it.
@daneden
daneden / yo-what-up.md
Last active August 29, 2015 14:15
Diversity efforts in need of funding, in no particular order.