Swift Basics
2017-05-29

> Constants and Variables

If a stored value in your code is not going to change, always declare it as a constant with the let keyword. Use variables only for storing values that need to be able to change.

let maximumNumberOfLoginAttempts = 10
var currentLoginAttempt = 0
C and C++: you do not know
2017-05-29

Some basic knowledge of C and C++ in the book[1]. Well, I pick the title “you don’t know”. Precisely, it’s something I don’t know while you may already knew years ago. But it just sounds so stupid to named after “Java: I don’t know”…

> Pointers an References

  1. A pointer holds the address of a variable and can be used to perform any operation that could be directly done on the variable, such as accessing and modifying it.
  2. Note that the size of a pointer varies depending on the architecture: 32 bits on a 32-bit machine and 64 bits on a 64-bit machine.
  3. A reference is another name (an alias) for a pre-existing object and it does not have memory of its own. Unlike pointers, references cannot be null and cannot be reassigned to another piece of memory.
Git Commands
2017-05-25
git
Org to Wordpress with org2blog
2017-05-25

> Publish with Org2Blog and Solution to non-ascii when posting to Wordpress

> Install packages

Install org2blog. I put the package in my own emacs configuration folder. Path to org2blog: ~/.spacemacs.d/layers/org2blog/.

org2blog depends on

Spacemacs keybindings
2017-05-25

This is my Spacemacs personal config on Github: https://github.com/ztlevi/spacemacs-config

> Common Stuffs

In key bindings, M stands for Alt key (option key for mac), s for Command key, C for Control key, SPC for Space key.