##Ubuntu Server
sudo apt-get install g++ curl libssl-dev apache2-utils git-core make
cd /usr/local/src
wget http://nodejs.org/dist/v0.10.28/node-v0.10.28.tar.gz
tar -xvzf node-v0.10.28.tar.gz
cd node-v0.10.28
julia> using TimeSeries, MarketTechnicals, MarketData, Lazy | |
julia> @> OHLC doji findall x->OHLC[x] x->x.timestamp | |
166-element Array{Date{ISOCalendar},1}: | |
1962-03-02 | |
1962-04-13 | |
1962-07-16 | |
1962-10-08 | |
1963-02-08 | |
1963-05-22 |
getSymbols("^GSPC", from="1950-01-01") | |
p = 10 | |
a = na.omit(merge( volatility(GSPC, n=p)*100, lag(volatility(GSPC, n=p), k=-p)*100 )) | |
names(a) = c("hv", "rv") | |
medianvalues = c() | |
meanvalues = c() | |
maxvalues = c() | |
minvalues = c() | |
keys = c() | |
for ( x in seq( 0, max(a$hv), 2 ) ) |
llxc = function( a, ll=-12:12, legend.loc="topleft", displayLegend=T, legend.cex=1.0, overplot=F ) | |
{ | |
if ( ncol(a) < 2 ) | |
{ | |
print( "Not enough columns") | |
return; | |
} | |
a = na.omit(a) | |
virtualenv --no-site-packages . | |
source bin/activate | |
bin/pip install Django psycopg2 django-sentry | |
bin/pip freeze > requirements.txt | |
bin/django-admin.py startproject mysite | |
cat >.gitignore <<EOF | |
bin/ | |
include/ | |
lib/ | |
EOF |
{# use in combination with https://github.com/zyga/django-pagination #} | |
{# and http://twitter.github.com/bootstrap/ #} | |
{# project-dir/templates/pagination/pagination.html #} | |
{% if is_paginated %} | |
{% load i18n %} | |
<div class="pagination"> | |
<ul> | |
{% block previouslink %} | |
{% if page_obj.has_previous %} |
.input-recaptcha { | |
width:172px; | |
} |
library("quantmod") | |
# we're pulling the Google VIX index (VXGOG) but this also works for VXAPL, VXGS etc. | |
# see http://www.cboe.com/micro/equityvix/introduction.aspx | |
url <- "http://www.cboe.com/publish/ScheduledTask/mktdata/datahouse/VXGOGDailyPrices.csv" | |
symb = read.csv(url,header=FALSE, stringsAsFactors=F) | |
symb <- symb[-1,] | |
colnames(symb) <- c(symb[1,]) | |
symb <- symb[-1,] |
<?php | |
/** | |
* | |
* Author: Mauro Marano | |
* eMail: http://www.mauromarano.it/contact.php | |
* Date: 13/11/2012 | |
* | |
* Prima di iniziare | |
* ================= |
if open_jobs < idle_workers.count | |
scaledown_workers | |
elsif all_workers_working? && jobs_queued? && (instances_count - workers.count) < open_jobs | |
scaleup_workers | |
end |