Coding changes the world.

JavaScript

Promise

In ES6, Promise is an improvement of traditional callback. We always put the async request in new Promise(), it will wait until you get the result for resolve or reject. While if you put the async function in then(), whatever you return in that async request, then() will return Promise.resolve(undefined) as async callback is just local function.

Continue reading

Academic Reading

中文测试

黄昏是我一天中视力最差的时候,一眼望去满街都是美女。高楼和街道也变换了通常的形状,像在电影里。你就站在楼梯的拐角,带着某种清香的味道,有点湿乎乎的、奇怪的气息。擦身而过的时候,才知道你在哭。事情就在那时候发生了……

我有一个朋友牙刷,他要我相信我只是处在发情期,像图拉在非洲草原时那样。但我知道不是。

你是不同的、唯一的、柔软的、干净的、天空一样的。

我的明明,我怎么样才能让你明白?

Continue reading

Academic Reading

日本語テスト

祗園精舎の鐘の声、諸行無常の响きあり。
娑羅雙樹の花の色、盛者必衰の理をあらはす。
おごれる人も久しからず、唯春の夜の夢のごとし。
たけき者も遂にはほろびぬ、偏に風の前の塵に同じ。

Continue reading

Academic Reading

R13

In ES6, Promise is an improvement of traditional callback. We always put the async request in new Promise(), it will wait until you get the result for resolve or reject. While if you put the async function in then(), whatever you return in that async request, then() will return Promise.resolve(undefined) as async callback is just local function.

Continue reading

Academic Reading

R12

In ES6, Promise is an improvement of traditional callback. We always put the async request in new Promise(), it will wait until you get the result for resolve or reject. While if you put the async function in then(), whatever you return in that async request, then() will return Promise.resolve(undefined) as async callback is just local function.

Continue reading

Academic Reading

R11

In ES6, Promise is an improvement of traditional callback. We always put the async request in new Promise(), it will wait until you get the result for resolve or reject. While if you put the async function in then(), whatever you return in that async request, then() will return Promise.resolve(undefined) as async callback is just local function.

Continue reading

Academic Reading

R10

In ES6, Promise is an improvement of traditional callback. We always put the async request in new Promise(), it will wait until you get the result for resolve or reject. While if you put the async function in then(), whatever you return in that async request, then() will return Promise.resolve(undefined) as async callback is just local function.

Continue reading

Msc Final Project

R9

In ES6, Promise is an improvement of traditional callback. We always put the async request in new Promise(), it will wait until you get the result for resolve or reject. While if you put the async function in then(), whatever you return in that async request, then() will return Promise.resolve(undefined) as async callback is just local function.

Continue reading

Msc Final Project

R8

In ES6, Promise is an improvement of traditional callback. We always put the async request in new Promise(), it will wait until you get the result for resolve or reject. While if you put the async function in then(), whatever you return in that async request, then() will return Promise.resolve(undefined) as async callback is just local function.

Continue reading

Msc Final Project

R7

In ES6, Promise is an improvement of traditional callback. We always put the async request in new Promise(), it will wait until you get the result for resolve or reject. While if you put the async function in then(), whatever you return in that async request, then() will return Promise.resolve(undefined) as async callback is just local function.

Continue reading

Msc Final Project

R6

In ES6, Promise is an improvement of traditional callback. We always put the async request in new Promise(), it will wait until you get the result for resolve or reject. While if you put the async function in then(), whatever you return in that async request, then() will return Promise.resolve(undefined) as async callback is just local function.

Continue reading

Msc Final Project

R5

In ES6, Promise is an improvement of traditional callback. We always put the async request in new Promise(), it will wait until you get the result for resolve or reject. While if you put the async function in then(), whatever you return in that async request, then() will return Promise.resolve(undefined) as async callback is just local function.

Continue reading

Msc Final Project

R4

In ES6, Promise is an improvement of traditional callback. We always put the async request in new Promise(), it will wait until you get the result for resolve or reject. While if you put the async function in then(), whatever you return in that async request, then() will return Promise.resolve(undefined) as async callback is just local function.

Continue reading

Msc Final Project

R3

In ES6, Promise is an improvement of traditional callback. We always put the async request in new Promise(), it will wait until you get the result for resolve or reject. While if you put the async function in then(), whatever you return in that async request, then() will return Promise.resolve(undefined) as async callback is just local function.

Continue reading

Academic Reading

R2

In ES6, Promise is an improvement of traditional callback. We always put the async request in new Promise(), it will wait until you get the result for resolve or reject. While if you put the async function in then(), whatever you return in that async request, then() will return Promise.resolve(undefined) as async callback is just local function.

Continue reading

Msc Final Project

R1

In ES6, Promise is an improvement of traditional callback. We always put the async request in new Promise(), it will wait until you get the result for resolve or reject. While if you put the async function in then(), whatever you return in that async request, then() will return Promise.resolve(undefined) as async callback is just local function.

Continue reading