- redirects users where they wanted to go after logging in.
- Generic
SessionsHelper
store_location
(usage)
redirect_back_or
(usage)
SessionsHelper
store_location
(usage)redirect_back_or
(usage)(evil-define-operator evil-delete-char-without-register (beg end type reg) | |
"delete character without yanking unless in visual mode" | |
:motion evil-forward-char | |
(interactive "<R><y>") | |
(if (evil-visual-state-p) | |
(evil-delete beg end type reg) | |
(evil-delete beg end type ?_))) | |
(evil-define-operator evil-delete-backward-char-without-register (beg end type reg) | |
"delete backward character without yanking" |
# Note: This code changes in rails 5, so make sure we update before then! | |
# Written by Chris Kirk at Primer (https://goprimer.com) | |
class CloudFrontRemoteIp < ActionDispatch::RemoteIp | |
def call(env) | |
env["action_dispatch.remote_ip"] = CloudFrontGetIp.new(env, self) | |
@app.call(env) | |
end |
Should be work with 0.18
Destructuring(or pattern matching) is a way used to extract data from a data structure(tuple, list, record) that mirros the construction. Compare to other languages, Elm support much less destructuring but let's see what it got !
myTuple = ("A", "B", "C")
myNestedTuple = ("A", "B", "C", ("X", "Y", "Z"))
class Dog | |
attr_writer :name | |
def initialize(name) | |
@name = name | |
end | |
def bark | |
puts "patrick" | |
end |
#!/usr/bin/env bash | |
# Must be run on an Amazon Linux AMI that matches AWS Lambda's runtime which can be found at: | |
# https://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html | |
# | |
# As of May 21, 2019, this is: | |
# Amazon Linux AMI 2018.03.0 (ami-0756fbca465a59a30) | |
# | |
# You need to prepend PATH with the folder containing these binaries in your Lambda function | |
# to ensure these newer binaries are used. |
#[link(name = "logger")] | |
extern { | |
fn CrystalLog(text: *const u8); | |
} | |
fn log(text: &'static str) { | |
unsafe{ CrystalLog(text.as_bytes().as_ptr()) }; | |
} | |
fn main() { |
Based on tests on my machine (2013 MacBook Pro, 2.6 GHz i7, 16 GB RAM) generated by https://github.com/pragdave/map_performance
Elixir v1.0.4
Adyen Test Card Numbers | |
These cards are only valid on our TEST system and they will never involve any actual transaction or transfer of funds. The TEST card numbers will not work on the Adyen LIVE Platform. | |
For all cards use the following expiration and CVV2/CVC2/or CID for Amex. | |
For all cards: | |
Expiration Dates CVV2 / CVC3 CID (American Express) | |
08/2018 OR 10/2020 737 7373 |