This file contains 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
function(e) { | |
var t = function(e, t) { | |
return e << t | e >>> 32 - t | |
} | |
, i = function(e, t) { | |
var i, n, a, o, s; | |
return a = 2147483648 & e, | |
o = 2147483648 & t, | |
i = 1073741824 & e, | |
n = 1073741824 & t, |
This file contains 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
let overflowX = "auto"; | |
let overflowY = "auto"; | |
let scrollLeft = 0; | |
let scrollTop = 0; | |
let isScrolling; | |
const handleScroll = e => { | |
const element = e.target; | |
window.clearTimeout(isScrolling); |
This file contains 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
import React, { useState } from 'react'; | |
import Paper from '@material-ui/core/Paper'; | |
import { | |
SortingState, | |
IntegratedSorting, | |
} from '@devexpress/dx-react-grid'; | |
import { | |
Grid, | |
VirtualTable, | |
TableHeaderRow, |
This file contains 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
# ssserver -c /etc/shadowsocks.json -d start | |
# ssserver -c /etc/shadowsocks.json -d stop | |
# ssserver -c /etc/shadowsocks.json -d restart |
This file contains 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 | |
/** | |
* Manage product data. | |
* | |
* @link https://rudrastyh.com/woocommerce/product-data-metabox.html | |
* | |
* @package Trueniu | |
* @subpackage WP Rig | |
* @since 1.0.0 | |
*/ |
This file contains 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
# rc 表示 run command (运行命令) | |
# for zsh | |
$ vi ~/.zshrc | |
# for bash | |
$ vi ~/.bashrc | |
alias gs="git status" | |
alias gc="git commit -m " |
This file contains 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
## 下载最新版gcc | |
wget http://ftp.gnu.org/gnu/gcc/gcc-7.3.0/gcc-7.3.0.tar.bz2 | |
tar jxvf gcc-7.3.0.tar.bz2 | |
## 创建存放编译的文件 | |
mkdir gcc-build-7.3.0 | |
cd gcc-build-7.3.0 | |
## 编译安装gcc | |
../configure --enable-checking=release --enable-languages=c,c++ --disable-multilib |
This file contains 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
### HTML结构 ### | |
a:html内容(未选择) | |
<p class="hide-if-no-js set-check-media-image"> | |
<a href="javascript:void(0);" onclick="jQuery.metaboxCheckMedia(this,'_case_cover')"> | |
选择图像 | |
</a > | |
</p> | |
b:html内容(已选择) | |
<p class="hide-if-no-js set-check-media-image"> | |
<a href="javascript:void(0);" onclick="jQuery.metaboxCheckMedia(this,'_case_cover')"> |
This file contains 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
# 把命令放到后台执行 | |
$ nohup sh rsync.sh & | |
# 正在前台执行的任务放到后台,并且处于暂停状态 | |
$ ctrl + z | |
# 查看后台运行的任务 | |
$ jobs | |
# 调用后台的任务至前台 |
This file contains 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
1. 检查你的服务器版本是否支持inotify机制,如果输出 CONFIG_INOTIFY_USER=y 则表示支持 | |
$ grep INOTIFY_USER /boot/config-$(uname -r) | |
2. 编译安装inofity-tools工具包 | |
$ wget http://github.com/downloads/rvoicilas/inotify-tools/inotify-tools-3.14.tar.gz | |
$ tar -zxvf inotify-tools-3.14.tar.gz | |
$ ./configure --prefix=/usr --libdir=/lib64 && make && make install | |
3. 脚本 | |
#!/bin/bash |
NewerOlder