This file contains hidden or 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
CREATE TABLE `test` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`first` varchar(64) NOT NULL, | |
`last` varchar(64) NOT NULL, | |
`info` text NOT NULL, | |
`updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | |
PRIMARY KEY (`id`) | |
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 |
This file contains hidden or 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
var data = { | |
act: 'list', | |
category: 'jazz' | |
}; | |
$.post('/ajax.php', data, function(result) { | |
if (result.success) { | |
// do things with result.data | |
}else{ | |
alert('Error: ' + result.message); |
This file contains hidden or 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
alias gl='git log --graph --pretty=format:'\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-commit' |
This file contains hidden or 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
What I want is for the first to be turned into the second.. | |
/widget => /widget/index.php | |
/widget/ => /widget/index.php | |
/widget?act=list => /widget/index.php?act=list | |
/widget/?act=list => /widget/index.php?act=list | |
/widget/list => /widget/index.php?act=list | |
/widget/v2/?act=list => /widget/v2.php?act=list | |
/widget/v2/list => /widget/v2.php?act=list |
This file contains hidden or 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
Humpty-Dumpty sat on a wall.. |
NewerOlder