Skip to content

Instantly share code, notes, and snippets.

View bobbicodes's full-sized avatar
💭
Moved to bobbicodes on Codeberg

Bobbi Towers bobbicodes

💭
Moved to bobbicodes on Codeberg
View GitHub Profile
@bobbicodes
bobbicodes / devjourney.md
Created January 10, 2023 23:51
DevJourney Podcast preparation notes

DevJourney Podcast outline

It's incredibly timely to be doing this now, because up until this very month, I thought it was a bit of a stretch to call me "successful".

Most of my experience in software is through volunteering for Exercism and even when you contacted me about doing this, I was technically unemployed.

This just changed a couple of weeks ago, when I received my first sponsorship to work on open source!

In preparation for this, I kind of accidentally got addicted to your podcast, and have spent a huge amount of time listening to the back episodes, trying to recognize common themes, and thinking about what qualities are expresses by my favorite guests.

@bobbicodes
bobbicodes / social-media.md
Created January 1, 2023 00:15
Social media and psychological exploitation

Social media has become an integral part of our daily lives, with billions of people around the world using platforms like Facebook, Instagram, and Twitter on a regular basis. These networks have revolutionized the way we communicate and share information, but they have also been criticized for the way they exploit our psychological vulnerabilities to keep us hooked. In this article, we'll explore how each of the major social networks targets a different part of our psychology to keep us coming back for more.

Facebook is the oldest and largest of the social networks, with over 2.8 billion monthly active users as of 2021. It is designed to foster connection and community, and it does this by tapping into our need for social validation and belonging. When we see our friends and family posting about their lives and accomplishments, we feel a sense of connection and validation. This is reinforced by the "like" and comment feature, which gives us a hit of dopamine every time someone engages with our content. Face

* red chili peppers (green ones are unripe)
* 1 can chipotles in tomato sauce
* 1 can corn
* 2-3 large onions (or more smaller ones)
* 12 oz plant-based protein (Impossible Sausage is great)
* 1 pkg Lipton onion soup mix
* Beans/lentils
* pearl barley
* potatoes
* many many cloves of garlic
@bobbicodes
bobbicodes / main.clj
Created December 16, 2022 01:06
Representation playground
(ns clojure-representer.main
(:require [clojure-representer.analyzer.jvm :as ana.jvm]
[clojure-representer.analyzer.passes.jvm.emit-form :as e]
[clojure-representer.analyzer.passes.uniquify :refer [mappings placeholder]]
[clojure.java.io :as io]
[clojure.string :as str]
[clojure.edn :as edn]
[babashka.fs :as fs]
[rewrite-clj.zip :as z]
[clojure.data.json :as json]
@bobbicodes
bobbicodes / approaches.clj
Last active December 9, 2022 05:53
Finding common approaches with the Exercism Clojure Representer
;; Representer: https://github.com/exercism/clojure-representer/blob/main/src/clojure_representer/main.clj
(let [solution-representation
(map
#(slurp (str "resources/armstrong_numbers/"
% "/src/expected-representation.txt"))
(range 500))
solution-code
(map
#(slurp (str "resources/armstrong_numbers/"
@bobbicodes
bobbicodes / friends.clj
Last active January 6, 2023 15:35
Who unfriended me?
(ns friends
(:require [cheshire.core :as json]
[clojure.set :as set]))
;; The way this works is you download your own Facebook data as JSON
;; (Settings -> Privacy -> Your Facebook information -> Download Your Information)
;; All that you need is Connections -> Friends and followers selected.
;; It will be ready in a few minutes and will be less than 1MB.
;; Place 2 files spanning a certain period of time in this folder,
;; and pass the 2 filenames to `friends/unfriended`.
@bobbicodes
bobbicodes / curl.txt
Created December 4, 2022 19:55
Windows 11 `curl` output
$ curl --version
curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Release-Date: 2020-01-08
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets
$ curl --compressed https://clojure.org
<!DOCTYPE html>
<!-- This site was created in Webflow. http://www.webflow.com-->
<!-- Last Published: Fri Nov 13 2015 01:48:45 GMT+0000 (UTC) -->
  • a paper about the implications of equational laws on pattern matching
    • Equational laws are a type of mathematical law or axiom which hold true for any expression when certain conditions are met. They are often used in functional programming languages and can be used to solve problems in a variety of different areas, including computer science. In this paper we will examine the implications of equational laws on pattern matching. Pattern matching is a process of searching for a given sequence of elements, such as a string of numbers or a pattern of characters, within some external data. It is used extensively in computer programming languages, both for checking the syntax of programs and for finding the solution to a given problem. Equational laws can be used to help in the process of pattern matching, as they enable programmers to reduce the complexity of the problem by simplifying the data into a more manageable form.

Equational laws provide features such as associativity and commutativity, which

@bobbicodes
bobbicodes / insta.json
Last active November 13, 2022 18:33
Transcript: Mark Engelberg - Instaparse
[[{"text": "good morning I'm mark Engelbert welcome", "start": 0.03, "duration": 4.88}, {"text": "to closure West it's exciting to be here", "start": 2.28, "duration": 6.06}, {"text": "it's the first talk of the first morning", "start": 4.91, "duration": 5.71}, {"text": "and I feel like I should be hijacking", "start": 8.34, "duration": 4.29}, {"text": "this time slot to give a keynote and set", "start": 10.62, "duration": 4.13}, {"text": "the future of closures something but", "start": 12.63, "duration": 6.409}, {"text": "we're here to talk about insta parse", "start": 14.75, "duration": 4.289}, {"text": "let's begin with a little warm-up it's", "start": 19.91, "duration": 4.51}, {"text": "the morning get to get the brains going", "start": 22.65, "duration": 8.039}, {"text": "so what's this any it's a map it's a map", "start": 24.42, "duration": 9.6}, {"text": "its closure data right this is the Eden", "start": 30.689, "duration": 5.911}, {"text": "format we all know and love and one of", "start": 34.02, "du
@bobbicodes
bobbicodes / monads.json
Last active November 13, 2022 18:33
Transcript: Monads in Clojure
[[{"text": "now the first topic that um i'm gonna", "start": 0.0, "duration": 4.96}, {"text": "talk about today is probably using", "start": 2.639, "duration": 5.12}, {"text": "closure to do functional programming so", "start": 4.96, "duration": 3.84}, {"text": "when we talk about functional", "start": 7.759, "duration": 2.641}, {"text": "programming most people will", "start": 8.8, "duration": 4.24}, {"text": "say oh monets let's talk about how to", "start": 10.4, "duration": 4.0}, {"text": "use closure to", "start": 13.04, "duration": 5.04}, {"text": "write monet and then it's a", "start": 14.4, "duration": 6.16}, {"text": "pretty useful skill actually i'll say", "start": 18.08, "duration": 3.359}, {"text": "that it's like", "start": 20.56, "duration": 4.639}, {"text": "a software design pattern", "start": 21.439, "duration": 7.041}, {"text": "except that it's very powerful let's", "start": 25.199, "duration": 6.641}, {"text": "get started", "start": 28.48, "duration": 3.36}, {"text": "the operating system