Quick and easy way to do simple validations in PHP.
DefaultInput is a jQuery plugin that handles the display of default text in input fields. The benefit to this script is that you just have to put the class jsDefaultInput on the form element you want to be affected. Just make sure you set the value of the input element.
Create custom checkboxes by simply defining css styles. This moves all of the presentation to css instead of relying on the jquery plugin to write html.
AjaxPages allows you to have urls that look like: example.com/#/music/artist/
By using this approach, you will no longer have full page refreshes. If implemented correctly, your site may appear to much more responsive.
I’ve had a few occasions when something would happen and git would refuse to let me change a branch, reset or pull. I was basically stuck. One option would have been to wipe my local git repo and re-pull from the remote, but that’s a little extreme.
I found out a way that is relatively harmless. It’s worked every time for me when I absolutely need my master reset. Warning, make sure you have a backup of your stuff before running this command.
$ git reset HEAD^ --hard
$ git pull
If everything worked as planned, you should have exactly what’s on origin/master. Now you can manually re-add your changes one by one to find out what caused git to mess up.
A few things I think cause this are people working on a project with you force pushing to remote or using different line endings.