I hereby claim:
- I am johnmetta on github.
- I am johnmetta (https://keybase.io/johnmetta) on keybase.
- I have a public key whose fingerprint is 3FC1 B761 BA1F 5738 6385 BAB4 443D 4D4F 8F14 DBBF
To claim this, I am signing this object:
public class ZScoreOutput | |
{ | |
public List<double> input; | |
public List<int> signals; | |
public List<double> avgFilter; | |
public List<double> filtered_stddev; | |
} | |
public static class ZScore | |
{ |
#!/usr/bin/env python | |
# Implementation of algorithm from http://stackoverflow.com/a/22640362/6029703 | |
import numpy as np | |
import pylab | |
def thresholding_algo(y, lag, threshold, influence): | |
signals = np.zeros(len(y)) | |
filteredY = np.array(y) | |
avgFilter = [0]*len(y) | |
stdFilter = [0]*len(y) |
#!/bin/bash | |
set -e | |
set -v | |
# Get the sources | |
mkdir gn-standalone | |
cd gn-standalone | |
mkdir tools | |
cd tools |
#!/bin/bash | |
set -e | |
set -v | |
# Get the sources | |
mkdir gn-standalone | |
cd gn-standalone | |
mkdir tools | |
cd tools |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
class TestMailer < ActionMailer::Base | |
default :from => "[email protected]" | |
def welcome_email | |
mail(:to => "[email protected]", :subject => "Test mail", :body => "Test mail body") | |
end | |
end | |
TestMailer.welcome_email.deliver |
I hereby claim:
To claim this, I am signing this object:
Given a block method which takes an argument and an optional hash, zeus cannot recognize the block on the commandline if paretheses are used.
To wit, on the commandline
2.1.0 > def test(sym, opts={}, &block)
2.1.0?> puts "starting #{sym} with options #{opts.to_s}"
2.1.0?> yield
2.1.0?> puts "ending #{sym}"
2.1.0?> end
# Non-Rails version that pulls mappings without using ActiveRecord. Externally pulls data and stores on filesystem. | |
class ActiveRecordMappings | |
attr_accessor :database, :command | |
# Initialize with a database name and a mysql commandline string | |
# e.g. arm = ActiveRecordMappings.new(command: "mysql -u john -p", database: "my_stuff") | |
def initialize(opts={}) | |
opts.assert_valid_keys :database, :command | |
@database = opts[:database] |