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 / xholonWorkbook.xml
Created November 1, 2015 07:08 — forked from kenwebb/xholonWorkbook.xml
Interactive Storytelling (IS)
<?xml version="1.0" encoding="UTF-8"?>
<!--Xholon Workbook http://www.primordion.com/Xholon/gwt/ MIT License, Copyright (C) Ken Webb, Sun Jan 18 2015 18:05:29 GMT-0500 (EST)-->
<XholonWorkbook>
<Notes><![CDATA[
Xholon
------
Title: Interactive Storytelling (IS)
Description:
Url: http://www.primordion.com/Xholon/gwt/
@Teino1978-Corp
Teino1978-Corp / Accessibility_basics.md
Created November 1, 2015 07:26 — forked from renoirb/Accessibility_basics.md
Testing random pages passed through formatter
@Teino1978-Corp
Teino1978-Corp / data_primer.md
Created November 1, 2015 18:50 — forked from chrislkeller/data_primer.md
Thinking through how we to pool knowledge on 1033 data? Is it possible to construct a living history or nerd box or cookbook for journalists going through the 1033 data? Especially the new stuff?

Maintained version moved here

Defense Logistics Agency's 1033 program data

Commonly known as the 1033 program, the Department of Defense surplus disposal program administered through the Defense Logistics Agency has its roots in the 1990 National Defense Authorization Act, which sets the federal budget for the Department of Defense every two years.

In the 1996 version of that budget, Congress created Section 1033 that allowed "all law enforcement agencies to acquire property for bona fide law enforcement purposes that assist in their arrest and apprehension mission."

The 24-year-old program received increased scrutiny in 2014 after several media report

import math
import numpy
import numpy.random as nrand
"""
Note - for some of the metrics the absolute value is returns. This is because if the risk (loss) is higher we want to
discount the expected excess return from the portfolio by a higher amount. Therefore risk should be positive.
"""
#lattice exploration of Vanguard Bond Fund (vbmfx)
#returns since 1990
require(quantmod)
require(lattice)
require(latticeExtra)
require(PerformanceAnalytics)
getSymbols("VBMFX",from="1896-01-01",to=Sys.Date(),adjust=TRUE)
@Teino1978-Corp
Teino1978-Corp / performanceReportREADME.txt
Created November 1, 2015 21:20 — forked from thertrader/performanceReportREADME.txt
Trading Strategies Performance Report with R and Knitr
###############################################################################
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
//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;
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
_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);
@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);