Skip to content

Instantly share code, notes, and snippets.

View TomYeoman's full-sized avatar

Tom Yeoman TomYeoman

  • Justeat Takeaway
  • England
View GitHub Profile
@RadValentin
RadValentin / yarn.unlock.md
Last active July 27, 2024 06:38
Solve `yarn.lock` or `package.json` conflicts without losing your mind

NOTE: This guide is ONLY for devs who don't want to edit their yarn.lock file by hand. If you don't care about that please carry on.


So you've pulled the latest master

git checkout master
git pull
@domfarolino
domfarolino / EventFlow.md
Last active July 11, 2024 12:53
JavaScript Event Flow - A better understanding

This gist is deprecated and now exists here

This article is intended to further your knowledge of the various phases a DOM event goes through.

Great resources to refer to:

TL;DR

anonymous
anonymous / index.html
Created June 14, 2016 14:20
Simple TODO (Reducer + TES) // source http://jsbin.com/wefafeloba
<!DOCTYPE html>
<html>
<head>
<title>Simple TODO (Reducer + TES)</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.5.2/redux.js"></script>
<script src="https://fb.me/react-15.1.0.js"></script>
<script src="https://fb.me/react-dom-15.1.0.js"></script>
<script src="http://wzrd.in/standalone/expect@latest"></script>
<script src="http://wzrd.in/standalone/deep-freeze@latest"></script>
<meta charset="utf-8">
anonymous
anonymous / index.html
Created June 14, 2016 11:29
Simple TODO (Reducer + Tests) // source http://jsbin.com/sixuzoy
<!DOCTYPE html>
<html>
<head>
<title>Simple TODO (Reducer + Tests)</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.5.2/redux.js"></script>
<script src="https://fb.me/react-15.1.0.js"></script>
<script src="https://fb.me/react-dom-15.1.0.js"></script>
<script src="http://wzrd.in/standalone/expect@latest"></script>
<script src="http://wzrd.in/standalone/deep-freeze@latest"></script>
<meta charset="utf-8">
anonymous
anonymous / index.html
Created June 14, 2016 10:29
Simple TODO (Reducer + Tests) // source http://jsbin.com/sixuzoy
<!DOCTYPE html>
<html>
<head>
<title>Simple TODO (Reducer + Tests)</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.5.2/redux.js"></script>
<script src="https://fb.me/react-15.1.0.js"></script>
<script src="https://fb.me/react-dom-15.1.0.js"></script>
<script src="http://wzrd.in/standalone/expect@latest"></script>
<script src="http://wzrd.in/standalone/deep-freeze@latest"></script>
<meta charset="utf-8">
anonymous
anonymous / index.html
Created June 13, 2016 15:41
Avoiding mutations // source http://jsbin.com/fagede
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Avoiding object mutations</title>
<script src="http://wzrd.in/standalone/expect@latest"></script>
<script src="http://wzrd.in/standalone/deep-freeze@latest"></script>
</head>
<body>
anonymous
anonymous / index.html
Created June 13, 2016 15:22
Avoiding mutations // source http://jsbin.com/fagede
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Avoiding mutations</title>
<script src="http://wzrd.in/standalone/expect@latest"></script>
<script src="http://wzrd.in/standalone/deep-freeze@latest"></script>
</head>
<body>
@ctolsen
ctolsen / curl_to_ab.py
Last active July 29, 2024 14:19
"Copy to cURL" in Chrome to Apache Bench command
#!/usr/bin/env python3
import sys
import os
def curl_to_ab(curl_cmd: list, num: int=200, cur: int=4) -> str:
"""
Translate a cURL command created by Chrome's developer tools into a
command for ``ab``, the ApacheBench HTTP benchmarking tool.