Rather than using Strings as the keys in a Hash, it’s better practice to use Symbols. Symbols are just like Strings except they’re faster and take up ...
分类:
其他好文 时间:
2016-04-30 15:33:16
阅读次数:
156
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex ...
分类:
其他好文 时间:
2016-04-30 07:48:36
阅读次数:
183
#!/bin/bash##ip_checkThisshellscripttakescareofcheckingallipaddress.##createbyxuekun#date2015-12-6#北京开源人#Sourcefunctionlibrary../etc/rc.d/init.d/functionsAPP_PATH=`pwd`LOG_PATH=${APP_PATH}/ip_check.logUP_IP_LIST=${APP_PATH}/up_ip_list.logDOWN_IP_LIST=$..
分类:
系统相关 时间:
2016-04-30 01:13:54
阅读次数:
312
In review, these are the steps for setting up the delegate pattern between two objects, where object A is the delegate for object B and object B will ...
分类:
移动开发 时间:
2016-04-29 22:09:01
阅读次数:
267
1.打印日志:logt,回车:自动生成静态Tag: private static final String TAG = "MainActivity";logd 回车
loge 回车
自动生成打印Log如果要打印参数:logm 回车自动导入包:在回车时不会自动导入包,需要设置一下:在setting下:2.常用快捷键代码提示快捷键:Ctrl+Alt+空格上下移动一行代码:Ctrl+Shift+Up/...
分类:
移动开发 时间:
2016-04-29 19:55:13
阅读次数:
199
1.创建macow工程
一,new maven project --->创建Create a simple project勾选上
修改pom.xml的packaging为pom
Project configuration is not up-to-date with pom.xml. Run Maven->Update Project or use Quick Fix.这个错误直接maven...
分类:
编程语言 时间:
2016-04-29 18:44:33
阅读次数:
205
#include
#include
#include
#include
#include
#include
#include
#include
#pragma comment(lib, "WINMM.LIB")
#define CMD_UP 1
#define CMD_DOWN 2
#define CMD_LEFT 4
#define CMD_RIGHT 8
#defin...
分类:
其他好文 时间:
2016-04-29 16:02:58
阅读次数:
272
一、查看系统负荷
如果你的电脑很慢,你或许想查看一下,它的工作量是否太大了。
在Linux系统中,我们一般使用uptime命令查看(w命令和top命令也行)。(另外,它们在苹果公司的Mac电脑上也适用。)
你在终端窗口键入uptime,系统会返回一行信息。
17:17 [root@y034]$ uptime
17:19:58 up 358 days, 23:23, 5 users, ...
分类:
系统相关 时间:
2016-04-29 15:52:10
阅读次数:
227
Given an integer matrix, find the length of the longest increasing path. From each cell, you can either move to four directions: left, right, up or do ...
分类:
其他好文 时间:
2016-04-29 14:21:49
阅读次数:
194
题目: Given a singly linked list, determine if it is a palindrome. Follow up: Could you do it in O(n) time and O(1) space? 题目解答:题目中要求在O(n)的时间复杂度和O(1)的空间 ...
分类:
其他好文 时间:
2016-04-28 20:13:36
阅读次数:
181