profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/arichiardi/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Andrea Richiardi arichiardi Canada https://andrearichiardi.com/ Went down the rabbit hole (-> C Java Clojure) and enjoyed every inch of it. Self-starter and open minded software engineer.

anmonteiro/lumo 1847

Fast, cross-platform, standalone ClojureScript environment

arichiardi/boot-dynamodb 3

A Boot task to launch a local DynamoDB server.

arichiardi/abio 0

Host access abstractions for ClojureScript

arichiardi/abio-node 0

Abio bindings for Node

arichiardi/andare 0

core.async for bootstrap ClojureScript

arichiardi/AndroidBacteriaImageProcessing 0

An Android App that snaps a picture of a petrifilm, counts the bacteria and posts the counts on a server for the mWater project

arichiardi/ar-org 0

Keeping myself organized

arichiardi/ar-settings 0

My personal settings, dotfiles and scripts

arichiardi/ava-project 0

A port of AdapterViewAnimator and subclasses (AdapterViewFlipper, StackView) to < 11 Android.

issue openedxwiki-labs/cryptpad

Calendar date/time disappear when All Day is enabled

Describe the bug It seems like the Calendar suffers of some sort of bug related to "All day". Or maybe it is by design but it could probably be improved.

Where did it happen? CryptPad.fr

To Reproduce Steps to reproduce the behavior:

  • Go to Calendar
  • Create a new event
  • Toggle "All Day"
  • The date input fields go away

Expected behavior The date should stay visible so that you can change it if you change your mind.

Browser (please complete the following information):

  • OS: linux
  • firefox

created time in 17 hours

issue commentkentcdodds/use-deep-compare-effect

isPrimitive check is truthy when val is null

@kentcdodds My interval is an object, wouldn't this library deep-compare it's keys?

Maybe I am misinterpreting :smile:

arichiardi

comment created time in 2 days

issue openedkentcdodds/use-deep-compare-effect

isPrimitive check is truthy when val is null

  • use-deep-compare-effect version: 1.6.1
  • node version: 12.22.4
  • npm version: 7.20

Relevant code or config

useDeepCompareEffect(() => {
    setInternalInterval(initialInterval)
  }, [initialInterval])

What you did:

The initialInterval value is null on first render by component/data flow design. Normally it would be an object.

What happened:

The library throws useDeepCompareEffect should not be used with dependencies that are all primitive

Problem description:

I was expecting the null not to be treated as primitive and therefore forbidden.

Suggested solution:

I am not sure this is the right approach but given null means absence of value (or something!) for both objects and arrays, I would probably handle it as part of the deep comparison.

A workaround there is to pass {} to the component or normalize it internally, so I am not really blocked, but I wanted to report this for thinking about it.

Probably there is a good reason why it is the way it is :smile:

Thanks for this library!

created time in 2 days

push eventarichiardi/ar-settings

Andrea Richiardi

commit sha 7699f448a72346db1c23c0a7ce65806c43bbd741

Update secrets (2021-09-14T11:05:54-06:00)

view details

push time in 4 days

startederp12/fijit

started time in 4 days

push eventarichiardi/ar-settings

Andrea Richiardi

commit sha aec6d272d2d426cba4ceb3b729e981886dc4d049

Update secrets (2021-09-08T10:17:57-06:00)

view details

push time in 10 days

push eventarichiardi/ar-settings

Andrea Richiardi

commit sha 1962ee6c11633351ee88057bd56acbef767c4226

Move rofi config to new theme format

view details

push time in 10 days

push eventarichiardi/emacs.d

Andrea Richiardi

commit sha 8f0238f3a2779c483c85498da70719ec26b01de8

Update editorconfig

view details

Andrea Richiardi

commit sha ddc758a71290057bf084738a2e545f4b34ab5c1f

Enable editorconfig globally

view details

Andrea Richiardi

commit sha df65525cc7293e3aafb7b37d029c585ba7e4847e

Use mmm-mode for typescript + css + web

view details

push time in 10 days

issue commentFuco1/smartparens

Strict mode - cannot disable pair matching with custom predicate

Nice! Thanks it seems like it is working indeed.

arichiardi

comment created time in 14 days

startedDogLooksGood/zprint.el

started time in 14 days

push eventarichiardi/emacs.d

Andrea Richiardi

commit sha 2b172d287159319407f8c710bfe2f4eef07f4a39

Update smartparens

view details

Andrea Richiardi

commit sha 2bbef3498e6260e2dd4830b55ecc40457fe8de4f

Tweak web-mode and javascript config

view details

