Discover gists
This file contains 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
""" | |
https://github.com/jax-ml/jax/issues/26566 | |
""" | |
import itertools | |
import operator | |
import jax | |
from jax import numpy as jnp | |
from tqdm import tqdm |
This file contains 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 | |
public struct ValuePicker<SelectionValue: Hashable, Content: View>: View { | |
private let title: LocalizedStringKey | |
private let selection: Binding<SelectionValue> | |
private let content: Content | |
public init( | |
_ title: LocalizedStringKey, | |
selection: Binding<SelectionValue>, |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
This file contains 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 python | |
All Scripture generated by this script is from The Holy Bible, English Standard Version. Copyright ©2001 by <a href="http://www.crosswaybibles.org">Crossway Bibles</a>, a publishing ministry of Good News Publishers. Used by permission. All rights reserved. Text provided by the <a href="http://www.gnpcb.org/esv/share/services/">Crossway Bibles Web Service</a>. | |
A lot of this code is from Christian Wyglendowski found at http://www.esvapi.org/api#verse | |
Adapted for Drafts & Pythonista on iOS by @pfcbenjamin. More info at http://sweetnessoffreedom.wordpress.com/projects | |
''' | |
import sys | |
import console | |
import webbrowser |
This file contains 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
{ | |
"customModes": [ | |
{ | |
"slug": "sparc", | |
"name": "⚡️ SPARC Orchestrator", | |
"roleDefinition": "You are SPARC, the orchestrator of complex workflows. You break down large objectives into delegated subtasks aligned to the SPARC methodology. You ensure secure, modular, testable, and maintainable delivery using the appropriate specialist modes.", | |
"customInstructions": "Follow SPARC:\n\n1. Specification: Clarify objectives and scope. Never allow hard-coded env vars.\n2. Pseudocode: Request high-level logic with TDD anchors.\n3. Architecture: Ensure extensible system diagrams and service boundaries.\n4. Refinement: Use TDD, debugging, security, and optimization flows.\n5. Completion: Integrate, document, and monitor for continuous improvement.\n\nUse `new_task` to assign:\n- spec-pseudocode\n- architect\n- code\n- tdd\n- debug\n- security-review\n- docs-writer\n- integration\n- post-deployment-monitoring-mode\n- refinement-optimization-mode\n\nValidate:\n✅ Files < 500 lines\n✅ No hard-coded |
The framework helps to formulate tasks in a way that avoids misunderstandings between the "client" and the "executor":
- Helps to clearly articulate the goal, context, and criteria for task completion.
- Makes the task transparent and understandable for executors and clients.
- Suitable for tasks with predictable cycles and measurable results.
- Does not replace flexible processes in research, innovation, or dynamic projects.
This file contains 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
-- MarI/O by SethBling | |
-- Feel free to use this code, but please do not redistribute it. | |
-- Intended for use with the BizHawk emulator and Super Mario World or Super Mario Bros. ROM. | |
if gameinfo.getromname() == "Super Mario World (USA)" then | |
Filename = "DP1.state" | |
ButtonNames = { | |
"A", | |
"B", | |
"X", |
This file contains 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
{ | |
"customModes": [ | |
{ | |
"name": "🧑✈️ Commander", | |
"slug": "commander", | |
"roleDefinition": "You are the Commander of the Content Army. You act as the central coordinator for content creation pipelines. Your responsibilities include interacting with the user (for initial requests and mid-pipeline reviews/selections), dynamically planning the workflow based on the briefing output and project context (like style guides and project language), delegating tasks to specialist modes, and managing the state for each content piece by creating and updating task definition files.", | |
"customInstructions": "As the Commander:\n\n**Core Directives:**\n\n- **Interact with the user in the language they are currently using.** Adapt your responses accordingly.\n- **Internal logic, task definitions, and status reporting should remain in English** for system consistency.\n- **You MUST meticulously track your own token usage and cost.** Before initiating any action that involves significant processing or int |
NewerOlder