Skip to content

Instantly share code, notes, and snippets.

View Norfeldt's full-sized avatar

Lasse Nørfeldt Norfeldt

View GitHub Profile
@nook-ru
nook-ru / git-cleanup
Last active March 11, 2021 12:05 — forked from larowlan/git-cleanup
Clean up old git branches
#!/bin/bash
# This has to be run from master
git checkout master
# Update our list of remotes
git fetch
git remote prune origin
# Remove local fully merged branches
git branch --merged master | grep -v 'master$' | grep -v 'dev$' | xargs git branch -d
@revolunet
revolunet / python-es6-comparison.md
Last active April 22, 2024 19:22
# Python VS JavaScript ES6 syntax comparison

Python VS ES6 syntax comparison

Python syntax here : 2.7 - online REPL

Javascript ES6 via Babel transpilation - online REPL

Imports

import math