Skip to content

Instantly share code, notes, and snippets.

View nicksergeant's full-sized avatar

Nick Sergeant nicksergeant

View GitHub Profile
  1. Get a PNG of some sort.
  2. Open the PNG in Preview.app.
  3. Cmd+A, then Cmd+C
  4. Right click on desired item -> Get Info
  5. Click on the icon in the upper left.
  6. Cmd+V
  7. Profit.
function git_prompt
set -l CUR (git currentbranch ^/dev/null)
if test $CUR
printf ' \033[0;37mon '
printf '\033[0;35m%s' $CUR
printf ' \033[0;32m'
git_prompt_status
end
end
### Me, via support ticket:
I am a paying user, and I pay for Packrat.
I have a folder that was previously deleted and I would like to restore.
Here's what I do:
1. Go to Dropbox.com
2. Browse to the folder that contains the folder that is deleted.
/*
* TODO:
* - Event triggering
*/
/*
* Somewhere in the widgets / dialog:
*/
var x = new window['AmaraDFXPParser']();
// I frequently need to give an element two box-shadows: one that is inset,
// and one outset (default). This is a mixin for it.
@mixin multi-box-shadow(
$horizontal: 0px,
$vertical: 1px,
$blur: 2px,
$color: #CCC,
$horizontalInset: 0px,
$verticalInset: 1px,
air ~/Code/finisht
○ heroku db:pull
! Taps Load Error: cannot load such file -- taps/operation
! You may need to install or update the taps gem to use db commands.
! On most systems this will be:
!
! sudo gem install taps
air ~
○ time open /Applications/FoldingText.app/ Desktop/To\ Do.txt
0.91 real 0.04 user 0.01 sys
air ~
○ time open /Applications/TextEdit.app/ Desktop/To\ Do.txt
0.17 real 0.05 user 0.01 sys

Current Two Lake Roastery offerings:

Rwanda Jomba Vunga

  • Country: Rwanda
  • Grade: A1
  • Region: Jomba, Nyabihu
  • Processing: Wet Process (Washed)
  • Arrival Date: January 2012 Arrival, Grainpro Bags
  • Appearance: .4 d/300gr, 15 + Screen

I'm starting a new web-based project, called Craft of Man.

Goals of the project

  1. Inspire.

    Videos. Stories. When people see other people who are totally invested in something, it inspires us to do the same.

  2. Inform.