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 validateSudoku(data) { | |
| // [] for rows/colums | |
| var board = []; | |
| // iterate over the (r)ows | |
| for (var r = 0; r < 9; r++) { | |
| // start for (c)olumns | |
| var start = r * 9; | |
| // stores current row data | |
| var build = []; | |
| // iterate over the (c)olumns |
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 exportHomicideReport(reports) { | |
| return new Promise((complete, error) => { | |
| // cache build info | |
| let output = '', | |
| outputPromises = [], | |
| monthNames = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | |
| // cache google info | |
| const googleURL = 'https://maps.googleapis.com/maps/api/geocode/json?latlng=', | |
| googleAPI = '&key=AIzaSyCXllb7HBvBT_nv5jF0dxjaRAo4T6D34xw'; | |
| // loop over each report |
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
| // check for ad every second | |
| setInterval(() => { | |
| // cache skip button | |
| const skipBtn = document.querySelector('.videoAdUiSkipButton'); | |
| // click skip button if it exists | |
| if (skipBtn) skipBtn.click(); | |
| }, 1000); |
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
| /* | |
| Coded by Jade Allen Cook 2017 | |
| Example Packages - | |
| [ | |
| "KittenService: ", | |
| "Leetmeme: Cyberportal", | |
| "Cyberportal: Ice", | |
| "CamelCaser: KittenService", | |
| "Fraudstream: Leetmeme", | |
| "Ice: " |
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
| let likes = 0; | |
| setInterval(() => { | |
| const heart = document.querySelector('svg[aria-label="Like"][width="24"]'); | |
| const arrow = document.querySelector('svg[aria-label="Next"]'); | |
| if (heart) { | |
| heart.parentNode.parentElement.click() | |
| likes++; | |
| console.log(`You've liked ${likes} post(s)`); | |
| } | |
| arrow.parentElement.parentElement.click(); |
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 getZip(address) { | |
| if (address == '') { | |
| return 'ERROR: No address was provided'; | |
| } else { | |
| var location = Maps.newGeocoder().geocoder.geocode(address); | |
| if (location.status == 'OK') return extractFromAddress(location.results[0].address_components, 'postal_code'); | |
| else return 'ERROR: Something went wrong with Geocoder'; | |
| } | |
| } |
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 types = ['tag', 'location'] | |
| for (var y = 0; y < types.length; y++) { | |
| var type = types[y]; | |
| for (var x = 0; x < document.querySelectorAll('a[data-type="' + type + '"]').length; x++) { | |
| var elem = document.querySelectorAll('a[data-type="' + type + '"]')[x]; | |
| while (elem) { | |
| elem.click(); | |
| } | |
| } | |
| } |
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 decrypt(password) { | |
| var letters = 'abcdefghijklmnopqrstuvwxyz', | |
| decrypt = ''; | |
| for (var x = 0; x < password.length; x++) { | |
| var value = password[x]; | |
| if (isNaN(value)) decrypt += letters[letters.indexOf(value) - x]; | |
| else decrypt += value - x; | |
| } | |
| return decrypt; | |
| } |
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
| { | |
| "postals": { | |
| "84111": "d257df6d-5fca-70a5-9d7e-a0bab213f7aa" | |
| }, | |
| "names": { | |
| "316e37df-71ef-06d6-6606-fc3cfc58e4e4": { | |
| "first": "John", | |
| "last": "Smith", | |
| "person": "940eca25-7bf9-82db-7974-03ed857d1615" | |
| } |
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 images = [], | |
| nodes = document.getElementsByTagName('*'); | |
| // loop over all nodes in dom | |
| for (var x = 0, max = nodes.length; x < max; x++) { | |
| // look for nodes with bg imgs | |
| var node = nodes[x], | |
| image = node.style.backgroundImage; | |
| // if no bg img, check for img node type | |
| if (!image && node.nodeName === 'IMG') image = node.src; | |
| else image = image.replace('url("', '').replace('")', ''); |
OlderNewer