Skip to content

Instantly share code, notes, and snippets.

👕
~

Chris Stefano virtualstaticvoid

👕
~
Block or report user

Report or block virtualstaticvoid

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@virtualstaticvoid
virtualstaticvoid / Ensure.cs
Last active Nov 14, 2018
C# Ensure for Argument Errors
View Ensure.cs
//
// MIT License
// Copyright (c) 2009 Chris Stefano <virtualstaticvoid@gmail.com>
//
using System;
using System.Diagnostics;
internal static class Ensure
{
[DebuggerStepThrough]
@virtualstaticvoid
virtualstaticvoid / .gitignore
Last active Oct 23, 2018
heroku-buildpack-r/issues/113
@virtualstaticvoid
virtualstaticvoid / .gitignore
Last active Mar 19, 2018
Heroku Buildpack R - rJava Example
View .gitignore
MyExchange.class
@virtualstaticvoid
virtualstaticvoid / .r-version
Last active Aug 16, 2019
Heroku Buildpack R - plumber Example
@virtualstaticvoid
virtualstaticvoid / .ruby-version
Last active Mar 19, 2018
Heroku Buildpack R - rinruby + sinatra Example
@virtualstaticvoid
virtualstaticvoid / Aptfile
Last active Feb 11, 2019
Heroku Buildpack R - RPostgreSQL Example
View Aptfile
libcurl4-openssl-dev
libpq-dev
@virtualstaticvoid
virtualstaticvoid / init.R
Last active Mar 19, 2018
Heroku Buildpack R - dplyr Example
View init.R
my_packages = c("dplyr")
install_if_missing = function(p) {
if (p %in% rownames(installed.packages()) == FALSE) {
install.packages(p)
}
else {
cat(paste("Skipping already installed package:", p, "\n"))
}
}
@virtualstaticvoid
virtualstaticvoid / application.rb
Last active Mar 19, 2018
Heroku Buildpack R - Serving a plotted image via a Ruby Sinatra web application
View application.rb
require 'sinatra'
require 'rinruby'
# root page
get '/' do
sample_size = 10
html = "<html>"
html += "<head><title>R Code Test</title></head>"
@virtualstaticvoid
virtualstaticvoid / A Out of process interface to R using Redis
Last active Mar 9, 2016
Out of process interface to R using Redis
View A Out of process interface to R using Redis
Out of process interface to R using Redis
@virtualstaticvoid
virtualstaticvoid / operation.rb
Created Dec 17, 2014
Operation[params] vs Operation.(params) vs Operation(params)
View operation.rb
# gem code
module Trailblazer
class Operation
def self.inherited(klass)
qualified_name = klass.name
name_parts = qualified_name.split('::')
method_name = name_parts.last
You can’t perform that action at this time.