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
wingo/snabb
lib/pflua/src/pf/utils.lua
15
5364
module(...,package.seeall) local ffi = require("ffi") local C = ffi.C ffi.cdef[[ struct pflua_timeval { long tv_sec; /* seconds */ long tv_usec; /* microseconds */ }; int gettimeofday(struct pflua_timeval *tv, struct timezone *tz); ]] -- now() returns the current time. The first time it is called, the --...
apache-2.0
bmscoordinators/FFXI-Server
scripts/globals/items/stick_of_pepperoni.lua
12
1596
----------------------------------------- -- ID: 5660 -- Item: stick_of_pepperoni -- Food Effect: 30Min, All Races ----------------------------------------- -- HP % 3 (assuming 3% from testing, no known cap) -- Strength 3 -- Intelligence -1 -- Attack % 60 (assuming 60%, cap 30) -----------------------------------------...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/zones/Bastok_Mines/npcs/Leonie.lua
14
1058
----------------------------------- -- Area: Bastok Mines -- NPC: Leonie -- Type: Room Renters -- @zone 234 -- @pos 118.871 -0.004 -83.916 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; require("scripts/...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/zones/Spire_of_Holla/npcs/_0h3.lua
66
1356
----------------------------------- -- Area: Spire_of_Holla -- NPC: web of regret ----------------------------------- package.loaded["scripts/zones/Spire_of_Holla/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/zones/Spire_of_Holla/TextIDs"); -------------------...
gpl-3.0
sajadaltaiee/telebot
plugins/settings.lua
40
41643
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
bmscoordinators/FFXI-Server
scripts/zones/Quicksand_Caves/Zone.lua
10
6759
----------------------------------- -- -- Zone: Quicksand_Caves (208) -- ----------------------------------- package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Quicksand_Caves/TextIDs"); require("scripts/globals/settings"); require("scripts/globals/...
gpl-3.0
deepak78/luci
libs/web/luasrc/i18n.lua
11
3847
--[[ LuCI - Internationalisation Description: A very minimalistic but yet effective internationalisation module FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You ...
apache-2.0
trigrass2/gopher-lua
_lua5.1-tests/math.lua
7
5452
print("testing numbers and math lib") do local a,b,c = "2", " 3e0 ", " 10 " assert(a+b == 5 and -b == -3 and b+"2" == 5 and "10"-c == 0) assert(type(a) == 'string' and type(b) == 'string' and type(c) == 'string') assert(a == "2" and b == " 3e0 " and c == " 10 " and -c == -" 10 ") assert(c%a == 0 and a^b =...
mit
bmscoordinators/FFXI-Server
scripts/zones/Windurst_Woods/npcs/Nya_Labiccio.lua
17
1516
----------------------------------- -- Area: Windurst Woods -- NPC: Nya Labiccio -- Only sells when Windurst controlls Gustaberg Region -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["scripts/zones/Windurst_...
gpl-3.0
jochem-brouwer/VO2_Model
Run_RBIM_Resistance.lua
1
1831
local Lattice = require 'Lattice' local MyLattice = Lattice:New(); --math.randomseed(os.time()) local Model = require 'Model'; Model = Model:New(); Model.Lattice = MyLattice; MyLattice:Init(100,100,1); MyLattice:InitRandomField(10,0); MyLattice.Temperature = 1; -- If you want to calculate resistances, also init t...
mit
bmscoordinators/FFXI-Server
scripts/zones/Monastic_Cavern/npcs/Altar.lua
6
1824
----------------------------------- -- Area: Monastic Cavern -- NPC: Altar -- Involved in Quests: The Circle of Time -- @pos 108 -2 -144 150 ----------------------------------- package.loaded["scripts/zones/Monastic_Cavern/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require...
gpl-3.0
bmscoordinators/FFXI-Server
scripts/globals/items/bowl_of_salt_ramen_+1.lua
12
1923
----------------------------------------- -- ID: 6463 -- Item: bowl_of_salt_ramen_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- DEX +6 -- VIT +6 -- AGI +6 -- Accuracy +6% (cap 95) -- Ranged Accuracy +6% (cap 95) -- Evasion +6% (cap 95) -- Resist Slow +15 ------------------------------...
gpl-3.0
xomachine/textadept-spellchecker
suggestions.lua
1
3245
local backend = require("textadept-spellchecker.backend") local check = require("textadept-spellchecker.check") --------------------------- -- Indicator click handler --------------------------- local SUGGESTION_LIST = 4242 -- List id -- autocomplete handler will be placed here to avoid presence of -- many anonymous h...
mit
bmscoordinators/FFXI-Server
scripts/globals/items/roast_trout.lua
12
1351
----------------------------------------- -- ID: 4404 -- Item: roast_trout -- Food Effect: 30Min, All Races ----------------------------------------- -- Dexterity 3 -- Mind -1 -- Ranged ATT % 14 (cap 50) ----------------------------------------- require("scripts/globals/status"); -------------------------------------...
gpl-3.0
bnetcc/darkstar
scripts/zones/Maze_of_Shakhrami/npcs/Planar_Rift.lua
1
2306
----------------------------------- -- Area: Maze_of_Shakhrami -- NPC: Planar Rift ----------------------------------- package.loaded["scripts/zones/Maze_of_Shakhrami/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/Maze_of_Shakhrami/TextIDs"); --------...
gpl-3.0
Ravenlord/ddp-testing
tests/calculated_values/dependent/04_trigger-insert.lua
1
2244
--[[! - This is free and unencumbered software released into the public domain. - - Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form - or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. - - In jurisdictions ...
unlicense
abbasgh12345/creadabbas
bot/creed.lua
1
9186
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
paulcuth/starlight
test/lua/metamethods.lua
4
12597
-------------------------------------------------------------------------- -- Moonshine - a Lua virtual machine. -- -- Email: moonshine@gamesys.co.uk -- http://moonshinejs.org -- -- Copyright (c) 2013-2015 Gamesys Limited. All rights reserved. -- -- Permission is hereby granted, free of charge, to any person obtaining ...
mit
timmerk/cardpeek
dot_cardpeek_dir/scripts/calypso.lua
16
9370
-- -- This file is part of Cardpeek, the smartcard reader utility. -- -- Copyright 2009-2013 by 'L1L1' -- -- Cardpeek is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (a...
gpl-3.0
bnetcc/darkstar
scripts/globals/weaponskills/armor_break.lua
3
1808
----------------------------------- -- Armor Break -- Great Axe weapon skill -- Skill level: 100 -- Lowers enemy's defense. Duration of effect varies with TP. -- Lowers defense by as much as 25% if unresisted. -- Strong against: Antica, Bats, Cockatrice, Dhalmel, Lizards, Mandragora, Worms. -- Immune: Ahriman. -- Will ...
gpl-3.0
awesomeWM/awesome
tests/examples/sequences/client/swap_bydirection1.lua
1
1822
--DOC_GEN_IMAGE --DOC_NO_USAGE --DOC_HIDE_START local module = ... local awful = {tag = require("awful.tag"), layout = require("awful.layout"), client = require("awful.client"), screen = require("awful.screen")} require("awful.ewmh") screen[1]._resize {x = 0, width = 640, height = 360} screen.fake_add(660, 0, 640,...
gpl-2.0
yswifi/APlan
build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/applications/luci-pbx/luasrc/model/cbi/pbx-advanced.lua
99
14473
--[[ Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com> This file is part of luci-pbx. luci-pbx is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or ...
gpl-2.0
bnetcc/darkstar
scripts/globals/items/sacred_maul.lua
5
1224
----------------------------------------- -- ID: 18392 -- Item: Sacred Maul -- Additional Effect: Light Damage -- Enchantment: "Enlight" ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------- fun...
gpl-3.0
freeciv/freeciv
dependencies/tolua-5.2/src/bin/lua/doit.lua
1
1151
-- Generate binding code -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- Last update: Apr 2003 -- $Id: doit.lua,v 1.3 2009/11/24 16:45:13 fabraham Exp $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author ...
gpl-2.0
yswifi/APlan
build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/modules/niu/luasrc/model/cbi/niu/wireless/ap.lua
51
1406
local cursor = require "luci.model.uci".cursor() if not cursor:get("wireless", "ap") then cursor:section("wireless", "wifi-iface", "ap", {device = "_", doth = "1", _niu = "1", mode = "ap"}) cursor:save("wireless") end local function deviceroute(self) cursor:unload("wireless") local d = cursor:get("wireless", "a...
gpl-2.0
sylvanaar/prat-3-0
modules/ChannelNames.lua
1
19378
--------------------------------------------------------------------------------- -- -- Prat - A framework for World of Warcraft chat mods -- -- Copyright (C) 2006-2018 Prat Development Team -- -- This program is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public Licen...
gpl-3.0
Oneymus/Vyzor
component/padding.lua
1
3243
--- This Component defines the Padding of a @{Frame}. -- The Padding is between the Content and the @{Border}. -- -- See http://doc.qt.nokia.com/4.7-snapshot/stylesheet-customizing.html. -- @classmod Padding local Base = require("vyzor.base") local Padding = Base("Component", "Padding") --- Padding constructor. -- @...
mit
erig0/textadept-vi
test/tests/range.lua
1
1080
-- Check parsing of ex ranges local assertEq = test.assertEq local log = test.log local ts = test.tostring local vi_mode_ex = require'vi_mode_ex' -- Have a file open test.open('1_100.txt') local ranges = { -- List of address string and expected result -- result: { { start, end }, nextpos } (nextpos is in th...
mit
bnetcc/darkstar
scripts/zones/Lower_Delkfutts_Tower/npcs/Planar_Rift.lua
1
1816
----------------------------------- -- Area: Lower_Delkfutts_Tower -- NPC: Planar Rift ----------------------------------- package.loaded["scripts/zones/Lower_Delkfutts_Tower/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/Lower_Delkfutts_Tower/TextIDs"...
gpl-3.0
Wiladams/LLUI
src/v4l2_controls.lua
1
35828
local bit = require("bit") local lshift, rshift, band, bor = bit.lshift, bit.rshift, bit.band, bit.bor local C = {} -- Control classes C.V4L2_CTRL_CLASS_USER = 0x00980000 -- Old-style 'user' controls C.V4L2_CTRL_CLASS_MPEG = 0x00990000 -- MPEG-compression controls C.V4L2_CTRL_CLASS_CAMERA = 0x009a0000 -- Camer...
mit
arashvp1/arashvp2
libs/dateparser.lua
1
6222
local difftime, time, date = os.difftime, os.time, os.date local format = string.format local tremove, tinsert = table.remove, table.insert local pcall, pairs, ipairs, tostring, tonumber, type, setmetatable = pcall, pairs, ipairs, tostring, tonumber, type, setmetatable local dateparser={} --we shall use the host OS's...
gpl-3.0
norefle/facil
src/facil/create.lua
1
1925
--[[---------------------------------------------------------------------------- --- @file create.lua --- @brief fácil's create command. ----------------------------------------------------------------------------]]-- local Core = require "facil.core" local _M = {} --- Creates new card -- @param name Short descripti...
mit
bnetcc/darkstar
scripts/zones/Lower_Jeuno/npcs/Panta-Putta.lua
5
3837
----------------------------------- -- Area: Lower Jeuno -- NPC: Panta-Putta -- Starts and Finishes Quest: The Wonder Magic Set, The kind cardian -- Involved in Quests: The Lost Cardian -- @zone 245 -- !pos -61 0 -140 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; ------...
gpl-3.0
bnetcc/darkstar
scripts/zones/Pashhow_Marshlands_[S]/mobs/Croque-mitaine.lua
1
1356
----------------------------------- -- Zone: Pashhow Marshlands (S) -- NM: Croque-mitaine ----------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/utils"); ----------------------------------- -- onMobInitialize --------------------------------...
gpl-3.0
bnetcc/darkstar
scripts/zones/Norg/npcs/Gilgamesh.lua
1
3014
----------------------------------- -- Area: Norg -- NPC: Gilgamesh -- !pos 122.452 -9.009 -12.052 252 ----------------------------------- require("scripts/globals/missions"); ----------------------------------- function onTrade(player,npc,trade) if (player:getCurrentMission(BASTOK) == THE_PIRATE_S_COVE and play...
gpl-3.0
notcake/vfs
lua/vfs/protocol/protocol.lua
1
2307
VFS.Protocol.ResponseTable = {} VFS.Protocol.StringTable = VFS.StringTable () function VFS.Protocol.Register (packetType, class) VFS.Protocol.StringTable:Add (packetType) class.Type = packetType class.TypeId = VFS.Protocol.StringTable:HashFromString (packetType) end function VFS.Protocol.RegisterNotification (pack...
gpl-3.0
bnetcc/darkstar
scripts/globals/effects/voidstorm.lua
35
1337
----------------------------------- -- -- -- ----------------------------------- ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) target:addMod(MOD_STR,math.floor(effect:getPower()/2)); target:addMod(MOD_DEX,math.floor(effect:g...
gpl-3.0
jpcy/bgfx
3rdparty/spirv-headers/include/spirv/1.1/spirv.lua
59
26704
-- Copyright (c) 2014-2018 The Khronos Group Inc. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and/or associated documentation files (the "Materials"), -- to deal in the Materials without restriction, including without limitation -- the rights to use, copy, mod...
bsd-2-clause
sylvanaar/prat-3-0
modules/Substitutions.lua
1
20473
--------------------------------------------------------------------------------- -- -- Prat - A framework for World of Warcraft chat mods -- -- Copyright (C) 2006-2018 Prat Development Team -- -- This program is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public Lice...
gpl-3.0
bnetcc/darkstar
scripts/globals/items/slice_of_marinara_pizza_+1.lua
1
1231
----------------------------------------- -- ID: 6212 -- Item: slice of marinara pizza +1 -- Food Effect: 60 minutes, all Races ----------------------------------------- -- HP +25 -- Accuracy+11% (Max. 58) -- Attack+21% (Max. 55) -- "Undead Killer"+5 ----------------------------------------- require("scripts/globals/st...
gpl-3.0
luc-tielen/lua-quickcheck
lqc/generators/table.lua
2
6241
--- Module for generating tables of varying sizes and types -- @module lqc.generators.table -- @alias new_table local Gen = require 'lqc.generator' local random = require 'lqc.random' local bool = require 'lqc.generators.bool' local int = require 'lqc.generators.int' local float = require 'lqc.generators.float' local...
mit
gamebytes/pioneer
data/models/buildings/city3k/combo/combos.lua
1
2036
--[[ --A bunch of differently coloured combos --metallic blue define_model('combo', { info = { bounding_radius = 10, materials={'default'}, tags = {'city_building'}, }, static = function(lod) set_material('default', .43,.5,.63,1,1.26,1.4,1.66,30) use_material('default') call_model('combo0', v(0,0,0),v(1,...
gpl-3.0
norefle/facil
src/facil/init.lua
1
1546
--[[---------------------------------------------------------------------------- --- @file init.lua --- @brief fácil's init command. ----------------------------------------------------------------------------]]-- local Core = require "facil.core" local Template = { config = require "facil.template.default_config...
mit
mwoz123/koreader
frontend/apps/reader/modules/readerpagemap.lua
1
18673
local BD = require("ui/bidi") local Blitbuffer = require("ffi/blitbuffer") local CenterContainer = require("ui/widget/container/centercontainer") local Device = require("device") local Font = require("ui/font") local FrameContainer = require("ui/widget/container/framecontainer") local Geom = require("ui/geometry") loca...
agpl-3.0
nsimplex/Tallbrood
scripts/tallbrood/wicker/utils/string.lua
2
1130
--[[ Copyright (C) 2013 simplex This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that ...
gpl-2.0
Evsdd/domoticz
dzVents/runtime/device-adapters/Adapters.lua
4
4226
local genericAdapter = require('generic_device') local deviceAdapters = { 'airquality_device', 'alert_device', 'ampere_1_phase_device', 'ampere_3_phase_device', 'barometer_device', 'counter_device', 'custom_sensor_device', 'distance_device', 'electric_usage_device', 'evohome_device', 'gas_device', 'group_d...
gpl-3.0
bnetcc/darkstar
scripts/zones/Gusgen_Mines/npcs/qm4.lua
5
1112
----------------------------------- -- Area: Gusgen Mines -- NPC: qm4 (???) -- Involved In Quest: Ghosts of the Past -- !pos -174 0 369 196 ----------------------------------- package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("s...
gpl-3.0
bnetcc/darkstar
scripts/globals/mobskills/pyric_bulwark.lua
5
1129
--------------------------------------------- -- Pyric Bulwark -- -- Description: Grants a Physical Shield effect for a time. -- Type: Enhancing -- -- Range: Self --------------------------------------------- require("scripts/globals/monstertpmoves"); require("scripts/globals/settings"); require("scripts/globals/status...
gpl-3.0
bnetcc/darkstar
scripts/zones/Bastok_Markets/npcs/Harmodios.lua
5
1892
----------------------------------- -- Area: Bastok Markets -- NPC: Harmodios -- Standard Merchant NPC -- !pos -79.928 -4.824 -135.114 235 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bastok_Markets/TextIDs"...
gpl-3.0
samdmarshall/necromancy
src/necromancy/models/color.lua
1
1294
local struct = require("struct") local color = {} Color = struct { normal = "", bold = "", underline = "", } color.DefaultDefault = Color { normal = "default", bold = "bold", underline = "underline", } color.DefaultBlack = Color { normal = "black", bold = "bold", underline = "underline", } color...
bsd-3-clause
lcf258/openwrtcn
applications/luci-app-asterisk/luasrc/model/cbi/asterisk/trunk_sip.lua
68
2351
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local ast = require("luci.asterisk") -- -- SIP trunk info -- if arg[2] == "info" then form = SimpleForm("asterisk", "SIP Trunk Information") form.reset = false form.submit = "Back to overview" local info,...
apache-2.0
bnetcc/darkstar
scripts/zones/Cloister_of_Storms/Zone.lua
5
1078
----------------------------------- -- -- Zone: Cloister_of_Storms (202) -- ----------------------------------- package.loaded["scripts/zones/Cloister_of_Storms/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Cloister_of_Storms/TextIDs"); ----------------...
gpl-3.0
BHH-team/BHH-team
plugins/inpm.lua
1
3114
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
yswifi/APlan
build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/applications/luci-radvd/luasrc/model/cbi/radvd/interface.lua
78
7996
--[[ LuCI - Lua Configuration Interface Copyright 2010 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 $Id$ ]]-- lo...
gpl-2.0
bnetcc/darkstar
scripts/zones/Port_San_dOria/npcs/Answald.lua
5
1305
----------------------------------- -- Area: Port San d'Oria -- NPC: Answald -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Northern_San_dOria/TextIDs"); require("scripts/globals/quest...
gpl-3.0
bnetcc/darkstar
scripts/zones/Hall_of_Transference/npcs/_0e8.lua
5
1366
----------------------------------- -- Area: Hall of Transference -- NPC: Large Apparatus (Right) - Mea -- !pos 290.253 -81.849 -42.381 14 ----------------------------------- package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Hall_of_Transfere...
gpl-3.0
bnetcc/darkstar
scripts/globals/spells/sage_etude.lua
5
1579
----------------------------------------- -- Spell: Sage Etude -- Static INT Boost, BRD 66 ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCastingCheck(caster,target,...
gpl-3.0
timmerk/cardpeek
dot_cardpeek_dir/scripts/vitale_2.lua
17
5057
-- -- This file is part of Cardpeek, the smartcard reader utility. -- -- Copyright 2009-2013 by 'L1L1' -- -- Cardpeek is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (a...
gpl-3.0
leonardoaxe/OpenRA
mods/ra/maps/soviet-06a/soviet06a-AI.lua
19
3128
IdleHunt = function(unit) if not unit.IsDead then Trigger.OnIdle(unit, unit.Hunt) end end IdlingUnits = function() local lazyUnits = enemy.GetGroundAttackers() Utils.Do(lazyUnits, function(unit) Trigger.OnDamaged(unit, function() Trigger.ClearAll(unit) Trigger.AfterDelay(0, function() IdleHunt(unit) end) ...
gpl-3.0
bnetcc/darkstar
scripts/globals/spells/bluemagic/barbed_crescent.lua
1
1428
----------------------------------------- -- Spell: Barbed Crescent ----------------------------------------- require("scripts/globals/bluemagic"); require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCastingCheck...
gpl-3.0
bnetcc/darkstar
scripts/zones/Bastok_Mines/npcs/Rashid.lua
5
3349
----------------------------------- -- Area: Bastok Mines -- NPC: Rashid -- Type: Mission Giver -- !pos -8.444 -2 -123.575 234 ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/global...
gpl-3.0
bnetcc/darkstar
scripts/zones/Nashmau/npcs/Kakkaroon.lua
5
1923
----------------------------------- -- Area: Nashmau -- NPC: Kakkaroon -- Standard Info NPC -- !pos 13.245 0.000 -25.307 53 ----------------------------------- package.loaded["scripts/zones/Nashmau/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/settings...
gpl-3.0
best98ir/SASAN
plugins/tools.lua
1
72759
--Begin Tools.lua :) local SUDO = 157059515 -- put Your ID here! <=== function exi_files(cpath) local files = {} local pth = cpath for k, v in pairs(scandir(pth)) do table.insert(files, v) end return files end local function file_exi(name, cpath) for k,v in pairs(exi_files(cpath)) do ...
gpl-3.0
casperkaae/nn
Criterion.lua
17
1247
local Criterion = torch.class('nn.Criterion') function Criterion:__init() self.gradInput = torch.Tensor() self.output = 0 end function Criterion:updateOutput(input, target) end function Criterion:forward(input, target) return self:updateOutput(input, target) end function Criterion:backward(input, target) ...
bsd-3-clause
bnetcc/darkstar
scripts/zones/QuBia_Arena/bcnms/those_who_lurk_in_shadows.lua
5
2390
----------------------------------- -- Area: Qu'Bia Arena -- NPC: Those Who Lurk in Shadows -- !pos -221 -24 19 206 ----------------------------------- package.loaded["scripts/zones/QuBia_Arena/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/missions"...
gpl-3.0
awesomeWM/awesome
lib/wibox/widget/progressbar.lua
1
20398
--------------------------------------------------------------------------- --- A progressbar widget. -- -- ![Components](../images/progressbar.svg) -- -- Common usage examples -- ===================== -- -- To add text on top of the progressbar, a `wibox.layout.stack` can be used: -- --@DOC_wibox_widget_progressbar_te...
gpl-2.0
BHH-team/BHH-team
plugins/all.lua
1
4767
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
fengshao0907/Atlas
lib/proxy/balance.lua
41
2807
--[[ $%BEGINLICENSE%$ Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is dis...
gpl-2.0
knewron-technologies/1btn
firmware/release v2/setup.lua
3
1136
-- gpio pin mapping RED = 1; GREEN = 2; YELLOW = 3; BLUE = 4; MAGENTA = 5; CYAN = 6 WHITE = 7; redLED = 7; greenLED = 6; blueLED = 5; node.setcpufreq(node.CPU160MHZ); -- set LED pins as output gpio.mode(redLED, gpio.OUTPUT); gpio.mode(greenLED, gpio.OUTPUT); gpio.mode(blueLED, gpio.OUTPUT); function setLED(ledColor...
mit
Kaixhin/FGMachine
examples/Recurrent-Attention-Model/dataset.lua
1
1485
local mnist = require 'mnist' -- Load data local dataset = {} dataset.train = mnist.traindataset() dataset.test = mnist.testdataset() -- Save dataset constants dataset.height = 28 dataset.width = 28 dataset.channels = 1 dataset.classes = 10 -- Assign tensors local trainSet = { X = torch.zeros(dataset.train.size, da...
mit
awesomeWM/awesome
lib/wibox/layout/flex.lua
1
7853
--------------------------------------------------------------------------- -- Split the space equally between multiple widgets. -- -- -- A `flex` layout may be initialized with any number of child widgets, and -- during runtime widgets may be added and removed dynamically. -- -- On the main axis, the layout will divid...
gpl-2.0
cfromknecht/N-Body
third_party/glsdk/glload/codegen/_MakeCoreHeaderFile.lua
5
2261
--[[ The function MakeCoreHeaderFile will generate the core source file. This file will contain all of the core function pointers (including core extensions) in a big struct. It also exposes a function that will set these function pointers from the default version of OpenGL. The function is called "void [funcPrefix]e...
mit
TeleDALAD/test
bot/bot.lua
1
6651
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") local f = assert(io.popen('/usr/bin/git describe --tags', 'r')) VERSION = assert(f:read('*a')) f:close() -- This function is ...
gpl-2.0
bnetcc/darkstar
scripts/zones/West_Ronfaure/npcs/qm3.lua
5
1157
----------------------------------- -- Area: West Ronfaure -- NPC: qm3 (???) -- Involved in Quest: The Dismayed Customer -- !pos -399 -10 -438 100 ----------------------------------- package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); r...
gpl-3.0
vowstar/nodemcu-firmware
app/cjson/tests/bench.lua
145
3247
#!/usr/bin/env lua -- This benchmark script measures wall clock time and should be -- run on an unloaded system. -- -- Your Mileage May Vary. -- -- Mark Pulford <mark@kyne.com.au> local json_module = os.getenv("JSON_MODULE") or "cjson" require "socket" local json = require(json_module) local util = require "cjson.ut...
mit
awesomeWM/awesome
tests/examples/awful/popup/wiboxtypes.lua
1
7591
--DOC_GEN_IMAGE --DOC_HIDE_ALL --DOC_NO_USAGE --DOC_NO_DASH require("_date") local awful = require("awful") local gears = require("gears") local naughty = require("naughty") local wibox = require("wibox") local beautiful = require("beautiful") --DOC_HIDE local assets = require("beautiful.theme_assets")...
gpl-2.0
TurkeyMan/premake-core
modules/gmake2/tests/test_gmake2_pch.lua
11
4768
-- -- test_gmake2_pch.lua -- Validate the setup for precompiled headers in makefiles. -- (c) 2016-2017 Jason Perkins, Blizzard Entertainment and the Premake project -- local p = premake local suite = test.declare("gmake2_pch") local p = premake local gmake2 = p.modules.gmake2 local project = p.project -- -- ...
bsd-3-clause
leonardoaxe/OpenRA
mods/cnc/maps/nod07a/nod07a-AI.lua
5
5825
AttackPaths = { { AttackPath1 }, { AttackPath2 } } GDIBase = { GDICYard, GDIPyle, GDIWeap, GDIHQ, GDIProc, GDINuke1, GDINuke2, GDINuke3, GDIBuilding1, GDIBuilding2, GDIBuilding3, GDIBuilding4, GDIBuilding5, GDIBuilding6, GDIBuilding7, GDIBuilding8 } InfantryAttackGroup = { } InfantryGroupSize = 4 InfantryProductionCool...
gpl-3.0
bnetcc/darkstar
scripts/globals/spells/regen_iv.lua
5
1338
----------------------------------------- -- Spell: Regen IV -- Gradually restores target's HP. ----------------------------------------- -- Scale down duration based on level -- Composure increases duration 3x ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic")...
gpl-3.0
bnetcc/darkstar
scripts/zones/Southern_San_dOria/npcs/Anniversary_Mog.lua
1
9649
----------------------------------- -- Southern Sandy Anniversary Moogle -- anniversary band every day if not in inventory and free slot -- Random effect applied once an hour when player talks to moogle ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ---------------...
gpl-3.0
bnetcc/darkstar
scripts/globals/mobskills/erratic_flutter.lua
3
1440
--------------------------------------------- -- Erratic Flutter -- -- Description: Deals Fire damage around the caster. Grants the effect of Haste. -- Family: Wamoura -- Monipulators: Wamoura (MON), Coral Wamoura (MON) -- Level (Monstrosity): 60 -- TP Cost (Monstrosity): 1500 TP -- Type: Enhancing -- Element: Fire -- ...
gpl-3.0
javaliker/google-diff-match-patch
lua/diff_match_patch.lua
265
73869
--[[ * Diff Match and Patch * * Copyright 2006 Google Inc. * http://code.google.com/p/google-diff-match-patch/ * * Based on the JavaScript implementation by Neil Fraser. * Ported to Lua by Duncan Cross. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance ...
apache-2.0
bnetcc/darkstar
scripts/zones/Castle_Oztroja/npcs/_m75.lua
5
1990
----------------------------------- -- Area: Castle Oztroja -- NPC: _m75 (Torch Stand) -- Notes: Opens door _477 when _m72 to _m75 are lit -- !pos -139.643 -72.113 -62.682 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require("...
gpl-3.0
bnetcc/darkstar
scripts/zones/Western_Adoulin/npcs/Bilp.lua
7
1605
----------------------------------- -- Area: Western Adoulin -- NPC: Bilp -- Type: Standard NPC and Quest NPC -- Starts and Involved with Quest: 'Scaredy-Cats' -- @zone 256 -- !pos -91 3 0 256 ----------------------------------- require("scripts/globals/quests"); ----------------------------------- function onTrad...
gpl-3.0
bnetcc/darkstar
scripts/zones/Port_Windurst/npcs/Explorer_Moogle.lua
5
1376
----------------------------------- -- Area: Port Windurst -- NPC: Explorer Moogle -- Working 100% ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/teleports"); ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) ...
gpl-3.0
bnetcc/darkstar
scripts/globals/weaponskills/double_thrust.lua
26
1348
----------------------------------- -- Double Thrust -- Polearm weapon skill -- Skill Level: 5 -- Delivers a two-hit attack. Damage varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Light Gorget. -- Aligned with the Light Belt. -- Element: None -- Modifiers: STR:30% -- 100%TP 200%TP 300%TP -- 1...
gpl-3.0
bnetcc/darkstar
scripts/zones/Abyssea-Tahrongi/mobs/Iratham.lua
1
2137
----------------------------------- -- Area: Abyssea - Tahrongi (45) -- Mob: Iratham ----------------------------------- package.loaded["scripts/zones/Abyssea-Tahrongi/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Abyssea-Tahrongi/TextIDs"); require("scripts/globals/abyssea"); require("sc...
gpl-3.0
TurkeyMan/premake-core
tests/project/test_location.lua
32
1123
-- -- tests/project/test_location.lua -- Test handling of the projects's location field. -- Copyright (c) 2013 Jason Perkins and the Premake project -- local suite = test.declare("project_location") -- -- Setup and teardown -- local wks, prj function suite.setup() wks = test.createWorkspace() end local fun...
bsd-3-clause
bnetcc/darkstar
scripts/globals/weaponskills/tachi_kasha.lua
3
1971
----------------------------------- -- Tachi Kasha -- Great Katana weapon skill -- Skill Level: 250 -- Paralyzes target. Damage varies with TP. -- Paralyze effect duration is 60 seconds when unresisted. -- In order to obtain Tachi: Kasha, the quest The Potential Within must be completed. -- Will stack with Sneak Attack...
gpl-3.0
bnetcc/darkstar
scripts/zones/Qulun_Dome/mobs/Diamond_Quadav.lua
5
1741
----------------------------------- -- Area: Qulun_Dome -- NM: Diamond_Quadav -- Note: PH for Za Dha Adamantking PH ----------------------------------- package.loaded["scripts/zones/Qulun_Dome/TextIDs"] = nil; ----------------------------------- mixins = {require("scripts/mixins/job_special")}; require("scripts/zone...
gpl-3.0
mwoz123/koreader
frontend/document/documentregistry.lua
1
7904
--[[-- This is a registry for document providers ]]-- local logger = require("logger") local lfs = require("libs/libkoreader-lfs") local util = require("util") local DocumentRegistry = { registry = {}, providers = {}, filetype_provider = {}, mimetype_ext = {}, } function DocumentRegistry:addProvider(...
agpl-3.0
bnetcc/darkstar
scripts/zones/Aht_Urhgan_Whitegate/Shared.lua
5
5550
----------------------------------- -- Tables and Functions Used at Multiple Places within Aht Urgan Whitegate ----------------------------------- require("scripts/globals/settings"); -- Lua Set Initializer http://www.lua.org/pil/11.5.html function Set (list) local set = {} for _, l in ipairs(list) do set[l] =...
gpl-3.0
TAJaroszewski/lma_contrail_monitoring
deployment_scripts/puppet/modules/lma_collector/files/plugins/filters/afd_workers.lua
1
3493
-- Copyright 2015 Mirantis, Inc. -- -- 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 -- -- Unless required by applicable law or agreed to ...
apache-2.0
bnetcc/darkstar
scripts/commands/mp.lua
22
1359
--------------------------------------------------------------------------------------------------- -- func: mp <amount> <player> -- desc: Sets the GM or target players mana. --------------------------------------------------------------------------------------------------- cmdprops = { permission = 1, paramet...
gpl-3.0
bnetcc/darkstar
scripts/globals/items/bowl_of_nashmau_stew.lua
3
1718
----------------------------------------- -- ID: 5595 -- Item: Bowl of Nashmau Stew -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- MP -100 -- Vitality -10 -- Agility -10 -- Intelligence -10 -- Mind -10 -- Charisma -10 -- Accuracy +15% Cap 25 -- Attack +18% Cap 60 -- ...
gpl-3.0
bnetcc/darkstar
scripts/zones/Bastok_Markets/npcs/Ardea.lua
5
1733
----------------------------------- -- Area: Bastok Markets -- NPC: Ardea -- !pos -198 -6 -69 235 -- Involved in quests: Chasing Quotas, Rock Racketeer -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scr...
gpl-3.0
bnetcc/darkstar
scripts/globals/spells/bluemagic/uppercut.lua
35
1828
----------------------------------------- -- Spell: Uppercut -- Damage varies with TP -- Spell cost: 31 MP -- Monster Type: Plantoids -- Spell Type: Physical (Blunt) -- Blue Magic Points: 3 -- Stat Bonus: STR+2, DEX+1 -- Level: 38 -- Casting Time: 0.5 seconds -- Recast Time: 17.75 seconds -- Skillchain Element(s): Fire...
gpl-3.0
bnetcc/darkstar
scripts/globals/mobskills/spirits_within_custom.lua
1
1724
--------------------------------------------- -- Spirits Within -- -- Description: Delivers an unavoidable attack. Damage varies with HP and TP. -- Type: Magical/Breath -- Ignores shadows and most damage reduction. -- Range: Melee --------------------------------------------- require("scripts/globals/settings"); ...
gpl-3.0
bnetcc/darkstar
scripts/globals/spells/armys_paeon_ii.lua
5
1339
----------------------------------------- -- Spell: Army's Paeon II -- Gradually restores target's HP. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0; e...
gpl-3.0
bnetcc/darkstar
scripts/zones/Mog_Garden/npcs/GreenThumbMo.lua
5
2025
package.loaded["scripts/zones/Mog_Garden/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Mog_Garden/TextIDs"); require("scripts/globals/moghouse") require("scripts/globals/shop"); ----------------------------------- local BRONZE_PIECE_ITEMID = 2184; function onTrade(player, npc, trade) ...
gpl-3.0