After installing canvas-sketch globally, create a new folder to hold your sketch:
mkdir my-sketch
cd my-sketchNow run the following to generate a new default .ts file, package.json, etc:
After installing canvas-sketch globally, create a new folder to hold your sketch:
mkdir my-sketch
cd my-sketchNow run the following to generate a new default .ts file, package.json, etc:
| const sharp = require('sharp'); | |
| const aws = require('aws-sdk'); | |
| const s3 = new aws.S3(); | |
| const Bucket = "BucketName"; | |
| const transforms = [ | |
| { name: 'small', size: 85 }, | |
| { name: 'medium', size: 160 }, | |
| { name: 'large', size: 250 }, | |
| ]; |
| #!/usr/bin/env python | |
| """ | |
| Modification of `python -m SimpleHTTPServer` with a fallback to /index.html | |
| on requests for non-existing files. | |
| This is useful when serving a static single page application using the HTML5 | |
| history API. | |
| """ | |
| alias gh="open \`git remote -v | grep git@github.com | grep fetch | head -1 | cut -f2 | cut -d' ' -f1 | sed -e's/:/\//' -e 's/git@/http:\/\//'\`" |
| require 'fileutils' | |
| # An OS X System Service for quickly filing image files to a Jekyll blog folder, | |
| # putting Markdown links to the files on the clipboard. | |
| # Copyright Brett Terpstra 2013 | |
| # Config | |
| # ====== | |
| # Where to store the images | |
| base_path = '~/Sites/dev/octopress/source/uploads/' |