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
package main | |
import ( | |
"encoding/json" | |
"log" | |
"net/http" | |
"time" | |
"github.com/aws/aws-lambda-go/events" | |
"github.com/aws/aws-lambda-go/lambda" |
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 ruby | |
# Sample usage: form_id=form_id config_csv=nccare360_configuration.csv ./generate_screening_files.rb | |
require 'pg' | |
require 'csv' | |
# require 'pry' | |
# Database Configuration |
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
"use strict"; | |
let PromiseFactory = (message) => { | |
return new Promise((resolve, reject) => { | |
setTimeout(() => resolve(message), 2000) | |
}) | |
} | |
PromiseFactory("Ready!") | |
.then((value) => { |
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 factorial = function(num) { | |
if (num < 2) { | |
return 1; | |
} | |
return num * factorial(num - 1); | |
}; | |
var isPalindrome = function (expression) { | |
// A single character string eg 'a' and the empty string "" are palindromes |
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
Array.property.subset = function(arr){ return _.all(arr, function(value){ return this.indexOf(value) !== -1; }, this); } |