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
{RSI抄底三大铁律,扩展三大卖出铁律} | |
{ | |
【直接买】 | |
弘历JOSIE:RSI在30以下【直接买】: | |
HTTPS://WWW.YOUTUBE.COM/WATCH?V=YVLTATBTNSG | |
1.参数为14的RSI,跌到30以下; | |
2.最后1根在30以下的K线为关键K; | |
3.后续站上关键K的最高买入; | |
4.买入当天最低止损。 | |
} |
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
{ | |
//create the MPAudioVideoRoutingPopoverController class at runtime | |
id TheClass = NSClassFromString(@"MPAVRoutingSheet"); | |
id testObject = [[TheClass alloc] initWithFrame:self.view.bounds]; | |
// the selector to call for creating the right popover controller | |
SEL initMethod = @selector(showInView:withCompletionHandler:); | |
NSMethodSignature* signature = [TheClass instanceMethodSignatureForSelector: initMethod]; | |
NSInvocation* invocation = [NSInvocation invocationWithMethodSignature: signature]; |
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
extension Dictionary where Key:Hashable, Value:Equatable { | |
func searchKeyOfValue(target:Value) -> Key? { | |
for (key, element) in self { | |
if element == target { | |
return key | |
} | |
} | |
return nil | |
} | |
} |
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
//this code snippet is only needed if you create your own container view controller class(eg. UINavigationController, | |
//UITabbarController) and you needed to force to update the interface orientation of your app, just works like | |
//Apple's implementation of dismissViewController: in UINavigationController. | |
// Use this code snippet in your dismiss method. (after removing the target child view controller) | |
// @require iOS5 and above. | |
UIInterfaceOrientation currentOrientation = [UIApplication sharedApplication].statusBarOrientation; | |
UIInterfaceOrientationMask mask = (1<<currentOrientation); | |
if(self.shouldAutorotate && (self.supportedInterfaceOrientations&mask)==0){ |
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
(function (Marionette, $) { | |
"use strict"; | |
var Controllers = window.Controllers = window.Controllers || {}; | |
Controllers.AlertViewController = Marionette.Object.extend({ | |
initialize: function (options) { | |
this._debugLog("[AlertViewController] initialize"); | |
}, | |
show: function (options) { |
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
-(IBAction) startCaptureSession:(id)sender{ | |
if([AVCaptureDevice videoCameraCount]==0) | |
return; | |
if(self.sessionBackCamera.isRunning == YES) | |
return; | |
DTrace(); | |
NSError *error= nil; |
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
#define variable | |
PostActionsFolder="PostActionsFolder" | |
DMGFolder="DMGFolder" | |
#Change to the build folder | |
echo "BUILT_PRODUCTS_DIR: "${BUILT_PRODUCTS_DIR} | |
cd ${BUILT_PRODUCTS_DIR} | |
rm -rf $PostActionsFolder | |
#create a PostActionsFolder |
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
tell application "iTerm" | |
activate | |
-- make a new terminal | |
set myterm to (make new terminal) | |
-- talk to the first terminal | |
tell the first terminal | |
-- launch a default shell in a new tab in the same terminal |