start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/bash | |
# Script for installing tmux on systems where you don't have root access. | |
# tmux will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# exit on error | |
set -e | |
TMUX_VERSION=1.8 |
"""making a dataframe""" | |
df = pd.DataFrame([[1, 2], [3, 4]], columns=list('AB')) | |
"""quick way to create an interesting data frame to try things out""" | |
df = pd.DataFrame(np.random.randn(5, 4), columns=['a', 'b', 'c', 'd']) | |
"""convert a dictionary into a DataFrame""" | |
"""make the keys into columns""" | |
df = pd.DataFrame(dic, index=[0]) |
import itertools | |
import numpy as np | |
from sklearn.linear_model import SGDClassifier, SGDRanking | |
from sklearn import metrics | |
from minirank.compat import RankSVM as MinirankSVM | |
from scipy import stats | |
I want to debug with CodeLLDB on CentOS 7, but get an error like this:
/home/xxx/.vscode/extensions/vadimcn.vscode-lldb-1.6.1/adapter/codelldb: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /home/xxx/.vscode/extensions/vadimcn.vscode-lldb-1.6.1/adapter/codelldb)
LLDB requires a higher version of glibc.
I get it work by the following steps:
Building Tensorflow from source on Ubuntu 16.04LTS for maximum performance:
TensorFlow is now distributed under an Apache v2 open source license on GitHub.
On Ubuntu 16.04LTS+:
Step 1. Install NVIDIA CUDA:
To use TensorFlow with NVIDIA GPUs, the first step is to install the CUDA Toolkit as shown:
import gc | |
import os | |
import time | |
import numpy as np | |
import pandas as pd | |
from pyarrow.compat import guid | |
import pyarrow as pa | |
import pyarrow.parquet as pq | |
import snappy |
{ | |
"schema_version": 1, | |
"name": "WeChat", | |
"description": "微信公众号全文 RSS", | |
"source_url": false, | |
"guid": "dd67102f09869c2228f8ed903a32d063", | |
"tag_fg_color": "#333333", | |
"tag_bg_color": "#66ff66", | |
"icon": "leaf", | |
"exported_at": "2019-01-12T10:56:41Z", |