Skip to content

Instantly share code, notes, and snippets.

View mreidsma's full-sized avatar

Matthew Reidsma mreidsma

View GitHub Profile
// fix for https://gist.github.com/mreidsma/69a42480f157647cd710#file-summonalerts-js-L4
// Set the text of the alert
var message = 'The Database of Broken Dreams is currently unavailable.';
// Turn the alert on or off (true = on, false = off)
var showAlert = false;
angular.module('summonApp.directives').directive("resultsFeed",
function() {
return {

Characteristics of Effective Teams

from my daughter's class at Eastern Middle School

There is a clear unity of purpose.

There was free discussion of the objectives until members commit themselves to them; the objectives are meaningful to each group member.

The group is self-conscious about its own operations.

@Wilto
Wilto / chili.md
Last active August 29, 2015 13:55
Chili.
  • 2 Tbsp vegetable oil
  • Red bell pepper, diced
  • Yellow bell pepper, diced
  • 4 cloves garlic, minced
  • 2 yellow onions, minced
  • 24 oz. can tomatoes, diced (Pastine 4-LYFE)
  • 24 oz. can tomatoes, crushed (See above)
  • 1 can black beans, drained/rinsed
  • 1 can kidney beans, drained/rinsed
  • 1 can vegetable stock
@corsonr
corsonr / gist:7925232
Created December 12, 2013 09:17
WooCommerce: products search form using a custom template file
<?php
$form = '<form role="search" method="get" id="searchform" action="' . esc_url( home_url( '/' ) ) . '">
<div>
<label class="screen-reader-text" for="s">' . __( 'Search for:', 'woocommerce' ) . '</label>
<input type="text" value="' . get_search_query() . '" name="s" id="s" placeholder="' . __( 'My Super Search form', 'woocommerce' ) . '" />
<input type="submit" id="searchsubmit" value="'. esc_attr__( 'Search', 'woocommerce' ) .'" />
<input type="hidden" name="post_type" value="product" />
</div>
</form>';
@ttscoff
ttscoff / tp-dailylog.rb
Created February 26, 2012 04:33
Daily background logger to write completed TaskPaper tasks (system-wide) to a Day One entry
#!/usr/bin/ruby
# tp-dailylog.rb - Log TaskPaper tasks completed on the current day to a Day One entry
# Brett Terpstra 2012 <http://brettterpstra.com>
#
# Run it with launchd at 11pm and forget about it
#
# Notes:
# * Uses `mdfind` to locate all .taskpaper files changed in the last day
# * Scans for @done(xxxx-xx-xx) tags in each line matching today's date
# * Does not alter TaskPaper files in any way
@wadey
wadey / webhook.md
Created August 28, 2011 23:13
Botriot WebHooks

Botriot WebHooks

Format

Both the POST data and the expected response data are application/json

POST Request

If a user posts one of the following in the channel: