by davej · 13y ago · 0 comments
Some queries I tried (results were not perfect but pretty decent):
howdoi split string javascript
var split = 'john smith~123 Street~Apt 4~New York~NY~12345'.split('~');
var name = split[0];
var street = split[1];
etc...
howdoi get day from date javascript
var date = new Date();
var day = date.getDay();
howdoi iterate coffeescript
ages = []
ages["jim"] = 12
ages["john"] = 7
for k,v of ages
console.log k + " is " + v
howdoi get referrer url php
<?php
session_start();
if (!isset($_SESSION["origURL"]))
$_SESSION["origURL"] = $_SERVER["HTTP_REFERER"];
?>$ howdoi format dates django templates -l
http://stackoverflow.com/questions/7737146/django-template-d...
$ howdoi format dates django templates -p2 -l
http://stackoverflow.com/questions/1180372/how-to-format-dat...
$ howdoi format dates django templates -p3 -l
http://stackoverflow.com/questions/4087717/django-template-d...
Another improvement might be to list the second and third answers to the currently selected question.
What about making it even easier by just prompting as to whether it answered their question? (perhaps defaulting to 'y' so you can just hit enter if so)