See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| @echo off | |
| rem ===================================================== | |
| rem Converts a MP3 file to a M4R file using ffmpeg. | |
| rem Usage: Drop a MP3 file at the top of this batch file. | |
| rem ===================================================== | |
| set ffmpeg_exe="C:\ffmpeg\ffmpeg-20150619-git-bb3703a-win64-static\bin\ffmpeg.exe" | |
| rem %~f1 = Full File Path, with drive letter | |
| rem %~p1 = Drive Letter | |
| rem %~p1 = Path Only |
| # npm using https for git | |
| git config --global url."https://github.com/".insteadOf [email protected]: | |
| git config --global url."https://".insteadOf git:// | |
| # npm using git for https | |
| git config --global url."[email protected]:".insteadOf https://github.com/ | |
| git config --global url."git://".insteadOf https:// |
| import React from 'react'; | |
| import { shallow } from 'enzyme'; | |
| import MyComponent from '../src/my-component'; | |
| const wrapper = shallow(<MyComponent/>); | |
| describe('(Component) MyComponent', () => { | |
| it('renders without exploding', () => { | |
| expect(wrapper).to.have.length(1); | |
| }); |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| function replaceHome($pathArray) { | |
| # Check whether the first three paths are equal to HOME | |
| # If it is, it substitutes it for ~ | |
| # Change this accordingly, if your home path is more than three | |
| # paths long. | |
| $splitChar = [System.IO.Path]::DirectorySeparatorChar | |
| if ( ($pathArray.Length -gt 2) -and | |
| (($pathArray[0..2] -join $splitChar) -eq $HOME)) { | |
| @("~") + $pathArray[3..$pathArray.Length] | |
| } |
| # Assuming using fish shell | |
| find ./ -iname '*.flac' | xargs -I '{}' basename '{}' '.flac' | xargs -I '{}' ffmpeg -i '{}'.flac -c:a aac -b:a 320k '{}'.m4a |