This file contains hidden or 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta name="viewport" content="width=device-width" /><!-- IMPORTANT --> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>Account Activation</title> | |
<!-- <link rel="stylesheet" type="text/css" href="stylesheets/email.css" /> --> | |
<style> | |
/* ------------------------------------- |
This file contains hidden or 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta name="viewport" content="width=device-width" /><!-- IMPORTANT --> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>Password Reset</title> | |
<!-- <link rel="stylesheet" type="text/css" href="stylesheets/email.css" /> --> | |
<style> | |
/* ------------------------------------- |
This file contains hidden or 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
func quickSort(sortElms: [Int]) -> [Int] { | |
let arr = sortElms | |
guard arr.count > 0 else { | |
return arr | |
} | |
let first = arr.first | |
let left = arr.filter({$0 < first}) | |
let right = arr.filter({$0 > first}) | |
return quickSort(left)+[first!]+quickSort(right) | |
} |
This file contains hidden or 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 isObjectEqual = (obj1, obj2) => { | |
if(!isObject(obj1) || !isObject(obj2)) { | |
return false; | |
} | |
// are the references the same? | |
if (obj1 === obj2) { | |
return true; | |
} |
This file contains hidden or 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 gulp = require('gulp'); | |
var cp = require('child_process'); | |
gulp.task('default', ['build:client', 'watch'], function () { | |
gulp.start('server:spawn'); | |
}); | |
gulp.task('watch', function () { | |
gulp.watch('src/*.js', ['build:client']); | |
gulp.watch('server.js', ['server:restart']); |