https://gist.github.com/ryerh/14b7c24dfd623ef8edc7
cd
git clone https://github.com/songouyang/.tmux.git
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
ln -s -f .tmux/.tmux.conf
ln -s -f .tmux/.tmux.conf.local
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <getopt.h> | |
#include "cachelab.h" | |
typedef struct arguments { | |
int h; | |
int v; | |
int s; |
https://gist.github.com/ryerh/14b7c24dfd623ef8edc7
cd
git clone https://github.com/songouyang/.tmux.git
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
ln -s -f .tmux/.tmux.conf
ln -s -f .tmux/.tmux.conf.local
City_ID | City_EN | City_CN | Country_code | Country_EN | Country_CN | Province_EN | Province_CN | Admin_ district_EN | Admin_ district_CN | Latitude | Longitude | AD_code | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
CN101010100 | beijing | 北京 | CN | China | 中国 | beijing | 北京 | beijing | 北京 | 39.904987 | 116.40529 | 110100,110000,100000 | ||
CN101010200 | haidian | 海淀 | CN | China | 中国 | beijing | 北京 | beijing | 北京 | 39.956074 | 116.31032 | 110108 | ||
CN101010300 | chaoyang | 朝阳 | CN | China | 中国 | beijing | 北京 | beijing | 北京 | 39.92149 | 116.48641 | 110105 | ||
CN101010400 | shunyi | 顺义 | CN | China | 中国 | beijing | 北京 | beijing | 北京 | 40.128937 | 116.65353 | 110113 | ||
CN101010500 | huairou | 怀柔 | CN | China | 中国 | beijing | 北京 | beijing | 北京 | 40.324272 | 116.63712 | 110116 | ||
CN101010600 | tongzhou | 通州 | CN | China | 中国 | beijing | 北京 | beijing | 北京 | 39.902485 | 116.6586 | 110112 | ||
CN101010700 | changping | 昌平 | CN | China | 中国 | beijing | 北京 | beijing | 北京 | 40.218086 | 116.23591 | 110114 | ||
CN101010800 | yanqing | 延庆 | CN | China | 中国 | beijing | 北京 | beijing | 北京 | 40.465324 | 115.98501 | 110119 | ||
CN101010900 | fengtai | 丰台 | CN | China | 中国 | beijing | 北京 | beijing | 北京 | 39.863644 | 116.286964 | 110106 |
cd /Applications/Utilities/Terminal.app/Contents/Resources/Fonts/ | |
cp *.otf ~/Library/Fonts/ |
conda install flake8 |
static const auto _____ = []() { | |
// toggle off cout & cin, instead, use printf & scanf | |
ios::sync_with_stdio(false); | |
// untie cin & cout | |
cin.tie(nullptr); | |
return nullptr; | |
}(); | |
static int x=[](){ | |
std::ios::sync_with_stdio(false); |
#!/bin/bash | |
cd /Applications/Thunder.app/Contents | |
echo "Removing XLPlayer..." | |
rm -rf Bundles/XLPlayer.app | |
echo "Removing unnecessary plugins..." | |
cd PlugIns/ | |
sudo rm -rf advertising.xlplugin featuredpage.xlplugin iOSThunder.xlplugin liveupdate.xlplugin lixianspace.xlplugin myvip.xlplugin softmanager.xlplugin viprenew.xlplugin viptask.xlplugin viptips.xlplugin xiazaibao.xlplugin xlplayer.xlplugin activitycenter.xlplugin bbassistant.xlplugin livestream.xlplugin | |
sudo rm -rf webgame.xlplugin onethingcloud.xlplugin thunderword.xlplugin | |
echo "Disable autoupdate..." | |
sudo bash -c "echo '127.0.0.1 http://liveupdate.mac.sandai.net' >> /etc/hosts" |
#include <iostream> | |
#include <random> | |
#include <sys/time.h> | |
#include <vector> | |
#include <set> | |
#define BITSPERWORD 32 | |
#define SHIFT 5 | |
#define MASK 0x1F | |
#define N 10000000 |
import random | |
def get_ran(m, n): | |
for i in range(n): | |
if(random.randint(0, n-i-1) < m): | |
print(i, end="") | |
m -= 1 | |
print() | |
if __name__ == "__main__": |