Skip to content

Instantly share code, notes, and snippets.

View brandonleon's full-sized avatar

Brandon Leon brandonleon

View GitHub Profile
format = """
[](#6B2463)\
$username${custom.task}\
[](bg:#E9A0B0 fg:#6B2463)\
$time\
[](fg:#E9A0B0 bg:#FCA17D)\
$git_branch$git_status\
[](fg:#FCA17D bg:#86BBD8)\
$python$golang$nodejs$rust\
[](fg:#86BBD8 bg:#006368)\
import pandas as pd
from pathlib import Path
def merge_dataframes(new: str, old: str) -> pd.DataFrame:
"""
Merge new results.csv into monkeytype.csv
:param new: filename of the results.csv file from Monkeytype
:param old: filename of the monkeytype.csv file
:return: pd.DataFrame, merged if a new results.csv file exists, else just the old monkeytype.csv
/* Copyright 2015-2021 Jack Humbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@brandonleon
brandonleon / brandonleon@pm.me.asc
Last active May 11, 2023 07:29
Update expire.
-----BEGIN PGP PUBLIC KEY BLOCK-----
mDMEYZgVvxYJKwYBBAHaRw8BAQdAIBhDHtmWa4FM5pO7m4N6RTPDyS8exchzWFjV
Ug9pLJO0KkJyYW5kb24gTGVvbiA8YnJhbmRvbi5sZW9uQHNlcnZpY2Vub3cuY29t
PoiZBBMWCgBBAhsDBQsJCAcCAiICBhUKCQgLAgQWAgMBAh4HAheAFiEEW9M/uJif
0YznCG+dYnAKZQzXuzwFAmQuD/cFCQR3LbgACgkQYnAKZQzXuzzvbAEAknLp3z/h
xRzxpVyR2xg/UK5sUbjVKge/3KUojtXPdeYA/1PBUmJwIVoTcmzRDjRzjCUJJIJi
MQWiHzQ7EPCXFiIMtCBCcmFuZG9uIExlb24gPGJyYW5kb25sZW9uQHBtLm1lPoic
BBMWCgBEAhsDBQsJCAcCAiICBhUKCQgLAgQWAgMBAh4HAheABQkEdy24FiEEW9M/
uJif0YznCG+dYnAKZQzXuzwFAmRcedUCGQEACgkQYnAKZQzXuzz/xQEAiO7tOKkm
#
# diff all
# version
# Betaflight / STM32F405 (S405) 4.2.3 Sep 20 2020 / 20:42:51 (2696b7c88) MSP API: 1.43
# config: manufacturer_id: CLRA, board_name: CLRACINGF4, version: 14929e39, date: 2020-08-31T10:05:16Z
# start the command batch
batch start
#
# diff all
# version
# Betaflight / STM32F405 (S405) 4.2.2 Aug 16 2020 / 01:46:41 (e833ac612) MSP API: 1.43
# config: manufacturer_id: CLRA, board_name: CLRACINGF4, version: 14929e39, date: 2020-08-31T10:05:16Z
# start the command batch
batch start
@brandonleon
brandonleon / keybase.md
Last active May 18, 2022 20:03
Keybase proof

Keybase proof

I hereby claim:

  • I am brandonleon on github.
  • I am brandonleon (https://keybase.io/brandonleon) on keybase.
  • I have a public key ASD6XACz_5vE3SLEr_8McM5DdhdmpPgjlDUIE4p2g2_xdQo

To claim this, I am signing this object:

PROCESS
- install Raspian
- expand filesystem
- get on wifi
(zfec dependencies)
$ sudo apt-get install python-dev
$ curl http://python-distribute.org/distribute_setup.py | sudo python
@brandonleon
brandonleon / albumpull
Last active October 13, 2015 14:28
Download Images from Imgur, Pass the album ID to the script.
#!/bin/bash
for i in $(xmllint --format http://api.imgur.com/2/album/$1 | grep original | awk '{print $1}' | sed -e 's/<[^>]*>//g'); do curl -O $i; done