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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
<div> | |
<div> | |
<h1>Get system information</h1> | |
<i>Supports: Win, macOS, Linux <span>|</span> Process: Both</i> |
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
let buzzing = false | |
/** | |
* Hard-coded interval for now is not ideal | |
*/ | |
const minutes = 10 | |
const interval = minutes * (1000 * 60) | |
/** | |
* Can you detect if the Bangle is Buzzing or in Buzz in progress? |
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
/** | |
* So you get 240 x 240 so you can technically do different things right? | |
* Colors? | |
*/ | |
g.clear() | |
//g.drawImage(img, 100,100); | |
class Ring { | |
constructor() { |
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
/** | |
* Teach a user morse code | |
*/ | |
g.clear() | |
let index = 0; | |
const MORSE_MAP = { | |
a: '.-', | |
b: '-...', |
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
//Bangle.beep(10000, 10000) | |
let b = null; | |
let freq = 5000; | |
let radius = 0; | |
let DURATION = 50; | |
const LOWER = 500; | |
const LOWER_MAG = 0.97; | |
const UPPER_MAG = 1.03; | |
const UPPER = 10000; |
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
/** | |
* So you get 240 x 240 so you can technically do different things right? | |
* Colors? | |
*/ | |
g.clear(); | |
class Ring { | |
constructor() { | |
this.alive = true; |
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
/** | |
* Teach a user morse code | |
*/ | |
/** | |
* Constants | |
*/ | |
const FONT_NAME = 'Vector12'; | |
const FONT_SIZE = 80; | |
const SCREEN_PIXELS = 240; | |
const UNIT = 100; |
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
*, | |
*:before, | |
*:after { | |
box-sizing: border-box; | |
} | |
:root { | |
--size: 50; | |
--unit: calc((var(--size) / 769) * 1vmin); | |
--specs: #262626; | |
--shell-outline: #666; |
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
const Blurbs = ({ onChange, blurb, noscript }) => { | |
return ( | |
<Fragment> | |
{!noscript && ( | |
<input | |
className="blurb-swapper" | |
onChange={onChange} | |
type="range" | |
min="0" | |
max={BLURBS.length - 1} |
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
const myObject = { | |
a: 1, | |
b: 2, | |
...(false && { c: 3 }), | |
} | |
// myObject: { a: 1, b: 2 } | |
const myObject = { | |
a: 1, | |
b: 2, |