Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am chriscarter90 on github.
  • I am chriscarter90 (https://keybase.io/chriscarter90) on keybase.
  • I have a public key ASAlg3NNTfUUdXi9E6ngs7q8edd_5oRUJw8RgXIuhQbdqgo

To claim this, I am signing this object:

@chriscarter90
chriscarter90 / application.js
Created July 20, 2016 15:47
Can't force a change event on input
$(document).ready(function() {
$(".datepicker").datepicker({
onSelect: function() {
console.log("onSelect");
$(this).trigger("change");
var event = new UIEvent("select", {
"view": window,
"bubbles": true,
@chriscarter90
chriscarter90 / os_x.txt
Last active August 29, 2015 14:23
Postgres oddness
psql (9.4.1)
Type "help" for help.
defence-solicitor-service-auth_test=# SHOW LC_COLLATE;
lc_collate
-------------
en_US.UTF-8
(1 row)
defence-solicitor-service-auth_test=# SHOW LC_CTYPE;
lolololol
class AbuseEmail
include Rails.application.routes.url_helpers
def default_url_options
{ :host => 'www.example.com' }
end
def self.to
"abuse@kweekweek.com"
end
class AbuseEmail
include Rails.application.routes.url_helpers
def self.to
"abuse@kweekweek.com"
end
def self.subject
"Reported Comment"
end
# TL;DR: YOU SHOULD DELETE THIS FILE
#
# This file was generated by Cucumber-Rails and is only here to get you a head start
# These step definitions are thin wrappers around the Capybara/Webrat API that lets you
# visit pages, interact with widgets and make assertions about page content.
#
# If you use these step definitions as basis for your features you will quickly end up
# with features that are:
#
# * Hard to maintain