Skip to content

Instantly share code, notes, and snippets.

View xcollantes's full-sized avatar
:octocat:
Unbridled enthusiasm

Xavier Collantes xcollantes

:octocat:
Unbridled enthusiasm
View GitHub Profile
@xcollantes
xcollantes / README.md
Created March 25, 2018 07:14 — forked from grantland/README.md
NextBus API
@xcollantes
xcollantes / headphone_table.csv
Last active February 7, 2022 06:28
Table for a Medium article comparing headphones
Bose Noise Cancelling Headphones 700 Sony WH-1000XM4
Brand Price (as of 6 Feb 2022) $379.00 $299.99
Amazon Price (as of 6 Feb 2022) $355.00 $298.00
Weight 0.56 lb 0.56 lb
Colors Black, silver Black, dark blue, silver
Battery Life (Waiting Time) Battery life: Up to 20 hours Max. 30 hours (NC ON), Max. 200 hours (NC OFF)
Bluetooth® Specification Version 5.0 Version 5.0
Effective Range Up to 33 ft (10 m) 30 ft (10 m)
Controls Touch: Volume, skip track, phone calls, customizable shortcut Touch: Volume, skip track, phone calls, customizable shortcut
@xcollantes
xcollantes / .screenrc
Created September 24, 2022 23:51
Screen Linux config
# the following two lines give a two-line status, with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= kG}%{b m}[%S]%? %1`%?%{g} %= %{= kw}%-w%{+b Yw} %n %t%?(%u)%? %{-}%+w %=%{g} %{B}%m/%d/%Y%{g}'
# no welcome message
startup_message off
# 256 colors
@xcollantes
xcollantes / debian_linux_setup.sh
Last active September 25, 2022 00:12
Script for setting up basic programs for a fresh Debian or Linux like OS.
#!/bin/bash
# Script for setting up basic programs for a fresh Debian or Linux like OS.
sudo apt update -y && sudo apt upgrade -y
# Debian does not have vim by default
sudo apt install vim -y
# Screen Linux
@xcollantes
xcollantes / context.tsx
Last active July 5, 2023 04:55
React Context template in TypeScript
/**
* React context for selecting category filters.
*
* Usage:
* ```
* <SelectFilterTagContextProvider>
* ...
* </SelectFilterTagContextProvider>
* ```
*/
## Goal
Narrow down to one to three alternatives for a good investment
At first a user would proactively run the tool to find a good stock opportunity but eventually a user would be alerted on a good opportunity via email or text.
Create a public facing web application which can easily use Python Panda DataFrames.
No magic formula exists that I know to find a good stock to invest in. I will aim then to give myself the best chances given available information.
@xcollantes
xcollantes / recommendation_prompt.md
Last active January 18, 2024 19:41
Bard prompt for recommendation template

// TODO: Replace variables section

Write a recommendation with 70 to 100 words for my ex-coworker, Xavier, whom I worked with for
<TIME SPAN> on the
<PROJECT OR TEAM> project or team.

Include how he helped me <TOP CONTRIBUTION>. Include how he excels at project management by <NON-TECHNICAL CONTRIBUTION>.

// End replace variables section

@xcollantes
xcollantes / github_badges.md
Created January 28, 2024 00:15
github_badges

@xcollantes
xcollantes / rename_files.sh
Last active February 11, 2024 06:49
Bash script to rename.
ext="webp" ; for f in * ; do if [[ $f =~ $ext ]] ; then mv "$f" "./$RANDOM.$ext" ; fi ; done
@xcollantes
xcollantes / fancytext.patch
Last active February 16, 2024 10:26
Bazel interview patch file.
From ab7279f3ca179b1ee4b40fef54b1b90a97dc430e Mon Sep 17 00:00:00 2001
From: Xavier <collantes.xavier@gmail.com>
Date: Fri, 16 Feb 2024 02:06:18 -0800
Subject: [PATCH] Squash commits
---
java-tutorial/BUILD | 29 +-
java-tutorial/MODULE.bazel | 13 +
java-tutorial/MODULE.bazel.lock | 2862 +++++++++++++++++
java-tutorial/WORKSPACE | 7 +