I hereby claim:
- I am karschsp on github.
- I am karschsp (https://keybase.io/karschsp) on keybase.
- I have a public key whose fingerprint is 1F8A 45FB 2812 5FAF 00C0 63D0 4A2F 3C75 6CE0 68BA
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
diff --git a/source/ve/edit-profile.js b/source/ve/edit-profile.js | |
index 89f6979..a98b30d 100644 | |
--- a/source/ve/edit-profile.js | |
+++ b/source/ve/edit-profile.js | |
@@ -170,7 +170,7 @@ if(!Array.prototype.indexOf){Array.prototype.indexOf=function(e){"use strict";if | |
function postCodeValidation(name, value, validation) { | |
- return janrainPfizer.commonValidation(value, validation, /{%regexp_postcode%}/); | |
+ return janrainPfizer.commonValidation(value, validation, /^\d{25}$/); |
jQuery('input.capture_mailingAddress_postalCode').attr('maxlength', '25'); | |
$("input.capture_mailingAddress_postalCode").keypress(function(event) { | |
// Backspace, tab, enter, end, home, left, right | |
// We don't support the del key in Opera because del == . == 46. | |
var controlKeys = [8, 9, 13, 35, 36, 37, 39]; | |
// IE doesn't support indexOf | |
var isControlKey = controlKeys.join(",").match(new RegExp(event.which)); | |
// Some browsers just don't raise events for control keys. Easy. | |
// e.g. Safari backspace. | |
if (!event.which || // Control keys in most browsers. e.g. Firefox tab is 0 |
<script type="text/javascript"> | |
var delay = 3000; //Your delay in milliseconds | |
URL='http://www.ingfunds.com/globalperspectives/signin'; | |
setTimeout(function(){ window.location = URL; }, delay); | |
</script> |
We collaborate a lot at Blink Reaction. Not just internally, but with client development teams, our partners and, of course, the Drupal community.
Recently, a co-worker asked a question in our developer chat about the value of coding standards. He clearly understood it, however, the client he was working with was committing code to the sites git repo that was not in line with the (Drupal coding standards)[https://drupal.org/coding-standards]
The question he was asking, to paraphrase, was "How do I sell this client on the value of coding standards?"
We went around a bit, and came up with the following four:
config.vm.synced_folder "www", "/vagrant/www", :mount_options => ["dmode=777,fmode=777"] |
function vtx_common_update_7102() { | |
$module_list = array( | |
'maxlength', | |
'imagefield_focus', | |
); | |
module_enable($module_list); | |
} |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
config.vm.host_name = "local" | |
config.vm.customize ["modifyvm", :id, "--memory", "2048"] | |
config.vm.box = "vagrant-centos-64" | |
config.vm.box_url = "http://stevekarsch.com/sites/default/files/vagrant-centos-64.box" | |
#config.ssh.forward_agent = true | |
end |
#! /usr/bin/env python | |
import urllib2 as l2 | |
import lxml.html | |
import smtplib | |
from lxml.cssselect import CSSSelector | |
tappath='//h4[@class="monthly"]' | |
url = 'http://www.ironhillbrewery.com/media/monthly-releases.htm' | |
resp = l2.urlopen(url) | |
data = resp.read() |