-
只管去做。
Just do it
-
1%的决策,都可以更改。
1% of decisions aren't permanent
-
招人要慎重,解雇要快速。
This file contains 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 | |
usage() | |
{ | |
local name=${0##*/} | |
cat >&2 <<-END | |
Rewrite history to squash all commits wiht message starts with 'fixup!' to | |
its first parent. By [email protected] |
This file contains 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
#!/usr/bin/env python | |
# coding: utf-8 | |
import sys | |
import hashlib | |
import math | |
def count_collision(nbucket, nkey): | |
buckets = [0] * nbucket |
This file contains 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 | |
# * 358aee4 (HEAD) fix css | |
# | css/site.css | 13 ++--- | |
# | | |
# * f869f40 init site | |
# | html/index.html | 12 ++-- | |
# | html/header.html | 34 +----- | |
# | css/site.css | 61 +++++++------ | |
# | |
This file contains 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
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <stdlib.h> | |
#include <pthread.h> | |
/* gcc -lpthread q.c && ./a.out */ |
This file contains 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
# usage: | |
# ./git-file-branch.sh fn.cpp | |
prev=$(git rev-parse $(git rev-list -n1 --all -- $1)^) | |
for br in $(git branch -a | cut -c 3-); do | |
[ "x$(git rev-list -n1 --no-merges --first-parent $prev..$br -- $1)" != "x" ] && echo $br | |
done |
NewerOlder