Skip to content

Instantly share code, notes, and snippets.

@Pezmc
Last active August 29, 2015 14:08

Revisions

  1. Pezmc revised this gist Oct 29, 2014. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions Speedsums
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    setInterval(cheatInsteadOfPlayingTheGameProperlyAndImprovingYourMentalArithmatic, 250);

    var cheatInsteadOfPlayingTheGameProperlyAndImprovingYourMentalArithmatic = function() {
    var q = $("#question").text();
    q = q.substr(0, q.length - 2).replace('÷', '/').replace('x', '*');
    $("#answer").val(eval(q)).keydown().keyup().keypress();
    }
    }

    setInterval(cheatInsteadOfPlayingTheGameProperlyAndImprovingYourMentalArithmatic, 250);
  2. Pezmc revised this gist Oct 29, 2014. No changes.
  3. Pezmc revised this gist Oct 29, 2014. No changes.
  4. Pezmc created this gist Oct 29, 2014.
    7 changes: 7 additions & 0 deletions Speedsums
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    setInterval(cheatInsteadOfPlayingTheGameProperlyAndImprovingYourMentalArithmatic, 250);

    var cheatInsteadOfPlayingTheGameProperlyAndImprovingYourMentalArithmatic = function() {
    var q = $("#question").text();
    q = q.substr(0, q.length - 2).replace('÷', '/').replace('x', '*');
    $("#answer").val(eval(q)).keydown().keyup().keypress();
    }