Skip to content

Instantly share code, notes, and snippets.

Avatar
😁
Working

Sung M. Kim dance2die

😁
Working
View GitHub Profile
@dance2die
dance2die / List.md
Last active Aug 29, 2020
Linux programs
View List.md
@dance2die
dance2die / dev.to link tampermonkey script
Created Jul 2, 2020
To view all dev.to article links easily without hovering over each one
View dev.to link tampermonkey script
@dance2die
dance2die / .gitconfig
Created Jun 28, 2020
A user git config on windows - to be copied over in Linux
View .gitconfig
[user]
email = sungmkim80@gmail.com
name = Sung M. Kim
[alias]
cm = commit -m
co = checkout
rv = remote -v
st = status
aa = add .
br = branch
View mui-theme-dark.js
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import baseTheme from 'material-ui/styles/baseThemes/darkBaseTheme';
import * as Colors from 'material-ui/styles/colors';
import { fade } from 'material-ui/utils/colorManipulator'
const getTheme = () => {
let overwrites = {
"appBar": {
"textColor": Colors.white,
"color": fade(Colors.darkBlack, 0.87)
@dance2die
dance2die / postcss.config.js
Last active Apr 26, 2020
Gatsby Recipe for Tailwind CSS with TypeScript
View postcss.config.js
const purgecss = require('@fullhuman/postcss-purgecss')({
// Specify the paths to all of the template files in your project
content: [
'./src/**/*.html',
'./src/**/*.js',
'./src/**/*.jsx',
'./src/**/*.ts',
'./src/**/*.tsx',
'./public/index.html',
],
@dance2die
dance2die / workflow.yml
Created Dec 26, 2019
Building Gatsby with GitHub Actions and deploying to Netlify
View workflow.yml
name: Build and Deploy to Gatsby every hour
on:
schedule:
- cron: '0 */2 * * *'
jobs:
build:
runs-on: ubuntu-latest
View gist css.jsx
export default ({}) => {
return (
<Layout>
<SEO
frontmatter={frontmatter}
url={new URL(slug, siteUrl).href || siteUrl}
/>
<Link to={`/blog/${year}`}>&larr; Go Back</Link>
👇
{/* This "link" is for styling gists. */}
View Draft 1- Beginner's Thread Easy Questions (November 2019).md

Beginner's Thread / Easy Questions (November 2019)

[Previous threads][wiki previous threads] can be found in the Wiki.

Got questions about React or anything else in its ecosystem? Stuck making progress on your app?
Ask away! We’re a friendly bunch.

No question is too simple. 🙂


View Move Markdown to respective folder.ps1
ls | % {
# https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_split?view=powershell-6
$parsed = $_.Name -split '(\d{4})-(\d{2})-(\d{2})-(.*)'
$year = $parsed[1];
$month = $parsed[2];
$day = $parsed[3];
$name = $parsed[4];
$newDir = "$year/$month/$day";
View Implementation using "takeUntil".ts
// Original code
const pingEpic = (
action$,
) => (
action$
.pipe(
ofType(PING),
delay(1000),
map(pong),
)
You can’t perform that action at this time.