Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond

Kevin Titor egoist

I may be slow to respond
Block or report user

Report or block egoist

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Rich-Harris /
Last active Jun 10, 2019
Unifying Rollup options

Rollup 0.48 introduces a few changes to the options object, because the current options are confusingly different between the CLI and the options exported by your config file.

Changes to the config file

  • entry is now input
  • sourceMap and sourceMapFile are now sourcemap and sourcemapFile (note casing)
  • moduleName is now name
  • useStrict is now strict

The dest and format options are now grouped together as a single output: { file, format, ... } object. output can also be an array of { file, format, ... } objects, in which case it behaves similarly to the current targets. Other output options — exports, paths and so on — can be added to the output object (though they will fall back to their top-level namesakes, if unspecified).

egmontkob /
Last active Nov 18, 2019
Hyperlinks in Terminal Emulators
#! /usr/bin/env bash
# Usage: git-io URL [CODE]
# Turns a URL
# into a URL
egoist /
Last active May 14, 2016
PostgreSQL 简明指南


# ubuntu
$ sudo apt-get install postgresql


rgrove /
Created Feb 8, 2016
Cake's approach to React Router server rendering w/code splitting and Redux

Can't share the complete code because the app's closed source and still in stealth mode, but here's how I'm using React Router and Redux in a large app with server rendering and code splitting on routes.


  1. Wildcard Express route configures a Redux store for each request and makes an addReducers() callback available to the getComponents() method of each React Router route. Each route is responsible for adding any Redux reducers it needs when it's loaded. (This isn't really necessary on the
egoist /
Last active Feb 8, 2016
CSS 布局(非 flexbox 篇)


<div class="container">
  css is awesome!  
.container {
robertknight /
Last active Oct 26, 2019
Minimal Webpack DllPlugin example

Compile with:

webpack --config vendor.webpack.config.js
webpack --config app.webpack.config.js

Use with the following index.html

zhiguangwang /
Last active Aug 15, 2019
Installing and running shadowsocks on Ubuntu Server

Installing and running shadowsocks on Ubuntu Server

16.10 yakkety and above

  1. Install the the shadowsocks-libev package from apt repository.

     sudo apt update
     sudo apt install shadowsocks-libev
  2. Save ss.json as /etc/shadowsocks-libev/config.json.

You can’t perform that action at this time.