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
Option Explicit | |
' 创建文件系统对象和Excel应用程序对象 | |
Dim fso, excel, currentFolder, file, saveAsFile, ws | |
Set fso = CreateObject("Scripting.FileSystemObject") | |
Set excel = CreateObject("Excel.Application") | |
' 获取当前文件夹路径 | |
currentFolder = fso.GetAbsolutePathName(".") |
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 | |
global $product; | |
$downloads = $product->get_downloads(); | |
foreach( $downloads as $download ) : | |
?> | |
<a href="<?php echo $download['file']; ?>"><?php echo $download['name']; ?></a> | |
<?php endforeach; ?> |
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
proxy_cache_path /var/nginx/cache/aws/trueniu levels=2:2:2 use_temp_path=off keys_zone=aws_3:500m inactive=30d max_size=10g; | |
server { | |
listen 80; | |
server_name trueniu.com www.trueniu.com; | |
if ( $scheme = http ) { | |
return 301 https://www.trueniu.com$request_uri; | |
} | |
} |
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
# 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
<?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
## 下载最新版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 |
NewerOlder