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
| version: "3.8" | |
| services: | |
| localstack: | |
| container_name: "localstack_main" | |
| image: localstack/localstack | |
| ports: | |
| - "127.0.0.1:4566:4566" # LocalStack Gateway | |
| environment: | |
| - DOCKER_HOST=unix:///var/run/docker.sock |
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
| async function simplePromiseAsync(api) { | |
| const res = await fetch(api); | |
| return await res.json(); | |
| } | |
| async function promiseAll() { | |
| return await Promise.all([ | |
| simplePromiseAsync('https://catfact.ninjas/fact'), | |
| simplePromiseAsync('https://www.boredapi.com/api/activity') | |
| ]) |
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 ajay = [ | |
| ` | |
| A | |
| AAA | |
| AA AA | |
| AA AA | |
| AAAAAAAAA | |
| AAAAAAAAAAA | |
| AA AA | |
| AA AA |
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
| #!/usr/bin/env node | |
| const path = require('path'); | |
| const globby = require('globby'); | |
| const fs = require('fs'); | |
| const {promisify} = require('util'); | |
| const readFile = promisify(fs.readFile); | |
| const appendFile = promisify(fs.appendFile); | |
| /** bundles the files */ |
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 React from 'react'; | |
| import Snippet from './Snippet'; | |
| import md from 'react-markings'; | |
| const someString = 'testing'; | |
| export default function ReadMe() { | |
| return md` | |
| # hi this is heaing | |
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 even = num => num === 0 ? 1 : odd(num-1); | |
| const odd = num => num === 0 ? 0 : even(num-1); |