Skip to content

Instantly share code, notes, and snippets.

View Zlass's full-sized avatar
💩

Zach Glassner Zlass

💩
View GitHub Profile
1. When the app is launched on a mobile device, the app shall require that users log-in to their Lively account to access any features via email and password credentials.
Rationale: Most of the features we will provide to customers will be tied to their Lively account. By requiring them to log-in, they will get the full customer experience.
Note 1: If there is any issue with the username or password entered, users should see an error explaining “Wrong username or password”
Note 2: If there is any other issue with the login (such as server connection error… etc), customers should see an error explaining “Something went wrong. Try again later”
Note 3: Default screen after login should be hearing aid controls
2. During login, the app shall check if the user is an existing Lively customer. If the user is an existing Lively customer, the app shall allow them to log in. If the user is not an existing Lively customer, the app shall prevent the user from logging in, and display a message that the
### Keybase proof
I hereby claim:
* I am zlass on github.
* I am zlass (https://keybase.io/zlass) on keybase.
* I have a public key whose fingerprint is C98A 6C13 BB35 6C51 9943 C50D 40F8 BF72 9738 A395
To claim this, I am signing this object:
@Zlass
Zlass / machine.js
Last active December 15, 2020 18:59
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@Zlass
Zlass / machine.js
Last active August 27, 2020 19:32
Generated by XState Viz: https://xstate.js.org/viz
const VolumeStreamsMachine = Machine({
id: 'VolumeStreams',
type: 'parallel',
on: {
volume_changed: {
actions: 'forward_to_parent',
},
volume_muted: {
actions: 'forward_to_parent',
@Zlass
Zlass / machine.js
Created August 5, 2020 15:07
Generated by XState Viz: https://xstate.js.org/viz
const States = {
collapsed: 'collapsed',
expanded: 'expanded',
};
const Event = {
expand: 'expand',
collapse: 'collapse',
batteryStateChange: 'battery-state-change',
levelChange: 'level_change',
@Zlass
Zlass / machine.js
Created July 16, 2020 16:06
Generated by XState Viz: https://xstate.js.org/viz
// Internal Actions
var HearingAidActions;
(function (HearingAidActions) {
HearingAidActions["UpdateConnectionStatus"] = "UPDATE_HEARING_AID_CONNECTION";
HearingAidActions["UpdateBestSide"] = "UPDATE_BEST_SIDE";
HearingAidActions["UpdateInstrumentInfo"] = "update_instrument_info";
HearingAidActions["UpdateInstrumentSettings"] = "update_instrument_settings";
HearingAidActions["UpdateProgramList"] = "UPDATE_PROGRAM_LIST";
HearingAidActions["UpdateProgram"] = "CURRENT_PROGRAM";
HearingAidActions["InitializeHearingAidManager"] = "INITIALIZE_HEARING_AID_MANAGER";
@Zlass
Zlass / machine.js
Last active June 19, 2020 18:26
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
https://cse.google.com/cse?cx=000149041674583171682:tunphzoiy70
@Zlass
Zlass / README.md
Last active August 20, 2019 15:51 — forked from hofmannsven/README.md
Increase key repeat rate on macOS

Increase key repeat rate on macOS

Settings: System Preferences » Keyboard » Key Repeat/Delay Until Repeat

Use the commands below to increase the key repeat rate on macOS beyond the possible settings via the user interface. The changes aren't applied until you restart your computer.

Source: https://apple.stackexchange.com/a/83923

@Zlass
Zlass / rmq_socket_server_types.ts
Last active July 24, 2019 19:13
Types for Rabbit MQ Gradeworker Socket Server
export namespace GradeWorker {
/**
* Base class for RMQ requests to gradeworker.
*/
export interface Request {
how_to_handle_result: HowToHandleResult;
attachment?: any; // Way to included as arbitrary data in rabbitMQ responses
}
/**