PHP pergmatch

Feb 5, 2016

Use regular expression to get a substring from a content.

<?php

$preg='/SOME TEXT A(.*?)SOME TEXT B/is';
preg_match($preg,$snoopy->results,$match);
$result = $match[1];
php

Auto update copyright year

Feb 3, 2016

Just in case.

document.write(new Date().getFullYear());
javascript

Yeoman ThinkPHP generator

Sep 4, 2015

I’ve be planning to work on this project for a long time. Laravel has a feature php artisan which is very helpful for developers. I really want to add the “generator” feature for ThinkPHP. which is a very popular framework in China.

thinkphp
yeoman

How to build a Hackintosh

Aug 23, 2015

Resources you may need

Mac
Hackintosh

Free Programing Books

Jul 3, 2015
reads

one Key VPN

Jun 12, 2015
vpn

URL Scheme

May 3, 2015
url scheme

Git Notes

Apr 18, 2015
git

How to Setup L2TP VPN Server

Feb 27, 2015
VPN

jQuery like AngularJS $HTTP Functions

Jan 31, 2015
AngularJS

Start testing CKAN

Sep 17, 2014

First of all you’ll need to config everything right in your production.ini or development.ini of your CKAN site.

Follow the guide here Installing CKAN from Source and build Python virtual environment for you site.

Then you can get your hands dirty.

testing

How to Install CKAN on Ubuntu Server 12.04

Sep 14, 2014

This is the note I write here based on my own practices.

Guide

Chinese-Character-pattern

Aug 31, 2014

I found this useful php code snippet on the internet.
And post here for future use and remind.

php
snippet
preg

Semantic UI

Aug 29, 2014

Semantic is a UI Component library implemented using a set of specifications designed around natural language.

UI Framework
Translate Project

Begin to post on Github

Aug 28, 2014

This is the first post I write here. Congratulations for my jekyll Blog.

emotion