Skip to content

Instantly share code, notes, and snippets.

View Teino1978-Corp's full-sized avatar

Teino Boswell Teino1978-Corp

  • Ocho Rios, Jamaica
View GitHub Profile
@Teino1978-Corp
Teino1978-Corp / LinePlot.ahk
Created November 1, 2015 22:32 — forked from danko3/LinePlot.ahk
Lineplot makes a plot of a CSV file The CSV file (PlotFile) has three columns; a timestamp and two values (between 0-255 for the channels of the Velleman k8055 board) Needs Grapher.ahk by jonny, hacked by me to get ticmarks and renamed to grapher1.ahk
/*
Lineplot v2.0
by danko
Lineplot makes a plot of a CSV file
The CSV file (PlotFile) has three columns;
a timestamp and two values (between 0-255 for the channels of the
Velleman k8055 board)
Needs Grapher.ahk by jonny, hacked by me
to get ticmarks and renamed to grapher1.ahk
\documentclass[final,t]{beamer}
\mode<presentation>
{
% \usetheme{Warsaw}
% \usetheme{Aachen}
% \usetheme{Oldi6}
% \usetheme{I6td}
\usetheme{I6dv}
% \usetheme{I6pd}
% \usetheme{I6pd2}
@Teino1978-Corp
Teino1978-Corp / duck.sty
Created November 1, 2015 22:18 — forked from cereda/duck.sty
Sample duck package
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{duck}[2012/18/07 Duck style for memoir]
\RequirePackage{graphicx}
\RequirePackage{xcolor}
\RequirePackage{tikz}
\RequirePackage{xspace}
\definecolor{cffffff}{RGB}{255,255,255}
\definecolor{cffcc00}{RGB}{255,204,0}
\documentclass[article,a4paper,12pt,twoside]{memoir}
%% We require ``twoside'' in order for the left/right pages to have different headers
%% But this then requires us to solve some problems with margin pars not showing up
%% That
%% For double spacing
\DisemulatePackage{setspace}
\usepackage{setspace}
%% For turning off hyphenation globally
@Teino1978-Corp
Teino1978-Corp / IP.tex
Created November 1, 2015 22:06 — forked from leegao/IP.tex
Integer programming
\documentclass[12pt,a4paper,svgnames]{article}
\usepackage{amsmath}
\usepackage{fullpage}
\usepackage{amsfonts}
\usepackage{amssymb,amsthm}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{algorithm}
@Teino1978-Corp
Teino1978-Corp / Time-Price Contour for Amibroker
Created November 1, 2015 21:59
Time and Price Contour for Amibroker
_SECTION_BEGIN("Time & Price Contour");
// Milind and KAKA created the core of this code in 2009-10
// Tweaks, Additonal Functions & Visual Design by Twitter.com/Uptickr in June 2015
// Visit Uptickr's blog on Options Investing at http://www.uptickr.in
// For Nifty Futures DONT adjust Vertical Density above 2. For smaller stocks,
// Vertical Density will have to be adjusted lower. Eg. For Rs. 300 stock. set vertical desnity to 0.25.
// ADJUST SCALE FOR PROPER APPEARANCE BY SHIFT-CLICKING Y-AXIS
//**********************
//WORKS ONLY in 30 MINUTE TIMEFRAME
@Teino1978-Corp
Teino1978-Corp / Maual Button Trading
Created November 1, 2015 21:54 — forked from marketcalls/Maual Button Trading
Manual Button Trading in Amibroker
Title = " ";
_SECTION_BEGIN("MaualTradingInt1V00 ");
EnableRealTimeControl = ParamList("Enable Controls", "No|Yes", 0);
EnableAutoTrade = ParamList("Enable Autotrade", "No|Yes", 0);
ClientIdValue = ParamStr("Client Id", "CLIENTID");
PurchaseType = ParamList("Transaction Type", "MIS|NRML", 0);
OrderType = ParamList("Order Type", "LIMIT|MARKET", 0);
BuyPriceSelection = ParamList("Buy Price", "Bid Price|Ask Price|LTP", 0);
_SECTION_BEGIN("RKR_AutoTrade1V00 ");
Title = " ";
EnableRealTimeControl = ParamList("Enable Controls", "No|Yes", 0);
EnableStrategy = ParamList("Enable Strategy", "No|Yes", 0);
StrategyType = ParamList("StrategyType", "Long/Short|Long|Short", 0);
EnableAutoTrade = ParamList("Enable Autotrade", "No|Yes", 0);
BuyPriceSelection = ParamList("Buy Price", "Bid Price|Ask Price|LTP", 0);
SellPriceSelection = ParamList("Sell Price", "Ask Price|Bid Price|LTP", 0);
ProductType = ParamList("Product Type", "MIS|NRML", 0);
This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) (format=pdflatex 2010.7.21) 7 NOV 2012 15:40
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**CertifyingEdgeConnectivity.tex
(./CertifyingEdgeConnectivity.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek, ibycus, arabic, armenian
, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutch, u
//try to make a toy monte carlo
//waste calculation
void simpleProfitPrediction(){
gBenchmark->Start("htrang");
TH1 *hprofit = new TH1F("hprofit","hprofit",100,-2000,6000);
Int_t numUnit;
Float_t rentUnit=500;
Float_t monthlyExpense;
Float_t profit;