This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html | |
head | |
meta | |
script | |
style | |
title | |
body | |
div | |
span | |
i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# === EDITOR === | |
Pry.editor = 'vi' | |
require 'awesome_print' | |
# == Pry-Nav - Using pry as a debugger == | |
Pry.commands.alias_command 'c', 'continue' rescue nil | |
Pry.commands.alias_command 's', 'step' rescue nil | |
Pry.commands.alias_command 'n', 'next' rescue nil | |
# === CUSTOM PROMPT === |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A | |
def initialize(a:) | |
puts("Initailize A: #{a}") | |
end | |
end | |
class B < A | |
def initialize(a:, b:) | |
puts("Initailize B: #{b}") | |
super(a) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": { | |
"id": "transactionID=dcf22218-17bc-4588-9&recordDate=2019-10-07T16:04:50.994520", | |
"type": "authorisations", | |
"attributes": { | |
"amount": { | |
"currency": "USD", | |
"value": 20.99 | |
}, | |
"transactionStatus": "999", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jdeen@iMac:/Volumes/Dev/Work/Edge/edge|ziyan/edg-158-transaction-authorisations-through-vgs⚡ | |
⇒ curl https://eoftqqzi7ii7mmn.m.pipedream.net -vvv --cacert lib/vgs/certs/sandbox.pem \ | |
-x https://$HTTPS_PROXY_USERNAME:$HTTPS_PROXY_PASSWORD@tnttla0t7dc.sandbox.verygoodproxy.com:8443 \ | |
-H "Content-type: application/json" \ | |
-d '{ | |
"card_cvc": "tok_sandbox_sXTRFEQqsidYhF6uwW1w9r", | |
"card_exp": "10/25", | |
"card_number": "tok_sandbox_uQPorT8AJ5g4e3727Q93bm" | |
}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": { | |
"type": "donations", | |
"id": "123456", | |
"attributes": { | |
"formatted-amount": "$100.00", | |
"amount": 10000, | |
"comments": "Test Donation", | |
"recurring": true, | |
"frequency": 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def initialize(${1}) | |
<split ${1} by comma and for each split> | |
@{split} = #{split} | |
<end> | |
end | |
# So that some thing like this `def initialize(a, b)` would result | |
def initialize(a, b) | |
@a = a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app=decidim | |
sudo apt-add-repository -y ppa:rael-gc/rvm | |
sudo apt update | |
sudo apt dist-upgrade | |
sudo apt install software-properties-common | |
sudo apt install imagemagick libmagickwand-dev | |
sudo apt install postgresql postgresql-contrib libpq-dev | |
sudo apt install redis-server | |
sudo apt install nodejs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt -y install imagemagick libmagickcore-dev libmagickwand-dev | |
sudo apt-add-repository -y ppa:rael-gc/rvm | |
sudo apt update | |
sudo apt install rvm | |
sudo apt-get update | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:certbot/certbot | |
sudo apt-get update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Management::Budgets::IdeasController < Management::BaseController | |
load_resource :budget | |
load_resource :investment, through: :budget, class: 'Budget::Investment' | |
def index | |
# @investments = nil | |
end | |
def new |
NewerOlder