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 |
|---|---|---|---|---|---|
yswifi/APlan | build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/modules/admin-full/luasrc/model/cbi/admin_system/fstab/swap.lua | 84 | 1922 | --[[
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/Northern_San_dOria/npcs/Secodiand.lua | 5 | 1737 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Secodiand
-- Starts and Finishes Quest: Fear of the dark
-- @zone 231
-- !pos -160 -0 137
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Upper_Jeuno/npcs/Mailloquetat.lua | 5 | 1074 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Mailloquetat
-- Involved in Quests: Save my Sister
-- @zone 244
-- !pos -31 -1 8
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
requi... | gpl-3.0 |
bnetcc/darkstar | scripts/globals/effects/allied_tags.lua | 1 | 1039 | -----------------------------------
--
--
--
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
if (target:getPet()) then
... | gpl-3.0 |
mwoz123/koreader | frontend/apps/reader/modules/readerback.lua | 3 | 7566 | local ConfirmBox = require("ui/widget/confirmbox")
local Device = require("device")
local Event = require("ui/event")
local EventListener = require("ui/widget/eventlistener")
local Notification = require("ui/widget/notification")
local UIManager = require("ui/uimanager")
local logger = require("logger")
local util = re... | agpl-3.0 |
sartura/openwrt-packages | net/dynapoint/src/dynapoint.lua | 94 | 6369 | #!/usr/bin/lua
--[[
Copyright (C) 2016 Tobias Ilte <tobias.ilte@campus.tu-berlin.de>
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 3 of the License, or
(at your option) any later v... | gpl-2.0 |
bnetcc/darkstar | scripts/zones/Lebros_Cavern/IDs.lua | 7 | 3220 | Lebros = {
text = {
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6381, -- You cannot obtain the <item>. Come back after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 6385, -- You cannot obtain the <item>. Try trading again after sorting your inventory.
ITEM_OBTAINED ... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Gusgen_Mines/npcs/Clay.lua | 5 | 1181 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: Clay
-- Involved in Quest: A Potter's Preference
-- !pos 117 -21 432 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scri... | gpl-3.0 |
bnetcc/darkstar | scripts/globals/mobskills/hyper_pulse_pantokrator_custom.lua | 8 | 1327 | ---------------------------------------------------
-- Hyper_Pulse
--
-- Description: 300 magic damage, Gravity and short Bind, wipes Utsusemi
-- Type: Magical
--
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/... | gpl-3.0 |
bnetcc/darkstar | scripts/globals/spells/cure_iii.lua | 3 | 4931 | -----------------------------------------
-- Spell: Cure III
-- Restores target's HP.
-- Shamelessly stolen from http://members.shaw.ca/pizza_steve/cure/Cure_Calculator.html
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic")... | gpl-3.0 |
bnetcc/darkstar | scripts/globals/items/pearlscale.lua | 3 | 1074 | -----------------------------------------
-- ID: 5714
-- Item: Pearlscale
-- Food Effect: 5 Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
function onItemCheck(ta... | gpl-3.0 |
consulo/consulo-lua | src/test/resources/non-test-system-files/lua5.1-tests/BadLua001.lua | 1 | 2600 | function admin_do( pl, handler, id, encoded, decoded )
local players = player.GetAll()
local ply = players[ decoded[ 2 ] ]
local act = decoded[ 1 ]
if act == "slap" then
ply:SetHealth( ply:Health() - 1 )
if ply:Health() == 0 then
ply:Kill()
end
AddNotify( ply, "You've been slapped by an admin!", 1, 5 )... | apache-2.0 |
awesomeWM/awesome | tests/examples/wibox/widget/textbox/wrap1.lua | 1 | 1091 | --DOC_GEN_IMAGE --DOC_HIDE_START
local l = ...
local wibox = require("wibox")
local beautiful = require("beautiful")
local ret = wibox.layout.fixed.vertical()
--DOC_HIDE_END
for _, wrap in ipairs {"word", "char", "word_char"} do
local w = wibox.widget {
wrap = wrap,
text = "Notable dinausors: ... | gpl-2.0 |
bnetcc/darkstar | scripts/globals/items/piece_of_akamochi.lua | 3 | 2461 | -----------------------------------------
-- ID: 6260
-- Item: akamochi
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- HP + 20 (Pet & Master)
-- Vitality + 3 (Pet & Master)
-- Acc + 10% Cap: 50 (Pet & Master) Pet Cap: 75
-- R. Acc + 10% Cap: 50 (Pet & Master) Pet Cap: 75
-- Attack + 16% ... | gpl-3.0 |
bnetcc/darkstar | scripts/globals/mobskills/sparkstorm_custom.lua | 1 | 1092 | ---------------------------------------------------
-- Sparkstorm
-- Hurkan
---------------------------------------------------
require("scripts/globals/monstertpmoves");
require("scripts/globals/settings");
require("scripts/globals/status");
---------------------------------------------------
function onMobSkillCheck... | gpl-3.0 |
s4jj4d021/TgGuard | plugins/saveplug.lua | 20 | 1784 | local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
return false
end
local function disable_plugin( name, chat )
local k = plugin_enabled(name)
if not k then
return
end
table.remove(_config.enabled_plugins, k)
save_conf... | agpl-3.0 |
bnetcc/darkstar | scripts/zones/Gusgen_Mines/npcs/Treasure_Chest.lua | 5 | 3415 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: Treasure Chest
-- Involved In Quest: The Goblin Tailor
-- @zone 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts... | gpl-3.0 |
ameihm0912/MozDef | examples/heka-lua-bro/bro_ftp.lua | 10 | 3588 | -- 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/.
-- Copyright (c) 2014 Mozilla Corporation
--
-- Contributors:
-- Anthony Verez averez@mozilla.com
-- Jeff Bryner jbryn... | mpl-2.0 |
bnetcc/darkstar | scripts/globals/weaponskills/shield_break.lua | 3 | 1927 | -----------------------------------
-- Shield Break
-- Great Axe weapon skill
-- Skill level: 5
-- Lowers enemy's Evasion. Duration of effect varies with TP.
-- Lowers Evasion by as much as 40 if unresisted.
-- Strong against: Bees, Beetles, Birds, Crabs, Crawlers, Flies, Lizards, Mandragora, Opo-opo, Pugils, Sabotende... | gpl-3.0 |
seeker24/happy | plugins/inpm.lua | 1114 | 3008 | 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 |
MoonTeamBot/TeleMoon | plugins/inpm.lua | 1114 | 3008 | 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 |
farshadfaza/newpermag | libs/url.lua | 31 | 8003 | -- کد های پایین در ربات نشان داده نمیشوند
-- http://permag.ir
-- @permag_ir
-- @permag_bots
-- @permag
local string = require("string")
local base = _G
local table = require("table")
local Url={}
Url._VERSION = "URL 1.0.2"
function Url.escape(s)
return string.gsub(s, "([^A-Za-z0-9_])", function(c)
return... | gpl-3.0 |
ameihm0912/MozDef | examples/heka-lua-bro/bro_socks.lua | 2 | 3146 | -- 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/.
-- Copyright (c) 2014 Mozilla Corporation
--
-- Contributors:
-- Anthony Verez averez@mozilla.com
-- Jeff Bryner jbryn... | mpl-2.0 |
bnetcc/darkstar | scripts/globals/items/bowl_of_zesty_zoni.lua | 3 | 1722 | -----------------------------------------
-- ID: 5619
-- Item: Bowl of Zesti Zoni
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- HP 12
-- MP 12
-- Strength 2
-- Dexterity 2
-- Vitality 2
-- Agility 2
-- Accuracy +2
-- Ranged Accuracy +2
-- Attack +2
-- Ranged Attack +2
-- Evasion +2
-- MP... | gpl-3.0 |
yswifi/APlan | build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/ipkg-ramips_24kec/luci-lib-ipkg/usr/lib/lua/luci/model/ipkg.lua | 82 | 5778 | --[[
LuCI - Lua Configuration Interface
(c) 2008-2011 Jo-Philipp Wich <xm@subsignal.org>
(c) 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 may obtain a copy of the License at
http://www.apach... | gpl-2.0 |
bnetcc/darkstar | scripts/zones/Abyssea-Grauberg/npcs/Atma_Infusionist.lua | 1 | 3166 | -----------------------------------
-- Zone: Abyssea - Grauberg
-- NPC: Atma Infusionist
--
-----------------------------------
package.loaded["scripts/zones/Abyssea-Grauberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/abyssea");
require("scripts/z... | gpl-3.0 |
ammeurer/osrm-backend | profiles/foot.lua | 8 | 6969 | -- Foot profile
local find_access_tag = require("lib/access").find_access_tag
-- Begin of globals
barrier_whitelist = { [""] = true, ["cycle_barrier"] = true, ["bollard"] = true, ["entrance"] = true, ["cattle_grid"] = true, ["border_control"] = true, ["toll_booth"] = true, ["sally_port"] = true, ["gate"] = true, ["no... | bsd-2-clause |
vowstar/nodemcu-firmware | lua_examples/mcp23008/mcp23008_buttons.lua | 82 | 1801 | ---
-- @description Shows how to read 8 GPIO pins/buttons via I2C with the MCP23008 I/O expander.
-- Tested on NodeMCU 0.9.5 build 20150213.
-- @circuit
-- Connect GPIO0 of the ESP8266-01 module to the SCL pin of the MCP23008.
-- Connect GPIO2 of the ESP8266-01 module to the SDA pin of the MCP23008.
-- Use 3.3V fo... | mit |
bnetcc/darkstar | scripts/globals/items/red_curry_bun_+1.lua | 3 | 1798 | -----------------------------------------
-- ID: 5765
-- Item: red_curry_bun_+1
-- Food Effect: 60 Min, All Races
-----------------------------------------
-- TODO: Group effects
-- Health 35
-- Strength 7
-- Agility 3
-- Attack % 25 (cap 150)
-- Ranged Atk % 25 (cap 150)
-- Demon Killer 6
-- Resist Sleep +5
-- HP reco... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Dynamis-Tavnazia/Zone.lua | 5 | 2047 | -----------------------------------
--
-- Zone: Dynamis-Tavnazia
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Dynamis-Tavnazia/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Dynamis-Tavnazia/TextIDs");
----------------------------... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Uleguerand_Range/npcs/Fissure.lua | 5 | 1461 | -----------------------------------
-- Area: Uleguerand Range
-- NPC: Fissure
-- Teleports players from underground to surface
-- !pos 380.267 34.859 -179.655 5
-- !pos 460.339 -29.137 220.311 5
-- !pos 180.207 -77.147 500.276 5
-----------------------------------
package.loaded["scripts/zones/Uleguerand_Range/TextID... | gpl-3.0 |
Atebite/NutScript | plugins/vendor/entities/entities/nut_vendor.lua | 1 | 7094 | ENT.Type = "anim"
ENT.PrintName = "Vendor"
ENT.Category = "NutScript"
ENT.Spawnable = true
ENT.AdminOnly = true
function ENT:Initialize()
if (SERVER) then
self:SetModel("models/mossman.mdl")
self:SetUseType(SIMPLE_USE)
self:SetMoveType(MOVETYPE_NONE)
self:DrawShadow(true)
self:SetSolid(SOLID_BBOX)
self:Ph... | mit |
bnetcc/darkstar | scripts/globals/mobskills/fanatic_dance.lua | 5 | 1066 | ---------------------------------------------
-- Fanatic Dance
-- Family: Orc
-- Description: Charms all targets in an area of effect.
-- Type: Enfeebling
-- Utsusemi/Blink absorb: N/A
-- Range: AoE around user
-- Notes: Dynamis NM Orcs only
---------------------------------------------
require("scripts/globals/monster... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Sulbahn.lua | 3 | 1661 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Sulbahn
-- Type: Alchemy Adv. Image Support
-- !pos -10.470 -6.25 -141.700 241
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/s... | gpl-3.0 |
casperkaae/nn | TemporalSubSampling.lua | 44 | 1378 | local TemporalSubSampling, parent = torch.class('nn.TemporalSubSampling', 'nn.Module')
function TemporalSubSampling:__init(inputFrameSize, kW, dW)
parent.__init(self)
dW = dW or 1
self.inputFrameSize = inputFrameSize
self.kW = kW
self.dW = dW
self.weight = torch.Tensor(inputFrameSize)
self.bias... | bsd-3-clause |
yswifi/APlan | build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/libs/core/luasrc/model/network.lua | 47 | 33988 | --[[
LuCI - Network model
Copyright 2009-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
Unless required by app... | gpl-2.0 |
Wiladams/LLUI | src/fun.lua | 12 | 28437 | ---
--- Lua Fun - a high-performance functional programming library for LuaJIT
---
--- Copyright (c) 2013-2014 Roman Tsisyk <roman@tsisyk.com>
---
--- Distributed under the MIT/X11 License. See COPYING.md for more details.
---
--- https://github.com/rtsisyk/luafun
---
local exports = {}
local methods = {}
-----------... | mit |
bnetcc/darkstar | scripts/globals/mobskills/tebbad_wing.lua | 33 | 1231 | ---------------------------------------------
-- Tebbad Wing
--
-- Description: A hot wind deals Fire damage to enemies within a very wide area of effect. Additional effect: Plague
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: 30' radial.
-- Notes: Used only by Tiamat, Smok and Ildebrann
----... | gpl-3.0 |
fengshao0907/Atlas | lib/active-queries.lua | 40 | 3780 | --[[ $%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 |
swe-TeamRed/wesnoth | data/campaigns/Eastern_Invasion/lua/bandits.lua | 3 | 3625 | -- Used for the bandit villages in S5. Much more specific than the village spawn implementations elsewhere,
-- since there are a lot more specific things needed (mostly the boss mechanics and village spreading)
local helper = wesnoth.require "lua/helper.lua"
local wml_actions = wesnoth.wml_actions
local _ = wesnoth.te... | gpl-2.0 |
Zaratusa/gmod_addons | lua/autorun/client/gauss_rifle_textures.lua | 2 | 2197 | CreateConVar("gauss_rifle_body", 1, {FCVAR_CLIENTCMD_CAN_EXECUTE, FCVAR_ARCHIVE}, "Which color should the gauss rifle body have?")
CreateConVar("gauss_rifle_scope", 1, {FCVAR_CLIENTCMD_CAN_EXECUTE, FCVAR_ARCHIVE}, "Which color should the gauss rifle scope have?")
local BodyColors = {"blue", "green", "orange", "purple"... | gpl-3.0 |
githubmereza/bOOOt | plugins/google.lua | 1 | 1057 | local function googlethat(query)
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&"
local parameters = "q=".. (URL.escape(query) or "")
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
local r... | gpl-2.0 |
TeleDALAD/test | plugins/google.lua | 722 | 1037 | local function googlethat(query)
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&"
local parameters = "q=".. (URL.escape(query) or "")
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
local r... | gpl-2.0 |
bnetcc/darkstar | scripts/commands/troll1.lua | 1 | 1730 | ---------------------------------------------------------------------------------------------------
-- !troll1
-- Spawns 1st wave of Besieged Trolls
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 3,
parameters = ""
};
function onTr... | gpl-3.0 |
erosennin/koreader | frontend/optmath.lua | 6 | 1337 | --[[
Simple math helper function
]]--
local Math = {}
function Math.roundAwayFromZero(num)
if num > 0 then
return math.ceil(num)
else
return math.floor(num)
end
end
function Math.round(num)
return math.floor(num + 0.5)
end
function Math.oddEven(number)
if number % 2 == 1 then
... | agpl-3.0 |
bnetcc/darkstar | scripts/zones/Abyssea-La_Theine/npcs/Cruor_Prospector.lua | 1 | 10714 | -----------------------------------
-- Area: Abyssea - La_Theine
-- NPC: Cruor Prospector
-- Type: Cruor NPC
-- @pos ? ? ? ? (needs filled in)
-----------------------------------
package.loaded["scripts/zones/Abyssea-La_Theine/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Abyssea-La_Thein... | gpl-3.0 |
Solybum/PSOBBMod-Addons | Monster Reader/monsters.lua | 1 | 7908 | -- Set this to a number above 0 to hide monsters farther
-- away than this distance. Recommended value 750-1000,
-- but play with it and see what you like!
local maxDistance = 0
-- Standard enemy colors are white, rare enemies are yellow, bosses are red.
-- Minibosses are a less threatening red. 8)
-- Changing the sec... | gpl-3.0 |
notcake/vfs | lua/vfs/adaptors/expression2_files.lua | 1 | 5592 | if not CLIENT then return end
local commandQueue = {}
local nextRunItem = 1
local function QueueConsoleCommand (...)
commandQueue [#commandQueue + 1] = {...}
if #commandQueue == 1 then
timer.Create ("VFS.Adaptors.E2FileList", 0.1, 0, function ()
for i = 1, 10 do
RunConsoleCommand (unpack (comm... | gpl-3.0 |
Benjji/wesnoth | data/ai/micro_ais/cas/ca_swarm_move.lua | 26 | 2504 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local ca_swarm_move = {}
function ca_swarm_move:evaluation(ai, cfg)
local units = wesnoth.get_units { side = wesnoth.current.side }
for _,unit in ipairs(units) do
if (unit.moves > 0) then return cfg.ca_score e... | gpl-2.0 |
bnetcc/darkstar | scripts/globals/spells/bluemagic/diamondhide.lua | 5 | 1028 | -----------------------------------------
-- Spell: Diamondhide
-- Gives party members within area of effect the effect of "Stoneskin"
-- Spell cost: 99 MP
-- Monster Type: Beastmen
-- Spell Type: Magical (Earth)
-- Blue Magic Points: 3
-- Stat Bonus: VIT+1
-- Level: 67
-- Casting Time: 7 seconds
-- Recast Time: 1 minu... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Lower_Jeuno/npcs/Kurou-Morou.lua | 5 | 5111 | -----------------------------------
-- Area: Lower Jeuno
-- Starts and Finishes Quest: Your Crystal Ball & Never to return
-- !pos -4 -6 -28 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require... | gpl-3.0 |
mrvigeo/uzzbot | plugins/plugins.lua | 325 | 6164 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
tehran980/Tele_MAXBOT | plugins/plugins.lua | 325 | 6164 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
TurkeyMan/premake-core | modules/vstudio/tests/sln2005/test_dependencies.lua | 15 | 2331 | --
-- tests/actions/vstudio/sln2005/test_dependencies.lua
-- Validate generation of Visual Studio 2005+ solution project dependencies.
-- Copyright (c) 2009-2012 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vstudio_sln2005_dependencies")
local sln2005 = p.vstudio.sln2005
... | bsd-3-clause |
mwoz123/koreader | frontend/ui/widget/inputdialog.lua | 1 | 33376 | --[[--
Widget for taking user input.
Example:
local InputDialog = require("ui/widget/inputdialog")
local @{ui.uimanager|UIManager} = require("ui/uimanager")
local @{logger} = require("logger")
local @{gettext|_} = require("gettext")
local sample_input
sample_input = InputDialog:new{
t... | agpl-3.0 |
bnetcc/darkstar | scripts/zones/Waughroon_Shrine/npcs/Burning_Circle.lua | 8 | 2249 | -----------------------------------
-- Area: Waughroon Shrine
-- NPC: Burning Circle
-- Waughroon Shrine Burning Circle
-- !pos -345 104 -260 144
-------------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/bcnm");... | gpl-3.0 |
farshadfaza/newpermag | plugins/lock-fosh.lua | 1 | 2300 | local function pre_process(msg)
local chkfosh = redis:hget('settings:fosh',msg.chat_id_)
if not chkfosh then
redis:hset('settings:fosh',msg.chat_id_,'off')
end
end
local function run(msg, matches)
--Commands --دستورات فعال و غیرفعال کردن فحش
if matches[1]:lower() == 'unlock' then
if matches[2]:lower() == 'fo... | gpl-3.0 |
lzubiaur/ini.lua | ini.lua | 2 | 3991 | -- Copyright (c) 2015 Laurent Zubiaur
-- 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,... | mit |
bnetcc/darkstar | scripts/zones/Promyvion-Vahzl/npcs/_0md.lua | 7 | 1058 | -----------------------------------
-- Area: Promyvion vahzl
-- NPC: Memory flux (2)
-----------------------------------
package.loaded["scripts/zones/Promyvion-Vahzl/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Promyvion-Vahzl/TextIDs");
require("scripts/zones/Promyvion-Vahzl/MobIDs");
... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Port_Windurst/npcs/Kohlo-Lakolo.lua | 5 | 10978 | -----------------------------------
-- Area: Port Windurst
-- NPC: Kohlo-Lakolo
-- Invloved In Quests: Truth, Justice, and the Onion Way!,
-- Know One's Onions,
-- Inspector's Gadget,
-- Onion Rings,
-- Crying Over Onions,
-- ... | gpl-3.0 |
bnetcc/darkstar | scripts/globals/spells/raptor_mazurka.lua | 5 | 1131 | -----------------------------------------
-- Spell: Raptor Mazurka
-- Gives party members enhanced movement
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Windurst_Waters/npcs/Kirarara.lua | 5 | 1036 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Kirarara
-- Involved in Quest: Making the Grade
-- !pos 132 -7 172 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Windurst_Waters/TextI... | gpl-3.0 |
younishd/chick | lib/coxpcall/coxpcall.lua | 1 | 3534 | -------------------------------------------------------------------------------
-- Coroutine safe xpcall and pcall versions
--
-- Encapsulates the protected calls with a coroutine based loop, so errors can
-- be dealed without the usual Lua 5.x pcall/xpcall issues with coroutines
-- yielding inside the call to pcall or... | mit |
mwoz123/koreader | frontend/ui/data/dictionaries.lua | 6 | 52775 | local _ = require("gettext")
-- largely thanks to https://tuxor1337.github.io/firedict/dictionaries.html
local dictionaries = {
{
name = "CIA World Factbook 2014",
lang_in = "English",
lang_out = "English",
entries = 2577,
license = _("Public Domain"),
url = "http://... | agpl-3.0 |
bnetcc/darkstar | scripts/zones/Bastok_Markets/npcs/Aquillina.lua | 5 | 1544 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Aquillina
-- Starts & Finishes Repeatable Quest: A Flash In The Pan
-- Note: Reapeatable every 15 minutes.
-- !pos -97 -5 -81 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
------------------------... | gpl-3.0 |
curiousguy13/shogun | examples/undocumented/lua_modular/serialization_complex_example.lua | 21 | 2932 | require 'os'
require 'modshogun'
require 'load'
parameter_list={{5,1,10, 2.0, 10}, {10,0.3,2, 1.0, 0.1}}
function check_status(status)
assert(status == true)
-- if status:
-- print "OK reading/writing .h5\n"
--else:
-- print "ERROR reading/writing .h5\n"
end
function concatenate(...)
local result = ...
for... | gpl-3.0 |
mwoz123/koreader | frontend/apps/reader/modules/readerstatus.lua | 4 | 8939 | local BD = require("ui/bidi")
local BookStatusWidget = require("ui/widget/bookstatuswidget")
local ButtonDialogTitle = require("ui/widget/buttondialogtitle")
local Device = require("device")
local Event = require("ui/event")
local InfoMessage = require("ui/widget/infomessage")
local InputContainer = require("ui/widget/... | agpl-3.0 |
bnetcc/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Gavrie.lua | 5 | 1230 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Gavrie
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
require("scripts/g... | gpl-3.0 |
bnetcc/darkstar | scripts/globals/items/bottle_of_berserkers_tonic.lua | 1 | 1135 | -----------------------------------------
-- ID: 5851
-- Item: Bottle of Berserker's Tonic
-- Item Effect: Increases Dbl Attk 80%
-- Duration: 60 secs
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
---------------------------------... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Abyssea-Misareaux/npcs/Dilapidated_gate3.lua | 1 | 1092 | -----------------------------------
-----------------------------------
package.loaded["scripts/zones/Abyssea-Misareaux/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/teleports");
require("scripts/globals/missions"... | gpl-3.0 |
best98ir/SASAN | libs/fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-3.0 |
Atebite/NutScript | gamemode/core/libs/sh_class.lua | 4 | 3264 | nut.class = nut.class or {}
nut.class.list = {}
local charMeta = nut.meta.character
-- Register classes from a directory.
function nut.class.loadFromDir(directory)
-- Search the directory for .lua files.
for k, v in ipairs(file.Find(directory.."/*.lua", "LUA")) do
-- Get the name without the "sh_" prefix and ".lu... | mit |
bnetcc/darkstar | scripts/zones/Silver_Sea_route_to_Al_Zahbi/npcs/Yahliq.lua | 1 | 1510 | -----------------------------------
-- Area: Silver Sea route to Al Zahbi
-- NPC: Yahliq
-- Type: Guild Merchant: Fishing Guild
-- !pos 4.986 -2.101 -12.026 59
-----------------------------------
package.loaded["scripts/zones/Silver_Sea_route_to_Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("sc... | gpl-3.0 |
bnetcc/darkstar | scripts/globals/spells/bluemagic/cannonball.lua | 33 | 1721 | -----------------------------------------
-- Spell: Cannonball
-- Damage varies with TP
-- Spell cost: 66 MP
-- Monster Type: Vermin
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 3
-- Stat Bonus: STR+1, DEX+1
-- Level: 70
-- Casting Time: 0.5 seconds
-- Recast Time: 28.5 seconds
-- Skillchain Element(s): Fusion... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Selbina/npcs/Thunder_Hawk.lua | 5 | 2160 | -----------------------------------
-- Area: Selbina
-- NPC: Thunder Hawk
-- Starts and Finishes Quest: The Rescue
-- !pos -58 -10 6 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
require("scri... | gpl-3.0 |
Etiene/Algorithm-Implementations | Bresenham_Based_Supercover_Line/Lua/Yonaba/bresenham_based_supercover_test.lua | 27 | 1151 | -- Tests for bresenham.lua
local supercover_line = require 'bresenham_based_supercover'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass ... | mit |
MmxBoy/metalik | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
miralireza2/star_bottelegram | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
awesomeWM/awesome | tests/examples/shims/awesome.lua | 1 | 3114 | local lgi = require("lgi")
local gears_obj = require("gears.object")
-- Emulate the C API classes. They differ from C API objects as connect_signal
-- doesn't take an object as first argument and they support fallback properties
-- handlers.
local function _shim_fake_class()
local obj = gears_obj()
obj._... | gpl-2.0 |
vanloswang/conky_all | conky_colors/conkycolors/scripts/conkyCairo.lua | 6 | 35239 | --[[
-- This code is mostly by londonali1010, mrpeachy, VinDSL, Wlourf and SLK
-- Conky-Colors by helmuthdu
-- license : Distributed under the terms of GNU GPL version 2 or later
]]
require 'cairo'
-------------------------------------------------------------------------------
-- ... | gpl-3.0 |
leonardoaxe/OpenRA | mods/ra/maps/allies-04/allies04-AI.lua | 3 | 7313 |
IdlingUnits = { }
Yaks = { }
AttackGroupSizes =
{
easy = 6,
normal = 8,
hard = 10
}
AttackDelays =
{
easy = { DateTime.Seconds(4), DateTime.Seconds(9) },
normal = { DateTime.Seconds(2), DateTime.Seconds(7) },
hard = { DateTime.Seconds(1), DateTime.Seconds(5) }
}
AttackRallyPoints =
{
{ SovietRally1.Location,... | gpl-3.0 |
etienne-gauvin/projet-tut | core/libs/hump/timer.lua | 7 | 6207 | --[[
Copyright (c) 2010-2013 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, dis... | mit |
yswifi/APlan | build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/modules/admin-core/luasrc/controller/admin/servicectl.lua | 76 | 1376 | --[[
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$
]]--
mo... | gpl-2.0 |
abasshacker/abbas002 | plugins/stats.lua | 168 | 4001 | do
-- Returns a table with `name` and `msgs`
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_prin... | gpl-2.0 |
bnetcc/darkstar | scripts/globals/weaponskills/calamity.lua | 25 | 1516 | -----------------------------------
-- Calamity
-- Axe weapon skill
-- Skill level: 200 (Beastmasters and Warriors only.)
-- Delivers a single-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Soil Gorget & Thunder Gorget.
-- Aligned with the Soil Belt & Thunder Belt.
-- Element: N... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Lufaise_Meadows/npcs/Jersey.lua | 5 | 1533 | -----------------------------------
-- Area: Lufaise Meadows
-- NPC: Jersey
-- Type: Outpost Vendor
-- !pos -548.706 -7.197 -53.897 24
-----------------------------------
package.loaded["scripts/zones/Lufaise_Meadows/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Upper_Jeuno/npcs/Shiroro.lua | 5 | 1043 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Shiroro
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Upper_Jeuno/TextIDs");
require("scripts/globals/quests");
-------------... | gpl-3.0 |
sartura/openwrt-packages | utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/bmx6.lua | 78 | 1115 | #!/usr/bin/lua
local json = require "cjson"
local function interpret_suffix(rate)
local value = string.sub(rate, 1, -2)
local suffix = string.sub(rate, -1)
if suffix == "K" then return tonumber(value) * 10^3 end
if suffix == "M" then return tonumber(value) * 10^6 end
if suffix == "G" then return tonumber(va... | gpl-2.0 |
bnetcc/darkstar | scripts/zones/Kazham/npcs/Majjih_Bakrhamab.lua | 1 | 1746 | -----------------------------------
-- Area: Kazham
-- NPC: Majjih Bakrhamab
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Kazham/TextIDs");
require("scripts/globals/teleports");
require("scripts... | gpl-3.0 |
awesomeWM/awesome | lib/menubar/init.lua | 1 | 20313 | ---------------------------------------------------------------------------
--- Menubar module, which aims to provide a freedesktop menu alternative.
--
-- List of menubar keybindings:
-- ---
--
-- <table class='widget_list' border=1>
-- <tr style='font-weight: bold;'>
-- <th align='center'>Keybinding</th>
-- <th ali... | gpl-2.0 |
bnetcc/darkstar | scripts/zones/The_Boyahda_Tree/mobs/Modrons_Druid.lua | 1 | 1451 | -----------------------------------
-- Area: EDIT ME
-- VWNM: ME TO
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(mob)
-- setMobMod
mob:setMobMod(MOBMOD_MAGIC_CO... | gpl-3.0 |
bnetcc/darkstar | scripts/globals/spells/bluemagic/mind_blast.lua | 5 | 1879 | -----------------------------------------
-- Spell: Mind Blast
-- Deals lightning damage to an enemy. Additional effect: Paralysis
-- Spell cost: 82 MP
-- Monster Type: Demons
-- Spell Type: Magical (Lightning)
-- Blue Magic Points: 4
-- Stat Bonus: MP+5 MND+1
-- Level: 73
-- Casting Time: 3 seconds
-- Recast Time: 30 ... | gpl-3.0 |
TurkeyMan/premake-core | binmodules/luasocket/src/mbox.lua | 51 | 2654 | local _M = {}
if module then
mbox = _M
end
function _M.split_message(message_s)
local message = {}
message_s = string.gsub(message_s, "\r\n", "\n")
string.gsub(message_s, "^(.-\n)\n", function (h) message.headers = h end)
string.gsub(message_s, "^.-\n\n(.*)", function (b) message.body = b end)
... | bsd-3-clause |
mwoz123/koreader | plugins/evernote.koplugin/JoplinClient.lua | 2 | 4191 | local http = require("socket.http")
local json = require("json")
local ltn12 = require("ltn12")
local socketutil = require("socketutil")
local JoplinClient = {
server_ip = "localhost",
server_port = 41184,
auth_token = ""
}
function JoplinClient:new(o)
o = o or {}
self.__index = self
setmetat... | agpl-3.0 |
bnetcc/darkstar | scripts/zones/Foret_de_Hennetiel/Zone.lua | 1 | 1200 | -----------------------------------
--
-- Zone: Foret de Hennetiel
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Foret_de_Hennetiel/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Foret_de_Hennetiel/TextIDs");
----------------------... | gpl-3.0 |
dragynbane222/awesome-dot-files | themes/cool-blue/theme.lua | 2 | 2780 | -- cool-blue, awesome3 theme, inspired by Adobe Kuler
--{{{ Main
local awful = require("awful")
awful.util = require("awful.util")
theme = {}
home = os.getenv("HOME")
config = awful.util.getdir("config")
shared = "/usr/share/awesome"
if not awful.util.file_readable(shared .. "/icons/awesome16.... | gpl-2.0 |
bnetcc/darkstar | scripts/globals/spells/bluemagic/dark_orb.lua | 1 | 1097 | -----------------------------------------
-- Spell: Dark Orb
-----------------------------------------
require("scripts/globals/bluemagic");
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/West_Sarutabaruta/npcs/Banege_RK.lua | 3 | 2981 | -----------------------------------
-- Area: West Sarutabaruta
-- NPC: Banege, R.K.
-- Type: Border Conquest Guards
-- !pos 399.450 -25.858 727.545 115
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conqu... | gpl-3.0 |
yswifi/APlan | build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/applications/luci-wol/luasrc/model/cbi/wol.lua | 42 | 2521 | --[[
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
]]--
local sy... | gpl-2.0 |
bnetcc/darkstar | scripts/zones/Bastok_Markets/npcs/Foss.lua | 5 | 1323 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Foss
-- Starts & Finishes Repeatable Quest: Buckets of Gold
-- !pos -283 -12 -37 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Mar... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.