Skip to content

Instantly share code, notes, and snippets.

View chrisengelsma's full-sized avatar

Chris Engelsma chrisengelsma

  • Houston, TX
  • 21:38 (UTC -06:00)
View GitHub Profile
@rafa-acioly
rafa-acioly / convert_json_keys_from_camel_case_to_snake_case.py
Last active June 14, 2024 19:42
Convert all keys from json/dict from camelCase to snake_case
"""
This algorith convert all keys from json from camelCase to snake_case recursivily
"""
def _unpack(data):
if isinstance(data, dict):
return data.items()
return data
def snake_case(value):
@nrollr
nrollr / MySQL_macOS_Sierra.md
Last active September 19, 2024 08:26
Install MySQL on Sierra using Homebrew

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :

@MaxArt2501
MaxArt2501 / _cmyk.scss
Last active August 31, 2020 17:09
CMYK helper functions for SASS
@function cmyk_black($color) {
@return 1 - max(red($color), green($color), blue($color)) / 255;
}
@function cmyk_cyan($color) {
$black: cmyk_black($color);
@return if($black < 1, 1 - red($color) / 255 / (1 - $black), 0);
}
@function cmyk_magenta($color) {
$black: cmyk_black($color);
@l1x
l1x / install_gradle_version_with_homebrew.sh
Created June 17, 2015 19:24
Installing a specific version of Gradle with Homebrew
brew tap homebrew/versions
brew search gradle
brew install homebrew/versions/gradle112
gradle -version
brew link --overwrite gradle112
gradle -version
@eliotfowler
eliotfowler / Gruntfile.js
Created May 9, 2014 14:29
Sample Gruntfile
module.exports = function (grunt) {
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
// Time how long tasks take. Can help when optimizing build times
require('time-grunt')(grunt);
// Define the configuration for all the tasks
grunt.initConfig({
@carlos8f
carlos8f / natl_zccd.csv
Last active May 13, 2020 20:11
CONGRESSIONAL DISTRICTS BY ZIP CODE TABULATION AREA (ZCTA) (NATIONAL)
State ZCTA Congressional District
01 30165 03
01 31905 03
01 35004 03
01 35005 06
01 35005 07
01 35006 04
01 35006 06
01 35006 07
01 35007 06