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
Verifying that +morganbentell is my blockchain ID. https://onename.com/morganbentell |
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
from datetime import datetime, timedelta | |
import numpy | |
def hour_diff(a, b): | |
delta = a - b | |
day_hours = delta.days * 24 | |
second_hours = delta.seconds / 3600 | |
return day_hours + second_hours |
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
from datetime import timedelta, date | |
import subprocess | |
import json | |
import pandas | |
def run(command, current_date, end_date): | |
transactions = [] | |
fifteen_days = timedelta(days=15) |
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
onChange(listener: (state: T) => void) { | |
autorun(() => listener(this.state)); | |
} |
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
swap(swapFunction: (state: T, ...rest: any[]): T, ...args: any[]): T { | |
this.state = swapFunction.apply(null, [this.state, ...args]); | |
return this.state; | |
} |
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
export default new Store(); |
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
(ns day-eleven | |
(:require | |
[ysera.test :refer [is is-not is= deftest]] | |
[ysera.debug :refer [printreturn printlet]])) | |
(defn get-seat | |
{:test (fn [] | |
(is= (get-seat [".#" | |
"L."] [1 0]) "#") | |
(is= (get-seat [".#" |
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
swap<K extends unknown[]>(swapFunction: (state: T, ...args: K) => T, ...args: K): T { | |
this.state = swapFunction.apply(null, [this.state, ...args]); | |
return this.state; | |
} |