Skip to content

Instantly share code, notes, and snippets.

@beldar
beldar / react-feature-toggles.md
Created November 20, 2017 15:50
Implementation proposal for feature toggles and multi-variant toggles with React

Toggles

Types of toggles

Release Toggles

These toggles are then corner stone of the Continuous Delivery cycle, they are short lived and mostly for development purposes.

The idea is to wrap all development of the next release in to a toggle (i.e. v2.0.2), this way

@beldar
beldar / bacon.js
Last active May 22, 2017 17:11
Given a large hash table whose keys are movie names and whose values are a list of actors in those movies, write a function to determine the Bacon number of a particular actor.
// Given a large hash table whose keys are movie names and whose values are a
// list of actors in those movies, write a function
// to determine the Bacon number of a particular actor.
'use strict';
const BaconNumbers = function( movies ) {
if ( !movies ) throw new Error('Movies argument is required');
this.source = 'Kevin Bacon';
this.graph = this.createGraph(movies);
this.distances = this.dijkstra();
@beldar
beldar / com.googlecode.iterm2.plist
Created December 11, 2015 13:23
iTerm configuration file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AdjustWindowForFontSizeChange</key>
<true/>
<key>AllowClipboardAccess</key>
<false/>
<key>AnimateDimming</key>
<false/>
@beldar
beldar / .zshrc
Last active December 11, 2015 13:25
Oh My Zsh config file
# Path to your oh-my-zsh installation.
export ZSH=/Users/martip/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="agnoster-beldar"
DEFAULT_USER="martip"
# Uncomment the following line to use case-sensitive completion.
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://gist.github.com/1595572).
#