Go to the egghead website, i.e. Building a React.js App
run
$.each($('h4 a'), function(index, video){
console.log(video.href);
});| import { readFileSync } from "node:fs" | |
| import * as babel from "@babel/core" | |
| import BabelPluginReactCompiler from "babel-plugin-react-compiler" | |
| import type { Plugin } from "esbuild" | |
| import QuickLRU from "quick-lru" | |
| export function ReactCompilerEsbuildPlugin({ | |
| filter, | |
| sourceMaps, | |
| runtimeModulePath, |
| // Credits to Louistiti from Drizzle Discord: https://discord.com/channels/1043890932593987624/1130802621750448160/1143083373535973406 | |
| import { sql } from "drizzle-orm"; | |
| const clearDb = async (): Promise<void> => { | |
| const query = sql<string>`SELECT table_name | |
| FROM information_schema.tables | |
| WHERE table_schema = 'public' | |
| AND table_type = 'BASE TABLE'; | |
| `; |
| #!/usr/bin/env node | |
| const path = require('path') | |
| const generatorHelper = require('@prisma/generator-helper') | |
| const { Project, StructureKind, VariableDeclarationKind } = require('ts-morph') | |
| generatorHelper.generatorHandler({ | |
| onManifest(config) { | |
| return { | |
| prettyName: 'Filters', | |
| defaultOutput: path.resolve(__dirname, 'filters'), |
| const express = require('express'); | |
| const app = express(); | |
| // Application | |
| app.get('/', function(req, res) { | |
| if (process.env.NODE_ENV === 'development') { | |
| for (var key in require.cache) { | |
| delete require.cache[key]; | |
| } | |
| } |
Go to the egghead website, i.e. Building a React.js App
run
$.each($('h4 a'), function(index, video){
console.log(video.href);
});