Run the following:
npm install
node run.js
to execute the demo.
// lambda/airtable.js | |
const Airtable = require('airtable') | |
Airtable.configure({ | |
endpointUrl: 'https://api.airtable.com', | |
apiKey: process.env.AIRTABLE_KEY | |
}) | |
const base = Airtable.base('appNtnZ99fkL1cByn') | |
exports.handler = function(event, context, callback) { |
{ | |
..., | |
"scripts": { | |
"start": "gatsby develop -p 1234 -H 0.0.0.0", | |
"publish": "npm run _clean && npm run _build && npm run _encrypt && npm run _envDeploy", | |
"//": "========= PRIVATE SCRIPTS =========", | |
"_clean": "gatsby clean", | |
"_build": "gatsby build", | |
"_encrypt": "npx staticrypt public/index.html P@55W0RD -o public/index.html", | |
"_deploy": "npx netlify-cli deploy --dir=public --prod", |
var value = nil, | |
key = "kModelPropertiesKey", | |
layer = context.selection[0], | |
plugin = "com.animaapp.stc-sketch-plugin"; | |
// Get the value | |
context.command.valueForKey_onLayer_forPluginIdentifier(key,layer,plugin); | |
// Set the value | |
context.command.setValue_forKey_onLayer_forPluginIdentifier(value,key,layer,plugin); |
#!/bin/sh | |
# some parts of this forked from https://github.com/blended/sketch-collaboration | |
# cf. https://github.com/chadlavi/sketch-collaboration | |
if [ ! `command -v jq` ]; then | |
echo "you need to install jq. If you use Homebrew, try 'brew install jq'" | |
exit 1 | |
fi | |
if [ -z "$1 ]; then |
machine: | |
pre: | |
- mkdir ~/.yarn-cache | |
node: | |
version: stable | |
dependencies: | |
pre: | |
- curl -o- -L https://yarnpkg.com/install.sh | bash | |
cache_directories: | |
- ~/.yarn-cache |
machine: | |
pre: | |
- mkdir ~/.yarn-cache | |
dependencies: | |
pre: | |
- curl -o- -L https://yarnpkg.com/install.sh | bash | |
cache_directories: | |
- ~/.yarn-cache | |
override: |
IE6 Only | |
================== | |
_selector {...} | |
IE6 & IE7 | |
================== | |
*html or { _property: } | |
IE7 Only | |
================== |
# Copy and self modified from ys.zsh-theme, the one of default themes in master repository | |
# Clean, simple, compatible and meaningful. | |
# Tested on Linux, Unix and Windows under ANSI colors. | |
# It is recommended to use with a dark background and the font Inconsolata. | |
# Colors: black, red, green, yellow, *blue, magenta, cyan, and white. | |
# http://xiaofan.at | |
# 2 Jul 2015 - Xiaofan | |
# Machine name. | |
function box_name { |
// based on http://onais-m.blogspot.nl/2014/10/automatic-graph-layout-with-javascript.html | |
var jsp = jsPlumb.getInstance(); | |
// construct dagre graph from JsPlumb graph | |
/* global dagre */ | |
var g = new dagre.graphlib.Graph(); | |
g.setGraph({}); | |
g.setDefaultEdgeLabel(function() { return {}; }); | |
$('.xnode').each( |