I like jumping into tutorials first.
- Agile Web Development with Rails, I learned Rails with an older edition of this book
- The Rails Tutorial, The most popular Rails tutorial before it became a paid resource, "The Hartl Tutorial"
| ConfigObject { | |
| mode: 'development', | |
| output: { | |
| filename: 'js/[name]-[contenthash].js', | |
| chunkFilename: 'js/[name]-[contenthash].chunk.js', | |
| hotUpdateChunkFilename: 'js/[id]-[hash].hot-update.js', | |
| path: '/path/to/rails/app/public/packs', | |
| publicPath: '/packs/', | |
| pathinfo: true | |
| }, |
| FactoryBot.define :stripe_customer, class: Hash do | |
| skip_create | |
| initialize_with { new(attributes) } | |
| id { "cus_#{SecureRandom.hex(7)}" } | |
| object { "customer" } | |
| address { nil } | |
| balance { 0 } | |
| created { 1.day.ago.to_i } | |
| currency { "usd" } |
| import puppeteer from 'puppeteer'; | |
| const [, , url, folder = '.'] = process.argv; | |
| if (!url) throw 'Must supply URL'; | |
| (async () => { | |
| const browser = await puppeteer.launch({ headless: 'new' }); | |
| const page = await browser.newPage(); |
I like jumping into tutorials first.