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
-- set your leader and local leader key | |
-- make sure to set `mapleader` and `maplocalleader` before lazy so your mappings are correct | |
vim.g.mapleader = " " -- using space as leader key | |
vim.g.maplocalleader = "," -- using comma as local leader | |
-- bootstrap lazy.nvim plugin manager | |
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" | |
if not (vim.uv or vim.loop).fs_stat(lazypath) then | |
vim.fn.system({ | |
"git", |
(() => { | |
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 | |
} |