Skip to content

Instantly share code, notes, and snippets.

function stockPicker(market) {
let lowest_index = 0;
const lowest_previous_index = market.map((x, i) => {
if (x < market[lowest_index]) {
lowest_index = i;
}
return lowest_index;
});
let best = {
const DemoData = {
resources: [{
id: 'r1',
name: 'Interventions'
}],
events: [{
"id": 15,
"start": "2018-07-05T07:00:00Z",
"end": "2018-07-05T08:00:00.000Z",
"resourceId": "r1",
@IGI-111
IGI-111 / easing.js
Created January 30, 2019 15:24 — forked from gre/easing.js
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: function (t) { return t },
// accelerating from zero velocity
easeInQuad: function (t) { return t*t },
// decelerating to zero velocity
contract;
abi ProxyAbi {
#[storage(read)]
fn read_val() -> u64;
#[storage(write)]
fn write_target(target: ContractId);
}
#[namespace(proxy_47892374)]