I hereby claim:
- I am thanpolas on github.
- I am thanpolas (https://keybase.io/thanpolas) on keybase.
- I have a public key ASCWHXwoj4IjP1CA1lp-qmFAHe3t_kebLO6KeNNWzK5XBgo
To claim this, I am signing this object:
/** | |
* Will normalize quotes in a given string. There are many variations of quotes | |
* in the unicode character set, this function attempts to convert any variation | |
* of quote to the standard Quotation Mark - U+0022 Standard Universal: " | |
* | |
* @param {string} str The string to normalize | |
* @return {string} Normalized string. | |
* @see https://unicode-table.com/en/sets/quotation-marks/ | |
*/ | |
helpers.stdQuote = (str) => { |
blueprint: | |
name: Motion-activated Light with illuminance v2 | |
description: Turn on a light when motion is detected and illuminance is below a | |
set Lux level. Will use a configured scene instead of the previous light | |
setting and will not trigger when the lights are already on to avoid | |
overriding user defined lighting (i.e. you've set the lights to a certain | |
scene, this automation should not override this). | |
This automation is based on the work of Danielbook | |
https://gist.github.com/Danielbook/7814e7eb32e880b2d7c3fb5ba8430f4f | |
Blueprint version 1.0.0 |
I hereby claim:
To claim this, I am signing this object:
/** | |
* the mark | |
*/ | |
body { | |
text-align: center; | |
margin-top: 20px; | |
} | |
.thanpolas { | |
font-size: 202px; | |
-webkit-border-radius: 12px; |
/** | |
* @fileOverview Singleton pattern on ES6. | |
*/ | |
import logger from './logger.midd'; | |
/** | |
* The class statement. | |
* | |
*/ |
var assert = require('chai').assert; | |
var when = require('when'); | |
var def1 = when.defer(); | |
function getProm() { | |
return def1.promise; | |
} |
module.exports = function (grunt) { | |
require('load-grunt-tasks')(grunt); | |
grunt.initConfig({ | |
express: { | |
options: { | |
// Override defaults here | |
}, | |
web: { | |
options: { |
function retProm() { | |
var def = when.defer(); | |
return def.resolve(); | |
} | |
console.log('one'); | |
retProm().then(function(){console.log('two')); | |
console.log('three'); |
module.exports = function (grunt) { | |
grunt.initConfig({ | |
watch: { | |
options: { | |
livereload: true | |
}, | |
// triggering livereload when the .css file is updated | |
// (compared to triggering when sass completes) | |
// allows livereload to not do a full page refresh | |
styles: { |