Skip to content

Instantly share code, notes, and snippets.

View nfons's full-sized avatar
🏠
Working from home

Nate Fonseka nfons

🏠
Working from home
View GitHub Profile
var syncDep;
function getLottery() {
return new Promise((resolve, reject) =>{
if (syncDep === undefined) { //check of we already have this data...if not THEN go get
setTimeout(function() {
syncDep = [1,22,34,56,5];
resolve(syncDep);
}, 2000);
} else {
var out = Date.now();
exports.handler = (event, context, callback) => {
// TODO implement
var intime = Date.now();
console.log(out);
console.log(intime);
callback(null, 'Hello from Lambda');
};
apiVersion: v1
kind: ReplicationController
metadata:
name: nginx-ingress-controller
labels:
k8s-app: nginx-ingress-lb
spec:
replicas: 1
selector:
k8s-app: nginx-ingress-lb
@nfons
nfons / php.ini
Created August 27, 2011 14:29
my PHP ini
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order: