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
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 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 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 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 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
- (void)jkviewDidDisappear:(BOOL)animated { | |
[self jkviewDidDisappear:animated]; | |
if ([[self class] isSubclassOfClass:[YTNavigationController class]]) { | |
return; | |
} | |
else if ([NSStringFromClass([self class]) hasPrefix:@"UI"]) { | |
return; | |
} | |
else if ([[self class] isSubclassOfClass:[UIViewController class]]) { |
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
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 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 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
// | |
// BusDriverFeedbackViewController.swift | |
// renttravel | |
// | |
// Created by jackyshan on 2017/3/8. | |
// Copyright © 2017年 GCI. All rights reserved. | |
// | |
import UIKit | |
import RxSwift |
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
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_table); | |
} | |
@Override | |
protected void onStart() {//开启 | |
super.onStart(); | |
} |