// jQuery
$(document).ready(function() {
// code
})Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist.
Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).
| [MASTER] | |
| # Specify a configuration file. | |
| #rcfile= | |
| # Python code to execute, usually for sys.path manipulation such as | |
| # pygtk.require(). | |
| #init-hook= | |
| # Profiled execution. |
I freaking love working with technologies like Grunt and Gulp, and wanted to share how to get my current EE front-end workflow set up. With a few tweaks, this can also be used with virtually any other sites (I've used it with Laravel, static sites, Craft, etc).
- If Node is not yet installed on the machine, it will need to be installed
In React's terminology, there are five core types that are important to distinguish:
React Elements
| /* bling.js */ | |
| window.$ = document.querySelector.bind(document); | |
| window.$$ = document.querySelectorAll.bind(document); | |
| Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
| NodeList.prototype.__proto__ = Array.prototype; | |
| NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |
| var context = require.context('.', true, /-test\.js$/) ; | |
| context.keys().forEach(context) ; | |
| module.exports = context ; |
Install svg-inline-loader for webpack :
npm install svg-inline-loader --save-dev
Add it to your loaders in module.loaders section of webpack.config.js:
{
test: /\.svg$/,
loader: 'svg-inline-loader'
| //=============================================================================== | |
| // RECOVERY CALLS | |
| //=============================================================================== | |
| const express = require('express'); | |
| const app = express(); | |
| const crypto = require('crypto'); | |
| app.get('/recovery', (req, res) => { | |
| let messages = req.session.flash; |

