Skip to content

Instantly share code, notes, and snippets.

View yigitozkavci's full-sized avatar
🤠

Yiğit Özkavcı yigitozkavci

🤠
  • Google
  • London, UK
View GitHub Profile
@TOMOAKI12345
TOMOAKI12345 / bitcoin_spv_wallet_overview.md
Created August 31, 2015 11:37
Bitcoin SPV Wallet Flow Overview

@lestoni
lestoni / gist:8c74da455cce3d36eb68
Last active April 12, 2024 18:15
vim folding cheatsheet

via (https://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun)

  • zf#j creates a fold from the cursor down # lines.
  • zf/string creates a fold from the cursor to string .
  • zj moves the cursor to the next fold.
  • zk moves the cursor to the previous fold.
  • zo opens a fold at the cursor.
  • zO opens all folds at the cursor.
  • zm increases the foldlevel by one.
  • zM closes all open folds.
@dant3
dant3 / fun.cpp
Last active March 8, 2024 06:15
Some fun with C++ 11 - fold, map, reduce, mkString for std::vector<T>
#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;
@eccyan
eccyan / brainfuck.rb
Created February 8, 2012 16:44
Brainf*ck in Ruby
# -*- 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|