Skip to content

Instantly share code, notes, and snippets.

View mrlee23's full-sized avatar

DongSoo Lee mrlee23

  • Seoul, Republic of Korea
View GitHub Profile
@mrlee23
mrlee23 / selenium-chrome-headless.js
Last active January 12, 2018 07:47
Execute selenium with chrome headless on nodeJS
const webdriver = require('selenium-webdriver'),
By = webdriver.By,
until = webdriver.until,
getChrome = require('get-chrome');
require('chromedriver');
let driver = new webdriver.Builder()
.withCapabilities({
chromeOptions: {
binary: getChrome(),
@mrlee23
mrlee23 / .travis_jsdoc.yml
Created December 29, 2017 15:58
Travis CI jsdoc generator
notifications:
email:
- [email protected]
env:
global:
- GH_TOKEN=$G
- PUBLISHED_DIR=".published"
language: node_js
node_js:
- "8"
@mrlee23
mrlee23 / build-travis_gh-pages.sh
Last active December 29, 2017 16:01
Travis github pages builder
if [ -z "${GH_TOKEN}" ]; then "GH_TOKEN is not setted" 1>&2; fi
if [ -z "${REPO}" ]; then REPO=$(sed "s/https:\/\/github.com/https:\/\/${GH_TOKEN}@github.com/g" <<< $(git config remote.origin.url)); fi
if [ -z "${BUILD_BRANCH}" ]; then BUILD_BRANCH="gh-pages"; fi
if [ -z "${PUBLISHED_DIR}" ]; then PUBLISHED_DIR=".published"; fi
if [ -z "${COMMIT_MSG}" ]; then COMMIT_MSG=$(git log --oneline -n 1 --pretty="Deploy: %s from %h"); fi
git checkout --orphan $BUILD_BRANCH
git pull origin $BUILD_BRANCH
shopt -s extglob
rm -rf !(.git|$PUBLISHED_DIR)
mv -f "${PUBLISHED_DIR}"/* ./
@mrlee23
mrlee23 / mac-apps.md
Last active August 29, 2015 14:12 — forked from erikreagan/mac-apps.md

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik