- development
- bug fixing and support
- fine tuning to make all the modules faster, less errors
- revamping – UI, architecture. come out with totally new design for a better system
$agestr = ($age < 16) ? 'child' : 'adult';
equivalent to
if ($age < 16) {
$agestr = 'child';
} else {
$agestr = 'adult';
}
Visual Editor
Snippets, tools, themes etc.
Others
Some useful tools on bootstraps
Offline tool/desktop app
Learning Git (over SVN).
Git vs SVN
Git Basic
https://www.atlassian.com/git/
Git with Netbeans
https://netbeans.org/kb/docs/ide/git.html
Free private source repo
https://bitbucket.org/ (limit to 5 users)
http://gitlab.org – unlimited private repos (limited to 10GB per project)
Free git client for windows and mac
Why use template library for CI
source: http://jeromejaglale.com/doc/php/codeigniter_template
or alternative download
Still looking for best and promising PHP framework. There are too many of PHP frameworks out there.
You can refer to this site of summary for some of the frameworks.
And you can take a look on poll result made by sitepoint on most popular PHP framework in 2014.
According to the site. Top 3 PHP frameworks are
Don’t know how true it is but it can be as indicator to start doing the research further to find out.
I’m looking for PHP GUI IDE and found the following. Need to study all the options.
Some on framework
This script to be used in google docs. It will come out numbering for heading like below
1
1.1
1.1.1
To run the script go to Tools > Script Editor…
Run the script and it will update the docs to reflect.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | function addHeaderNumbering () { var pars = DocumentApp.getActiveDocument().getBody().getParagraphs(); var counterHeader = [0, 0, 0, 0, 0, 0]; for(var i=0; i<pars.length; i++) { var par = pars[i]; var hdg = par.getHeading(); if (hdg == DocumentApp.ParagraphHeading.HEADING1) { _addNumberingForHeaderType(DocumentApp.ParagraphHeading.HEADING1, par, 0, counterHeader); } else if (hdg == DocumentApp.ParagraphHeading.HEADING2) { _addNumberingForHeaderType(DocumentApp.ParagraphHeading.HEADING2, par, 1, counterHeader); } else if (hdg == DocumentApp.ParagraphHeading.HEADING3) { _addNumberingForHeaderType(DocumentApp.ParagraphHeading.HEADING3, par, 2, counterHeader); } else if (hdg == DocumentApp.ParagraphHeading.HEADING4) { _addNumberingForHeaderType(DocumentApp.ParagraphHeading.HEADING4, par, 3, counterHeader); } else if (hdg == DocumentApp.ParagraphHeading.HEADING5) { _addNumberingForHeaderType(DocumentApp.ParagraphHeading.HEADING5, par, 4, counterHeader); } else if (hdg == DocumentApp.ParagraphHeading.HEADING6) { _addNumberingForHeaderType(DocumentApp.ParagraphHeading.HEADING6, par, 5, counterHeader); } } } function _addNumberingForHeaderType(headerType, paragraph, initIndex, counterHeader) { counterHeader[initIndex] = counterHeader[initIndex] + 1; var currCounter = _getCurrenNumbering(initIndex, counterHeader); for(var ii = initIndex + 1; ii < counterHeader.length; ii++) { counterHeader[ii] = 0; } var content = paragraph.getText(); var chunks = content.split('.\t') var result = 'ok' if(chunks.length > 1) { paragraph.setText(currCounter+'.\t'+chunks[1]); } else { paragraph.setText(currCounter+'.\t'+chunks[0]); } } function _getCurrenNumbering(initIndex, counterHeader) { var value = ''; for ( var i = 0; i <= initIndex; i++) { if (value) { value += '.'; } value += counterHeader[i]; } return value; } |
PHP class to detect mobile
http://mobiledetect.net
detecting browser type using javascript:
http://www.quirksmode.org/js/detect.html
1 2 3 4 5 6 7 | 1. <input type="text" placeholder="Your name here" /> (auto-focus, with place holder and required field) 2. Number: <input max="5" min="0" type="number" /> 3. Email: <input required="" type="email" /> - validation on email upon form submission 4. Range: <input max="10" min="0" step="1" type="range" value="5" /> 5. Date: <input type="date" /> (also available type datetime, time, week, month) 6. URL: <input type="url" /> (on phone - no space bar on keypad) 7. Color: <input type="color" /> |
Output
Validation only works on submission (click on submit button)
Use modernizr to detect and automatically correct non-supported browsers