Skip to content

Instantly share code, notes, and snippets.

View Dkendal's full-sized avatar

Dylan C. Kendal Dkendal

View GitHub Profile
@Dkendal
Dkendal / gifit
Created September 30, 2015 16:55
#!/bin/bash
byzanz-record `xrectsel "-x %x -y %y -w %w -h %h"` -d $1 ~/Videos/gifs/`date +%s`.gif
function! Fzy()
let out = system('ag -g "" | fzy')
redraw!
return substitute(out, "\n.*$", "", "")
endfunction
cnoremap <c-t> x18=Fzy()<cr>
defmodule Aruspex.Matchers do
import ExUnit.Assertions
import IO.ANSI
alias Macro, as: M
defp mx_str(macro) do
M.expand_once(macro, __ENV__)
|> M.to_string
end
defmodule Aruspex.ConstraintTest do
use Aruspex.Case
describe "linear/2" do
let :macro do
use Aruspex.Constraint
quote do: linear(^:x == 1)
end
let :code do

Configuration for a new store

Installation

To reiterate the aforementioned installation directions, add to your Gemfile:

gem 'spree-adyen', github: 'freerunningtech/spree-adyen', branch: '2-4-stable'

Make sure you are using version 2.4 of spree.

Configuring for a new store

  1. Add spree-adyen to your gemfile
  2. Run bundle install
  3. Install migrations: bundle exec rake spree_adyen:install:migrations
  4. Run migrations: bundle exec rake db:migrate
  5. Configure your Adyen account so that it will notify your rails server once a payment is completed
    • Important to note that Adyen will only issue notifications to servers that are running on standard HTTP ports, so your rails server must be accessible
# vim: set filetype=ruby:
require("factory_girl")
require("ffaker")
require('spree/testing_support/factories')
if require 'awesome_print'
Pry.print = proc { |output, value|
Pry::Helpers::BaseHelpers.stagger_output("=> #{value.ai}", output)
}
end
function! Fzy()
let out = system('ag -g "" | fzy')
redraw!
return substitute(out, "\n.*$", "", "")
endfunction
cnoremap <c-t> x18=Fzy()<cr>
#!/bin/bash -l
# load $EDITOR
. ${HOME}/.profile
set -e
tmp=$(mktemp)
delim=">> "
echo "# Choose a commit by adding a 'p' at the start of the line" > $tmp
echo "" >> $tmp
@Dkendal
Dkendal / -
Created August 19, 2015 05:25
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDg06tfimu+ctFhlc9/xU/vFPt6LVf462q6EaosdC9Qfhl6lSkc6vA0ZmO3aG3XLNMU/mdZUc7Tl1fS3lR6DGahu6YVQx3Lwx349WsNR/xrnsBt+B6Gb/eSuOHE99V/SlA2ddi9Qy9VsIHonc8QWzgAB42CKNf5WViK8qg0y5g1OPgL6Tqo+SJ8UFa0bAUTpm00Gx/6LK9IKi0xrvRfUow4ZACjCkUiSC2f4stuWE+mtIlyzF90eBcPdRBIQNqrRYFpoNczXYxhPYyQA7iyqkJuj1mUrWk3eJ+gZQUToJQYny2G168lzjemj9u6dSK2UoPQYt+vT0Yl3SUQL0GM7Cpv dylan@hyperion