- Adding tags and search box feature to existing UI v3 code
- Remove the use of
dynfunction for routing case - Add dropdown and address bar routing
- Expanding Type API and removing MonadWidget constraint
- Adding content in home page
- Adding Luite's diff link to matrix table
This file contains hidden or 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
| _ <- mdo | |
| historyState <- manageHistory $ HistoryCommand_PushState <$> setState | |
| let | |
| f (currentSet, currentHistoryState, oldRoute) idxChange = | |
| let newRoute = switchPkgRoute currentSet oldRoute idxChange | |
| in | |
| HistoryStateUpdate | |
| { _historyStateUpdate_state = DOM.SerializedScriptValue jsNull | |
| , _historyStateUpdate_title = "" | |
| , _historyStateUpdate_uri = newRoute |
This file contains hidden or 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
| routeLink True r w = do | |
| let cfg = (def :: ElementConfig EventResult t (DomBuilderSpace m)) | |
| & elementConfig_eventSpec %~ addEventSpecFlags (Proxy :: Proxy (DomBuilderSpace m)) Click (\_ -> preventDefault) | |
| & elementConfig_initialAttributes .~ "href" =: r | |
| (e, a) <- element "a" cfg w | |
| setRoute $ (switchPkgRoute (Just $ decodeFrag r)) <$ domEvent Click e | |
| return a | |
| routeLink False r w = do | |
| let cfg = (def :: ElementConfig EventResult t (DomBuilderSpace m)) | |
| & elementConfig_initialAttributes .~ "href" =: r |
This file contains hidden or 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
| newPkgs: oldPkgs: | |
| with oldPkgs; | |
| let | |
| noCheck = p: haskell.lib.dontCheck p; | |
| noHaddock = p: haskell.lib.dontHaddock p; | |
| fast = p: noHaddock (noCheck p); | |
| static = p: haskell.lib.justStaticExecutables (fast p); | |
| in { | |
| # All haskellPackages |
This file contains hidden or 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 DB (dbTable, dbMap, dbFilter, runExpr) | |
| import Prelude (error) | |
| type FirstName = String | |
| type LastName = String | |
| type Age = Int | |
| type City = String | |
| data Row = Row FirstName LastName Age City |
This file contains hidden or 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
| { jupyterWith | |
| , haskellPackages | |
| , haskellPkg ? (_: []) | |
| , pythonPkg ? (_: []) | |
| , pythonOverridesList ? [] | |
| }: | |
| let | |
| jupyterSrc = jupyterWith + "/nix"; | |
| inherit (import jupyterSrc {}) pkgs lib; |
This file contains hidden or 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
| $remoteport = bash.exe -c "ip a | grep 'inet '" | |
| $found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'; | |
| if( $found ){ | |
| $remoteport=$remoteport.Split("inet"); | |
| foreach ($rp in $remoteport) { | |
| if ($rp -match '172.\d{1,3}\.\d{1,3}\.\d{1,3}') { | |
| $remoteport=$rp; | |
| $remoteport=$remoteport.Split("/"); |
This file contains hidden or 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
| async fn docker_json_to_smth(arg: (Docker, &ContainerSummary)) -> () { | |
| let (docker, csummary) = arg; | |
| let container = docker | |
| .inspect_container( | |
| csummary.id.as_ref().unwrap(), | |
| None::<InspectContainerOptions>, | |
| ) | |
| .await | |
| .unwrap(); |
This file contains hidden or 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
| { | |
| "name": "rust", | |
| "version": "0.1.0", | |
| "description": "frontend wasm in rust", | |
| "license": "MIT", | |
| "private": true, | |
| "scripts": { | |
| "todo_watch": "yarn run todo_clean && rollup -c rollup.dev.js --watch", | |
| "todo_clean": "rimraf ./devhtml/js", | |
| }, |
This file contains hidden or 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 fn run_fmt(toml_content: &Root, cwd: PathBuf) -> anyhow::Result<()> { | |
| let commands = toml_content | |
| .formatters | |
| .values() | |
| .map(|c| c.command.clone().unwrap_or("".into())); | |
| let args = toml_content.formatters.values().map(|c| { | |
| let arg = match c.args.clone() { | |
| Some(vstr) => vstr, | |
| None => Vec::new(), |