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
# Define Variables + Casper Initialization | |
fakeReferer = 'https://google.com/' | |
targetUrl = 'https://facebook.com/' | |
casper = require('casper').create() | |
# Fake the referer | |
casper.start fakeReferer, -> |
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
# Note: if you want to run multiple meteor apps on the same server, | |
# make sure to define a separate port for each. | |
# Upstreams | |
upstream gentlenode { | |
server 127.0.0.1:58080; | |
} | |
# HTTP Server | |
server { |
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
# Note: if you want to run multiple meteor apps on the same server, | |
# make sure you define a separate port for each. | |
# Upstreams | |
upstream gentlenode { | |
server 127.0.0.1:58080; | |
} | |
# HTTP Server | |
server { |
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="SignUp"> | |
<form action="/sign-up" id="signUpForm" method="post"> | |
<input id="signUpEmail" name="email" placeholder="Email Address" type="text" > | |
<input id="signUpPassword" name="password" placeholder="Password" type="password"> | |
<input id="signUpPasswordConfirm" name="password-confirm" placeholder="Confirm" type="password"> | |
<input class="btn-submit" type="submit" value="Join Meteorites!"> | |
</form> | |
<!-- end #sign-up-form --> |
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
<template name="SignOut"> | |
<div class="connected"> | |
<span class="welcome">Welcome New Meteorite!</span> | |
<a class="sign-out" href="/" id="signOut">Sign Out</a> | |
</div> | |
<!-- end .connected --> | |
</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
<template name="ForgotPassword"> | |
<form action="/forgot" id="forgotPasswordForm" method="post"> | |
<input id="forgotPasswordEmail" type="text" name="email" placeholder="Email Address"> | |
<input class="btn-submit" type="submit" value="Send"> | |
</form> | |
<!-- end #forgot-password-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
# add the email package | |
meteor add email |
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 CORE: | |
Anywhere: Meteor.isClient | |
Anywhere: Meteor.isServer | |
Anywhere: Meteor.startup(func) | |
Anywhere: Meteor.absoluteUrl([path], [options]) | |
Anywhere: Meteor.settings | |
Anywhere: Meteor.release | |
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
// PhantomJS Cheatsheet | |
$ brew update && brew install phantomjs // install PhantomJS with brew | |
phantom.exit(); | |
var page = require('webpage').create(); | |
page.open('http://example.com', function() {}); | |
page.evaluate(function() { return document.title; }); |
OlderNewer