Andrea Richiardi

commit sha 4079f78d10d8bc468a98687219aa746b550c119f

Tweak typescript config

view details

push time in 14 days

startedggascoigne/react-table-example

started time in 16 days

push eventarichiardi/ar-settings

Andrea Richiardi

commit sha 29c23ae65c27ddb57dd66ab4dae10cd0a0058fc9

Update secrets (2021-09-01T19:45:43-06:00)

view details

push time in 16 days

issue openedFuco1/smartparens

Strict mode - cannot disable pair matching with custom predicate

Hi there, I am working with web-mode and Javascript and I have the following issue.

Expected behavior

It should allow me to write => (JS inline function)

Actual behavior

Every time I try to write =>, smartparens complains with We can not insert unbalanced closing delimiter in strict mode.

Steps to reproduce the problem

Enable web-mode and (require 'smartparens-javascript) and (smartparens-strict-mode) Try = followed by a >.

Backtraces if necessary (M-x toggle-debug-on-error)

None

I have actually tried the following:

with a predicate like:

(defun ar-emacs--point-after-equal-p (id action context)
  "Return t if point is after \\=, nil otherwise.  This predicate
is only tested on \"insert\" action."
  (when (eq action 'insert)
    (save-excursion
      (= (preceding-char) ?=))))

First using:

(sp-local-pair 'web-mode "<" nil :skip-match 'ar-emacs--point-after-equal-p)

Then

(sp-local-pair 'web-mode "<" nil :unless ('ar-emacs--point-after-equal-p))

In both cases I was not able to make it work.

Environment & version information

In recent enough smartparens you can call M-x sp-describe-system to generate this report. Please fill manually what we could not detect automatically. Edit the output as you see fit to protect your privacy. The content of the buffer underneath the line was copied to your clipboard. You can also edit it in this buffer and then copy the results manually.

  • smartparens version: master aka 63695c6
  • Active major-mode: web-mode
  • Smartparens strict mode: t
  • Emacs version (M-x emacs-version): GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.29, cairo version 1.17.4) of 2021-06-08
  • Starterkit/Distribution: Vanilla
  • OS: gnu/linux

created time in 17 days

issue commentstorybookjs/storybook

Actions argTypesRegex not managed by storyshots

Had the same issue here with a custom onXYZ that is being pass an object as parameter. The workaround partially works but you won't see the action in the panel.

soullivaneuh

comment created time in 18 days

startedDavidVujic/clojurescript-amplified

started time in 19 days

issue commentkkinnear/zprint

Fail on Clojurescript values: `##NaN`, `##Inf`, `##-Inf`

Will definitely send something over, thanks Kim as you remember my configuration is very unique 😃

kkinnear

comment created time in 20 days

issue closedkkinnear/zprint

No-key-order would not skip reordering

Hi Kim, it's been a while, we have been very nicely using zprint for all this time in CI and it works like a charm, thank you! Many thank you!

I have a small issue that I hope it's not something I am missing.

This is the input:

