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
# use latest Node LTS | |
FROM node:lts | |
# install Firebase CLI | |
RUN npm install -g firebase-tools | |
ENTRYPOINT ["/usr/local/bin/firebase"] |
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
{ | |
"steps": [ | |
{ | |
"name": "gcr.io/cloud-builders/npm", | |
"args": [ | |
"install" | |
] | |
}, | |
{ | |
"name": "gcr.io/cloud-builders/npm", |
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
{ | |
"steps": [ | |
{ | |
"name": "gcr.io/cloud-builders/npm", | |
"args": [ | |
"install" | |
] | |
}, | |
{ | |
"name": "gcr.io/cloud-builders/npm", |
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
// In response to the following article: | |
// https://www.jimhribar.com/adventures-in-async-await/ | |
// | |
// Using Javascripts Object.map function, it's possible to get an array of promises | |
// which can then be awaited simultaneously, which will execute all of them in parallel. | |
// | |
// This is faster than the looping approach in the article, which awaits each Promise individually. | |
// | |
// Console output: | |
// parallelJob: 501.226ms |
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
{ | |
"semi": true, | |
"trailingComma": "es5", | |
"singleQuote": true, | |
"jsxSingleQuote": true, | |
"arrowParens": "always", | |
"printWidth": 120, | |
"tabWidth": 2 | |
} |
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
const MeleeCharacters = { | |
bowser: { | |
name: 'Bowser', | |
id: 5, | |
tierPosition: 8, | |
colors: ['green', 'blue', 'black', 'red'], | |
defaultColor: 'green', | |
}, | |
donkeyKong: { | |
name: 'Donkey Kong', |
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
const process = require("process"); | |
const fs = require("fs"); | |
const path = require("path"); | |
const child_process = require("child_process"); | |
const targetFileOrFolder = path.resolve(...process.argv); | |
console.log(targetFileOrFolder); | |
const runShellCommand = (command, ...args) => { |
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
import React from "react"; | |
class ArticleList extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { articles: [] }; | |
} | |
async componentDidMount() { | |
const result = await fetch("http://sample.com/"); |
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
import * as GoogleMaps from '@google/maps'; | |
import { config } from 'dotenv'; | |
// @ts-ignore | |
import { Firestore, Timestamp } from '@google-cloud/firestore'; | |
const environment = config().parsed as { | |
GOOGLE_APPLICATION_CREDENTIALS: string; | |
MAPS_API_KEY: string; | |
}; |
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
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider | |
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | |
# User-specific stuff | |
.idea/**/workspace.xml | |
.idea/**/tasks.xml | |
.idea/**/usage.statistics.xml | |
.idea/**/dictionaries | |
.idea/**/shelf |
OlderNewer