Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

Discover gists

@muiz6
muiz6 /quantisation.py
Last activeJuly 19, 2025 04:30
Image Quantisation
importnumpyasnp
fromPILimportImage
IMG_PATH="./assets/water.jpeg"
defquantise(pixelList,width,height):
pixels=np.array([(q(r),q(g),q(b))forr,g,binpixelList],dtype=np.uint8)
returnpixels.reshape([height,width,3])
@qoli
qoli /VOD.json
CreatedNovember 2, 2022 02:35
VOD.json
{
"uuid":"e24b4542-ce5d-4625-b2cb-e40429945328",
"json": [
{
"type":1,
"name":"if101[屏蔽国内ip]",
"api":"http://api.if101.tv/v1/vod"
},
{
"type":0,
@AndrewAltimit
AndrewAltimit /!README.md
Last activeJuly 19, 2025 04:15
Manim MCP Integration

A complete implementation guide for integrating Manim (Mathematical Animation Engine) with MCP (Model Context Protocol) servers, enabling AI assistants to create programmatic animations and visualizations.

🖼️ Example Output

Nanite System
@dtr2300
dtr2300 /nvim-events.md
Last activeJuly 19, 2025 04:12
Overview of Nvim Events

Nvim recognizes the following events. Names are case-insensitive.

BufAdd
Just after creating a new buffer which isadded to the buffer list, or adding a buffer
@fnky
fnky /ANSI.md
Last activeJuly 19, 2025 04:11
ANSI Escape Codes

Standard escape codes are prefixed withEscape:

  • Ctrl-Key:^[
  • Octal:\033
  • Unicode:\u001b
  • Hexadecimal:\x1B
  • Decimal:27
@endolith
endolith /readme.md
Last activeJuly 19, 2025 04:11
Sethares dissmeasure function in Python

Adaptation ofSethares' dissonance measurement function to Python

Example is meant to match the curve inFigure 3:

Figure 3

Original model used products of the two amplitudesa1⋅a2, but this was changed to minimum of the two amplitudesmin(a1, a2), as explained inG: Analysis of the Time Domain Model appendix ofTuning, Timbre, Spectrum, Scale.

This weighting is incorporated into the dissonance model (E.2) by assuming that the roughness is proportional to the loudness of the beating. ... Thus, the amplitude of the beating is given by the minimum of the two amplitudes.

@LUCID99999
LUCID99999 /DcButtonByLucid
CreatedJuly 19, 2025 04:09
should work
using UnityEngine;
/// <summary>
/// DC Button Script by Zay/Lucid
/// Touch this button in VR to open a Discord link.
/// Attach this to a 3D button object with a collider. Ensure player hands have tag "Hand" or include "hand" in their name.
/// </summary>
public class DCButtonScriptByZayLucid : MonoBehaviour
{
[Tooltip("Discord invite URL")]
@marcogandra
marcogandra /waitress_server.py
CreatedApril 28, 2022 11:20— forked fromddelpero/waitress_server.py
Python waitress windows service
# Example class to start a Waitress server as a windows service
# the specific use case is running Waitress as a windows server using pywin32
# The Waitress docs only show how to use waitress-serve, but since waitress-serve is blocking
# you don't get a return value, which makes it impossible to gracefully stop the Waitress server
# from a windows service
# However, looking at the waitress-serve code, it's easy to write a custom class
# example pywin32 windows service: https://gist.github.com/drmalex07/10554232
fromwaitress.serverimportcreate_server
@nicholaswmin
nicholaswmin /zsh-guide.md
Last activeJuly 19, 2025 04:07
guide for concise and UX nuanced zsh

guidelines for concise [zsh][zsh-wiki] scripts

authors: [nicholaswmin][authorgh] - The [MIT][mit-lcns] License.

The keywordsmust/must not are to be interpreted as described in [RFC-2119][rfc-2119].
This formality is kept to a minimum because this document is meant to be LLM-parseable;
in other cases, your own unique context dictates their applicability.

NewerOlder

[8]ページ先頭

©2009-2025 Movatter.jp