Instantly share code, notes, and snippets.
Discover gists
leonbora167 /Paddle_OCR_Training.ipynb
Last activeNovember 6, 2025 11:44
Steps for training Detector and Recognizer of PaddleOCRLoading
Sorry, something went wrong.Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| #defineFFI_LIB "kernel32.dll" | |
| #defineFFI_SCOPE "kernel32" | |
| typedefunsigned shortwchar_t; | |
| typedefintBOOL; | |
| typedefunsigned longDWORD; | |
| typedefvoid*PVOID; | |
| typedefPVOIDHANDLE; | |
| typedefDWORD*LPDWORD; | |
| typedefunsigned shortWORD; |
mtao /eigen_structured_bindings.cpp
Last activeNovember 6, 2025 11:33
This file contains hidden or 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
| #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 /my_pmpropp_custom_plan_cost_text.php
CreatedAugust 21, 2025 09:40
Customize the payment plan cost text on the level 2 checkout page This file contains hidden or 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
| <?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 /xcode-keybindings-as-vscode.md
Last activeNovember 6, 2025 11:31
Xcode KeyBindings as VSCodedillionverma /lucide-react.d.ts
Last activeNovember 6, 2025 11:26
How to stop@radix-ui, next/router and lucide-react auto-imports This file contains hidden or 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
| declare module'lucide-react'{ | |
| export*from'lucide-react/dist/lucide-react.suffixed' | |
| } |
This file contains hidden or 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
| 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