#Meteor Resources
This file contains hidden or 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
//check if undeclared | |
try{ | |
undeclaredVar | |
} | |
catch(e) { | |
if(e.name === 'ReferenceError') { | |
console.log('var is undeclared') | |
} | |
} |
This file contains hidden or 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
[10:38:59] The following tasks did not complete: default, <parallel>, watch:styles, watch:views, browser-sync | |
[10:38:59] Did you forget to signal async completion? |
Instructions for building this Meteor CRUD app, a basic app for teaching Meteor basics.
- Run
git clone [email protected]:andersr/meteor_crud
from your terminal, followed bycd meteor_crud
- Open the current directory in a text editor (eg using
edit .
) - (If you were creating this app from scratch, you would simply have typed
meteor create app
in this directory.) - Cd into the "app" directory and run
meteor
from the command line. - Open a browser window and enter the URL: http://localhost:3000
- Leave this window open while building the app. Meteor will auto-refresh as you make changes.
- Why have your app in an "app" sub-directory? Making your app a sub-directory of your working directory allows for making external files, such as config files, build files, etc, be part of your repo without being mixed in with actual app files.
This file contains hidden or 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
<nav class="navbar navbar-inverse"> | |
<div class="container"> | |
<div class="navbar-header"> | |
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> | |
<span class="sr-only">Toggle navigation</span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
</button> | |
<a class="navbar-brand" href="#">My Topics App</a> |
#Intro to Meteor JS
- A very brief intro to Meteor
- QuickVote Demo App
- Meteor Growing Pains Example: Main router package not being maintained
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
This file contains hidden or 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
(1..100).each do |number| | |
if (number % 3 == 0) && (number % 5 == 0) | |
puts "CracklePop" | |
elsif number % 3 == 0 | |
puts "Crackle" | |
elsif number % 5 == 0 | |
puts "Pop" | |
else | |
puts number |
This file contains hidden or 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
before_save :generate_token_id | |
def to_param | |
token_id | |
end | |
protected | |
def generate_token_id | |
begin |