Skip to content

Instantly share code, notes, and snippets.

View wujunze's full-sized avatar
:octocat:
Learning

Panda wujunze

:octocat:
Learning
  • Open Source
  • Earth
  • 06:10 (UTC +08:00)
View GitHub Profile
@wujunze
wujunze / git_log.sh
Created September 18, 2018 03:00
git log pretty
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 07:37 — forked from edokeh/index.js
佛祖保佑,永无 BUG
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
@wujunze
wujunze / uploadFile.php
Last active July 6, 2016 08:38
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 December 3, 2019 10:06
php根据经纬度计算两点直接的距离
<?php
/**
* 计算两个坐标之间的距离(米)
* @param float $fP1Lat 起点(纬度)
* @param float $fP1Lon 起点(经度)
* @param float $fP2Lat 终点(纬度)
* @param float $fP2Lon 终点(经度)
* @return int
*/
function distanceBetween($mylonlat, $findlonlat){
<?php
/***********************
**功能:将多维数组合并为一位数组
**$array:需要合并的数组
**$clearRepeated:是否清除并后的数组中得重复值
***********************/
function array_multiToSingle($array,$clearRepeated=false){
if(!isset($array)||!is_array($array)||empty($array)){
return false;