Skip to content

Instantly share code, notes, and snippets.

View majie1993's full-sized avatar

Jeff Ma majie1993

View GitHub Profile
float statusBarHeight = MIN([UIApplication sharedApplication].statusBarFrame.size.height, [UIApplication sharedApplication].statusBarFrame.size.width);
@majie1993
majie1993 / surge_main.conf
Created December 19, 2015 03:56
Config for surge.app
# This config file was created for myself (@shanskc). You may want to add or remove some rules to make efficient use of the Internet.
# Update: Rules and configuration tuning
# 从243开始Surge 加入了proxy和rule分离的配置Override,此文件为rules main.conf,在你的proxy中你可以引入此conf
# eg: 下面为你的proxy.conf,只需引入此main.conf 即可.
# -----START-----
# #!PROXY-OVERRIDE:main.conf
#
# [Proxy]
# Proxy = custom, ip, port, Methor, password
# -----END-----
{"sig":"c6a6be6eb98d6b29698f316b63fcd77b2d6765cf0cfbf9a78470468071fd323717ae8a98542d9010b1d1d8f7e357ae8266eda3ae3c1d98c772cb74b7b085106f1","msghash":"3ebc75c4f9c26ca6b8a93d90167bc3aee62e5823e7033b307529cd451c8afe4f"}
@majie1993
majie1993 / nsscreencast_downloader.rb
Last active August 22, 2020 05:04 — forked from cameroncooke/nsscreencast_downloader.rb
Downloads videos from nsscreencast (requires paid account)
# Using this script downloads ALL the videos in NSScreencast.
# Usage: `EMAIL=your email PASSWORD=your password.`
require 'HTTParty'
require 'Nokogiri'
require 'pry'
require "mechanize"
require "parallel"
class Scraper