graph TD
subgraph "Phase 1: Specification & Design"
A[Start: Project Idea] --> B{Spec Development w/ LLM};
B -- "Iterative Refinement" --> B;
B --> C[architecture.md];
C --> D{Task Decomposition w/ LLM};
D --> E[tasks.md];
endThe exchange of new line & br HTML tag could refer to PHP - nl2br() function, which uses to inserts HTML line breaks before all newlines in a string.
These JavaScript functions consider whether to use insert or replace to handle the swap.
| //Flutter Modal Bottom Sheet | |
| //Modified by Suvadeep Das | |
| //Based on https://gist.github.com/andrelsmoraes/9e4af0133bff8960c1feeb0ead7fd749 | |
| import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:meta/meta.dart'; | |
| const Duration _kBottomSheetDuration = const Duration(milliseconds: 200); |
| const path = require('path'); | |
| const cwd = process.cwd(); | |
| module.exports = { | |
| "includePaths": [ | |
| path.resolve(cwd, 'node_modules'), | |
| path.resolve(cwd, 'src') | |
| ] | |
| }; |
| var VERSION = 'v1'; | |
| var cacheFirstFiles = [ | |
| // ADDME: Add paths and URLs to pull from cache first if it has been loaded before. Else fetch from network. | |
| // If loading from cache, fetch from network in the background to update the resource. Examples: | |
| // 'assets/img/logo.png', | |
| // 'assets/models/controller.gltf', | |
| ]; |
| /** | |
| * subscriptions data format: | |
| * { eventType: { id: callback } } | |
| */ | |
| const subscriptions = { } | |
| const getNextUniqueId = getIdGenerator() | |
| function subscribe(eventType, callback) { | |
| const id = getNextUniqueId() |
| const { compose, mapProps, withHandlers, lifecycle } = Recompose; | |
| const { observable, action } = mobx; | |
| const { inject, observer, Provider } = mobxReact; | |
| const { PropTypes } = React; | |
| // store | |
| // ============================ | |
| const counterStore = observable({ | |
| // for primitive values, wrap the value inside a observable, | |
| // or wrap it in an plain js object |
Run each of the following lines, replacing yourdomain.com and codehere with your details:
now dns add yourdomain.com @ TXT google-site-verification=codehere
now dns add yourdomain.com @ MX ASPMX.L.GOOGLE.COM 1
now dns add yourdomain.com @ MX ALT1.ASPMX.L.GOOGLE.COM 5
now dns add yourdomain.com @ MX ALT2.ASPMX.L.GOOGLE.COM 5
now dns add yourdomain.com @ MX ALT3.ASPMX.L.GOOGLE.COM 10
now dns add yourdomain.com @ MX ALT4.ASPMX.L.GOOGLE.COM 10
https://gist.github.com/ljharb/58faf1cfcb4e6808f74aae4ef7944cff
While attempting to explain JavaScript's reduce method on arrays, conceptually, I came up with the following - hopefully it's helpful; happy to tweak it if anyone has suggestions.
JavaScript Arrays have lots of built in methods on their prototype. Some of them mutate - ie, they change the underlying array in-place. Luckily, most of them do not - they instead return an entirely distinct array. Since arrays are conceptually a contiguous list of items, it helps code clarity and maintainability a lot to be able to operate on them in a "functional" way. (I'll also insist on referring to an array as a "list" - although in some languages, List is a native data type, in JS and this post, I'm referring to the concept. Everywhere I use the word "list" you can assume I'm talking about a JS Array) This means, to perform a single operation on the list as a whole ("atomically"), and to return a new list - thus making it mu
| import React from 'react'; | |
| const MIN_SCALE = 1; | |
| const MAX_SCALE = 4; | |
| const SETTLE_RANGE = 0.001; | |
| const ADDITIONAL_LIMIT = 0.2; | |
| const DOUBLE_TAP_THRESHOLD = 300; | |
| const ANIMATION_SPEED = 0.04; | |
| const RESET_ANIMATION_SPEED = 0.08; | |
| const INITIAL_X = 0; |