- Sign Up
- Credit Card Checkout
- Landing Page (above the fold)
- Calculator
- App Icon
- User Profile
- Settings
- 404 page
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
/** | |
* @typedef {Object} RangeOpts | |
* @property {number} [step=1] | |
* @property {boolean} [isInclusive=2] | |
*/ | |
class Range { | |
#index = 0; | |
#length = 0; |
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
#![feature(iter_array_chunks)] | |
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
/// Instructions | |
/// | |
/// Pick the best hand(s) from a list of poker hands. | |
/// | |
/// See wikipedia for an overview of poker hands. | |
/// | |
/// Ranking a list of poker hands can be considered a sorting problem. |
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
function logColor(color, args) { | |
console.log(`%c ${args.join(' ')}`, `color: ${color}`); | |
} | |
const log = { | |
aliceblue: (...args) => { logColor('aliceblue', args)}, | |
antiquewhite: (...args) => { logColor('antiquewhite', args)}, | |
aqua: (...args) => { logColor('aqua', args)}, | |
aquamarine: (...args) => { logColor('aquamarine', args)}, | |
azure: (...args) => { logColor('azure', args)}, |
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 timermachine = Machine({ | |
id: "timer", | |
initial: "inactive", | |
context: { | |
breakLength: 10, | |
breakRemaining: 0, | |
sessionLength: 10, | |
sessionRemaining: 0, | |
cooldownLength: 1, | |
cooldownRemaining: 0, |
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
defmodule Collection.Artist do | |
use Ecto.Schema | |
schema "artists" do | |
field(:name, :string) | |
end | |
def changeset(struct, params) do | |
struct | |
|> Ecto.Changeset.cast(params, [:name]) |
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 authMachine = Machine({ | |
id: 'auth', | |
initial: 'idle', | |
context: { | |
error: null, | |
isAuthorised: false, | |
retries: 3, | |
}, | |
states: { | |
idle: { |
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
import React from "react"; | |
import { StyleSheet, Text, TextInput, View } from "react-native"; | |
/* --------------------------------------- *\ | |
* Local versions of imported modules, | |
* just for isolated testing. | |
\* --------------------------------------- */ | |
const s = StyleSheet.create({ | |
white: { color: "#ffffff" }, | |
bg_mid: { backgroundColor: "#1A5163" }, |
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 TheoUserSecurityPreference = { | |
PIN: "PIN", | |
BIOMETRIC: "BIOMETRIC", | |
NONE: "NONE" | |
}; | |
// services | |
async function cacheStaticImages() { | |
console.log("Images cached") | |
return; |
NewerOlder