Skip to content

Instantly share code, notes, and snippets.

@hardvain
hardvain / notes.md
Created January 15, 2019 21:26 — forked from matthewjberger/notes.md
How to make an electron app using Create-React-App and Electron with Electron-Builder.
@hardvain
hardvain / BObject.scala
Last active December 13, 2019 10:17
Boxs
package in.boxs
sealed trait Position
case object Center extends Position
case object Corner extends Position
sealed trait Axis
case object XAxis extends Axis
case object YAxis extends Axis
case object ZAxis extends Axis
import React, { useState, useEffect } from "react";
import { Checkbox, Input, Row, Col, Slider } from "antd";
import ReactDOM from "react-dom";
import { v4 as uuidv4 } from "uuid";
const Component = ({ checked, text = "", id }) => {
const [value, setValue] = useState(false);
const [num, setNum] = useState(0);
useEffect(() => {
setValue(checked);
<pre>_SECTION_BEGIN;
// Code Source: wisestocktrader
SetChartOptions(0,chartShowArrows|chartShowDates);
/*Body Colors*/
whiteBody=C>=O;
blackBody=O>C;
/*Body Size*/
@hardvain
hardvain / dom.scala
Last active July 22, 2021 06:45
zio dom env
import org.scalajs.dom._
import org.scalajs.dom.document._
import zio._
import org.scalajs.dom.raw._
import scala.scalajs.js
import scala.scalajs.js.annotation._
import scala.language.postfixOps
trait DomService:
def implementation: UIO[DOMImplementation]