Keywords: Java, JDK (Java Development Kit), MacOS, Homebrew, Specific Version
This how-to guide covers how to install different versions of the JDK on MacOS with Homebrew.
import axios from "axios"; | |
import { settings } from "../settings"; | |
import { authAPI } from "."; | |
const request = axios.create({ | |
baseURL: settings.apiV1, | |
}); | |
request.interceptors.request.use( | |
(config) => { |
import * as React from 'react'; | |
import { theme } from './theme'; | |
import { ThemeProvider, createGlobalStyle } from './styled-components'; | |
const GlobalStyle = createGlobalStyle` | |
body { | |
font-family: Times New Roman; | |
} | |
`; |
'use strict'; | |
const pointsToFile = uri => /\/[^/]+\.[^/]+$/.test(uri); | |
exports.handler = (event, context, callback) => { | |
// Extract the request from the CloudFront event that is sent to Lambda@Edge | |
var request = event.Records[0].cf.request; | |
// Extract the URI from the request |
let isRefreshing = false; | |
let refreshSubscribers = []; | |
const instance = axios.create({ | |
baseURL: Config.API_URL, | |
}); | |
instance.interceptors.response.use(response => { | |
return response; | |
}, error => { |
Keywords: Java, JDK (Java Development Kit), MacOS, Homebrew, Specific Version
This how-to guide covers how to install different versions of the JDK on MacOS with Homebrew.
/** | |
* Element.prototype.classList for IE8/9, Safari. | |
* @author Kerem Güneş <[email protected]> | |
* @copyright Released under the MIT License <https://opensource.org/licenses/MIT> | |
* @version 1.2 | |
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/classList | |
*/ | |
;(function() { | |
// Helpers. | |
var trim = function(s) { |
var Middleware = function() {}; | |
Middleware.prototype.use = function(fn) { | |
var self = this; | |
this.go = (function(stack) { | |
return function(next) { | |
stack.call(self, function() { | |
fn.call(self, next.bind(self)); | |
}); |
'use strict'; | |
/* eslint-disable consistent-this */ | |
let middlewareManagerHash = []; | |
/** | |
* Composes single-argument functions from right to left. The rightmost | |
* function can take multiple arguments as it provides the signature for | |
* the resulting composite function. | |
* |
function doSomething() { | |
return dispatch => | |
fetch( | |
'/api/something' | |
).then( | |
response => response.json() | |
).then( | |
json => dispatch({ type: DO_SOMETHING, json }), | |
err => dispatch({ type: SOMETHING_FAILED, err }) | |
); |
// Async/Await requirements: Latest Chrome/FF browser or Babel: https://babeljs.io/docs/plugins/transform-async-to-generator/ | |
// Fetch requirements: Latest Chrome/FF browser or Github fetch polyfill: https://github.com/github/fetch | |
// async function | |
async function fetchAsync () { | |
// await response of fetch call | |
let response = await fetch('https://api.github.com'); | |
// only proceed once promise is resolved | |
let data = await response.json(); | |
// only proceed once second promise is resolved |