sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
| #!/bin/bash | |
| php path/to/makepot.php wp-plugin /path/to/your/plugin pluginname.pot | |
| #php path/to/makepot.php wp-theme /path/to/your/theme themename.pot |
| #!/usr/bin/env python | |
| #coding=utf-8 | |
| # | |
| # Openwrt Package Grabber | |
| # | |
| # Copyright (C) 2014 http://shuyz.com | |
| # | |
| import urllib2 | |
| import re |
| #!/bin/bash | |
| [ $(id -u) != "0" ] && { echo "Error: You must be root to run this script"; exit 1; } | |
| install_ssr(){ | |
| clear | |
| stty erase '^H' && read -p " API接口(mudbjson, sspanelv2, sspanelv3, sspanelv3ssr, glzjinmod, legendsockssr):" ssapi | |
| stty erase '^H' && read -p " mysql服务器地址:" ssserver | |
| stty erase '^H' && read -p " mysql服务器端口:" ssport | |
| stty erase '^H' && read -p " mysql服务器用户名:" ssuser | |
| stty erase '^H' && read -p " mysql服务器密码:" sspass | |
| stty erase '^H' && read -p " mysql服务器数据库名:" ssdb |
| {"baseresponse":{"errcode":0},"attr_list":[{"appid":"wx6ac3f5090a6b99c5","Network":{"RequestDomain":["https:\/\/wxardm.weixin.qq.com","https:\/\/mp.weixin.qq.com","https:\/\/badjs.weixinbridge.com"],"WsRequestDomain":[],"UploadDomain":[],"DownloadDomain":[],"BizDomain":[]},"Setting":{"MaxLocalstorageSize":10,"MaxCodeSize":4,"MaxWebviewDepth":5,"MaxBackgroundLifespan":300,"MaxRequestConcurrent":10,"MaxUploadConcurrent":10,"MaxDownloadConcurrent":10,"MaxFileStorageSize":10,"ExpiresAtList":432000,"BackgroundNetworkInterruptedTimeout":300,"CanKeepAliveByAudioPlay":1,"LifeSpanBeforeSuspend":5,"LifeSpanAfterSuspend":300,"MaxWebsocketConnect":2,"ExpendedMaxWebviewDepth":10,"ActualWebviewDepth":5,"WebsocketSkipPortCheck":1,"MaxSubpackageSubCodeSize":2,"MaxSubpackageFullCodeSize":4,"MaxWorkerConcurrent":1},"appname":"小游戏开发辅助","appicon_url":"http:\/\/wx.qlogo.cn\/mmhead\/Q3auHgzwzM6ZNOtaaZLvrBYajKmCFia9icUxgMFpVS5EB68YfibibjUPgw","jsapi_list":[{"name":"openLink","state":0},{"name":"showKeyboard","state":1},{"name":"ins |
| function htmlDecode(str) { | |
| // 有 x 则表示是16进制,$1 就是匹配是否有 x,$2 就是匹配出的第二个括号捕获到的内容,将 $2 以对应进制表示转换 | |
| str = str.replace(/&#(x)?(\w+);/g, function($, $1, $2) { | |
| return String.fromCharCode(parseInt($2, $1? 16: 10)); | |
| }); | |
| return str; | |
| } |
| /** | |
| * Copyright (c) 2015-present, Facebook, Inc. | |
| * All rights reserved. | |
| * | |
| * This source code is licensed under the BSD-style license found in the | |
| * LICENSE file in the root directory of this source tree. An additional grant | |
| * of patent rights can be found in the PATENTS file in the same directory. | |
| */ | |
| package com.facebook.react.common; |
| <?xml version="1.0"?> | |
| <root> | |
| <devicevendordef> | |
| <vendorname>Microsoft</vendorname> | |
| <vendorid>0x045e</vendorid> | |
| </devicevendordef> | |
| <deviceproductdef> | |
| <productname>SurfaceErgonomic</productname> | |
| <productid>0x0817</productid> |
| const https = require('https'); | |
| AV.Cloud.define('stencils', function (request, response) { | |
| const options = { | |
| hostname: 'www.autodraw.com', | |
| path: '/assets/stencils.json', | |
| port: 443, | |
| method: 'GET', | |
| headers: { |
| package com.zhgqthomas.rxjava.util; | |
| import android.content.Context; | |
| import android.content.pm.ApplicationInfo; | |
| import android.util.Log; | |
| public class LogUtils { | |
| private static String LOG_PREFIX = "github_"; |