Skip to content

Instantly share code, notes, and snippets.

@buckle2000
buckle2000 / rest-in-peace.md
Created Sep 6, 2019 — forked from duangsuse/rest-in-peace.md
🌸 duangsuse - 永远怀念
View rest-in-peace.md

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

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

@buckle2000
buckle2000 / cjkfonts.styl
Last active Jan 21, 2019
font-family for CJK text
View cjkfonts.styl
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;
View buckle2000-public.asc
-----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 Apr 7, 2018
Workflowy Feature Request: Ranking View
View rfc.md

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 Mar 30, 2018
Create fixed sized vector
View performane_test.rs
#![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()
View index.pug
h2 一二#[wbr]三四
@buckle2000
buckle2000 / style.css
Created Feb 10, 2018
Unobtrusive link styling
View style.css
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 Nov 24, 2017
Semantic Versioning for application without API Specification (SemVer w/o API)
View description.md

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.

View description.txt
<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 Aug 31, 2017
PlatformIO Gitlab CI script
View .gitlab-ci.yml
image: python:2.7
stages:
- install
- test
cache:
paths:
- "~/.platformio"