- why
{}
initilization is prefered? - When use
explicit
constructor? - should i avoid raw pointers?
- yes
- http://articles.emptycrate.com/2009/01/02/nobody_understands_c_part_6_are_you_still_using_pointers.html
This file contains 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
function convertToPersian(str) { | |
var newStr = ''; | |
for (var i = 0; i < str.length; i++) | |
{ | |
var c = str.charCodeAt(i); | |
if (c >= 48 && c <= 57) { | |
c += 1728; | |
} | |
newStr += String.fromCharCode(c); | |
} |
This file contains 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
// Iranian keyboard layout | |
//////////////////////////////////////// | |
// Persian layout, | |
// based on | |
// Information Technology – Layout of Persian Letters and Symbols on Computer Keyboards | |
// ISIRI 9147 – 1st Edition | |
// Institute of Standards and Industrial Research of Iran | |
// http://www.isiri.org/UserStd/DownloadStd.aspx?id=9147 | |
// http://behnam.esfahbod.info/standards/isiri-keyboard-9147.pdf |
This file contains 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
#!/usr/bin/env bash | |
sudo chown nginx:nginx -R $1 | |
cd $1 | |
# File permissions, recursive | |
find . -type f -exec chmod 0644 {} \; | |
# Dir permissions, recursive | |
find . -type d -exec chmod 0755 {} \; |
This file contains 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
set nocompatible | |
set backspace=2 | |
filetype off | |
execute pathogen#infect() | |
filetype plugin indent on | |
syntax on | |
set background=dark |
This file contains 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
#!/usr/bin/env bash | |
# if [[ $(id -u) -ne 0 ]] ; then sudo -s ; fi | |
CONFIG="$HOME/proximac.json" | |
if [ ! -z $1 ]; then | |
CONFIG="$1" | |
fi |
I hereby claim:
- I am sijad on github.
- I am sijad (https://keybase.io/sijad) on keybase.
- I have a public key whose fingerprint is 7311 4431 117B 6A51 4282 414C E538 A6D3 41A6 177D
To claim this, I am signing this object:
NewerOlder