Skip to content

Instantly share code, notes, and snippets.

View Dinir's full-sized avatar
🦽
Lost

Dinir Nertan Dinir

🦽
Lost
View GitHub Profile
@Dinir
Dinir / nightbot-sr.css
Created June 13, 2020 13:55
Show current track and requester name in a 320x58 area
/*
Size: Width 320, Height 400
Crop: Top 64, Bottom 278
*/
body { background-color: rgba(0, 0, 0, 0); margin: 0px; auto; overflow: hidden; }
/* transparent background */
.white-bg, .gray-bg, .breadcrumb { background-color: rgba(0, 0, 0, 0); }
div.row:nth-child(4) div, .table-striped > tbody > tr:nth-of-type(2n+1) {
background-color: rgba(0, 0, 0, 1);
@Dinir
Dinir / HSVToRGB.js
Last active May 24, 2020 13:13
Colour Party
/**
* Convert HSV (0-360, 0-100, 0-100) to RGB (0-255 each)
* @param {number[]} hsv array containing hue, saturation, and value
* @returns {number[]} array containing value of each color
*
* @link https://en.wikipedia.org/wiki/HSL_and_HSV#HSV_to_RGB
* @link https://www.desmos.com/calculator/jhx7p5idov
*/
function HSVToRGB (hsv) {
// convert value range of saturation and value
@Dinir
Dinir / template.html
Last active May 23, 2020 16:02
Default HTML template written using Velocity Template Language
#set( $MyName = "Dinir Nertan" )
#set( $MyTwitterHandle = "@DinirNertan" )
#set( $ThemeColor = "#65849f" )
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>#[[$1Title$]]#</title>
@Dinir
Dinir / ErrorLogCollector.js
Last active April 26, 2020 06:29
a small script that stores error logs somewhere accessible
class ErrorLogCollector {
constructor() {
/*
By putting it in an array, the log variable can be copied by reference.
And when attempted to display the whole array on a textarea
it will only show the text.
*/
this.errorLog = ['']
this.write = this.write.bind(this)
@Dinir
Dinir / DNR-12x8.gpl
Last active April 2, 2022 11:29
My palette built with ColorBox.io.
GIMP Palette
Name: DNR-12x8
Columns: 8
# by Dinir Nertan using ColorBox
# https://github.com/Dinir
# https://www.colorbox.io/
#
0 0 0 #000000
255 255 0 #ffff00
255 0 255 #ff00ff
@Dinir
Dinir / top10yaku.md
Last active August 7, 2022 03:55
top 10 hands you should re-memorize if you ever lose your memory

This is just a summary of this very useful blog post.


Yakuhai役牌 + anything

🀀🀀🀀 🀫🀫🀫🀫🀫🀫🀫🀫🀫🀫🀫

Pons of round wind, your seat wind, 🀄, 🀅, and 🀆.

@Dinir
Dinir / SizerExport.xml
Created January 3, 2020 23:54
My Sizer configuration. I use Ctrl+Win+(Alt+)Num1~9 to position a window.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sizer>
<options showIconInTray="1" startInSafeMode="0" adjustOppositeEdge="0" tooltipOption="3" hotKey="90" hotKeyModifiers="10" hotKeyExtended="0" useDwmExtendedFrames="1"/>
<menu>
<resize description="1280×720 Firefox" hotKey="0" hotKeyModifiers="0" hotKeyExtended="0" width="1282" height="826" relocate="0" monitor="-2" top="" left="" noresize="0" relocateCoords="1"/>
<separator/>
<group description="Move Window up to the Margin" hotKey="0" hotKeyModifiers="0" hotKeyExtended="0">
<macro description="◩" hotKey="103" hotKeyModifiers="11" hotKeyExtended="0">$margin = 16
resize
t = t:workarea + $margin
@Dinir
Dinir / Jstris-hideChat.user.js
Created April 26, 2019 19:25
Remove the chat area in Jstris.
// ==UserScript==
// @name Jstris Chat Hider
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Remove the chat area in Jstris.
// @author Dinir
// @match https://*.jstris.jezevec10.com/*
// @grant none
// ==/UserScript==
@Dinir
Dinir / test.meta.js
Last active February 26, 2019 06:24
test test
{
"uuid":"109bcfe0-74eb-4669-ba6e-5cf6899036a7",
"name":"Test Userscript",
"options":{},
"durl":null,
"furl":null,
"lastModified":1551162286790
}
@Dinir
Dinir / Jstris-loadCustomSkin.user.js
Last active May 31, 2019 21:03
Loads a custom skin to Jstris, a userscript for Tampermonkey.
// ==UserScript==
// @name Jstris Custom Skin Loader
// @namespace http://tampermonkey.net/
// @downloadURL https://gist.githubusercontent.com/Dinir/023cebc82d20cc06d0a790acf374d337/raw/3c7377b2948201a41090deddf1d6972bc131acba/Jstris-loadCustomSkin.user.js
// @version 1.2
// @match https://*.jstris.jezevec10.com/*
// @grant none
// @run-at document-end
// @description Loads a custom skin to Jstris.
// @author Dinir Nertan