I hereby claim:
- I am danscan on github.
- I am danscan (https://keybase.io/danscan) on keybase.
- I have a public key ASAS_Adf3xZSUSirUuF9Cfjd_Bf9PZ_diAinf-zLiouIfwo
To claim this, I am signing this object:
import Observation | |
@Observable class StatefulService<State, API> { | |
typealias Stream = StateStream<State> | |
typealias StateStreamTask = Task<Void, Never> | |
typealias OnStateChange = (State) -> Void | |
/// The API of the service | |
let api: API | |
/// The state of the service |
I hereby claim:
To claim this, I am signing this object:
precision mediump float; | |
varying vec2 position; | |
uniform float time; | |
const float waves = 19.; | |
// triangle wave from 0 to 1 | |
float wrap(float n) { | |
return abs(mod(n, 2.)-1.)*-3. + 1.; |
function requestUserOwnsPost(requestUser, post) { | |
return requestUser.id === post.owner; | |
} | |
const db = { | |
postsById: { | |
'2': { | |
id: 2, | |
owner: 1, | |
body: 'hey', |
const db = { | |
usersBySessionToken: { | |
'1': { | |
id: 1, | |
name: 'Dan', | |
}, | |
}, | |
postsById: { | |
'2': { |
{ | |
"retainLines": true, | |
"compact": true, | |
"comments": false, | |
"stage": 1, | |
"whitelist": [ | |
"es6.arrowFunctions", | |
"es6.blockScoping", | |
"es6.classes", | |
"es6.destructuring", |
// Writes: Append-Only Stream | |
{ operation: 'write', key: 'users.e36a7c158ee2a92143967b7a860f4ea5.first_name', value: 'Dan', date: 'yesterday', clientVersion: 'yesterday' } | |
{ operation: 'write', key: 'users.e36a7c158ee2a92143967b7a860f4ea5.first_name', value: 'Daniel', date: 'yesterday', clientVersion: 'yesterday' } | |
{ operation: 'write', key: 'users.e36a7c158ee2a92143967b7a860f4ea5.first_name', value: 'Daniel', date: 'yesterday', clientVersion: 'yesterday' } | |
{ operation: 'rename key', key: 'users.*.first_name', name: 'users.*.firstName', date: 'today' } | |
{ operation: 'write', key: 'users.e36a7c158ee2a92143967b7a860f4ea5.first_name', value: 'Esteban', date: 'today', clientVersion: 'yesterday' } | |
{ operation: 'write', key: 'users.e36a7c158ee2a92143967b7a860f4ea5.first_name', value: 'Justin', date: 'today', clientVersion: 'today' } | |
// Present-Time value of `users.e36a7c158ee2a92143967b7a860f4ea5` | |
{ firstName: 'Esteban', first_name: 'Justin' } |
import React from 'react-native' | |
const { Animated, View } = React | |
import styles from './styles' | |
// Configuration Constants | |
const INITIAL_VALUE_SCALE = 0 | |
const DESTINATION_VALUE_SCALE = 1 | |
const VALUE_SCALE_SPRING_FRICTION = 5 | |
export default class Bar extends React.Component { |