Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Xuejian Rong ionvision

View GitHub Profile
View Effective_Engineer.md

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@ionvision
ionvision / parallel.py
Created Oct 29, 2018 — forked from thomwolf/parallel.py
Data Parallelism in PyTorch for modules and losses
View parallel.py
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
## Created by: Hang Zhang, Rutgers University, Email: zhang.hang@rutgers.edu
## Modified by Thomas Wolf, HuggingFace Inc., Email: thomas@huggingface.co
## Copyright (c) 2017-2018
##
## This source code is licensed under the MIT-style license found in the
## LICENSE file in the root directory of this source tree
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
"""Encoding Data Parallel"""
@ionvision
ionvision / iterm2-solarized.md
Created May 7, 2018 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)
View iterm2-solarized.md

Default

Default

Powerlevel9k

Powerlevel9k

@ionvision
ionvision / imagenet1000_clsid_to_human.txt
Created Apr 27, 2018 — forked from yrevar/imagenet1000_clsidx_to_labels.txt
text: imagenet 1000 class id to human readable labels (Fox, E., & Guestrin, C. (n.d.). Coursera Machine Learning Specialization.)
View imagenet1000_clsid_to_human.txt
{0: 'tench, Tinca tinca',
1: 'goldfish, Carassius auratus',
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias',
3: 'tiger shark, Galeocerdo cuvieri',
4: 'hammerhead, hammerhead shark',
5: 'electric ray, crampfish, numbfish, torpedo',
6: 'stingray',
7: 'cock',
8: 'hen',
9: 'ostrich, Struthio camelus',
View cloudSettings
{"lastUpload":"2019-02-15T07:06:54.325Z","extensionVersion":"v3.2.4"}
@ionvision
ionvision / cloudSettings
Last active Nov 11, 2018
VS Code Settings
View cloudSettings
{"lastUpload":"2018-11-11T16:40:08.743Z","extensionVersion":"v3.2.0"}
@ionvision
ionvision / zshrc_osx
Created Dec 7, 2016
~/.zshrc file for macOS
View zshrc_osx
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
@ionvision
ionvision / zshrc
Created Dec 7, 2016
~/.zshrc file for Ubuntu
View zshrc
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
@ionvision
ionvision / bash_sed_powershell.txt
Created Dec 7, 2016
Some useful bash/powershell commands
View bash_sed_powershell.txt
Bash:
========================
find ./ -type f -name "*"|xargs grep "encoding" > /home/xrong/Documents/VOC2010/VOCdevkit/VOC2010/file.list
sed -i '/encoding/'d `awk -F: '{print $1}' /home/xrong/Documents/VOC2010/VOCdevkit/VOC2010/file.list`
sed -i "s/oldstring/newstring/g" `grep oldstring -rl yourdir`
sed -i "s/www.bcak.com.cn/bcak.com.cn/g" `grep www.bcak.com.cn -rl /home`
@ionvision
ionvision / perl1line-ch.txt
Created Dec 7, 2016
Perl one-line commands
View perl1line-ch.txt
用 Perl 实现的有用的单行程序 1 28 2012 | 版本 1.08
------------------------ ----------- ------------
由 Peteris Krumins 编译 (peter@catonmat.net, @pkrumins on Twitter)
http://www.catonmat.net -- good coders code, great reuse
此文件最新版的总可以在下面的这个链接里获得:
http://www.catonmat.net/download/perl1line.txt
You can’t perform that action at this time.