Skip to content

Instantly share code, notes, and snippets.

Avatar

Jayson Harshbarger Hypercubed

View GitHub Profile
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
View .gitignore
-/
node_modules/
package-lock.json
View airdrop.config.js
module.exports = {
"package_path": "./-/",
"package_root": "/-/"
}
View plugin.service.ts
import { Injectable, Injector, Compiler } from '@angular/core';
import { SettingsService } from './settings.service';
@Injectable({
providedIn: 'root'
})
export class PluginsService {
constructor(
private settings: SettingsService,
View .gitignore
node_modules
package-lock.json
@Hypercubed
Hypercubed / tvl.ts
Created December 23, 2017 01:25
Three-valued logic (TS)
View tvl.ts
export type bool = boolean | null;
export type cmpValue = -1 | 0 | 1;
export function not(a: bool) {
if (a === true) return false;
if (a === false) return true;
return null;
}
export function and(lhs: bool, rhs: bool): bool {