By Austin G. Davis-Richardson
(Use their installation instructions)
<?php | |
require 'bigcommerce.php'; | |
use Bigcommerce\Api\Client as Bigcommerce; | |
error_reporting(E_ALL); | |
ini_set('display_errors', '1'); |
#Read csv file into data | |
data <- read.csv("data.csv", header=TRUE) | |
#if data has a column called Temp with missing values, fill from prev (requires zoo package) | |
#install.packages("zoo") | |
data <- transform(data, Temp = na.locf(Temp)) | |
#colnames of datatable | |
colnames(data) |
# A Ruby implementation of | |
# the Viterbi algorithm based on the hidden Markov model (HMM) | |
# | |
# An original Python code: a Wikipedia page "Viterbi algorithm" at | |
# http://en.wikipedia.org/wiki/Viterbi_algorithm | |
# | |
# Author: MISHIMA, Hiroyuki | |
# | |
require 'pp' |
By Austin G. Davis-Richardson
(Use their installation instructions)
!------------------------------------------------------------------------------- | |
! Xft settings | |
!------------------------------------------------------------------------------- | |
Xft.dpi: 96 | |
Xft.antialias: false | |
Xft.rgba: rgb | |
Xft.hinting: true | |
Xft.hintstyle: hintslight | |
XTerm*font: *-fixed-*-*-*-20-* |
//store frame for motion functions | |
var previousFrame; | |
var paused = false; | |
var pauseOnGesture = false; | |
var prevGestureID = 0; | |
//setup leap loop with frame callback function | |
var controllerOptions = {enableGestures: true}; | |
Leap.loop(controllerOptions, function(frame){ |
$(document).ready(function() { | |
$('.gist').each(function(i) { | |
writeCapture.html(this, '<script src="'+$(this).text()+'.js"></script>'); | |
}); | |
}); |
require 'bigcommerce' | |
require 'json' | |
require 'rest-client' | |
require 'pp' |
require 'bigcommerce' | |
require 'httparty' | |
require 'dropbox-api' | |
namespace :backups do | |
desc "Run a backup of all images" | |
task :run => :environment do | |
# let us setup a user with bcstore and dropbox creds | |
# this assumes that the user has allowed access to the dropbox application registered and in return, |
When starting a project that includes refinerycms-blog: | |
$ rake refinery:override view=refinery/pages/* | |
$ rake refinery:override view=layouts/* | |
$ rake refinery:override view=refinery/blog/shared/* | |
$ rake refinery:override view=refinery/blog/posts/* | |
$ rake refinery:override view=refinery/* | |
$ rake refinery:override controller=refinery/blog/* | |
$ rake refinery:override controller=refinery/* |