This file contains 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
'use strict'; | |
// Based on https://gist.github.com/zhoujiealex/4d926889b02b85d4d8d73f036ef728eb | |
let Promise = require('bluebird'); | |
let gulp = require('gulp'); | |
let cssnano = require('gulp-cssnano'); | |
let uglify = require('gulp-uglify'); | |
let htmlmin = require('gulp-htmlmin'); | |
let htmlclean = require('gulp-htmlclean'); | |
let imagemin = require('gulp-imagemin'); |
This file contains 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
DELETE locales_source FROM locales_source LEFT JOIN locales_target lt USING ( lid ) WHERE lt.lid IS NULL |
This file contains 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
/* DHT11 temperature and humidity sensor | |
* Project tutorial url: http://kookye.com/2015/03/21/dht11-temperature-and-humidity-sensor/ | |
* Circuit diagram here: http://osoyoo.com/2015/03/21/dht11-temperature-and-humidity-sensor/ | |
* | |
* Sample code: http://kookye.com/wp-content/uploads/samplecode/dht11.txt | |
* Rewritten by https://github.com/phawxby | |
*/ | |
int dht11pin = A0; | |
void setup(){ |
This file contains 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
function countCSSRules() { | |
var results = '', | |
log = ''; | |
if (!document.styleSheets) { | |
return; | |
} | |
for (var i = 0; i < document.styleSheets.length; i++) { | |
countSheet(document.styleSheets[i]); | |
} | |
function countSheet(sheet) { |