-
Mac OS X
system settings
>Security & Privacy
>privacy
tab -
Select Full Disk Access and click plus icon.
-
Add terminal in the list ( in my case iTerm)
-
Restart iTerm
-
Run command in iterm:
$ cd /private/etc && sudo touch ./exports
-
Start virtual machine trough vargrant: Profit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://3gimg.qq.com/lightmap/components/locationCluster/index.html?type=0&marker=coord:39.974386,116.787409;coordtype:1;title:豪杰装饰建材;addr:河北省廊坊市三河市冯家府神威北路燕郊精工园北300米&key=YYFBZ-EGVWU-DSCVO-BLAPO-5XJWQ-N5BVS&referer=myapp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<meta name="viewport" content="target-densitydpi=device-dpi,width=640,user-scalable=no"/> | |
<style> | |
html { | |
-webkit-text-size-adjust: none; | |
-webkit-user-select: none; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use Symfony\Component\Console\Input\InputArgument; | |
class RunFile extends Command | |
{ | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#downpdf").on("click", function() { | |
//获取节点高度,后面为克隆节点设置高度。 | |
var height = $(TargetNode).height() | |
//克隆节点,默认为false,不复制方法属性,为true是全部复制。 | |
var cloneDom = $(TargetNode).clone(true); | |
//设置克隆节点的css属性,因为之前的层级为0,我们只需要比被克隆的节点层级低即可。 | |
cloneDom.css({ | |
"background-color": "white", | |
"position": "absolute", | |
"top": "0px", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Open Terminal | |
vim ~/.vimrc | |
# Mac OS-X -> .vimrc ; Window -> .gvimrc | |
# Add it in the file and adjust the font size (h12) accordingly | |
set guifont=Menlo\ Regular:h15 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* PHP's curl extension won't let you pass in strings as multipart file upload bodies; you | |
* have to direct it at an existing file (either with deprecated @ syntax or the CURLFile | |
* type). You can use php://temp to get around this for one file, but if you want to upload | |
* multiple files then you've got a bit more work. | |
* | |
* This function manually constructs the multipart request body from strings and injects it | |
* into the supplied curl handle, with no need to touch the file system. | |
* | |
* @param $ch resource curl handle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Page_Link | |
{ | |
var $page_max = 10; //一组页码的最大数 | |
var $page_num = 10; //总页数 | |
var $length = 20; //一页的数据条数 | |
var $isNextPage = true; | |
var $isFirstPage = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 分页类 | |
* 使用方式: | |
* $page = new Page(); | |
* $page->init(1000, 20); | |
* $page->setNotActiveTemplate('<span> {a} </span>'); | |
* $page->setActiveTemplate('{a}'); | |
* echo $page->show(); | |
* | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
/*箭头 开始*/ | |
@-webkit-keyframes start { | |
0%,30% { | |
opacity: 0; | |
-webkit-transform: translateY(10px); | |
} | |
60% { | |
opacity: 1; |