Description
Issue
What kind of change does this PR introduce? (check at least one)
// Type JavaScript here and click "Run Code" or press Ctrl + s | |
console.log('Hello, world!'); | |
// CHALLENGE 1 | |
function sumFunc(arr) { | |
// YOUR CODE HERE | |
let accumulator = 0; | |
for (let i = 0; i < arr.length; i++) { | |
accumulator += arr[i]; |
// Similar to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map | |
class Dictionary<T> { | |
items: { [key: string]: T }; | |
constructor(newItems: Record<string, T>) { | |
this.items = newItems; | |
} | |
setItem(key: string, value: T) { | |
this.items[key] = value; |
const fs = require('fs'); | |
const path = require('path'); | |
const targetDir = './your_folder'; // Replace with your target folder | |
// Regular expression pattern to match files by YYYY_MM_DD.md format | |
const filePattern = /^\d{4}_\d{2}_\d{2}\.md$/; | |
// Get a list of all files in the target folder | |
fs.readdir(targetDir, (err, files) => { |
#!/usr/bin/env bash | |
org_head=$(git rev-parse HEAD) | |
printf "Deploying updates to GitHub...\033[0m\n" | |
printf "\033[0;32mDeploying commit $org_head of '🔒 vaults' \n\033[0m" | |
## Commit and push | |
if [[ `git status --porcelain` ]]; then | |
git add . |
module.exports = { | |
staticDirs: ['../public'], | |
stories: ['../src/components/**/stories.tsx'], | |
addons: [ | |
'@storybook/addon-links', | |
'@storybook/addon-essentials', | |
'storybook-addon-next-router', | |
{ | |
/** | |
* NOTE: fix Storybook issue with PostCSS@8 |
nvm
via Homebrew$ brew install nvm
#!/usr/bin/env bash | |
set -euo pipefail | |
org_head=$(git rev-parse HEAD) | |
printf "Deploying updates to GitHub...\033[0m\n" | |
printf "\033[0;32mDeploying commit $org_head of '🧠 braindump' \n\033[0m" | |
## Commit and push | |
if [[ `git status --porcelain` ]]; then |