Skip to content

Instantly share code, notes, and snippets.

View FiveYellowMice's full-sized avatar
:electron:
Reluctantly relying on Electron

Alex Huang FiveYellowMice

:electron:
Reluctantly relying on Electron
View GitHub Profile
[Unit]
Description=Run Yoitsu Horo bot once
[Service]
Type=oneshot
WorkingDirectory=/home/alex/Projects/yoitsuhorobot
ExecStart=/home/alex/Projects/yoitsuhorobot/yoitsuhorobot.sh

What + Why + When + What effect = Annotaion

Elements and Principles of Design

The elements of design are the marks we make on a page, and they are the starting point for creating designs in an infinite number of ways, either by hand or with a computer. Before we can analyze the work by past and present professionals, we need to understand the design elements as they enable us to evaluate the effectiveness of any example of visual communication and design.

Elements Principles
Point Figure-ground
Line Contrast
Shape Balance ( Symmetrical / Asymmetrical )
Form Pattern ( Repetition / Alternation )
#!/usr/bin/env lua
local website = "https://fiveyellowmice.com"
local mapping = {
home = "/",
about = "/about/",
projects = "/projects/",
newstyle = "/newstyle/",
search = "/search/",
posts = "/posts/",
@FiveYellowMice
FiveYellowMice / https-ssl-tls-1.md
Last active October 18, 2018 03:35
编程随想的扫盲 HTTPS 第一期

扫盲 HTTPS 和 SSL/TLS 协议[1]:背景知识、协议的需求、设计的难点 - 复制自编程随想的博客

★相关背景知识

  要说清楚 HTTPS 协议的实现原理,至少需要如下几个背景知识。

  1. 大致了解几个基本术语(HTTPS、SSL、TLS)的含义
  2. 大致了解 HTTP 和 TCP 的关系(尤其是“短连接”VS“长连接”)
  3. 大致了解加密算法的概念(尤其是“对称加密与非对称加密”的区别)
  4. 大致了解 CA 证书的用途
!function(t){function e(t,e){var n,i,u,f,o,c,l,d=""
if(e?(c=r,l=a):(c=a,l=r),"string"!=typeof t)return t
for(n=0;n<t.length;n++)i=t.charAt(n),u=t.charCodeAt(n),f=u>13312&&40899>u||u>63744&&64106>u,f?(o=c.indexOf(i),d+=-1!==o?l.charAt(o):i):d+=i
return d}function n(t,i,r){var a,u
if(i instanceof Array)for(a=0;a<i.length;a++)n(t,i[a],r)
else u=t.getAttribute(i),""!==u&&null!==u&&t.setAttribute(i,e(u,r))}function i(t,r){var a,u
if(1===t.nodeType)for(u=t.childNodes,a=0;a<u.length;a++){var f=u.item(a)
if(1===f.nodeType){if(-1!=="|BR|HR|TEXTAREA|SCRIPT|OBJECT|EMBED|".indexOf("|"+f.tagName+"|"))continue
n(f,["title","data-original-title","alt","placeholder"],r),"INPUT"===f.tagName&&""!==f.value&&"text"!==f.type&&"hidden"!==f.type&&(f.value=e(f.value,r)),i(f,r)}else 3===f.nodeType&&(f.data=e(f.data,r))}}var r=new String("万与丑专业丛东丝丢两严丧个丬丰临为丽举么义乌乐乔习乡书买乱争于亏云亘亚产亩亲亵亸亿仅从仑仓仪们价众优伙会伛伞伟传伤伥伦伧伪伫体余佣佥侠侣侥侦侧侨侩侪侬俣俦俨俩俪俭债倾偬偻偾偿傥傧储傩儿兑兖党兰关兴兹养兽冁内冈册写军农冢冯冲决况冻净凄凉凌减凑凛几凤凫凭凯击凼凿刍划刘则刚创删别刬刭刽刿剀剂剐剑剥剧劝办务劢动励劲劳势勋勐勚匀匦匮区医华协单卖卢卤卧卫却卺厂厅历厉压厌厍厕厢厣厦厨厩厮县参叆叇双发变叙叠叶号
@FiveYellowMice
FiveYellowMice / fym-short-url.js
Last active February 21, 2016 07:00
https://fivy.ml USED TO powered by
#!/usr/bin/env node
const http = require("http");
const url = require("url");
const fs = require("fs");
const yaml = require("js-yaml");
var server = http.createServer(recievedRequest);
server.listen(8063, "::1", function() {
console.log("Start serving...");
[
{
"content": "我从来不把安逸和快乐看作是生活目的本身,对这种伦理基础,我称之为“猪栏的理想”。",
"author": "爱因斯坦"
},
{
"content": "人生中最大的两个财富是:你的才华和你的时间。才华越来越多而时间越来越少。我们的一生就是用时间来换取才华。"
},
{
"content": "这辈子没法做太多的事情,所以每一件都要做到精彩绝伦!",