Skip to content

Instantly share code, notes, and snippets.

View jmflannery's full-sized avatar
🤓
Working from home

Jack Flannery jmflannery

🤓
Working from home
View GitHub Profile
Airbrake not found!
(index):57 Subscribing to channel for Jack Flannery
(index):57 private-production;member_31225
application-1656c9b….js:948 [Violation] 'DOMContentLoaded' handler took 183ms
kandy.js:1264 Initializing media for call
kandy.js:1264 Navigator type determined to be chrome
kandy.js:1264 Adaptor initializing from [object Object] browser and auto plugIn mode
kandy.js:1264 WebRtcAdaptor initializing
kandy.js:1264 WebRtcAdaptor initialized
kandy.js:1264 WebRtcChromeAdaptor initializing
@jmflannery
jmflannery / application_controller.rb
Created October 28, 2016 15:21
authenticate_with_http_token example in a rails controller
def authenticate_token
@user = authenticate_with_http_token do |key, options|
token = Token.find_by key: key
token.user if token
end
head 401 unless @user
end
//= require jquery
//= require rails
//= require jquery_ui
//= require class
//= require whisper_init
//= require jquery.autoresize
//= require jquery.autoSuggestWhisper
//= require jQuery.charCounter