This content moved here: https://exploringjs.com/impatient-js/ch_arrays.html#quickref-arrays
# One liner | |
wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com | |
# Explained | |
wget \ | |
--recursive \ # Download the whole site. | |
--page-requisites \ # Get all assets/elements (CSS/JS/images). | |
--adjust-extension \ # Save files with .html on the end. | |
--span-hosts \ # Include necessary assets from offsite as well. | |
--convert-links \ # Update links to still work in the static version. |
// Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
// http://creativecommons.org/publicdomain/zero/1.0/ | |
(function (win, doc) { | |
'use strict'; | |
if (!win.XMLHttpRequest || !win.FormData || !win.addEventListener || !doc.querySelectorAll) { | |
// doesn't cut the mustard. | |
return; | |
} | |
function hijaxForm (formElement) { | |
var progressBar; |
There is a project that I've spent the last two to three months working on that uses Firebase. The project includes a web app and iOS application and focuses heavily on real-time user interaction. We've really enjoyed working with Firebase and the Firebase web and iOS SDKs. It makes this real-time programming much simpler than rolling our own data-syncing solution for the server and multiple client language.
It will soon (in the next two weeks) be time to release the project, and we have no effective way in place to back up our data. Firebase offers a "private backups" feature for the "Bonfire" plan, but we obviously don't want to pay the $150 / month until we absolutely have to. Until we reach a point where we will use the Bonfire plan, we are forced to roll our own solution.
Must-haves:
import { Component } from "React"; | |
export var Enhance = ComposedComponent => class extends Component { | |
constructor() { | |
this.state = { data: null }; | |
} | |
componentDidMount() { | |
this.setState({ data: 'Hello' }); | |
} | |
render() { |
"use strict"; | |
var Namespace = window.Namespace || {}; | |
/** | |
* Factory for Modal Instances | |
* @param data {Object} - instance configurable props | |
* @constructor | |
*/ | |
(function() { |
Includes:
- Configuration
- BrowserSync
- Environments (e.g.,:
--environment=production
) - Image optimization (gif, jpg, png, and svg)
- Sass compilation with external libraries
- Bower installed Sass libraries example(s)
- CSS processing with Pleeease
/** | |
* Application code which demonstrates how to define multi-dimensional | |
* Ember-data relationships. | |
* | |
* The example uses the following Model concepts: | |
* - Issue (representing an Issue) | |
* - User (representing a User) | |
* - Vote (representing a User's vote for an Issue; a Pivot Model for | |
* Issue and User ) | |
* |