Skip to content

Instantly share code, notes, and snippets.

View dowhile3's full-sized avatar

Oliver Chen dowhile3

View GitHub Profile
@dowhile3
dowhile3 / dabblet.css
Created August 2, 2014 05:18
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #32f348, yellow);
min-height: 100%;
body { margin:0; padding:0;
background-image: url(http://subtlepatterns.com/images/transp_bg.png);
background-attachment: fixed;
vertical-align: baseline;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
line-height: 18px;
body { margin:0; padding:0;
background-image: url(http://subtlepatterns.com/images/transp_bg.png);
background-attachment: fixed;
vertical-align: baseline;
}
#header {
border-top: #53bf6b 4px solid;
border-bottom: #eaeaea 1px solid;
height: 65px; /* content height */
body { margin:0; padding:0;
background-image: url(http://subtlepatterns.com/images/transp_bg.png);
background-attachment: fixed;
vertical-align: baseline;
}
#header {
border-top: #53bf6b 4px solid;
border-bottom: #eaeaea 1px solid;
height: 65px; /* main area */
**做卤汁**
API 本质上是一个产品,它的目标对象是合作伙伴、第三方开发者等。它的目的是把自身的数据暴露给第三方,以换取他们开发资源,加速平台的扩散。说白了,就是卖自己的祖传药方子,或者秘制卤汁。有的卤汁做出来的卤料色香味俱全,小区的老大妈小孩子们经常来买,老板在小破三轮车上摆摊子赚了钱,就是成功。有的卤汁要求店铺挂知名的牌子,高大上装修,但是门可罗雀,就是失败。
API 的本质是为了帮助业务的发展,而不是捉不住看不透的「酷」。
在规划 API 的时候,产品已经有了稳定的逻辑。悬在产品经理心头事情很可能是:「该开放哪个接口呢?好有更多的第三方应用?」这个想法潜藏的逻辑是「接口是容易搞定的,工程师多忙几天不就行了?」但恰恰相反,因为互联网产品加工的难度,接口的上线会占掉大量的时间,我们一开始就应该要奔着一个简单目标:「哪一天上线第一个接口?」
你会遇到各种各样现实的问题。比如「需要认证」。是的,搞定 OAuth 认证是麻烦的,但我们非得要认证功能完善后才能上线吗?可以招纳信任的开发者和用户,或者只提供测试环境的数据,想办法绕开工程上设置的硬障碍。对于任何一个项目来说,时间是最为宝贵的,当与时间对赌的时候,潜意识里你其实是不再乎时间的,这是非常危险的信号。
@dowhile3
dowhile3 / bong.md
Created April 28, 2014 06:57
bong 开放平台

#bong open platform

Title

@dowhile3
dowhile3 / gist:9781253
Last active August 29, 2015 13:57
Basic Bootstrap 3 template
<!doctype html>
<!--
██████╗ ██████╗ ███╗ ██╗ ██████╗
██╔══██╗██╔═══██╗████╗ ██║██╔════╝
██████╔╝██║ ██║██╔██╗ ██║██║ ███╗
██╔══██╗██║ ██║██║╚██╗██║██║ ██║
██████╔╝╚██████╔╝██║ ╚████║╚██████╔╝
╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═════╝
@dowhile3
dowhile3 / photoshop
Created March 20, 2014 05:29
Photoshop 常用设置
防止颜色漂移(本质上是去除 profile):
硬件办法:
1、校准显示器
软件办法
1、Edit - Color Setting - Monitor Color / Ask When Opening 取消打勾,确认。
2、View - Proof Setup - Monitor RGB
3、Save for Web - Convert to sRGB 取消打勾,确认。
@dowhile3
dowhile3 / not enough Gists
Created December 9, 2013 07:14
Gist oh my Gist
What is a Gist, what makes a gist a gist, actually? Well, I don't know, and I'm sure you knows.