- 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 获取用户提交的捷径
https://cn.bing.com/HPImageArchive.aspx?format=js&idx=1&n=2
必应每日图片
n
- 必要参数。这是输出信息的数量。比如n=1,即为1条,以此类推,至多输出8条。format
- 非必要。返回结果的格式,不存在或者等于xml时,输出为xml格式,等于js时,输出json格式idx
- 非必要。不存在或者等于0时,输出当天的图片,-1为已经预备用于明天显示的信息,1则为昨天的图片,以此类推,idx最多获取到前16天的图片信息
This file contains hidden or 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()%7Bvar%20domain%20=%20window.location.href.split(':'); | |
if(domain%5B0%5D%20==%20'http'%20%7C%7C%20domain%5B0%5D%20==%20'https')%7Bif(document.getElementById('shouqu_script'))%7BclearElement(); | |
%7Dvar%20d%20=%20document.createElement('script'); | |
%20d.id%20=%20'shouqu_script'; | |
%20d.setAttribute('charset','utf-8'); | |
%20d.src%20=%20'https://shouqu.me/js/shouqu_tools.js'; | |
%20document.body.insertBefore(d,%20document.body.childNodes%5B0%5D); | |
%7D%7D)(); |
This file contains hidden or 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
// javascript:(function()%7B(function(window%2C%20document%2C%20undefined)%20%7Btry%20%7Bvar%20selectedText%20%3D%20document.getSelection().toString()%3Bif%20(selectedText%20%3D%3D%3D%20'')%20%7BselectedText%20%3D%20window.location.href%3B%7Dif%20(selectedText%20!%3D%3D%20'')%20%7Bvar%20baseQRUrl%20%3D%20'http%3A%2F%2Fchart.apis.google.com%2Fchart%3Fcht%3Dqr%26chs%3D300x300%26chl%3D'%20%2B%20encodeURIComponent(selectedText)%3Bwindow.open(baseQRUrl%2C%20'_blank'%2C%20'width%3D400%2Cheight%3D400')%3B%7D%7Dcatch%20(e)%20%7B%7D%7D)(window%2C%20document)%7D)() | |
// https://gist.github.com/lemieuxster/2579060 | |
(function(window, document, undefined) { | |
try { | |
var selectedText = document.getSelection().toString(); | |
if (selectedText === '') { | |
selectedText = window.location.href; | |
} | |
if (selectedText !== '') { |
This file contains hidden or 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
# rails config needs `force_ssl` | |
# example: | |
# Force all access to the app over SSL, use Strict-Transport-Security, | |
# and use secure cookies. | |
# config.force_ssl = true | |
# and rails needs some headers to be set, otherwise will be trapped in a redirect loop | |
# nginx config for headers: | |
# proxy_set_header X-Real-IP $remote_addr; | |
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
# proxy_set_header X-Forwarded-Proto https; |
This file contains hidden or 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
{"authors": [{"createdTime": "2018-03-19T12:33:15.000Z", "fields": {"Github": "https://github.com/sciooga", "Name": "sciooga", "extensions": ["recz8wQoqkGqL4eEb"]}, "id": "rec0Zx3HaxoY2Fa7K"}, {"createdTime": "2018-05-03T11:03:28.000Z", "fields": {"Github": "https://github.com/AInoob", "Name": "AInoob", "extensions": ["rec0Dn9EJxyREm6co", "recL1jtZcUpWuLYV2"]}, "id": "rec71NujhFi8G5wl4"}, {"createdTime": "2018-03-18T17:34:19.000Z", "fields": {"Github": "https://github.com/Kenshin", "Name": "kenshin", "extensions": ["recGtmAxC6SGSzooq", "recdxibDuUbDNQB2T", "recmMz6aSMXTwogse"]}, "id": "recHJwoHwEJbX0ztR"}, {"createdTime": "2018-05-03T11:00:40.000Z", "fields": {"Github": "https://github.com/ety001", "Name": "ety001", "extensions": ["recUdQi8tezzAPYKR"]}, "id": "recJPtuv0Le8DqNcZ"}, {"createdTime": "2018-03-18T17:34:19.000Z", "fields": {"Github": "https://github.com/greatghoul", "Name": "greatghoul", "extensions": ["recO6OTgmtTUlxuiR"]}, "id": "recXa6VkoVkKkX3Bu"}, {"createdTime": "2018-05-03T10:54:03.000Z", "f |
This file contains hidden or 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 build, ready; | |
ready = function(fn) { | |
if ((document.attachEvent ? document.readyState === 'complete' : document.readyState !== 'loading')) { | |
fn(); | |
} else { | |
document.addEventListener('DOMContentLoaded', fn); | |
} | |
}; |