Skip to content

Instantly share code, notes, and snippets.

View piotr-yuxuan's full-sized avatar
💣
Breaking things, carefully

胡雨軒 Петр piotr-yuxuan

💣
Breaking things, carefully
View GitHub Profile
@piotr-yuxuan
piotr-yuxuan / .md
Last active October 17, 2021 13:11
MacOS startup items and applications
@piotr-yuxuan
piotr-yuxuan / .md
Created August 20, 2020 21:40
Load a standalone Clojure library from a GitHub repository

Download from private GitHub Packages

Add this server in ~/.m2/settings.xml:

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                      http://maven.apache.org/xsd/settings-1.0.0.xsd">
  <servers>
@piotr-yuxuan
piotr-yuxuan / meew.clj
Last active May 5, 2020 11:58
Exploration of a few funcool.cats control flow structures
(ns meew
(:require [cats.core :refer [mlet do-let extract return]]
[cats.monad.either :refer [branch-left left right]]))
(defn http-get! [{:keys [success-rate some-arg]}]
(-> (repeat success-rate {:status :ok, :result (* some-arg (rand-int 10))})
(conj {:status :ko, :error "computation error!"})
rand-nth))
;; ✅ stop at the first error
@piotr-yuxuan
piotr-yuxuan / linkedin.clj
Created November 15, 2019 10:09
LinkedIn scraper to get contact infos for some compay current or former employees
(ns scraper.linkedin
"This is meant to be a very simple sktech on how to scrap some LinkedIn network with etaoin, enlive, and Google Chrome. This is by no mean the more efficient, or elegant way to do so."
(:require [scraper.utils :refer [email password some-company-id]]
[net.cgrand.enlive-html :as html]
[etaoin.api :refer :all]
[clojure.string :as str]))
(defonce driver (chrome))
(defn former-company-employees

Keybase proof

I hereby claim:

  • I am piotr-yuxuan on github.
  • I am piotr_yuxuan (https://keybase.io/piotr_yuxuan) on keybase.
  • I have a public key ASCp2Er_TXhp9e_ZGCNeyj1dxnFEj-svJscJKejT_SFByAo

To claim this, I am signing this object:

@piotr-yuxuan
piotr-yuxuan / corporate-management-behaviour-patterns.org
Created February 28, 2019 21:04
Corporate management behaviour patterns

Corporate management behaviour patterns

The term cobra effect originated in an anecdote set at the time of British rule of colonial India. The British government was concerned about the number of venomous cobra snakes in Delhi. The government therefore offered a bounty for every dead cobra. Initially this was a successful strategy as large numbers of snakes were killed for the reward. Eventually, however, enterprising people began to breed cobras for the income. When the government became aware of this, the reward

Project portfolio

Here are technical projects I contributed in both professional and personal settings. Also see resume.github.io. I would be delighted to connect with you on Twitter or LinkedIn.

Last updated on May 2023

Professional project: Delivery Service (from July 2022)

As part of our push to the cloud, we need to automate data and software product delivery from the keyboard to production

@piotr-yuxuan
piotr-yuxuan / .md
Last active November 27, 2018 11:41
Resource Name Optimized Total % JS Source
npm @material-ui/icons 5.2 MB 86.51 % 5.2 MB 6.7 MB
npm @material-ui/core 438.5 KB 7.32 % 439.3 KB 1.0 MB
jar cljs/core.cljs 113.4 KB 1.89 % 1.3 MB 331.7 KB
npm react-dom 100.0 KB 1.67 % 100.1 KB 101.6 KB
npm jss 35.8 KB 0.60 % 35.9 KB 81.3 KB
npm popper.js 20.0 KB 0.33 % 20.0 KB 85.6 KB
npm react-transition-group 9.4 KB 0.16 % 9.4 KB 32.7 KB
jar reagent/ratom.cljs 6.4 KB 0.11 % 57.6 KB 15.7 KB
@piotr-yuxuan
piotr-yuxuan / minimal-code.md
Last active May 16, 2018 22:05
I can't display a list of headlines which match some tag in org-mode 😕
#+TAGS: SOME(s) ONE(o) TWO(t)
#+STARTUP: hidestars

- 'M-x org-agenda'
- I type 'm' Match a TASKS/PROPS/TODO query
- I type 'SOME' and press enter
- No headings get displayed in the result buffer.

The result buffer contains: