Skip to content

Instantly share code, notes, and snippets.

View adamalesandro's full-sized avatar

Adam Alesandro adamalesandro

View GitHub Profile
@adamalesandro
adamalesandro / sendMailSample.asp
Last active December 6, 2021 13:17
Sample Classic ASP function to send email through mail gun's api
<%
'---- Sample code to send email though MailGun
'---- You must populate your base url and api-key below
Function SendMailSync(toAddress, fromAddress, subject, body, htmlBody)
Dim httpPostData
Dim mailGunMessageUrl
@adamalesandro
adamalesandro / verticle-center.css
Created March 7, 2016 16:52
Vertical Centering css
.vertical-center {
min-height:calc(100% - 0px);
min-height:calc(100vh - 0px);
display:flex;
vertical-align:center;
align-items:center;
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication3
{
class Program
{
@adamalesandro
adamalesandro / background_info.py
Created July 24, 2017 17:47
Info for coding test
### Sample wayback timestamp url: http://web.archive.org/web/20141214092900/http://www.coinbase.com/about
URLS = [
{"url": "http://www.coinbase.com/about", "parser": "coinbase"}
]
class WaybackConstants:
TIMEMAP_BASE_URL = "http://web.archive.org/web/timemap/json/{0}"
WAYBACK_DATETIME_FORMAT = "%Y%m%d%H%M%S"
WAYBACK_DIRECT_URL = "http://web.archive.org/web/{timestamp}/{target_url}"
var cheerio = require('cheerio');
var http = require('http');
var _ = require('lodash');
var str = "";
var options = {
host: 'web.archive.org',
port: 80,
path: '/web/timemap/json/http://www.coinbase.com/about'
};