摘要: 下载 用于数字世界的图形设计。在一个屡获殊荣的软件包中提供强大的工具和优雅的界面。因为做美丽的事情应该是一种快乐,而不是负担。Sketch支持每层多个填充,边框和阴影;具有强大的非破坏性布尔运算;智能像素对齐;并通过自动切片和多分辨率导出使导出变得轻而易举。向量工具和基本形状是基础;无论您是设计图标 阅读全文
posted @ 2020-05-06 20:10 haiwei.sun 阅读(432) 评论(0) 推荐(0) 编辑
摘要: Download Vectoraster是一种图形实用程序,用于基于图像或渐变创建基于矢量的光栅图案和半色调。栅格图案和点形状可以在整个图案中更改和变化,以产生许多不同的样式。始终显示结果栅格,并在您更改参数时实时更新。然后可以轻松地将结果作为矢量导出为EPS或PDF文件,将图像导出为JPEG,PN 阅读全文
posted @ 2020-03-03 00:21 haiwei.sun 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 1、更新yum源 yum update 2、配置系统yum源 vim /etc/yum.repos.d/mongodb-org-4.2.repo [mongodb-org-4.2] name = MongoDB Repository baseurl = https://repo.mongodb.or 阅读全文
posted @ 2020-03-02 10:51 haiwei.sun 阅读(205) 评论(0) 推荐(0) 编辑
摘要: https://summernote.org/ 阅读全文
posted @ 2020-02-24 08:10 haiwei.sun 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 11个网站后台模版 | Admin Dashboards | Bootstrap 1、AdminLTE 3 | 后台管理 | administration | Bootstrap 3 AdminLTE提供了一系列响应式,可重用且常用的组件。它具有一千多个图标,定制插件,六种不同外观以及更多功能。 当 阅读全文
posted @ 2020-02-09 16:08 haiwei.sun 阅读(871) 评论(0) 推荐(0) 编辑
摘要: 通用的年度报告、简约、31个页面丰富多彩。 下载 阅读全文
posted @ 2020-01-17 13:29 haiwei.sun 阅读(117) 评论(0) 推荐(0) 编辑
摘要: Home Replace Pioneer is a professional text, binary and internet file search, replace and conversion utility, as well as an advanced batch file rename 阅读全文
posted @ 2019-08-21 11:28 haiwei.sun 阅读(530) 评论(0) 推荐(0) 编辑
摘要: https://github.com/astaxie/build-web-application-with-golang/blob/master/zh/02.3.md 流程控制 流程控制在编程语言中是最伟大的发明了,因为有了它,你可以通过很简单的流程描述来表达很复杂的逻辑。Go中流程控制分三大类:条 阅读全文
posted @ 2019-02-28 09:18 haiwei.sun 阅读(238) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/ea482004f32f 场景 项域名描述 pc端 www.one.com 用于pc端访问官网 移动端 m.one.com 用于移动端访问 现在的需求是这样,在pc端访问www.one.com和m.one.com都跳转到www.one.com 而在 阅读全文
posted @ 2019-02-25 15:50 haiwei.sun 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 1,'main'=>222], ['id'=>2,'main'=>333], ['id'=>2,'main'=>444], ['id'=>1,'main'=>111], ['id'=>3,'main'=>122], ]; echo ""; array_multisort(array_column($arr,'main'),SORT... 阅读全文
posted @ 2019-02-21 10:54 haiwei.sun 阅读(104) 评论(0) 推荐(0) 编辑
摘要: https://blog.liuguofeng.com/p/4630 服务端开启 WebSocket,使用 WorkerMan + phpSocket.io 开启的端口为 2120,访问为 ws://wanaioa.unetu.net:2120/ 由于微信小程序只能使用 443 端口,需将域名的 4 阅读全文
posted @ 2019-02-21 10:50 haiwei.sun 阅读(10290) 评论(0) 推荐(0) 编辑
摘要: https://gitee.com/help/articles/4181#article-header0 码云提供了基于SSH协议的Git服务,在使用SSH协议访问仓库仓库之前,需要先配置好账户/仓库的SSH公钥。 你可以按如下命令来生成 sshkey: ssh-keygen -t rsa -C " 阅读全文
posted @ 2019-02-19 18:56 haiwei.sun 阅读(1159) 评论(0) 推荐(0) 编辑
摘要: 将本地的项目上传到码云 1、码云上创建一个项目 testgit (名字随你) 2、本地创建一个文件夹D:/testgit,然后使用git bash 3、cd 到本地文件夹中D:/testgit, 4、使用 git init 命令 ,初始化一个git 本地仓库(项目),会在本地创建一个 .git 的文 阅读全文
posted @ 2019-02-19 18:54 haiwei.sun 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 系统发现websocket每隔10分钟自动断开连接,搜了很多博客都说设置一下nginx的 keepalive_timeout proxy_connect_timeout proxy_send_timeout proxy_read_timeout 这四个字段的时长即可,然而好像并不奏效。遂采取心跳包的 阅读全文
posted @ 2019-02-19 17:01 haiwei.sun 阅读(6723) 评论(0) 推荐(0) 编辑
摘要: 取得相隔秒数 SELECT UNIX_TIMESTAMP('2012-06-09 00:10:11')-UNIX_TIMESTAMP('2012-06-09 00:09:12') 取得相隔分钟数 SELECT round((UNIX_TIMESTAMP('2012-06-09 00:10:11')- 阅读全文
posted @ 2018-12-20 09:21 haiwei.sun 阅读(2514) 评论(1) 推荐(0) 编辑
摘要: /* * 1.纬度1,经度1,纬度2,经度2 * 2.返回结果是单位是KM。 * 3.保留一位小数 */ function getDistance($lat1,$lng1,$lat2,$lng2) { //将角度转为狐度 $radLat1 = deg2rad($lat1);//deg2rad()函数将角度转换为弧度 $radLat2 = deg2rad($lat2); $rad... 阅读全文
posted @ 2018-12-11 19:26 haiwei.sun 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 获取附近: http://blog.51cto.com/imguowei/1952035 阅读全文
posted @ 2018-12-11 17:23 haiwei.sun 阅读(705) 评论(0) 推荐(0) 编辑
摘要: Ctrl+1 快速修复(最经典的快捷键,就不用多说了)Ctrl+D: 删除当前行Ctrl+Alt+↓ 复制当前行到下一行(复制增加)Ctrl+Alt+↑ 复制当前行到上一行(复制增加)Alt+↓ 当前行和下面一行交互位置(特别实用,可以省去先剪切,再粘贴了)Alt+↑ 当前行和上面一行交互位置(同上 阅读全文
posted @ 2018-12-07 14:24 haiwei.sun 阅读(376) 评论(0) 推荐(0) 编辑
摘要: sudo vim ~/.bash_profile 更改php安装路径 /Applications/MAMP/conf/apache/extra/httpd-php.conf 更改加载 #LoadModule php5_module /Applications/MAMP/bin/php/php5.6. 阅读全文
posted @ 2018-12-06 10:49 haiwei.sun 阅读(1776) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/cb5b489c8d93 安装装了MAMP集成环境,打开终端输入:which php,会显示/usr/bin/php,这个就是是系统自带的PHP版本,要切换默认的PHP版本为MAMP下的PHP,需要修改系统bash_profile并执行这个shel 阅读全文
posted @ 2018-12-06 09:11 haiwei.sun 阅读(935) 评论(0) 推荐(0) 编辑
摘要: https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Introduction_to_Object-Oriented_JavaScript#JavaScript_Object_Oriented_Programming avaScript 的核 阅读全文
posted @ 2018-12-05 17:15 haiwei.sun 阅读(130) 评论(0) 推荐(0) 编辑
摘要: https://segmentfault.com/a/1190000016003454 Axios 是一个基于 promise 的 HTTP 库,可以用在浏览器和 node.js 中。在vue项目之中使用axios是一个非常明智的选择,因为vue官方已经宣称不再维护vue-resource,并且推荐 阅读全文
posted @ 2018-11-29 15:29 haiwei.sun 阅读(1625) 评论(0) 推荐(1) 编辑
摘要: brew install -vd --use-wmf --use-exr --with-quantum-depth-8 --enable-hdri --use-lqr --use-rsvg --with-magick-plus-plus imagemagickbrew reinstall image 阅读全文
posted @ 2018-11-13 10:11 haiwei.sun 阅读(700) 评论(2) 推荐(0) 编辑
摘要: https://blog.csdn.net/snow_small/article/details/79173575 1、安装ImageMagic [root@localhost download]# wget http://www.imagemagick.org/download/ImageMagi 阅读全文
posted @ 2018-11-13 09:42 haiwei.sun 阅读(2313) 评论(1) 推荐(0) 编辑
摘要: from: https://www.hawu.me/coding/271 hp是通过imagick拓展来引用image magick这个图像处理库的。所以在安装时其实是安装两个软件包,一个是image magick,一个是imagick。 文章目录 [隐藏] 1 Windows安装 2 CentOS 阅读全文
posted @ 2018-11-12 11:20 haiwei.sun 阅读(928) 评论(0) 推荐(0) 编辑
摘要: https://ninghao.net/blog/5132 安装 script 包 打开 Atom 编辑器的 Install Packages,搜索 script ,安装一下这个包。完成以后打开这个包去看一下使用说明。比如在 macOS 上,快捷键 cmd + I,可以运行代码,shift + cm 阅读全文
posted @ 2018-10-24 17:31 haiwei.sun 阅读(102) 评论(0) 推荐(0) 编辑
摘要: public function ValidatorTest(Request $request) { $data = $request->input(); $rules = [ 'username'=>'required|min:2|max:20', 'email'=>'required|email' ... 阅读全文
posted @ 2018-10-22 17:08 haiwei.sun 阅读(6761) 评论(3) 推荐(0) 编辑
摘要: To install, just type: Add this to your .bash_profile: Once installed use pyenv to install python versions you need: Run this command after you instal 阅读全文
posted @ 2018-10-18 10:21 haiwei.sun 阅读(108) 评论(3) 推荐(0) 编辑
摘要: https://oomusou.io/phpstorm/debug-testing/ 很羨慕 Visual Studio 測試與除錯功能嗎?剛安裝好的 PhpStorm 只能算是一個文字編輯器,一旦設定了 PHP Interpreter、Xdebug 與 PHPUnit 之後,PhpStorm 就搖 阅读全文
posted @ 2018-09-20 13:39 haiwei.sun 阅读(210) 评论(0) 推荐(0) 编辑
摘要: UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect]; btn.frame = CGRectMake(100, 100, 100, 40); [btn setTitle:@"button" forState:UIControlStateNormal]; [btn setTitl... 阅读全文
posted @ 2018-02-20 09:20 haiwei.sun 阅读(66) 评论(0) 推荐(0) 编辑
摘要: UILabel *label = [[UILabel alloc] init]; label.text = @"nininihaonininihaonininihaonininihaonininihaonininihao"; label.frame = CGRectMake(100, 100, 160, 80); label.backgroundColor = [... 阅读全文
posted @ 2018-02-19 18:18 haiwei.sun 阅读(76) 评论(0) 推荐(0) 编辑
摘要: if条件语句 语法:if 条件1: 执行的内容1elif 条件2: 执行的内容2elif 条件3: 执行的内容3else: 执行的内容4 eg:#! /usr/bin/env python#coding:utf-8print "请输入任意一个整数数字:"number = int(raw_input( 阅读全文
posted @ 2017-09-14 09:01 haiwei.sun 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 判断是否安装: crontab 安装: yum -y install vixie-cron yum -y install crontabs 启动: systemctl start crond.service 关闭: systemctl stop crond.service 重启: systemctl 阅读全文
posted @ 2017-08-25 18:27 haiwei.sun 阅读(4061) 评论(0) 推荐(0) 编辑
摘要: What is this? RediSearch-PHP is a PHP client library for the RediSearch module which adds Full-Text search to Redis. Requirements Redis running with t 阅读全文
posted @ 2017-08-16 09:03 haiwei.sun 阅读(391) 评论(0) 推荐(0) 编辑
摘要: XunSearch(讯搜)的使用教程步骤 http://blog.csdn.net/flancklin/article/details/52315968 2013年7月12日/2条评论 XunSearch是一款很不错的中文全文检索工具使用xunsearch快速构建自己的PHP全文搜索引擎。 需要注意 阅读全文
posted @ 2017-08-15 13:06 haiwei.sun 阅读(512) 评论(0) 推荐(0) 编辑
摘要: 3600 * 24 * 30 * 2, // 选择的数据库。 'db_id' => 0 ); protected $expireTime; protected $host; protected $port; private function __construct() { $config =... 阅读全文
posted @ 2017-08-07 09:45 haiwei.sun 阅读(244) 评论(1) 推荐(0) 编辑
摘要: mac下PHP安装扩展phpreids 一.mac自带php安装phpredis 二.mac下mamp安装phpredis $ cd phpredis $ sudo phpize $ sudo ./configure --with-php-config=/Applications/MAMP/bin/ 阅读全文
posted @ 2017-08-06 09:46 haiwei.sun 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 一准备工作二 安装redis服务器三redis服务器的启动、使用和退出四 配置php使用redis服务五 常见问题 一 准备工作 安装homebrew安装php、nginx(或apache)或集成环境 二 安装redis服务器 通过homebrew安装 brew install redis/usr/ 阅读全文
posted @ 2017-08-06 07:47 haiwei.sun 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 一,先说一下为什么要分表 当一张的数据达到几百万时,你查询一次所花的时间会变多,如果有联合查询的话,我想有可能会死在那儿了。分表的目的就在于此,减小数据库的负担,缩短查询时间。 根据个人经验,mysql执行一个sql的过程如下:1,接收到sql;2,把sql放到排队队列中 ;3,执行sql;4,返回 阅读全文
posted @ 2017-08-05 23:32 haiwei.sun 阅读(107) 评论(0) 推荐(0) 编辑
摘要: $lock_status = $redis->get('lock_state'); if ($lock_status == 0 || empty($lock_status)) { $redis->set('lock_state', 3600, 1); #操作上锁 #操作代码 $redis->set('lock_state', 3600, 0); #操作解锁 } else ... 阅读全文
posted @ 2017-06-15 15:35 haiwei.sun 阅读(1183) 评论(0) 推荐(1) 编辑
返回顶部