This file contains hidden or 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
" Flutter wrapper for hot-reloading | |
" Put this in your plugin directory (Default is $HOME/.config/nvim/plugin) | |
" Start your Flutter app with :FlutterRun | |
" all saves to flutter dart files will hot reload | |
command! FlutterRun :call FlutterStartServer() | |
command! FlutterStopRun :call FlutterStopRun() | |
command! FlutterHotReload :call FlutterHotReload() |
This file contains hidden or 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
defmodule MyApp.Validator do | |
@type validator :: :string | :required | |
@type schema :: %{any() => validator | [validator]} | |
@spec validate(map(), schema) :: {:ok, any()} | {:validation_error, [String.t()]} | |
def validate(input, schema) do | |
schema | |
|> Enum.reduce([], fn {key, val}, errors -> | |
input | |
|> Map.get(key, {__MODULE__, :no_value_found}) |
This file contains hidden or 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
# Paths | |
export PATH=$HOME/bin:/usr/local/bin:$PATH | |
export ZSH="/Users/frankv/.oh-my-zsh" | |
export SSH_KEY_PATH="~/.ssh/rsa_id" | |
export GOPATH=$HOME/go | |
export PATH=$PATH:$GOPATH/bin | |
# Theme | |
ZSH_THEME="clean" |
This file contains hidden or 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
// | |
// AnimationBuilder.swift | |
// CustomerAssist | |
// | |
// Created by Frank Vumbaca on 2017-07-20. | |
// Copyright © 2017 Redlab. All rights reserved. | |
// | |
import Foundation | |
import UIKit |