Couldn't find the text of this for a while...
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
const { src, dest, parallel, series, watch } = require('gulp'); | |
// const pug = require('gulp-pug'); // Pug default view template | |
const twig = require('gulp-twig'); | |
const sass = require('gulp-sass'); | |
const prefix = require('gulp-autoprefixer'); | |
const data = require('gulp-data'); | |
//const minifyCSS = require('gulp-csso'); | |
const sourcemaps = require('gulp-sourcemaps'); | |
const concat = require('gulp-concat'); | |
const plumber = require('gulp-plumber'); |
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
<?php | |
/** | |
* Disable Confimation Messages and E-mail. | |
**/ | |
function yzc_disable_bp_confirmation_email() { | |
return false; | |
} | |
add_filter( 'bp_registration_needs_activation', 'yzc_disable_bp_confirmation_email' ); |
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
The goal of Node was event driven HTTP servers. | |
5:04 https://youtu.be/M3BM9TB-8yA?t=304 | |
1 Regret: Not sticking with Promises. | |
* I added promises to Node in June 2009 but foolishly removed them in February 2010. | |
* Promises are the necessary abstraction for async/await. | |
* It's possible unified usage of promises in Node would have sped the delivery of the eventual standartization and async/await. | |
* Today Node's many async APIs are aging baldly due to this. | |
6:02 https://youtu.be/M3BM9TB-8yA?t=362 |
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
const DIREECTION = { | |
LEFT: 'LEFT', | |
RIGHT: 'RIGHT', | |
}; | |
class Node { | |
constructor(data, parent = null) { | |
this.data = data; | |
this.parent = parent; | |
this.level = parent ? (parent.level + 1) : 1; |
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
function xmas() { | |
var b = document.getElementsByTagName('body')[0]; | |
var c = document.createElement('canvas'); | |
var ctx = c.getContext('2d'); | |
var flakes, flakeNumber = 250, gravity = 1, w, h, timer; | |
c.style.cursor = 'pointer'; | |
c.style.zIndex = '999999'; | |
c.style.top = 0; | |
c.style.left = 0; |
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
<?php | |
/** | |
* for code completion | |
* | |
* @link http://docs.php.net/manual/en/book.gearman.php | |
*/ | |
if (false) { | |
define('GEARMAN_SUCCESS', 0); |
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
<?php | |
/** | |
* for code completion | |
* | |
* @link http://docs.php.net/manual/en/book.gearman.php | |
*/ | |
if (false) { | |
define('GEARMAN_SUCCESS', 0); |
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
##### Windows | |
# Windows thumbnail cache files | |
Thumbs.db | |
Thumbs.db:encryptable | |
ehthumbs.db | |
ehthumbs_vista.db | |
# Dump file | |
*.stackdump |