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
require "defines" | |
global.active_turret_range_entities = {} | |
global.nearby_turret_map = {} | |
local function draw_turret_range(turret_type, sx, sy, r) | |
-- what is this voodoo? | |
local function round(x) | |
return x + 0.5 - (x + 0.5) % 1 | |
end |
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.log navigator.serviceWorker.controller | |
navigator.serviceWorker.register('/worker.js') #, scope: 'path' | |
.then (reg) -> | |
console.log '◕‿◕', reg | |
, (err) -> | |
console.log 'ಠ_ಠ', err | |
# credit: https://github.com/GoogleChrome/samples/blob/gh-pages/service-worker/post-message/index.html | |
@sendMessage = (message) -> |
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
<?php | |
class MicroQuery | |
{ | |
public static function configure($configuration) | |
{ | |
// configure ruckusing db adapter | |
self::$adapter = null; | |
} |
NewerOlder