Skip to content

Instantly share code, notes, and snippets.

View i5ting's full-sized avatar
🎯
Focusing

狼叔 i5ting

🎯
Focusing
  • bytedance,ex: alibaba
  • china beijing
  • X @i5ting
View GitHub Profile
@i5ting
i5ting / gist:61f7e3046955a63d33e19383fb66e103
Created October 19, 2025 11:18
moonbit async初体验,先写个文件
听说moonbit支持async了,这是我一直以来最期待的特性,有了async才是真正的让普通程序员也可以做应用落地,于是想简单的尝试一下,顺便做个备忘。
- 今日目标:完成文件写入
首先是新建模块
```jsx
$ moon new async-helloworld
```
@i5ting
i5ting / gist:b2b3381efe5d94860c1a
Created March 30, 2015 01:33
这个命令的意思是把所有com.github替换成com.github.shadowsocks
ack com.github|grep .java:|grep src|awk -F'[ :]' '{print $1}'|xargs sed -i.bak 's/github/github\.shadowsocks/g'
find . -name '*.bak'|xargs rm -rf
@i5ting
i5ting / 0_reuse_code.js
Last active August 29, 2015 14:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@i5ting
i5ting / gist:c5ce68cf4f99e7c0d93d
Created September 26, 2014 05:56
good Contribution Guidelines

Contribution Guidelines

Please ensure your pull request adheres to the following guidelines:

  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • Make an individual pull request for each suggestion.
  • Use the following format: [PACKAGE](LINK) - DESCRIPTION.
  • New categories, or improvements to the existing categorization are welcome.
  • Keep descriptions short and simple, but descriptive.
  • End all descriptions with a full stop/period.
@i5ting
i5ting / to_dashan
Last active August 29, 2015 14:04
写给大山同学
# 写给大山同学
看了一下简历
我觉得大山同学应该是懂些开发的,我的建议是如果你想做互联网方向,不管你将来做产品经理还是项目经理还是架构师,CEO等职务,都需要了解开发流程,建议先做2年开发,然后再做自己想做的事儿,算点说这叫“厚积薄发”。
## 开发的好处
- 有较好的分析能力,学习能力和耐心(做工程出身的CEO们的优势)
- 了解开发流程,便于管理(什么都不懂,人家也不会服气的)
## iOS
https://github.com/gavinkwoe/BeeFramework
https://github.com/ccgus/fmdb
https://github.com/AFNetworking/AFNetworking
https://github.com/rs/SDWebImage
@i5ting
i5ting / how_to_create_rowspan_table
Created March 25, 2014 09:47
简单算法,tr和td生成how_to_create_rowspan_table
<html>
<head>
<title>
简单算法,tr和td生成how_to_create_rowspan_table
</title>
<meta charset='utf-8'/>
<script type="text/javascript" src="js/jquery.js"></script>
<script>
{
"meetings": [
{
"created_at": "2013-09-09T13:28:19Z",
"cur_doc_id": 4,
"end_time": "2013-09-24 13:00:00",
"host_id": 3,
"id": 4,
"location": "testb location",
"name": "展示会议系统",
@i5ting
i5ting / gist:6532237
Created September 12, 2013 01:43
javascript 判断移动设备是否为ipad
<script>
function y_ipad(){
var ua = navigator.userAgent.toLowerCase();
var s;
s = ua.match(/iPad/i);
if(s=="ipad")
{
return true;
}
@i5ting
i5ting / gist:5344394
Created April 9, 2013 09:36
网易study
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>simple tab_zt</title>
<style type="text/css">
*{margin:0; padding:0;}
.i5ting_tab_list_bg{