I hereby claim:
- I am mattsears on github.
- I am mattsears (https://keybase.io/mattsears) on keybase.
- I have a public key ASDsK-xNljGJZJ0jpM9EKKhmraFbTt6u9xIXZoi99VGDKgo
To claim this, I am signing this object:
require 'dotenv/tasks' | |
Rake.application.options.trace = false | |
Dotenv.load('.env.production.cluster') | |
namespace :kube do | |
desc 'Rollout a new deployment' | |
task :deploy do |
I hereby claim:
To claim this, I am signing this object:
;;---------------------------------------------------------------------------- | |
;; Autocomplete all the things | |
;;---------------------------------------------------------------------------- | |
(use-package auto-complete | |
:init | |
(progn | |
(ac-config-default) | |
(setq ac-ignore-case nil) | |
(add-to-list 'ac-modes 'ruby-mode) |
defmodule Fizzbuzz do | |
def of(num) do | |
cond do | |
rem(num, 15) == 0 -> "FizzBuzz" | |
rem(num, 5) == 0 -> "Buzz" | |
rem(num, 3) == 0 -> "Fizz" | |
true -> num | |
end | |
end | |
end |
(defun iwb () | |
"indent whole buffer" | |
(interactive) | |
(delete-trailing-whitespace) | |
(indent-region (point-min) (point-max) nil) | |
(untabify (point-min) (point-max))) |
;; This function will open Marked.app and monitor the current markdown document | |
;; for anything changes. In other words, it will live reload and convert the | |
;; markdown documment | |
(defun markdown-preview-file () | |
"run Marked on the current file and revert the buffer" | |
(interactive) | |
(shell-command | |
(format "open -a /Applications/Marked.app %s" | |
(shell-quote-argument (buffer-file-name)))) | |
) |
Colr.rb
Colr selects colors based on hue calculations. It knows nothing about the image before initialization and works with any valid HTML color: red, green, aqua, brown, etc.
Colr allows you to adjust the tolerance and hue settings so you can select colors from any image!
Example:
Gittr.rb
Git as a key-value store! Build with Grit, it supports SET, GET, KEYS, and DELETE operations. In addition, we can also get the change history of key/values.
And since it's Git, we can easily enhance it to include other awesome Git features such as branches, diffs, reverting, and more!
Example:
Diff.rb
A simple diff utility written in Ruby. It works with single or multi-line strings and returns an array of hashes that indicates the line number affected and change: added, deleted, or same.
Example: