Skip to content

Instantly share code, notes, and snippets.

#! /usr/bin/env osascript
tell application "iTunes"
duplicate current track to playlist "Flowstate"
end tell
@5thWall
5thWall / gpg-agent.plist
Created February 11, 2016 05:48
Configure gpg-agent on a mac.
<!--
Place in $HOME/Library/LaunchAgents/gpg-agent.plist
-->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>gpg-agent</string>
<key>ProgramArguments</key>
@5thWall
5thWall / init.vim
Last active April 26, 2016 04:07
Neovim config
" Set Leader
let mapleader = "<Space>"
" PLUGINS FOR THE PLUGIN GOD
call plug#begin("~/.config/nvim/plug")
" Look and feel plugins
Plug 'altercation/vim-colors-solarized'
Plug 'itchyny/lightline.vim'
" Plug 'vim-airline/vim-airline'
" Plug 'vim-airline/vim-airline-themes'

Andrew Arminio

P: (928) 856-1568
E: andrew.arminio@gmail.com

A skilled developer with a proven ability to design and implement applications, and a commitment to continually improving his software craftsmanship. Looking to contribute his skills to challenging problems in exciting industries. Willing to work remotely or relocate.

@5thWall
5thWall / dogma.projections.json
Created September 2, 2015 00:02
A projectionist config for working on the Dogma Elixir style linter.
{
"lib/dogma/rules/*.ex": {
"type": "rule",
"alternate": "test/dogma/rules/{}_test.exs",
"template": [
"defmodule Dogma.Rules.{camelcase|dot} do",
" @moduledoc \"\"\"",
" Please add a rule description. With code examples if possible."
" \"\"\"",
"",
@5thWall
5thWall / range_extractor.exs
Created August 13, 2015 01:20
Range Extractor from Codewars
# http://www.codewars.com/kata/51ba717bb08c1cd60f00002f
defmodule RangeExtractor do
def solution([head | tail]) do
_solution(tail, [head], [])
end
defp _solution([], [], acc) do
acc
|> Enum.reverse
@5thWall
5thWall / befunge.rb
Created July 21, 2015 01:32
Implementation of a Befunge interpreter
require 'tape'
class BefungeMachine
attr_reader :tape, :stack, :output
def initialize(code, debug = false)
@tape = Tape.new(code)
@stack = []
@output = []
@debug = debug
@5thWall
5thWall / brain_luck_machine.rb
Created July 20, 2015 04:07
Implementation of a BrainF*** interpreter
require 'memory'
require 'tape'
class BrainLuckMachine
attr_accessor :tape, :input, :output, :memory
def initialize(code, input)
@tape = Tape.new(code)
@input = input.codepoints

Keybase proof

I hereby claim:

  • I am 5thWall on github.
  • I am 5thwall (https://keybase.io/5thwall) on keybase.
  • I have a public key whose fingerprint is 552F F118 3C2E 0C26 9E00 3030 91C7 929C 5272 39A6

To claim this, I am signing this object:

module Hstorable
extend ActiveSupport::Concern
module ClassMethods
private
def hstore_accessor(hstore, *names)
store_accessor hstore, names
names.each do |name|