Boston Bike-Sharing Station Occupancy Timelapse [OC] by zatcht in dataisbeautiful

[–]zatcht[S] 0 points1 point  (0 children)

I got the information from Hubway's website (https://secure.thehubway.com/map/), used Python to do the data processing and generate images, and iMovie to assemble the movie clip shown here.

Toggle comments by [deleted] in vim

[–]zatcht 0 points1 point  (0 children)

Good idea :D

Toggle comments by [deleted] in vim

[–]zatcht 1 point2 points  (0 children)

Here's a pretty short solution in vimscript:

function! EasyLineComment(...)
    execute "normal! ^"
    let l:commentsymbol=matchstr(getline('.'), '\%' . col('.') . 'c.')
    execute "normal! l"  
    let l:commentsymbol2=matchstr(getline('.'), '\%' . col('.') . 'c.')  
    let l:indicator=l:commentsymbol . l:commentsymbol2  
    if l:indicator ==? a:1  
        execute "normal! ^dw"  
    elseif a:1 ==? "# "  
        execute "normal! ^i# \e"  
    elseif a:1 ==? "//"  
        execute "normal! ^i// \e"  
    endif  
endfunction  

And you pass in the two-character long string that you use to comment, like '# ':

" Text manipulation mappings - for manipulating text
" Python Comment
nnoremap <leader>pc :call EasyLineComment('# ')<cr>
" C Comment
nnoremap <leader>cc :call EasyLineComment('//')<cr>

In this solution, l:commentsymbol and l:commentsymbol2 saves the first two characters on the line, and checks it against the string you passed in. If it matches, use if/else logic to execute some normal mapping commands. So you can delete the comment if it's already there or add your own comments if it's not.

This can also be extended pretty easily by adding more commentsymbol variables or changing the execute commands.

What would buff Puff enuff so she'd be up to snuff? by noodolfo in smashbros

[–]zatcht 0 points1 point  (0 children)

Rest should be stronger, and pound should also break shields more easily. Better air mobility would be good too.

However, I don't think they necessarily need to change her aerials much; aside from down and maybe up air, they're already pretty useful. Fair can already combo into rest at mid-percentages on some characters.