brew cask
brew tap homebrew/cask-fonts
brew install font-fira-code
brew install font-Fira-Code-nerd-font
brew install font-hack-nerd-font
local execute = vim.api.nvim_command | |
local fn = vim.fn | |
local fmt = string.format | |
local pack_path = fn.stdpath("data") .. "/site/pack" | |
-- ensure a given plugin from github.com/<user>/<repo> is cloned in the pack/packer/start directory | |
local function ensure (user, repo) | |
local install_path = fmt("%s/packer/start/%s", pack_path, repo) | |
if fn.empty(fn.glob(install_path)) > 0 then |
(() => { | |
let count = 0; | |
function getAllButtons() { | |
return document.querySelectorAll('button.is-following') || []; | |
} | |
async function unfollowAll() { | |
const buttons = getAllButtons(); |
This is a collection of the things I believe about software development. I have worked for years building backend and data processing systems, so read the below within that context.
Agree? Disagree? Feel free to let me know at @JanStette. See also my blog at www.janvsmachine.net.
Keep it simple, stupid. You ain't gonna need it.
SPC | |
SPC: find file | |
, switch buffer | |
. browse files | |
: MX | |
; EX | |
< switch buffer | |
` eval | |
u universal arg | |
x pop up scratch |
# Add this snippet to the top of your playbook. | |
# It will install python2 if missing (but checks first so no expensive repeated apt updates) | |
# gwillem@gmail.com | |
- hosts: all | |
gather_facts: False | |
tasks: | |
- name: install python 2 | |
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) |
class Node | |
attr_accessor :nxt, :value | |
def initialize(nxt:, value:) | |
@nxt = nxt | |
@value = value | |
end | |
def self.print(head) | |
node = head |
E se a área de negócio fosse capaz de decidir quando lançar novas versões do sistema a qualquer momento? Esse é o conceito básico da CD.
De acordo com Martin Fowler, CD é uma maneira de desenvolver software para que sempre seja possível realizar deploy, a qualquer hora, em qualquer situação.
Jez Humble acredita que CD reduz o custo, o tempo e o risco devido às pequenas entregas incrementais ao usuário.
Você está fazendo CD?
#!/usr/bin/env ruby | |
require 'bundler' | |
gems = ARGV | |
if gems.empty? | |
puts "Updating all gems" | |
Bundler.definition(true) |
#!/usr/bin/env bash | |
uninstall() { | |
list=`gem list --no-versions` | |
for gem in $list; do | |
gem uninstall $gem -aIx | |
done | |
gem list | |
gem install bundler | |
} |