This file contains hidden or 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 bash | |
test -n "$DEBUG" && set -x | |
# __ __ ___ | |
# /\ \\ \ /'___`\ | |
# \ \ \\ \ /\_\ /\ \ | |
# \ \ \\ \_\/_/// /__ | |
# \ \__ ,__\ // /_\ \ | |
# \/_/\_\_//\______/ |
This file contains hidden or 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
set nocompatible | |
filetype off | |
" Download Vundle if it doesn't already exist | |
if !isdirectory(expand('~/.vim/bundle/Vundle.vim')) | |
echo "Installing Vundle..." | |
call system('git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim') | |
endif | |
set diffexpr=MyDiff() |
This file contains hidden or 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 sh | |
sudo apt-get update -y && \ | |
sudo apt-get upgrade -y && \ | |
sudo apt-get dist-upgrade -y && \ | |
sudo apt-get install build-essential software-properties-common -y && \ | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ | |
sudo apt-get update -y && \ | |
sudo apt-get install gcc-9 g++-9 -y && \ | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9 && \ |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import urllib | |
from bs4 import BeautifulSoup | |
import urllib2 | |
import contextlib | |
headers = { | |
'Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', | |
'Origin': 'http://family.ruisheng.info', |
This file contains hidden or 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
-- The C compiler identification is Clang 5.0.0 | |
-- Check for working C compiler: /usr/local/Library/ENV/4.3/clang | |
-- Check for working C compiler: /usr/local/Library/ENV/4.3/clang -- works | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Check if the system is big endian | |
-- Searching 16 bit integer | |
-- Looking for sys/types.h | |
-- Looking for sys/types.h - found | |
-- Looking for stdint.h |