npm install
npx rollup -c rollup.config.jsOutput is
{
console.log('someCode ran');
}npm install
npx rollup -c rollup.config.jsOutput is
{
console.log('someCode ran');
}| from typing import Optional | |
| class Node: | |
| def __init__(self, label: str): | |
| self.label = label | |
| self.edge: Optional["Edge"] = None | |
| class Edge: |
I am getting started with devcontainers - I have too many projects, and managing dependencies and versions is getting too tiring. We can automate it with devcontainers.
I work with Java lately, let's start with that. Let's create a project
mkdir HelloWorld
mkdir -p com/example/HelloWorld
touch com/example/HelloWorld/Main.java| vim.cmd("set expandtab") | |
| vim.cmd("set number") | |
| vim.cmd("set tabstop=2") | |
| vim.cmd("set shiftwidth=2") | |
| vim.cmd("set expandtab") | |
| vim.g.mapleader = " " | |
| local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" | |
| if not (vim.uv or vim.loop).fs_stat(lazypath) then | |
| local lazyrepo = "https://github.com/folke/lazy.nvim.git" |
| import pandas as pd | |
| import json | |
| from camel_converter import to_snake | |
| def read(jsonfile): | |
| with open(jsonfile, "r") as f: | |
| return json.loads(f.read()) | |
| import random | |
| standardTranslation = { | |
| "TTT": "F", | |
| "TCT": "S", | |
| "TAT": "Y", | |
| "TGT": "C", | |
| "TTC": "F", | |
| "TCC": "S", | |
| "TAC": "Y", |
You had your 20K sub special 3 months ago. You are now at 141K. Holy smokes! The growth is exponential.
Congrats, well deserved. You are one of my favorite creators - I don't watch every video, only so many hours in a day, but I always have a good time when I do! I first found you via your TypeScript handbook, that was very useful, thanks!
Looking at your videos, some are hugely popular (50K+) and others are sub 1K. The algorithm is fickle. I do see many other creators getting much more consistent view counts. Any thoughts on this, what they might be doing different?
| type Awaited<T> = T extends null | undefined ? T : // special case for `null | undefined` when not in `--strictNullChecks` mode | |
| T extends object & { then(onfulfilled: infer F, ...args: infer _): any; } ? // `await` only unwraps object types with a callable `then`. Non-object types are not unwrapped | |
| F extends ((value: infer V, ...args: infer _) => any) ? // if the argument to `then` is callable, extracts the first argument | |
| Awaited<V> : // recursively unwrap the value | |
| never : // the argument to `then` was not callable | |
| T; // non-object or non-thenable |
| <template> | |
| <input v-model="formData.name" /> | |
| <p v-if="!formStatus.name.valid">{{ formStatus.name.message }}</p> | |
| </template> | |
| <script setup lang="ts'> | |
| const formData = reactive({ | |
| name | |
| }) |
| import pdefer from "https://unpkg.com/[email protected]/index.js"; | |
| /** @returns {Promise<Record<string, boolean>} */ | |
| async function fetchAllFeatures() { | |
| console.log("Making network call..."); | |
| return new Promise((res, rej) => { | |
| setTimeout(() => { | |
| res({}); | |
| }, 500); | |
| }); |