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
| @mixin screen-small { | |
| @media (max-width: $small) { | |
| @content; | |
| } | |
| } | |
| @mixin screen-medium { | |
| @media (min-width: $small + 1) and (max-width: $medium) { | |
| @content; | |
| } |
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
| @include screen-large { | |
| .example-class { | |
| width: 100%; | |
| } | |
| } | |
| @include screen-grande { | |
| .example-class { | |
| width: 50%; | |
| } |
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
| @media (min-width: $small) and (max-width: $med - 1) { | |
| //Style logic here. | |
| } |
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
| //Media query widths. | |
| $small: 400px; | |
| $medium: 800px; | |
| $large: 1200px; | |
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 express = require('express'); | |
| var bodyParser = require('body-parser'); | |
| var app = express(); | |
| var router = express.Router(); | |
| var port = process.env.PORT || 9000; | |
| //Middleware that only parses `urlendoded` bodies. | |
| //`extended` allows for an option as to which library | |
| //one wants to use when parsing URL-encoded data. |
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
| //... | |
| router.get('/hello', function(req, res) { | |
| res.json({ | |
| message: 'Hello, friend!' | |
| }); | |
| }); | |
| router.get('/bye', function(req, res) { | |
| res.json({ | |
| message: 'See yea later!' |
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 express = require('express'); | |
| var bodyParser = require('body-parser'); | |
| var app = express(); | |
| var router = express.Router(); | |
| var port = process.env.PORT || 9000; | |
| //Middleware that only parses `urlendoded` bodies. | |
| //`extended` allows for an option as to which library | |
| //one wants to use when parsing URL-encoded data. | |
| app.use(bodyParser.urlencoded({ |
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
| { | |
| "name": "express-app", | |
| "version": "1.0.0", | |
| "description": "An Example Express App for a blog post", | |
| "main": "index.js", | |
| "dependencies": { | |
| "body-parser": "^1.15.0", | |
| "express": "^4.13.4", | |
| "mongoose": "^4.4.5" | |
| } |
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
| angular.module('myModule', ['ngAnimate']) | |
| .controller('myNgCtrl', function($interval, $scope) { | |
| var vm = this; | |
| var cycleFn = $interval(grabNextImage, 3000); | |
| var myImages = [ | |
| 'http://placebeyonce.com/450-300', | |
| 'http://placehold.it/450x300', | |
| 'http://placekitten.com/g/450/300' | |
| ]; | |
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
| .my-image { | |
| transition: 0.75s ease-in-out transform; | |
| &.ng-enter { | |
| transform: translateX(-100%); | |
| } | |
| &.ng-enter-active, | |
| &.ng-leave { | |
| transform: translateX(0); |