This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from "react"; | |
import { | |
Formik, | |
Form, | |
Field, | |
validateYupSchema, | |
yupToFormErrors, | |
} from "formik"; | |
const genSignupSchema = (Yup) => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const puppeteer = require("puppeteer"); | |
const readline = require("readline"); | |
readline.emitKeypressEvents(process.stdin); | |
process.stdin.setRawMode(true); | |
const pageSet = new Set(); | |
const sleep = (timeout) => | |
new Promise((resolve) => setTimeout(resolve, timeout)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add Webpack Analyzer to gatsby | |
Get insights in your bundle by getting webpack stats into a file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.disableCorePrefetching = () => true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disable executionpolicy | |
Set-ExecutionPolicy RemoteSigned -scope CurrentUser | |
# install scoop | |
iwr -useb get.scoop.sh | iex | |
# setup applications | |
scoop bucket add github-gh https://github.com/cli/scoop-gh.git | |
scoop bucket add extras |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const inProcessStates = { | |
states: { | |
PROCESSING_DATA: { | |
// I still need to figure out how to do activities correctly, ordering isn't correct as I can't pass this activity | |
// to it's children | |
activities: [{ | |
type: 'activity', | |
message: 'Reprocessing static & page queries' | |
}], | |
invoke: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require(`path`) | |
const { | |
appendFileSync, | |
readFileSync, | |
renameSync, | |
existsSync, | |
unlinkSync, | |
} = require(`fs`) | |
const { ensureDirSync } = require(`fs-extra`) | |
const Configstore = require(`configstore`) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!process.env.NODE_ENV) { | |
process.env.NODE_ENV = 'production'; | |
} | |
const path = require('path'); | |
const webpack = require('webpack'); | |
const merge = require('webpack-merge').smart; | |
const babelCachePreset = require('@mediahuis/webpack-configs/lib/loaders/babel'); | |
const sassWithPostcssPreset = require('@mediahuis/webpack-configs/lib/loaders/sass/postcssPreset'); | |
const extractText = require('@mediahuis/webpack-configs/lib/plugins/extractText'); |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"traceEvents":[{"pid":78918,"tid":775,"ts":263728508911,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"../../third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc","src_func":"PushOntoImmediateIncomingQueueLocked"},"dur":86,"tdur":69,"tts":156767}, | |
{"pid":78918,"tid":775,"ts":263728508948,"ph":"X","cat":"toplevel","name":"TaskQueueManager::ProcessTaskFromWorkQueue","args":{"src_file":"../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":22,"tdur":18,"tts":156790}, | |
{"pid":78918,"tid":775,"ts":263728508971,"ph":"X","cat":"toplevel","name":"TaskQueueManager::ProcessTaskFromWorkQueue","args":{"src_file":"../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":11,"tdur":9,"tts":156812}, | |
{"pid":78918,"tid":775,"ts":263728508983,"ph":"X","cat":"toplevel","name":"TaskQueueManager::ProcessTaskFromWorkQueue","args":{"src_file":"../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":9,"tdur":6,"tts":156825}, | |
{"pid":78918,"tid":775,"ts": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* A simple helper that converts img tags to it's thumbnails so we don't load to big images. It also does it the way around. | |
* | |
* TODO Check if we can reduce number of regexes used. | |
* @author Ward Peeters <[email protected]> | |
*/ | |
class ContentOptimiser | |
{ |
NewerOlder