Note: This file contains a from bottom.
- Address: Set in
convex/_generated/
Welcome to the wonderful world of JavaScript development! I hope you find it enjoyable and rewarding.
The basic tools of the JS trade these days are:
node, which runs JavaScript code.nvm (Node Version Manager), which updates node and lets you switch between different versions.yarn, a package manager for installing projects' dependencies.| <div id="results"/> |
| <!DOCTYPE html> | |
| <html lang="en" dir="ltr"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>yo</title> | |
| <style> | |
| ::-webkit-scrollbar { | |
| background: linear-gradient(to right, #ccc, #fff 20%, #ddd); | |
| cursor: default; | |
| } |
| /* | |
| On Mac, paste this into ~/Library/Application Support/Firefox/Profiles/5a6b7cx1.default-release/chrome/userChrome.css | |
| The random ID before default-release will be different for you. | |
| You will have to create the chrome directory and the userChrome.css file. | |
| To tell Firefox to use userChrome.css, follow the instructions here: | |
| https://www.howtogeek.com/334716/how-to-customize-firefoxs-user-interface-with-userchrome.css/ | |
| You must restart Firefox for changes to this file to take effect. | |
| */ | |
| /* Remove rounded corners from everything */ |
| +youtube.com/*/videos | |
| +youtube.com/c | |
| +youtube.com/channel | |
| +youtube.com/feed/history | |
| +youtube.com/feed/subscriptions | |
| +youtube.com/results | |
| +youtube.com/user | |
| +youtube.com/watch | |
| youtube.com/ |
| package main | |
| // run with go test -bench=. | |
| // My (oversimplified) conclusions are: | |
| // - if you have less than 64 items in each slice, it's faster to do an O(n^2) nested loop | |
| // - if you have more than 64 items, it's worth using a map as an index | |
| import "testing" | |
| import "math/rand" | |
| // prevent the compiler from optimizing away the function under test |
| // Paste this into https://pegjs.org/online | |
| Program = _ ts: TermSequence { | |
| return ts | |
| } | |
| TermSequence = terms: Term* _ { | |
| return terms | |
| } |