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
<?php | |
/* | |
* uri param to this "web script" | |
* q = tag values split by a semicol | |
* minscore = min score (int) | |
* | |
* it's a lil bit nasty, but can modify so easy, the same to turn into a shell script | |
*/ | |
$url = "http://api.stackoverflow.com/1.0/questions?tagged=".urlencode($_GET["q"]); |
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
/** | |
* Disable sortable while target element fired | |
* - mouseover event AND | |
* - CTRL keydown | |
*/ | |
var jid_element = "#" + myElement; | |
var isCtrl = false; | |
var isOver = false; | |
$(jid_element).mouseover(function() {isOver = true}); |
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
<?php | |
$styler = true; | |
foreach($questions as $q) { | |
$color = ($styler) ? "#335533" : "#553355"; $styler = !$styler; | |
echo "<li style='background:$color;'>$q->text</li>"; | |
} |
NewerOlder