This file contains hidden or 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
| const execa = require('execa'); | |
| const path = require('path'); | |
| const glob = require('glob'); | |
| // === === UTILS === === | |
| const run = async (cmd, stdio) => { | |
| const options = !stdio ? { shell: true } : { shell: true, stdio: 'inherit' }; | |
| const { stdout, stderr, exitCode } = await execa(cmd, options); | |
| if (stderr || exitCode === 1) { |
This file contains hidden or 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
| #!/bin/bash | |
| COURSENAME=$1 | |
| TYPE=$2 | |
| youtube-dl --download-archive "$COURSENAME/archive.txt" -o "$COURSENAME/%(playlist_index)s_%(title)s" "https://egghead.io/$TYPE/$COURSENAME" |
This file contains hidden or 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 * as Twit from 'twit'; | |
| import * as nodemailer from 'nodemailer'; | |
| // Environment Variables | |
| namespace NodeJS { | |
| export interface ProcessEnv { | |
| CONSUMER_KEY: string; | |
| CONSUMER_SECRET: string; | |
| ACCESS_TOKEN: string; | |
| ACCESS_TOKEN_SECRET: string; |
This file contains hidden or 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 * as Immutable from 'immutable'; | |
| import { combineReducers } from 'redux-immutable'; | |
| import { handleActions, Action } from 'redux-actions'; | |
| import { createStore, applyMiddleware } from 'redux'; | |
| import { composeWithDevTools } from 'redux-devtools-extension'; | |
| const FOO_ACTION = 'FOO_ACTION'; | |
| interface FooAction { param: string; }; | |
| const fooAction = (param: string): Action<FooAction> => { | |
| return { type: FOO_ACTION, payload: { param } }; |
This file contains hidden or 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 Transition, { ENTERING, ENTERED } from 'react-transition-group/Transition'; | |
| import './App.css'; | |
| const duration = 8000; | |
| const fadeStyles = { | |
| [ENTERING]: 'in', | |
| [ENTERED]: 'in', | |
| }; |
This file contains hidden or 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 Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or 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
| # ----------------------------------------------------------------- | |
| # .gitignore for WordPress | |
| # Bare Minimum Git | |
| # http://ironco.de/bare-minimum-git/ | |
| # ver 20150227 | |
| # | |
| # This file is tailored for a WordPress project | |
| # using the default directory structure | |
| # | |
| # This file specifies intentionally untracked files to ignore |