to start it
sudo apachectl start
to stop it
sudo apachectl stop
to restart it
| [].forEach.call(document.querySelectorAll('form'), function (input) { | |
| var table = []; | |
| console.group('HTMLForm "' + input.name + '": ' + input.action); | |
| console.log('Element: ', input, '\nName: ' + | |
| input.name + '\nMethod: ' + input.method.toUpperCase() + | |
| '\nAction: ' + input.action || 'null'); | |
| ['input', 'textarea', 'select'].forEach(function (control) { | |
| [].forEach.call(input.querySelectorAll(control), function (node) { |
| <?php | |
| /** | |
| * DuplicateFilter prevents Yii from exposing URLs starting with /index.php/ when showScriptName is false. Such | |
| * URLs are automatically redirected to proper ones. | |
| * | |
| * To use add the following to your controller: | |
| * | |
| * ```php | |
| * public function filters() { | |
| * return array( |
| <script type="text/javascript" charset="utf-8"> | |
| //Capitalize first letter while typing in side of input field | |
| jQuery(document).ready(function($) { | |
| $('#selector').keyup(function(event) { | |
| var textBox = event.target; | |
| var start = textBox.selectionStart; | |
| var end = textBox.selectionEnd; | |
| textBox.value = textBox.value.charAt(0).toUpperCase() + textBox.value.slice(1); | |
| textBox.setSelectionRange(start, end); | |
| }); |
| Choose a ticket class: <select id="tickets"></select> | |
| <p id="ticketOutput"></p> | |
| <script id="ticketTemplate" type="text/x-jquery-tmpl"> | |
| {{if chosenTicket}} | |
| You have chosen <b>${ chosenTicket().name }</b> | |
| ($${ chosenTicket().price }) | |
| <button data-bind="click: resetTicket">Clear</button> | |
| {{/if}} |