This file contains 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
# As of git version 2.13, git supports conditional configuration includes. | |
# In this example we clone Company A's repos in ~/company_a directory, and Company B's repos in ~/company_b. | |
[user] | |
name = John Smith | |
email = john.smith@example.com | |
# If the pattern ends with /, ** will be automatically added. | |
# For example, the pattern foo/ becomes foo/**. In other words, it matches "foo" and everything inside, recursively. | |
[includeIf "gitdir:~/company_a/"] |
This file contains 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 randomBetween(min, max) { | |
return Math.floor(Math.random() * (max - min + 1) + min); | |
} |
This file contains 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
const { compose, map, partial } = require('ramda'); | |
const resolveAll = Promise.all.bind(Promise); | |
const mapAsync = compose(resolveAll, map); | |
// const mapAsync = fn => | |
// compose( | |
// resolveAll, | |
// map(fn) | |
// ); |
This file contains 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
import { authService } from "../services"; | |
import { fetchJSON } from "./fetch-json"; | |
const BASE_URL = 'https://example.com'; | |
function call(path, options = {}) { | |
const url = `${BASE_URL}/${path}`; | |
const token = authService.getToken(); | |
if (token) { |