在收藏夹中新增一个网页,将网址设为下面的其中一个源码。然后打开任一 Creator 页面,接着直接在收藏夹点击刚刚收藏的网址即可。
javascript:(function () {
function visitNode (node, visitor) {
visitor(node);
var children = node._children;
for (var i = 0; i < children.length; ++i) {
#define pLog(fmt) prettyLog(fmt,[NSString stringWithFormat:@"%s:%d",__FILE__,__LINE__],__PRETTY_FUNCTION__) | |
NSString * lastFunction = nil; | |
NSString * lastLine = nil; | |
void prettyLog(NSString * string,NSString * fileline,const char * function){ | |
NSString * currentFileLine = fileline; | |
NSString * currentFunction = [NSString stringWithFormat:@"%s",function]; | |
Result: 1 | |
Items { | |
TemplateId: "BADGE_BATTLE_ATTACK_WON" | |
Badge { | |
BadgeType: BADGE_BATTLE_ATTACK_WON | |
BadgeRanks: 4 | |
Targets: "\nd\350\007" | |
} | |
} | |
Items { |
movs = Dir['./*'] | |
hash = Hash.new | |
movs.each do |f| | |
key = f[2,3] | |
value = f[2,f.length-6] | |
hash[key] = value | |
end | |
srts = Dir["/Users/Aladdin/Workspace/WWDC_2014_Video_Subtitle/*.srt"] | |
srts.each do |srt| |
//please execute this script on https://developer.apple.com/videos/wwdc/2014/ | |
//inspect this page and run it on console | |
jQuery(".download a:contains('HD')").each(function(n){ console.log(jQuery(this).attr("href"))}) | |
jQuery(".download a:contains('SD')").each(function(n){ console.log(jQuery(this).attr("href"))}) | |
jQuery(".download a:contains('PDF')").each(function(n){ console.log(jQuery(this).attr("href"))}) |
config defaultToCurrentScreen true | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
# Resize Bindings | |
bind right:alt;ctrl resize +10% +0 | |
bind left:alt;ctrl resize -10% +0 | |
bind up:alt;ctrl resize +0 -10% | |
bind down:alt;ctrl resize +0 +10% | |
# bind right:ctrl;alt resize -10% +0 bottom-right |
#!/bin/bash | |
# https://gist.github.com/949831 | |
# http://blog.carbonfive.com/2011/05/04/automated-ad-hoc-builds-using-xcode-4/ | |
# command line OTA distribution references and examples | |
# http://nachbaur.com/blog/how-to-automate-your-iphone-app-builds-with-hudson | |
# http://nachbaur.com/blog/building-ios-apps-for-over-the-air-adhoc-distribution | |
# http://blog.octo.com/en/automating-over-the-air-deployment-for-iphone/ | |
# http://www.neat.io/posts/2010/10/27/automated-ota-ios-app-distribution.html |
#!/bin/bash | |
# | |
# testflightapp.com tokens | |
API_TOKEN="YOUR_API_TOKEN" | |
TEAM_TOKEN="YOUR_TEAM_TOKEN" | |
PRODUCT_NAME="RowMotion" | |
ARTEFACTS="$PWD/Artefacts" |
require 'net/http' | |
require 'json' | |
class Net::HTTP::Patch < Net::HTTPRequest | |
METHOD = 'PATCH' | |
REQUEST_HAS_BODY = true | |
RESPONSE_HAS_BODY = true | |
end | |
url = URI.parse('https://api.github.com/iAladdin') |
.DS_Store | |
*.swp | |
*~.nib | |
build/ | |
*.pbxuser | |
*.perspective | |
*.perspectivev3 |