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
| function fetchJSON(url, options, callback) { | |
| if (typeof options === 'function') { | |
| callback = options | |
| options = {} | |
| } | |
| options = options || {} | |
| const headers = (options.headers || (options.headers = {})) | |
| headers.Accept = 'application/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
| sudo: required | |
| language: ruby | |
| services: | |
| - docker | |
| before_install: | |
| - echo "Testing Docker Hub credentials" | |
| - docker login -e=$DOCKER_EMAIL -u=$DOCKER_USERNAME -p=$DOCKER_PASSWORD |
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 | |
| function search-branches() { | |
| for sha1 in `git log --oneline --all --grep "$1" | cut -d" " -f1` | |
| do | |
| git branch -r --contains $sha1 | |
| done | |
| } | |
| function search-tags() { | |
| for sha1 in `git log --oneline --all --grep "$1" | cut -d" " -f1` | |
| do |