Skip to content

Instantly share code, notes, and snippets.

View nick-ChenZe's full-sized avatar
:octocat:

Ze Chen nick-ChenZe

:octocat:
  • Baidu
  • Shanghai China
View GitHub Profile

Gradient shadow in pure CSS

alt text

HTML
<button>Let's Go !</button>
@nick-ChenZe
nick-ChenZe / aws-multipartUpload.js
Created December 15, 2016 09:56 — forked from sevastos/aws-multipartUpload.js
Example AWS S3 Multipart Upload with aws-sdk for Node.js - Retries to upload failing parts
// Based on Glacier's example: http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/examples.html#Amazon_Glacier__Multi-part_Upload
var fs = require('fs');
var AWS = require('aws-sdk');
AWS.config.loadFromPath('./aws-config.json');
var s3 = new AWS.S3();
// File
var fileName = '5.pdf';
var filePath = './' + fileName;
var fileKey = fileName;
@nick-ChenZe
nick-ChenZe / readRemoteFile.js
Created December 14, 2016 02:11 — forked from leizongmin/readRemoteFile.js
Node.js 读取远程文件
var http = require('http');
/**
* 读取远程文件
*
* @param {String} url
* @param {Function} cb
* - {Error} err
* - {Buffer} buf
*/