Skip to content

Instantly share code, notes, and snippets.

PR-16962 (Sha: 4cda59c3)

OS: Linux bctldroxie011.noam.lnrm.net (Linux 3.10.0-1160.114.2.el7.x86_64) Host: bctldroxie011.noam.lnrm.net GCC: gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5) - Git: 1.8.3.1CMake: 3.18.0curl: 7.29.0node.js: v16.13.0npm: 8.1.0

Build error: Build log Build log

<html>
<head>
<title>Stripe Gradient</title>
</head>
<body>
<canvas id="gradient-canvas">
</canvas>
<h1>
Stripe Gradient Animation
</h1>
Maintainers:
andersontorres: python311Packages.hid, python311Packages.hid, python311Packages.hid, python311Packages.hid
appsforartists: handheld-daemon, handheld-daemon
toast003: handheld-daemon, handheld-daemon
@OfferLifted
OfferLifted / asyncio_taskgroup_showcase.py
Created May 6, 2024 17:59
Showcase of using asyncio's TaskGroup with nested TaskGroups and handling errors in a centralised place.
import asyncio
trigger_exception_event = asyncio.Event()
async def coro_1():
for _ in range(10):
print("I'm coro 1 from tg 1")
await asyncio.sleep(1)
x86_64-darwin qmk
x86_64-linux handheld-daemon
x86_64-linux python311Packages.hid
x86_64-linux qmk
aarch64-linux qmk
aarch64-darwin python311Packages.hid
aarch64-linux python311Packages.hid
x86_64-darwin python311Packages.hid
aarch64-darwin qmk
aarch64-linux handheld-daemon
import argparse
import random
from mediaoutput import IncrementalImageWriter
from slides import SlideDataHelper
class Aligner(object):
def __init__(self, slides_descriptor, output, jump_probability, jump_range):
self.originals = map(lambda x: x.img, SlideDataHelper(slides_descriptor).get_slides())
@VELDOX
VELDOX / gist:7523c47bb90c82fbb31670358954db76
Created May 6, 2024 17:59
ДЗ: Перестановка местами значений
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CSLight
{
internal class Program
{
// TerminateRequest checks for a specific query parameter and terminates the request if present.
func TerminateRequest(rw http.ResponseWriter, r *http.Request) {
// Check for the query parameter
if value := r.URL.Query().Get("terminate"); value == "true" {
// Prepare the data to send in response
responseData := map[string]string{
"message": "Request terminated by custom Tyk plugin.",
}
jsonData, err := json.Marshal(responseData)
if err != nil {
interface FaresRepository {
suspend fun getFares(ryderId: String): List<Fare>
}
interface TicketsRepository {
suspend fun buyTicket(ryderId: String, fare: Fare, totalCount: Int)
}
Maintainers:
thesola10: criterion, criterion, criterion, criterion
yumasi: criterion, criterion, criterion, criterion
sigmanificient: criterion, criterion, criterion, criterion