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
| exports.getIndex = function (req, res) { | |
| return [ | |
| { | |
| title: "Duck Game", | |
| developer: "Landon Podbielski", | |
| tile_image: "https://www.ouya.tv/gamehub/listimgs/6d547a77-1a81-403c-8065-0cea25c5d81c.jpg" | |
| }, | |
| { | |
| title: "TowerFall", | |
| developer: "Matt Makes Gamers Inc.", |
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
| node_modules |
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
| if (age >= 21) | |
| giveBeer() |
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 gFind(pattern) { | |
| var path = []; | |
| var isObject = function (obj) { | |
| return (/^(Object|Array|String)/).test(obj.constructor.name); | |
| }; | |
| (function gFindRec(obj) { | |
| var found; |
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
| javascript:location.href="googlechrome://"+location.hostname+location.pathname+location.search; |
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
| window.onpopstate = function (event) { | |
| if (event.state == null) { | |
| return; | |
| } | |
| old_text.val(event.state.old_text); | |
| new_text.val(event.state.new_text); | |
| }; |
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
| $(document).ready(function () { | |
| if (typeof(history.replaceState) !== "undefined") { | |
| history.replaceState({ | |
| old_text: old_text.val(), | |
| new_text: new_text.val(), | |
| slug: location.pathname.replace("/", "") | |
| }, null, null); | |
| } | |
| }); |
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
| if (typeof history.pushState === "undefined") { | |
| // Refresh the page to the new URL if pushState not supported | |
| location.href = new_path | |
| } | |
| history.pushState({ | |
| old_text: old_text.val(), | |
| new_text: new_text.val(), | |
| slug: new_path | |
| }, null, new_path); |
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
| history.pushState( { | |
| old_text: old_text.val(), | |
| new_text: new_text.val(), | |
| slug: new_path | |
| }, null, new_path); |
NewerOlder