Skip to content

Instantly share code, notes, and snippets.

View DimitarNestorov's full-sized avatar
📞
🔙

Dimitar Nestorov DimitarNestorov

📞
🔙
View GitHub Profile
@DimitarNestorov
DimitarNestorov / TravisGitHub.md
Last active May 12, 2022 15:57 — forked from qoomon/TravisGitHub.md
Setup GitHub Deploy Keys For Travis

Setup Travis Deploy (macOS)

see Travis documentation

gem install travis

ssh-keygen -t rsa -b 4096 -f 'github_deploy_key' -N ''

cat github_deploy_key.pub | pbcopy

Paste deploy key in https://github.com/<USER>/<REPOSITORY>/settings/keys

@DimitarNestorov
DimitarNestorov / TokenList.js
Created December 26, 2017 00:54
Simplified custom DOMTokenList implementation.
const forEach = Array.prototype.forEach;
module.exports = class TokenList {
constructor(){
this.tokens = {};
this.add.apply(this, arguments);
}
add(){
const { tokens } = this;