Feel free to contact me at [email protected] or tweet at me @statisticsftw
This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!
It assumes some knowledge of AWS.
// Complements: Planet PDF (http://www.planetpdf.com/) | |
// Source: https://forums.adobe.com/thread/286654?start=40&tstart=0 | |
// Modified by | |
// - Christian Sass for Acrobat XI compatibility | |
// - Bernd Alheit for newer Acrobat compatibility | |
// - amoshydra for comsolidating solution | |
// Add a menu item to reverse all pages in the active document | |
app.addToolButton({ cName: "Reverse", cLabel: "Reverse", cExec: "PPReversePages();", cEnable: "event.rc = (event.target != null);"}); | |
app.addToolButton({ cName: "Collate", cLabel: "Collate", cExec: "trustedCollatePages();", cEnable: "event.rc = (event.target != null);"}); |
const fs = require('fs'); | |
const path = require('path'); | |
const file = path.resolve('./node_modules/babel-preset-react-app/create.js'); | |
var text = fs.readFileSync(file, 'utf8'); | |
if (!text.includes('babel-plugin-relay')) { | |
if (text.includes("require('babel-plugin-macros'),")) { | |
text = text.replace( | |
"require('babel-plugin-macros'),", |
import zxcvbn from 'zxcvbn' | |
import axios from 'axios' | |
import crypto from 'crypto' | |
// Input is first validated via native Fastify JSON-schema declaration | |
export async function passwordStrengthChecker(req, reply) { | |
const { password } = req.body | |
let message, pwned, ok | |
let { score } = zxcvbn(password) | |
try { |
// POLYFILLS | |
// Event.composedPath | |
// Possibly normalize to add window to Safari's chain, as it does not? | |
(function(E, d, w) { | |
if(!E.composedPath) { | |
E.composedPath = function() { | |
if (this.path) { | |
return this.path; | |
} | |
var target = this.target; |
Feel free to contact me at [email protected] or tweet at me @statisticsftw
This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!
It assumes some knowledge of AWS.
version: '3' | |
services: | |
api: | |
image: alterway/php:5.4-apache | |
environment: | |
PHP_php5enmod: 'mysqli' | |
HTTPD_a2enmod: 'rewrite headers' | |
volumes: | |
# ./api contains my PHP application | |
- "./api:/var/www/html" |
In this doc, we'll explore two popular libraries: axios
and isomorphic-fetch
.
Quick facts:
In this challenge you will create a tags
and notes_tags
table which will setup a many-to-many relationship between notes and tags. You'll also create a new router to perform CRUD operations on the tags, and update the existing notes endpoints to work with tag related data.
To get started, let's update the .sql
script from the previous challenges. Create a tags
table and define 2 fields in the schema.