Skip to content

Instantly share code, notes, and snippets.

Source PRETTY FORMATS

If the commit is a merge, and if the pretty-format is not 'oneline', 'email' or 'raw', an additional line is inserted before the 'Author:' line. This line begins with "Merge: " and the sha1s of ancestral commits are printed, separated by spaces. Note that the listed commits may not necessarily be the list of the direct parent commits if you

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
@sheedy
sheedy / super-console-log.js
Created July 4, 2014 06:49
Smarter console.log
// Source: http://remysharp.com/2014/05/23/where-is-that-console-log/
//
// If you include this as high as possible in your code base, all subsequent console.log (or warn) calls will include the line the call was made from
['log', 'warn'].forEach(function(method) {
var old = console[method];
console[method] = function() {
var stack = (new Error()).stack.split(/\n/);
// Chrome includes a single "Error" line, FF doesn't.
if (stack[0].indexOf('Error') === 0) {
#!/bin/bash
USER=YOUR_USERNAME
HOST=YOUR_SERVER_HOSTNAME
WEBPATH=PATH_TO_WEBSERVER_ROOT
WEBURL=YOUR_URL
BACKUP_DIR=DIR_FOR_BACKUP
file=$(mktemp $BACKUP_DIR/XXXXXX)
mv $file $file.html
@sheedy
sheedy / .scss-lint.yml
Created June 27, 2014 17:14
My defaults for scss-lint
# Comments pulled from https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md
# inherit_from: '../../inherited-config.yml'
# exclude: 'app/assets/stylesheets/plugins/**'
# Default application configuration that all configurations inherit from.
linters:
BorderZero:

Setup

Add the simple-rss Gem to your Gemfile:

gem 'simple-rss'

Update your bundle:

bundle

Description

Dashing widget to display weather from forecast.io.

##Usage

To use this widget, copy forecast.coffee, forecast.html, and forecast.scss into the /widgets/forecast directory. Put the forecast.rb file in your /jobs folder.

To include the widget in a dashboard, add the following to your dashboard layout file:

Description

Simple Dashing widget to countdown until a certain moment. Flashes the widget when finished.

##Usage

To use this widget, copy countdown.html, countdown.coffee, and countdown.scss into the /widgets/countdown directory.

To include the widget in a dashboard, add the following snippet to the dashboard layout file:

This will show your next GitHub milestone as a Dashing widget. Built on top of the Text widget.

To use:

  • Add the following to your gemfile:

  •   gem 'rest-client'
    
  • Replace the git_token, git_owner, and git_project in git-milestone.rb as appropriate.

@sheedy
sheedy / osx-commands.md
Last active August 29, 2015 14:02
An A-Z Index of the Apple OS X command line. Source: http://ss64.com/osx/osx/

An A-Z Index of the Apple OS X command line

Source: http://ss64.com/osx/osx/

a

  • [alias][1] Create an alias •
  • alloc List used and free memory
  • [apropos][2] Search the whatis database for strings
  • [asr][3] Apple Software Restore
  • [awk][4] Find and Replace text within file(s)