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
| //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
| @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
| @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
| @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
| //Core SCSS info | |
| @import 'variables'; | |
| @import 'utils'; | |
| //Project files. | |
| @import 'example'; |
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
| abstract class Car { | |
| constructor(public numOfWheels: number){} | |
| // This method must be implemented in any | |
| // class that is derived from this one. | |
| abstract typesOfCar(): void; | |
| // This method will be available to any class | |
| // derived from this one. | |
| countWheels():void { |
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
| /// <reference path="./typings/index.d.ts" /> | |
| import {exec} from 'child_process'; | |
| exec('ls', (err, stdout, stderr) => { | |
| console.log( stdout + '\n'); | |
| }); | |
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
| import {spawn} from 'child_process'; | |
| const child_process = spawn('tail', ['-f', 'some/log/somewhere.txt']); |