盗链是指一个网站的资源(图片或附件)未经允许在其它网站提供浏览和下载。尤其热门资源的盗链,对网站带宽的消耗非常大,本文通过nginx的配置指令location来实现简单的图片和其它类型文件的防盗链。Nginx 的配置文件 : 用 (“|”) 来分隔你想保护的文件的扩展名。valid_referers ...
分类:
其他好文 时间:
2017-07-04 14:39:48
阅读次数:
167
Validate if a given string is numeric. Some examples: "0" => true " 0.1 " => true "abc" => false "1 a" => false "2e10" => true Note: It is intended fo ...
分类:
其他好文 时间:
2017-07-03 14:02:57
阅读次数:
206
题目如图 首先明确的是,可以有(()) ([])诸如此类的表达的。 然后用栈实现算法是,较为容易的。 判断总长度,不是2的倍数,返回false。 如果第一个是)]},返回false。 如果是( [ {则压入栈中 如果是)则看栈顶是不是(,如果不是,那么返回false。其他,类似。 执行完循环,如果栈 ...
分类:
编程语言 时间:
2017-07-02 15:19:40
阅读次数:
218
https://leetcode.com/problems/valid-parentheses/#/solutions ...
分类:
其他好文 时间:
2017-07-02 00:14:23
阅读次数:
170
题目: Given two strings s and t, write a function to determine if t is an anagram of s. For example,s = "anagram", t = "nagaram", return true.s = "rat", ...
分类:
编程语言 时间:
2017-07-01 11:58:10
阅读次数:
145
Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only ...
分类:
其他好文 时间:
2017-07-01 01:00:31
阅读次数:
275
1 Principles of Network Applications 1.1 Application Architectures Client-Server Peer-to-Peer Hybird of C/S and P2P --Skype client-server: find the ad ...
分类:
移动开发 时间:
2017-06-30 15:27:42
阅读次数:
278
题目描述 Given two strings s and t, write a function to determine if t is an anagram of s. For example,s = "anagram", t = "nagaram", return true.s = "rat" ...
分类:
其他好文 时间:
2017-06-29 17:24:21
阅读次数:
134
参考链接: http://www.jianshu.com/p/60ac3ded34a0 http://ikennd.ac/blog/2015/02/stripping-unwanted-architectures-from-dynamic-libraries-in-xcode/ 原因:包含了模拟器内 ...
分类:
Web程序 时间:
2017-06-29 12:42:43
阅读次数:
321