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
| { | |
| "files.associations": { | |
| "*.heex": "phoenix-heex", | |
| }, | |
| "[elixir]": { | |
| "editor.formatOnSave": true, | |
| "editor.defaultFormatter": "JakeBecker.elixir-ls" // use elixir-lsp.elixir-ls if you're using VSCodium | |
| }, | |
| "[phoenix-heex]": { | |
| "editor.formatOnSave": true, |
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
| { | |
| "auto_indent_on_paste": true, | |
| "features": { | |
| "inline_completion_provider": "none" | |
| }, | |
| "buffer_font_family": "Monaspace Neon", | |
| "buffer_font_size": 16, | |
| "buffer_font_weight": 500, | |
| "ui_font_family": "Monaspace Neon", | |
| "ui_font_size": 16, |
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
| { | |
| "assistant": { | |
| "default_model": { | |
| "provider": "zed.dev", | |
| "model": "claude-3-5-sonnet-latest" | |
| }, | |
| "enabled": true, | |
| "version": "2", | |
| "button": true | |
| }, |
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
| You are an expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI, Radix UI and Tailwind. | |
| Project Context: This is a dev tool built for evaluating open source projects allowing people to better understand the maintainability, activity and longevity of a given project to allow devs to better decide whether they should include or use the given open source repositories after the analysis | |
| Code Style and Structure | |
| - Write concise, technical TypeScript code with accurate examples. | |
| - Use functional and declarative programming patterns; avoid classes. | |
| - Prefer iteration and modularization over code duplication. | |
| - Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError). | |
| - Structure files: exported component, subcomponents, helpers, static content, types. |
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
| using claude-3.5-sonnet for prompts and cursor - 21/10/24 | |
| Version: 0.42.3 | |
| VSCode Version: 1.93.1 | |
| Commit: 949de58bd3d85d530972cac2dffc4feb9eee1e40 | |
| Date: 2024-10-16T17:56:07.754Z | |
| Electron: 30.4.0 | |
| Chromium: 124.0.6367.243 | |
| Node.js: 20.15.1 | |
| V8: 12.4.254.20-electron.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
| #!/usr/bin/env bash | |
| cd $(dirname $0) | |
| docker run --rm -it -v "$(pwd)":/home/rust/src -v cargo-git:/home/rust/.cargo/git -v cargo-registry:/home/rust/.cargo/registry -v "$(pwd)/target/":/home/rust/src/target ekidd/rust-musl-builder:nightly-2021-01-01 sudo chown -R rust:rust /home/rust/.cargo/git /home/rust/.cargo/registry /home/rust/src/target | |
| docker run --rm -it -v "$(pwd)":/home/rust/src -v cargo-git:/home/rust/.cargo/git -v cargo-registry:/home/rust/.cargo/registry -v "$(pwd)/target/":/home/rust/src/target ekidd/rust-musl-builder:nightly-2021-01-01 cargo build --release |
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
| #!/usr/bin/python3 | |
| import notecard | |
| from notecard import hub | |
| from periphery import I2C | |
| import cv2 | |
| import keys | |
| import time | |
| from picamera2 import Picamera2 | |
| from smbus2 import SMBus | |
| from bme280 import BME280 |
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
| #!/usr/bin/python3 | |
| import notecard | |
| from notecard import hub | |
| from periphery import I2C | |
| import time | |
| #import serial | |
| # init both notecards | |
| productUID = "com.your.productuid:here" | |
| port = I2C("/dev/i2c-1") |
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
| { pkgs ? import <nixpkgs> {} }: | |
| with pkgs; | |
| let | |
| elixir_1_7_0_rc_1 = { mkDerivation }: | |
| mkDerivation rec { | |
| version = "1.7.0-rc.1"; | |
| # Use `nix-prefetch-github --rev <version> elixir-lang elixir` to update. | |
| sha256 = "1hp1zdscq7h2qcgcfbzw5dx1wxy05bqlrxvv5kcl8414c69inx8g"; |
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
| # Connect and subscribe | |
| def init(_args) do | |
| Logger.info "Starting emqtt..." | |
| {:ok, pid} = :emqtt.start_link( | |
| clientid: "emqtt", | |
| host: 'localhost', | |
| # clean_start: false, | |
| ) |
NewerOlder