Skip to content

Instantly share code, notes, and snippets.

View kriswill's full-sized avatar

Kris Williams kriswill

View GitHub Profile
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 September 12, 2011 19:38
pb sublime-text 2 general project file
{
"folders":
[
{
"path": "./common",
"folder_exclude_patterns": ["3rdparty"]
},
{
"path": "./includes",
"folder_exclude_patterns": ["3rdparty"]
@kriswill
kriswill / chosen-ie7-prototype-js.diff
Created May 10, 2012 18:11
Chosen IE7 Prototype.js git-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 20:42
Smarty textmate syntax file, modified to work with SublimeText 2
<?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 July 17, 2012 01:52
Kris' Railscast theme - modified for SublimeText2
<?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 August 29, 2015 14:12
Ember 1.9.1 + handlebars 2.0.0 + ember-cli 0.1.5 working
{
"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",
@kriswill
kriswill / token.js
Created February 3, 2015 20:05
api/service
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) {
@kriswill
kriswill / passport.js
Created February 3, 2015 21:13
Passport model
/**
* 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 February 6, 2015 22:59
oauth postgres schema
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 February 19, 2015 21:58
Comcast transcript 2/19/2015
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.