normal paragraph is like this.
unordered list:
| { | |
| // "cmd": ["python", "-u", "$file"], | |
| "shell": true, | |
| "cmd": ["source ~/.bashrc && workon name_of_virtualenv && python -u \"$file\""], | |
| "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", | |
| "selector": "source.python" | |
| } |
| javascript:(function(){ | |
| /* get the url */ | |
| var url = location.href; | |
| /* get the page title */ | |
| var title = document.title; | |
| /* link_tag */ | |
| var link_tag = '<a href="' + url + '">' + title + '</a>'; |
| // function to check 2 arrays have any common element or not | |
| // @return | |
| // matched : true/false | |
| // @args | |
| // a1 :: array | |
| // a2 :: array | |
| function commonElementExist(a1, a2){ | |
| var matched = false; | |
| a1.forEach(function(e1){ | |
| if(a2.indexOf(e1) != -1){ |
| # coding: utf-8 | |
| """ | |
| A Python function "what" after Ruby gem "what_methods". | |
| "what" function checks all the method of an object | |
| and returns the method names which match the expected result. | |
| Last updated: 2013/12/23 | |
| """ |
| { | |
| // "cmd": ["php", "$file"], | |
| // Enable config in ~/.bashrc | |
| "shell": true, | |
| "cmd": ["source ~/.bashrc && php $file"], | |
| "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", | |
| "selector": "source.php" | |
| } |
| /** | |
| * get all users with specific role(s) | |
| * | |
| * @param int|int[] $role_id | |
| * role id for role | |
| * | |
| * @return object[] | |
| * user objects with given role(s) | |
| */ | |
| function user_load_multiple_by_role($role_id) { |
| # coding: utf-8 | |
| """ | |
| A phpmd linter for Sublime Text 2. | |
| Since [SublimeLinter-phpmd](https://github.com/SublimeLinter/SublimeLinter-phpmd) | |
| is made only for ST3 and cannot be used for ST2 and I maded this one. | |
| Installation: |