Skip to content

Instantly share code, notes, and snippets.

:octocat:
Learning

Panda wujunze

:octocat:
Learning
Block or report user

Report or block wujunze

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wujunze
wujunze / git_log.sh
Created Sep 18, 2018
git log pretty
View git_log.sh
git log --color --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%C(cyan)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit
git log --color --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%C(cyan)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
git log --color --stat --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%C(cyan)%h%Creset -%C(yellow)%d%Cblue %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit
git log --graph --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%C(cyan)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit
@wujunze
wujunze / index.js
Created May 3, 2018 — forked from edokeh/index.js
佛祖保佑,永无 BUG
View index.js
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
@wujunze
wujunze / uploadFile.php
Last active Jul 6, 2016
PHP文件上传类(支持单文件和多文件)
View uploadFile.php
<?php
/**
* Created by PhpStorm.
* User: wujunze
* Blog: https://wujunze.com/
* Date: 2016/6/25
* Time: 18:44
*/
/**
* PHP通用文件上传类
@wujunze
wujunze / distanceBetween.php
Last active Dec 3, 2019
php根据经纬度计算两点直接的距离
View distanceBetween.php
<?php
/**
* 计算两个坐标之间的距离(米)
* @param float $fP1Lat 起点(纬度)
* @param float $fP1Lon 起点(经度)
* @param float $fP2Lat 终点(纬度)
* @param float $fP2Lon 终点(经度)
* @return int
*/
function distanceBetween($mylonlat, $findlonlat){
View array_multiToSingle.php
<?php
/***********************
**功能:将多维数组合并为一位数组
**$array:需要合并的数组
**$clearRepeated:是否清除并后的数组中得重复值
***********************/
function array_multiToSingle($array,$clearRepeated=false){
if(!isset($array)||!is_array($array)||empty($array)){
return false;
You can’t perform that action at this time.