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
{ | |
"zhuanlan.zhihu.com": [ | |
{ | |
"type": "autoClick", | |
"data": ".Modal-closeButton" | |
} | |
], | |
"blog.csdn.net": [ | |
{ | |
"type": "autoHide", |
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
console.table((function listAllEventListeners() { | |
const allElements = Array.prototype.slice.call(document.querySelectorAll('*')); | |
allElements.push(document); // we also want document events | |
const types = []; | |
for (let ev in window) { | |
if (/^on/.test(ev)) types[types.length] = ev; | |
} | |
let elements = []; | |
for (let i = 0; i < allElements.length; 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
#!/bin/bash | |
# author: [email protected] | |
log_info() { | |
printf "[\e[36m%s\e[0m] [\e[32mINFO\e[0m] $*\n\r" "$(date +'%H:%M:%S')" | |
} | |
log_warn() { | |
printf "[\e[36m%s\e[0m] [\e[33mWARNING\e[0m] $*\n\r" "$(date +'%H:%M:%S')" | |
} |
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
// | |
// PerformanceMonitor.m | |
// SuperApp | |
// | |
// Created by qianjianeng on 15/11/12. | |
// Copyright © 2015年 Tencent. All rights reserved. | |
// | |
#import "PerformanceMonitor.h" | |
#import <mach/mach.h> |
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
@implementation AppHostCookie | |
+ (NSMutableArray<NSString *> *)cookieJavaScriptArray | |
{ | |
NSMutableArray<NSString *> *cookieStrings = [[NSMutableArray alloc] init]; | |
//取出cookie | |
NSHTTPCookieStorage *cookieStorage = [NSHTTPCookieStorage sharedHTTPCookieStorage]; |
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
1.在Linux系统中,以 文件 方式访问设备 。 | |
2. Linux内核引导时,从文件 /etc/fstab 中读取要加载的文件系统。 | |
3. Linux文件系统中每个文件用 inode 来标识。 | |
4. 全部磁盘块由四个部分组成,分别为引导块 、专用块 、 inode表块 和数据存储块。 | |
5. 链接分为: 硬链接 和 符号链接 。 | |
6. 超级块包含了inode表 和 空闲块表 等重要的文件系统信息。 | |
7. 某文件的权限为:drw-r--r--,用数值形式表示该权限,则该八进制数为: 644 ,该文件属性是 目录 。 | |
8. 前台起动的进程使用 Ctrl+c 终止。 | |
9. 静态路由设定后,若网络拓扑结构发生变化,需由系统管理员修改路由的设置。 | |
10. 网络管理的重要任务是: 控制 和 监控 。 |
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
1.在Linux系统中,以 文件 方式访问设备 。 | |
2. Linux内核引导时,从文件 /etc/fstab 中读取要加载的文件系统。 | |
3. Linux文件系统中每个文件用 inode 来标识。 | |
4. 全部磁盘块由四个部分组成,分别为引导块 、专用块 、 inode表块 和数据存储块。 | |
5. 链接分为: 硬链接 和 符号链接 。 | |
6. 超级块包含了inode表 和 空闲块表 等重要的文件系统信息。 | |
7. 某文件的权限为:drw-r--r--,用数值形式表示该权限,则该八进制数为: 644 ,该文件属性是 目录 。 | |
8. 前台起动的进程使用 Ctrl+c 终止。 | |
9. 静态路由设定后,若网络拓扑结构发生变化,需由系统管理员修改路由的设置。 | |
10. 网络管理的重要任务是: 控制 和 监控 。 |
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
// Clips the bottom left corner to a radius | |
CGSize cornerSize = CGSizeMake(10,10); | |
UIBezierPath *roundRectMaskPath = [UIBezierPath bezierPathWithRoundedRect:view.bounds | |
byRoundingCorners:UIRectCornerBottomLeft | |
cornerRadii:cornerSize]; | |
CAShapeLayer *roundRectMaskLayer = [CAShapeLayer layer]; | |
roundRectMaskLayer.frame = self.view.bounds; | |
roundRectMaskLayer.path = roundRectMaskPath.CGPath; |
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
Here is a list of scopes to use in Sublime Text 2 snippets - | |
ActionScript: source.actionscript.2 | |
AppleScript: source.applescript | |
ASP: source.asp | |
Batch FIle: source.dosbatch | |
C#: source.cs | |
C++: source.c++ | |
Clojure: source.clojure | |
CoffeeScript: source.coffee |
NewerOlder