Skip to content

Instantly share code, notes, and snippets.

View llychao's full-sized avatar
👋
hello world!

萌萌站起来 llychao

👋
hello world!
View GitHub Profile
@llychao
llychao / browser-file.html
Created August 11, 2020 11:53
浏览器上展示当前目录文件树
<meta http-equiv="refresh" content="0;url=../">
@llychao
llychao / auth-re.php
Created August 11, 2020 11:49
正则实现权限控制
<?php
/**
* 验证权限
* @param $path : controller/action
* @param $rount_rule
* array (
'allow' =>
array (
'test/test',
'Doc/*', //允许project/所有方法
@llychao
llychao / tree.php
Created August 11, 2020 11:47
树(导航树、权限树)
<?php
if($_POST){
var_dump($_POST);
die;
}
function dd(){
$params = func_get_args()?:null;
foreach ($params as $k=> $param){
@llychao
llychao / xlsx-merge.py
Created August 11, 2020 11:39
合并当前目录指定xlsx文件夹里所有excel文件
# conding=utf-8
# python3版本
# @说明:xlrd支持xls、xlsx读取; xlsxwriter用于写入一个新的excel,支持样式
# @author:llychao<lychao_vip@163.com>
# @date:2020-02-18
import xlsxwriter
import xlrd
import os
from datetime import datetime
@llychao
llychao / github-clear.go
Created August 11, 2020 11:25
go批量清空当前github账号下的所用仓库
//@author:llychao<lychao_vip@163.com>
//@date:2020-02-18
//@依耐:chromedriver驱动,下载地址 http://chromedriver.storage.googleapis.com/index.html
package main
import (
"flag"
"fmt"
"github.com/tebeka/selenium"
"github.com/tebeka/selenium/chrome"