;;!zprint {:map {:justify? true :sort? true :key-order [:paths :deps :aliases] :respect-bl? false :key-no-sort #{"aliases"}}}
{:paths ["dev" "src" "resources"]
 :deps {buddy/buddy-hashers {:mvn/version "1.8.1"}}
 :aliases
 {:dev      {:extra-deps  {com.clojure-goes-fast/clj-async-profiler {:mvn/version "0.4.0"}
                           orchestra/orchestra {:mvn/version "2018.12.06-2"}}
             :extra-paths ["dev/src" "dev/resources" "classes"]}
  :test     {:extra-deps  {com.gearswithingears/shrubbery {:mvn/version "0.4.1"}
                           lambdaisland/kaocha            {:mvn/version "1.0.861"}
                           lambdaisland/kaocha-cloverage  {:mvn/version "1.0.75"}
                           lambdaisland/kaocha-junit-xml  {:mvn/version "0.0.76"}
                           org.clojure/test.check         {:mvn/version "0.10.0-alpha3"}}
             :extra-paths ["test" "test/resources"]}
  :carve    {:extra-deps {borkdude/carve {:git/url "https://github.com/borkdude/carve"
                                          :sha     "f499f65e36e02484609f01ce891f3c0207b24444"}}
             :main-opts  ["-m" "carve.main"]}}}

See comment on the top. I basically want to avoid reordering :aliases because I like to have :dev at the top but I'd like to order the top level keys as [:paths :deps :aliases].

However, this does not happen for some reason (:carve shows up at the top). Please let me know if you want me to try something else,

Andrea

closed time in 21 days

arichiardi

issue commentkkinnear/zprint

No-key-order would not skip reordering

Will close this one now, bookmarking it.

arichiardi

comment created time in 21 days

issue commentkkinnear/zprint

No-key-order would not skip reordering

Oh thanks for the thorough answer, I have to say I might have not read the doc very carefully there 🤭 The :key-value-options is really useful!

arichiardi

comment created time in 21 days

push eventarichiardi/emacs.d

Andrea Richiardi

commit sha 82fa6e387a48469e55e6909c736b52240354da2d

Add typescript config but remove prettier stuff

view details

push time in 21 days

issue commentkkinnear/zprint

Fail on Clojurescript values: `##NaN`, `##Inf`, `##-Inf`

@kkinnear I have downloaded the binary and the error is gone!

I have noticed a couple of differences with the way zprint was doing things previously. It is around 20 files changed with the new version, not sure how I sure report them - maybe the "Discussion" section of Github works? Let me know

kkinnear

comment created time in 22 days

issue commentkkinnear/zprint

Fail on Clojurescript values: `##NaN`, `##Inf`, `##-Inf`

Great, I will try that right away!

For what it is worth, this entire pre-release was built using solar power on an island in the middle of a lake using two laptops and a cell phone with cellular internet access.

This makes it even cooler!

kkinnear

comment created time in 22 days

issue openedprettier/prettier-emacs

[warn] Ignored unknown option --stdin

Hi there, started to use this package and receiving that warning when try to call (prettier-js).

$ prettier -v
2.3.2

and

$ prettier --help | grep stdin
  --stdin-filepath <path>  Path to the file to pretend that stdin comes from.

Sorry not really upto snuff on the JavaScript side of things but thought it would be good to report it.

created time in 22 days

startedclj-kondo/config

started time in 23 days

issue commentjuxt/crux

Connection pool db-spec can only be a map

I have actually just realized why it was not working. The options are camelCase (:jdbcUrl) :open_mouth:. Thanks for adding the example @jarohen!

arichiardi

comment created time in 24 days

issue commentkkinnear/zprint

Fail on Clojurescript values: `##NaN`, `##Inf`, `##-Inf`

Hey Kim, well I will start saying that if too much work, don't worry about it, I thought you had something running in CI. If not maybe I could contribute something there, I am pretty familiar with CircleCI. We run linux boxes ourselves...cause you asked 😃 Thanks again!

kkinnear

comment created time in 24 days

issue commentkkinnear/zprint

Fail on Clojurescript values: `##NaN`, `##Inf`, `##-Inf`

@kkinnear is there a binary preview of 1.2.0? We would love to try it out cause this error affects our formatting and we needed to disable our code quality check in CI?

kkinnear

comment created time in 25 days

issue openedkkinnear/zprint

No-key-order would not skip reordering

Hi Kim, it's been a while, we have been very nicely using zprint for all this time in CI and it works like a charm, thank you! Many thank you!

I have a small issue that I hope it's not something I am missing.

This is the input:

;;!zprint {:map {:justify? true :sort? true :key-order [:paths :deps :aliases] :respect-bl? false :key-no-sort #{"aliases"}}}
{:paths ["dev" "src" "resources"]
 :deps {buddy/buddy-hashers {:mvn/version "1.8.1"}}
 :aliases
 {:dev      {:extra-deps  {com.clojure-goes-fast/clj-async-profiler {:mvn/version "0.4.0"}
                           orchestra/orchestra {:mvn/version "2018.12.06-2"}}
             :extra-paths ["dev/src" "dev/resources" "classes"]}
  :test     {:extra-deps  {com.gearswithingears/shrubbery {:mvn/version "0.4.1"}
                           lambdaisland/kaocha            {:mvn/version "1.0.861"}
                           lambdaisland/kaocha-cloverage  {:mvn/version "1.0.75"}
                           lambdaisland/kaocha-junit-xml  {:mvn/version "0.0.76"}
                           org.clojure/test.check         {:mvn/version "0.10.0-alpha3"}}
             :extra-paths ["test" "test/resources"]}
  :carve    {:extra-deps {borkdude/carve {:git/url "https://github.com/borkdude/carve"
                                          :sha     "f499f65e36e02484609f01ce891f3c0207b24444"}}
             :main-opts  ["-m" "carve.main"]}}}

See comment on the top. I basically want to avoid reordering :aliases because I like to have :dev at the top.

However, this does not happen for some reason. Please let me know if you want me to try something else,

Andrea

created time in 25 days

startedptaoussanis/encore

started time in a month