This file contains 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
Show hidden characters
{ | |
"extends": [ | |
"tslint-react" | |
], | |
"rulesDirectory": [ | |
"node_modules/tslint-eslint-rules/dist/rules" | |
], | |
"rules": { | |
"adjacent-overload-signatures": true, | |
"align": [ |
This file contains 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
// ---------------------------------------------------------------------------- | |
// Map Functions | |
// ---------------------------------------------------------------------------- | |
@function to-string($int) | |
@return inspect($int) | |
// Still trying to think through if functions would be better than variables. | |
// * Benefit of variables is autocomplete. | |
// * Benefits of functions is clearer logic and simplicity in mapping. | |
// ** Thinking `--` prefixed would identify functions provided by core to be |
This file contains 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
# Vendor. | |
$ = require('jquery') | |
# Modules. | |
animation = require('./animation.coffee') | |
# Cache jQuery objects. | |
$document = $(document) | |
$window = $(window) | |
$header = $('#global-header') |
This file contains 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
# To get the `action` prop: | |
# | |
# 1. Go to your dashboard on mailchimp.com and navigate | |
# to Lists > Signup Forms > Embedded Forms. | |
# | |
# 2. Copy the `<form>` action from the generated HTML code. | |
# | |
# 3. Pass that into the component via the prop, like so: | |
# | |
# <mailchimp-subscribe |
This file contains 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
$rem_base: 16px !default; | |
$ratio: 1.5 !default; | |
@function whitespace_calculator($ratio, $i) { | |
$value: $ratio; | |
@if $i == 0 { | |
$value: 0; | |
} |
This file contains 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
# Rack Cors. | |
gem 'rack-cors', :require => 'rack/cors' |
This file contains 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
'use strict'; | |
var gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
sassGlob = require('gulp-sass-glob'), | |
concat = require('gulp-concat'), | |
browserify = require('browserify'), | |
coffeeify = require('coffeeify'), | |
uglify = require('gulp-uglify'), | |
notify = require('gulp-notify'), |
This file contains 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
'use strict'; | |
var gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
sassGlob = require('gulp-sass-glob'), | |
concat = require('gulp-concat'), | |
browserify = require('browserify'), | |
coffeeify = require('coffeeify'), | |
uglify = require('gulp-uglify'), | |
notify = require('gulp-notify'), |
This file contains 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
fs = require 'fs' | |
module.exports = (grunt) -> | |
grunt.initConfig | |
concurrent: | |
start: | |
tasks: ['nodemon', 'watch'] | |
options: | |
logConcurrentOutput: true |
This file contains 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 iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000 |