- Download php-7.0.12-Win32-VC14-x64.zip
- Unzip to a path and add it to
PATH
env variable. - Download and install Visual C++ Redistributable for Visual Studio 2015
- In command line, verify by entering
php --version
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
title file |
In the following example:
i
is defined;j
is undefined but declared;k
is undeclared thus causing error;indx
is hoisted to the top of the function.
(function () {
var i = 1;
var j;
console.log("i : " + i); // i : 1
console.log("j : " + j); // j : undefined
//console.log("k : " + k);// ReferenceError: k is not defined
- drop the first bit
x >> 1;
- drop LSB (the least Significant bit)
x & (x - 1);
- extracts the lowest set bit of x (all other bits are cleared)
- Access modifier
protected internal
can block any third party code outside of the assembly from subclassing/overriding methods inside the assembly.
- equals
Object.ReferenceEquals()
can check reference equality when hashcode()/equals() have been overriden to compare object equality between two objects.
In java we can only check either object equality or reference equality, but not both.
- package/code organization
-
download latest source from https://sourceforge.net/projects/zsh/files/latest/download?source=files
-
extract
tar -xf zsh-x.y.tar.gz
-
configure
./configure --prefix=/usr --bindir=/bin
- nvm & node
git clone https://github.com/creationix/nvm.git ~/.nvm && cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`
nvm install v6 // assume this is done: source "$NVM_DIR/nvm.sh"
- rvm & ruby
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
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
#!/bin/bash | |
echo "removing evaluation key" | |
rm ~/.IntelliJIdea15/config/eval/idea15.evaluation.key | |
# for mac go to: /Users/username/Library/Preferences/IntelliJIdea2016.3/eval/idea163.evaluation.key | |
echo "resetting evalsprt in options.xml" | |
sed -i '/evlsprt/d' ~/.IntelliJIdea15/config/options/options.xml | |
# for mac go to: /Users/lzhoucs/Library/Preferences/IntelliJIdea2016.3/options/options.xml |