Skip to content

Instantly share code, notes, and snippets.

View outman's full-sized avatar
💭
I may be slow to respond.

outman

💭
I may be slow to respond.
View GitHub Profile
@outman
outman / curl_post_file
Created December 6, 2012 07:26
upload file to server by curl post
Client
<?php
class HTTPClient {
function __construct($url, $port = 80)
{
$this->url = $url;
$this->port = $port;
}
@outman
outman / yaf_nginx.conf
Created July 23, 2013 12:43
php framework yaf with nginx & php-fpm
server {
set $htdocs /home/libaochang/data/orange/public;
listen 80;
server_name xmprs.com;
location / {
root $htdocs;
autoindex on;
index index.php index.html;
if (!-e $request_filename){
@outman
outman / nginx conf php
Created December 13, 2013 07:46
nginx conf php
server {
listen 80;
server_name foo.com;
root /path;
index index.html index.htm index.php;
location / {
try_files $uri $uri/ /index.php;
}
@outman
outman / gist:a64860f83f011d707ed7
Last active August 29, 2015 14:20
vimrc unmap key
"""""""""""""""""""""""""""""""""
" https://github.com/amix/vimrc
"""""""""""""""""""""""""""""""""
set nu
set mouse=v
let g:NERDTreeWinPos = "left"
""""""""""""""""""""""""""""""""""
" => PHP section
@outman
outman / my_vim_config.vim
Created July 31, 2015 02:26
my_vim_config.vim
set nu
set mouse=v
let g:NERDTreeWinPos="left"
let g:NERDTreeWinSize=26
""""""""""""""""""""""""""""""""""
" => PHP section
""""""""""""""""""""""""""""""""""
@outman
outman / ci.py
Created April 3, 2019 12:37
双样本置信区间
import numpy as np
import scipy.stats as st
import random
apply_a = []
apply_b = []
## AB 两组人数各为 20000 人
for times in range(20000):
# AB 每组的报名次数