Skip to content

Instantly share code, notes, and snippets.

@buckle2000
buckle2000 / rest-in-peace.md
Created September 6, 2019 19:51 — forked from duangsuse/rest-in-peace.md
🌸 duangsuse - 永远怀念

duangsues.is_a? SaltedFish, [01.10.18 09:41] ( https://t.me/dsuse/7222

(其实昨天就回来了 放假整七天 因为昨天母上大人身体不好所以就没上线 据说今天去住院了 但愿人长久吧,虽然终究是「相逢有时,后会无期」的

@buckle2000
buckle2000 / cjkfonts.styl
Last active January 21, 2019 21:22
font-family for CJK text
font-serif = "Noto Serif", "Noto Serif CJK SC", "Noto Serif CJK TC","PT Serif","source-han-serif-tc",Songti TC,Songti SC,PMingLiu,SimSun,NSimSun,STSong,serif;
font-sans = "Noto Sans",-apple-system,SF UI Text,Arial, "Noto Sans CJK SC", "Noto Sans CJK TC", "source-han-sans-simplified-c",PingFang SC,Hiragino Sans GB,Microsoft YaHei,WenQuanYi Micro Hei,STHeiti, SimHei,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
@buckle2000
buckle2000 / buckle2000-public.asc
Created April 14, 2018 08:40
My PGP public key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFbXNd8BEACxv2UdqN6gq38tB7Tv1TyG+uyvUxvaB9KeBCMuXCWjkOoxk6Cy
nSUCu/qjq9JSKkVC1HGwZrOonCcLxNcP1xfxeprSrTqT0zudGu98S7vNrNtup+Ro
kar9nz3YX5lvu7+/lK6JGVNy/pRRni2/YAUWZoE56NUzHTv32ozeGEA7eyQmQbb9
MM3c4ZigYsRnFuFu2IqMv61OaNFyHe6nwCyzlhUFHFJyi5kA8rNhUZ2FQtKsYiQs
WqC8GnVXiHpiD9IXpHYCR/asbA/kKBLK1E5rWKawoY0zsGNP5ax6RTHfkFkJ1172
La4Ejf/0rtdwTRmJ5ULs2XnqWnsFZrt2MKAUaWXwDIMaM9qJRYjvMsan+z8hJEeX
f+gvIG6yXYgbTiEDCrZElWcxXQBhdq0RSKzcJlhfXNvvdb4QbCcyYKlkkCriV99w
+z/fMnbvoUUGwhwLtlNg3jxL7h1jHtxPHhQx69S4u2P1AEWpH1mAUKVMtLyLh6/C
@buckle2000
buckle2000 / rfc.md
Last active April 7, 2018 13:21
Workflowy Feature Request: Ranking View

Ranking View for Workflowy

The ranking view, the addition to the tree view (the current only view in workflowy) is a interface suitable for multi-project or life planning.

New property

In this new version of Workflowy, every list node has a rank of a floating point number or of null (no rank). In the ranking view, every node that has a rank is sorted in either order depending on the user's need. The user can enter ranking view at any level in the node tree including the root of their Workflowy workspace (just like in tree view).

@buckle2000
buckle2000 / performane_test.rs
Last active March 30, 2018 12:40
Create fixed sized vector
#![feature(test)]
extern crate test;
use test::Bencher;
fn first(buffer_size: usize) -> Vec<u8> {
vec![0; buffer_size]
}
fn second(buffer_size: usize) -> Vec<u8> {
std::iter::repeat(0u8).take(buffer_size).collect()
@buckle2000
buckle2000 / index.pug
Created March 8, 2018 01:32
强制断句
h2 一二#[wbr]三四
@buckle2000
buckle2000 / style.css
Created February 10, 2018 11:54
Unobtrusive link styling
a[href^="#"] {
text-decoration: none;
color: black;
background-color: green;
background: url(term.png) no-repeat bottom right;
}
a[href^="#"]:hover {
text-decoration: underline;
background: none;
@buckle2000
buckle2000 / description.md
Last active November 24, 2017 03:44
Semantic Versioning for application without API Specification (SemVer w/o API)

Thou Shalt Not Version Arbitrarily -- me

What

SemVer w/o API is Semantic Versioning without the major version.

Here is a simple but not-so-rigorous description:

The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in RFC 2119.

@buckle2000
buckle2000 / description.txt
Last active November 11, 2017 04:45
Safe html tags
<a> - hyperlink.
<b> - bold, use as last resort <h1>-<h3>, <em>, and <strong> are
preferred.
<blockquote> - specifies a section that is quoted from another source.
<code> - defines a piece of computer code.
<del> - delete, used to indicate modifications.
<dd> - describes the item in a <dl> description list.
<dl> - description list.
<dt> - title of an item in a <dl> description list.
<em> - emphasized.
@buckle2000
buckle2000 / .gitlab-ci.yml
Last active August 31, 2017 14:50
PlatformIO Gitlab CI script
image: python:2.7
stages:
- install
- test
cache:
paths:
- "~/.platformio"