Define a webpack plugin that pulls version information from package.json.
This file contains hidden or 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
| <script> | |
| import SvelteMarkdown from 'svelte-markdown' | |
| import Link from "../components/markdown/Link.svelte"; | |
| export let data; | |
| const { title } = data; | |
| </script> | |
| <SvelteMarkdown |
This file contains hidden or 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 log --no-merges --since='01-01-2019' --pretty=format:%h,%ad,%an,%ae,%s > history.csv |
This file contains hidden or 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/bash | |
| # Stop all containers | |
| docker stop $(docker ps -a -q) | |
| # Delete all containers | |
| docker rm $(docker ps -a -q) | |
| # Delete all images | |
| docker rmi $(docker images -q) |
This file contains hidden or 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
| # | |
| # Aliases | |
| # (sorted alphabetically) | |
| # | |
| alias g='git' | |
| alias ga='git add' | |
| alias gaa='git add --all' | |
| alias gapa='git add --patch' |
This file contains hidden or 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
| # SYNTAX: | |
| var pattern = new RegExp(pattern, attributes); # attributes: g (global); i (case-sensitive); m (multiline matches) | |
| var pattern = /pattern/attributes; # same as above | |
| # BRACKETS: | |
| [...]: Any one character between the brackets. | |
| [^...]: Any one character not between the brackets. |
This file contains hidden or 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
| /** | |
| # bash | |
| # Mac-specific | |
| cd /Applications | |
| ./BrowserStackLocal --key [your browserstack key] --local-identifier PatternLab | |
| */ | |
| var webdriver = require('selenium-webdriver'), | |
| By = webdriver.By; |
This file contains hidden or 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
| /** | |
| * Play or pause video based on visibility in window viewport. | |
| * | |
| * @param {any} video The video element. | |
| * | |
| * @memberof TabbedVideo | |
| */ | |
| toggleVideoPlayback(video) { | |
| var windowHeight = window.innerHeight, |
This file contains hidden or 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
| #InstallKeybdHook | |
| ; Language: English | |
| ; https://gist.github.com/chrisfcarroll/dddf32fea1f29e75f564 | |
| ; | |
| ; Uses unicode. Save this file as utf-8 with BOM. | |
| ; Else it shall not work. | |
| ; | |
| #NoEnv ; Recommended | |
| ;SendMode Input ; Recommended |
This file contains hidden or 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 Time | |
| # Add this to your .oh-my-zsh theme if you're using those, or directly to your zsh theme :) | |
| # Colors vary depending on time lapsed. | |
| ZSH_THEME_GIT_TIME_SINCE_COMMIT_SHORT="%{$fg[green]%}" | |
| ZSH_THEME_GIT_TIME_SHORT_COMMIT_MEDIUM="%{$fg[yellow]%}" | |
| ZSH_THEME_GIT_TIME_SINCE_COMMIT_LONG="%{$fg[red]%}" | |
| ZSH_THEME_GIT_TIME_SINCE_COMMIT_NEUTRAL="%{$fg[cyan]%}" |