This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Path to your oh-my-zsh installation. | |
export ZSH=~/.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" | |
#ZSH_THEME="ys" | |
# Uncomment the following line to use case-sensitive completion. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface SpinnerOptions { | |
lines?: number; // The number of lines to draw | |
length?: number; // The length of each line | |
width?: number; // The line thickness | |
radius?: number; // The radius of the inner circle | |
corners?: number; // Corner roundness (0..1) | |
rotate?: number; // The rotation offset | |
direction?: number; // 1: clockwise, -1: counterclockwise | |
color?: any; // #rgb or #rrggbb or array of colors | |
speed?: number; // Rounds per second |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Hi | |
#Lets try to solve the Run Length encoding problem. (Refer Run length encoding here https://en.wikipedia.org/wiki/Run-length_encoding) | |
#[1,1,2,3,3,3,4] => (Run Length Encoder)RLE => [{1,2},2,{3,3},4] | |
#For sake of simplicity, will try to solve like this [1,1,2,3,3,3,4] => RLE => [{1,2},{2, 1},{3,3},{4, 1}] and will optimize it finally. | |
#Lets try to solve incrementally | |
#[] => RLE => [] | |
defmodule RunLengthEncoder do | |
def encode([]), do: [] |
NewerOlder