Skip to content

Instantly share code, notes, and snippets.

const fo = async ({stuff, userId}) => {
await new Promise(resolve => {
setTimeout(() => resolve(), 500);
});
console.log(stuff, userId);
};
fo({stuff: "a", userId: "b"});
app.launch(function(request, response) { [8/89]
const accessTokenReceived = request.sessionDetails.accessToken;
if (accessTokenReceived === undefined) {
throw "no_access_token";
}
return user.getUserFromAccessTokenPromise(accessTokenReceived)
.then(user => stuff.getStuffFromUserPromise(user).then(() => user.id))
.then(userId => helper.getStaffUserIdPromise(userId))
.then(() => {
app.launch(function(request, response) {
return Promise.resolve().then(() => {
const accessTokenReceived = request.sessionDetails.accessToken;
if (accessTokenReceived === undefined) {
throw 'no_access_token';
}
return user.getUserFromAccessTokenPromise(accessTokenReceived);
}).catch(() => {
throw 'not_good_access_token';
import { NgModule } from '@angular/core';
import { Paho } from 'ng2-mqtt';
@NgModule()
export class AppModule { }
const webpack = require("webpack");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const ExtractTextPlugin = require("extract-text-webpack-plugin");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const path = require("path");
const _root = path.resolve(__dirname);
function root(args) {
args = Array.prototype.slice.call(arguments, 0);
return path.join.apply(path, [_root].concat(args));
[
{
"name": "MANUFACTURING",
"businessTypes": [
{
"business_type": "Brewery, Microbrewery and IPA",
"business_category": "MANUFACTURING",
"permits": [
{
"friendly_name": "Site Plan Application",
const webpack = require("webpack");
const HtmlPlugin = require("html-webpack-plugin");
const ExtractTextPlugin = require("extract-text-webpack-plugin");
const helpers = require("./helpers");
const envPlugin = new webpack.DefinePlugin({
"ENV": JSON.stringify("bar")
});
module.exports = {
" neovim plugins
if &compatible
set nocompatible
endif
set runtimepath^=~/.config/nvim/dein/repos/github.com/Shougo/dein.vim
call dein#begin(expand('~/.config/nvim/dein'))
call dein#add('Shougo/dein.vim')
call dein#add('Shougo/vimproc.vim', {'build': 'make'})
call dein#add('Shougo/deoplete.nvim')
tfplanJˇôPlanˇöDiffˇúModuleˇ™Stateˇ¨VarsˇäTargetsˇàˇõDiffˇúModulesˇ®&ˇß[]*terraform.ModuleDiffˇ®ˇû1ˇùˇûPathˇà Resourcesˇ¶Destroyˇá[]stringˇà 3ˇ•"map[string]*terraform.InstanceDiffˇ¶ ˇ†;ˇüˇ†
Attributesˇ§DestroyDestroyTainted7ˇ£&map[string]*terraform.ResourceAttrDiffˇ§ ˇ¢oˇ°ˇ¢Old New  NewComputed
NewRemovedNewExtra RequiresNew SensitiveType
ˇ©ˇæ]ˇ´Stateˇ¨Version TFVersion SerialLineage RemoteˇÆModulesˇº.ˇ≠ RemoteStateˇÆType Configˇñ!ˇïmap[string]stringˇñ  'ˇª[]*terraform.ModuleStateˇºˇ∞DˇØˇ∞PathˇàOutputsˇ¥ Resourcesˇ∫ Dependenciesˇà2ˇ≥!map[string]*terraform.OutputStateˇ¥ ˇ≤-ˇ±ˇ≤ SensitiveType Value4ˇπ#map[string]*terraform.ResourceStateˇ∫ ˇ∂Nˇµˇ∂Type  DependenciesˇàPrimaryˇîDeposedˇ∏Provide
* Error running command 'PREFIX=acrites provision/subtf': exit status 1. Output: MANPATH=/Users/acrites/.nvm/versions/node/v6.3.1/share/man:/usr/share/man:/usr/local/share/man:/Library/Developer/[45/1215]
neTools/usr/share/man
TERM_PROGRAM=iTerm.app
AWS_HOME=/Users/acrites/.aws
NVM_CD_FLAGS=-q
SHELL=/bin/zsh
TERM=screen-256color
TMPDIR=/var/folders/cl/zx36gcds2yb4b2h6hc6djdz00000gp/T/
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.IF8k6j0KcI/Render
NVM_PATH=/Users/acrites/.nvm/versions/node/v6.3.1/lib/node