Skip to content

Instantly share code, notes, and snippets.

View craig-jennings's full-sized avatar

Craig Jennings craig-jennings

  • Atlas Exploration, Inc.
  • Texas
View GitHub Profile
@craig-jennings
craig-jennings / GithubProjectStyling.css
Created October 26, 2020 13:31
Dark Styling for Github Projects
.js-new-project-column-container {
display: none;
}
.js-project-columns-container {
display: grid !important;
grid-auto-flow: column;
grid-auto-columns: minmax(355px, 1fr);
grid-column-gap: 1rem;
grid-template-columns: repeat(auto-fit, minmax(355px, 1fr));
}
@craig-jennings
craig-jennings / Tabs.js
Last active November 16, 2020 18:00
Simple React Tab Component
function Tabs({ children, defaultActiveTab, lazyLoadPanel }) {
/* -- Hooks -- */
const [activeTab, setActiveTab] = useState(defaultActiveTab || children[0]?.props.label);
/* -- Event Handlers -- */
/* -- Rendering -- */
const tabList = [];
const panels = [];
let panel = null;
@craig-jennings
craig-jennings / alacritty.yml
Last active October 7, 2023 02:36
Alacritty/NuShell/Starship Settings
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
#env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will