cheat工具是一款非常适合linux系统管理员的一款工具,他能帮助你很简单快捷的熟悉linux下系统命令的使用方法,如下图:cheat的安装很简单:cheat有两个依赖工具python和pip,所以在安装cheat之前,需要安装python和pip。#yuminstallpython
#yuminstallpython-pip通过git下载che..
分类:
系统相关 时间:
2014-09-09 16:21:03
阅读次数:
304
Problem Description:
Given a collection of numbers that might contain duplicates, return all possible unique permutations.
For example,
[1,1,2] have the following unique permutations:
[1,1,2...
分类:
其他好文 时间:
2014-09-09 16:17:29
阅读次数:
200
Source:Django Version 1.6 View source analysis about edit.py
先放在自己网站 现在在这里PO出来希望对大家有些帮助 以前写的 今儿才记得 以后再续吧
from __future__ import unicode_literals
from django.core.exceptions import ImproperlyCon...
分类:
其他好文 时间:
2014-09-09 16:13:29
阅读次数:
229
Tried to install Ubuntu desktop on my Dell Inspiron 1420 but failed, finally work around it and solved the problem. All the problems encountered might be caused by my computer graphical card "NVIDIA GeForece 8400M GS", it has hardware failure before and I ...
分类:
其他好文 时间:
2014-09-09 16:13:09
阅读次数:
266
Source:Django Version 1.6 View source analysis about list.py
原址在上面 用Django 1.6搭建的 勉强能见人 嘿嘿 源码分析看起来是不靠谱的 反正就是酱油的很
class MultipleObjectMixin(ContextMixin):
"""
A mixin for views manipulatin...
分类:
其他好文 时间:
2014-09-09 16:12:09
阅读次数:
231
原文:http://blog.csdn.net/lwei_998/article/details/6093807The UNION operator returns only distinct rows that appear in either result,while the UNION ALL...
分类:
其他好文 时间:
2014-09-09 15:53:08
阅读次数:
240
--判断表是否存在,如果存在则删除declare num number; begin select count(1) into num from all_tables where TABLE_NAME = 'EMP' and OWNER='SCOTT'; if...
分类:
数据库 时间:
2014-09-09 15:45:38
阅读次数:
254
类的初始化函数 __init__,类似于C++中的构造函数类的中的变量分为【对象变量】和【类变量】【对象变量】用self引用,self类似于C++中的this指针,类中除了静态函数之外,所有函数的第一个参数都是self,要显示写出(这一点与C++不同)【类变量】类似于C++中的静态变量,引用方法是【...
分类:
编程语言 时间:
2014-09-09 15:35:18
阅读次数:
245
//// main.cpp// proj1//// Created by Yuxin Kang on 8/24/14.// Copyright (c) 2014 Yuxin Kang. All rights reserved.//#include #include #include #i...
分类:
其他好文 时间:
2014-09-09 15:16:18
阅读次数:
220
声明执行程序#!/bin/bash用来告诉系统使用/bin/bash 程序来执行该脚本。譬如python 脚本,可以这样写:#!/usr/bin/python赋值和引用 赋值公式:变量名=值取一个变量的值的时候,需要在变量名前面加上$ 符号,譬如:var="hello bash"echo $var如...
分类:
系统相关 时间:
2014-09-09 15:14:48
阅读次数:
279