Imagine a scenario where you've been developing locally with dummy data and at some point decided to move this data to a Firebase instance.
Assuming your JSON file contents looks like the following.
[
{
"name": "Zapallo Anco",
Imagine a scenario where you've been developing locally with dummy data and at some point decided to move this data to a Firebase instance.
Assuming your JSON file contents looks like the following.
[
{
"name": "Zapallo Anco",
Apple has been creating some amazing scrolling video sites lately and I've been trying to create a simplified plugin to recreate this effect. This is the alpha version of this plugin. You can see an example of the effect I'm recreating here: http://www.apple.com/macbook/
This uses requestAnimationFrame and allows you to create multiple custom scrolling videos easily.
A Pen by Mark Teater on CodePen.
/* bling.js */ | |
window.$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function (name, fn) { | |
this.addEventListener(name, fn); | |
} | |
NodeList.prototype.__proto__ = Array.prototype; |
// app/locations/history.js | |
export default Ember.HistoryLocation.extend({ | |
pushState() { | |
this._super(...arguments); | |
window.scrollTo(0, 0); | |
} | |
}); | |
``` |
Service Worker - offline support for the web
Progressive apps - high-res icon, splash screen, no URL bar, etc.
import Ember from 'ember'; | |
import computed from 'ember-new-computed'; | |
const inject = Ember.inject; | |
const alias = computed.alias; | |
const sort = computed.sort; | |
export default Ember.Controller.extend({ | |
sessionManager: inject.service(), | |
person: alias('sessionManager.person'), |
/** | |
* $ ember test --filter "text-2-html" | |
*/ | |
import { text2Html } from '../../../helpers/text-2-html'; | |
import { module, test } from 'qunit'; | |
module('Unit | Helper | text 2 html'); | |
const input = "Hey\nHow're ya doin'?\nSorry you can't get through.\nWhy don't you leave me your name, mine is @planetcrypton, and your number, mine is +4512345678, and I'll get back to you.\nDon't forget to visit http://www.wearedelasoul.com/\nMail me at plug2@reversed-yogurt.com #oldschool #plug1 #plug2 #plug3"; |
This script creates headers of all files in a given directory to use them for HTTP/2 server push.
Usage: linkheader.sh /mydir
/* globals firebaseui */ | |
import Ember from 'ember'; | |
import firebase from 'firebase'; | |
const { computed, inject: { service } } = Ember; | |
export default Ember.Component.extend({ | |
firebaseApp: service(), | |
didInsertElement() { |