This is a proposal for a lightning talk at Reactive Conf. Please 🌟 this gist to push the proposal! If you're on your phone, please request the 🖥 desktop site to star this gist 😇 #ReactiveConf
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 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 { |
Moved to Shopify/graphql-design-tutorial
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
### Phrase: | |
hi guys, | |
hey guys, | |
hello guys, | |
you guys, | |
guys | |
### Respose: | |
Did you mean team? | |
Did you mean all? |
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
<div> | |
<iframe appIframeTracker (iframeClick)="onIframeClick()" src="http://www.google.com"></iframe> | |
</div> |
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 functions = require('firebase-functions'); | |
var admin = require("firebase-admin"); | |
const cookieParser = require('cookie-parser'); | |
const crypto = require('crypto'); | |
var serviceAccount = require("./service-account.json"); | |
const APP_NAME = "twitch-playground"; | |
admin.initializeApp({ | |
credential: admin.credential.cert(serviceAccount), |
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
#!/bin/sh | |
# Create and activate swap | |
dd if=/dev/zero of=/swapfile bs=256M count=4 | |
chmod 600 /swapfile | |
mkswap /swapfile | |
swapon /swapfile | |
# Activate swapfile on boot | |
echo "" >> /etc/fstab | |
echo "/swapfile none swap sw 0 0" >> /etc/fstab |
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
importScripts('/node_modules/mocha/mocha.js'); | |
mocha.setup({ | |
ui: 'bdd', | |
reporter: null, | |
}); | |
describe('First SW Test Suite', function() { | |
it('should test something', function() { | |
... |
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
# Stop all containers | |
docker stop `docker ps -qa` | |
# Remove all containers | |
docker rm `docker ps -qa` | |
# Remove all images | |
docker rmi -f `docker images -qa ` | |
# Remove all volumes |