This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('IN_FORTH') or die('Access Denied.'); | |
class MySql { | |
public $queryCount = 0; | |
public $conn; | |
public $result; | |
//构造函数 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
#-*- coding:utf8 -*- | |
''' | |
Created on 2014-06-02 | |
# QQ:263967133 | |
# pings运行一般运行一次就够了,自己选一个ip段 | |
# google ip地址段 | |
# 64.233.160.0 - 64.233.191.255 | |
# 66.102.0.0 - 66.102.15.255 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#@author forthxu.com | |
#说明 | |
#找到获取apk信息有两种方式 | |
#一种解压后读取AndroidManifest.xml,解压最好不要通过unzip因为获取的是压缩过的内容,读取不准确,可用apktool反编译解压 | |
#另外一种可通过aapt也就是官方sdk中提供的工具读取信息 | |
#aapt和apktoool工具 https://code.google.com/p/android-apktool | |
#可能存在的问题 http://www.qiansw.com/centos-apk-apktool.html | |
#扩展阅读,汉化apk http://bbs.dospy.com/thread-9991523-1-354-1.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#叫床声可以去www.nsjnqc.com找或百度 | |
files_dir='/workspace/work/other/zaoan/'; | |
musics_dir='/workspace/work/other/mp3/'; | |
i=0; | |
j=0; | |
files=(); | |
musics=(); | |
for file in $(ls ${files_dir});do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
musics_dir='/workspace/work/other/mp3/'; | |
j=0; | |
musics=(); | |
for file in $(ls ${musics_dir});do | |
musics[$j]=$file; | |
let "j+=1"; | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# redis - this script starts and stops the redis-server daemon | |
# | |
# chkconfig: - 85 15 | |
# description: Redis is a persistent key-value database | |
# processname: redis-server | |
# config: /etc/redis/redis.conf | |
# config: /etc/sysconfig/redis | |
# pidfile: /var/run/redis.pid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// javac test3.java | |
// java test3 | |
import java.security.Key; | |
import javax.crypto.Cipher; | |
import javax.crypto.SecretKeyFactory; | |
import javax.crypto.spec.DESedeKeySpec; | |
import javax.crypto.spec.IvParameterSpec; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#coding:utf-8 | |
# import sys | |
# reload(sys) | |
# sys.setdefaultencoding('utf-8') | |
import types | |
import urllib2 | |
import json | |
import MySQLdb | |
import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @Date : 13-12-5 下午12:46 | |
* @File : Pagination.php | |
* @Desc : | |
* * 独立分页类 | |
* * 调用方式: | |
* * $pagenation = new Pagination( 4, 10, 200 ); // 4(第一个参数) = currentPage, 10(第二个参数) = pageSize, 200(第三个参数) = 总数 | |
* * $pagenation->set_link( 'http://www.exmple.com' ); | |
* * echo $pagenation->create(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*! | |
* Medoo database framework | |
* http://medoo.in | |
* Version 0.9.6 | |
* | |
* Copyright 2014, Angel Lai | |
* Released under the MIT license | |
*/ | |
class medoo |
OlderNewer