Skip to content

Instantly share code, notes, and snippets.

@Rplus
Rplus / orna-item-quality-checker.bookmarklet.js
Last active December 4, 2022 09:10
bookemarklet to check-orna-item-quality
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': () => {
@Rplus
Rplus / gen_chars_order_from_arrays.js
Last active March 1, 2022 16:51
generate chars order from given array
// 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'],
]);
@Rplus
Rplus / App.svelte.html
Created February 17, 2022 23:56
手動 keyin 補資料,剪貼簿圖像色相偏移
<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';
@Rplus
Rplus / SassMeister-input.scss
Created January 12, 2016 18:42
Generated by SassMeister.com.
// ----
// 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 {
@Rplus
Rplus / README.md
Last active December 29, 2021 04:53
Orna RPG Strategies for monsters

.

@Rplus
Rplus / view_distance.js
Last active December 15, 2021 20:42
Orna GPS RPG view distance
/*
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)
@Rplus
Rplus / DateToJSONLocal.js
Created February 24, 2021 20:14
format local date with JSON format
// 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);
}
@Rplus
Rplus / ReadMe.md
Last active February 8, 2021 19:02
巴哈姆特動畫瘋影片擷圖小工具
@Rplus
Rplus / a-Facebook-emoji-list.html
Last active July 1, 2020 23:53
Facebook-emoji-list lookup
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Facebook emoji list</title>
<style>
body {
text-align: center;
}
@Rplus
Rplus / mouse.ahk
Last active November 19, 2018 14:10
my personal autohotkey script
; 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}