##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
from application.mail import mail_send | |
... | |
SECURITY_SEND_MAIL_FUNCTION = mail_send | |
... | |
FROM_EMAIL = '[email protected]' | |
FROM_NAME = u'Site Admin' |
#!/bin/bash | |
# <UDF name="hostname" label="The hostname for the new Linode" example="apps"> | |
# <UDF name="fqdn" label="The new Linode's Fully Qualified Domain Name" example="apps.example.com"> | |
# <UDF name="adminuser" label="Username for new admin user (cannot be dokku)"> | |
# <UDF name="adminpass" label="Password for new admin user"> | |
# <UDF name="adminkey" label="SSH public key authorized for admin user (password SSH auth will be disabled)"> | |
# <UDF name="dokkukey" label="SSH public key authorized for dokku user (used when deploying apps)"> | |
# Turn off password authentication and root login for SSH |
*~ | |
registry-server/ | |
.vagrant/ |
Notes from reading through R Packages by Hadley Wickham. This is meant to review, not replace, a thorough readthrough. I mainly wrote this as a personal review, since writing summaries and attempting to teach others are some of the best ways to learn things.
Packages are used to organize code together so that it can be used repeatedly and shared with others.
A lot of work with packages is done via the devtools package.
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) | |
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 ) ) |
################################################### | |
## | |
## Functions for calculating AUC and plotting ROC | |
## Corey Chivers, 2013 | |
## [email protected] | |
## | |
################################################### | |
## Descrete integration for AUC calc |
library(shiny) | |
library(ggplot2) | |
# Download DataTables JS file and TableTools full package from http://datatables.net/download/ | |
# Change the paths appropriately: | |
addResourcePath('datatables','/Users/yourusername/Downloads/DataTables-1.9.4/media') | |
addResourcePath('tabletools','/Users/yourusername/Downloads/TableTools-2.1.5/media') | |
runApp(list( | |
ui = basicPage( |