Skip to content

Instantly share code, notes, and snippets.


Song Peng eyakcn

  • Eventslin
  • Shanghai
View GitHub Profile

based on the principle of developer-first--putting your target developers’ interests ahead of all other considerations

By building on top of APIs that are designed with the developers’ interests at heart, you are able to save you and your developers a lot of work while laying down the building blocks for others to build on top of.

API-first design is about a series of best practices across companies and industries that prioritize a better developer experience (DX).

by using the RESTful API Markup Language (RAML) to describe them.

APIs used to be simply the technical ways that you achieved something in a business context, but now APIs have transformed into business drivers. Why? Businesses are looking to:

View nginx.conf
location {
if ($http_x_real_ip != ''){
set $clientip $http_x_real_ip;
if ($http_x_real_ip = ''){
set $clientip $remote_addr;
proxy_set_header X-Real-IP $clientip;

There are only two hard things in Computer Science: cache invalidation and naming things.

-- Phil Karlton


Gartner coined the term web-scale IT to describe the ways that large cloud companies such as Google, Amazon, and Facebook deliver seamless user services on a massive scale. The concept allows them to reduce time to market for IT services and lower infrastructure costs while increasing agility, improving their ability to stimulate IT culture change and boosting quality of service.

Elements commonly accepted as key components of an effective web-scale approach include an open approach to hardware, new software architectures, agile processes, a collaboratively aligned organization starting with DevOps, and a risk-embracing culture.

View gist:3c89ba5ee79cd6635369
<input ref={node => { this.input = node; }} />
Things you should never do inside a reducer:
Mutate its arguments;
Perform side effects like API calls and routing transitions;
Calling non-pure functions, e.g. or Math.random().
eyakcn / 0_reuse_code.js
Created Jan 14, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.