Content-Length: 167017 | pFad | http://gist.github.com/

68292EA5 Discover gists · GitHub
Skip to content

Instantly share code, notes, and snippets.

@davidsharp
davidsharp / kanahave.js
Last active May 18, 2025 00:47
A quick, dirty script for getting the hiragana/katakana for 1, 2 or 3 character romaji strings
//export default kanahave = (input,script='h') => {
const kanahave = (input,script='h') => {
let kI = kanaInput(input);if(kI)return kI;
script=script.toLowerCase()
const kana = script=='hiragana'||script.charAt(0)=='h'?data.hiragana:data.katakana
return romajiInput(input,kana)
}
const kanaInput = k => {
let h_i = data.hiragana.join('').indexOf(k.charAt(0))
@agyild
agyild / NVScaler.glsl
Last active May 18, 2025 00:47
NVIDIA Image Scaling v1.0.2 for mpv
// The MIT License(MIT)
//
// Copyright(c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files(the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// use, copy, modify, merge, publish, distribute, sublicense, and / or sell copies of
// the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions :
@mlocati
mlocati / color-scale.js
Last active May 18, 2025 00:46
Javascript color scale from 0% to 100%, rendering it from red to yellow to green
// License: MIT - https://opensource.org/licenses/MIT
// Author: Michele Locati <michele@locati.it>
// Source: https://gist.github.com/mlocati/7210513
function perc2color(perc) {
var r, g, b = 0;
if(perc < 50) {
r = 255;
g = Math.round(5.1 * perc);
}
else {
@madkoding
madkoding / pair-dual-boot-bluetooth.md
Last active May 18, 2025 00:42
Pairing bluetooth devices in dual boot with Linux Ubuntu and Windows 10/11

Pairing Bluetooth Devices in Dual Boot with Linux Ubuntu and Windows 10/11

Introduction

This guide provides updated instructions for pairing Bluetooth devices (such as keyboards or mice) in a dual-boot environment with Linux Ubuntu and Windows 10/11, incorporating community feedback and suggestions.

Instructions

1. Pair in Linux First

  • Pair your Bluetooth device in Linux. This is crucial to ensure the LinkKey remains consistent.
  • Note: Do not re-pair the device in Linux after completing the pairing in Windows.
@skfarhat
skfarhat / VSCode Internal Commands
Created May 19, 2020 21:22
List of VSCode commands
--------------------------------------------
Version: 1.45.1
Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a
Date: 2020-05-14T08:33:47.663Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 18.5.0
-------------------------------------------
@squarism
squarism / iterm2.md
Last active May 18, 2025 00:35
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@L4pisD4Silv4
L4pisD4Silv4 / ImagemPro.user.js
Last active May 18, 2025 00:33
The Image Pro is a powerful tool designed to transform any website into a complete image hub. With it, you can collect, view, filter, convert, and download multiple images at once, all with a user-friendly graphical interface, precise filters, multi-language support, and even integration with reverse search tools.
// ==UserScript==
// @name Imagem Pro
// @name:pt-BR Imagem Pro
// @name:en Image Pro
// @name:es Imagen Pro
// @name:fr Image Pro
// @name:zh 图像专业版
// @name:ar صورة برو
// @name:hi इमेज प्रो
// @name:ja 画像プロ
@chuv1
chuv1 / PoC.md
Last active May 18, 2025 00:23
Authorise you website users with Telegram bot.

Using https://github.com/php-telegram-bot

First.

Create some script that will issue tokens for users and will check if user logged in when asked.

auth.php

<?php

date_default_timezone_set('Asia/Bangkok');
@JeodC
JeodC / portmaster-sparse-checkout-guide.md
Last active May 18, 2025 00:20
PortMaster-New: Using sparse checkout

PortMaster: Using sparse checkout

Sparse checkout is a useful Git feature that lets you only download and work with specific parts of a repository. The PortMaster-New repository is massive — over 50GB in size. Since you're most likely not going to be modifying multiple ports, there's no need to download the entire thing. Use sparse checkout to only grab what you need.

Getting started: Git

Since you’ll be working in the terminal, you'll need Git installed. Download and install it, either using sudo apt install git or downloading Git for Windows depending on your platform. If you use GitHub Desktop, you may already have Git installed. You can check if it’s installed by running git --version in your terminal.

Sparse checkout

If you haven't done so, fork the repository at https://github.com/PortsMaster/PortMaster-New. You can do this in a web browser. In your computer's terminal, clone it: `git clone --filter=blob:none --depth 1 --no-checkout https://github.com/USERNAME/PortMaster-New PortMaster-New

@JeodC
JeodC / pm-primer-gms.md
Last active May 18, 2025 00:19
PortMaster: Understanding Game Maker Engine - A Primer

image PortMaster: Understanding Game Maker Ports - A Primer image

image

A large chunk of PortMaster ports are games using the GameMaker Engine. This engine (referred to as GMS) is an excellent beginner engine for getting into porting, but can also quickly become pretty advanced. This primer hopes to accurately summarize a few key points for how GMS ports are created and work.

Tools Used

PortMaster Engineers heavily rely on a few major tools that make GMS ports successful.









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://gist.github.com/

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy