This file contains hidden or 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
| APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}" | |
| # This script loops through the frameworks embedded in the application and | |
| # removes unused architectures. | |
| find "$APP_PATH" -name '*.framework' -type d | while read -r FRAMEWORK | |
| do | |
| FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable) | |
| FRAMEWORK_EXECUTABLE_PATH="$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME" | |
| echo "Executable is $FRAMEWORK_EXECUTABLE_PATH" |
This file contains hidden or 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
| lipo -remove i386 RxSwift.framework/RxSwift -output RxSwift.framework/RxSwift | |
| lipo -remove x86_64 RxSwift.framework/RxSwift -output RxSwift.framework/RxSwift |
This file contains hidden or 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
| // MARK: - <#name#> |
This file contains hidden or 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
| mobs = new Array() | |
| for (var index = 10; index < 100; index++) { | |
| var mobile = '186201121'+index | |
| mobs.push(mobile) | |
| } | |
| var index = 0 | |
| window.setInterval(function(){ | |
| mobile = mobs[index++] | |
| $.ajax('/share/get_free_service',{ |
This file contains hidden or 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
| defineClass("YTPlatWebsiteDetailViewController", { | |
| //instance method definitions | |
| webViewDidStartLoad: function(webView) { | |
| self.progressView().setProgress_animated(0.9, true) | |
| self.buyBtn().setSelected(true) | |
| }, | |
| webViewDidFinishLoad: function(webView) { | |
| self.progressView().setProgress_animated(1.0, true) | |
| self.buyBtn().setSelected(true) | |
| } |
This file contains hidden or 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
| import xlrd | |
| data = xlrd.open_workbook('xx.xls') | |
| fo = open("xx.txt", "w") | |
| for i in range(len(data.sheets())): | |
| table = data.sheets()[i] | |
| nrows = table.nrows | |
| for row in range(nrows): |
This file contains hidden or 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
| import os | |
| for file in os.listdir(os.getcwd()): | |
| f = open(file) | |
| content = f.readline() | |
| while content: | |
| if 'xxx' in content : | |
| print content | |
| pass | |
| content = f.readline() |
This file contains hidden or 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/python | |
| # -*- coding: UTF-8 -*- | |
| import urllib2, time, string, random | |
| email = '' | |
| title = raw_input("输入邮件标题:") | |
| if len(title) <= 0: | |
| title = '标题' |
This file contains hidden or 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/sh | |
| for file in ./* | |
| do | |
| if test -f $file | |
| then | |
| grep "@qq.com" $file >> xxx_qq_all.txt | |
| fi | |
| done |