Clarice Bouwer

Clarice Bouwer @cbillowes

About: Curious programmer sharing byte-sized knowledge on dev.to. Passionate about Git, GCP, TypeScript, Next.js, and DevTools. Enjoys collaborating with others and leading by example.

Location:
Mauritius
Joined:
May 30, 2018

Clarice Bouwer
articles - 43 total

Owning the Chaos: A Simple Guide to Tackling Obscure Errors

It is important to know how errors get prioritized and responded to, as well as what steps would be taken to address them effectively while minimizing disruptions.

Learn More 0 0Dec 12 '24

How to Reframe your Inner Imposter

Struggling with imposter syndrome? Find out mind-blowing tricks to flipping your self-doubt into unstoppable confidence!

Learn More 0 0Nov 10 '24

Dynamically execute Tailwind CSS on multiple files with multiple outputs

Code snippet to dynamically execute Tailwind CSS in a given folder with multiple outputs for each file.

Learn More 1 1Jun 9 '24

How to update outdated npm packages

Stay ahead of potential vulnerabilities and ensure your project is running with the latest enhancements by following these simple steps.

Learn More 1 0May 20 '24

How to write formatted EDN to a file in Clojure

You could be generating a config file, constructing a data file or downloading/extracting data from a...

Learn More 3 1Feb 29 '24

How to get the nREPL port for a running REPL

I want to connect to a running REPL on my local machine outside of Visual Studio Code. The terminal...

Learn More 1 0Oct 26 '23

How to read all bytes from a resource file in Clojure

(-> "images/something.jpg" io/resource io/file .toPath ...

Learn More 0 0Aug 16 '23

How to configure python environs for Visual Studio Code

If you need to store environment variables for Python that does not automatically get detected by VS...

Learn More 3 0Jul 29 '23

Python Data Science Cheat Sheets (a WIP project)

I am doing a Data Science bootcamp through Le Wagon. I have found static cheat sheets that I have...

Learn More 0 0Jul 14 '23

How to create a string from values joining with commas and an and.

I have a vector of errors that looks like this: (def messages [{:error "Name is required"} ...

Learn More 0 0Jul 3 '23

How to import with absolute paths in Gatsby

gatsby-node.js: const path = require('path') exports.onCreateWebpackConfig = ({ actions }) =>...

Learn More 0 0Jun 30 '23

How to get distinct values in a grid

def get_distinct_values(values): return list(set(filter(lambda x: x != 0, values))) Enter...

Learn More 0 0Jun 29 '23

How to mask a dd/mm/yyyy date string in ClojureScript

(defn mask-date [date] (let [date (-> date (clojure.string/replace #"/" "") ...

Learn More 0 0Jun 28 '23

Cheat: read edn file, replace values and return condensed map

You can see how to replace nested values in Clojure in this post. This code will read an edn...

Learn More 0 0Jun 26 '23

How to replace nested values in Clojure

You can use clojure.walk/postwalk to replace nested values that exist in maps and vectors. (defn...

Learn More 0 0Jun 26 '23

How to clean up branches in Git

To delete branches already merged: git branch --merged | grep -v '^[ *]*main$' | xargs git branch...

Learn More 0 0Jun 19 '23

Select keys to form a tupled map in Clojure

Example: Taking a vector of maps that looks like [{:fruit "apple" :color "red" :brand "Granny...

Learn More 0 2Jan 17 '23

Why you will see the error "Loading chunk \d+ failed"

I know of the following reasons why chunks cannot be downloaded: network errors: inspect the...

Learn More 0 0Sep 6 '22

Redact values in a map using clojure.walk/postwalk

(defn redact [data] (walk/postwalk (fn [node] (if (and (vector? node) (= :id-number...

Learn More 0 0Aug 22 '22

How to run a single Clojure test from the terminal using Leiningen

Use case You may want to target and run a specific test or set of tests when testing your...

Learn More 4 0Aug 8 '22

Pro tip: Edit your web page content from the browser window

Executing document.designMode = "on" in the browser console will let you click and type anywhere you...

Learn More 3 0Jul 22 '22

How to unmap a var from a Clojure namespace

I was working with a multimethod that I needed to redefine in my REPL and came across this...

Learn More 7 0Jun 21 '22

How to minify CSS files via CopyWebpackPlugin for Webpack5

Goal Emit minified vendor-based CSS files on build. ...

Learn More 12 0Jun 15 '22

Attack of the bruised ego

Take feedback as objectively as possible. Don't be married to your ideas and code. Instead...

Learn More 0 0Jun 15 '22

How to debug a specific Gatsby package on build

I got an error and needed to get verbose logs for a particular package during a Gatsby build. I came...

Learn More 6 0May 28 '22

How to write stdout both to the terminal and a file

Below I use the tee command to write the output of an npm run build script to both to the terminal...

Learn More 7 0May 4 '22

How to sort your package.json dependencies

npm r -S example; npm r -D example Enter fullscreen mode Exit fullscreen mode ...

Learn More 7 2Apr 18 '22

Code Snippet: Name CSS Split Chunks using MiniCssExtractPlugin

React: 17.0.2 Webpack: 5.67.0 Webpack CLI: 4.9.1 mini-css-extract-plugin 2.5.3 ...

Learn More 7 0Mar 17 '22

How to recover a file from another branch in Git

git show branch:filename.ext > path/to/file.ext Enter fullscreen mode Exit...

Learn More 0 0Jan 25 '22

How to see the contents of stashed changes in Git

git stash show -p stash@{0} Enter fullscreen mode Exit fullscreen mode ...

Learn More 0 0Jan 24 '22