<commit_before>dindinw.io
==========

The personal blog site hosted by github page.

迭代1
-----

## feature

 - Support blog function.
    - 使用Md撰写
    - syntax highligh
    - work with img and link (even embeded video link)

 - Generated static site by script.
    - use node.js javacript 

 - Design site 

```
dindinw.io
└─site
    ├─blog
    ├─css
    ├─doc
    └─js
```

```
dindinw.io/
`-- site
    |-- blog
    |-- css
    |-- doc
    `-- js
```

Tasks
-----

### Create Site structure

```bash
for d in blog doc js css ; do p=site/$d ; mkdir -p $p ; touch $p/.gitignore ; done
```
### Setup Sublime Text 

#### Active Vim mode

1. for sublime 2, [vintage][v1] is good enough.

presss command-P Prefersu, add fellowing settings

```
{
    //enable "Vintage"
    "ignored_packages": []
}
```
2. for sublime 3 , use [vintagous][v2] instead.
Download from [here][v2_d], copy into "/Users/{your_name}/Library/Application Support/Sublime Text 3/Installed Packages/" folder
BTW, although the office doc says vintagous need to ensure Vintage is in the ignored_packages, wried the two can work together in my test.

3. In Mac, need to disable repeat key context menu, see [here][key_repeat] for more details

```
defaults write com.sublimetext.3 ApplePressAndHoldEnabled -bool false
```

[v1]:http://www.sublimetext.com/docs/2/vintage.html
[v2]:https://github.com/guillermooo/Vintageous
[v2_d]:https://bitbucket.org/guillermooo/vintageous/downloads/Vintageous.sublime-package
[key_repeat]:https://gist.github.com/kconragan/2510186

#### Install Package Installer

Download from [wbond site][pkgctr]

[pkgctr]:https://sublime.wbond.net/installation

#### Install Md extend syntax highlight

- Install : `CMD-P` -> enter `pkgin` -> enter `markdownextend`

- Make it default : `View -> Syntax -> Open all with current extension as... -> Markdown Extended`

#### Install Md proview 

- Install : `CMD-P` -> enter `pkgin` -> enter `markdownpreview`
- Usage : `Ctrl-P` (Windows/Linux) or `CMD-P` (Mac) -> enter `prewb`

#### Console 

``Ctrl-` `` will open a python console (with embeded inside sublime).

#### Terminal

Sometimes, you may want a os terminal inside your working folder, here a plugin called [sublime_terminal][s_t] is.

- Install : `Ctrl-P` -> `pkgin` -> `terminal`
- Usage : 
    - `Ctrl-T` open under your file
    - `Ctrl-Alt-T` open under your project 

[s_t]: https://github.com/wbond/sublime_terminal


#### Git plugin

- Install : `Ctrl-P` -> 'pkgin' -> `git` 
- Usage : 
    - `Ctrl-P` -> `gits` : list git status 

Very useful, see the [wiki][sublime-git] for more details.

[sublime-git]:https://github.com/kemayo/sublime-text-git/wiki

#### SublimeREPL

- Install : `CMD-P` -> `pkgctrlin` -> 'sublimerepl' (need to restart )

repl:shell can open a os shell  

[repl]: https://github.com/wuub/SublimeREPL/

<commit_msg>add plugin Advanced new file<commit_after>dindinw.io
==========

The personal blog site hosted by github page.

迭代1
-----

## feature

 - Support blog function.
    - 使用Md撰写
    - syntax highligh
    - work with img and link (even embeded video link)

 - Generated static site by script.
    - use node.js javacript 

 - Design site 

```
dindinw.io
└─site
    ├─blog
    ├─css
    ├─doc
    └─js
```

```
dindinw.io/
`-- site
    |-- blog
    |-- css
    |-- doc
    `-- js
```

Tasks
-----

### Create Site structure

```bash
for d in blog doc js css ; do p=site/$d ; mkdir -p $p ; touch $p/.gitignore ; done
```
### Setup Sublime Text 

#### Active Vim mode

1. for sublime 2, [vintage][v1] is good enough.

presss command-P Prefersu, add fellowing settings

```
{
    //enable "Vintage"
    "ignored_packages": []
}
```
2. for sublime 3 , use [vintagous][v2] instead.
Download from [here][v2_d], copy into "/Users/{your_name}/Library/Application Support/Sublime Text 3/Installed Packages/" folder
BTW, although the office doc says vintagous need to ensure Vintage is in the ignored_packages, wried the two can work together in my test.

3. In Mac, need to disable repeat key context menu, see [here][key_repeat] for more details

```
defaults write com.sublimetext.3 ApplePressAndHoldEnabled -bool false
```

[v1]:http://www.sublimetext.com/docs/2/vintage.html
[v2]:https://github.com/guillermooo/Vintageous
[v2_d]:https://bitbucket.org/guillermooo/vintageous/downloads/Vintageous.sublime-package
[key_repeat]:https://gist.github.com/kconragan/2510186

#### Install Package Installer

Download from [wbond site][pkgctr]

[pkgctr]:https://sublime.wbond.net/installation

#### Install Md extend syntax highlight

- Install : `CMD-P` -> enter `pkgin` -> enter `markdownextend`

- Make it default : `View -> Syntax -> Open all with current extension as... -> Markdown Extended`

#### Install Md proview 

- Install : `CMD-P` -> enter `pkgin` -> enter `markdownpreview`
- Usage : `Ctrl-P` (Windows/Linux) or `CMD-P` (Mac) -> enter `prewb`

#### Console 

``Ctrl-` `` will open a python console (with embeded inside sublime).

#### Terminal

Sometimes, you may want a os terminal inside your working folder, here a plugin called [sublime_terminal][s_t] is.

- Install : `Ctrl-P` -> `pkgin` -> `terminal`
- Usage : 
    - `Ctrl-T` open under your file
    - `Ctrl-Alt-T` open under your project 

[s_t]: https://github.com/wbond/sublime_terminal


#### Git plugin

- Install : `Ctrl-P` -> 'pkgin' -> `git` 
- Usage : 
    - `Ctrl-P` -> `gits` : list git status 

Very useful, see the [wiki][sublime-git] for more details.

[sublime-git]:https://github.com/kemayo/sublime-text-git/wiki

#### Advanced New File

A plugin to create file folder also 
See [here][sublime-anf] for details

- Install : `Ctrl-P` -> 'pkgin' -> 'AdvancedNewFile' 
- Usage : `Ctrl-alt-N` 

[sublime-anf]: https://github.com/skuroda/Sublime-AdvancedNewFile

#### SublimeREPL

- Install : `CMD-P` -> `pkgctrlin` -> 'sublimerepl' (need to restart )

repl:shell can open a os shell  

[repl]: https://github.com/wuub/SublimeREPL/


{'fraction_non_alphanumeric': 0.1531592249368155, 'fraction_numerical': 0.007413647851727043, 'mean_word_length': 3.3455344070278183, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 35, 'https://': 15, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2575070', 'n_tokens_mistral': 2191, 'n_tokens_neox': 2095, 'n_words': 606}