Skip to content

Instantly share code, notes, and snippets.


Meghdoot Dhameliya meghs91

View GitHub Profile
meghs91 / MyBrokerage.cs
Last active May 16, 2019
IBrokerage and IDataQueueHandle implemented
View MyBrokerage.cs
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using NodaTime;
using QuantConnect.Data;
using QuantConnect.Data.Market;
using QuantConnect.Logging;
using QuantConnect.Packets;
meghs91 / handlebars-helper-x.js
Created Dec 5, 2017 — forked from akhoury/handlebars-helper-x.js
Handlebars random JavaScript expression execution, with an IF helper with whatever logical operands and whatever arguments, and few more goodies.
View handlebars-helper-x.js
// for detailed comments and demo, see my SO answer here
/* a helper to execute an IF statement with any expression
-- Yes you NEED to properly escape the string literals, or just alternate single and double quotes
-- to access any global function or property you should use window.functionName() instead of just functionName()
-- this example assumes you passed this context to your handlebars template( {name: 'Sam', age: '20' } ), notice age is a string, just for so I can demo parseInt later
{{#xif " name == 'Sam' && age === '12' " }}
View states_hash.json
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",
View MapViewController.h
// MapViewController.h
// MapsCustomInfoWindow
// Created by Jon Friskics on 4/22/14.
// Copyright (c) 2014 Jon Friskics. All rights reserved.
#import <UIKit/UIKit.h>
You can’t perform that action at this time.