gitflow | git |
---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
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 | |
# Install dependencies | |
yum update -y | |
yum install -y gcc apr-devel apr-util-devel openssl-devel pcre-devel libxml2-devel libcurl-devel | |
mkdir setup && cd setup | |
wget http://mirrors.besplatnyeprogrammy.ru/apache//httpd/httpd-2.4.4.tar.gz | |
tar -xvf httpd-2.4.4.tar.gz |
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_include_path(implode(PATH_SEPARATOR, array( | |
'/Users/apple/www/zend_compact/library', //point to Zend lib directory | |
get_include_path() | |
))); | |
ini_set('display_errors',1); | |
ini_set('display_startup_errors',1); | |
error_reporting(-1); | |
require_once 'Zend/Loader/Autoloader.php'; |
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 | |
namespace Application\Entity; | |
/** | |
* Class Foo | |
* | |
* @package Application\Entity | |
*/ | |
class Foo | |
{ |
- ZF2 - Web Development with Zend Framework 2 - Concepts, Techniques and Practical Solutions by Michael Romer
- ZF2 - Getting Started with Zend Framework 2 - ZF2 Official documentation to start an ZF2 app from 0.
- ZF2 - Getting Started with Rest and Zend Framework 2
- ZF2 - Understanding the Zend Framework 2 event manager
- ZF2 - Using ZFTool for Basic Project Management
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
wget https://github.com/vslavik/poedit/releases/download/v1.8.6-oss/poedit-1.8.6.tar.gz | |
tar xf poedit-1.8.6.tar.gz | |
cd poedit-1.8.6 | |
apt-get install -y build-essential libwxgtk3.0-dev libicu-dev libgtkspell-dev libdb++-dev liblucene++-dev libboost-dev libboost-regex-dev libboost-system-dev libwxgtk3.0-dev | |
sed -i 's/Version: 3.0.3.4/Version: 3.0.5/' /usr/lib/x86_64-linux-gnu/pkgconfig/liblucene++.pc | |
./configure | |
make | |
make install |
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
require "iconv" | |
encoding = "SHIFT-JIS" | |
# Open a file for writing in the Shift-JIS format | |
File.open("output.csv", "w:#{encoding}") do |io| | |
# Read the CSV file, and convert CRs to CRLFs. | |
csv = File.open("input.csv").read.gsub("\r", "\r\n") | |
# Convert the CSV to the correct encoding | |
io.write Iconv.iconv(encoding, "UTF-8", csv).join | |
end |
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
# good git book | |
http://git-scm.com/book | |
# Discard uncommitted changes in a specific file | |
git checkout file_name | |
# Clear everything not in repo | |
git checkout -- . | |
# A way to quickly move to the previous commit in a git branch. This also way for "deleting" last commit. |
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
Regex for matching ALL Japanese common & uncommon Kanji (4e00 – 9fcf) ~ The Big Kahuna! | |
([一-龯]) | |
Regex for matching Hirgana or Katakana | |
([ぁ-んァ-ン]) | |
Regex for matching Non-Hirgana or Non-Katakana | |
([^ぁ-んァ-ン]) | |
Regex for matching Hirgana or Katakana or basic punctuation (、。’) |
OlderNewer