Skip to content

Instantly share code, notes, and snippets.

@dcreager
dcreager / eager-scopes.py
Created February 11, 2025 19:56
Nested eager/lazy scopes in Python
x = [1]
a = [a for a in x]
print("eager", a) # eager [1]
x = [2]
print("eager", a) # eager [1]
x = [1]
def f():
return list(x)
print("lazy", f()) # lazy [1]
namespace Lesson;
internal class Program
{
static void Main(string[] args)
{
Random random = new Random();
int divisor = random.Next(10, 26);
int lowerBound = 50;
int upperBound = 150;
@Ayomide661
Ayomide661 / rpg.js
Created February 11, 2025 19:55 — forked from FantoX/rpg.js
All RPG commands
const fs = require("fs");
const mongoose = require("mongoose");
const eco = require("discord-mongoose-economy");
const config = require("../Configurations.js");
const ty = eco.connect(config.mongodb); // You can use a seperate mongodb database for RPG
const playerSchema = new mongoose.Schema({
id: { type: String, unique: true, required: true },
name: { type: String },
inventory: {
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 19:55
Rimworld output log published using HugsLib
Log uploaded on Tuesday, February 11, 2025, 1:55:30 PM
Loaded mods:
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Archotech Expanded(Teok25.ArchotechExpanded): ArchotechExpandedProsthetics(1.0.0)
EdB Prepare Carefully(EdB.PrepareCarefully)[mv:1.5.12]: EdBPrepareCarefully(av:1.1.1,fv:1.5.12)
Core(Ludeon.RimWorld): (no assemblies)
HugsLib(UnlimitedHugs.HugsLib)[ov:11.0.4]: 0Harmony(av:2.3.3,fv:1.2.0.1), HugsLib(av:1.0.0,fv:11.0.4)
Active Harmony patches:
DebugWindowsOpener.DrawButtons: TRANS: HugsLib.Patches.DebugWindowsOpener_Patch.DrawAdditionalButtons
@choco-bot
choco-bot / FilesSnapshot.xml
Created February 11, 2025 19:55
disableuac v0.0.3 - Failed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\disableuac\disableuac.nupkg" checksum="7D305CEA0F163A180A4A25F926352291" />
<file path="C:\ProgramData\chocolatey\lib\disableuac\disableuac.nuspec" checksum="2FF9B38306E51A02F7CDEE4B7F144561" />
<file path="C:\ProgramData\chocolatey\lib\disableuac\tools\chocolateyInstall.ps1" checksum="B7CA54FE403D59EA7F1083D370E71B84" />
</files>
</fileSnapshot>
import { createOpenAI } from '@ai-sdk/openai'
import { generateText } from 'ai'
import type { NextRequest } from 'next/server'
import { validateRequest } from '@/lib/lucia'
// export const dynamic = 'force-dynamic'
// export const maxDuration = 60
// export const runtime = 'edge'
export async function POST(req: NextRequest) {
@ahuramazdao
ahuramazdao / lavable rss
Created February 11, 2025 19:54
lavable rss
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>lovable.dev</title>
<link>https://lovable.dev/blog</link>
<description>RSS feed generated for lovable.dev</description>
<language>en-us</language>
<lastBuildDate>Tue, 11 Feb 2025 19:53:31 GMT</lastBuildDate>
<item>
@Braunson
Braunson / bookmarklet.js
Last active February 11, 2025 19:55
Quickly generate a form filler bookmarklet!
// Save this as a bookmark in your browser for the next time you want to fill in the page form!
javascript:(function() {
const fillValues = {
// Paste the object in here from the previous command
}
function fillField(element, value) {
if (!element) return;
// Handle different input types
# Setup Script Documentation
## Overview
The setup script provides an interactive menu-driven interface for managing various development environment tasks. It organizes commands into logical groups and allows both individual and batch execution of setup tasks.
## Directory Structure
```
/setup/
├── setup.ps1 # Main script
├── DatabaseManagement.ps1 # Database management functions