Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Milos Bejda mbejda

View GitHub Profile
@mbejda
mbejda / event.json
Created Mar 3, 2019
Cognito Post Confirmation Event JSON
View event.json
{
"version": "1",
"region": "",
"userPoolId": "",
"userName": "",
"callerContext": {
"awsSdkVersion": "",
"clientId": ""
},
"triggerSource": "",
@mbejda
mbejda / 1517649096.js
Created Feb 3, 2018
Created with Copy to Gist
View 1517649096.js
/* SmtpJS.com - v2.0.1 */
Email = {
send: function(e, o, t, n, a, s, r, c) {
var d = Math.floor(1e6 * Math.random() + 1),
i = "From=" + e;
i += "&to=" + o, i += "&Subject=" + encodeURIComponent(t), i += "&Body=" + encodeURIComponent(n), void 0 == a.token ? (i += "&Host=" + a, i += "&Username=" + s, i += "&Password=" + r, i += "&Action=Send") : (i += "&SecureToken=" + a.token, i += "&Action=SendFromStored", c = a.callback), i += "&cachebuster=" + d, Email.ajaxPost("https://smtpjs.com/v2/smtp.aspx?", i, c)
},
sendWithAttachment: function(e, o, t, n, a, s, r, c, d) {
var i = Math.floor(1e6 * Math.random() + 1),
m = "From=" + e;
@mbejda
mbejda / 1514834785.html
Created Jan 1, 2018
Created with Copy to Gist
View 1514834785.html
<!DOCTYPE html>
<html>
<head>
<style>
body {background-color: powderblue;}
h1   {color: blue;}
p    {color: red;}
</style>
</head>
<body>
@mbejda
mbejda / 1513653640.js
Created Dec 19, 2017
Created with Copy to Gist
View 1513653640.js
var foo = function(){
console.log("hello world");
}
@mbejda
mbejda / 1513653095.js
Created Dec 19, 2017
Created with Copy to Gist
View 1513653095.js
var foo = function(){
console.log("hello world");
}
@mbejda
mbejda / 1513652863.txt
Created Dec 19, 2017
Created with Copy to Gist
View 1513652863.txt
var foo = function(){
console.log("hello world");
}
@mbejda
mbejda / 1513652771.js
Created Dec 19, 2017
Created with Copy to Gist
View 1513652771.js
var foo = function(){
console.log("hello world");
}
@mbejda
mbejda / 1513652643.txt
Created Dec 19, 2017
Created with Copy to Gist
View 1513652643.txt
var foo = function(){
console.log("hello world");
}
@mbejda
mbejda / 1513649804.js
Created Dec 19, 2017
Created with Copy 2 Gist
View 1513649804.js
const exp = require('plotlychartexport');
exports.handler = (event, context, callback) => {
/// define plot.ly data properties
let trace1 = {
x: [1, 2, 3, 4],
y: [10, 15, 13, 17],
type: 'scatter'
};
let trace2 = {
@mbejda
mbejda / 1513610341.txt
Created Dec 18, 2017
Created with Copy 2 Gist
View 1513610341.txt
@Directive({
selector: '[sampleDirective]'
})
export class SampleDirective {
private canvasComponent:ComponentRef<CanvasComponent>;
constructor(
) {
You can’t perform that action at this time.