Levenshtein distance is a string metric for measuring the difference between two sequences. Informally, the Levenshtein distance between two words is the minimum number of single-character edits (i.e. insertions, deletions or substitutions) required to change one word into the other.
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
var express = require('express'); | |
var proxy = require('http-proxy-middleware'); | |
var options = { | |
logLevel: 'debug', | |
target: 'https://api.airtable.com/v0/' + process.env.APP_ID, | |
changeOrigin: true, | |
headers: { | |
'Accept': 'application/json', | |
'Authorization': 'Bearer ' + process.env.API_KEY | |
}, |
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
# Copy and paste this to the rails console to test your email settings | |
class MyMailer < ActionMailer::Base | |
def test_email | |
set_tracking_headers 'test_campaign' | |
@recipients = "[email protected]" | |
@from = "Equipo Nimbo X <hola@" + Rails.application.secrets.sparkpost_domain + ">" | |
@subject = "sparkpost email test with open & click tracking" | |
@body = "This is a test email. With a <a href=\"http://blog.nimbo-x.com/nimbo-x-gold/\">test link</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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
//... | |
export default Route.extend({ | |
//... | |
actions: { | |
//... | |
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 InstallFuzzystrmatchContribPackage < ActiveRecord::Migration | |
def up | |
execute "CREATE EXTENSION fuzzystrmatch;" | |
end | |
def down | |
execute "DROP EXTENSION fuzzystrmatch;" | |
end | |
end |
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
import Ember from 'ember'; | |
import DS from 'ember-data'; | |
/* | |
* Override RESTSerializer since it's the closest to Airtable's afaik | |
*/ | |
export default DS.RESTSerializer.extend({ | |
/* | |
* Normalize each response from Airtable |
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
import DS from 'ember-data'; | |
export default DS.JSONAPIAdapter.extend({ | |
host: 'https://api.airtable.com', | |
namespace: 'v0/appL0nGiD3nT1f1c4t0r', | |
headers: { | |
'Accept': 'application/json', |