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 isAsh (itemNumber) { | |
| var itype = parseInt(itemNumber / 1000, 10) % 100; | |
| var inum = parseInt(itemNumber, 10) % 1000; | |
| var iench = parseInt(itemNumber / 100000, 10) % 100 - 1; | |
| if (iench > 34) { | |
| return false; | |
| } | |
| if (iench < 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
| replaceDelayBars(); | |
| function replaceDelayBars () { | |
| const $ = top.main.document.querySelector.bind(top.main.document); | |
| var purpleBar = $('#s_ActionDelay td').nextElementSibling; | |
| var greyBar = purpleBar.nextElementSibling; | |
| var subbut2Style = top.frames.main.s_subbut2.style; | |
| var subbutStyle = top.frames.main.s_subbut.style; | |
| var subbut2NOStyle = top.frames.main.s_subbut2NO.style; |
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 createChallenge (input, goal, hash) { | |
| input = input.replace(/ /g, ''); | |
| var challengeLength = 16; | |
| var challenge = hash(hash(input) + 'god damned internet').substr(0, challengeLength); | |
| goal += challenge; | |
| // after using input... | |
| // right away just hash it, we never really want to work with the raw value | |
| input = hash(input); | |
| var outputLength = 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
| var USERNAME_WHITELIST = ['chrisinajar', 'ho0ber', 'fractaloop', 'n7-anthony', 'overra', 'tyrel', 'fervens', 'devdaniel']; | |
| module.exports = { | |
| findEnemy: findEnemy, | |
| run: run | |
| }; | |
| /* | |
| var target = findEnemy(creep); | |
| */ |
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 h = require('virtual-dom/h') | |
| var diff = require('virtual-dom/diff') | |
| var pv = require('virtual-dom-patch-viewer') | |
| vdom1 = h('div', [ | |
| h('div', 'div stuff'), | |
| h('script', {src: 'bundle.js', key: 1}) | |
| ]) | |
| vdom2 = h('div', [ |
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 queueSoundtrackSong(index) { | |
| var trackData = $.extend({}, TralbumData, TralbumData.trackinfo[index || 0]); | |
| $.ajax({url: "//soundtrack.io/playlist", | |
| type: 'post', | |
| xhrFields: { | |
| withCredentials: true | |
| }, | |
| data: { | |
| source: 'bandcamp', | |
| id: { |
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 getBitmaps() { | |
| var direBitmap = 0, | |
| radiBitmap = 0, | |
| i, cl, hero; | |
| for (i = 0; i < server.clients.length; ++i) { | |
| cl = server.clients[i]; | |
| if (!cl) { continue; } | |
| if (cl.netprops.m_iTeamNum === dota.TEAM_DIRE) { |
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
| // calculate up until e | |
| function fibb(e) { | |
| var i = 0; | |
| (function(le) { | |
| return (function(f) { | |
| return f(f); | |
| }(function(f) { | |
| return le(function(x) { | |
| return f(f)(x); | |
| }); |
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
| // Basid plug.dj logger. Sloppy, doens't unlisten to events | |
| (function() { | |
| var load = function(name) { | |
| try { | |
| return JSON.parse(localStorage["_log_" + name]); | |
| } catch (e) { | |
| return null; | |
| } | |
| } | |
| var save = function(name, value) { |
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:(function() { $("link[rel='stylesheet']").each(function(i, node) {var map = {};$.each(node.attributes, function(i, node) {map[node.name.toLowerCase()] = node.value;});$("<link />", map).appendTo('head');$(node).remove();}) })() |
NewerOlder