原题地址:https://oj.leetcode.com/problems/search-a-2d-matrix/题意:Write
an efficient algorithm that searches for a value in anmxnmatrix. This matrix has
the...
分类:
编程语言 时间:
2014-06-29 07:56:13
阅读次数:
321
android调用camera时,可以自己写一个activity,赋上相关参数,打开前camera就可以了;
需要申请的permission,在AndroidManifest.xml中添加:
主要功能,打开前camera
private Camera openFrontFacingCameraGingerbread() {
int ca...
分类:
移动开发 时间:
2014-06-20 12:58:38
阅读次数:
215
1.
首先下载官方GO語言安装包:https://code.google.com/p/go/wiki/Downloads?tm=22. 设置
GOPATH在任意磁盘根目录新建一个文件夹,名字随意,这个将会是我们的工作目录,像我把它命名为 @Go@Go
目录下新建三个目录:binpkgsrc之后在“计...
原题地址:https://oj.leetcode.com/problems/merge-k-sorted-lists/题意:Mergeksorted
linked lists and return it as one sorted list. Analyze and describe its com...
分类:
编程语言 时间:
2014-06-11 21:57:07
阅读次数:
399
代码清单:
<?php
/**
* 获取当前页面的完整 url
* @author ruxing.li
* @return string
*/
function getPageUrl(){
$url = (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443') ? 'https://' : 'http...
分类:
Web程序 时间:
2014-06-07 13:16:27
阅读次数:
250
Implement atoi to convert a string to an integer.
Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input ca...
分类:
其他好文 时间:
2014-06-07 12:21:30
阅读次数:
284
原题地址:https://oj.leetcode.com/problems/valid-sudoku/题意:Determine
if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board
could b...
分类:
编程语言 时间:
2014-06-07 11:26:18
阅读次数:
296
根据https://github.com/blueimp/jQuery-File-Upload/wiki/Browser-supportThe
following browsers support at least one form ofAJAXstyle file uploads, either
...
分类:
Web程序 时间:
2014-06-07 09:39:54
阅读次数:
1581
原题地址:https://oj.leetcode.com/problems/sudoku-solver/题意:Write
a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are
indicated b...
分类:
编程语言 时间:
2014-06-07 09:30:06
阅读次数:
342
网上看到的一个开源项目的loading效果,效果很赞,记录一下:
开源项目地址如下:https://github.com/RomainPiel/Titanic
分类:
移动开发 时间:
2014-06-07 06:14:47
阅读次数:
671