Skip to content

Instantly share code, notes, and snippets.

xingsong songxing10000

Block or report user

Report or block songxing10000

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 小程序.js
var title = '';
var content = '';
wx.showModal({
title: title,
content: content,
confirmText:"立即开通",
confirmColor: '#1677d2',
cancelText: '取消',
cancelColor: '#999',
success: function (res) {
View learnJs.js
var list = '';
list.forEach((item, index, array) => {
});
var obj = ;
var key = ;
if (obj.hasOwnProperty('params')){
} else {
View uploadIpaToServerUseSSH
set appName to "Terminal"
set appID to bundle identifier of (info for (path to application appName))
set theFolder to choose folder
tell application "Finder"
set fileList to every file of theFolder --whose name extension is "ipa"
if (count of fileList) > 0 then
repeat with theFile in fileList
View 获取app窗口所有控件
tell application "System Events"
tell application "企业微信"
activate
tell application "System Events"
tell process "企业微信"
get entire contents of window 1
end tell
end tell
end tell
@songxing10000
songxing10000 / 自动点击企业微信界面的登录按钮
Created Sep 13, 2017
自动点击企业微信界面的登录按钮
View 自动点击企业微信界面的登录按钮
tell application "System Events"
tell application "企业微信"
activate
end tell
if not (exists (button "登录" of window 1 of application process "企业微信" of application "System Events")) then
tell application "企业微信"
quit
end tell
View openOrCloseApp
tell application "System Events"
get name of every process whose name is "企业微信"
if result is not {} then
tell application "企业微信"
quit
end tell
View ADVC
@interface AdViewController ()
/** 定时器 */
@property (nonatomic, strong) NSTimer *timer;
@property (nonatomic, strong) UIButton *adButton;
@end
@implementation AdViewController
NSUInteger secondsCountDown = 3;//倒计时秒数
View checkVersion
[BaseService postJSONWithUrl:APP_URL parameters:nil success:^(id responseObject)
{
NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:responseObject options:NSJSONReadingMutableContainers error:nil removingNulls:YES ignoreArrays:NO];
NSArray *infoArray = [dic objectForKey:@"results"];
if ([infoArray count])
{
NSDictionary *releaseInfo = [infoArray objectAtIndex:0];
NSDictionary *infoDic = [[NSBundle mainBundle] infoDictionary];
NSString *currentVersion = [[infoDic objectForKey:@"CFBundleShortVersionString"] stringByReplacingOccurrencesOfString:@"." withString:@""];
NSString *lastVersion = [[releaseInfo objectForKey:@"version"] stringByReplacingOccurrencesOfString:@"." withString:@""];
@songxing10000
songxing10000 / RSAEncryptor.m
Created Feb 22, 2017
private_key.p12 public_key.der
View RSAEncryptor.m
#import "RSAEncryptor.h"
#import <Security/Security.h>
@implementation RSAEncryptor
static NSString *base64_encode_data(NSData *data){
data = [data base64EncodedDataWithOptions:0];
NSString *ret = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
return ret;
}
@songxing10000
songxing10000 / RSAEncryptor.h
Last active Feb 22, 2017
private_key.p12 public_key.der
View RSAEncryptor.h
#import <Foundation/Foundation.h>
@interface RSAEncryptor : NSObject
/**
* 加密方法
*
* @param str 需要加密的字符串
* @param path '.der'格式的公钥文件路径
*/
You can’t perform that action at this time.