.
This file contains 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
javascript: (function() { | |
var s = document.createElement('script'); | |
s.setAttribute('src', 'https://cdn.jsdelivr.net/npm/lil-gui@0.17'); | |
document.body.appendChild(s); | |
s.onload = () => { | |
var GUI = lil.GUI; | |
var itemname = location.href.match(/items\/([^/]+)/); | |
var data = { | |
'%': 100, | |
'assess': () => { |
This file contains 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
// Question from | |
// https://twitter.com/RplusTW/status/1498288300934971401 | |
// inspired from @esp10mm | |
// want to get all order => [a, c, b, d] | |
genOrder([ | |
['c', 'b'], | |
['a', 'b', 'd'], | |
['a', 'c'], | |
]); |
This file contains 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
<script> | |
import logo from './assets/svelte.png'; | |
import data from './data.json'; | |
let kwd = '變異'; | |
let tier = 10; | |
let filled = false; | |
let pastedImgDataUrl; | |
// let imgFilter = 'w'; |
This file contains 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
// ---- | |
// libsass (v3.3.2) | |
// ---- | |
@function nth-selector($str, $n) { | |
@for $i from 1 through $n { | |
@if (str_index($str, ' ')) { | |
@if $i == $n { | |
$str: str_slice($str, 0, str_index($str, ' ') - 1); | |
} @else { |
This file contains 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
/* | |
Orna RPG view distance formula: | |
1. base view distance: 180m | |
2. base factor per item: x1.2 | |
3. base factor per adornment: x1.02 | |
*/ | |
// There are two methods to calculate with factor(1.2): | |
// Method 1: 180 * Math.pow(1.2, N) | |
// Method 2: 1.2 * D(N - 1) |
This file contains 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
// https://stackoverflow.com/a/11172083 | |
function toJSONLocal (date = new Date()) { | |
var local = new Date(date); | |
local.setMinutes(date.getMinutes() - date.getTimezoneOffset()); | |
return local.toJSON().slice(0, 10); | |
} |
在動畫瘋的頁面可針對影片(不含彈幕)擷圖。
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Facebook emoji list</title> | |
<style> | |
body { | |
text-align: center; | |
} |
This file contains 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
; new mouse: microsoft comfort 6000, | |
; custom side-button behavior by autohotkey, | |
; => helpful for browser webpage (FB/blog/news) | |
XButton1::Send {PgDn} | |
XButton2::Send {PgUp} | |
~LButton & XButton2::Send {Home} | |
~LButton & XButton1::Send {End} |
NewerOlder