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/sh | |
_git_rebase_on_current_branch() | |
{ | |
# https://gist.github.com/joechrysler/6073741 | |
branch=`git rev-parse --abbrev-ref HEAD` | |
parent_branch=`git show-branch -a 2>/dev/null | grep '\*' | grep -v "$branch" | head -n1 | sed 's/.*\[\(.*\)\].*/\1/' | sed 's/[\^~].*//'` | |
latest_parent_commit=`git merge-base $parent_branch HEAD` | |
echo Run rebase interactive editor for commits after $latest_parent_commit | |
git rebase -i $latest_parent_commit |
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
git commit --allow-empty -m "I'm empty" -n |
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
<!-- pages/_lang/about.vue --> | |
<template> | |
<div class="Content"> | |
<div class="container"> | |
<h1 class="Content__Title">{{ $t('about.title') }}</h1> | |
<p>{{ $t('about.introduction') }}</p> | |
</div> | |
</div> | |
</template> |
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
<!-- pages/about.vue --> | |
<template> | |
<div class="Content"> | |
<div class="container"> | |
<h1 class="Content__Title">{{ $t('about.title') }}</h1> | |
<p>{{ $t('about.introduction') }}</p> | |
</div> | |
</div> | |
</template> |
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
tell application "System Events" | |
tell application "System Preferences" | |
activate | |
set current pane to pane "com.apple.preference.sound" | |
end tell | |
tell application process "System Preferences" | |
repeat until (exists window "Sound" of application "System Preferences") | |
delay 1 | |
end repeat | |
tell tab group 1 of window "Sound" |
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
cat > cmds << EOF | |
ls Applications | |
ls Desktop | |
ls Music | |
EOF | |
cat cmds | xargs -L1 -I BUILD -P3 bash -c BUILD | |
# -P[thread-num] |
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
module.exports = { | |
processors: [ | |
["@mapbox/stylelint-processor-arbitrary-tags", { fileFilterRegex: [/\.vue$/] }] | |
], | |
extends: [ | |
"stylelint-config-standard", | |
"stylelint-config-recess-order" | |
], | |
rules: { | |
"no-empty-source": null |
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
#include "sweet16.h" | |
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |
LAYOUT_ortho_4x4( | |
KC_PGUP, KC_PGDN, KC_N, LSFT(KC_N), | |
LALT(LGUI(KC_L)), LALT(LGUI(KC_T)), LALT(LGUI(KC_R)), LALT(LGUI(KC_J)), | |
LALT(KC_LT), LALT(KC_GT), LALT(KC_COMMA), LALT(KC_DOT), | |
LGUI(KC_B), LGUI(KC_I), LGUI(KC_U), KC_NO | |
) | |
}; |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "es5", | |
"lib": ["dom", "es2015"], | |
"module": "es2015", | |
"moduleResolution": "node", | |
"experimentalDecorators": true, | |
"noImplicitAny": false, | |
"noImplicitThis": false, | |
"strictNullChecks": true, |
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 default function () { | |
// Nuxt resolves .ts extension | |
this.nuxt.options.extensions.push('ts') | |
// Extend webpack build | |
this.extendBuild(config => { | |
// Add ts-loader to import .ts | |
config.module.rules.push({ | |
test: /\.ts$/, | |
loader: 'ts-loader', |