Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.
Avoid being a link dump. Try to provide only valuable well tuned information.
Neural network links before starting with transformers.
| // 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks. | |
| // You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) | |
| (() => { | |
| const SHOW_SIDES = false; // color sides of DOM nodes? | |
| const COLOR_SURFACE = true; // color tops of DOM nodes? | |
| const COLOR_RANDOM = false; // randomise color? | |
| const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com) | |
| const MAX_ROTATION = 180; // set to 360 to rotate all the way round | |
| const THICKNESS = 20; // thickness of layers | |
| const DISTANCE = 10000; // ¯\\_(ツ)_/¯ |
| #!/usr/bin/awk -f | |
| # Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
| # CREATE block and create them in separate commands _after_ all the INSERTs. | |
| # Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
| # The mysqldump file is traversed only once. | |
| # Usage: $ ./mysql2sqlite.awk < db-mysql.sql | sqlite3 database.sqlite | |
| # Example: $ mysqldump --no-data -u root -pMySecretPassWord myDbase | ./mysql2sqlite.awk | sqlite3 database.sqlite |
| // Copyright 2015 The Chromium Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| import 'dart:async'; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/widgets.dart'; |
Options included below:
docker-composebrewThis gist was originally created for Homebrew before the rise of Docker, yet it may be best to avoid installing mysql via brew any longer. Instead consider adding a barebones docker-compose.yml for each project and run docker-compose up to start each project's mysql service.
| 1 { | |
| 2 "name": "...", | |
| 3 "version": "1.0.0", | |
| 4 "description": "...", | |
| 5 "main": "index.js", | |
| 6 "scripts": { | |
| 7 "build:css": "stylus --compress ../lib/.../index.styl --out dist/....css", | |
| 8 "watch:css": "stylus --watch ../lib/.../index.styl --out dist/....css", | |
| 9 "build:js": "browserify ../lib/.../standalone.js --standalone bootstrap > dist/....js", | |
| 10 "watch:js": "watchify ../lib/.../standalone.js --standalone bootstrap -o dist/....js", |
| var animating = false; | |
| // Define an animator consisting of optional incoming and outgoing animations. | |
| // alwaysAnimate is false unless specified as true: false means an incoming animation will only trigger if an outgoing animation is also in progress. | |
| // forcing dontClone to true means the outward animation will use the original element rather than a clone. This could improve performance by recycling elements, but can lead to trouble: clones have the advantage of being stripped of all event listeners. | |
| function animator( incoming, outgoing, alwaysAnimate, dontClone ){ | |
| // The resulting animator can be applied to any number of components | |
| return function animate( x, y, z ){ | |
| var config; | |
| var parent; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| #ifdef GL_ES | |
| precision highp float; | |
| #endif | |
| uniform sampler2D from, to; | |
| uniform float progress; | |
| uniform vec2 resolution; | |
| void main() { | |
| vec2 p = gl_FragCoord.xy / resolution.xy; | |
| gl_FragColor = mix(texture2D(from, p), texture2D(to, p), progress); |