Skip to content

Instantly share code, notes, and snippets.

View lixiaoyan's full-sized avatar

XiaoYan Li lixiaoyan

View GitHub Profile
@jed
jed / LICENSE.txt
Created May 20, 2011 13:27 — forked from 140bytes/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@dimpurr
dimpurr / nullrule.md
Last active September 11, 2017 12:14
(null) Rules

(null) Rules

本群是一个菊苣们的技术闲聊群,聚集着一群和谐友爱齐心协力打击着吾等渣渣的菊苣们(误)。欢迎将觉得有意思的朋友也拉进来,但是务必保持小圈子的和谐友爱氛围,务必保持小圈子的和谐友爱氛围,因为很重要所以说两遍 ……

某些需要先注意一下的小问题

  • 如果想拉人,请通知管理员。
  • 请不要轻易的 fork (null) 的成员列表。

总之就是要保持聊天记录河蟹

@chantastic
chantastic / on-jsx.markdown
Last active March 20, 2024 01:03
JSX, a year in

Hi Nicholas,

I saw you tweet about JSX yesterday. It seemed like the discussion devolved pretty quickly but I wanted to share our experience over the last year. I understand your concerns. I've made similar remarks about JSX. When we started using it Planning Center, I led the charge to write React without it. I don't imagine I'd have much to say that you haven't considered but, if it's helpful, here's a pattern that changed my opinion:

The idea that "React is the V in MVC" is disingenuous. It's a good pitch but, for many of us, it feels like in invitation to repeat our history of coupled views. In practice, React is the V and the C. Dan Abramov describes the division as Smart and Dumb Components. At our office, we call them stateless and container components (view-controllers if we're Flux). The idea is pretty simple: components can't

@hexchain
hexchain / 51-noto-color-emoji.conf.xml
Last active July 7, 2020 23:42
Emoji on Linux desktop. Use with aur/cairo-coloredemoji.
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/conf.avail/51-noto-color-emoji.conf -->
<fontconfig>
<selectfont>
<acceptfont>
<pattern>
<patelt name="family"><string>Noto Color Emoji</string></patelt>
</pattern>
</acceptfont>