swwwwwwwwwwwz
execute: gffffffb_| #!/usr/bin/env python3 | |
| """Bookstore buyer's catalog + purchase-order tool (row-based, prototype). | |
| A tiny LOCAL proxy server: the browser calls localhost, the proxy forwards catalog | |
| reads to the live bookhead-api (search / publisher / frontlist / bib / availability) | |
| with the service token + a browser UA. Lists and purchase orders are LOCAL | |
| disposable state (buyer_state.json) — there are no write endpoints yet. | |
| BOOKHEAD_API_TOKEN=<token> python3 explore_api.py | |
| BOOKHEAD_API_URL default https://api-staging.bookhead.net |
| CREATE TABLE IF NOT EXISTS public.bookstores ( | |
| id UUID NOT NULL DEFAULT gen_random_uuid(), | |
| name STRING NOT NULL, | |
| url STRING NULL, | |
| phone STRING NULL, | |
| address STRING NOT NULL, | |
| description STRING NULL, | |
| geom GEOMETRY NULL, | |
| CONSTRAINT "primary" PRIMARY KEY (id ASC), |
This is Yet Another Javascript Guide: a quick guide to Javascript functions and objects. The intended audience is somebody who knows a language like Ruby or Python and has somehow avoided learning Javascript, yet found themselves working on a Javascript project. This is the Cliff's Notes for Javascript. This is for cramming, for all-nighters, for people who need to get things done.
This guide will demonstrate how to declare functions, pass arguments in functions, and use the arguments inside a function. It will also explain the basics of a Javascript object. Hopefully, this information will help to understand how destructuring works when you want to pass an object into a function. Destructuring is a common pattern in present-day Javascript projects, like React or Gatsby or ExpressJS.
- Define a function that says hello
- [A function can accept different types o
| import AWSAppSyncClient, { AUTH_TYPE } from 'aws-appsync'; | |
| import gql from 'graphql-tag'; | |
| import * as queries from './queries'; | |
| import * as mutations from './mutations'; | |
| function configureAppSyncClient() { | |
| const token = JSON.parse(localStorage.getItem('okta-token-storage')) | |
| const config = JSON.parse(localStorage.getItem('config')) | |
| const client = new AWSAppSyncClient({ |