I 'm fleshing out some of these ideas here: https://github.com/lynaghk/todoFRP/tree/master/todo/angular-cljs
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
SketchSystems Frontend App* | |
# Fired whenever the URL changes (e.g., browser's back/forward buttons are used, or if someone clicks a link in the UI to navigate to their profile, create a new sketch, etc.) | |
navigate -> Loading | |
Error | |
# All events from this state come from the server, which tells the frontend whether the user is logged in, if they own this sketch, etc. | |
Loading* | |
new logged in -> New Logged In |
Sketch.systems uses the wonderful Instaparse Clojure(Script) library to parse statechart specifications. Unfortunately, the current grammar is quite memory intensive and on larger specs suffers from multi-second garbage collection pauses.
Suggestions welcome!
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
;; A comparison of Rel: https://docs.relational.ai/rel/primer/aggregations_groupby_joins | |
;; with datascript: https://github.com/tonsky/datascript/ | |
;; Unless otherwise indicated, all datascript outputs match the ones shown in the Rel Primer. | |
(ns user | |
(:require [datascript.core :as d] | |
clojure.string)) | |
(def csv | |
"Messi,70,32,BFC,Argentina |
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
id | val | |
---|---|---|
C4410 | 1000 | |
C17985 | 750 | |
C17887 | 300 | |
C17900 | 100000 | |
C17901 | 100 | |
C17902 | 10000 | |
C17903 | 10 | |
C17924 | 180 | |
C17928 | 1 |
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
#!/usr/bin/env python | |
import xlrd | |
import os | |
import sys | |
import csv | |
import re | |
re_px = re.compile(":([0-9.]+)") |
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
LoadingAnimation | |
Loading | |
next -> AlmostDone | |
AlmostDone | |
next -> Finished | |
Finished | |
next -> App | |
App |
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
JSX example |
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
pub mod network; | |
pub mod realsense_bindings; | |
pub type CameraTimestamp = u64; | |
pub const WIDTH: usize = 640; | |
pub const HEIGHT: usize = 480; | |
pub const FPS: usize = 30; | |
pub const FRAME_SIZE: usize = WIDTH * HEIGHT * 2; //16 bit depth info | |
pub const RECIEVER_ADDR: &'static str = "192.168.1.2:9898"; |