via (https://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun)
zf#jcreates a fold from the cursor down # lines.zf/stringcreates a fold from the cursor to string .zjmoves the cursor to the next fold.zkmoves the cursor to the previous fold.zoopens a fold at the cursor.zOopens all folds at the cursor.zmincreases the foldlevel by one.zMcloses all open folds.
This file contains hidden or 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
| #include <iostream> | |
| #include <sstream> | |
| #include <functional> | |
| #include <vector> | |
| template <typename T, typename U> | |
| U foldLeft(const std::vector<T>& data, | |
| const U& initialValue, | |
| const std::function<U(U,T)>& foldFn) { | |
| typedef typename std::vector<T>::const_iterator Iterator; |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| class String | |
| def fuck(output=STDOUT, input=STDIN) | |
| identity = lambda do |value| | |
| return value | |
| end | |
| increment = lambda do |value| | |
| return value+1 | |
| end | |
| decrement = lambda do |value| |
