批量更新Git项目脚本

9-26 3,364 views

在平时的工作中,遇到一些优秀的开源项目,如volley、picasso、okhttp等,如果想阅读它的源代码,我通常都会clone项目到本地的GitHub文件夹,这样大神们后面...
阅读全文 0

php imagick 解决 IOS图片上传翻转问题

9-14 18,683 views

//参数:php imagick对象 public function autorotate(Imagick $image) { switch ($image->getImageOrientation()) { case Imagick::ORIENTATION_...
阅读全文 21

阿里云Linux挂载云盘

8-28 4,342 views

1.先用fdisk -l 查看分区 2.看到有一个536.9GB的硬盘未分区,/dev/vdb,然后执行fdisk /dev/vdb ,依次n p 1 ,2次回车,wq 回车。完成   3.再次执行fdis...
阅读全文 0

图片轮播插件 jquery-galleryview

8-17 3,018 views

例: 下载:js 使用方法: <link type="text/css" rel="stylesheet" href="galleryview.css" /> <script type="text/javascript" src="js/jquery-...
阅读全文 0

好用的网页图片浏览插件photoswipe(支持PC、手机,触摸滑动等等)

8-17 3,022 views

官网地址: http://photoswipe.com/ 下载地址: https://github.com/dimsemenov/PhotoSwipe 第一步:引入JS CSS <!-- Core CSS file --> <link re...
阅读全文 0

使用CSS 让图片上下左右居中。

8-16 2,918 views

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>测试</title> <style type="...
阅读全文 0

简单的php生成静态html代码

8-09 3,264 views

<?php //参数一 要读取的php文件, 参数二 生成目标的静态文件路径 creatStaticHtml('test3.php','test3.html'); function creatStaticHtml(...
阅读全文 0

使用ffmpeg下载m3u8

7-18 11,354 views

ffmpeg -i 地址 -strict -2 outfile 使用yum安装ffmpeg .参考:https://rpmfusion.org/Configuration # Fedora 22 and later: $ sudo dnf install https:/...
阅读全文 0

python 执行cmd命令并获取pid

7-06 7,608 views

process = subprocess.Popen('cmd命令') pid = process.pid print(pid)
阅读全文 0

php生成随机用户识别码

6-26 3,305 views

function make_coupon_card() { $code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; $rand = $code[rand(0,25)] .strtoupper(dechex(date('m'))) ...
阅读全文 0