Skip to content

Instantly share code, notes, and snippets.

View chief10's full-sized avatar
🎯
Focusing

chief10

🎯
Focusing
  • Los Angeles, CA
View GitHub Profile
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.
//Media query widths.
$small: 400px;
$medium: 800px;
$large: 1200px;
@media (min-width: $small) and (max-width: $med - 1) {
//Style logic here.
}
@include screen-large {
.example-class {
width: 100%;
}
}
@include screen-grande {
.example-class {
width: 50%;
}
@mixin screen-small {
@media (max-width: $small) {
@content;
}
}
@mixin screen-medium {
@media (min-width: $small + 1) and (max-width: $medium) {
@content;
}
@include screen-large {
.example-class {
width: 100%;
}
}
@include screen-grande {
.example-class {
width: 50%;
}
//Core SCSS info
@import 'variables';
@import 'utils';
//Project files.
@import 'example';
@chief10
chief10 / typescript-abstract-class.ts
Last active August 17, 2016 17:23
typescript-abstract-classes.ts
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 {
/// <reference path="./typings/index.d.ts" />
import {exec} from 'child_process';
exec('ls', (err, stdout, stderr) => {
console.log( stdout + '\n');
});
import {spawn} from 'child_process';
const child_process = spawn('tail', ['-f', 'some/log/somewhere.txt']);