LIFE HACKING

Jan 1, 2021

已经很久没有能够静下心来写自己的年终总结了。过去的一年里,并没有发生太多轻松或愉快的事情。说到头来,还是因为我只有向别人炫耀成功的虚荣心,却没有正视自己失败的勇气。

life
hack

为什么国债收益率可以是负值?

Aug 17, 2019

截至本文推送时,各主要国家的国债收益率已经跌至 1980 年以来的最低点。细心观察的同学可能会发现,类似德国的一些国家,其10年期国债收益率已经跌至负值。

economy
debt

前端开发者转行挖矿的特别技巧

Apr 11, 2019

比特币的热潮不是没有来过,只是这一次尤其汹涌。直接催动了区块链技术相关产业的野蛮生长,菜市场的大爷大妈也不再关心韭菜的价格,而是24小时不停歇地死盯着加密货币交易市场的起伏,随时准备贴上自己所剩无几的棺材本。比特币涨到了九万块的今天,你是继续选择做一只把头埋在土里的鸵鸟,每日996,穿着格子衬衫,吃着黄焖鸡米饭,拿着10来k的工资;还是拿出你的毕生积蓄,兑换BTC,参与ICO,西装革履同俊杰名媛谈笑风生,坐等币价翻个几千倍,从此走上人生巅峰呢?

cryptocurrency
btc

新手参与加密货币交易的正确姿势

Jan 12, 2018

一片繁荣景象换句话讲叫做乱象丛生,这也正印证着如今的加密货币交易市场。不管是BTC还是ETH,总是有涨有跌;即使你发行新货币搞ICO,也不免要有跑路的一天,唯有成立交易平台,不管涨跌,来来去去,你买我卖,平台都能从中揩上一笔,美名其曰交易费、矿工费亦或者是燃料费。

现如今人人都想搭平台,建交易所,各种虚拟货币交易平台也如雨后泥鳅一般冒了出来。新手想要上车,难免被一些不靠谱的平台坑到。为了让同学们少走一些弯路,我在这里推荐一些可靠的平台、网站、APP供大家参考。

cryptocurrency
btc

如何发行你自己的加密货币

Jan 11, 2018

这是一篇教你改变世界的文章……

ico
eth

支付宝异步通知接口验签

Jan 4, 2018

支付宝的文档和SDK简直是垃圾,根本没有任何说明,源码里也没个准确的注释,只有一个JAVA的示例不知所云。

在调试验签接口时踩了很多坑,官方的SDK根本没法用,而且支付宝本身的验签包括第三方登陆、网站支付、移动端支付等,另外SDK里本身的加密校验方式貌似也不止一种。

几经折腾,遂抛弃了SDK,直接使用下面这段代码解决了问题:

alipay
php

How to use CircleCI for GitHub Pages Continuous Deployment

Dec 19, 2017

Today we’re going to introduce how to use CircleCI for Continuous Deployment on GitHub Pages.

github
ci

浅尝初试 React 技术栈

Aug 1, 2017
react

如何通过 Google Voice 注册美国电话号码

Jul 15, 2017

我们最终的目标是成功注册一个 Google Voice 账号并申请到一个美国电话号码。

为什么你需要一个美国电话号码的解释,请查阅:

google

支付宝当面付 php sdk 使用教程

May 30, 2017

封装提供的是最小参数项,去除了许多可选参数。

封装需要同官方提供的SDK一同使用。

SDK&DEMO下载

下面是代码:

alipay
php

Update nodejs & npm on Ubuntu

May 24, 2017

Just use nvm and do not try other methods.

nodejs
ubuntu

Redux 中的 reducer 到底是什么?

Mar 19, 2017

Redux有3大核心概念:

  • Action
  • Reducer
  • Store

其中ActionStore都非常好理解,我们可以直接按照其字面意思,将他们理解为动作储存

react
redux

Using Travis CI add 'auto build & publish' feature for your jekyll site on Github

Mar 10, 2017

Github Pages is very powerful and it’s free to use. Nowadays many developers deploy their blog & project pages on Github Pages using jekyll.

You’re free to use Github Pages Builder by default. But if you want to use additional plugins or other powerful features of jekyll, you’ll need to build your site locally and then push it to your Github repo.

And every time you update your site or add new posts, you’ll need to build it again and push it up again.

It’s very annoyinng and a waste of time.

Can’t we use some methods to make it automatically happen?

Of course we can!

travis-ci
jekyll

How to set up Nginx reverse proxy for Blocked Websites

Mar 10, 2017

Today I’ll guide you the set up an nginx server to host mirrors for blocked websites.

So you can visit them freely in restricted areas.

You’ll need a server that can access those blocked websites as well as can be accessed by your local machine.

If you haven’t got one, follow the very first step of this former tutorial.

linux
nginx

Use Atom as your Markdown editor

Feb 15, 2017

I’ve tested all the popular text/markdown editors on Valentine’s Day.

Including:

As a front-end developer who often write technical articles on github, I found that the best writing editor for me is Atom.

Baidu IFE warmup tasks solutions

Feb 15, 2017

IFE Answers

1.umbrella

Use your imagination, you could even draw three lines to pass this task.

My Amazon Books Wish List

Feb 14, 2017

The Amazon wish list has many bugs.I even can not share it to my friends via URL.

So I use two lines JavaScript to convert them into markdown:

list = $$('h5 a')
list.forEach(function(link){console.log('* ['+link.innerText+']' + '('+link.href+')')})
js
amazon

Fix php strtotime bug on 32bit server

Feb 2, 2017

You may get an integer overflow bug if you’re using strtotime on a 32bit server.

This was the Y2K38 problem.

The UNIX timestamp will reach the int variable limitation on 32bit OS at 19 January 2038.

However, we can fix this bug by using a customized function:

php

How to set up your own shadowsocks

Nov 30, 2016

史上最简单的从零开始Shadowsocks教程

1.打开搬瓦工VPS推荐站

shadowsocks

Recommended IOS Programming App

Oct 25, 2016
Programming
App