Skip to content

Instantly share code, notes, and snippets.

View AlmogBaku's full-sized avatar
👨‍🦰
The Father of Contexts

Almog Baku AlmogBaku

👨‍🦰
The Father of Contexts
View GitHub Profile
@AlmogBaku
AlmogBaku / 0-install-new-env.md
Last active October 4, 2026 11:16
Setup New environment

Installations required on a new environment

Manual bootstrap

Do these by hand, then let Claude Code drive the rest.

  1. Install Bitwarden from App Store
  2. Install brew (also installs the Xcode Command Line Tools if missing)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
@phacks
phacks / shadows.js
Created September 5, 2019 12:02
Material UI override shadows with color
/**
* This module is used at providing an easy way to override material-ui
* `shadows` properties.
* material-ui expects the shadows to be following a certain pattern.
* (source: https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/styles/shadows.js)
* This file is a slight adaptation (for colours) of the above material-ui source file.
*
* This module exports a `createShadows(hexColor: string): Array<string>` method
* that takes a hex color (presumably from the configuration) and returns an array
* of the 25 possible shadows matching the 25 elevations in material-ui.
@pilbot
pilbot / ChunkyCache.gs
Created January 6, 2016 11:47
Using the Google Apps Script Cache Service for objects above 100Kb
function ChunkyCache(cache, chunkSize){
return {
put: function (key, value, timeout) {
var json = JSON.stringify(value);
var cSize = Math.floor(chunkSize / 2);
var chunks = [];
var index = 0;
while (index < json.length){
cKey = key + "_" + index;
chunks.push(cKey);