Coder Social home page Coder Social logo

后台权限 about mingyun.github.io HOT 1 OPEN

mingyun avatar mingyun commented on August 19, 2024
后台权限

from mingyun.github.io.

Comments (1)

mingyun avatar mingyun commented on August 19, 2024
/**
 * 进制转换器
 * BHD Converter
 * @package library\logic
 */
class ConvertLogic
{
    public static $dict = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
    public static $patch = "0";
    public static function set($dict, $patch){
        self::$dict = $dict;
        self::$patch = $patch;
    }
    public static function convert($str, $from, $to, $min_length = null)
    {
        if ($from !== 10) {
            $fromBase = self::convertTo10($str, $from);
        } else {
            $fromBase = $str;
        }
        $toBase = self::convert10($fromBase, $to);
        if (!is_null($min_length)) {
            $strLength = strlen($toBase);
            while ($strLength < $min_length) {
                $toBase = self::$patch . $toBase;
                $strLength++;
            }
        }
        return $toBase;
    }
    private static function convert10($num, $to = 62)
    {
        $dict = self::$dict;
        $ret = '';
        do {
            $ret = $dict[bcmod($num, $to)] . $ret;
            $num = bcdiv($num, $to);
        } while ($num > 0);
        return $ret;
    }
    private static function convertTo10($num, $from = 62)
    {
        $num = strval($num);
        $dict = self::$dict;
        $len = strlen($num);
        $dec = 0;
        for ($i = 0; $i < $len; $i++) {
            $pos = strpos($dict, $num[$i]);
            $dec = bcadd(bcmul(bcpow($from, $len - $i - 1), $pos), $dec);
        }
        return $dec;
    }
}https://github.com/AxiosCros/tpr-cms/blob/master/library/logic/ConvertLogic.php

$counts = RedisFacade::hmget('room_connection_set_count', $rooms);
            return array_map('intval', array_combine($rooms, $counts));
desc select a.* from  package a,(select max(id) m,user_id from package GROUP BY user_id,type) b where a.user_id=b.user_id and a.id=b.m ORDER BY a.id limit 100;

desc select a.* from (select *from  package ORDER BY id desc) a  where a.id> 0 GROUP BY user_id,type ORDER BY a.id limit 100;
$itemSubjects.="\t".$itemSubjects
PHPExcel_Calculation_Exception: Sheetname!B3 -> Formula Error: Unexpected , in /application/class/vendor/phpoffice/phpexcel/Classes/PHPExcel/Cell.php:291
我们输入命令:contrab -e

然后会打开一个编辑器,在其中输入下面这个命令:

0 5 * * * cd /home/lincheung; sh PP_insert_db.sh

名花贵族免洗喷雾 https://search.jd.com/Search?keyword=%E5%90%8D%E8%8A%B1%E8%B4%B5%E6%97%8F%E5%85%8D%E6%B4%97%E5%96%B7%E9%9B%BE&enc=utf-8&wq=%E5%90%8D%E8%8A%B1%E8%B4%B5%E6%97%8F%E5%85%8D%E6%B4%97%E5%96%B7%E9%9B%BE&pvid=c3a2e621185e4fe4a7206a5fcbfce00f

from mingyun.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.