Skip to content

Instantly share code, notes, and snippets.

View chopfitzroy's full-sized avatar
👽
What are we if not plural?

Otis Sutton chopfitzroy

👽
What are we if not plural?
View GitHub Profile
@chopfitzroy
chopfitzroy / frp.md
Created November 11, 2016 23:55 — forked from ohanhi/frp.md
Learning FP the hard way: Experiences on the Elm language

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Editorial note

@chopfitzroy
chopfitzroy / index.js
Created March 5, 2017 08:22 — forked from facholi/index.js
Node.js script to runs on AWS Lambda. Converts the PDF pages to JPG images
var async = require("async");
var AWS = require("aws-sdk");
var gm = require("gm").subClass({imageMagick: true});
var fs = require("fs");
var mktemp = require("mktemp");
var PAGE_WIDTH = 1300,
PAGE_HEIGHT = 1300;
var utils = {
@chopfitzroy
chopfitzroy / AdobeSerialChanger.py
Created May 20, 2018 04:54 — forked from SickLadisHere/AdobeSerialChanger.py
Adobe CC Automatic Serial Changer for Unlimited Free Trial
#!/usr/bin/python
import os
from random import *
import fileinput
directory = "C:/Program Files/Adobe/" # path to adobe folder
directorylen = len(directory)
appXmlDirs = []
@chopfitzroy
chopfitzroy / package.json
Created August 11, 2018 06:19 — forked from mburakerman/package.json
Webpack 4 config.js (SCSS to CSS and Babel) 👌 The Simplest Usage 👌
{
"name": "webpack-sass",
"version": "1.0.0",
"scripts": {
"start": "webpack-dev-server --open --mode development",
"build": "webpack -p"
},
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.4",
@chopfitzroy
chopfitzroy / service-workers.md
Created March 15, 2019 01:02 — forked from Rich-Harris/service-workers.md
Stuff I wish I'd known sooner about service workers

Stuff I wish I'd known sooner about service workers

I recently had several days of extremely frustrating experiences with service workers. Here are a few things I've since learned which would have made my life much easier but which isn't particularly obvious from most of the blog posts and videos I've seen.

I'll add to this list over time – suggested additions welcome in the comments or via twitter.com/rich_harris.

Use Canary for development instead of Chrome stable

Chrome 51 has some pretty wild behaviour related to console.log in service workers. Canary doesn't, and it has a load of really good service worker related stuff in devtools.

version: "3.6"
services:
# Traefik Reverse Proxy Engine
traefik:
hostname: traefik
image: traefik:latest
container_name: traefik
restart: always
domainname: ${DOMAINNAME}
<style>
/* BASE RULES */
html, body {
width: 100%;
height: 100%;
background-color: #ccccff;
}
div {
@chopfitzroy
chopfitzroy / export-toby.js
Created April 11, 2020 22:49 — forked from krishpop/export-toby.js
Export Toby
// code courtesy of Toby team
chrome.storage.local.get("state", o => (
((f, t) => {
let e = document.createElement("a");
e.setAttribute("href", `data:text/plain;charset=utf-8,${encodeURIComponent(t)}`);
e.setAttribute("download", f);
e.click();
})(`TobyBackup${Date.now()}.json`, o.state)
));

FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@chopfitzroy
chopfitzroy / procedure-to-archive-git-branches.md
Created September 20, 2022 09:24 — forked from zkiraly/procedure-to-archive-git-branches.md
Procedure to archive git branches.