- Push back on genuinely bad ideas, with reasoning. Point out bugs, misleading names, and better approaches when you see them. Direct but collaborative.
- If requirements are ambiguous or a design decision could reasonably go multiple ways, ask rather than guess. A quick question is cheaper than reworking a wrong assumption.
- If a prompt looks damaged or wrong, STOP and say so — truncated mid-sentence, duplicated blocks, garbled copy/paste, references to context that doesn't exist, or
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.intellij.codeInsight.folding.impl.EditorFoldingInfo | |
| import com.intellij.codeInsight.folding.impl.FoldingUtil | |
| import com.intellij.openapi.actionSystem.AnActionEvent | |
| import com.intellij.openapi.editor.Document | |
| import com.intellij.openapi.editor.Editor | |
| import com.intellij.openapi.editor.FoldRegion | |
| import com.intellij.openapi.editor.ex.FoldingModelEx | |
| import java.util.regex.Pattern | |
| import static liveplugin.PluginUtil.* |
Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.
Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.
The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Import dependencies | |
| const bip32 = require('bip32') | |
| const bip39 = require('bip39') | |
| const bitcoin = require('bitcoinjs-lib') | |
| //Define the network | |
| const network = bitcoin.networks.bitcoin //use networks.testnet for testnet | |
| // Derivation path | |
| const path = `m/49'/0'/0'/0` // Use m/49'/1'/0'/0 for testnet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tmutil_exclude() { | |
| # todo: recurse to parent dirs to support commands that execute in project subdirs | |
| DIR=$1 | |
| DEP_FILE=$2 | |
| if [ -d "$DIR" ] && [ -f "$DEP_FILE" ] && ! tmutil isexcluded "$DIR" | grep -q '\[Excluded\]'; then | |
| tmutil addexclusion "$DIR" | |
| echo "tmutil: ${DIR} has been excluded from Time Machine backups" | |
| fi | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const templatized = (template, vars = {}) => { | |
| const handler = new Function('vars', [ | |
| 'const tagged = ( ' + Object.keys(vars).join(', ') + ' ) =>', | |
| '`' + template + '`', | |
| 'return tagged(...Object.values(vars))' | |
| ].join('\n')) | |
| return handler(vars) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Advanced SwiftUI Transitions | |
| // https://swiftui-lab.com | |
| // https://swiftui-lab.com/advanced-transitions | |
| import SwiftUI | |
| struct CrossEffectDemo: View { | |
| let animationDuration: Double = 2 | |
| let images = ["photo1", "photo2", "photo3", "photo4"] | |
| @State private var idx = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //------------------------------------------------------------------------ | |
| // The SwiftUI Lab: Advanced SwiftUI Animations | |
| // https://swiftui-lab.com/swiftui-animations-part1 (Animating Paths) | |
| // https://swiftui-lab.com/swiftui-animations-part2 (GeometryEffect) | |
| // https://swiftui-lab.com/swiftui-animations-part3 (AnimatableModifier) | |
| //------------------------------------------------------------------------ | |
| import SwiftUI | |
| struct ContentView: View { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Request\ParamConverter; | |
| use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; | |
| use Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterInterface; | |
| use Symfony\Component\HttpFoundation\Request; | |
| use Symfony\Component\Validator\ConstraintViolationListInterface; | |
| final class ConstraintViolationsConverter implements ParamConverterInterface |
- Homebrew/terminal/bash
- OSX Productivity - Window Management/Quick Launcher/Hyperswitch
- OSX Settings - Dock/Finder
- Web Browser - Extensions - AdBlock, Privacy Badger, OneTab, JSONViewer, Stylus, Vue Devtools, React Devtools
- Node.js - nvm
- Code Editor - vs code
- Code Editor Extensions
- Break timer and Flux
NewerOlder