brew doctor
Warning: /usr/local/share/python is not needed in PATH.
Formerly homebrew put Python scripts you installed via `pip` or `pip3`
(or `easy_install`) into that directory above but now it can be removed
from your PATH variable.
Python scripts will now install into /usr/local/bin.
You can delete anything, except 'Extras', from the /usr/local/share/python
(and /usr/local/share/python3) dir and install affected Python packages
anew with `pip install --upgrade`.
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
FROM gcr.io/tensorflow/tensorflow:latest-devel-gpu-py3 | |
RUN pip3 install keras pillow opencv-python h5py \ | |
python-socketio flask eventlet graphviz pydot-ng |
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
class Cache(object): | |
def __init__(self, seq, size, latency): | |
self.size = size | |
self.seq = seq | |
self.latency = latency | |
def put(self, video): | |
if self.size >= video: | |
self.size -= video | |
return True |
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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <lua.h> | |
#include <lauxlib.h> | |
#include <lualib.h> |
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
#!/bin/bash | |
REMOTE_HOST=freelaptop | |
if [ -d sortedfiles ] | |
then | |
rm -rf ./sortedfiles/* | |
else | |
tempdir=$(mktemp -d sortedfiles) | |
fi | |
if [ -f ./res ] |
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
#!/bin/bash | |
#./ce.sh filename.cxx|cpp args... | |
CC="c++ -std=c++11 -o" | |
src_name=$1 | |
exe_name=${src_name%.c[px]*} | |
if [ -f "$exe_name" ] | |
then | |
echo "delete $exe_name" |
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
#include <iostream> | |
#include <vector> | |
#include <sstream> | |
#include <set> | |
#include <cmath> | |
std::set<std::vector<int>> solve(int n) | |
{ | |