Using Imagemagick:
cd
into the directory with lots of images
mogrify -strip ./*.jpg
// update height, sending an extra 20 pixels to be safe | |
const mainElementHeight = (document.getElementsByTagName('body')[0].offsetHeight + 20).toString(); | |
pymChild.sendMessage('height', mainElementHeight); | |
//// may need to add this: | |
// instantiate pym object | |
window.pymChild = new Child(); | |
// or, for cnn rig, inside your draw function: | |
pymChild.sendMessage('height', initialHeight); |
// installation: | |
// npm install dayjs dayjs-plugin-utc --save | |
// note: if not already a module, in package.json add "type":"module", | |
import dayjs from 'dayjs'; | |
import updateLocale from 'dayjs/plugin/updateLocale.js'; | |
import utc from 'dayjs/plugin/utc.js'; | |
import timezone from 'dayjs/plugin/timezone.js'; | |
// set up the as-of date |
{ | |
"env": { | |
"browser": false, | |
"node": true, | |
"es6": true, | |
"mocha": false | |
}, | |
"parserOptions": { | |
"sourceType": "module", | |
"ecmaVersion": 8, |
export EDITOR=pico | |
# JK Abbreviated prompt | |
PROMPT='%1~ ∴ ' | |
## Direct pipenv to build dependencies right in the project | |
## folder under .venv | |
export PIPENV_VENV_IN_PROJECT=1 |
{ | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true | |
}, | |
"plugins": ["react"], | |
"ecmaFeatures": { |
Using Imagemagick:
cd
into the directory with lots of images
mogrify -strip ./*.jpg
<html lang="en"> | |
<head> | |
<title>Newmark Bark</title> | |
<meta name="description" content="latest news"> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- import the webpage's stylesheet --> |
// 1. This uses claudiajs & its API Gateway to deploy to lambda & handle api post | |
// 2. Assumes an existing dialogflow project, google cloud project, and google cloud billing | |
// 3. Got credentials .json file using steps 1-5 (ONLY) here: | |
// https://cloud.google.com/docs/authentication/getting-started | |
// 4. Put that json file in a directory called "sekrets' which I added to .gitignore | |
// 5. Other helpful options for Google authentication are here: |
#include <Adafruit_NeoPixel.h> | |
#define PIN1 6 | |
#define PIN2 3 | |
#define NUM_LEDS 60 | |
#define BRIGHTNESS 250 | |
int blue_every = 12; // make every Xth pixel blue |
import pandas as pd | |
import pymysql | |
host="very.long.endpoint.definition.amazonaws.com" | |
port=3306 | |
dbname="your_database_name" | |
user="your_user_name" | |
password="your_password" | |
conn = pymysql.connect(host, user=user,port=port, |