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
| String.prototype.replaceAt = function(index, character) { | |
| return this.substr(0, index) + character + this.substr(index + character.length); | |
| } | |
| var instructions = document.body.textContent.split('\n'); | |
| var grid = []; | |
| //create grid | |
| for (var a = 0; a < 6; a++) { | |
| grid.push(Array(51).join("0")); | |
| } |
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
| String.prototype.replaceAt = function(index, character) { | |
| return this.substr(0, index) + character + this.substr(index + character.length); | |
| } | |
| var instructions = document.body.textContent.split('\n'); | |
| var grid = []; | |
| //create grid | |
| for (var a = 0; a < 6; a++) { | |
| grid.push(Array(51).join("0")); | |
| } |
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
| //Make sure the entire page is loaded, zoom waaay out so all songs are visible. | |
| //Check with this | |
| var total = 0; | |
| [...document.querySelectorAll(".songlist-container tbody > tr.song-row")].forEach(obj => { | |
| const a = obj.children[2]; | |
| const duration = a.innerText; | |
| const t = obj.children[6]; | |
| if (!t) { |
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 string = "R4, R3, R5, L3, L5, R2, L2, R5, L2, R5, R5, R5, R1, R3, L2, L2, L1, R5, L3, R1, L2, R1, L3, L5, L1, R3, L4, R2, R4, L3, L1, R4, L4, R3, L5, L3, R188, R4, L1, R48, L5, R4, R71, R3, L2, R188, L3, R2, L3, R3, L5, L1, R1, L2, L4, L2, R5, L3, R3, R3, R4, L3, L4, R5, L4, L4, R3, R4, L4, R1, L3, L1, L1, R4, R1, L4, R1, L1, L3, R2, L2, R2, L1, R5, R3, R4, L5, R2, R5, L5, R1, R2, L1, L3, R3, R1, R3, L4, R4, L4, L1, R1, L2, L2, L4, R1, L3, R4, L2, R3, L1, L5, R4, R5, R2, R5, R1, R5, R1, R3, L3, L2, L2, L5, R2, L2, R5, R5, L2, R3, L5, R5, L2, R4, R2, L1, R3, L5, R3, R2, R5, L1, R3, L2, R2, R1"; | |
| //var string = "R8, R4, R4, R8"; | |
| var array = string.split(", "); | |
| var xcoord = Number(0); | |
| var ycoord = Number(0); | |
| //0 = N, 1 = E, 2 = S, 3 = W | |
| var direction = 0; | |
| var value; | |
| var stop = false; | |
| var values = []; |
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 string = "R4, R3, R5, L3, L5, R2, L2, R5, L2, R5, R5, R5, R1, R3, L2, L2, L1, R5, L3, R1, L2, R1, L3, L5, L1, R3, L4, R2, R4, L3, L1, R4, L4, R3, L5, L3, R188, R4, L1, R48, L5, R4, R71, R3, L2, R188, L3, R2, L3, R3, L5, L1, R1, L2, L4, L2, R5, L3, R3, R3, R4, L3, L4, R5, L4, L4, R3, R4, L4, R1, L3, L1, L1, R4, R1, L4, R1, L1, L3, R2, L2, R2, L1, R5, R3, R4, L5, R2, R5, L5, R1, R2, L1, L3, R3, R1, R3, L4, R4, L4, L1, R1, L2, L2, L4, R1, L3, R4, L2, R3, L1, L5, R4, R5, R2, R5, R1, R5, R1, R3, L3, L2, L2, L5, R2, L2, R5, R5, L2, R3, L5, R5, L2, R4, R2, L1, R3, L5, R3, R2, R5, L1, R3, L2, R2, R1"; | |
| // var string = "R8, R4, R4, R8"; | |
| var array = string.split(", "); | |
| var xcoord = Number(0); | |
| var ycoord = Number(0); | |
| //0 = N, 1 = E, 2 = S, 3 = W | |
| var direction = 0; | |
| var value; | |
| var values = []; |
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 string = "R4, R3, R5, L3, L5, R2, L2, R5, L2, R5, R5, R5, R1, R3, L2, L2, L1, R5, L3, R1, L2, R1, L3, L5, L1, R3, L4, R2, R4, L3, L1, R4, L4, R3, L5, L3, R188, R4, L1, R48, L5, R4, R71, R3, L2, R188, L3, R2, L3, R3, L5, L1, R1, L2, L4, L2, R5, L3, R3, R3, R4, L3, L4, R5, L4, L4, R3, R4, L4, R1, L3, L1, L1, R4, R1, L4, R1, L1, L3, R2, L2, R2, L1, R5, R3, R4, L5, R2, R5, L5, R1, R2, L1, L3, R3, R1, R3, L4, R4, L4, L1, R1, L2, L2, L4, R1, L3, R4, L2, R3, L1, L5, R4, R5, R2, R5, R1, R5, R1, R3, L3, L2, L2, L5, R2, L2, R5, R5, L2, R3, L5, R5, L2, R4, R2, L1, R3, L5, R3, R2, R5, L1, R3, L2, R2, R1"; | |
| var array = string.split(", "); | |
| var xcoord = Number(0); | |
| var ycoord = Number(0); | |
| //0 = N, 1 = E, 2 = S, 3 = W | |
| var direction = 0; | |
| var value; | |
| for(i = 0; i < array.length; i++) { | |
| value = String(array[i]); | |
| var ar = value.match(/[a-zA-Z]+|[0-9]+/g); |
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
| | Viewpoint | Percentage | | |
| |---|---| | |
| | "They should fall into the ocean" | 96% | | |
| | "Bring Harambe back" | 3% | | |
| | Declined to answer | 1% | |
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
| [console]::beep(658, 125); | |
| [console]::beep(1320, 500); | |
| [console]::beep(990, 250); | |
| [console]::beep(1056, 250); | |
| [console]::beep(1188, 250); | |
| [console]::beep(1320, 125); | |
| [console]::beep(1188, 125); | |
| [console]::beep(1056, 250); | |
| [console]::beep(990, 250); | |
| [console]::beep(880, 500); |
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 (!window.jQuery) { | |
| var jq = document.createElement('script'); | |
| jq.type = 'text/javascript'; | |
| jq.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'; | |
| var jq2 = document.createElement('script'); | |
| jq2.type = 'text/javascript'; | |
| jq2.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.rawgit.com/blueimp/JavaScript-MD5/master/js/md5.js'; | |
| var sc = document.getElementsByTagName('script')[0]; | |
| sc.parentNode.insertBefore(jq, sc); | |
| sc.parentNode.insertBefore(jq2, jq); |
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
| ```return Meteor.users.find({ | |
| //some other variables | |
| reportsCount > 0 | |
| }).count();``` |