Add this file to your AI assistant's system prompt or context to help it avoid common AI writing patterns. Source: tropes.fyi by ossama.is
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
| [ | |
| { | |
| "name": "75% Alice Layout by Frad", | |
| "author": "Frad LEE", | |
| "switchMount": "cherry" | |
| }, | |
| [ | |
| { | |
| "x": 1.45, | |
| "a": 7 |
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 SwiftUI | |
| // 1. Use looped H/VStacks to create a grid | |
| // 2. Conditionally increase spacing to grow/shrink the grid | |
| // 3. Calculate the distance of each dot to the center and use the value to stagger the animation | |
| //4. Add random delay on top of the staggered delay value | |
| struct ContentView: View { | |
| // const & state |
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
| // | |
| // ContentView.swift | |
| // MetalSwiftUI | |
| // | |
| // Created by Zach Eriksen on 9/8/20. | |
| // Copyright © 2020 oneleif. All rights reserved. | |
| // | |
| // Inspired [MetalUI](https://github.com/0xLeif/MetalUI) | |
| import SwiftUI |
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 SwiftUI | |
| /// View model protocol | |
| protocol ViewModel: ObservableObject { | |
| var count: Int { get } | |
| func increase() | |
| } | |
| /// Concrete implementation | |
| class MyViewModel: ViewModel { |
With its built-in Bluetooth capabilities, the ESP32 can act as a Bluetooth keyboard. The below code is a minimal example of how to achieve it. It will generate the key strokes for a message whenever a button attached to the ESP32 is pressed.
For the example setup, a momentary button should be connected to pin 2 and to ground. Pin 2 will be configured as an input with pull-up.
In order to receive the message, add the ESP32 as a Bluetooth keyboard of your computer or mobile phone:
- Go to your computers/phones settings
- Ensure Bluetooth is turned on
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
| pragma solidity ^0.4.19; | |
| // ---------------------------------------------------------------------------- | |
| // 'MFIL' 'MineFIL Token' token contract | |
| // | |
| // Symbol : MFIL | |
| // Name : MineFIL Token | |
| // Total supply: 100,000,000.00 | |
| // Decimals : 2 | |
| // |
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
| ### Removes Node and NPM from mac OS ### | |
| # Uninstall using NPM | |
| npm uninstall npm -g || echo "NPM uninstall didn't work" | |
| # Try if Node's installed with Brew | |
| (brew uninstall node&&brew prune)||echo "Node was not installed with Brew" | |
| # Remove all files and folders including Node or NPM | |
| rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*} | |
| rm -rf /usr/local/bin/npm /usr/local/share/man/man1/node* /usr/local/lib/dtrace/node.d ~/.npm ~/.node-gyp /opt/local/bin/node opt/local/include/node /opt/local/lib/node_modules | |
| rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/npm* | |
| rm -rf /usr/local/include/node* |
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
| // | |
| // SVGPath.swift | |
| // SVGPath | |
| // | |
| // Created by Tim Wood on 1/21/15. | |
| // Updated by Vitaly Domnikov 10/6/2015 | |
| // Updated by Jason Rodriguez 08/29/2017 | |
| // Copyright (c) 2015 Tim Wood, Vitaly Domnikov, Jason Rodriguez. All rights reserved. | |
| import Foundation |
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
| # In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env | |
| # variable pointing GPG to the gpg-agent socket. This little script, which must be sourced | |
| # in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start | |
| # gpg-agent or set up the GPG_AGENT_INFO variable if it's already running. | |
| # Add the following to your shell init to set up gpg-agent automatically for every shell | |
| if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then | |
| source ~/.gnupg/.gpg-agent-info | |
| export GPG_AGENT_INFO | |
| else |
NewerOlder