Skip to content

Instantly share code, notes, and snippets.

Avatar

Kris Williams kriswill

View GitHub Profile
View Mongouhub-quit-unexpectedly-209
Process: MongoHub [18473]
Path: /Applications/MongoHub.app/Contents/MacOS/MongoHub
Identifier: com.thepeppersstudio.MongoHub
Version: 2.0.9 (2.0.9)
Code Type: X86-64 (Native)
Parent Process: launchd [129]
Date/Time: 2010-05-29 22:58:41.429 -0700
OS Version: Mac OS X 10.6.3 (10D2094)
Report Version: 6
@kriswill
kriswill / pb.sublime-project
Created Sep 12, 2011
pb sublime-text 2 general project file
View pb.sublime-project
{
"folders":
[
{
"path": "./common",
"folder_exclude_patterns": ["3rdparty"]
},
{
"path": "./includes",
"folder_exclude_patterns": ["3rdparty"]
@kriswill
kriswill / chosen-ie7-prototype-js.diff
Created May 10, 2012
Chosen IE7 Prototype.js git-diff
View chosen-ie7-prototype-js.diff
diff --git a/chosen/chosen.proto.js b/chosen/chosen.proto.js
index e5049b0..0200299 100644
--- a/chosen/chosen.proto.js
+++ b/chosen/chosen.proto.js
@@ -408,14 +408,15 @@ Copyright (c) 2011 by Harvest
Chosen.prototype.container_mousedown = function(evt) {
var target_closelink;
if (!this.is_disabled) {
- target_closelink = evt != null ? evt.target.hasClassName("search-choice-close") : false;
+ var target = evt != null && evt.target ? $(evt.target) : null
@kriswill
kriswill / Smarty.tmLanguage
Created May 11, 2012
Smarty textmate syntax file, modified to work with SublimeText 2
View Smarty.tmLanguage
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>tpl</string>
<string>html</string>
</array>
<key>foldingStartMarker</key>
@kriswill
kriswill / kris.tmTheme
Created Jul 17, 2012
Kris' Railscast theme - modified for SublimeText2
View kris.tmTheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Kris - based on Railscasts</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@kriswill
kriswill / bower.json
Last active Aug 29, 2015
Ember 1.9.1 + handlebars 2.0.0 + ember-cli 0.1.5 working
View bower.json
{
"dependencies": {
"handlebars": "2.0.0",
"jquery": "^1.11.1",
"ember": "~1.9.1",
"ember-data": "1.0.0-beta.14.1",
"ember-resolver": "~0.1.10",
"loader.js": "stefanpenner/loader.js#1.0.1",
"ember-cli-shims": "stefanpenner/ember-cli-shims#0.0.3",
"ember-cli-test-loader": "rwjblue/ember-cli-test-loader#0.0.4",
View token.js
var jwt = require('jsonwebtoken')
module.exports = {
issue: function(payload) {
sails.log.silly(__filename + ':' + __line + ' [Service.Passport.deserializeUser() called]')
return jwt.sign(payload, sails.config.jwt.secret)
},
verify: function(token, next) {
View passport.js
/**
* Passport Model
*
* The Passport model handles associating authenticators with users. An authen-
* ticator can be either local (password) or third-party (provider). A single
* user can have multiple passports, allowing them to connect and use several
* third-party strategies in optional conjunction with a password.
*/
var bcrypt = require('bcrypt')
@kriswill
kriswill / schema.sql
Created Feb 6, 2015
oauth postgres schema
View schema.sql
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
@kriswill
kriswill / transcript
Created Feb 19, 2015
Comcast transcript 2/19/2015
View transcript
user KRIS has entered room
analyst Khareen has entered room
Khareen: Hello KRIS_, Thank you for contacting Comcast Live Chat Support. My name is Khareen. Please give me one moment to review your information.
Khareen: Hi! I hope you are doing well. I would be more than happy to assist you with your concern today.
KRIS_: My Issue: intermittent connection issues to various websites, not all but many.
You can’t perform that action at this time.