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
| function with_jquery(callback) { | |
| var script = document.createElement("script"); | |
| script.type = "text/javascript"; | |
| script.textContent = "(" + callback.toString() + ")(jQuery)"; | |
| document.body.appendChild(script); | |
| } | |
| with_jquery(function ($) { | |
| $(function () { |
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
| using System; | |
| using Stacky; | |
| namespace SOAPIPlayground { | |
| class Program { | |
| static void Main(string[] args) { | |
| var siteClient = new StackyClient("1.0", "", Sites.StackOverflow, new UrlClient(), new JsonProtocol()); | |
| var userID = 21441; | |
| var answers = siteClient.GetUsersAnswers(userID, QuestionsByUserSort.Activity, SortDirection.Descending, 1, 100, false, true); | |
| int totalAnswers = answers.TotalItems; |