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
| license: mit |
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
| license: mit |
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
| # display the oldest 25 branches based on most recent commit date that start with `art` | |
| git for-each-ref --sort=committerdate --format="%(refname:short)%09'%(committerdate)'" --count=25 refs/heads/art | |
| # delete the oldest 25 branches based on most recent commit date that start with `art` | |
| git for-each-ref --sort=committerdate --format="%(refname:short)%09'%(committerdate)'" --count=25 refs/heads/art | cut -f 1 | xargs git branch -D |
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
| [ | |
| { | |
| "_id": "5d1773ebce1769292c25993c", | |
| "time": "Wed Aug 09 1972 12:05:26 GMT+0000 (UTC)", | |
| "index": 0, | |
| "guid": "ba791989-fcf0-45b1-8129-4e655f1d4f10", | |
| "temp": "76.56", | |
| "humidity": "56.63", | |
| "airq": "0.5137" | |
| }, |
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
| type DBJSONMap map[string]interface{} | |
| // scanning a null column value is problematic how do we know that it was null? | |
| // for structs, this is easy, we can just slap an IsNull field on it and set it | |
| // in the Scanner, but for map[string]interface{} ... | |
| func NewDBJSONMap() DBJSONMap { | |
| return make(map[string]interface{}) | |
| } | |
| func (d DBJSONMap) IsNull() bool { |
OlderNewer