I hereby claim:
- I am marshallswain on github.
- I am marshallswain (https://keybase.io/marshallswain) on keybase.
- I have a public key ASAWaHB0n2chj3YbfQRBbIaOzazdC4teFOWUVtpkoirXtQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import type { HookContext, NextFunction } from '@feathersjs/feathers' | |
| type GetTokenFn = <H extends HookContext>(context: H) => Promise<string> | |
| interface CheckAccessTokenHookOptions { | |
| getToken?: GetTokenFn | GetTokenFn[] | |
| } | |
| const defaultGetTokenFn: GetTokenFn = async context => context.params.headers?.authorization?.split(' ')[1] |
| -- See Nauany's full blog post at https://blog.bitovi.com | |
| WITHRECURSIVEx(i) | |
| AS ( | |
| VALUES(0) | |
| UNIONALLSELECT i + 1FROM xWHERE i < 101 | |
| ), | |
| Z(Ix, Iy, Cx, Cy, X, Y, I) | |
| AS ( | |
| SELECT Ix, Iy, X::float, Y::float, X::float, Y::float, 0 | |
| FROM(SELECT -2.2 + 0.031 * i, iFROM x)AS xgen(x,ix) |
| const mb = (...p) => o => p.reduce((a, c) => Object(a)[c], o) |
| jwtAuth({ token }) { | |
| if (!isClient) { | |
| app().set('accessToken', token); | |
| return this.verifyToken(token) | |
| .then(payload => this.loadUser(payload.userId)); | |
| } | |
| return app() | |
| .authenticate({ strategy: 'jwt', accessToken: token }) | |
| .then(response => this.verifyToken(response.accessToken)) |
| var usStates = [ | |
| { name: 'ALABAMA', abbreviation: 'AL'}, | |
| { name: 'ALASKA', abbreviation: 'AK'}, | |
| { name: 'AMERICAN SAMOA', abbreviation: 'AS'}, | |
| { name: 'ARIZONA', abbreviation: 'AZ'}, | |
| { name: 'ARKANSAS', abbreviation: 'AR'}, | |
| { name: 'CALIFORNIA', abbreviation: 'CA'}, | |
| { name: 'COLORADO', abbreviation: 'CO'}, | |
| { name: 'CONNECTICUT', abbreviation: 'CT'}, | |
| { name: 'DELAWARE', abbreviation: 'DE'}, |
| { | |
| "Feathers Hook": { | |
| "prefix": ";hook;", | |
| "body": [ | |
| "const errors = require('feathers-errors')", | |
| "", | |
| "module.exports = function () {", | |
| " return function $1 (context) {", | |
| " $2", | |
| " }", |
This is a good starting Webpack configuration, but will need to be adjusted to work well in production.
webpack.config.js in the root of your project. (Refer to the Webpack CLI docs to learn how to customize this))npm install webpack webpack-dev-server can-stache-loader svg-inline-loader style-loader less-loader less --save-devYou need two flags when specifying which target to emulate. Also, do not include the version number on the end.
Find out what emulator images are available. Again, take into account that the version number will not be included when specifying the target in the cordova call.
./platforms/ios/cordova/lib/list-emulator-images
iPhone-5, 10.3
| describe('create', function () { | |
| before(function () { | |
| return utils.services.users.removeByEmail(app, 'test@test.com') | |
| }) | |
| it('allows user signup', function (done) { | |
| const newUser = { | |
| email: 'test@test.com', | |
| password: 'test' | |
| } |