Skip to content

Instantly share code, notes, and snippets.

@bmartel
bmartel / glitch_vimify.js
Last active November 2, 2019 12:01 — forked from jonchurch/glitch_vimify.js
Vim Bindings for Glitch.com editor
// Load your Glitch project, paste this into the javascript console of chrome inspect
// Enjoy vim goodness!
(function () {
var makeCursorFat = function() {
var style = document.createElement('style');
style.textContent =
'div.CodeMirror div.CodeMirror-cursor { ' +
'width: auto; ' +
'border: 0; ' +
@bmartel
bmartel / spacemacs-cheshe.md
Created June 5, 2018 01:23 — forked from robphoenix/spacemacs-cheshe.md
Spacemacs Cheat Sheet

Useful Spacemacs commands

  • SPC q q - quit
  • SPC w / - split window vertically
  • SPC w - - split window horizontally
  • SPC 1 - switch to window 1
  • SPC 2 - switch to window 2
  • SPC w c - delete current window
  • SPC TAB - switch to previous buffer
  • SPC b b - switch buffers
@bmartel
bmartel / prepare-commit-msg.sh
Last active March 29, 2018 15:44 — forked from bartoszmajsak/prepare-commit-msg.sh
How to automatically prepend git commit with an issue id extracted from a branch name
#!/bin/bash
# Skip prepending certain branches
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop test)
fi
# Extract issue id from branch name
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_NAME=$(echo "${BRANCH_NAME##*/}" | sed 's/\([a-zA-Z]\{3,\}-[0-9]\{3,\}\).*/\1/')