This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Thingy | |
constructor: (@onBeforeSendCallback) -> | |
console.log "Yay" | |
XHRWatcherOnBeforeSend: (sendParams) -> | |
@onBeforeSendCallback() if onBeforeSendCallback? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contentSecurityPolicy: { | |
'default-src': "'none'", | |
'script-src': "'self' 'unsafe-eval' 'unsafe-inline' intercom.io w.soundcloud.com", | |
'object-src': "'self'", | |
'font-src': "'self' data: fonts.gstatic.com", | |
'connect-src': "'self' soundcloud.com", | |
'img-src': "'self' data:", | |
'style-src': "'self' 'unsafe-inline' fonts.googleapis.com", | |
'media-src': "'self'", | |
'frame-src': "'self' w.soundcloud.com youtube.com youtube-nocookie.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"disallowEmptyBlocks": true, | |
"disallowMixedSpacesAndTabs": true, | |
"disallowNewlineBeforeBlockStatements": true, | |
"disallowQuotedKeysInObjects": true, | |
"disallowSpaceAfterObjectKeys": true, | |
"disallowSpacesInAnonymousFunctionExpression": { | |
"beforeOpeningRoundBrace": true | |
}, | |
"disallowSpacesInCallExpression": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// router.js | |
import Ember from 'ember'; | |
import config from './config/environment'; | |
let Router = Ember.Router.extend({ | |
location: config.locationType | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Your recruiters are sending unsolicited emails with no way to opt-out of these emails. They are also being sent as bulk emails to multiple participants, not even addressing candidates by name. I cannot imagine you get very good results sending form letters to potential candidates, just as you probably don't recommend job seekers send in resume cover letters with "DEAR COMPANY," as a lead-in. | |
I'd appreciate your review of the CAN-SPAM act with regards to these types of emails: https://www.ftc.gov/tips-advice/business-center/guidance/can-spam-act-compliance-guide-business | |
Please make sure my email is 100% removed from your system. I do not wish to be contacted by another of your recruiters. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"settings": { | |
"todoreview": { | |
"case_sensitive": true, | |
"patterns": { | |
"HIGH": "HIGH[\\s]*?:[\\s]*(?P<high>.*)$", | |
"TODO": "TODO[\\s]*?:[\\s]*(?P<todo>.*)$", | |
"NOTE": "NOTE[\\s]*?:[\\s]*(?P<note>.*)$", | |
"FIXME": "FIX ?ME[\\s]*?:[\\s]*(?P<fixme>.*)$", | |
"CHANGED": "CHANGED[\\s]*?:[\\s]*(?P<changed>.*)$" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Does not work | |
progress = DokiCore::Progress.where(user: user, course: course) | |
.first_or_initialize(progressable: progressable) | |
puts progress.valid? # false | |
puts progress.errors.to_a # ['course is blank', 'user is blank'] | |
pp progress # { course_id: 1, user_id: 1 } <<------- WTF! | |
# Works | |
progress = DokiCore::Progress.where(user: user, course: course).first |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WebDeveloper.Information.displayFocusTarget = function(display, documents) | |
{ | |
var contentDocument = null; | |
var bodyDocument = null; | |
var elements = null; | |
var focusables = 'a[href], *[tabindex], area, button, iframe, input, select, textarea'; | |
for(var i = 0, l = documents.length; i < l; i++) | |
{ | |
contentDocument = documents[i]; |