- Pub sub
- Live data sets
- Poll and diff
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
// Let's cache a few things that are static. Setup times don't matter. | |
var e = $.Event('keydown'); | |
e.which = 32; | |
e.keyCode = 32; | |
var input = $('#typer-input')[0]; | |
var words = $('#paragraph > span').get().map(function(element){ | |
return element.innerHTML; | |
}); | |
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
# Meteor & Spooky Bootstrap. (Growth Hacking) | |
# You may also be interested by the PhantomJS, CasperJS & Spooky CheatSheet | |
# https://gist.github.com/LeCoupa/10008302 | |
# Choose XPath over CSS3 selectors it's much more powerful and less buggy | |
# https://gist.github.com/LeCoupa/8c305ec8c713aad07b14 | |
# Use Meteor-NPM to install these npm packages |
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
<html> | |
<body style="background: #333"> | |
<script > | |
var gui = require('nw.gui'); | |
var win = gui.Window.get(); | |
function takeSnapshot() { | |
win.capturePage(function(img) { | |
var popWindow = gui.Window.open('popup.html', | |
{width: 420, height: 300}); | |
popWindow.on('loaded', function() { |
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
/*jshint strict:false*/ | |
/*global CasperError console phantom require*/ | |
/** | |
* grab links and push them into xml | |
*/ | |
var casper = require("casper").create({ | |
}); |
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
module.exports = { | |
outDir: 'public', | |
babel: { | |
babelrc: false | |
}, | |
banner: true, | |
format: ['umd-min'], | |
css: true, | |
plugins: ['vue'] | |
}; |
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
# enable ES6 | |
parserOptions: | |
ecmaVersion: 6 | |
sourceType: "module" | |
ecmaFeatures: | |
jsx: true # enable React's JSX | |
# register plugins | |
plugins: | |
- meteor |
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
/** | |
* This casper scipt checks for 404 internal links for a given root url. | |
* | |
* Usage: | |
* | |
* $ casperjs 404checker.js http://mysite.tld/ | |
* $ casperjs 404checker.js http://mysite.tld/ --max-depth=42 | |
*/ | |
/*global URI*/ |
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
<template name="SignIn"> | |
<form action="/signin" id="signInForm" method="post"> | |
<input id="signInEmail" type="text" name="email" placeholder="Email Address"> | |
<input id="signInPassword" type="password" name="password" placeholder="Password"> | |
<input class="btn-submit" type="submit" value="Sign In"> | |
</form> | |
<!-- end #sign-in-form --> | |
</template> |
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
<!-- | |
The examples below illustrate different ways to make a reactive and nonreactive join between two collections. | |
We will retrieve in all of them a list of the 10 most popular posts along with their author profile. | |
More informations are available on: http://journal.gentlenode.com/ | |
Summary: | |
1. Nonreactive Join #1: Denormalization. | |
2. Reactive Join #1: Joining on the client. (by calling a publication) | |
3. Reactive Join #2: Overpublishing. (and joining with data context) |
OlderNewer