原创 c++時間增加
// 123.cpp : 定義控制檯應用程序的入口點。//#include "stdafx.h"#include <vector>#include <iostream>#include <stdio.h>#include <windows.
原创 perl 抓取網頁內容
抓取×××網歷年排列5數據 use LWP::Simple; use FileOperate;my $src = 'http://www.17500.cn/p5/all.php';my $FileOperate = FileOperate
原创 C++讀寫配置文件
#include<iostream> #include <fstream> #include <vector> #include<string> using namespace std; class CConfigOperator { p
原创 C++ 寫Log
class MYLog { public: ~MYLog(void); static MYLog * Log(); bool OpenLogFile(const string &sFilePath); void Message(co
原创 ceph-dash一鍵安裝
start_dash.sh tar -zxvf ./ceph-dash.tar.gz cd ceph-dash perl start.pl stop_dash.sh value=`ps -ef|grep "python ./
原创 我的友情鏈接
51CTO博客開發
原创 cocos2dx[3.2](15)——顏色混合BlendFunc
本節參考:http://goldlion.blog.51cto.com/4127613/7678011、概念 “混合”是指兩種顏色的疊加方式。在新圖片將要渲染畫到屏幕上的時候,將用在新圖片中的紅、綠、藍和透明度信息,與屏幕上已經存在的
原创 python 定時器
__author__ = 'root' import time from CTimeHandle import CTimeHandle class RepeatableTimer(object): def __init__(sel
原创 python 文件處理
__author__ = 'root' import os import shutil class CFileOperator(object): def __init__(self): self._m_FileP
原创 python 時間處理
__author__ = 'root' from datetime import * TIMEFORAT = "%Y-%m-%d %H:%M:%S" class CTimeHandle(): def __init__(self
原创 cocos2d 字體顏色
#ifndef __CCTYPES_H__#define __CCTYPES_H__#include <string>#include "cocoa/CCGeometry.h"#include "CCGL.h"NS_CC_BEGIN/**
原创 我的友情鏈接
51CTO博客開發
原创 cocos2dx 粒子系統CCParticleSystem
【嘮叨】 粒子系統CCParticleSystem,第一次聽到這名詞,感覺好高級的樣子啊。 其實在遊戲中我們也經常能見到的,像燃燒的火焰、飄散的煙霧、爆炸、暴風雪、流星、雨水、閃電等等都是粒子特效。 給大家看一張甜美的粒子
原创 ocos2dx常見的46種動作+22種特效詳解
bool HelloWorld::init(){ ////////////////////////////// // 1. super init first if ( !CCLayer::init() ) { r
原创 COCOS2DX CCCALLBACK
c++ 11 基礎 : std::function 類模版 std::function是一種通用、多態的函數封裝。std::function的實例可以對任何可以調用的目標進行存儲、複製、和調用操作,這些目標包括函數、la