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 / 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.
#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)
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.
"""
@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

@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 / 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 / EveryOUI
Created November 1, 2015 05:27 — forked from jeffThompson/EveryOUI
Every Organizationally Unique Identifier (OUI), via: http://standards-oui.ieee.org/oui.txt
EVERY ORGANIZATIONALLY UNIQUE IDENTIFIER (OUI)
Via: http://standards-oui.ieee.org/oui.txt
Details: http://en.wikipedia.org/wiki/Organizationally_unique_identifier
"Azimut" Production Association JSC
"RPC "Energoautomatika" Ltd
+plugg srl
01DB-METRAVIB
100fio networks technology llc
10NET COMMUNICATIONS/DCA
@Teino1978-Corp
Teino1978-Corp / getCiteCounts.R
Created November 1, 2015 05:24 — forked from gadenbuie/getCiteCounts.R
Look up citation counts with rcrossref
getCiteCounts <- function(citekeys, bibtex){
## This function takes a list of citation keys, for ex. from lit review notes
## and a master bibtex file with citekeys and DOIs
## Returns a vector of number of times each article was cited from CrossRef
# Check for and load/install required packages
# --> stringr, rcrossref
if (!'stringr' %in% installed.packages()) install.packages('stringr')
require(stringr, quietly=TRUE)
pdflatex final-writeup.tex
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)
restricted \write18 enabled.
entering extended mode
(./final-writeup.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, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis
@Teino1978-Corp
Teino1978-Corp / ieee-conference.sublime-snippet
Created November 1, 2015 04:08 — forked from pipex/ieee-conference.sublime-snippet
Sublime Text 2 snippet for IEEE (IEEETran) conferences with my personal configuration preferences
<snippet>
<content><![CDATA[
% Don't forget IEEETRAN.cls and IEEETran.bst
% on your source folder
\documentclass[10pt,conference]{IEEEtran}
% AMS Packages
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}