Skip to content

Instantly share code, notes, and snippets.

{
"count": 4,
"payload": {
"general": {
"exitAtSignal": [
null
],
"returnType": {
"perTrade": "notional",
"daily": "average"
@jsleeuw
jsleeuw / s3-bucket-config.md
Created June 27, 2019 16:10
S3-bucket-config.md
  1. Create an S3 bucket
  2. Configure the bucket policy to grant permissions ORATS:

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::AccountB:user/AccountBUserName" }, "Action": [ "s3:GetObject", "s3:PutObject", "s3:PutObjectAcl" ], "Resource": [ "arn:aws:s3:::AccountABucketName/*" ] } ] }

@jsleeuw
jsleeuw / macro
Last active August 29, 2015 14:08
macro view {
rule {
$viewName {
$body ...
}
} => {
var React = require('react');
var Components = require('app/components');
var Grid = Components.Grid;
var Table = Components.Table;
# @cjsx React.DOM
React = require('react')
Components = require('app/components')
Grid = Components.Grid
Table = Components.Table
BF1220O = React.createClass
render: ->
#import "AutoLayoutVFLViewController.h"
@interface AutoLayoutVFLViewController ()
@property (strong, nonatomic) UILabel *label;
- (void)animateLabel;
@end
@implementation AutoLayoutVFLViewController
- (void)loadView
#import "AutoLayoutStandardViewController.h"
@interface AutoLayoutStandardViewController ()
@property (strong, nonatomic) NSLayoutConstraint *constraintToAnimate;
@property (strong, nonatomic) UILabel *label;
- (void)animateLabel;
@end
@implementation AutoLayoutStandardViewController