Skip to content

Instantly share code, notes, and snippets.

View haxianhe's full-sized avatar
🦍
Hello !

haxianhe haxianhe

🦍
Hello !
View GitHub Profile
@haxianhe
haxianhe / page.php
Last active April 30, 2020 06:22
分页
<?php
//获取分页
public static function getOffsetLimit($page = 1, $perpage = 50) {
if (empty($perpage)) {
$perpage = 50;
}
$page = max(1, $page);
$page = min(1000000, $page);
$perpage = max($perpage, 1);
$perpage = min(10000, $perpage);
@haxianhe
haxianhe / CSV.php
Created January 7, 2021 06:40
csv处理函数
<?php
/**
* @Desc: csv处理函数
* @User: haxianhe
* @Date: 2019/4/2
* @Time: 5:03 PM
*/
abstract class CSV
{
@haxianhe
haxianhe / LambdaTest.java
Last active December 27, 2021 13:16
Lambad case
package com.haxianhe;
import static com.haxianhe.ClassA.test;
import java.util.function.Predicate;
/**
* @author haxianhe <haxianhe@gmail.com>
* Created on 2021-12-27
*/