Skip to content

Instantly share code, notes, and snippets.

View yanorei32's full-sized avatar
:wq

Ray Yano | あねてあ yanorei32

:wq
View GitHub Profile
uniform int horiz_res = 64;
float4 mainImage(VertData v_in) : TARGET {
float ratio = uv_size.y / uv_size.x;
float2 res = float2(horiz_res, horiz_res * ratio);
float2 sampling_pos = (floor(v_in.uv * res) + 0.5) * rcp(res);
return image.Sample(textureSampler, sampling_pos);
}
@yanorei32
yanorei32 / keybase.md
Created January 26, 2023 07:19
keybase.md

Keybase proof

I hereby claim:

  • I am yanorei32 on github.
  • I am yanorei32 (https://keybase.io/yanorei32) on keybase.
  • I have a public key whose fingerprint is 435A 05EA 7032 8348 962C 7D0C 7E84 1086 AA66 F001

To claim this, I am signing this object:

uniform int shadow_blur_unit_dist;
uniform float shadow_blur_gain;
uniform float4 shadow_color;
float4 mainImage(VertData v_in) : TARGET {
float invsqrt2 = 0.70710678118654;
float2x2 rotateClockwise45 = {
invsqrt2, -invsqrt2,
invsqrt2, invsqrt2,
<html>
<head>
<style>
html, body {
width: 100%;
height: 100%;
margin: 0;
background-color: limegreen;
}
.container {
@yanorei32
yanorei32 / gist:ac814a08c9323ab5c96e90d90ec69e07
Created January 2, 2022 08:24
pwmconfig failed with 6000 RPM cooling fan
# pwmconfig version 3.6.0
This program will search your sensors for pulse width modulation (pwm)
controls, and test each one to see if it controls a fan on
your motherboard. Note that many motherboards do not have pwm
circuitry installed, even if your sensor chip supports pwm.
We will attempt to briefly stop each fan using the pwm controls.
The program will attempt to restore each fan to full speed
after testing. However, it is ** very important ** that you
physically verify that the fans have been to full speed
@yanorei32
yanorei32 / google-ime-keymapping-for-vimmer.tsv
Last active January 24, 2020 00:09
Google IME Configure (without Hiragana Muhenkan IME Toggle version) (for macbook: https://gist.github.com/Yanorei32/2334eb5c0d207b4f8c09d8eeba71fa56 )
status key command
Composition Backspace Backspace
Composition Ctrl a MoveCursorToBeginning
Composition Ctrl Backspace Backspace
Composition Ctrl d MoveCursorRight
Composition Ctrl Down MoveCursorToEnd
Composition Ctrl e MoveCursorToBeginning
Composition Ctrl Enter Commit
Composition Ctrl f MoveCursorToEnd
Composition Ctrl g Delete
@yanorei32
yanorei32 / google-ime-keymapping-for-macbook-vimmer.tsv
Last active January 24, 2020 00:10
Google IME Configure for macbook (Hiragana Muhenkan IME Toggle version) (without Hiragana Muhenkan toggle; https://gist.github.com/Yanorei32/f26cbef570e56291ad23e749e0077b02 )
status key command
Composition Backspace Backspace
Composition Ctrl a MoveCursorToBeginning
Composition Ctrl Backspace Backspace
Composition Ctrl d MoveCursorRight
Composition Ctrl Down MoveCursorToEnd
Composition Ctrl e MoveCursorToBeginning
Composition Ctrl Enter Commit
Composition Ctrl f MoveCursorToEnd
Composition Ctrl g Delete
@yanorei32
yanorei32 / append_brg_value.user.js
Last active February 12, 2018 19:00
Added function to show BRG value to w3schools colors RGB
// ==UserScript==
// @name Append BRG Value
// @namespace http://tyan0.dip.jp/~rei/
// @version 1.0
// @description Added function to show BRG value to w3schools colors RGB
// @author yanorei32
// @match https://www.w3schools.com/colors/colors_rgb.asp
// @grant none
// ==/UserScript==
@yanorei32
yanorei32 / SlackLikeIconStyle.theme.css
Last active April 3, 2017 15:26
DiscordのユーザーアイコンをSlackライクにする。
//META{"name":"Slack Like Icon Style","description":"Slack Like Icon Style","author":"Yanorei32","version":"1.00"}*//
.avatar-uploader-inner, .user-popout .avatar-wrapper .avatar-hint, .avatar-popout, .avatar-large, .avatar-profile, .avatar-small, .avatar-xlarge, .avatar-xsmall, .avatar-xxlarge {
border-radius-top : 10% !important;
border-radius-bottom : 10% !important;
border-radius-left : 10% !important;
border-radius-right : 10% !important;
border-radius : 10% !important;
}
@yanorei32
yanorei32 / まとめ.md
Last active April 3, 2017 14:31
Gistのファイルのまとめです。

まとめ

GreaseMonkeyスクリプト

名前 用途
EzTwimgDownloader.user.js Twitter画像を簡単に保存する拡張

BetterDiscordスタイルシート