- https://api.sharecuts.cn/shortcuts 获取捷径社区数据
- https://api.sharecuts.cn/shortcuts/fresh 获取最新捷径
- https://api.sharecuts.cn/shortcuts/random 随机捷径
- https://api.sharecuts.cn/shortcuts/hot 热门捷径
- https://api.sharecuts.cn/shortcuts/[id] 指定捷径的详细信息
- https://sharecuts.cn/api/shortcuts?category_id=[类别ID]&offset=[偏移量] 获取指定类型捷径
- https://api.sharecuts.cn/users/[UserID]/ 获取用户详情
- https://api.sharecuts.cn/users/[UserID]/shortcuts/created 获取用户提交的捷径
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
// 获取要移除的 meta 元素 | |
var metaToRemove = document.querySelector('meta[name="apple-itunes-app"]'); | |
// 检查是否存在该 meta 元素 | |
if (metaToRemove) { | |
// 从其父元素中移除该 meta 元素 | |
metaToRemove.parentNode.removeChild(metaToRemove); | |
} |
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
0xEBB63c421ef7514405b0CF8085c9aE167cdD1F34 |
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
ebb63c421ef7514405b0cf8085c9ae167cdd1f34 |
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 | |
web_service='nginx' | |
config_file="/etc/le-renew-webroot.ini" | |
le_path='/usr/local/bin/letsencrypt' | |
exp_limit=30; | |
if [ ! -f $config_file ]; then | |
echo "[ERROR] config file does not exist: $config_file" |
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
#!/usr/bin/env ruby | |
require "redis" | |
redis = Redis.new | |
redis.keys("*").each do |key| | |
val = case redis.type(key) | |
when "string" | |
redis.get key | |
when "list" |
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() { | |
var e, t = function() {}, o = ["assert", "clear", "count", "debug", "dir", "dirxml", "error", "exception", "group", "groupCollapsed", "groupEnd", "info", "log", "markTimeline", "profile", "profileEnd", "table", "time", "timeEnd", "timeStamp", "trace", "warn"], | |
n = o.length; | |
0 == /mmdebug/.test(location.search) && location.href.indexOf("dev.web.weixin") < 0 && (window.console = {}); | |
for (var r = window.console = window.console || {}; n--;) e = o[n], r[e] || (r[e] = t) | |
}(), angular.module("Controllers", []), ! function() { | |
"use strict"; | |
location.href.indexOf("dev.web") < 0 ? angular.module("exceptionOverride", []).factory("$exceptionHandler", [ | |
function() { | |
return function(e) { |
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
"use strict"; | |
Object.defineProperty(exports, "__esModule", { | |
value: true | |
}); | |
var _createClass = function () { | |
function defineProperties(target, props) { | |
console.log(target); | |
console.log(props); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Promise example</title> |
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
$ wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo | |
$ yum install devtoolset-2-gcc devtoolset-2-binutils | |
$ yum install devtoolset-2-gcc-c++ devtoolset-2-gcc-gfortran | |
NewerOlder