Folders
purescript_autocomplete
- demo:
dist/index.html
- design process:
StatebackPrototype/architecture/autocomplete
- accept selection by both keyboard and mouse
- mouse selection is prioritized, which means that mouse selection will be display in the input field when keyboard selection is also available
- TODO: configurable behaviors
- when keyboard cursor at the upper/lower boundary, further up/down keypress will push the window sliding to the correct position so keyboard cursor is always in the view
- will lock in the correct place even when the current scroll position is not precisely align with any of the items' boundaries
- In demo page, data will get refreshed 10 seconds after the page being loaded to demonstrate correct behavior upon reset
- TODO: add debouncer to input field (
purescript_debouncer
)
- demo:
purescript_auto_size_input
- demo:
dist/index.html
- automatically adjust the width of the input box to fit its current input text
Enter
for confirmation to add an item- click on
X
to remove an item - This will be integrated into
prescript_autocomplete
- demo:
purescript-pseudo-random_enhance
- built on top of
purescript-pseudo-random
randomsWithSeed
andrandomRsWithSeed
return randomly generated values with the final seed which can later be feed into another random generation- an example using State monad to compose seed-dependent computations
- built on top of
elm_register_form
- demo:
demo/
yarn install
yarn start
, page is available atlocalhost:3000
.
- composable validators built on applicative functors (
elm_src/Validation.elm
)- email
- non-empty (
isNotEmpty
) - decided by a dedicated regular expression (
isEmail
)
- non-empty (
- password
- non-empty (
isNotEmpty
) - constraint on length (
>= 6
)
- non-empty (
- repeated password
- non-empty (
isNotEmpty
) - identical to password (
isEqualTo
)
- non-empty (
- age
- optional (augment a
Validator
byoptional
)optional :: Validator String a -> Validator String (Maybe a)
- natural number (
isNatural
)
- optional (augment a
- policy
- checked (
isTrue
)
- checked (
- email
- validations will be triggered by each key stroke after the first attempt
- demo:
js_class_projects
cyclejs_google_map
- demo:
demo/
yarn install
yarn start
, page is available atlocalhost:8081
.
- This was originally built on top of a elasticsearch index with a geo distance query.
- debouncing is implemented using
xstream
- demo:
async_fluture_db_cli
, see READMEelastic_search
, queries for ESneo4j
, queries for Neo4jramda_scrapper_fandango
, scrapper powered byaxios
,cheerio
andRamda
ramda_api_TMS
, transform data from TMS api
js_data_structures
, implementation of some basic constructs from FP in JSelm_logic_functions
,elm_monoid
,elm_helpers
, utility functions for Elmpurescript_coroutines
, digging internals ofpurescript-coroutines
crocks_async_error_handling
, usage ofAsync
monad in CrocksJScrocks_monoid_first_match
, usage ofFirst
monoid in CrocksJScrocks_async_with_readers
, usage ofReader
monad to inject environmentcrocks_binary_branching
, 6 ways of branching and integration by function compositionpic/
, draft