This file contains 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 const CACHE_STALE_AT_HEADER = 'x-edge-cache-stale-at'; | |
export const CACHE_STATUS_HEADER = 'x-edge-cache-status'; | |
export const CACHE_CONTROL_HEADER = 'Cache-Control'; | |
export const CLIENT_CACHE_CONTROL_HEADER = 'x-client-cache-control'; | |
export const ORIGIN_CACHE_CONTROL_HEADER = 'x-edge-origin-cache-control'; | |
enum CacheStatus { | |
HIT = 'HIT', | |
MISS = 'MISS', | |
REVALIDATING = 'REVALIDATING', |
This file contains 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
steps: | |
# Enable "down for maintenance" by setting route pattern to emailapi.io | |
- name: Cloudflare Workers route update | |
uses: aakashlpin/[email protected] | |
with: | |
CF_EMAIL: ${{ secrets.CF_EMAIL }} | |
CF_API_KEY: ${{ secrets.CF_API_KEY}} | |
CF_ZONE_ID: ${{ secrets.CF_ZONE_ID }} | |
CF_ROUTE_ID: ${{ secrets.CF_ROUTE_ID }} | |
CF_WORKER_NAME: ${{ secrets.CF_WORKER_NAME }} |
This file contains 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
#!/usr/bin/env node | |
var inquirer = require('inquirer'); | |
var fetch = require('isomorphic-unfetch'); | |
var EMAILAPI_HOST = "https://emailapi.io"; | |
console.log('👋🏽 Enter your details below to get details on Saturday Noon Livestream with Aakash.'); | |
inquirer | |
.prompt([ |
This file contains 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 inquirer = require('inquirer'); | |
var fetch = require('isomorphic-unfetch'); | |
console.log('👋🏽 Saturday Hacks! Enter details to reserve your spot:'); | |
inquirer | |
.prompt([ | |
{ | |
type: 'input', | |
name: 'name', | |
message: 'Hey there! Enter your name:', |
This file contains 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
#!/usr/bin/env node | |
const args = require('yargs').argv; | |
function performfn(input) { | |
const numbers = input.match(/[+-]?\d+(?:\.\d+)?/g).map(Number); | |
return numbers; | |
} | |
console.log(args.inputstr); | |
console.log(performfn(args.inputstr)); |
This file contains 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
{ | |
"name": "js-from-terminal-with-npx", | |
"version": "1.0.0", | |
"bin": "./unique_id.js", | |
"dependencies": { | |
"yargs": "^15.3.1" | |
} | |
} |
This file contains 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
function walk (x, y) { | |
var path = [{}, {}]; | |
var player = document.querySelector('#player'); | |
var i = 0; | |
var interval = setInterval(() => { | |
var cords = path.splice(i, 1); | |
player.setX(cords.x) | |
player.setY(coords.y) | |
i++; |
This file contains 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
function emptyNodeById (id) { | |
var node = document.getElementById(id); | |
if (!node) { | |
return; | |
} | |
while (node.hasChildNodes()) { | |
node.removeChild(node.firstChild); | |
} | |
} |
This file contains 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
diff --git a/app/index.html b/app/index.html | |
index 9d28c87..ae6664f 100644 | |
--- a/app/index.html | |
+++ b/app/index.html | |
@@ -199,7 +199,7 @@ | |
</div> | |
</div> | |
-<!-- <div class="bg-light"> | |
+ <div class="bg-light"> |
This file contains 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
diff --git a/server/app/controllers/emails.js b/server/app/controllers/emails.js | |
index 61a5045..f9eebc3 100644 | |
--- a/server/app/controllers/emails.js | |
+++ b/server/app/controllers/emails.js | |
@@ -11,17 +11,24 @@ logger = require('../../logger').logger; | |
var emailService = config.emailService; | |
var env = process.env.NODE_ENV || 'development'; | |
var server = config.server[env]; | |
+var ses = require('./ses'); | |
+var mandrill = require('./mandrill'); |