Skip to content

Instantly share code, notes, and snippets.

View leoli-dev's full-sized avatar
💻
coding...

Leo LI leoli-dev

💻
coding...
View GitHub Profile
@leoli-dev
leoli-dev / tampermonkey_ethermine_total_calculation.js
Created August 23, 2022 12:10
Calcalator for Ethermine payouts page | Tampermonkey script
// ==UserScript==
// @name Ethermine total calculation
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Script for calculating the total of mined ETH
// @author Leo LI
// @match https://ethermine.org/miners/*/payouts
// @icon https://www.google.com/s2/favicons?sz=64&domain=ethermine.org
// @grant none
// ==/UserScript==
@leoli-dev
leoli-dev / index.html
Created July 17, 2019 21:42
Standup Meeting Speech Organisation System (beta)
<div class="container">
<div class="row">
<div class="col align-self-center">
<h1 class="text-center">Standup Meeting Speech Organisation System</h1>
</div>
</div>
<div class="row">
<div class="col align-self-center">
<div id="app">
<step-by-step />
@leoli-dev
leoli-dev / jquery-htmlentities.js
Created December 4, 2017 12:35
PHP HTML entiy functions (`htmlentities()` & `html_entity_decode()`) in jQuery
$.htmlentities = {
/**
* Converts a string to its html characters completely.
* It's equivalent to htmlentities() in PHP
* Reference: https://css-tricks.com/snippets/javascript/htmlentities-for-javascript/
*
* @param {String} str String with unescaped HTML characters
**/
encode (str) {
return String(str).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');