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
| # shortform git commands | |
| alias g='git' | |
| # pretty tab'd git log | |
| git log --graph --pretty="tformat:%h*(%ar)*<%an>*%d %s" $* | sed -Ee 's/(^[^<]*) ago\)/\1)/' | sed -Ee 's/(^[^<]*), [[:digit:]]+ .*months?\)/\1)/' | column -s '*' -t | cat | |
| # change author of all git repos | |
| git filter-branch -f --env-filter "GIT_AUTHOR_NAME='yourname'; GIT_AUTHOR_EMAIL='youremail@example.com'; GIT_COMMITTER_NAME='yourname'; GIT_COMMITTER_EMAIL='youremail@example.com';" HEAD; | |
| # stage only deleted files |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| namespace EntityExtensions { | |
| public class FakeDbSet<T> : System.Data.Entity.IDbSet<T> where T : class { | |
| private readonly List<T> list = new List<T>(); | |
| public FakeDbSet() { |
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
| /** | |
| * @author ebidel@ (Eric Bidelman) | |
| * License Apache-2.0 | |
| * | |
| * Shows how to use Puppeeteer's code coverage API to measure CSS/JS coverage across | |
| * different points of time during loading. Great for determining if a lazy loading strategy | |
| * is paying off or working correctly. | |
| * | |
| * Install: | |
| * npm i puppeteer chalk cli-table |