Skip to content

Instantly share code, notes, and snippets.

@eight04
eight04 / gist:6093d12ed14250566650
Created September 15, 2014 15:23
GM_config style
/* iframe */
#GM_config {
border-radius: 1em;
box-shadow: 0 0 1em black;
border: 1px solid grey!important;
}
/* passed to GM_config.init */
body {
@eight04
eight04 / gist:4ce675452c2161fe3045
Created October 24, 2014 02:20
[Less] Finding GCD
.gcd(@v1, @v2) when (@v1 < @v2) {
.gcd(@v1, @v2 - @v1);
}
.gcd(@v1, @v2) when (@v1 > @v2) {
.gcd(@v1 - @v2, @v2);
}
.gcd(@v1, @v2) when (@v1 = @v2){
@return: @v1;
@eight04
eight04 / uao_decode.py
Last active September 27, 2021 02:57 — forked from andycjw/uao_decode.py
#! python3
import codecs
import struct
class Codec(codecs.Codec):
def encode(self,input,errors='strict'):
pass
@eight04
eight04 / Firefox Result
Created July 20, 2015 10:40
[JavaScript] Will duplicate items affect the performance of Array.sort?
"size=1, range=1: 0"
"count=0"
"size=10, range=1: 0"
"count=9"
"size=100, range=1: 0"
"count=99"
"size=1000, range=1: 1"
"count=999"
"size=10000, range=1: 2"
"count=9999"
@eight04
eight04 / Obsidian.xml
Last active July 10, 2023 12:37
Notepad++ JSON lexer for obsidian theme
<LexerType name="json" desc="JSON" ext="">
<WordsStyle name="DEFAULT" styleID="0" fgColor="E0E2E4" bgColor="293134" fontName="" fontStyle="0" fontSize="" />
<WordsStyle name="NUMBER" styleID="1" fgColor="FFCD22" bgColor="293134" fontName="" fontStyle="0" fontSize="" />
<WordsStyle name="STRING" styleID="2" fgColor="EC7600" bgColor="293134" fontName="" fontStyle="0" fontSize="" />
<WordsStyle name="STRINGEOL" styleID="3" fgColor="808080" bgColor="293134" fontName="" fontStyle="0" fontSize="" />
<WordsStyle name="PROPERTYNAME" styleID="4" fgColor="678CB1" bgColor="293134" fontName="" fontStyle="0" fontSize="" />
<WordsStyle name="ESCAPESEQUENCE" styleID="5" fgColor="FF8409" bgColor="293134" fontName="" fontStyle="1" fontSize="" />
<WordsStyle name="LINECOMMENT" styleID="6" fgColor="008000" bgColor="293134" fontName="" fontStyle="0" fontSize="" />
<WordsStyle name="BLOCKCOMMENT" styleID="7" fgColor="008000" bgColor="293134" fontName="" fontStyle="0" fontSize="" />
<WordsStyle
rst2html5.py (Docutils 0.13.1 [release], Python 3.6.0, on win32)
Usage
=====
rst2html5.py [options] [<source> [<destination>]]
Generates HTML?5 documents from standalone reStructuredText sources Reads from
<source> (default is stdin) and writes to <destination> (default is stdout).
See <http://docutils.sf.net/docs/user/config.html> for the full reference.
@eight04
eight04 / foo.user.css
Last active February 5, 2019 19:21
Usercss test
/* ==UserStyle==
@name Stack Overflow Navbar Enhancer
@description An usercss to move navbar position, change font color, and more.
@namespace eight04.blogspot
@version 0.1.8
@author eight04 <eight04@gmail.com> (https://github.com/eight04)
@homepageURL http://example.com/
@supportURL http://example.com/issues
@license unlicense
@advanced color font-color 'Font color' #123456
/* ==UserStyle==
@name GitHub Dark
@homepageURL http://userstyles.org/styles/37035
@updateURL https://userstyles.org/styles/37035.css
@md5URL https://update.userstyles.org/37035.md5
@originalMD5 66643ceab5d8c458da6e0ead8f4133f3
@author StylishThemes
@advanced color base-color "Base color scheme" #4183C4
@advanced dropdown syntax-theme "Github syntax theme" {
Ambiance "Ambiance" <<<EOT
/* ==UserStyle==
@name GitHub Dark
@namespace stylish
@version 0.1.0
@homepageURL http://userstyles.org/styles/37035
@updateURL https://userstyles.org/styles/37035.css
@md5URL https://update.userstyles.org/37035.md5
@originalMD5 66643ceab5d8c458da6e0ead8f4133f3
@author StylishThemes
@advanced color base-color "Base color scheme" #4183C4