Skip to content

Instantly share code, notes, and snippets.

View listenrightmeow's full-sized avatar
🦍

Mike Dyer listenrightmeow

🦍
View GitHub Profile
import { expect } from 'chai';
import { bool } from 'aws-sdk/clients/signer';
describe('codewars', () => {
it('set unique', () => {
const arrayDiff = (l, r) => Array.from(new Set(l.concat(r)));
const t = arrayDiff([1, 2], [2]);
expect(t).to.have.lengthOf(2);
@listenrightmeow
listenrightmeow / .gitconfig
Created July 19, 2023 23:17
Push history-less/empty branch to origin
[alias]
empty = "!sh -c 'git switch --orphan $0 && git commit --allow-empty -m \"empty commit\" && git rebase --onto master $0 && git push -u origin $0'"