沿着贝塞尔曲线做动画效果图如下:源码://// RootViewController.m//// Copyright (c) 2014年 Y.X. All rights reserved.//#import "RootViewController.h"#import "YXGCD.h"@inte.....
分类:
其他好文 时间:
2014-07-16 23:24:49
阅读次数:
258
最近突然对Go语言产生了兴趣,主要是因为在使用python的时候遇到了一些不爽的问题,然后发现了Go。Go是Google出的一个动态语言,语法和C++接近,性能也非常的好,而且还支持编译成exe发布,并且不依赖任何虚拟机(其实是打包在exe里面了),这种好语言怎么能够错过?所以便一时兴起,开始学习了...
Ins sys: 1.next all, then reboot. 2.login system use rootCfg sys: 1.keep etc0 work: # vi /etc/sysconfig/network-scripts/ifcfg-eth0 change: ONBOOT=yes ...
分类:
其他好文 时间:
2014-07-16 23:12:27
阅读次数:
378
>>> import psutil获取cpu信息>>> psutil.cpu_times()scputimes(user=128258.38, nice=12.29, system=88369.31, idle=6713420.33, iowait=3290.63, irq=1069.04, sof...
分类:
编程语言 时间:
2014-07-16 23:11:20
阅读次数:
365
There are simply no limits on how many bags of jute and denim are available. You can find them in all sorts of patterns and colors that bring joy to u...
分类:
其他好文 时间:
2014-07-16 23:09:32
阅读次数:
190
Python 获取新浪微博的热门话题 (API)...
分类:
编程语言 时间:
2014-06-28 07:51:56
阅读次数:
195
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.
For example:
Given the below binary tree and sum
= 22,
5
/ ...
分类:
其他好文 时间:
2014-06-28 07:31:28
阅读次数:
214
为何写脚本每次用新的机器,都要把python的环境给安装一遍~so,这是一件很操蛋的问题,就shell练手写了一个code,嘿嘿,渣渣技术~测试环境我爱vagrant,一条命令直接还原成干净的测试环境,大爱啊~脚本如下:#!/bin/bash
#Auther:zhuima
#Date:2014-06-26
#Function:createpython..
分类:
编程语言 时间:
2014-06-28 06:37:27
阅读次数:
375
学了saltstack有一段时间了,说实话,对于一个python爱好者来说salt源代码真是一个宝藏埃于是乎去看了源代码,发现所有问题都卡在了底层通信上,在看saltstack之前都不知道有一个这么好的zeromq通信协议。现在就来记录关于zeromq的学习笔记。zmq是什么:zmq是基于之前协议(tcp,..
分类:
其他好文 时间:
2014-06-28 00:47:40
阅读次数:
583
安装过程需要联网1.下载安装python因为fabric需要运行在python2.5以上版本,所以下载包的时候要注意版本.我用CentOS5,自带了Python2.4.3,所以需要先升级.[root@clust2~]#tarzxvfPython-2.7.7.tgz[root@clust2~]#mvPython-2.7.7python-2.7.7[root@clust2~]#cdpython-2.7.7/[root@..
分类:
其他好文 时间:
2014-06-28 00:08:14
阅读次数:
226