- The benchmark was run on a MacBook (Retina, 12-inch, 2015, 1.1 GHz Intel Core M, 8 GB RAM, macOS Sierra 10.12.6, Chrome 66.0.3359.181 (64-bit))
- Ran
npm run selenium -- --count 10 --framework vanillajs-keyed --framework preact-v8.2.7-keyed --framework preact-componentDidCatch-keyed
in thewebdriver-ts
of this js-framework-benchmarks fork against this commit of the componentDidCatch-support preact branch.
This file contains 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
doc = Document.getCurrentDocument() | |
for i in range(0, doc.getSegmentCount()): | |
segment = doc.getSegment(i) | |
for j in range(0, segment.getSectionCount()): | |
section = segment.getSection(j) | |
if section.getName() == ".plt.sec": | |
address = section.getStartingAddress() | |
length = section.getLength() | |
off = 0 |
This file contains 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/bash | |
while :; do | |
for c in 🌕 🌖 🌗 🌘 🌑 🌑 🌑 🌒 🌓 🌔 🌕 🌕; do | |
echo -en "\r" "$c" | |
sleep 0.1 | |
done | |
done |
This file contains 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/bash | |
mkdir -p ~/.kube/ | |
if [ -z "$1" ]; then | |
CURRENT=$(readlink ~/.kube/config | cut -d - -f 2-) | |
ls ~/Dropbox/kube* | cut -d - -f 2- | sed "s/$CURRENT\$/$CURRENT (current)/" | |
else | |
[[ -L ~/.kube/config ]] && rm ~/.kube/config | |
ln -s "$HOME/Dropbox/kubeconfig-$1" ~/.kube/config | |
rm -rf ~/.kube/cache ~/.kube/http-cache | |
fi |
This file contains 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
doc = Document.getCurrentDocument() | |
path = Document.askFile("Symbols file", None, False) | |
if path != None: | |
with open(path) as fp: | |
for i, line in enumerate(fp): | |
parts = line.split(" ") | |
if len(parts) > 2: | |
address = long(parts[0], 16) | |
name = parts[2] |
This file contains 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
export function coalesce$option$(option) { | |
return option !== null ? option : false; | |
} |
This file contains 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/bash | |
if [ -z "$1" ]; then | |
echo "usage: $0 <ssh-options>" | |
exit 1 | |
fi | |
restore_network() { | |
IFS=$'\n' | |
for network in `networksetup -listallnetworkservices | grep -v '*'`; do |
This file contains 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
// ==UserScript== | |
// @name No JIRA banner or Hover Indentation | |
// @namespace http://rpetri.ch/ | |
// @version 0.1 | |
// @description Remove JIRA announcement banners; Remove comment relayout on hover | |
// @author Ryan Petrich | |
// @match https://*.atlassian.net/* | |
// @grant none | |
// ==/UserScript== |
This file contains 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
.PHONY: clean all | |
CPPFLAGS = -std=c++14 | |
LINK.o = $(LINK.cc) | |
all: rotation | |
clean: | |
rm *.o rotation |
This file contains 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/bash | |
if [ -z "$GIT_AUTHOR_EMAIL" ]; then | |
GIT_AUTHOR_EMAIL=`git config --get user.email` | |
fi | |
if [[ `uname` != Darwin ]]; then | |
IDENTITY=`readlink -f ~/.ssh/$GIT_AUTHOR_EMAIL` | |
elif which -s greadlink; then | |
IDENTITY=`greadlink -f ~/.ssh/$GIT_AUTHOR_EMAIL` | |
else | |
# No modern readlink with -f support, symlinks must be absolute paths :'( |
NewerOlder