Skip to content

Instantly share code, notes, and snippets.

@AlmogBaku
AlmogBaku / install-new-env.md
Last active May 22, 2024 10:37
New environment

Installations required on a new environment

  1. Install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Install Xcode Command Line Tools
    1.  xcode-select --install
@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);