Skip to content

Instantly share code, notes, and snippets.

View ety001's full-sized avatar
🎯
Focusing

ety001 ety001

🎯
Focusing
View GitHub Profile
# coding=utf-8
ceil_data = u'否'
row_data_list = []
row_data_list.append( "'" + str(ceil_data) + "'" )
@ety001
ety001 / send_post_data_by_filegetcontents.php
Last active September 8, 2015 21:16
send_post_data_by_filegetcontents.php
<?php
function send_mail() {
$url = 'http://sendcloud.sohu.com/webapi/mail.send.json';
//不同于登录SendCloud站点的帐号,您需要登录后台创建发信子帐号,使用子帐号和密码才可以进行邮件的发送。
$param = array('api_user' => 'ety001_test_NfyMuy',
'api_key' => 'uAurAI3tVzbId2Kq',
'from' => '[email protected]',
'fromname' => 'SendCloud测试邮件',
'to' => '[email protected]',
'subject' => '来自SendCloud的第一封邮件!',
@ety001
ety001 / pip.sh
Created March 2, 2015 19:28
pip setup
wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
python get-pip.py
@ety001
ety001 / htmltag.php
Created March 23, 2015 07:23
处理富文本为App友好显示
<?php
/**
* author ety001
* desc 处理富文本为APP可显示的形式
* return str
*/
function i_remove_space_and_htmltag($str)
{
$str = preg_replace('/(<\/[\w]+>)/', "\r\n", $str);
$str = str_replace('<br>', "\r\n", $str);
@ety001
ety001 / wx_api.php
Last active August 29, 2015 14:18
微信卡券api接口
<?php
/********************************************************
* @author Kyler You <QQ:2444756311>
* @link http://mp.weixin.qq.com/wiki/home/index.html
* @version 2.0.1
* @uses $wxApi = new WxApi();
* @package 微信API接口 陆续会继续进行更新
********************************************************/
class WxApi {
@ety001
ety001 / style.css
Created May 25, 2015 12:28
style.css
/*
-----------------------------------------------------
Stylesheet Guide
-----------------------------------------------------
1. Default stylesheets
2. General classes
3. Basic Elements
3.1 Typography
3.2 Buttons
@ety001
ety001 / ad.html
Created June 12, 2015 15:57
ldsn_google_adsense
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- ldsn -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-7536831447654223"
data-ad-slot="2809102979"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
function __wget() {
: ${DEBUG:=0}
local URL=$1
local tag="Connection: close"
local mark=0
if [ -z "${URL}" ]; then
printf "Usage: %s \"URL\" [e.g.: %s http://www.google.com/]" \
"${FUNCNAME[0]}" "${FUNCNAME[0]}"
return 1;
@ety001
ety001 / uppercasemoney.php
Last active September 8, 2015 07:43
数字转汉字大写
<?php
namespace Data\Util;
class Num
{
static function uppercasemoney($money)
{
//数字从右到左的顺序取出并转换为汉字,存入$all
$money = number_format($money, 2, '.', '');
$cnums=array("零","壹","贰","叁","肆","伍","陆","柒","捌","玖");
@ety001
ety001 / config.json
Last active October 11, 2018 04:48
ss
{
"server":"0.0.0.0",
"server_port":8888,
"local_port":1080,
"password":"woqimm",
"method": "aes-256-cfb",
"timeout":600
}