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
<script type="text/javascript"> | |
[% footer_js %] | |
PF.Admin.M.activate(); | |
PF.Admin.M.init(cfg); | |
</script> |
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
#!/usr/bin/perl | |
use warnings; | |
use strict; | |
package MyBot; | |
use base qw( Bot::BasicBot ); | |
# the 'said' callback gets called when someone says something in | |
# earshot of the bot. | |
sub said { |
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
return (isNaN(ai) || isNaN(bi)) ? | |
(a > b) ? 1 | |
: (a < b) ? -1 | |
: 0 // not floats | |
: (ai > bi) ? 1 | |
: (ai < bi) ? -1 | |
: 0; |