Skip to content

Instantly share code, notes, and snippets.

View xiaoda's full-sized avatar

Lynch Tai xiaoda

View GitHub Profile
@xiaoda
xiaoda / enable-installing-app
Last active January 17, 2019 07:09
Mac Enable Apps From Anywhere
sudo spctl --master-disable
@xiaoda
xiaoda / solve-git-problem
Last active August 16, 2024 09:32
Solve 'Auto packing the repository in background for optimum performance' Problem
git fsck --lost-found
git gc --prune=now
@xiaoda
xiaoda / scrollbar.scss
Last active August 22, 2018 06:23
Scrollbar Styles (Webkit / IE)
/* Webkit */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-thumb {
border-radius: 4px;
background-color: $color-thumb;
}
/* IE(Not Edge) */
@xiaoda
xiaoda / ssh-copy-id
Last active September 27, 2018 05:55
ssh-copy-id
cd ~/.ssh
ssh-copy-id -i id_rsa.pub [email protected]
# 链接:http://stackoverflow.com/questions/1463340/revert-multiple-git-commits
# 方法一
git checkout -f A -- .
git commit -a
# 方法二
git reset --hard A
git reset --soft @{1}
git commit
<html>
<head>
<meta charset="utf-8">
<title>事件代理 Demo</title>
<style type="text/css">
.block {
float: left;
width: 100px;
height: 100px;
margin-right: 10px;
{
"binary_file_patterns":
[
"node_modules/*",
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ttf",
"*.tga",
[alias]
co = checkout
ci = commit
br = branch
st = status
[user]
name = xiaoda
email = [email protected]
[color]
status = auto
@xiaoda
xiaoda / baidu-as-a-network-utility.css
Created May 15, 2016 12:54 — forked from tianyuf/baidu-as-a-network-utility.css
BaaN: Baidu as a Network Utility - 百度的实用主义方法论.
@-moz-document domain("baidu.com") {
body {
display: none;
}
html {
margin: 30px;
}
html::after {
@xiaoda
xiaoda / auto_forced_wrap.css
Created February 28, 2016 15:00
css实现强制不换行/自动换行/强制换行
/* 强制不换行 */
div{
white-space: nowrap;
}
/* 自动换行 */
div{
word-wrap: break-word;
word-break: normal;
}