###JavaUnit.vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! TestFunction() | |
let lnum = line(".") | |
let col = col(".") | |
let func = getline(search("\\h\\+\\s\\+\\h\\+\\s*(.*)", 'bW')) | |
let func = substitute(func, '\v(public|protected|private|function)', '', 'g') | |
let func = substitute(func, '()', '', 'g') | |
let func = substitute(func, ' ', '', 'g') | |
let cmd = "phpunit " . expand('%:p') ." --filter " . func | |
let output = systemlist(cmd) | |
echomsg cmd . join(output) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
health#deoplete#check | |
================================================================================ | |
## deoplete.nvim | |
- SUCCESS: has("nvim") was successful | |
- SUCCESS: has("python3") was successful | |
- INFO: If you're still having problems, ' . 'try the following commands: | |
$ export NVIM_PYTHON_LOG_FILE=/tmp/log | |
$ export NVIM_PYTHON_LOG_LEVEL=DEBUG | |
$ nvim |
It's a common confusion about terminal colours... Actually we have this:
- plain ascii
- ansi escape codes (16 colour codes with bold/italic and background)
- 256 colour palette (216 colours + 16 ansi + 24 gray) (colors are 24bit)
- 24bit true colour ("888" colours (aka 16 milion))
printf "\x1b[${bg};2;${red};${green};${blue}m\n"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(function(ns){ | |
/** | |
* mb_strwidth | |
* @param String | |
* @return int | |
* @see http://php.net/manual/ja/function.mb-strwidth.php | |
*/ | |
var mb_strwidth = function(str){ | |
var i=0,l=str.length,c='',length=0; | |
for(;i<l;i++){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ncmpc configuration file | |
# vim: filetype=config | |
enable-colors = yes | |
auto-center = yes | |
set-xterm-title = yes | |
color background = none | |
color title = brightwhite | |
color title-bold = green,bold |
Here's an example of how to embed a Gist on GitHub Pages:
{% gist 5555251 %}
All you need to do is copy and paste the Gist's ID from the URL (here 5555251
), and add it to a gist
tag surrounded by {%
and %}
.
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
OlderNewer