How to set up your own cloud storage

Oct 23, 2016

Vdisk shut down, 360yunpan shut down. It seems that we are losing every alternatives to store file on cloud. Buying more removable disk is not the solution. In fact, the best option is setting up your own cloud storage service.

Today I’m going to guide you to set up owncloud service. owncloud is an open source & free platform to store & share your files from all your devices(Including web/mobile/desktop). You could set it up for your own or share the service with your friends or family. I’d introduce you both ways to do so.

cloud
owncloud

FreeCodeCamp 学习参考

Oct 9, 2016

FreeCodeCamp 中文网官方维基文档,内容较少,不过是目前少有的中文参考资料。

FCC 官方wiki文档,内容多而全,只要你稍有英文基础,在做题闯关中遇到的所有疑惑基本都可以在这里找到答案。

freecodecamp

Push local projects to new git repo

Oct 7, 2016
git remote set-url origin https://xxx.com.git
git push origin master
bash
git

localStorage store JSON

Oct 6, 2016
/**localStorage store json**/
//Store
localStorage.books = JSON.stringify({name: 'json', stored: true})
//Get
var data = JSON.parse(localStorage.books)
js
html5

How to use shadowsocks(ss)

Sep 22, 2016

Quick User Guide

1.Get your configure info from shadowsocks service provider.

Remember these four things:

  • Server domain name or IP address
  • Encrypt Method (rc4-md5/aes-256-cfb/etc.)
  • Port number (8388 or some numbers)
  • Password

ss-info

shadowsocks

How to use mysql in commandline

Sep 18, 2016

Some useful mysql commands.

bash
sql

Prevent drag in wechat

Aug 25, 2016
// Prevent Drag in Wechat
    var overscroll = function(el) {
        el.addEventListener('touchstart', function() {
            var top = el.scrollTop,
                totalScroll = el.scrollHeight,
                currentScroll = top + el.offsetHeight;
            //If we're at the top or the bottom of the containers
            //scroll, push up or down one pixel.
            //
            //this prevents the scroll from "passing through" to
            //the body.
            if (top === 0) {
                el.scrollTop = 1;
            } else if (currentScroll === totalScroll) {
                el.scrollTop = top - 1;
            }
        });
        el.addEventListener('touchmove', function(evt) {
            //if the content is actually scrollable, i.e. the content is long enough
            //that scrolling can occur
            if (el.offsetHeight < el.scrollHeight)
                evt._isScroller = true;
        });
    }
    overscroll(document.querySelector('.swiper-container'));
    document.addEventListener('touchmove', function(evt) {
        //In this case, the default behavior is scrolling the body, which
        //would result in an overflow.  Since we don't want that, we preventDefault.
        if (!evt._isScroller) {
            evt.preventDefault();
        }
    });
wechat
mobile

iPhone play video inline & autoplay

Aug 25, 2016

Make videos playable inline on Safari on iPhone (prevents automatic fullscreen) and autoplay.

mobile

forbidden mobile hold menu

Aug 25, 2016
/*Forbidden ios hold menu*/
*:not(input,textarea) {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
}
mobile

Web Frontend Learning Path

Aug 9, 2016

What is a frontend developer?

what-is-front-end-dev

总而言之前端工程师就是运用HTML/CSS/JavaScript等Web技术,在工作中配合设计师实现用户界面,和后端工程师进行数据对接,完成Web应用开发。

frontend
list

Build-Website-from-zero

Aug 8, 2016

一个人做网站需要掌握哪些知识?

Code Editor
Version Control
Opensource

Wordpress On DaoCloud

Mar 20, 2016

DaoCloud is an Docker Service Provider. This tutorial helps you to set up an Wordpress blog on DaoCloud with persistent storage.

tutorial

Git rm history

Mar 12, 2016

Remove Git Histoy:

bash

Docker alias

Mar 12, 2016

Docker quick alias work with shadowsockets that helpful.

bash

IOS Concept Map

Mar 9, 2016

forked from @tangqiaoboy

ios

Awesome List of my own

Mar 5, 2016

This is a list of my favourite things.

note

How to set up a third party Wechat Official Account Service

Mar 1, 2016

1.Draw up your plan

What kind of services you’re planning to offer?The third party Wechat Official Account Service just like the service that 10086/10010 offer you via text messages.

php
wechat

Ubuntu Server snippets

Feb 23, 2016

Code highlighter with New syntax

bash

Using Laravel to set up a RESTful Service with Oauth2 Server

Feb 20, 2016

This tutorial is based on Laravel 5 token based Authentication (OAuth 2.0) & Dingo Wiki.They both have some bugs and I fixed them.

php