vi ~/.bash_profile 并填写下文内容
source ~/.bash_profile // 刷新环境变量
java -version // 查看当前的 jdk 版本需要填写的内容为:
| cmake_minimum_required(VERSION 3.3) | |
| project(bitcoin) | |
| set(CMAKE_CXX_STANDARD 11) | |
| set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") | |
| add_custom_target(build-bitcoin ALL | |
| COMMAND ./autogen.sh | |
| COMMAND ./configure | |
| COMMAND $(MAKE) WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} |
| /* Allow Landscape mode for specific ViewControllers */ | |
| -(UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window { | |
| UIViewController* topVC = [self topViewControllerWith: self.window.rootViewController]; | |
| if ([topVC respondsToSelector:@selector(canRotate)]) { | |
| return UIInterfaceOrientationMaskAllButUpsideDown; | |
| } | |
| return UIInterfaceOrientationMaskPortrait; | |
| } | |
| /* get the top ViewController */ |
| // | |
| // Created by Chenyu Lan on 8/27/14. | |
| // Copyright (c) 2014 Fenbi. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> | |
| #import "YTKNetworkConfig.h" | |
| #import "YTKBaseRequest.h" | |
| // 给url追加arguments,用于全局参数,比如AppVersion, ApiVersion等 |
| // | |
| // UIAlertViewCrashFix.h | |
| // | |
| // Created by Josh Hudnall on 4/28/15. | |
| // | |
| // | |
| #import <Foundation/Foundation.h> | |
| @interface UIAlertController (CrashFix) |
| #!/bin/bash | |
| #获取当前版本Xcode的DVTPlugInCompatibilityUUID | |
| UUID=$(defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID) | |
| echo Xcode DVTPlugInCompatibilityUUID is $UUID | |
| #遍历每一个Xcode插件,将UUID写入插件的兼容列表中 | |
| for MyPlugin in ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/* | |
| do | |
| defaults write "$MyPlugin"/Contents/Info DVTPlugInCompatibilityUUIDs -array-add $UUID | |
| echo write DVTPlugInCompatibilityUUID to $MyPlugin succeed! | |
| done |
| var readline = require('readline'), | |
| fs = require('fs'); | |
| var LinkMap = function(filePath) { | |
| this.files = [] | |
| this.filePath = filePath | |
| } | |
| LinkMap.prototype = { | |
| start: function(cb) { |
| -(void)startMonitor{ | |
| //[ALAssetsLibrary disableSharedPhotoStreamsSupport]; | |
| [self requireAssetsLibraryAuthorization]; | |
| self.assetsLibrary = [[ALAssetsLibrary alloc] init]; | |
| [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(assetsChanged:) name:ALAssetsLibraryChangedNotification object:nil]; | |
| [self.assetsLibrary writeImageToSavedPhotosAlbum:nil metadata:nil completionBlock:^(NSURL *assetURL, NSError *error){}]; | |
| } | |
| -(void)assetsChanged:(NSNotification *)notification{ |
| #!/bin/bash | |
| ########################################################################### | |
| # Choose your ffmpeg version and your currently-installed iOS SDK version: | |
| # | |
| VERSION="2.0.2" | |
| SDKVERSION="7.0" | |
| ARCHS="armv7 armv7s i386" | |
| # | |
| # |