阳光海岸线
My sky is here.
Workshop on Useful and Reliable AI Agents
Lucky and Mable.
Everything is about making good habit
How to become a 10x person? A super individual?
MR as your north star
ATE principle to become excellent
ATOM word count and document outline for Markdown
- Set up the soft warp by go to preference-> Editor --> preferred length and then check the box of using preferred length for soft wrap.
- Search document outline package by preference -> install -> search "document outline" -> install.
- Install word count "counter" by Fredrik01. It will display the word count in your status bar. The # in front of "C" is the number of English and Chinese words.
AutoML
Tax Exemption under China-US Treaty
https://ttlc.intuit.com/questions/3220533-tax-exemption-under-china-us-treaty
如何用markdown写微信或邮件
- 在chrome和firefox浏览器中安装extension "Markdown Here"
- 在微信后台写或者粘贴markdown文本,然后"ctrl+alt+M", 文本就会变成渲染后的markdown 格式。
- 如果需要编辑,就重复"ctrl+alt+M", 然后文本会取消渲染效果,然后继续编辑,重复快捷键去渲染。直接发布就可以了。
值得注意的是:
- 微信后台似乎不支持数学公式直接居中的表达,比如 $$ f(x)=x^2+1$$,而其他的一些编辑器支持。比如sublime text 2 + pandoc,或者markdown preview to html等。
- 所以可以直接在sublime text写好之后,用pandoc 转成pdf,或者直接用markdown preview "ctrl+alt+M" 去查看渲染之后的效果。可以支持修改文件,然后refresh html去查看。
- 写书也挺适合用markdown的,可以直接用pandoc转成许多其他格式,比如epub等。
- 还可以直接写latex文档,以及latex slides 等等。
How to set up pandoc shortcut in sublime text 2
install pandoc
Suppose you have installed the package control in ST2, then "Command+Shift+P" or "tools > Command Palette" will pop out the dialog.
type "install packages"
type "pandoc", choose the most general one just with this name.
create short cut
In a normal way, you can just open "command palette" by "cmd+shift+p", and then type "pandoc", then type "PDF" or any other format you like.
Creating shortcut can help you save the typing "pandoc":
- Preferences > Key binding users
- Add
{ "keys": ["ctrl+alt+p"], "command": "pandoc"}
in to the file.
For example, after adding, my files looks like:
[ { "keys": ["ctrl+alt+m"], "command": "markdown_preview", "args": {"target": "browser", "parser":"markdown"} } , { "keys": ["ctrl+alt+p"], "command": "pandoc"} ]
Then in your markdown file, you can just use shortcut "ctrl+alt+p" then type "pdf" you can immediately convert it to pdf.
How to use pandoc to convert markdown files to pdf with math formula?
Pandoc Plugin for Sublime Text 2
A Sublime Text plugin that uses Pandoc to convert text from one markup format into another. Pandoc can convert documents in markdown, reStructuredText, textile, HTML, DocBook, LaTeX, MediaWiki markup, OPML, or Haddock markup to XHTML, HTML5, HTML slide shows using Slidy, reveal.js, Slideous, S5, or DZSlides, Microsoft Word docx, OpenOffice/LibreOffice ODT, OpenDocument XML, EPUB version 2 or 3, FictionBook2, DocBook, GNU TexInfo, Groff man pages, Haddock markup, OPML, LaTeX, ConTeXt, LaTeX Beamer slides, PDF via LaTeX, Markdown, reStructuredText, AsciiDoc, MediaWiki markup, Emacs Org-Mode, Textile, or custom writers can be written in lua.
Installation
You need to install Pandoc, and this module:
- With the Package Control plugin.
With Git: Clone the repository in your Sublime Text "Packages" directory:
git clone https://github.com/tbfisher/sublimetext-Pandoc.git
The "Packages" directory is located at:
OS X:
~/Library/Application Support/Sublime Text 2/Packages/
Linux:
~/.config/sublime-text-2/Packages/
Windows:
%APPDATA%/Sublime Text 2/Packages/
Usage
The input format is specified by setting the syntax of the document.
Run Pandoc on the current document via the Command Palette (Command+Shift+P
on OS X, Control+Shift+P
on Linux/Windows) by selecting "Pandoc". You will be presented with output formats to choose from.
Configure
You can fully configure the available formats, and configure the Pandoc options to customize transformation, via the plugin settings file. Via the application menu, go to "Preferences" -> "Package Settings" -> "Pandoc".
how to use markdown in sublime text 2
Install package control:
https://packagecontrol.io/installation#st2
Install MarkdownEditing
http://lucifr.com/2012/07/12/markdownediting-for-sublime-text-2/
Markdown preview
Follow this link for markdown preview:
https://github.com/revolunet/sublimetext-markdown-preview
Using Package Control (Recommended)
For all Sublime Text 2/3 users we recommend install via Package Control.
Install Package Control if you haven't yet.
Use cmd+shift+P then Package Control: Install Package
Look for Markdown Preview and install it.
To preview :
optionally select some of your markdown for conversion
use cmd+shift+P then Markdown Preview to show the follow commands (you will be prompted to select which parser you prefer):
Markdown Preview: Preview in Browser
Markdown Preview: Export HTML in Sublime Text
Markdown Preview: Copy to Clipboard
Markdown Preview: Open Markdown Cheat sheet
or bind some key in your user key binding, using a line like this one: { "keys": ["alt+m"], "command": "markdown_preview", "args": {"target": "browser", "parser":"markdown"} }, for a specific parser and target or { "keys": ["alt+m"], "command": "markdown_preview_select", "args": {"target": "browser"} }, to bring up the quick panel to select enabled parsers for a given target.
once converted a first time, the output HTML will be updated on each file save (with LiveReload plugin)
Note:
If you want to set the keymap, just " preference> package setting> key bindings - user, and note to use the argument as above.
Then it is really convenient for you to use.
How to make sure "alt+z" is for typing Greek Omega in visual studio code
{ "key": "alt+z", "command": "-editor.action.toggleWordWrap",
"when": "editorTextFocus" }
Removing a specific key binding rule
You can write a key binding rule that targets the removal of a specific default key binding. With the keybindings.json
, it was always possible to redefine all the key bindings of VS Code, but it can be very difficult to make a small tweak, especially around overloaded keys, such as Tab or Escape. To remove a specific key binding, simply add a -
to the command
and the rule will be a removal rule.
Here is an example:
// In Default Keyboard Shortcuts ... { "key": "tab", "command": "tab", "when": ... }, { "key": "tab", "command": "editor.emmet.action.expandAbbreviation", "when": ... }, { "key": "tab", "command": "jumpToNextSnippetPlaceholder", "when": ... }, { "key": "tab", "command": "acceptQuickFixSuggestion", "when": ... }, { "key": "tab", "command": "acceptSelectedSuggestion", "when": ... }, ... // To remove the second rule, for example, add in keybindings.json: { "key": "tab", "command": "-editor.emmet.action.expandAbbreviation" }
How to make pycharm work with tensorflow
~/anaconda/bin/python
or /Users/jsmith/anaconda/bin/python
.How to install tensorflow when you get "Cannot remove entries from nonexistent file anaconda/lib/python2.7/site-packages/easy-install.pth"
sudo pip install --upgrade --ignore-installed $TF_BINARY_URL