Skip to content

Instantly share code, notes, and snippets.

View JiangWeixian's full-sized avatar
🤒
Out sick

JW JiangWeixian

🤒
Out sick
View GitHub Profile
@JiangWeixian
JiangWeixian / digest-cold-start-prompt.excalidraw
Created November 8, 2026 03:46
Viberss digest 冷启动提示流程图 (issue #131 / PR #139)
{"type":"excalidraw","version":2,"source":"gstack-diagram-render","elements":[{"id":"pwBy813tCqwoRF9NoL0JR","type":"rectangle","x":68.9333267211914,"y":8,"width":211.7270965576172,"height":85,"angle":0,"strokeColor":"#1e1e1e","backgroundColor":"transparent","fillStyle":"solid","strokeWidth":2,"strokeStyle":"solid","roughness":1,"opacity":100,"groupIds":[],"frameId":null,"index":"a0","roundness":{"type":3},"seed":456718339,"version":4,"versionNonce":1619911779,"isDeleted":false,"boundElements":[{"type":"text","id":"4N07MCn6qbY2M5PM6wjy7"},{"id":"9iVsKdNfM2djnrBLNt_4i","type":"arrow"}],"updated":1794063085972,"link":null,"locked":false},{"id":"pGy4at01cy4vPfgq2zVCG","type":"rectangle","x":43.03125,"y":133,"width":263.53125,"height":180,"angle":0,"strokeColor":"#1e1e1e","backgroundColor":"transparent","fillStyle":"solid","strokeWidth":2,"strokeStyle":"solid","roughness":1,"opacity":100,"groupIds":[],"frameId":null,"index":"a1","roundness":null,"seed":183811501,"version":4,"versionNonce":1429497763,"isDeleted":fa
@JiangWeixian
JiangWeixian / README.md
Last active November 1, 2026 10:20
postman x mayumi preview screenshots (Paper & Ink)

Screenshots of mayumi components integrated into the postman Electron renderer, remapped to the Paper & Ink palette.

@JiangWeixian
JiangWeixian / startup-idea-checklist.md
Last active December 27, 2025 05:40
Startup idea checklist

Original Post, filter ideas with github issue form.

I’ve been tinkering with different startup ideas and needed a good checklist to think through them. There are great templates for this already: The YC application, Amazon’s internal press release, and Sequoia’s Writing a Business Plan. I found myself mixing and tweaking these templates because they don’t exactly match my model of the world, so I wrote up my own list.

I use this list both to develop ideas and filter them. If you adopt it, be careful about using it as a filter. Remember that in the early stages, good ideas are very easy to kill.

create ideas.yaml in .github/ISSUE_TEMPLATE, check docs for more details

TypeScript 24 hrs 15 mins ███████████████▉░░░░░ 76.0%
JSON 3 hrs 39 mins ██▍░░░░░░░░░░░░░░░░░░ 11.5%
JavaScript 1 hr 20 mins ▉░░░░░░░░░░░░░░░░░░░░ 4.2%
Markdown 57 mins ▋░░░░░░░░░░░░░░░░░░░░ 3.0%
SCSS 50 mins ▌░░░░░░░░░░░░░░░░░░░░ 2.6%
var JSMpeg = {
Player: null,
VideoElement: null,
BitBuffer: null,
Source: {},
Demuxer: {},
Decoder: {},
Renderer: {},
AudioOutput: {},
Now: function() {
/**逻辑类型类似。
* 1. 尝试通过schema打开app
* 2. 如果安卓就跳转到下载链接 or apple内就打开apple store
* refs: https://juejin.im/post/59aabe4c6fb9a0249471e04a
* (链接内写的比较详细了。)
*/
// 打开schema(以打开taobbao item为例)
window.location = taobao://item.taobao.com/
@JiangWeixian
JiangWeixian / isInWechat
Last active December 14, 2019 09:15
判断是否在微信/device?
var isWeixin = () => {
var ua = navigator.userAgent.toLowerCase()
return ua.match(/MicroMessenger/i)?.[0] === 'micromessenger'
}
// ios
navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)
// android
navigator.userAgent.match(/android/i)