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
| /* | |
| Visit https://www.xbox.com/en-US/live/gold/ | |
| and in browser's console run below code to get list currently available Games With Gold list. | |
| This list may include additional games that are made available for free with gold in certain countries. | |
| */ | |
| var gameList = []; | |
| $.each(globalContentNew.locales, function(index, value){ | |
| gameList.push(value.keyLinknowgame1, value.keyLinknowgame2, value.keyLinknowgame3, value.keyLinknowgame4, value.keyLinknowgame5, value.keyLinknowgame6, value.keyLinknowgame7, value.keyLinknowgame8) | |
| }) |
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 filteredById(m) { | |
| return this.id === m.id; | |
| } | |
| var x = [ | |
| { name: "Apple", id: 123 }, | |
| { name: "Ball", id: 124 }, | |
| { name: "Cat", id: 125 } | |
| ]; | |
| var y = { id: 123 }; | |
| var z = x.filter(filteredById, y); |
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
| var x = [{'key':'a'},{'key':'b'},{'key':'a'}]; | |
| $.fn.findAllIndexes = function(key,value) { | |
| var result = []; | |
| $(this).each(function(index,item){ | |
| if(item[key]===value){ | |
| result.push(index); | |
| } | |
| }); | |
| return result; |
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 filteredById(m) { | |
| return this.id === m.id; | |
| } | |
| var x = [ | |
| { name: "Apple", id: 123 }, | |
| { name: "Ball", id: 124 }, | |
| { name: "Cat", id: 125 } | |
| ]; | |
| var y = { id: 123 }; | |
| var z = x.filter(filteredById, y); |
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
| section.blue { | |
| min-height: 30px; | |
| background-color: #44d62c; | |
| background-image: -moz-linear-gradient(45deg, #9C27B0 0%, #44d62c 100%); | |
| background-image: -webkit-linear-gradient(45deg, #008aff 0%, #82e26f 100%); | |
| background-image: -ms-linear-gradient(45deg, #9C27B0 0%, #44d62c 100%); | |
| color: #fff; | |
| } | |
| section.wshadow { |
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
| CamelCase(str) { | |
| return str.replace(/(?:^|\s)\w/g, match => match.toUpperCase()); | |
| } |
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
| var cities = [{code:'HYD',city:'Hyderabad'}, | |
| {code:'MUM',city:'Mumbai'}, | |
| {code:'BLR',city:'Bengaluru'}, | |
| {code:'PNQ',city:'Pune'}, | |
| {code:'MAA',city:'Chennai'}]; | |
| //Sort descending: | |
| cities.sort((a, b) => (a.city > b.city ? -1 : 1)); | |
| console.log(cities) |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
| </head> | |
| <body> | |
| <h2>Jquery Text2Pass</h2> | |
| <input type="text" id="text2Pass" /> |
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
| var days = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]; | |
| var months = ["January","February","March","April","May","June","July","August","September","October","November","December"]; | |
| var startIST = new Date ('Jan 12 2017 10:00'); | |
| var endIST = new Date ('Jan 13 2018 10:30'); | |
| var startLocal = new Date(new Date(startIST).setMinutes(startIST.getMinutes() + ((new Date().getTimezoneOffset()) * -1) - 330)); |
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
| @echo off | |
| cls | |
| title Pinger | |
| color a | |
| :start | |
| @echo off | |
| cls | |
| @echo on | |
| ::Replace 192.168.0.1 with the host IP/name you want to ping to | |
| ping 192.168.0.1 |
NewerOlder