repo_name
stringlengths
6
69
path
stringlengths
6
178
copies
stringclasses
278 values
size
stringlengths
4
7
content
stringlengths
671
917k
license
stringclasses
15 values
kaustubhcs/torch-toolbox
BN-absorber/BN-absorber.lua
2
2074
require('nn') local function absorb_bn(w, b, mean, std, affine, gamma, beta) w:cmul(std:view(w:size(1),1):repeatTensor(1,w:size(2))) b:add(-mean):cmul(std) if affine then w:cmul(gamma:view(w:size(1),1):repeatTensor(1,w:size(2))) b:cmul(gamma):add(beta) end end local function BN_absorber(x) ...
bsd-3-clause
shangjiyu/luci-with-extra
applications/luci-app-firewall/luasrc/model/cbi/firewall/rules.lua
66
6975
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2010-2012 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local ds = require "luci.dispatcher" local ft = require "luci.tools.firewall" m = Map("firewall", translate("Firewall - Traffic Rules"), translate("Tra...
apache-2.0
thesabbir/luci
protocols/luci-proto-openconnect/luasrc/model/cbi/admin_network/proto_openconnect.lua
40
2661
-- Copyright 2014 Nikos Mavrogiannopoulos <nmav@gnutls.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local server, username, password, cert, ca local oc_cert_file, oc_key_file, oc_ca_file local ifc = net:get_interface():name() oc_cert_file = "/etc/openconnect/user-cert-"...
apache-2.0
haka-security/haka
lib/haka/lua/lua/state.lua
5
6241
-- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at http://mozilla.org/MPL/2.0/. local class = require('class') local dg = require('grammar_dg') local check = require('check') local module = {} loc...
mpl-2.0
nasomi/darkstar
scripts/zones/The_Boyahda_Tree/Zone.lua
9
1831
----------------------------------- -- -- Zone: The_Boyahda_Tree (153) -- ----------------------------------- package.loaded["scripts/zones/The_Boyahda_Tree/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/zone"); require("scripts/zones/The_Bo...
gpl-3.0
nasomi/darkstar
scripts/zones/North_Gustaberg/npcs/Cavernous_Maw.lua
29
1494
----------------------------------- -- Area: North Gustaberg -- NPC: Cavernous Maw -- @pos 466 0 479 106 -- Teleports Players to North Gustaberg [S] ----------------------------------- package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/...
gpl-3.0
nasomi/darkstar
scripts/globals/mobskills/Glacial_Breath.lua
13
1287
--------------------------------------------- -- Glacial Breath -- -- Description: Deals Ice damage to enemies within a fan-shaped area. -- Type: Breath -- Utsusemi/Blink absorb: Ignores shadows -- Range: Unknown cone -- Notes: Used only by Jormungand and Isgebind -----------------------------------------...
gpl-3.0
nasomi/darkstar
scripts/zones/Temenos/mobs/Thrym.lua
16
1190
----------------------------------- -- Area: Temenos N T -- NPC: Thrym ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); --------------------------------...
gpl-3.0
nasomi/darkstar
scripts/zones/Riverne-Site_A01/mobs/Heliodromos.lua
31
1721
----------------------------------- -- Area: Riverne Site A01 -- MOB: Heliodromos ----------------------------------- ----------------------------------- function onMobRoam(mob) local Heliodromos_Table = { 16900110, 16900111, 16900112 }; local Heliodromos_PH_Table = { 16900107, 16900108, 16900109...
gpl-3.0
dani-sj/soheyl
plugins/banhammer.lua
37
11688
local function pre_process(msg) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Checking invited user '..user_id) local banned ...
gpl-2.0
j-san/awsome-conf
status_popup.lua
1
6251
local capi = { timer = timer, screen = screen, mouse = mouse, client = client } local wibox = require("wibox") local awful = require("awful") local beautiful = require("beautiful") local object = require("gears.object") local surface = require("gears.surface") local naughty = require("naughty") local ...
mit
rosejn/torch-datasets
dataset/cifar10.lua
2
3989
require 'torch' require 'nn' require 'image' require 'paths' require 'util/file' require 'logroll' require 'dataset' cifar10 = {} cifar10_md = { name = 'cifar10', dimensions = {3, 32, 32}, n_dimensions = 3 * 32 * 32, size = function() return 50000 end, classes = {'airplane...
bsd-3-clause
nasomi/darkstar
scripts/zones/Temenos/mobs/Telchines_Bard.lua
16
1135
----------------------------------- -- Area: Temenos N T -- NPC: Telchines_Bard ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); ----------------------...
gpl-3.0
coolflyreg/gs
3rd/skynet-mingw/service/cdummy.lua
94
1797
local skynet = require "skynet" require "skynet.manager" -- import skynet.launch, ... local globalname = {} local queryname = {} local harbor = {} local harbor_service skynet.register_protocol { name = "harbor", id = skynet.PTYPE_HARBOR, pack = function(...) return ... end, unpack = skynet.tostring, } skynet.reg...
gpl-2.0
sjthespian/dotfiles
hammerspoon/hs/_asm/undocumented/spaces/init.lua
3
22657
--- === hs._asm.undocumented.spaces === --- --- These functions utilize private API's within the OS X internals, and are known to have unpredictable behavior under Mavericks and Yosemite when "Displays have separate Spaces" is checked under the Mission Control system preferences. --- local USERDATA_TAG = "hs._asm.undo...
mit
shangjiyu/luci-with-extra
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/dns.lua
68
1085
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. require("luci.sys") m = Map("luci_statistics", translate("DNS Plugin Configuration"), translate( "The dns plugin collects detailled statistics about dns " .. "related traffic on select...
apache-2.0
nasomi/darkstar
scripts/zones/Kuftal_Tunnel/npcs/_4u0.lua
61
1080
----------------------------------- -- Area: Kuftal Tunnel -- NPC: ----------------------------------- require("scripts/globals/status"); ----------------------------------- ----------------------------------- -- onSpawn ----------------------------------- function onSpawn(npc) local elevator = { ...
gpl-3.0
thesabbir/luci
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/iface_add.lua
31
2881
-- Copyright 2009-2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local nw = require "luci.model.network".init() local fw = require "luci.model.firewall".init() local utl = require "luci.util" local uci = require "luci.model.uci".cursor() m = SimpleForm("network", tran...
apache-2.0
nasomi/darkstar
scripts/zones/Sauromugue_Champaign/npcs/qm7.lua
19
2301
----------------------------------- -- Area: Sauromugue Champaign -- NPC: qm7 (???) (Tower 7) -- Involved in Quest: THF AF "As Thick As Thieves" -- @pos -193.869 15.400 276.837 120 ----------------------------------- package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil; ------------------------------...
gpl-3.0
nasomi/darkstar
scripts/zones/Cloister_of_Tremors/bcnms/trial_by_earth.lua
19
1779
----------------------------------- -- Area: Cloister of Tremors -- BCNM: Trial by Earth -- @pos -539 1 -493 209 ----------------------------------- package.loaded["scripts/zones/Cloister_of_Tremors/TextIDs"] = nil; ------------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/que...
gpl-3.0
nasomi/darkstar
scripts/globals/spells/bluemagic/battery_charge.lua
18
1499
----------------------------------------- -- Spell: Battery Charge -- Gradually restores MP -- Spell cost: 50 MP -- Monster Type: Arcana -- Spell Type: Magical (Light) -- Blue Magic Points: 3 -- Stat Bonus: MP+10, MND+1 -- Level: 79 -- Casting Time: 5 seconds -- Recast Time: 75 seconds -- Spell Duration: 100...
gpl-3.0
aqasaeed/zeus
bot/seedbot.lua
1
12516
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") VERSION = '1.0' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then retu...
gpl-2.0
nasomi/darkstar
scripts/zones/Apollyon/mobs/Adamantshell.lua
16
1266
----------------------------------- -- Area: Apollyon SE -- NPC: Adamantshell ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Apollyon/TextIDs"); -----------------------...
gpl-3.0
TeamHypersomnia/Augmentations
hypersomnia/content/official/gfx/baka47_shot_5.meta.lua
12
2773
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 1, amplification = 150, light_colors = { "255 128 0 255", "244 213 156 255", "72 71 71 255" }, radius = { x = 80, y = 80 }, standard_deviation = 6 }, ...
agpl-3.0
TeamHypersomnia/Augmentations
hypersomnia/content/official/gfx/baka47_shot_1.meta.lua
12
2773
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 1, amplification = 150, light_colors = { "255 128 0 255", "244 213 156 255", "72 71 71 255" }, radius = { x = 80, y = 80 }, standard_deviation = 6 }, ...
agpl-3.0
akornatskyy/lucid
src/http/middleware/authorize.lua
1
1533
return function(following, options) assert(options.ticket, 'options.ticket') local name, path, domain, same_site, secure local cookie_dump, deleted_cookie local ticket = options.ticket local principal_parse do local cookie = require 'http.cookie' local c = options.auth_cookie or...
mit
shakfu/start-vm
config/base/awesome/vicious/widgets/net.lua
15
2702
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Adrian C. <anrxc@sysphere.org> -- * (c) 2009, Lucas de Vries <lucas@glacicle.com> --------------------------------------------------- -- {{{ Grab environment local tonumber = tonumber local os = { t...
mit
icplus/OP-SDK
package/ramips/ui/luci-mtk/src/applications/luci-ushare/luasrc/model/cbi/ushare.lua
68
1275
--[[ LuCI uShare (c) 2008 Yanira <forum-2008@email.de> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- m = Map("ushare", translate("...
gpl-2.0
vrld/Panoptes
states/gameover.lua
1
2101
local st = {} local canvas function st:init() canvas = love.graphics.newCanvas() self.name = {text = ""} end local names = { 'barmpot', 'berk', 'slowpoke', 'muppet', 'dimwit', 'halfwit', 'blockhead', 'dunce', 'cretin', 'dullard', 'dum-dum', 'noodle' } local switching = false function st:enter(pre) can...
gpl-3.0
nasomi/darkstar
scripts/zones/King_Ranperres_Tomb/npcs/Tombstone.lua
15
2930
----------------------------------- -- Area: King Ranperre's Tomb -- NPC: Tombstone -- Involved in Quest: Grave Concerns -- @pos 1 0.1 -101 190 ----------------------------------- package.loaded["scripts/zones/King_Ranperres_Tomb/TextIDs"] = nil; ----------------------------------- require("scripts/globals/s...
gpl-3.0
nasomi/darkstar
scripts/zones/Windurst_Waters/npcs/Furan-Furin.lua
59
1052
----------------------------------- -- Area: Windurst Waters -- NPC: Furan-Furin -- Type: Weather Reporter ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Windurst_Waters/T...
gpl-3.0
nasomi/darkstar
scripts/zones/Windurst_Waters/npcs/Lumomo.lua
19
2836
----------------------------------- -- Area: Windurst Waters -- NPC: Lumomo -- Type: Standard NPC -- @zone: 238 -- @pos -55.770 -5.499 18.914 -- 0x027e 0x0332 0x0334 0x0336 0x0337 -- Auto-Script: Requires Verification (Verfied By Brawndo) ----------------------------------- package.loaded["scripts/zones/Wind...
gpl-3.0
mrfoxirani/mehran
plugins/xkcd.lua
628
1374
do function get_last_id() local res,code = https.request("http://xkcd.com/info.0.json") if code ~= 200 then return "HTTP ERROR" end local data = json:decode(res) return data.num end function get_xkcd(id) local res,code = http.request("http://xkcd.com/"..id.."/info.0.json") if code ~= 200 then return "HT...
gpl-2.0
nasomi/darkstar
scripts/globals/items/cougar_baghnakhs.lua
41
1068
----------------------------------------- -- ID: 16702 -- Item: Cougar Baghnakhs -- Additional Effect: Ice Damage ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onAdditionalEffect Action ----------------------------...
gpl-3.0
shangjiyu/luci-with-extra
applications/luci-app-udpxy/luasrc/model/cbi/udpxy.lua
77
2104
-- Copyright 2014 Álvaro Fernández Rojas <noltari@gmail.com> -- Licensed to the public under the Apache License 2.0. m = Map("udpxy", "udpxy", translate("udpxy is a UDP-to-HTTP multicast traffic relay daemon, here you can configure the settings.")) s = m:section(TypedSection, "udpxy", "") s.addremove = true s.anonymo...
apache-2.0
dageq/Dage-Aliraqi
plugins/en-Dage_Aliraqi4.lua
1
1683
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY Dage Aliraqi ▀▄ ▄▀ ▀▄ ▄▀ BY Dage Aliraqi (@dageq) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY Dage Aliraqi ▀▄ ▄▀ ▀▄ ▄▀ help dev : اوامر المطور ▀▄ ▄▀ ▀▄▀▀...
gpl-2.0
nasomi/darkstar
scripts/zones/Heavens_Tower/npcs/Rhy_Epocan.lua
19
1628
----------------------------------- -- Area: Heavens Tower -- NPC: Rhy Epocan -- Involved in Mission 3-1 -- @pos 2 -48 14 242 ----------------------------------- package.loaded["scripts/zones/Heavens_Tower/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zones...
gpl-3.0
nasomi/darkstar
scripts/zones/Ilrusi_Atoll/mobs/Cursed_Chest.lua
16
1381
----------------------------------- -- Area: Illrusi atoll -- NPC: Cursed Chest ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/status"); ----------------------------------- -- onMobInitialize Action ----------------------------------- function onMobInit...
gpl-3.0
actboy168/YDWE
Development/Component/plugin/w3x2lni/script/backend/cli/unpack.lua
2
5912
local get_report = require 'share.report' local command = require 'backend.command' local messager = require 'share.messager' local lang = require 'share.lang' local builder = require 'map-builder' local core = require 'backend.sandbox_core' local w2l = core() local root = require 'backend.w2l_path' local base = requir...
gpl-3.0
Hello23-Ygopro/ygopro-ds
expansions/script/c27002059.lua
1
1151
--BT2-053 Tiny Heroes Haru and Maki local ds=require "expansions.utility_dbscg" local scard,sid=ds.GetID() function scard.initial_effect(c) ds.EnableBattleAttribute(c) ds.AddSetcode(c,SPECIAL_TRAIT_EARTHLING) ds.AddPlayProcedure(c,COLOR_BLUE,1,0) --power up ds.AddSingleAutoPlay(c,0,nil,scard.powtg,scard.powop,DS_E...
gpl-3.0
nasomi/darkstar
scripts/zones/Alzadaal_Undersea_Ruins/Zone.lua
21
6100
----------------------------------- -- -- Zone: Alzadaal_Undersea_Ruins (72) -- ----------------------------------- package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"); ...
gpl-3.0
nasomi/darkstar
scripts/globals/spells/foe_requiem_iv.lua
18
1625
----------------------------------------- -- Spell: Foe Requiem IV ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target...
gpl-3.0
nasomi/darkstar
scripts/zones/Sauromugue_Champaign/TextIDs.lua
9
1425
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6393; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6398; -- Obtained: <item>. GIL_OBTAINED = 6399; -- Obtained <number> gil. KEYITEM_OBTAINED = 6401; -- Obtained...
gpl-3.0
nasomi/darkstar
scripts/zones/Valkurm_Dunes/npcs/Cavernous_Maw.lua
58
1887
----------------------------------- -- Area: Valkurm Dunes -- NPC: Cavernous Maw -- @pos 368.980, -0.443, -119.874 103 -- Teleports Players to Abyssea Misareaux ----------------------------------- package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil; ----------------------------------- require("scripts/globals...
gpl-3.0
coolflyreg/gs
3rd/skynet-mingw/service/datacenterd.lua
100
1928
local skynet = require "skynet" local command = {} local database = {} local wait_queue = {} local mode = {} local function query(db, key, ...) if key == nil then return db else return query(db[key], ...) end end function command.QUERY(key, ...) local d = database[key] if d then return query(d, ...) end ...
gpl-2.0
nasomi/darkstar
scripts/zones/Port_Jeuno/npcs/Zuah_Lepahnyu.lua
19
3977
----------------------------------- -- Area: Port Jeuno -- NPC: ZuahLepahnyu -- Title Change NPC -- @pos 0 0 8 246 ----------------------------------- require("scripts/globals/titles"); local title2 = { VISITOR_TO_ABYSSEA , FRIEND_OF_ABYSSEA , WARRIOR_OF_ABYSSEA , STORMER_OF_ABYSSEA , DEVASTATOR_OF_ABYSSEA , HERO...
gpl-3.0
nasomi/darkstar
scripts/zones/Norg/npcs/_700.lua
17
2923
----------------------------------- -- Area: Norg -- NPC: Oaken door (Gilgamesh's room) -- @pos 97 -7 -12 252 ----------------------------------- require("scripts/globals/missions"); require("scripts/globals/settings") ----------------------------------- -- onTrade Action ---------------------------------...
gpl-3.0
icplus/OP-SDK
package/ramips/ui/luci-mtk/src/modules/base/luasrc/model/cbi/admin_network/proto_static.lua
60
2663
--[[ LuCI - Lua Configuration Interface Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]]-- local ma...
gpl-2.0
nasomi/darkstar
scripts/zones/Castle_Zvahl_Keep/npcs/Treasure_Chest.lua
19
3200
----------------------------------- -- Area: Castle Zvahl Keep -- NPC: Treasure Chest -- @zone 162 ----------------------------------- package.loaded["scripts/zones/Castle_Zvahl_Keep/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require(...
gpl-3.0
nasomi/darkstar
scripts/zones/Castle_Oztroja/npcs/Kaa_Toru_the_Just.lua
19
1581
----------------------------------- -- Area: Castle Oztroja -- NPC: Kaa Toru the Just -- Type: Mission NPC [ Windurst Mission 6-2 NPC ]~ -- @pos -100.188 -62.125 145.422 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- requir...
gpl-3.0
nasomi/darkstar
scripts/zones/Selbina/npcs/Gibol.lua
17
1187
----------------------------------- -- Area: Selbina -- NPC: Gibol -- Guild Merchant NPC: Clothcrafting Guild -- @pos 13.591 -7.287 8.569 248 ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); r...
gpl-3.0
nasomi/darkstar
scripts/zones/RuAun_Gardens/npcs/Treasure_Coffer.lua
17
3325
----------------------------------- -- Area: Ru'Aun Gardens -- NPC: Treasure Coffer -- @zone 130 -- @pos ----------------------------------- package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitem...
gpl-3.0
nasomi/darkstar
scripts/zones/Port_Jeuno/npcs/Imasuke.lua
17
3152
----------------------------------- -- Area: Port Jeuno -- NPC: Imasuke -- Starts and Finishes Quest: The Antique Collector -- @zone 246 -- @pos -165 11 94 ----------------------------------- package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; package.loaded["scripts/globals/settings"] = nil; -----------...
gpl-3.0
MatthewDwyer/botman
mudlet/profiles/newbot/scripts/lua_tables.lua
1
22061
function table.val_to_str ( v ) if "string" == type( v ) then v = string.gsub( v, "\n", "\\n" ) if string.match( string.gsub(v,"[^'\"]",""), '^"+$' ) then return "'" .. v .. "'" end return '"' .. string.gsub(v,'"', '\\"' ) .. '"' else return "table" == type( v ) and table.tostring( v ) or ...
gpl-3.0
nasomi/darkstar
scripts/globals/spells/aisha_ichi.lua
18
1599
----------------------------------------- -- Spell: Aisha: Ichi ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target,...
gpl-3.0
nasomi/darkstar
scripts/zones/Port_San_dOria/npcs/Croumangue.lua
36
1884
----------------------------------- -- Area: Port San d'Oria -- NPC: Croumangue -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/quests"); re...
gpl-3.0
nasomi/darkstar
scripts/zones/Upper_Jeuno/npcs/Luto_Mewrilah.lua
34
1856
----------------------------------- -- Area: Upper Jeuno -- NPC: Luto Mewrilah -- @zone 244 -- @pos -53 0 45 ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quests"...
gpl-3.0
nasomi/darkstar
scripts/zones/Norg/npcs/Washu.lua
17
3574
----------------------------------- -- Area: Norg -- NPC: Washu -- Involved in Quest: Yomi Okuri -- Starts and finishes Quest: Stop Your Whining -- @pos 49 -6 15 252 ----------------------------------- package.loaded["scripts/zones/Norg/TextIDs"] = nil; ----------------------------------- require("scripts/g...
gpl-3.0
nasomi/darkstar
scripts/zones/Lower_Jeuno/npcs/Tuh_Almobankha.lua
17
3832
----------------------------------- -- Area: Lower Jeuno -- NPC: Tuh Almobankha -- Title Change NPC -- @pos -14 0 -61 245 ----------------------------------- require("scripts/globals/titles"); local title2 = { BROWN_MAGE_GUINEA_PIG , BROWN_MAGIC_BYPRODUCT , RESEARCHER_OF_CLASSICS , TORCHBEARER , FORTUNETELLE...
gpl-3.0
Ingenious-Gaming/Starfall
lua/starfall/database.lua
4
1455
SF.DB = {} SF.DB.query = sql.Query SF.DB.querySingleValue = sql.QueryValue function SF.DB.querySingleRow ( query ) return sql.QueryRow( query, 0 ) end function SF.DB.escape ( str ) return sql.SQLStr( str ):sub( 2, -2 ) end local function queryMultiple ( statements ) local ret for _, v in pairs( statements ) do ...
bsd-3-clause
Ingenious-Gaming/Starfall
lua/starfall/editor.lua
1
51674
------------------------------------------------------------------------------- -- SF Editor -- Originally created by Jazzelhawk -- -- To do: -- Find new icons ------------------------------------------------------------------------------- SF.Editor = {} local addon_path = nil do local tbl = debug.get...
bsd-3-clause
nasomi/darkstar
scripts/globals/spells/slow_ii.lua
18
1665
----------------------------------------- -- Spell: Slow II -- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and MND. -- caster:getMerit() returns a value which is equal to the number of merit points TIMES the value of each point -- Slow II value per point is '1' This is a constant s...
gpl-3.0
cristiandonosoc/unexperiments
dotaoh/lib/hardon_collider/gjk.lua
23
5593
--[[ Copyright (c) 2012 Matthias Richter Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribu...
mit
sjthespian/dotfiles
hammerspoon/utils/file.lua
4
5429
-- File and directory related utilities local lib = {} -- Return true if the file exists, else false function lib.exists(name) local f = io.open(name,'r') if f ~= nil then io.close(f) return true else return false end end -- Takes a list of path parts, returns a string with the parts delimited by ...
mit
mrfoxirani/mehran
plugins/anti-bot.lua
369
3064
local function isBotAllowed (userId, chatId) local hash = 'anti-bot:allowed:'..chatId..':'..userId local banned = redis:get(hash) return banned end local function allowBot (userId, chatId) local hash = 'anti-bot:allowed:'..chatId..':'..userId redis:set(hash, true) end local function disallowBot (userId, ch...
gpl-2.0
nasomi/darkstar
scripts/zones/Sealions_Den/npcs/Sueleen.lua
17
1989
----------------------------------- -- Area: Sealion's Den -- NPC: Sueleen -- @pos 612 132 774 32 ----------------------------------- package.loaded["scripts/zones/Sealions_Den/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zones/Sealions_Den/TextID...
gpl-3.0
TeamHypersomnia/Augmentations
hypersomnia/content/official/gfx/small_bubble_rt_3.meta.lua
146
1898
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 1, amplification = 5, light_colors = { "255 255 255 255" }, radius = { x = 80, y = 80 }, standard_deviation = 5 }, generate_desaturation = false }, offsets = ...
agpl-3.0
TeamHypersomnia/Augmentations
hypersomnia/content/official/gfx/medium_bubble_11.meta.lua
146
1898
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 1, amplification = 5, light_colors = { "255 255 255 255" }, radius = { x = 80, y = 80 }, standard_deviation = 5 }, generate_desaturation = false }, offsets = ...
agpl-3.0
TeamHypersomnia/Augmentations
hypersomnia/content/official/gfx/small_bubble_rb_3.meta.lua
146
1898
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 1, amplification = 5, light_colors = { "255 255 255 255" }, radius = { x = 80, y = 80 }, standard_deviation = 5 }, generate_desaturation = false }, offsets = ...
agpl-3.0
TeamHypersomnia/Augmentations
hypersomnia/content/official/gfx/small_bubble_rt_6.meta.lua
146
1898
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 1, amplification = 5, light_colors = { "255 255 255 255" }, radius = { x = 80, y = 80 }, standard_deviation = 5 }, generate_desaturation = false }, offsets = ...
agpl-3.0
TeamHypersomnia/Augmentations
hypersomnia/content/official/gfx/big_bubble_1.meta.lua
146
1898
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 1, amplification = 5, light_colors = { "255 255 255 255" }, radius = { x = 80, y = 80 }, standard_deviation = 5 }, generate_desaturation = false }, offsets = ...
agpl-3.0
TeamHypersomnia/Augmentations
hypersomnia/content/official/gfx/big_bubble_14.meta.lua
146
1898
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 1, amplification = 5, light_colors = { "255 255 255 255" }, radius = { x = 80, y = 80 }, standard_deviation = 5 }, generate_desaturation = false }, offsets = ...
agpl-3.0
raburton/nodemcu-firmware
lua_examples/u8glib/u8g_bitmaps.lua
19
2968
-- *************************************************************************** -- Bitmaps Test -- -- This script executes the bitmap features of u8glib to test their Lua -- integration. -- -- Note: It is prepared for SSD1306-based displays. Select your connectivity -- type by calling either init_i2c_display() or ...
mit
Etehadmarg/margbot
plugins/yoda.lua
642
1199
local ltn12 = require "ltn12" local https = require "ssl.https" -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local mashape = load_from_file('data/mashape.lua', { api_key = '' }) local function request(text) local api = "https://yoda.p.mashape.com/yoda?" text = ...
gpl-2.0
nasomi/darkstar
scripts/zones/Northern_San_dOria/npcs/Kuu_Mohzolhi.lua
37
3233
----------------------------------- -- Area: Northern San d'Oria -- NPC: Kuu Mohzolhi -- Starts and Finishes Quest: Growing Flowers -- @zone 231 -- @pos -123 0 80 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require(...
gpl-3.0
OrenjiAkira/lua-html
lib/lux/class.lua
1
5360
--[[ -- -- Copyright (c) 2013-2016 Wilson Kazuo Mizutani -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- -- Permission is granted to anyone to use this software for any purpose, ...
mit
nasomi/darkstar
scripts/globals/abilities/curing_waltz_iv.lua
18
2182
----------------------------------- -- Ability: Curing Waltz IV -- Heals HP to target player. -- Obtained: Dancer Level 70 -- TP Required: 65% -- Recast Time: 00:17 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); -----------------------------------...
gpl-3.0
TeamHypersomnia/Augmentations
hypersomnia/content/official/gfx/covert_magazine.meta.lua
2
2853
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 1, amplification = 60, light_colors = { "255 0 255 255", "0 181 255 255", "0 255 255 255" }, radius = { x = 80, y = 80 }, standard_deviation = 9 }, ...
agpl-3.0
actboy168/YDWE
Development/Component/script/war3/window/main.lua
2
2136
log = require 'log' local fs = require 'bee.filesystem' local ydwe = fs.dll_path():parent_path():parent_path() log.init(ydwe / "logs", "lock_mouse") local ffi = require 'ffi' ffi.cdef[[ void __stdcall Sleep(unsigned long dwMilliseconds); struct RECT { long left; long top; long righ...
gpl-3.0
dageq/Dage-Aliraqi
plugins/inrealm.lua
30
36636
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if is_sudo(msg) or is_realm(msg) and is_admin1(msg) then local group_creator = msg.from.print_name create_group_chat (group_creator, group_na...
gpl-2.0
TeamHypersomnia/Augmentations
hypersomnia/content/official/gfx/metropolis_torso_heavy_gtm_5.meta.lua
2
2835
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 0.43000000715255737, amplification = 140, light_colors = { "89 31 168 255", "48 42 88 255", "61 16 123 0" }, radius = { x = 80, y = 80 }, standard_deviati...
agpl-3.0
nasomi/darkstar
scripts/zones/Abyssea-Grauberg/npcs/Conflux_Surveyor.lua
49
3758
----------------------------------- -- Area: Abyssea - Grauberg -- NPC: Conflux Surveyor -- ----------------------------------- package.loaded["scripts/zones/Abyssea-Grauberg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/abyssea"); require("scripts/...
gpl-3.0
nasomi/darkstar
scripts/zones/The_Eldieme_Necropolis/npcs/_5fn.lua
34
2569
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: North Plate -- @pos 180 -34 71 195 ----------------------------------- ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; -------------------------...
gpl-3.0
TeamHypersomnia/Augmentations
hypersomnia/content/official/gfx/interference_grenade_released.meta.lua
4
1897
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 1, amplification = 60, light_colors = { "255 165 0 255" }, radius = { x = 80, y = 80 }, standard_deviation = 6 }, generate_desaturation = false }, offsets = {...
agpl-3.0
Gamerbude/Wasteland
mods/coffin/init.lua
2
2420
minetest.register_node("coffin:gravestone", { description = "Gravestone", tiles = {"default_stone.png"}, paramtype = "light", paramtype2 = "facedir", groups = {dig_immediate = 1, cracky = 3}, sounds = default.node_sound_stone_defaults(), drop = "default:cobble", drawtype = "nodebox", node_box = {type = "fixed"...
gpl-3.0
ngeiswei/ardour
share/scripts/_midi_rewrite.lua
4
1914
ardour { ["type"] = "session", name = "Rewrite Midi", license = "MIT", author = "Ardour Team", description = [[An example session script preprocesses midi buffers.]] } function factory () -- this function is called in every process cycle, before processing return function (n_samples) _, t =...
gpl-2.0
DevTeam-Co/maximus
bot/utils.lua
8
15523
--Begin Utils.lua By #BeyondTeam :) function serialize_to_file(data, file, uglify) file = io.open(file, 'w+') local serialized if not uglify then serialized = serpent.block(data, { comment = false, name = '_' }) else serialized = serpent.dump(data) end file:write(serialized) ...
gpl-3.0
nasomi/darkstar
scripts/globals/items/seafood_stewpot.lua
36
1391
----------------------------------------- -- ID: 5238 -- Item: Seafood Stewpot -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +10% Cap 50 -- MP +10 -- Accuracy 5 -- Evasion 5 ----------------------------------------- require("scripts/globals/status"); ----------...
gpl-3.0
DevTeam-Co/maximus
plugins/fullhlp.lua
1
4158
local function run(msg, matches) if matches[1] == "help" then if matches[2] == "sudo" and is_sudo(msg) then return "<b>You know it all Babe :|</b>" end if macthes[1] == "help" and is_owner(msg) then local text = [[<b>Owner help List</b>\n\n<b>[!#/]Lock [link|flood|tag|edit|ar...
gpl-3.0
coolflyreg/gs
3rd/skynet-mingw/lualib/skynet/remotedebug.lua
54
5502
local skynet = require "skynet" local debugchannel = require "debugchannel" local socket = require "socket" local injectrun = require "skynet.injectcode" local table = table local debug = debug local coroutine = coroutine local sethook = debugchannel.sethook local M = {} local HOOK_FUNC = "raw_dispatch_message" loca...
gpl-2.0
nasomi/darkstar
scripts/globals/weaponskills/leg_sweep.lua
18
1532
----------------------------------- -- Leg Sweep -- Polearm weapon skill -- Skill Level: 100 -- Stuns enemy. Chance of stunning varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Thunder Gorget. -- Aligned with the Thunder Belt. -- Element: None -- Modifiers: STR:30% -- 100%TP 200%TP 3...
gpl-3.0
renyaoxiang/QSanguosha-For-Hegemony
extension-doc/6-Applications.lua
8
9477
--技能讲解5:基本技能类型的组合和复杂技能的实现(一) --[[ 在游戏中,对于有些技能来说,我们不可能仅仅通过写一个技能来实现这些效果。 因此,基本技能的组合对于国战(也包括身份)来说是非常重要的。 在这个文档中,我们会介绍两种技能组合的形式。 第一种是并列式,也就是两个技能是并列存在的。 先来看这样一个技能: ]] --[[ 奇心:锁定技,你的手牌上限增加X,X为你当前的体力;你的攻击范围增加X,X为你损失的体力。 ]] --[[ 分析:通过技能描述,我们可以看出这个技能是由两个基本技能组成: 1.手牌上限 2.攻击范围 因此,我们需要写两个技能就能完成任务。 代码如下: ]] devQixin = sg...
gpl-3.0
nasomi/darkstar
scripts/zones/Mhaura/npcs/Standing_Bear.lua
34
1052
----------------------------------- -- Area: Mhaura -- NPC: Standing Bear ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Mhaura/TextIDs"); ----------------------------------- require("scripts/globals/set...
gpl-3.0
nasomi/darkstar
scripts/zones/Abyssea-Grauberg/npcs/Atma_Infusionist.lua
65
1058
----------------------------------- -- Area: Abyssea - Grauberg -- NPC: Atma Infusionist -- ----------------------------------- package.loaded["scripts/zones/Abyssea-Grauberg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/abyssea"); require("scripts/...
gpl-3.0
nasomi/darkstar
scripts/zones/Al_Zahbi/npcs/Bornahn.lua
19
1147
----------------------------------- -- Area: Al Zahbi -- NPC: Bornahn -- Guild Merchant NPC: Goldsmithing Guild -- @pos 46.011 0.000 -42.713 48 ----------------------------------- package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); requi...
gpl-3.0
MatthewDwyer/botman
mudlet/profiles/newbot/scripts/reset_bot.lua
1
6443
--[[ Botman - A collection of scripts for managing 7 Days to Die servers Copyright (C) 2020 Matthew Dwyer This copyright applies to the Lua source code in this Mudlet profile. Email smegzor@gmail.com URL http://botman.nz Source https://bitbucket.org/mhdwyer/botman --]] fu...
gpl-3.0
nasomi/darkstar
scripts/zones/Windurst_Walls/npcs/Four_of_Diamonds.lua
38
1047
----------------------------------- -- Area: Windurst Walls -- NPC: Four of Diamonds -- Type: Standard NPC -- @zone: 239 -- @pos -187.184 -3.545 151.092 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil; --...
gpl-3.0
nasomi/darkstar
scripts/zones/West_Ronfaure/npcs/Doladepaiton_RK.lua
28
3142
----------------------------------- -- Area: West Ronfaure -- NPC: Doladepaiton, R.K. -- Type: Outpost Conquest Guards -- @pos -448 -19 -214 100 ------------------------------------- package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil; -------------------------------------- require("scripts/globals/c...
gpl-3.0
nasomi/darkstar
scripts/globals/items/rice_ball.lua
21
1402
----------------------------------------- -- ID: 4405 -- Item: Rice Ball -- Food Effect: 30Min, All Races ----------------------------------------- -- HP 10, -- Vit +2 -- Dex -1 -- hHP +1 -- Effect with enhancing equipment (Note: these are latents on gear with the effect) -- Def +50 -------------------------...
gpl-3.0
dageq/Dage-Aliraqi
plugins/en-banhammer.lua
11
12600
local function pre_process(msg) local data = load_data(_config.moderation.data) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Che...
gpl-2.0