Skip to content

Instantly share code, notes, and snippets.

View jwt625's full-sized avatar
🐢
Alive

Wentao jwt625

🐢
Alive
  • Sunnyvale, CA
  • 20:04 (UTC -07:00)
View GitHub Profile
cpp-5 : Depends: gcc-5-base (= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.4 is installed
gcc-5 : Depends: gcc-5-base (= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.4 is installed
gcc-5-multilib : Depends: gcc-5-base (= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.4 is installed
lib32asan2 : Depends: gcc-5-base (= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.4 is installed
lib32gcc-5-dev : Depends: gcc-5-base (= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.4 is installed
lib32mpx0 : Depends: gcc-5-base (= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.4 is installed
libasan2 : Depends: gcc-5-base (= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.4 is installed
libgcc-5-dev : Depends: gcc-5-base (= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.4 is installed
libmpx0 : Depends: gcc-5-base (= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.4 is installed
libx32asan2 : Depends: gcc-5-base (= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.4 is installed
@jwt625
jwt625 / insertTime.py
Created June 16, 2017 08:26
insert date and time in sublime
import sublime, sublime_plugin, time
class InsertDatetimeCommand(sublime_plugin.TextCommand):
def run(self, edit):
sel = self.view.sel()
for s in sel:
# self.view.replace(edit, s, time.ctime())
self.view.replace(edit, s, time.strftime('D%Y%m%dT%H%M'))
@jwt625
jwt625 / Graphviz.sublime-build
Last active February 5, 2017 02:48
sublime user plugins and snippets, etc
{
"cmd": ["dot", "-Tsvg", "-O", "$file"],
// "cmd": ["dot", "-Tpng", "-O", "$file"],
// "cmd": ["dot", "-Tpdf", "-O", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}
@jwt625
jwt625 / my-latex-command-collection.sty
Created November 16, 2016 01:37
personal LaTeX command collection
%%
%% By Jacob ([email protected])
% Department of Physics, THU
% First edited January 1, 2016
%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%frequently used head template: