menu
Linux/Unix Recursively Search All Files for a String

date_range Dec. 06, 2018 - Thursday

A quick answer here:

$ grep -r "string" .

Get Started with THE Docker

date_range Nov. 28, 2018 - Wednesday

The famous “Docker” is a tool that can package an application and tis dependencies in a virtual container that can run on any Linux server. After getting my keras model, it’s a good chance to try docker to deploy a deep learning model as a API service. In this article, I’d like to write down all the important procedures and details about how to make this service work with docker.”

Experiencing google cloud

date_range Oct. 09, 2018 - Tuesday

After experiencing google cloud for couple of week, I’d like to write something down here. On the one hand, there’re lots of tips, necessary knowledge and pitfalls to remember and check. One the other hand, just cannot resist to complain about this giant and complicated service system.

How to Execute a script directly within vi/vim

date_range Jan. 16, 2019 - Wednesday

Short Answer:

» Answer from Stack Overflow

You can do this in vim using the ! command. For instance to count the number of words in the current file you can do:

:! wc %

The % is replaced by the current filename. To run a script you could call the interpreter on the file - for instance if you are writing a python script:

:! python %

Python random.seed()

date_range Jan. 14, 2019 - Monday

Use Python random library to initialize the pseudo-random number generator.

Pandas - Quick Start

date_range Dec. 28, 2018 - Friday

pandas is an open source, BSD-licensed library providing high-performance, easy-to-use data structures and data analysis tools for the Python programming language.

Quick Start on MySQL

date_range Dec. 12, 2018 - Wednesday

A quick start and a Cheet Sheet on MySQL.

Understanding generators in Python

date_range Dec. 10, 2018 - Monday

This post note a full understanding of a generator in Python.