Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

Discover gists

@aamiaa
aamiaa /CompleteDiscordQuest.md
Last activeNovember 6, 2025 11:46
Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use thedesktop app to complete those.

How to use this script:

  1. Accept a quest under Discover -> Quests
  2. PressCtrl+Shift+I to open DevTools
  3. Go to theConsole tab
  4. Paste the following code and hit enter:
@burkeholland
burkeholland /minibeast.chatmode.md
Last activeNovember 6, 2025 11:45
Mini Beast for GPT-5 Mini
@leonbora167
leonbora167 /Paddle_OCR_Training.ipynb
Last activeNovember 6, 2025 11:44
Steps for training Detector and Recognizer of PaddleOCR
Loading
Sorry, something went wrong.Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aquanox
aquanox /ffi-kernel32.h
CreatedNovember 6, 2025 09:29
PHP FFI Windows Registry
#defineFFI_LIB "kernel32.dll"
#defineFFI_SCOPE "kernel32"
typedefunsigned shortwchar_t;
typedefintBOOL;
typedefunsigned longDWORD;
typedefvoid*PVOID;
typedefPVOIDHANDLE;
typedefDWORD*LPDWORD;
typedefunsigned shortWORD;
#include<iostream>
#include<Eigen/Dense>
#include<concepts>
namespaceEigen {
template<int D,typename Derived>
inlineauto&get(Eigen::DenseCoeffsBase<Derived, WriteAccessors>& p) {return p.coeffRef(D); }
template<int D,typename Derived>
inlineconstautoget(const Eigen::DenseCoeffsBase<Derived,ReadOnlyAccessors>& p) {return p.coeff(D); }
@dwanjuki
dwanjuki /my_pmpropp_custom_plan_cost_text.php
CreatedAugust 21, 2025 09:40
Customize the payment plan cost text on the level 2 checkout page
<?php
/**
* Customize the payment plan cost text on the level 2 checkout page.
*
* You can add this recipe to your site by creating a custom plugin
* or using the Code Snippets plugin available for free in the WordPress repository.
* Read this companion article for step-by-step directions on either method.
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
function my_pmpropp_custom_plan_cost_text($plan_name_raw,$plan ) {
@tranquan
tranquan /xcode-keybindings-as-vscode.md
Last activeNovember 6, 2025 11:31
Xcode KeyBindings as VSCode

To setup some key bindings in Xcode with the same like VSCode

Add duplicate lines

Add this to/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/IDETextKeyBindingSet.plistThanks to:https://gist.github.com/emotality/b1bcb2bb8a07921f9c8cad1c969daedf

<key>Duplication</key>
@dmsul
dmsul /vim_crash_course.md
Last activeNovember 6, 2025 11:28
Vim Crash Course

NOTE: Specific examples given for options, flags, commands variations, etc., are not comprehensive.

Vim has 2 main "modes", that chance the behavior of all your keys. The default mode of Vim is Normal Mode and is mostly used for moving the cursor and navigating the current file.

Some important (or longer) commands begin with ":" and you will see the text you enter next at the bottom left of the screen.

:q[uit] - quit (the current window of) Vim. ("Window" here is internal to Vim, not if you have multiple OS-level windows of Vim open at once.)
:q! - force quit (if the current buffer has been changed since the last save)
:e[dit] {filename} - read file {filename} into a new buffer.

@dillionverma
dillionverma /lucide-react.d.ts
Last activeNovember 6, 2025 11:26
How to stop@radix-ui, next/router and lucide-react auto-imports
declare module'lucide-react'{
export*from'lucide-react/dist/lucide-react.suffixed'
}
@Reedbeta
Reedbeta /srgb.glsl
CreatedAugust 3, 2018 16:52
Conversion between sRGB and linear color encoding
vec3 sRGBToLinear(vec3 rgb)
{
// See https://gamedev.stackexchange.com/questions/92015/optimized-linear-to-srgb-glsl
returnmix(pow((rgb+0.055)* (1.0/1.055),vec3(2.4)),
rgb* (1.0/12.92),
lessThanEqual(rgb,vec3(0.04045)));
}
vec3 LinearToSRGB(vec3 rgb)
{
NewerOlder

[8]ページ先頭

©2009-2025 Movatter.jp