- Southern Style Speed - sliders, bumpers
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
query IntrospectionQuery { | |
__schema { | |
queryType { name } | |
mutationType { name } | |
subscriptionType { name } | |
types { | |
...FullType | |
} | |
directives { |
Tools 1 21mm socket 1 19mm socket 1 17mm socket 1 35mm socket 1 10mm hex head socket BFH (big effing hammer) Also a rubber mallet is a plus...or just hit the old axle with the big one as it's coming out anyways. 1 short prybar (12 inches) 1 long prybar (36 inches)
- multple apps sharing the same cookie domain
- one app (express.js) is using a secure cookie
express:sess
andexpress:sess.sig
- the hapi.js app tries to parse these cookies and fails returning 400 BadRequest error to client
I don't want hapi to return an error response to the client just because it gets a cookie it cant parse and doesn't care about. I tried setting
server.config({
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
https://codepen.io/Premisedata/collab/d12f89c524d6945a72de94f28651699c |
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
const profileMiddleware = _ => { | |
console.log('%cINSTALLED profileMiddleware', 'color:magenta'); | |
return next => action => { | |
if (typeof action.then === 'function') { | |
return next(action); | |
} | |
// eslint-disable-next-line no-console | |
console.group('dispatch ' + action.type); | |
console.time(action.type); | |
const result = next(action); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
var libphonenumber = require("google-libphonenumber"); | |
var formats = libphonenumber.PhoneNumberFormat; | |
var phoneUtil = libphonenumber.phoneUtil; | |
var number = phoneUtil.parse("2065557823", "us"); // pass number and country code | |
// some formats | |
phoneUtil.format(number, formats.E164); | |
// '+12065551234` |
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
// in run method of your application: | |
final FilterRegistration.Dynamic cors = environment.servlets().addFilter("crossOriginRequsts", CrossOriginFilter.class); | |
cors.addMappingForUrlPatterns(EnumSet.allOf(DispatcherType.class), true, "/*"); |
NewerOlder