Routes:
POST /users/456/verification
called by frontend to create verification & redirect to verification process
GET /users/456/verification
returns status of your verification
POST /webhooks/verifications/:id
called by 3rd party
Table
Hey, let’s talk about memoization.
I would like to address one of our coding habits. I notice that we have a tendency to overuse memoization. I would like to point out that memoization is a double edge sword and does not always yield expected results.
Here is an example. I pulled it from recent code I saw:
require 'benchmark'
require 'active_support/all'
EDUCATION_DURATION_ESTIMATE = 10.years
// Let's say we have a product that validates emails. | |
// Person visits our websites gives us a list of emails and we validate that those emails are real. | |
// Our value is "Great customer experience". | |
// We have two engineers in our company and they both inline with our values. | |
// However they disagree on qualities that our code should have. | |
// Person "A" believes that we should optimize for maintenability. | |
// Person "B" is sure that we should optimize for change. | |
// They both send to implement an email validator. |
module ShitGrouper | |
def self.group(array) | |
array.group_by(&:year) | |
end | |
def self.ungroup(hash) | |
hash.values.flatten | |
end | |
end |
console.log("Hello! v4") |
class Rule { | |
private operations: Array<any>; | |
constructor() { | |
this.operations = []; | |
} | |
filter(options): Rule { | |
this.operations.push({ action: 'filter', options }); | |
return this; |
class Point | |
attr_reader :x, :y | |
def initialize(x, y) | |
@x = x | |
@y = y | |
freeze | |
end | |
def move!(x_offset, y_offset) |
First install Brew on your MAC
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew tap homebrew/dupes
brew tap homebrew/php
brew install php71 --with-postgresql
mcrypt
: brew install mcrypt php71-mcrypt
brew install composer
0x4737C38880A57d49Cdb7570aAd9D2D41d344F159 |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>True Trello Printer</title> | |
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet"> | |
<style> | |
body{margin:15%;} | |
.panel-body{ |