Skip to content

Instantly share code, notes, and snippets.

juliantheberge

View GitHub Profile
View buildscript.js
// concatinates file names
function stringOfFiles(dir:string, array:[string], version:number, rev:boolean) {
let finalArr = [];
if (rev) {
for (let i = array.length-1; i >= version;i--) {
finalArr.push("-f " + dir + '/' + array[i])
}
return " -a " + finalArr.join(' ')
} else {
for (let i = 0; i < version;i++) {
@juliantheberge
juliantheberge / AlarmClock.ts
Created Apr 17, 2018
Autonomous Alarm Clock
View AlarmClock.ts
export default class AlarmClock {
querySvc:QuerySvc;
dbInfo: pg.ConnectionConfig;
date:Date;
timeString:V.MilitaryTime;
maxRingTime: number;
maxSnooze: number;
View gist:f9f75371d4b0510f6326d0ed20a201d0
export default class AlarmClock {
querySvc:QuerySvc;
dbInfo: pg.ConnectionConfig;
date:Date;
timeString:V.MilitaryTime;
maxRingTime: number;
maxSnooze: number;
You can’t perform that action at this time.