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
| { | |
| "type": "chart", | |
| "title": "", | |
| "theme": "theme-blue", | |
| "fontSize": "medium", | |
| "lineDatapointStyle": "hover", | |
| "barHasBorder": "false", | |
| "padding": { "left": 5, "right": 5 }, | |
| "yAxis": { "size": 50, "gridLines": false }, | |
| "barThickness": 0.35, |
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
| // https://toddmotto.com/deprecating-the-switch-statement-for-object-literals/ | |
| function getDrink (type) { | |
| return 'The drink I chose was ' + { | |
| 'coke': 'Coke', | |
| 'pepsi': 'Pepsi', | |
| 'lemonade': 'Lemonade' | |
| }[type]; | |
| } |
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
| /** | |
| * Axios Request Wrapper | |
| * --------------------- | |
| * | |
| * @author Sheharyar Naseer (@sheharyarn) | |
| * @license MIT | |
| * | |
| */ | |
| import axios from 'axios' |
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
| sudo /Applications/MAMP/Library/bin/apachectl start |
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
| /* iPhone 6 landscape */ | |
| @media only screen and (min-device-width: 375px) | |
| and (max-device-width: 667px) | |
| and (orientation: landscape) | |
| and (-webkit-min-device-pixel-ratio: 2) | |
| { } | |
| /* iPhone 6 portrait */ | |
| @media only screen | |
| and (min-device-width: 375px) |
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 gulp = require('gulp'), | |
| browserSync = require('browser-sync'), | |
| historyApiFallback = require('connect-history-api-fallback'); | |
| gulp.task('serve', function() { | |
| browserSync({ | |
| files: ['js/**/*.js', '*.html', 'css/**/*.css'], | |
| server: { | |
| baseDir: '.', | |
| middleware: [ historyApiFallback() ] |
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 ref = new Firebase("https://<YOUR-FIREBASE-APP>.firebaseio.com"); | |
| // Generate a new push ID for the new post | |
| var newPostRef = ref.child("posts").push(); | |
| var newPostKey = newPostRef.key(); | |
| // Create the data we want to update | |
| var updatedUserData = {}; | |
| updatedUserData["user/posts/" + newPostKey] = true; | |
| updatedUserData["posts/" + newPostKey] = { | |
| title: "New Post", | |
| content: "Here is my new post!" |
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'; | |
| angular | |
| .module('app.core') | |
| .factory('firebaseDataService', firebaseDataService); | |
| firebaseDataService.$inject = ['FIREBASE_URL']; | |
| function firebaseDataService(FIREBASE_URL) { |
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
| # Download and Install the Latest Updates for the OS | |
| apt-get update && apt-get upgrade -y | |
| # Set the Server Timezone to CST | |
| echo "America/Chicago" > /etc/timezone | |
| dpkg-reconfigure -f noninteractive tzdata | |
| # Enable Ubuntu Firewall and allow SSH & MySQL Ports | |
| ufw enable | |
| ufw allow 22 |
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
| .center { | |
| position: relative; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| } |
NewerOlder