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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Tooter</title> | |
| <link rel="stylesheet" href="styles/main.css"> | |
| </head> | |
| <body> | |
| <div class="app-container"> | |
| <form class="js-toot-input"> |
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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title></title> | |
| <link rel="stylesheet" href="main.css"> | |
| </head> | |
| <body> | |
| <form> |
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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title></title> | |
| </head> | |
| <body> | |
| <div id="app"></div> |
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
| // Adds all the natural numbers below `end` that are multiples of any of the | |
| // values in `multiples` | |
| // | |
| // end - The Number that is the upper limit | |
| // multiples - An Array of Numbers that will be checked for divisibility | |
| // | |
| // Examples | |
| // | |
| // multiples(1000, [3, 5]) | |
| // // => 233168 |
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
| #!/bin/bash | |
| mkdir $1 | |
| cd $1 | |
| touch index.html | |
| mkdir scripts | |
| mkdir styles | |
| touch scripts/main.js | |
| touch styles/main.scss | |
| cd styles | |
| bourbon install |
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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title></title> | |
| <link rel="stylesheet" href="bower_components/octicons/octicons/octicons.css"> | |
| </head> | |
| <body> | |
| <ul class="repositories"> |
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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title></title> | |
| <script src="bower_components/jquery/dist/jquery.js"></script> | |
| <script src="main.js"></script> | |
| </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
| var items = ['a', 'b', 'c', 'd', 'e']; | |
| console.log(items); | |
| function logItem(item) { | |
| console.log(item); | |
| } | |
| items.forEach(logItem); |
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
| (function(){ | |
| 'use strict'; | |
| window.ENV = window.ENV || {}; | |
| window.ENV['simple-auth-firebase'] = { | |
| firebase: new Firebase("https://blistering-torch-3318.firebaseio.com/") | |
| }; | |
| var defaults = { | |
| firebase: null, | |
| resourceName: 'users' |
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
| var email = "email"; | |
| var password = "password"; | |
| var data = {email: email, password: password}; | |
| Application.ref.createUser(data, function(error){ | |
| if(! error ){ | |
| ref.authWithPassword(data, function(error, authData){ | |
| if( ! error && authData ){ | |
| data.id = authData.uid; | |
| var user = self.store.createRecord('user', data); |