sinaimg子域名,跑一遍即可。
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
module.exports = { | |
h5: { | |
miniCssExtractPluginOption: { | |
filename: 'css/[name].[hash].css', | |
chunkFilename: 'css/[id].[chunkhash].css' | |
}, | |
enableDll: false, | |
webpackChain(chain, webpack) { | |
const hashRule = (type) => { | |
chain.module.rules.get(type).uses.get("urlLoader").get("options").name = |
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
#!/bin/bash | |
if [ "$#" -lt 2 ]; then | |
echo "Usage: $0 videofile output fps width start duration" | |
exit 1 | |
fi | |
VIDEO=$1 | |
OUTPUT=$2 | |
FPS=$3 |
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
CREATE SEQUENCE public.global_id_seq; | |
ALTER SEQUENCE public.global_id_seq OWNER TO postgres; | |
CREATE OR REPLACE FUNCTION public.id_generator() | |
RETURNS bigint | |
LANGUAGE 'plpgsql' | |
AS $BODY$ | |
DECLARE | |
our_epoch bigint := 1314220021721; | |
seq_id bigint; |
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
jQuery(document).ready(function($) { | |
$('.popup-gallery').magnificPopup({ | |
delegate: 'a', | |
type: 'image', | |
tLoading: 'Loading image #%curr%...', | |
mainClass: 'mfp-img-mobile', | |
gallery: { | |
enabled: true, | |
navigateByImgClick: true, | |
preload: [0,1] // Will preload 0 - before current, and 1 after the current image |
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
### No longer needed as of nginx-1.13.6-1.el7_4.ngx.x86_64.rpm from nginx.org | |
### it was compiled against OpenSSL 1.0.2 from CentoOS 7.4 so it supports ALPN (HTTP2 works) | |
yum -y groupinstall 'Development Tools' | |
yum -y install wget openssl-devel libxml2-devel libxslt-devel gd-devel perl-ExtUtils-Embed GeoIP-devel rpmdevtools | |
OPENSSL="openssl-1.0.2l" | |
NGINX_VERSION="1.13.5-1" | |
NJS_VERSION="1.13.5.0.1.13-1" |
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
## | |
## 32-bit Mingw-w64 repository mirrorlist | |
## Changed on 2014-11-15 | |
## | |
##中国科学技术大学开源软件镜像 | |
Server = http://mirrors.ustc.edu.cn/msys2/mingw/i686 | |
##北京理工大学镜像 | |
Server = http://mirror.bit.edu.cn/msys2/REPOS/MINGW/i686 | |
##日本北陆先端科学技术大学院大学 sourceforge 镜像 | |
Server = http://jaist.dl.sourceforge.net/project/msys2/REPOS/MINGW/i686 |
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
#-*-coding: utf-8 -*- | |
#!/usr/bin/python | |
import requests | |
def sendMsg(msg): | |
url_space_login = 'http://f.10086.cn/huc/user/space/login.do?m=submit&fr=space' | |
url_login = 'http://f.10086.cn/im/login/cklogin.action' | |
url_sendmsg = 'http://f.10086.cn/im/user/sendMsgToMyselfs.action' | |
parameter= { 'mobilenum':'yourmobile', 'password':'yourpassword'} |
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 boyer_moore_horspool(haystack, needle) { | |
var badMatchTable = {}; | |
var maxOffset = haystack.length - needle.length; | |
var offset = 0; | |
var last = needle.length - 1; | |
var scan; | |
// Generate the bad match table, which is the location of offsets | |
// to jump forward when a comparison fails | |
Array.prototype.forEach.call(needle, function (char, i) { |
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 | |
/* | |
Plugin Name: WP_Rewrite endpoints demo | |
Description: A plugin giving example usage of the WP_Rewrite endpoint API | |
Plugin URI: http://make.wordpress.org/plugins/2012/06/07/rewrite-endpoints-api/ | |
Author: Jon Cave | |
Author URI: http://joncave.co.uk/ | |
*/ | |
function makeplugins_endpoints_add_endpoint() { |
NewerOlder