Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

EGOIST egoist

🏠
Working from home
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
Rich-Harris / README.md
Last active Jun 10, 2019
Unifying Rollup options
View README.md

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
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active Sep 16, 2019
Hyperlinks in Terminal Emulators
View Hyperlinks_in_Terminal_Emulators.md
View git-io.sh
#! /usr/bin/env bash
# Usage: git-io URL [CODE]
#
# Turns a github.com URL
# into a git.io URL
URL="$1"
CODE="$2"
@egoist
egoist / pgsql.md
Last active May 14, 2016
PostgreSQL 简明指南
View pgsql.md

安装

# ubuntu
$ sudo apt-get install postgresql

控制台

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

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.

Server

  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
egoist / css-layout-no-flexbox.md
Last active Feb 8, 2016
CSS 布局(非 flexbox 篇)
View css-layout-no-flexbox.md

单栏

<div class="container">
  css is awesome!  
</div>
.container {
@robertknight
robertknight / Build.md
Last active May 28, 2019
Minimal Webpack DllPlugin example
View Build.md

Compile with:

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

Use with the following index.html

@zhiguangwang
zhiguangwang / README.md
Last active Aug 15, 2019
Installing and running shadowsocks on Ubuntu Server
View README.md

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.