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
export PAT="$PAT_OR_TOKEN" | |
export USER="$USER_NAME" | |
function gcpat { | |
substring=$(echo "$1" | sed -e 's/https:\/\///g') | |
url=https://"$USER":"$PAT"@"$substring" | |
git clone "$url" | |
} |
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
{ | |
"editor.formatOnSave": true, | |
"flow.useNPMPackagedFlow": true, | |
"javascript.validate.enable": false, | |
"javascript.format.enable": false, | |
"prettier.eslintIntegration": 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
git clone --bare https://external-host.com/extuser/repo.git | |
# Makes a bare clone of the external repository in a local directory | |
cd repo.git | |
git push --mirror https://github.com/ghuser/repo.git | |
# Pushes the mirror to the new GitHub repository | |
// Remove temp repo | |
cd .. | |
rm -rf repo.git |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
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
*, | |
*::before, | |
*::after { | |
box-sizing: border-box; | |
} | |
html { | |
font-family: sans-serif; | |
line-height: 1.15; | |
-webkit-text-size-adjust: 100%; |
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
/** | |
* webpack.config.js | |
* @author Daniel Park <[email protected]> | |
* Webpack configuration file. | |
*/ | |
// Require necessary modules. | |
const webpack = require('webpack'); | |
const path = require('path'); |
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
// @flow | |
import { Component } from 'react'; | |
import { withRouter } from 'react-router-dom'; | |
class ScrollToTop extends Component { | |
componentDidMount() { | |
window.scrollTo(0, 0); | |
} | |
render() { |
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
import React, { Component } from 'react'; | |
import { withRouter, Switch } from 'react-router-dom'; | |
import { TransitionGroup, Transition } from 'react-transition-group'; | |
import anime from 'animejs'; | |
import TransitionElements from './TransitionElements'; | |
class AnimatedRoutes extends Component { | |
state = { | |
location: this.props.location, | |
transitioning: true, |