JsPerf
Test cases for javascript browser profiling.
package "language-pack-en" do | |
action :install | |
end | |
package "tzdata" do | |
action :install | |
end | |
link "/etc/localtime" do | |
to "/usr/share/zoneinfo/Australia/Melbourne" |
execute "mkswap" do | |
command "dd if=/dev/zero of=/var/swapfile bs=1024 count=$((1226*1024)); mkswap /var/swapfile" | |
creates "/var/swapfile" | |
umask 0077 | |
action :run | |
end | |
mount "none" do | |
action :enable | |
device "/var/swapfile" |
# Make sure you apt-get update before applying this. | |
package { "language-pack-en": | |
ensure => latest | |
} | |
package { "tzdata": | |
ensure => latest | |
} |
exec { "mkswap": | |
command => "dd if=/dev/zero of=/swap bs=1024 count=$((1226*1024)); mkswap /var/swapfile", | |
creates => "/var/swapfile" | |
} | |
file { "/var/swapfile": | |
ensure => present, | |
mode => 600, | |
require => Exec["mkswap"] | |
} |
weekday = (function() { | |
// Returns the weekday number for the given date relative to January 1, 1970. | |
function weekday(date) { | |
var weekdays = weekdayOfYear(date), | |
year = date.getFullYear(); | |
while (--year >= 1970) weekdays += weekdaysInYear(year); | |
return weekdays; | |
} |
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<form action="http://remote.com/index.html" | |
method="post" | |
enctype="multipart/form-data" |
/** | |
* Demonstrating configuring a techanjs plot to accept and plot custom data types. | |
*/ | |
// Either, update the default plot accessor | |
// All plots have default accessors. Here we are updating the default and redefining how | |
// to get close from the data | |
candlestick.accessor().close(function(d) { | |
return d.currentBid; // Where d is an item in your supplied array | |
}); |
Test cases for javascript browser profiling.
Average Directional Index (ADX) calculation and rendering demo.
Average True Range (ATR) calculation and rendering demo.