One command to quickstart your project.
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
| // __dirname in esm | |
| import {dirname} from "path" | |
| import {fileURLToPath} from "url" | |
| const __dirname = dirname(fileURLToPath(import.meta.url)) |
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
| // Run with `node --experimental-json-modules images.mjs` | |
| // Requires node 14+ | |
| // Dependencies are in the imports below | |
| import admin from "firebase-admin" | |
| import fetch from "node-fetch" | |
| import fs from "fs" | |
| import serviceAccount from "./adminsdk.json" |
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
| #include <algorithm> | |
| #include <iostream> | |
| #include <string> | |
| #include <unordered_map> | |
| #include <unordered_set> | |
| #include <vector> | |
| using std::cin; | |
| using std::cout; | |
| using std::endl; |
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
| --- | |
| BasedOnStyle: LLVM | |
| Language: Cpp | |
| PointerAlignment: Left | |
| AccessModifierOffset: 4 | |
| AlignAfterOpenBracket: AlwaysBreak | |
| AlignConsecutiveAssignments: false | |
| AlignConsecutiveBitFields: false |
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
| /** | |
| * ## Hypertext Transfer Protocol (HTTP) response status codes | |
| * | |
| * HTTP response status codes indicate whether a specific HTTP request has been successfully | |
| * completed. Responses are grouped in five classes: | |
| * | |
| * 1. Informational responses (100–199) | |
| * 2. Successful responses (200–299) | |
| * 3. Redirects (300–399) | |
| * 4. Client errors (400–499) |
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
Show hidden characters
| // Paste this into your "HTML Template.code-snippets" file (ctrl/cmd + p | |
| { | |
| "meta": { | |
| "prefix": ["meta", "meta-tags"], | |
| "body": [ | |
| "<title>$1</title>", | |
| "<meta charset=\"utf-8\"/>", | |
| "<meta property=\"viewport\" name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>", | |
| "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">", |
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
| # This eslintignore file auto-generated by Quickstart. You are free to modify it as you please. | |
| # https://github.com/Luke-zhang-04/quickstart | |
| # To find out more about Eslint, visit https://eslint.org/ | |
| */node_modules/ | |
| **/functions/lib/* | |
| **/*.d.ts | |
| /src/serviceWorker.ts |
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
| #bruh what is a gist | |
| hexes = {"A": 10, "B": 11, "C": 12, "D": 13, "E": 14, "F": 15} | |
| hexes_reversed = {10: "A", 11: "B", 12: "C", 13: "D", 14: "E", 15: "F"} | |
| class Decimal: #everything from decimal/base 10 | |
| @staticmethod | |
| def to_binary(number): #decimal to binary | |
| value = int(number) | |
| total = [] |