I hereby claim:
- I am fernyettheplant on github.
- I am fernyettheplant (https://keybase.io/fernyettheplant) on keybase.
- I have a public key ASAU36UI23EMM_I545CFOp4SbzZGn8IjyOy-IwMj0uRjkgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
'use strict'; | |
module.exports.http = async (event) => { | |
return { | |
statusCode: 200, | |
body: JSON.stringify( | |
{ | |
message: 'the result', | |
}, | |
null, |
'use strict'; | |
exports.http = (request, response) => { | |
// Do something with request | |
// Business Logic Here | |
response.status(200).send('the result'); | |
}; |
const LaunchDarkly = require('launchdarkly-node-server-sdk') | |
const ldClient = LaunchDarkly.init('SDK_KEY') | |
const ready = ldClient.waitForInitialization() | |
module.exports.myhandler = function (event, context, cb) { | |
ready.then((client) => { | |
// Check yout FF here | |
}) | |
} |
module.exports.myhandler = function (event, context, cb) { | |
conn.query("SELECT * FROM items", (error, results) => { | |
if (error) { | |
cb(error, null) | |
} else { | |
cb(null, results) | |
} | |
}) | |
} |
module.exports.myhandler = function (event, context, cb) { | |
conn.query("SELECT * FROM items", (error, results) => { | |
if (error) { | |
cb(error, null) | |
} else { | |
cb(null, results) | |
} | |
}) | |
} |
const mysql = require('mysql') | |
module.exports.myhandler = function (event, context, cb) { | |
const conn = mysql.createConnection({ | |
// mysql connection info | |
}); | |
conn.query("SELECT * FROM items", (error, results) => { | |
if (error) { | |
cb(error, null) |
import { Action, Module, Mutation, VuexModule } from 'vuex-module-decorators' | |
import { Inject } from 'inversify-props' | |
import KanyeQuote from '@/models/KanyeQuote' | |
import IKanyeWestService from '@/services/IKanyeWestService' | |
@Module | |
export default class KanyeWest extends VuexModule { | |
@Inject() | |
private kanyeWestService!: IKanyeWestService |
import { Action, Module, Mutation, VuexModule } from 'vuex-module-decorators' | |
import { Inject } from 'inversify-props' | |
import KanyeQuote from '@/models/KanyeQuote' | |
import IKanyeWestService from '@/services/IKanyeWestService' | |
@Module | |
export default class KanyeWest extends VuexModule { | |
@Inject() | |
private kanyeWestService!: IKanyeWestService // Inject |
import { Action, Module, Mutation, VuexModule } from 'vuex-module-decorators' | |
import { Inject } from 'inversify-props' // This | |
import KanyeQuote from '@/models/KanyeQuote' | |
import IKanyeWestService from '@/services/IKanyeWestService' // This | |
@Module | |
export default class KanyeWest extends VuexModule { | |
... | |
} |