Latest Blogs

Vim scripting cheatsheet

Start hacking You can either put this in a script (script.vim) and run it (:source script.vim), or you can type the commands individually in normal mode as :let and :echo. Learn by example Here’s another example with functions, variables and mapping. Variables Defining Variable prefixes The s: prefix is also available in function names. See :help local-variables Other prefixes Vim options Prefix Vim options with & […]

Capybara cheatsheet

Navigating Clicking links and buttons Interacting with forms Limiting Querying Predicates Positive Negative has_content? has_no_content? has_css? (selector) has_no_css? has_xpath? (path) has_no_xpath? has_link? (selector) has_no_link? has_button? (selector) has_no_button? has_field? (selector) has_no_field? has_checked_field? (selector) has_unchecked_field? has_table? (selector) has_no_table? has_select? (selector) has_no_select? In Rspec, these also map to matchers like page.should have_content. Selectors The selector arguments can be text, CSS selector, or XPath expression. RSpec assertions In RSpec, you […]

Vimdiff cheatsheet

Vim is a very efficient text editor. This reference was made for Vim 8.0. Navigating ]c Next difference [c Previous difference Editing do Diff Obtain!Pull the changes to the current file. dp Diff Put!Push the changes to the other file. :diffupdate Re-scan the files for differences. ZQ Quit without checking changes Folds zo / zO Open zc / zC Close […]

Kotlin cheatsheet

Kotlin is a statically typed programming language for modern multiplatform applications. Mutability Strings Numbers Booleans Static Fields Null Safety Nullable properties Checking for null Safe Operator Elvis Operator Safe Casts Collections Creation Accessing Maps Mutability Iterating Filtering & Searching Note: it is the implicit name for a single parameter. #Functions Parameters & Return Types Higher Order Functions Extension Functions […]

MySQL cheatsheet

Create / Delete Database Backup Database to SQL File Restore from backup SQL File Repair Tables After Unclean Shutdown Browsing Select Select – Join Conditions Insert Delete Update Create / Delete / Modify Table Create Drop Alter Change field order Keys Users and Privileges Host ‘%’ indicates any host. Main Data Types ⚠ INT(2) = […]

scp cheatsheet

Usage Conditions Commands

Find cheatsheet

Usage Conditions Access time conditions These conditions only work in MacOS and BSD-like systems (no GNU/Linux support). Condition flow Actions Examples

regexp cheatsheet

Character classes . Any character, except newline \w Word \d Digit \s Whitespace \W Not word \D Not digit \S Not whitespace [abc] Any of a, b, or c [a-e] Characters between a and e [1-9] Digit between 1 and 9 [^abc] Any character except a, b or c Anchors ^abc Start with abc abc$ End with abc Escaped characters \. \* \\ Escape special character used […]

How to Build a C++ Binary search tree?

A binary tree is a hierarchical data structure whose behavior is similar to a tree, as it contains root and leaves (a node that has no child). The root of a binary tree is the topmost node. Each node can have at most two children, which are referred to as the left child and the right child. A node that has at least one […]

Learn Python – Free Interactive Python Tutorial

Welcome free interactive Python tutorial for people who want to learn Python, fast. Welcome to the thesoft interactive Python tutorial. Whether you are an experienced programmer or not, this website is intended for everyone who wishes to learn the Python programming language. You are welcome to join our group on Facebook for questions, discussions and updates. Just […]