Skip to content

Instantly share code, notes, and snippets.

@mokevnin
Created November 3, 2015 21:21
Show Gist options
  • Save mokevnin/6199f2bc12b1b2edc9fd to your computer and use it in GitHub Desktop.
Save mokevnin/6199f2bc12b1b2edc9fd to your computer and use it in GitHub Desktop.
bullet: opened
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":[{"checks":[],"code_snapshot":"# BEGIN implement function `solution` here \n\n# END\n","id":28965,"lang":"ruby","reconnected":true,"state":"disconnected","total_games":57,"username":"sanek","wins":0},{"checks":[],"code_snapshot":"<?php\n\n// BEGIN implement function `solution` here \n\nfunction solution($n) {\n \n}\n\n// END\n","id":28964,"lang":"php","reconnected":true,"state":"connected","total_games":170,"username":"Igor","wins":104}],"handler":"syncPlayers"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"game":{"challenge_name":"separate_with_comma","description":"Given a number as input, return a string with that number formatted with commas to separate each three digits from the right to make it look like a standard North American number.\n\nExample: `\"1,238,592\" == solution(1238592)`","id":18573,"level":"easy"},"game_process":{"started_at":1446585579,"state":"started"}},"handler":"syncGame"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":4,"line":5},"origin":"+input","removed":[""],"text":["r"],"to":{"ch":4,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":5,"line":5},"origin":"+input","removed":[""],"text":["e"],"to":{"ch":5,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":6,"line":5},"origin":"+input","removed":[""],"text":["t"],"to":{"ch":6,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":7,"line":5},"origin":"+input","removed":[""],"text":["u"],"to":{"ch":7,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":8,"line":5},"origin":"+input","removed":[""],"text":["r"],"to":{"ch":8,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":9,"line":5},"origin":"+input","removed":[""],"text":["n"],"to":{"ch":9,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":10,"line":5},"origin":"+input","removed":[""],"text":[" "],"to":{"ch":10,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":11,"line":5},"origin":"+input","removed":[""],"text":["n"],"to":{"ch":11,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":12,"line":5},"origin":"+input","removed":[""],"text":["u"],"to":{"ch":12,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":13,"line":5},"origin":"+input","removed":[""],"text":["m"],"to":{"ch":13,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":14,"line":5},"origin":"+input","removed":[""],"text":["b"],"to":{"ch":14,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":15,"line":5},"origin":"+input","removed":[""],"text":["e"],"to":{"ch":15,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":16,"line":5},"origin":"+input","removed":[""],"text":["r"],"to":{"ch":16,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":17,"line":5},"origin":"+input","removed":[""],"text":["_"],"to":{"ch":17,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":18,"line":5},"origin":"+input","removed":[""],"text":["f"],"to":{"ch":18,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":19,"line":5},"origin":"+input","removed":[""],"text":["o"],"to":{"ch":19,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":20,"line":5},"origin":"+input","removed":[""],"text":["r"],"to":{"ch":20,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":21,"line":5},"origin":"+input","removed":[""],"text":["m"],"to":{"ch":21,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":22,"line":5},"origin":"+input","removed":[""],"text":["a"],"to":{"ch":22,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":23,"line":5},"origin":"+input","removed":[""],"text":["t"],"to":{"ch":23,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":24,"line":5},"origin":"+input","removed":[""],"text":["()"],"to":{"ch":24,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":25,"line":5},"origin":"+input","removed":[""],"text":["$"],"to":{"ch":25,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":26,"line":5},"origin":"+input","removed":[""],"text":["n"],"to":{"ch":26,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":27,"line":5},"origin":"+input","removed":[""],"text":[","],"to":{"ch":27,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":28,"line":5},"origin":"+input","removed":[""],"text":[" "],"to":{"ch":28,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":29,"line":5},"origin":"+input","removed":[""],"text":["0"],"to":{"ch":29,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":30,"line":5},"origin":"+input","removed":[""],"text":[","],"to":{"ch":30,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":31,"line":5},"origin":"+input","removed":[""],"text":[" "],"to":{"ch":31,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":32,"line":5},"origin":"+input","removed":[""],"text":["''"],"to":{"ch":32,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":34,"line":5},"origin":"+input","removed":[""],"text":[","],"to":{"ch":34,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":35,"line":5},"origin":"+input","removed":[""],"text":[" "],"to":{"ch":35,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":36,"line":5},"origin":"+input","removed":[""],"text":["''"],"to":{"ch":36,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":37,"line":5},"origin":"+input","removed":[""],"text":[","],"to":{"ch":37,"line":5}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":40,"line":5,"xRel":1},"origin":"+input","removed":[""],"text":[";"],"to":{"ch":40,"line":5,"xRel":1}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"game":{"challenge_name":"separate_with_comma","description":"Given a number as input, return a string with that number formatted with commas to separate each three digits from the right to make it look like a standard North American number.\n\nExample: `\"1,238,592\" == solution(1238592)`","id":18573,"level":"easy"},"game_process":{"finished_at":1446585609,"started_at":1446585579,"state":"finished","winner_id":28964}},"handler":"syncGame"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"check":{"id":[97,57,55,101,51,100,48,99,45,56,50,55,48,45,49,49,101,53,45,97,52,100,52,45,48,50,52,50,97,99,49,49,52,101,51,57],"output":"PHPUnit 5.0.8 by Sebastian Bergmann and contributors.\n\n\nStarting test 'SolutionTest::testSolution'.\n. 1 / 1 (100%)\n\nTime: 28 ms, Memory: 3.00Mb\n\nOK (1 test, 20 assertions)\nbattle-18573-28964-php\n","passed":true},"game_member_id":28964},"handler":"addCheck"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":{"diff":{"from":{"ch":0,"line":4,"xRel":0},"origin":"cut","removed":["function solution($n) {"," return number_format($n, 0, '', ',');","}"],"text":[""],"to":{"ch":1,"line":6,"xRel":1}},"game_member_id":28964},"handler":"updateEditorCode"}
application-6a0f5774c21ab8ef80cc880661bcab04baac9c98570ddba0e9dc0ae712b83987.js:2307 {"data":[{"checks":[],"code_snapshot":"# BEGIN implement function `solution` here \n\n# END\n","id":28965,"lang":"ruby","reconnected":false,"state":"disconnected","total_games":57,"username":"sanek","wins":0},{"checks":[{"id":[97,57,55,101,51,100,48,99,45,56,50,55,48,45,49,49,101,53,45,97,52,100,52,45,48,50,52,50,97,99,49,49,52,101,51,57],"output":"PHPUnit 5.0.8 by Sebastian Bergmann and contributors.\n\n\nStarting test 'SolutionTest::testSolution'.\n. 1 / 1 (100%)\n\nTime: 28 ms, Memory: 3.00Mb\n\nOK (1 test, 20 assertions)\nbattle-18573-28964-php\n","passed":true}],"code_snapshot":"<?php\n\n// BEGIN implement function `solution` here \n\n\n\n// END\n","id":28964,"lang":"php","reconnected":false,"state":"disconnected","total_games":170,"username":"Igor","wins":104}],"handler":"syncPlayers"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment