Skip to content

Instantly share code, notes, and snippets.

View gijun19's full-sized avatar
😎
Bashing keys and swallowing ☕️

Daniel Park gijun19

😎
Bashing keys and swallowing ☕️
  • Las Vegas, NV
View GitHub Profile
@gijun19
gijun19 / gcpat.sh
Last active July 16, 2020 01:14
GitLab token clone helper.
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"
}
@gijun19
gijun19 / settings.json
Created May 29, 2018 14:11
VSCode workspace settings for React, Prettier, ESlint, and Flow.
{
"editor.formatOnSave": true,
"flow.useNPMPackagedFlow": true,
"javascript.validate.enable": false,
"javascript.format.enable": false,
"prettier.eslintIntegration": true
}
@gijun19
gijun19 / gist:ec7765ffef9afdf71f99a34301ddc020
Created April 4, 2018 20:43
Import Git Repository using CL
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
# 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 ->
@gijun19
gijun19 / _reset.scss
Created March 11, 2018 22:58
reset.scss
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
font-family: sans-serif;
line-height: 1.15;
-webkit-text-size-adjust: 100%;
@gijun19
gijun19 / webpack.config.js
Created March 5, 2018 20:20
Webpack Config Boilerplate
/**
* webpack.config.js
* @author Daniel Park <work@danielpark.me>
* Webpack configuration file.
*/
// Require necessary modules.
const webpack = require('webpack');
const path = require('path');
@gijun19
gijun19 / ScrollToTop.js
Created February 18, 2018 01:41
React ScrollToTop Component.
// @flow
import { Component } from 'react';
import { withRouter } from 'react-router-dom';
class ScrollToTop extends Component {
componentDidMount() {
window.scrollTo(0, 0);
}
render() {
@gijun19
gijun19 / AnimatedRoutes.js
Created February 18, 2018 01:39
AnimeJS with React Transition Group
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,