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
| DEVELOPER TASK SPEC (FOR DEVIN) | |
| Project: Build a real Linux terminal emulator “from scratch” inside repo andrewgcodes/mochi. | |
| Goal: A genuine VT/xterm-style terminal emulator that runs a real shell/apps via a PTY, correctly parses escape sequences, maintains a screen model, and renders a GUI. No wrapping an existing terminal widget/library/implementation. | |
| ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | |
| 0) NON-NEGOTIABLE RULES (READ FIRST) | |
| ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | |
| R0.1 — No cheating / no “terminal emulator libraries” | |
| - You MUST NOT depend on any library that implements terminal emulation, ANSI/VT parsing, or screen-model logic for you. | |
| - Examples of forbidden dependencies (non-exhaustive): |
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
| """ | |
| clone the tinker cookbook and follow their setup instructions | |
| put this file inside /recipes | |
| install matplotlib | |
| sample command | |
| python -m tinker_lora_lr_sweep \ | |
| model_name=meta-llama/Llama-3.1-8B \ | |
| dataset_name=openai/gsm8k \ |
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
| // SPDX-License-Identifier: MIT | |
| // USE AT OWN RISK, MADE FOR HACKATHON BY BEGINNER!!!! | |
| pragma solidity ^0.8.0; | |
| contract LocationBasedWildfirePredictionMarket { | |
| uint256 public marketCounter; | |
| struct Market { | |
| uint256 id; |
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
| // SPDX-License-Identifier: MIT | |
| // USE AT OWN RISK, MADE FOR HACKATHON BY BEGINNER!!!! | |
| pragma solidity ^0.8.0; | |
| contract DisasterPropertyInsurance { | |
| enum Tier { Bronze, Silver, Gold } | |
| uint256 public constant POLICY_DURATION = 2 minutes; | |
| uint256 public constant WAITING_PERIOD = 5 seconds; | |
| uint256 public constant PREMIUM_INTERVAL = 30 seconds; |
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
| /** | |
| * Configuration object for API settings. | |
| * Contains key constants used throughout the extraction process. | |
| */ | |
| const API_CONFIG = { | |
| key: "...", // Your Firecrawl API key | |
| baseUrl: 'https://api.firecrawl.dev/v1', // Base URL for Firecrawl API endpoints | |
| timeout: 30, // Timeout for HTTP requests in seconds | |
| maxAttempts: 10, // Maximum number of attempts to poll for job completion | |
| initialDelay: 1000 // Initial delay (in ms) before polling for job status |
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: Automated PR Review | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| issues: read |
This file has been truncated, but you can view the full file.
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
| ! | |
| " | |
| # | |
| $ | |
| % | |
| & | |
| ' | |
| ( | |
| ) |
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 SimpleITK as sitk | |
| import numpy as np | |
| import csv | |
| import os | |
| from PIL import Image | |
| import matplotlib.pyplot as plt | |
| def load_itk_image(filename): | |
| itkimage = sitk.ReadImage(filename) | |
| numpyImage = sitk.GetArrayFromImage(itkimage) |