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
// ==UserScript== | |
// @name Abema 强制 1080p | |
// @description 把其他清晰度的播放列表强制指向1080p | |
// @version 1.1.0 | |
// @run-at document-start | |
// @namespace Violentmonkey Scripts | |
// @match https://abema.tv/* | |
// @grant none | |
// ==/UserScript== |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\.md] | |
@="Typora.md" | |
[HKEY_CLASSES_ROOT\.md\OpenWithProgids] | |
"Typora.md"="" | |
[HKEY_CLASSES_ROOT\Typora.md] | |
@="Markdown 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
{ | |
"configurations": [ | |
{ | |
"name": "MinGW G++", | |
"intelliSenseMode": "gcc-x64", | |
"compilerPath": "C:\\Portable\\mingw64\\bin\\g++.exe", | |
"includePath": [ | |
"${workspaceFolder}/**" | |
], | |
"defines": [], |
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
// ==UserScript== | |
// @name Convert Gmail Quote Attribution to English | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2.0 | |
// @description Convert Gmail's attribution line for automatically quoted messages to format in English. | |
// @author prin | |
// @license MIT | |
// @match *://mail.google.com/* | |
// @match *://gmail.com/* | |
// @run-at context-menu |
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 python3 | |
# coding: utf-8 | |
import re | |
import sys | |
import json | |
import requests | |
from retrying import retry | |
headers = { |
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
# Default bash prompt of CentOS | |
# e.g. [user@host current]$ | |
PROMPT="%{$fg_bold[green]%}[%n@%m%{$reset_color%} %{$fg_bold[white]%}%c%{$fg_bold[green]%}]%(!.#.$)%{$reset_color%} " |
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
language: node_js | |
node_js: stable | |
# 只监听 source 分支的改动 | |
branches: | |
only: | |
- source | |
# 缓存依赖,节省持续集成时间 | |
cache: |
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
/** | |
* 这里处理一下 slug,去掉多余字符。 | |
* Hexo 博客中的页面(即 layout 为 page)的 `page.path` 会带上一个 `index.html`,搞不懂为什么。 | |
*/ | |
String.prototype.cleanSlug = function () { | |
var search = '/index.html'; | |
if (this.indexOf(search) === -1) { | |
return this.slice(0, -1) | |
} else { |
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
/** | |
* 差不多就是把一些项目中的现有代码黏在一起,能用而已。目前实现的功能有: | |
* | |
* - 生成 TOC(废话) | |
* - 滚动监听(高亮当前项目) | |
* - 点击跳转 | |
*/ | |
// https://github.com/ghiculescu/jekyll-table-of-contents | |
(function($){ |
NewerOlder