Skip to content

Instantly share code, notes, and snippets.

View ShawnRong's full-sized avatar
🎱
Focusing

ShawnRong ShawnRong

🎱
Focusing
View GitHub Profile
#ifndef Macros_h
#define Macros_h
#pragma mark - UI / 屏幕、控件尺寸
#define kKeyWindow [UIApplication sharedApplication].keyWindow
#define isRetina ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 960), [[UIScreen mainScreen] currentMode].size) : NO)
#define isPad (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
# 规则配置仅供参考,适用于 1.2.0 (476) 及其后续版本;
# 包含 Proxy Group、URL Rewrite 特性;
# 包含 Reject 规则,用于拦截广告、行为分析、数据统计;
# 屏蔽 Hao123、百度搜索,放行百度地图、百度外卖、百度音乐、百度云盘、百度百科。
# Surge 新手使用指南 http://bit.ly/1q5eTlF
[General]
# warning, notify, info, verbose
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local
bypass-tun = 0.0.0.0/8, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
loglevel = notify
// ==UserScript==
// @name NGA Excel
// @author ??
// @description NGA Excel
// @version 1.0.3
// @match http://bbs.ngacn.cc/*
// @include http://bbs.ngacn.cc/*
// @match http://nga.178.com/*
// @include http://nga.178.com/*
// @match http://bbs.bigccq.cn/*
@ShawnRong
ShawnRong / webpack.config.js
Last active December 4, 2017 15:10
Webpack config
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
//minimize js file
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
module.exports = {
context: path.resolve(process.cwd(), "js"),
entry: {
@ShawnRong
ShawnRong / babelrc
Created September 14, 2017 02:49
.babelrc
{
"presets":[
"es2015", "react"
]
}
@ShawnRong
ShawnRong / react js
Created September 14, 2017 05:04
package.json
{
"name": "cotd",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "webpack-dev-server",
"watch": "webpack --watch",
"build": "webpack",
"eject": "react-scripts eject",
"styles": "stylus -u autoprefixer-stylus ./src/css/style.styl -o ./src/css/style.css",
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
.content {
width: 600px;
margin: 0 auto;
}
@ShawnRong
ShawnRong / index.html
Last active October 13, 2017 09:59 — forked from anonymous/index.html
表单效果// source http://js.jirengu.com/qacoxoleji
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
.content {
width: 600px;
margin: 0 auto;
}
@ShawnRong
ShawnRong / index.html
Last active October 14, 2017 06:19 — forked from anonymous/index.html
Modal 样式// source http://js.jirengu.com/dituyefika
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
.content {
width: 600px;
margin: 0 auto;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
.content {
width: 600px;
margin: 0 auto;
}