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
<?php | |
if ( ! function_exists( 'd' ) ) { | |
// dBug wrapper ( see:http://dbug.ospinto.com) | |
function d( $data ) | |
{ | |
//コマンドラインからの実行の場合 | |
if(!isset($_SERVER["REMOTE_ADDR"])){ | |
print_r($data); | |
}else{ | |
ob_start(); |
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
[ | |
{ "keys": ["ctrl+shift+r"], "command": "reindent" }, | |
{ "keys": ["f10"], "command": "focus_side_bar" },// | |
{ "keys": ["f1"], "command": "insert_snippet", "args": { "name": "Packages/XML/long-tag.sublime-snippet" } }, | |
{ "keys": ["f2"], "command": "insert_snippet", "args": {"contents": "<?php ${0:$SELECTION} ?>"}}, | |
{ "keys": ["shift+f2"], "command": "insert_snippet", "args": {"contents": "<?php echo ${0:$SELECTION}; ?>"}}, | |
{ "keys": ["ctrl+f2"], "command": "insert_snippet", "args": {"contents": "<?= ${0:$SELECTION}; ?>"}}, | |
{ "keys": ["f3"], "command": "insert_snippet", "args": {"contents": "?>${0:$SELECTION}<?php"}}, | |
{ "keys": ["f8"], "command": "insert_snippet", "args": {"contents": "if(\\$_COOKIE[\"test_mod\"]){}"}}, | |
{ "keys": ["shift+f4"], "command": "insert_snippet", "args": {"contents": " // Đánh dấu phần này "}}, |
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
MỘT SỐ CÁCH ĐẶT TÊN ID VÀ CLASS | |
Cách đặt tên: | |
_ Tên không được quá dài. <= cực kỳ quan trọng. | |
_ Hạn chế dịch (Chỉ dịch khi chưa biết đó thuộc khu vực tên nào mà thôi). | |
_ Thường thì chỉ cần xác định rõ khu vực, ý muốn của designer là ta có thể đặt được tên cho phù hợp. | |
VD: nhìn vào biết khu vực mà design muốn đưa thông tin giới thiệu thì ta nên đặt các tên sau: introduce, info, information. Nếu giới thiệu về cty thì cần: aboutUs, company, … | |
_ Việc đặt tên này chẳng những có ý nghĩa cho từng khu vực, mà nó còn giúp cho người khác khi nhìn vào code sẽ dễ dàng hình dung đó là gì. | |
Common: | |
#header |
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
h1{ | |
text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 3px 3px 5px #7b7b7b | |
} |
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
Ctrl+F2: Mở cửa sổ xem | |
Ctrl+F5: Mở cửa sổ kiểu văn bản và đồ thị (Graphic và text) | |
Ctrl+F7: Mở cửa sổ gán hình | |
Ctrl+F8: Biến văn bản nghệ thuật thành văn bản đoạn | |
Ctrl+F9: Mở cửa sổ tạo viền | |
Ctrl+F11: Mở cửa sổ ký hiệu | |
Ctrl+F12: Mở kiển tra chính tả | |
Ctrl+PgDn: Đặt đối tượng xuống 1 lớp | |
Ctrl+PgUp: Đặt đối tượng chọn lên một lớp | |
Ctrl+Delete: Xóa từ bên phải văn bản |
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
Press Windows key + X from keyboard. | |
Select Command Prompt (Admin). | |
Copt paste this command and Hit Enter: | |
cd\Windows\System32\spool | |
Copy paste this command and Hit Enter: | |
cacls.exe PRINTERS /E /G administrator:C | |
Reboot your PC. |
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
UPDATE `member` | |
SET `member_email` = CONCAT(LEFT(`member_email`,INSTR(member_email,'@')),'cybridge.jp'); | |
WHERE member_email LIKE '%@cybridge.jp%'; |
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
sudo add-apt-repository ppa:ondrej/php -y | |
sudo apt-get update -y | |
sudo apt-get install php7.0-curl php7.0-cli php7.0-dev php7.0-gd php7.0-intl php7.0-mcrypt php7.0-json php7.0-mysql php7.0-opcache php7.0-bcmath php7.0-mbstring php7.0-soap php7.0-xml php7.0-zip -y | |
sudo mv /etc/apache2/envvars /etc/apache2/envvars.bak | |
sudo apt-get remove libapache2-mod-php5 -y | |
sudo apt-get install libapache2-mod-php7.0 -y | |
sudo cp /etc/apache2/envvars.bak /etc/apache2/envvars |
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
Bước 1: Install Remi Repository and EPEL Repository on your server | |
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm | |
rpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm | |
Bước 2: config | |
yum install yum-utils | |
yum-config-manager --enable remi-php73 | |
Bước 3: |
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
On server | |
Install rsub: | |
# wget -O /usr/local/bin/rsub \https://raw.github.com/aurora/rmate/master/rmate | |
# chmod a+x /usr/local/bin/rsub | |
On local | |
Install rsub Sublime3 package: | |
On Sublime Text 3, open Package Manager (Ctrl-Shift-P on Linux/Win, Cmd-Shift-P on Mac, Install Package), and search for rsub and install it |
OlderNewer