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
<cfscript> | |
x = isValid( "uuid", "C267C23A-E384-6CB7-BE470986E0622FD3" ) | |
writeDump( x ); | |
</cfscript> |
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
RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=/commandhistory/.bash_history" \ | |
&& echo "$SNIPPET" >> "/root/.bashrc" |
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
# Generated by o3-mini-high, as of Feb 2025, so may have some inaccuracies. | |
class Linear: | |
""" | |
A class that simulates a linear (single‑use) resource. | |
Each Linear object wraps a value and tracks whether it has been consumed. | |
Optionally, a resource may be marked as "unrestricted" (via the exponentials) | |
so that it can be duplicated. |
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
terraform { | |
required_providers { | |
aws = { | |
source = "hashicorp/aws" | |
version = "~> <latest-version>" | |
} | |
} | |
} | |
provider "aws" { |
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 discord | |
from discord.ext import commands | |
import json | |
import aiohttp | |
import os | |
import logging | |
from datetime import datetime | |
# Set up logging | |
logging.basicConfig( |
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
// Task 1 | |
void main() { | |
// Predefined list of marks entered by me | |
List<double> marks = [88, 98, 58, 40, 75]; | |
// Calculate total and average | |
double total = marks.reduce((a, b) => a + b); | |
double average = total / marks.length; |
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
<?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\Vivaldi\README.md" checksum="6C2A64504F85A9CB603549B7B177A317" /> | |
<file path="C:\ProgramData\chocolatey\lib\Vivaldi\update.ps1" checksum="24A13D5D9D34F65A28F507F85AB5EAB8" /> | |
<file path="C:\ProgramData\chocolatey\lib\Vivaldi\vivaldi.nupkg" checksum="4591292A0ADBF61EDE11BF9D898EEA20" /> | |
<file path="C:\ProgramData\chocolatey\lib\Vivaldi\vivaldi.nuspec" checksum="B0C5E3C422BBAB8911A2129908235419" /> | |
</files> | |
</fileSnapshot> |
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
public static Vector3 ExpDecay(Vector3 a, Vector3 b, float decay, float dt) | |
{ | |
return b + (a - b) * Mathf.Exp(-decay * dt); | |
} |
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
<?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:23:25 GMT</lastBuildDate> | |
<item> |
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
www.youtube.com##ytd-reel-shelf-renderer | |
www.youtube.com##.ytd-rich-section-renderer.style-scope | |
www.youtube.com##ytd-guide-entry-renderer:has(a[title="Shorts"]) | |
www.youtube.com##yt-chip-cloud-chip-renderer:has(yt-formatted-string[title="Shorts"]) |