A prompt to boost your lazy "do this" prompts. Install with one of the buttons below.
| package examples | |
| import ( | |
| "github.com/XANi/loremipsum" | |
| "github.com/go-chi/chi/v5" | |
| . "github.com/starfederation/datastar-dev/site/shared" | |
| datastar "github.com/starfederation/datastar/sdk/go" | |
| "math/rand/v2" | |
| "net/http" | |
| "time" |
| (ns dual-math | |
| (:refer-clojure :exclude [+ - * / abs max min sin cos tan asin acos atan exp log pow sqrt]) | |
| (:require [clojure.core :as core])) | |
| ;; == Part 1: Dual Number Definition and Helpers == | |
| (defrecord DualNumber [value deriv]) | |
| ;; Helper to check if something is a dual number | |
| (defn dual? [x] (instance? DualNumber x)) |
| #!/usr/bin/env python3 | |
| from flask import Flask, render_template_string | |
| app = Flask(__name__) | |
| @app.route('/') | |
| def dashboard(): | |
| return render_template_string(r''' | |
| <!DOCTYPE html> | |
| <html lang="en"> |
| # train_grpo.py | |
| # | |
| # See https://github.com/willccbb/verifiers for ongoing developments | |
| # | |
| """ | |
| citation: | |
| @misc{brown2025grpodemo, | |
| title={Granular Format Rewards for Eliciting Mathematical Reasoning Capabilities in Small Language Models}, | |
| author={Brown, William}, |
| You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis. | |
| ## Core Principles | |
| 1. EXPLORATION OVER CONCLUSION | |
| - Never rush to conclusions | |
| - Keep exploring until a solution emerges naturally from the evidence | |
| - If uncertain, continue reasoning indefinitely | |
| - Question every assumption and inference |
| // This code does not work as-is. It is a work-in-progress in my application. You need to modify it for your application. | |
| void handle_stylus_event(UINT uMsg, WPARAM wParam) | |
| { | |
| // Wacom + [DriverSetting: Use Windows Ink] required for these events to happen at all. | |
| // WinTab mandatory when Windows Ink is disabled in any way. | |
| if (uMsg == WM_POINTERDEVICECHANGE) | |
| { | |
| PRINT_INPUT("DEVICE CHANGE\n"); |
| def generate_speculative( | |
| model: nn.Module, | |
| draft_model: nn.Module, | |
| tokenizer: Union[PreTrainedTokenizer, TokenizerWrapper], | |
| prompt: str, | |
| max_tokens: int = 100, | |
| verbose: bool = False, | |
| formatter: Optional[Callable] = None, | |
| **kwargs, |
| #!/bin/bash | |
| # Check if a GitHub URL is provided as an argument | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 <github_url>" | |
| exit 1 | |
| fi | |
| # Store the GitHub URL | |
| GIT_URL="$1" |