This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Lookup | |
attr_reader :person, :service | |
def initialize(person) | |
@person = person | |
@service = ThirdPartyService.new | |
end | |
def find_match | |
lookups = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# import libraries | |
import pandas as panda_data_frame | |
import numpy as num_py | |
from fbprophet import Prophet | |
# create a data frame from the csv file, log-transform for normality | |
df = panda_data_frame.read_csv('clicks.csv') | |
df['y'] = num_py.log(df['y']) | |
df.head() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'digest' | |
# A Snake Coin Block, stores data and it's hashed content | |
class Block | |
attr_reader :index, :timestamp, :data, :previous_hash, :hash | |
def initialize(index, timestamp, data, previous_hash) | |
@index = index | |
@timestamp = timestamp | |
@data = data | |
@previous_hash = previous_hash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |