Skip to content

Instantly share code, notes, and snippets.

View WizardsOrb's full-sized avatar
👽
Future is bright

Wizward WizardsOrb

👽
Future is bright
  • Enceladus, Saturn
View GitHub Profile
@WizardsOrb
WizardsOrb / SaturnCards.jsx
Created August 7, 2019 08:54
Saturn Cards
import React from "react";
// reactstrap components
import {
Card,
CardHeader,
CardBody,
CardTitle,
CardColumns,
Row,
@WizardsOrb
WizardsOrb / saturnextensions.ts
Created May 1, 2019 06:34
extensions for saturn.js
import _ from 'lodash'
export default class Functions {
public getRSI = (saturn, token: string, network?: string, periods?: number): Promise<object> => {
return new Promise((resolve, reject) => {
let x = periods || 14
saturn.query.ohlcv(token, network || 'etc').then((ohlcvdata:any) => {
let period: Array<any> = ohlcvdata.slice(x * -1)
let avgOpen: number = _.meanBy(period, (p:any) => Number(p.open))
let avgClose: number = _.meanBy(period, (p:any) => Number(p.close))
@WizardsOrb
WizardsOrb / Hashicon.tsx
Last active October 18, 2021 22:43
React Component for ETC-Hashicons. Wizard ❤️ Saturn
import React, { useEffect, useRef, ImgHTMLAttributes } from "react";
import { Params, hashicon, HasherType } from "@emeraldpay/hashicon";
export interface Props {
value: string;
size?: number;
hasher?: HasherType;
options?: Params;
style?: React.CSSProperties;
className?: string;