Skip to content

Instantly share code, notes, and snippets.

View unknownliviu's full-sized avatar

Maria Liviu Valentin unknownliviu

View GitHub Profile
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<polymer-element name="my-element">
<template>
<style>
@unknownliviu
unknownliviu / Dockerfile
Created September 14, 2018 09:58
mrliviu/ruby-2.5.1-with-eb
FROM circleci/ruby:2.5.1-stretch
RUN sudo apt-get -y -qq update && sudo apt-get install python-pip python-dev build-essential && pip install awscli awsebcli --upgrade --user && echo 'PATH=$PATH:/home/circleci/.local/bin' >> ~/.bashrc
@unknownliviu
unknownliviu / serverless.yml
Created January 8, 2019 13:08
serverless.yml
service:
name: zaius-data
plugins:
- serverless-step-functions
- serverless-pseudo-parameters
provider:
name: aws
stage: ${opt:stage, 'sandbox'}
region: us-east-2
resources:
service:
name: zaius-data-test
plugins:
- serverless-step-functions
- serverless-pseudo-parameters
provider:
name: aws
stage: ${opt:stage, 'sandbox'}
region: us-east-2
iamRoleStatements:
// v1.1.2
var https = require('https');
var zlib = require('zlib');
var crypto = require('crypto');
var endpoint = 'ACTUAL_ENDPOINT'
// Set this to true if you want to debug why data isn't making it to
// your Elasticsearch cluster. This will enable logging of failed items
// to CloudWatch Logs.
@unknownliviu
unknownliviu / sparkpost.js
Last active June 13, 2019 06:26
Simple Sparkpost api usage
console.log('Loading function');
var http = require("https");
var fs = require('fs');
var options = {
"method": "POST",
"hostname": "api.sparkpost.com",
"path": "/api/v1/transmissions?num_rcpt_errors=3",
"headers": {
"Content-Type": "application/json",
lng lat
-84.5017199 34.17301659999999
-84.4222314 34.1777818
-84.3319539 34.16692260000001
-83.18378109999999 42.41683010000001
-84.47344690000001 45.596342
-84.3145612 33.8857565
-81.0943143 32.0797969
-83.24034890000001 42.4297374
-83.24041720000001 42.4297384