- Download the fastboot ROM suitable for your device from the MIUI site and extract the downloaded archive [edit: MIUI page is dead. Use Xiaomi Firmware Updater]
- Download and extract the Android SDK Platform Tools
- Make sure
adb
andfastboot
(components of platform-tools) are in your
Install build dependencies
$ sudo apt-get build-dep vim
Clone git repo
$ git clone https://github.com/vim/vim.git
Change to src directory
Say, you want spotlight to find MacVim. Doing
brew linkapps macvim
creates a symlink in /Applications
. But Spotlight seems to ignore it. Instead, remove the symlink
rm /Applications/MacVim.app
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
# qpdfview synctex vim synchronization | |
# for qpdfview (Settings > Behavior > Source editor) | |
vim --servername vimtex --remote-silent +%2<Enter>zz %1 | |
# for alias in .bashrc | |
alias vimtex='vim --servername vimtex' |
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 | |
from __future__ import print_function, division | |
import requests | |
import getpass | |
import sys | |
def get_login_data(): | |
'''Asks the user for the username and password. Returns a dictionary to be | |
passed to the /account/login post request. |
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
import sys | |
import os | |
import numpy as np | |
def read_deal_vec(filename): | |
if not os.path.isfile(filename): | |
print('File not found!') | |
else: | |
with open(filename, 'rb') as f: |