Skip to content

Instantly share code, notes, and snippets.

View lamngo255's full-sized avatar
🏠
Working from home

Lâm Ngô lamngo255

🏠
Working from home
View GitHub Profile
import threading
from queue import Queue
import time
# 10 workers, 20 tasks
NUM_WORKERS = 10
NUM_JOBS = 20
start = time.time()
q = Queue()
# add this to your vimrc
#let g:ycm_global_ycm_extra_conf = "~/.vim/.ycm_extra_conf_openframeworks.py"
# Partially stolen from https://bitbucket.org/mblum/libgp/src/2537ea7329ef/.ycm_extra_conf.py
import os
import ycm_core
# These are the compilation flags that will be used in case there's no
# compilation database set (by default, one is not set).
@lamngo255
lamngo255 / .vimrc
Last active January 15, 2017 10:16
My .vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
@lamngo255
lamngo255 / package.json
Created September 23, 2018 09:46
react-scripts production build forever
{
"name": "admin-web-app",
"version": "0.1.0",
"private": true,
"dependencies": {
"axios": "^0.16.2",
"d3": "^4.13.0",
"dotenv": "^4.0.0",
"font-awesome": "^4.7.0",
"font-awesome-webpack": "0.0.5-beta.2",
@lamngo255
lamngo255 / docker-help.md
Created January 5, 2019 14:06 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

- lấy bài hát liên quan:
http://mp3.zing.vn/xhr/recommend?type=audio&id=ZW67OIA0
- lấy data thông qua key:
http://mp3.zing.vn/xhr/media/get-source?type=audio&key=kmJHTZHNCVaSmSuymyFHLH
http://mp3.zing.vn/html5xml/song-xml/kmJHTZHNCVaSmSuymyFHLH
- lấy info bài hát
https://mp3.zing.vn/xhr/media/get-info?type=audio&id=ZW8I7AAI