Skip to content

Instantly share code, notes, and snippets.

View mattsears's full-sized avatar
👋
Hello friend

Matt Sears mattsears

👋
Hello friend
View GitHub Profile
require 'dotenv/tasks'
Rake.application.options.trace = false
Dotenv.load('.env.production.cluster')
namespace :kube do
desc 'Rollout a new deployment'
task :deploy do

Keybase proof

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:

;;----------------------------------------------------------------------------
;; 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))))
)
@mattsears
mattsears / README.md
Created October 3, 2011 13:16
Todo.rb: A simple command-line TODO manager written in Ruby

Todo.rb

Todo.rb is a simple command-line tool for managing todos. It's minimal, straightforward, and you can use it with your favorite text editor.

Getting Started

Todo.rb doesn't require any third-party gems so you can copy the file anywhere and use it as long as it's executable:

@mattsears
mattsears / README.md
Created September 19, 2011 13:43
Colr: A color selector tool

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:

@mattsears
mattsears / README.md
Created September 5, 2011 07:41
Gittr: A Git key/value store

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:

@mattsears
mattsears / README.md
Created August 21, 2011 20:01
Diff.rb: CodeBrawl's "Ruby diffs" entry (http://codebrawl.com/contests/ruby-diffs)

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: