$ docker
I followed the instructions in this blog post Multiple Fonts: Alternative to Operator Mono in VSCode, but did not see any changes made to VS Code. After digging a bit, I discovered that all the CSS class names had changed. They’re now e.g. .mtk13, .mtk16 { … }
.
- Ensure it’s a file URL e.g.
{ "vscode_custom_css.imports": [ "file:///Users/Brian/Desktop/vscode-style.css" ] }
- If you move the location of your file and update your user settings with the new location, you will need to disable and enable custom CSS cmd+shift+p.
- Also, anytime you change the style in your custom CSS file, you need to disable, then re-enable the extension.
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 { eventChannel } from 'redux-saga' | |
function firebaseChannel(firebase, { | |
eventType = 'value', | |
returnSnapshot = false, | |
} = {}) { | |
return eventChannel(emit => { | |
const subscription = firebase.on(eventType, snapshot => { | |
emit(returnSnapshot ? { snapshot } : { value: snapshot.val() }) | |
}) |
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
/** | |
* Get round nested ternary operator | |
* | |
* <header>{ | |
* accept() | |
* .when( a == 1, <h1>Case 1</h1>) | |
* .when( a == 2, <h1>Case 2</h1>) | |
* .otherwise( <h1>Case 3</h1>) | |
* .render() | |
* }</header> |
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
class Header extends Component { | |
// Define contextType as static class field. | |
static contextType = UserContext; | |
render() { | |
const user = this.context; | |
return user.isSignedIn ? ( | |
<div>Hello {user.name}</div> | |
) : ( |
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
type ( | |
// BuoyCondition contains information for an individual station. | |
BuoyCondition struct { | |
WindSpeed float64 `bson:"wind_speed_milehour"` | |
WindDirection int `bson:"wind_direction_degnorth"` | |
WindGust float64 `bson:"gust_wind_speed_milehour"` | |
} | |
// BuoyLocation contains the buoy's location. | |
BuoyLocation struct { |
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
// for multiple requests | |
let isRefreshing = false; | |
let failedQueue = []; | |
const processQueue = (error, token = null) => { | |
failedQueue.forEach(prom => { | |
if (error) { | |
prom.reject(error); | |
} else { | |
prom.resolve(token); |
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 admin = require('firebase-admin') | |
const { google } = require('googleapis') | |
const axios = require('axios') | |
const MESSAGING_SCOPE = 'https://www.googleapis.com/auth/firebase.messaging' | |
const SCOPES = [MESSAGING_SCOPE] | |
const serviceAccount = require('./messanging-fbf79-firebase-adminsdk-kag1v-664f36ff55.json') | |
const databaseURL = 'https://messanging-fbf79.firebaseio.com' | |
const URL = |
OlderNewer