Forked from Oliver Knoblich's Pen Flexbox Off Canvas Menu.
A Pen by John Laine on CodePen.
| import React, { Component } from 'react' | |
| import { Redirect } from 'react-router' | |
| export default class ContactForm extends Component { | |
| constructor () { | |
| super(); | |
| this.state = { | |
| fireRedirect: false | |
| } | |
| } |
| const findRangeOverlap = (point1, length1, point2, length2) => { | |
| const highestStartPoint = Math.max(point1, point2); | |
| const lowestEndPoint = Math.min(point1 + length1, point2 + length2); | |
| if (highestStartPoint >= lowestEndPoint) { | |
| return {startPoint: null, width: null}; | |
| } | |
| const overlapLength = lowestEndPoint - highestStartPoint; | |
| return {startPoint: highestStartPoint, overlapLength: overlapLength}; |
| [alias] | |
| llog = log --oneline --abbrev-commit --all --graph --decorate --color | |
| st = status | |
| br = branch | |
| co = checkout | |
| # Useful git commands | |
| git log --oneline --abbrev-commit --all --graph --decorate --color |
| 'use strict'; | |
| // Load our dependencies. | |
| var gulp = require('gulp'); | |
| var sourcemaps = require('gulp-sourcemaps'); | |
| var htmlMin = require('gulp-htmlmin'); | |
| var useref = require('gulp-useref'); | |
| var uglify = require('gulp-uglify'); | |
| var lazypipe = require('lazypipe'); | |
| var gulpIf = require('gulp-if'); |
| { | |
| "directory" : "src/assets/components" | |
| } |
| $ tar cvzf archive_name.tar.gz dirname/ |
| now=$(date +"%m_%d_%Y") | |
| touch my_file_$now | |
| # Will output something like my_file_08_20_2013 | |
| # You can also do this, which will have the same results | |
| touch my_file_$(date +"%m_%d_%Y") |
| drush php-eval 'node_access_rebuild();' |