Skip to content

Instantly share code, notes, and snippets.

View erizhang's full-sized avatar
🎯
Focusing

Eric Zhang erizhang

🎯
Focusing
View GitHub Profile
@sparrc
sparrc / phabricator_readme.md
Last active February 6, 2025 15:57
Phabricator Ubuntu Installation Guide

Phabricator Ubuntu Installation Guide

This is a supplement to the official Phabricator Installation Guide, because their guide will leave you with all kinds of permission and config errors and ~15,000 setup issues on startup.

Install bonus packages:

# apt-get install mercurial subversion python-pygments sendmail imagemagick

Create necessary users and add phd-user to sudoers:

@ianyfchang
ianyfchang / README.md
Last active August 24, 2018 12:30
heatmap
@aras-p
aras-p / preprocessor_fun.h
Last active July 14, 2025 13:08
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@biovisualize
biovisualize / basic-editable-table.js
Created December 5, 2012 07:15
Reusable Circular Network with Editable Data Table
var Table = function module() {
var dispatch = d3.dispatch("edit");
function exports(_selection) {
_selection.each(function (_dataset) {
//________________________________________________
// Data
//________________________________________________
var data = _dataset[0];
@mbostock
mbostock / .block
Last active November 21, 2019 20:19
Stacked-to-Grouped Bars
license: gpl-3.0
redirect: https://observablehq.com/@d3/d3-stacked-to-grouped-bars
@chucklarge
chucklarge / index.html
Created July 22, 2012 00:28
Rectangle color gradient
<!DOCTYPE html>
<html>
<head>
<title>Rectangle Color Gradient</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<style type="text/css">
svg {
xborder:1px solid red;
}
</style>
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@necolas
necolas / gist:2215692
Created March 27, 2012 13:12
Git submodules
# Workflow from https://github.com/necolas/dotfiles
# Add the new submodule
git submodule add git://example.com/remote/path/to/repo.git vim/bundle/one-submodule
# Initialize the submodule
git submodule init
# Clone the submodule
git submodule update
# Stage the changes
git add vim/bundle/one-submodule
@mbostock
mbostock / .block
Last active June 13, 2024 17:11
D3 Show Reel
license: gpl-3.0
@padcom
padcom / install.sh
Created August 3, 2011 09:26
Gitorious installation on Ubuntu 12.04
#!/bin/bash
#------------------------------------------------------------------------------
# SETTINGS
#------------------------------------------------------------------------------
MYSQL_ROOT_PASSWORD=password
MYSQL_GITORIOUS_PASSWORD=password
GITORIOUS_HOST=gitorious
SYSADMIN=sysadmin