Skip to content

Instantly share code, notes, and snippets.

View VictorKid's full-sized avatar

VictorKid VictorKid

View GitHub Profile
<!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>
/* -------------------------------------
<!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>
/* -------------------------------------
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)
}
export const isObjectEqual = (obj1, obj2) => {
if(!isObject(obj1) || !isObject(obj2)) {
return false;
}
// are the references the same?
if (obj1 === obj2) {
return true;
}
@VictorKid
VictorKid / gulpfile.example.js
Created May 22, 2016 14:21
gulp file example
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']);