Skip to content

Instantly share code, notes, and snippets.

<%= f.input :kind, :as => :radio, :label => "Is this a single or multiple trip?", :collection => kinds_collection, :label_html => {:class => "inline"} %>
#include "FastLED.h"
// Matrix size
#define NUM_ROWS 16
#define NUM_COLS 16
// LEDs pin
#define DATA_PIN 3
@ogredude
ogredude / rules_automatic_update_notification_email
Created October 26, 2012 02:19
Drupal Commerce Rules to send an update email to customer on order status change
{ "rules_automatic_update_notification_email" : {
"LABEL" : "Automatic update notification email",
"PLUGIN" : "rule set",
"REQUIRES" : [ "rules" ],
"USES VARIABLES" : { "order" : { "label" : "Order", "type" : "commerce_order" } },
"RULES" : [
{ "RULE" : {
"PROVIDE" : { "entity_fetched" : { "billing_profile" : "Billing profile" } },
"IF" : [
{ "entity_has_field" : { "entity" : [ "order" ], "field" : "commerce_customer_billing" } }
[18:03:20] --> SUPERNETS (~mgtkl@ec2-54-191-195-103.us-west-2.compute.amazonaws.com) has joined #FTB
[18:03:20] <SUPERNETS> THIS NETWORK IS BLOWJOBS! GET ON SUPERNETS FOR COLD HARD CHATS NOW
[18:03:20] <SUPERNETS> ITS DECEMBER 25th! MERRY FLOODMAS FROM SUPERNETS! SEE YA NEXT YEAR
[18:03:21] <SUPERNETS> IRC.SUPERNETS.ORG | PORT 6667/6697 (SSL) | #SUPERBOWL | IPV6 READY
[18:03:21] <-- SUPERNETS (~mgtkl@ec2-54-191-195-103.us-west-2.compute.amazonaws.com) has left #FTB
./automysqlbackup/automysqlbackup: line 835: 6: Bad file descriptor
./automysqlbackup/automysqlbackup: line 836: 7: Bad file descriptor
#space:: ;win+space to start
loop ;infinite loop
{
click
sleep 20 ;wait 10 milliseconds
}
#p::Pause ;press win+p to pause and unpause
<JimStarluck> So, I just had an epiphany about the way Trump is operating
<JimStarluck> He is, essentially, using a political Orion drive.
<JimStarluck> He says something outrageous and/or offensive, rides the wave of outrage from it, and then before he can slow down he does it again
<JimStarluck> Surfing upon a continuous blast wave of media coverage
<IneffableEntity> We've just been throwing paper airplanes at our targets. They have firecrackers attached to them.
<IneffableEntity> Might explain why we're losing this war.
<Ogredude> probably so, IneffableEntity... We've been lighting the firecrackers and throwing them back.
<IneffableEntity> We weren't even lighting them?! I need new generals.
/**
* Fills in form field with specified id|name|label|value.
*
* @When /^(?:|I )fill in "(?P<field>(?:[^"]|\\")*)" with "(?P<value>(?:[^"]|\\")*)"$/
* @When /^(?:|I )fill in "(?P<field>(?:[^"]|\\")*)" with:$/
* @When /^(?:|I )fill in "(?P<value>(?:[^"]|\\")*)" for "(?P<field>(?:[^"]|\\")*)"$/
*/
public function fillField($field, $value)
{
$field = $this->fixStepArgument($field);
core = 7.x
api = 2
NOTE: Remove this line and insert your feature branch name before attempting to build.
includes[build-myproject] = "build-myproject.make"
projects[myproject][download][url] = "file:///var/aegir/shared_platforms/myproject"
projects[myproject][download][branch] = your-feature-branch-name