Skip to content

Instantly share code, notes, and snippets.

View AgrYpn1a's full-sized avatar
🎯
Focusing

Rastko Tojagic AgrYpn1a

🎯
Focusing
View GitHub Profile
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
;; Place your private configuration here! Remember, you do not need to run 'doom
;; sync' after modifying this file!
;; Some functionality uses this to identify you, e.g. GPG configuration, email
;; clients, file templates and snippets. It is optional.
;; (setq user-full-name "John Doe"
;; user-mail-address "john@doe.com")
// with Flycheck
// [jsonrpc] e[15:17:13.231] --> textDocument/codeAction[29]
{"jsonrpc":"2.0","id":29,"method":"textDocument/codeAction","params":{"textDocument":{"uri":"file:///Users/rastko-tdf/work/hiway-web-app/src/App.js"},"range":{"start":{"line":32,"character":25},"end":{"line":32,"character":33}},"context":{"diagnostics":[]}}}
// [jsonrpc] e[15:17:13.233] <-- textDocument/codeAction[29]
{"jsonrpc":"2.0","id":29,"result":[{"title":"Move to a new file","kind":"refactor.move","command":{"title":"Move to a new file","command":"_typescript.applyRefactoring","arguments":[{"file":"/Users/rastko-tdf/work/hiway-web-app/src/App.js","startLine":33,"startOffset":26,"endLine":33,"endOffset":34,"refactor":"Move to a new file","action":"Move to a new file"}]}}]}
// with Flymake
// [jsonrpc] e[15:31:09.558] --> textDocument/codeAction[16]
{"jsonrpc":"2.0","id":16,"method":"textDocument/codeAction","params":{"textDocument":{"uri":"file:///Users/rastko-tdf/work/hiway-web-app/src/App.js"},"range":{"start":{"line":
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
;; Place your private configuration here! Remember, you do not need to run 'doom
;; sync' after modifying this file!
;; Some functionality uses this to identify you, e.g. GPG configuration, email
;; clients, file templates and snippets. It is optional.
;; (setq user-full-name "John Doe"
;; user-mail-address "john@doe.com")
;; Eglot ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(use-package eglot
:after
(project projectile)
:config
;; Scala
(add-to-list 'eglot-server-programs '(scala-mode . ("metals-emacs")))
;; React
;; -*- no-byte-compile: t; -*-
;;; $DOOMDIR/packages.el
;; To install a package with Doom you must declare them here and run 'doom sync'
;; on the command line, then restart Emacs for the changes to take effect -- or
;; use 'M-x doom/reload'.
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
;; (package! some-package)
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
;; Place your private configuration here! Remember, you do not need to run 'doom
;; sync' after modifying this file!
;; Some functionality uses this to identify you, e.g. GPG configuration, email
;; clients, file templates and snippets. It is optional.
;; (setq user-full-name "John Doe"
;; user-mail-address "john@doe.com")
import React from 'react';
import Box from '@mui/material/Box';
import { TreeItem as MuiTreeItem, TreeItemProps, treeItemClasses } from '@mui/x-tree-view/TreeItem';
import Typography from '@mui/material/Typography';
import { styled, useTheme } from '@mui/material/styles';
import { defaultStyledOptions } from '@protecht/ui-library/library/utils/defaultStyledOptions';
import { faTriangle } from '@fortawesome/pro-solid-svg-icons';
import { faTriangle as faTriangleRegular } from '@fortawesome/pro-regular-svg-icons';
densityTell :: String -> String
densityTell input
| Just density <- readMaybe input, density < 1.2 = "Wow! You're going for a ride in the sky!"
| Just density <- readMaybe input, density <= 1000.0 = "Have fun swimming, but watch out for sharks!"
| Nothing <- readMaybe input :: (RealFloat a => Maybe a) = "You know I need a density, right?"
| otherwise = "If it's sink or swim, you're going to sink.
{
"isSummaryReport":false,
"isActive":true,
"mode":"analytics",
"description":"Some description...",
"id":2697366,
"isOutputZipped":false,
"message":"<p><u>Some</u> <em>rich</em> text <strong>content</strong>:</p><ol><li><p>Item 1</p></li><li><p><span>Item</span> 2</p></li><li><p>Item 3 from <strong>new-ui</strong></p></li></ol><p><br></p>",
"name":"Rich Text Testing",
"outputFormat":"PDF",
;; Eglot ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(use-package project :demand t)
(use-package eglot
:after
(project projectile)
:config
;; Scala
(add-to-list 'eglot-server-programs '(scala-mode . ("metals-emacs")))
;; Typescript