Skip to content

Instantly share code, notes, and snippets.

View Hypercubed's full-sized avatar

Jayson Harshbarger Hypercubed

View GitHub Profile
@Hypercubed
Hypercubed / input.scss
Created June 4, 2023 00:36
Generated by SassMeister.com.
View input.scss
@use 'sass:map';
@use 'sass:list';
@use 'sass:selector';
@function to-string($list, $glue: '') {
$result: nth($list, 1);
@if length($list) > 1 {
@for $i from 2 through length($list) {
$result: $result + $glue + nth($list, $i);
@Hypercubed
Hypercubed / input.scss
Created June 3, 2023 23:37
Generated by SassMeister.com.
View input.scss
@use 'sass:map';
$tokens: (
'color-red': #ff0000,
'color-blue': #00ff00,
'color-green': #0000ff,
'size-40': 2.5rem,
'size-48': 3rem,
'size-56': 3.5rem,
'shadow-2xs': var(----shadow-2xs)
@Hypercubed
Hypercubed / input.scss
Created June 3, 2023 22:57
Generated by SassMeister.com.
View input.scss
@use 'sass:map';
$tokens: (
'red': #ff0000,
'blue': #00ff00,
'green': #0000ff
);
$mixins: ();
View what-to-wear.ts
// Name: What to Wear
import "@johnlindquist/kit"
const gps = await db({ lat: 0, long: 0 });
if (gps.data.lat === 0 && gps.data.long === 0) {
gps.data.lat = await arg("Enter your lat");
gps.data.long = await arg("Enter your long");
await gps.write();
View refresh-screen.js
// Name: Refresh Screen
import "@johnlindquist/kit"
await widget(`
<style>
body, html {
padding: 0 !important;
margin: 0 !important;
overflow: hidden;
View README.md

run1:test (OK)

Running run1:test works fine

chomp run1:test
🞂 ./test.out
./test.txt ./test.out
√ ./test.out [4.791791ms]
View README.md

run1:test (OK)

Running run1:test works fine

chomp run1:test
🞂 ./test.out
./test.txt ./test.out
√ ./test.out [4.791791ms]
View effects.ts
// 1. Reacting to a state change
save() {
this.store.setSaveButtonState(ButtonState.InProgress);
this.store.saveRecord();
this.store.saveButtonState
.pipe(
filter(state => state !== ButtonState.InProgress),
take(1)
View .gitignore
-/
node_modules/
package-lock.json
View .gitignore
-/
node_modules/
package-lock.json