repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
Kthulupwns/darkstar | scripts/zones/Spire_of_Holla/Zone.lua | 34 | 1334 | -----------------------------------
--
-- Zone: Spire_of_Holla (17)
--
-----------------------------------
package.loaded["scripts/zones/Spire_of_Holla/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Spire_of_Holla/TextIDs");
----------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Fort_Karugo-Narugo_[S]/npcs/Logging_Point.lua | 29 | 1128 | -----------------------------------
-- Area: Fort Karugo-Narugo [S]
-- NPC: Logging Point
-----------------------------------
package.loaded["scripts/zones/Fort_Karugo-Narugo_[S]/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/logging");
require("scripts/zones/Fort_Karugo-Nar... | gpl-3.0 |
bykoianko/omim | 3party/libtess2/premake4.lua | 53 | 1103 |
local action = _ACTION or ""
solution "libtess2"
location ( "Build" )
configurations { "Debug", "Release" }
platforms {"native", "x64", "x32"}
configuration "Debug"
defines { "DEBUG" }
flags { "Symbols", "ExtraWarnings"}
configuration "Release"
defines { "NDEBUG" }
flags { "Optimize", "ExtraWarnings"}
... | apache-2.0 |
AttacqueSuperior/Engine | mods/d2k/maps/atreides-03a/atreides03a.lua | 2 | 5824 | --[[
Copyright 2007-2021 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you 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 vers... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Bastok_Markets/npcs/Zon-Fobun.lua | 19 | 2358 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Zon-Fobun
-- Type: Quest Giver
-- @zone: 235
-- @pos -241.293 -3 63.406
--
-- Auto-Script: Requires Verification. Verified standard dialog - thrydwolf 12/18/2011
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/Tex... | gpl-3.0 |
xvaara/kong | spec/plugins/ssl/access_spec.lua | 1 | 4994 | local spec_helper = require "spec.spec_helpers"
local ssl_util = require "kong.plugins.ssl.ssl_util"
local url = require "socket.url"
local IO = require "kong.tools.io"
local http_client = require "kong.tools.http_client"
local cjson = require "cjson"
local ssl_fixtures = require "spec.plugins.ssl.fixtures"
local STUB... | apache-2.0 |
ASHRAF97/ASHRAFKASPERV3 | plugins/kazl-AS.lua | 1 | 1773 | --[[
โโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโ โโ โโ โโ
โโ
#devil_bot @jozef3
please join to Channel Oscar Team @fr300t
โโ โโ โโ โโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
--]]
do
local function o... | gpl-2.0 |
Kthulupwns/darkstar | scripts/globals/items/serving_of_goblin_stir-fry.lua | 35 | 1286 | -----------------------------------------
-- ID: 5143
-- Item: serving_of_goblin_stir-fry
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Agility 5
-- Vitality 2
-- Charisma -5
-----------------------------------------
require("scripts/globals/status");
---------------------... | gpl-3.0 |
junrw/ember-gsoc2012 | src/components/ogre/widgets/ActionBarCreator.lua | 2 | 6310 | --[[
Responsible for creating and managing action bars. The use can create either horizontal or vertical action bars,
as well as deleting existing bars by selecting them in the list and clicking delete.
]]--
ActionBarCreator = {}
loadScript("DefaultEntityActions.lua")
--Build the action bar creator widget.
function A... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Crawlers_Nest/npcs/_5h1.lua | 12 | 2609 | -----------------------------------
-- Area: Crawlers' Nest
-- NPC: Strange Apparatus
-- @pos: 214 0 -339 197
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil;
require("scripts/zones/Crawlers_Nest/TextIDs");
require("scripts/globals/strangeapparatus");
-----------------... | gpl-3.0 |
shkan/telebot | plugins/bot_on_off.lua | 292 | 1641 | -- Checks if bot was disabled on specific chat
local function is_channel_disabled( receiver )
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable_channel(receiver)
if... | gpl-2.0 |
CadishShank/Ardour-5.0.2.0-Cad | scripts/stop_at_marker.lua | 3 | 1298 | ardour {
["type"] = "session",
name = "Stop at Marker",
license = "MIT",
author = "Ardour Lua Task Force",
description = [[An example session script which stops the transport on every location marker when rolling forward.]]
}
function factory ()
return function (n_samples)
if (not Session:tr... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Temenos/npcs/Scanning_Device.lua | 18 | 1709 | -----------------------------------
-- Area: Temenos
-- NPC: Scanning_Device
-- @pos
-----------------------------------
require("scripts/globals/limbus");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------... | gpl-3.0 |
kaeza/love-klib | klib/gui/dialog/colordialog.lua | 1 | 3645 |
local classes = require "klib.classes"
local Dialog = require("klib.gui.dialog").Dialog
local Button = require("klib.gui.button").Button
local Label = require("klib.gui.label").Label
local Compound = require("klib.gui.compound").Compound
local Widget = require("klib.gui.widget").Widget
local Grid = require("klib.gui.... | bsd-2-clause |
Kthulupwns/darkstar | scripts/globals/spells/bluemagic/blood_drain.lua | 3 | 1214 | -----------------------------------------
-- Spell: Blood Drain
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/settings");
require("scripts/globals/bluemagic");
-----------------------------------------
-- OnSpellCast
... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Outer_Horutoto_Ruins/npcs/_5eh.lua | 19 | 3309 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Ancient Magical Gizmo #4 (H out of E, F, G, H, I, J)
-- Involved In Mission: The Heart of the Matter
-----------------------------------
package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
ningg/Atlas | lib/proxy/parser.lua | 41 | 6105 | --[[ $%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 |
dpino/snabb | lib/ljsyscall/syscall/linux/ppc/ffi.lua | 24 | 1560 | -- ppc specific definitions
return {
termios = [[
struct termios {
tcflag_t c_iflag;
tcflag_t c_oflag;
tcflag_t c_cflag;
tcflag_t c_lflag;
cc_t c_cc[19];
cc_t c_line;
speed_t c_ispeed;
speed_t c_ospeed;
};
]],
ucontext = [[
typedef unsigned long greg_t, gregset_t[48];
typedef struct {
double fpre... | apache-2.0 |
kuoruan/luci | modules/luci-base/luasrc/sys/iptparser.lua | 26 | 10032 | --[[
Iptables parser and query library
(c) 2008-2009 Jo-Philipp Wich <jow@openwrt.org>
(c) 2008-2009 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:... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Bastok_Markets/npcs/Offa.lua | 38 | 1271 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Offa
-- Type: Quest NPC
-- @pos -281.628 -16.971 -140.607 235
--
-- Auto-Script: Requires Verification. Verified standard dialog - thrydwolf 12/18/2011
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = n... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Lufaise_Meadows/npcs/Yoram_IM.lua | 30 | 3050 | -----------------------------------
-- Area: Lufaise Meadows
-- NPC: Yoram, I.M.
-- Outpost Conquest Guards
-- @pos -542.418 -7.124 -53.521 24
-----------------------------------
package.loaded["scripts/zones/Lufaise_Meadows/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
req... | gpl-3.0 |
Wiladams/LJIT2Win32 | Kernel32.lua | 1 | 3059 | local ffi = require "ffi"
local kernel32_ffi = require"kernel32_ffi"
local Lib = ffi.load("kernel32")
function GetPerformanceFrequency()
local anum = ffi.new("__int64[1]")
local success = Lib.QueryPerformanceFrequency(anum)
if success == 0 then
return nil
end
return tonumber(anum[0])
end
function GetPerforma... | mit |
dpino/snabb | lib/ljsyscall/syscall/linux/cgroup.lua | 24 | 1246 | -- Linux cgroup API
-- this is all file system operations packaged up to be easier to use
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,... | apache-2.0 |
jamesbrink/sysdig | userspace/sysdig/chisels/v_spans_summary.lua | 3 | 2890 | --[[
Copyright (C) 2013-2015 Draios inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without... | gpl-2.0 |
Kthulupwns/darkstar | scripts/globals/items/bowl_of_optical_soup.lua | 35 | 1570 | -----------------------------------------
-- ID: 4340
-- Item: bowl_of_optical_soup
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- HP % 6 (cap 75)
-- Charisma -15
-- HP Recovered While Healing 5
-- Accuracy 15
-- Ranged Accuracy 15
-----------------------------------------
req... | gpl-3.0 |
Godfather021/tg | plugins/pokedex.lua | 626 | 1668 | do
local images_enabled = true;
local function get_sprite(path)
local url = "http://pokeapi.co/"..path
print(url)
local b,c = http.request(url)
local data = json:decode(b)
local image = data.image
return image
end
local function callback(extra)
send_msg(extra.receiver, extra.text, ok_cb, false)
end
lo... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Kazham/npcs/Mamerie.lua | 37 | 1372 | -----------------------------------
-- Area: Kazham
-- NPC: Mamerie
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Act... | gpl-3.0 |
xvaara/kong | spec/integration/cli/cmds/status_spec.lua | 3 | 1055 | local spec_helper = require "spec.spec_helpers"
describe("CLI", function()
setup(function()
pcall(spec_helper.stop_kong)
end)
teardown(function()
pcall(spec_helper.stop_kong)
end)
it("the status check should fail when Kong is not running", function()
assert.error_matches(function()
spec_... | apache-2.0 |
Kthulupwns/darkstar | scripts/globals/spells/bluemagic/uppercut.lua | 3 | 1090 | require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/bluemagic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
function onSpellCast(caster,target,sp... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Bastok_Mines/npcs/Rashid.lua | 23 | 3418 | -----------------------------------
-- 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/globa... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Port_San_dOria/npcs/Antreneau.lua | 15 | 2076 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Antreneau
-- Type: Standard NPC
-- @zone: 232
-- @pos -71 -5 -39
--
-- Involved in Quest: A Taste For Meat
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
------------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Port_Windurst/npcs/Posso_Ruhbini.lua | 36 | 1583 | -----------------------------------
-- Area: Port Windurst
-- NPC: Posso Ruhbini
-- Regional Marchant NPC
-- Only sells when Windurst controlls Norvallen
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loa... | gpl-3.0 |
ma137292/mostafa-Bot | plugins/Auto_Leave.lua | 5 | 1049 | Enter file contents here--[[
Kicking ourself (bot) from unmanaged groups.
When someone invited this bot to a group, the bot then will chek if the group is in its moderations (moderation.json). If not, the bot will exit immediately by kicking itself out of that group.
No switch available. You need to turn it on or off... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Travonce.lua | 38 | 1047 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Travonce
-- Type: Standard NPC
-- @zone: 26
-- @pos -89.068 -14.367 -0.030
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
--... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/weaponskills/final_heaven.lua | 5 | 2336 | -------------------------------
-- Auth : Thief
-- Skill: Final Heaven
-- Class: H2H Weapon Skill
-- Level: MNK Relic Only
-- Mods : VIT:60%
-- 100%TP 200%TP 300%TP
-- 3.0x 3.0x 3.0x
-- Caestus/Spharai: Temporarily enhances Subtle Blow effect. * +10 Subtle Blow for a short duration after using the weapon ski... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Windurst-Jeuno_Airship/npcs/Gabriele.lua | 12 | 2051 | -----------------------------------
-- Area: Windurst-Jeuno Airship
-- NPC: Gabriele
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Windurst-Jeuno_Airship/TextIDs"] = nil;
require("scripts/zones/Windurst-Jeuno_Airship/TextIDs");
-----------------------------------
-- onTrade ... | gpl-3.0 |
mlody1039/ModernOts | data/talkactions/scripts/teleportmaster.lua | 5 | 1154 | function onSay(cid, words, param, channel)
local tid = cid
if(param ~= '') then
tid = getPlayerByNameWildcard(param)
if(not tid or (isPlayerGhost(tid) and getPlayerGhostAccess(tid) > getPlayerGhostAccess(cid))) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " not found.")
... | gpl-3.0 |
dreamsxin/otclient | modules/client_terminal/commands.lua | 12 | 4443 | local function pcolored(text, color)
color = color or 'white'
modules.client_terminal.addLine(tostring(text), color)
end
function draw_debug_boxes()
g_ui.setDebugBoxesDrawing(not g_ui.isDrawingDebugBoxes())
end
function hide_map()
modules.game_interface.getMapPanel():hide()
end
function show_map()
modules.... | mit |
VanessaE/minetest_game | mods/default/crafting.lua | 4 | 24260 | -- mods/default/crafting.lua
minetest.register_craft({
output = 'default:wood 4',
recipe = {
{'default:tree'},
}
})
minetest.register_craft({
output = 'default:junglewood 4',
recipe = {
{'default:jungletree'},
}
})
minetest.register_craft({
output = 'default:pine_wood 4',
recipe = {
{'default:pine_tree... | lgpl-2.1 |
Kthulupwns/darkstar | scripts/globals/items/blackened_newt.lua | 35 | 1569 | -----------------------------------------
-- ID: 4581
-- Item: Blackened Newt
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Dexterity 4
-- Mind -3
-- Attack % 18
-- Attack Cap 60
-- Virus Resist 5
-- Charm Resist 5
-----------------------------------------
require("scripts... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/abilities/chaos_roll.lua | 2 | 1411 | -----------------------------------
-- Ability: Chaos Roll
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- onUseAbility
-----------------------------------
function onAbilityCheck(player,target,ability)
loc... | gpl-3.0 |
Omar-Real/RealBot | plugins/isup1.lua | 4 | 3088 | do
local socket = require("socket")
local cronned = load_from_file('data/isup.lua')
local function save_cron(msg, url, delete)
local origin = get_receiver(msg)
if not cronned[origin] then
cronned[origin] = {}
end
if not delete then
table.insert(cronned[origin], url)
else
for k,v in pairs(cronned[... | gpl-2.0 |
Omar-Real/RealBot | plugins/inpm.lua | 4 | 9473 | ๏ปฟlocal function pre_process(msg)
local to = msg.to.type
local service = msg.service
if to == 'user' and msg.fwd_from then
if not is_support(msg.from.id) and not is_admin1(msg) then
return
end
local user = 'user#id'..msg.from.id
local from_id = msg.fwd_from.peer_id
if msg.fwd_from.first_name then
from_f... | gpl-2.0 |
Kthulupwns/darkstar | scripts/globals/spells/earth_carol.lua | 13 | 1504 | -----------------------------------------
-- Spell: Earth Carol
-- Increases earth resistance for party members within the area of effect.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Selbina/npcs/Sleeping_Lizard.lua | 34 | 1087 | -----------------------------------
-- Area: Selbina
-- NPC: Sleeping Lizard
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
-----------------------------------
-- o... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Elnonde.lua | 16 | 1445 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Elnonde
-- @zone 80
-- @pos 86 2 -0
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
require("scripts/globals/quests");
--... | gpl-3.0 |
hamed9898/uzzbott | plugins/help.lua | 337 | 5009 | do
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 |
amenophis1er/prosody-modules | mod_adhoc_blacklist/mod_adhoc_blacklist.lua | 17 | 2534 | -- mod_adhoc_blacklist
--
-- http://xmpp.org/extensions/xep-0133.html#edit-blacklist
--
-- Copyright (C) 2015 Kim Alvefur
--
-- This file is MIT/X11 licensed.
--
module:depends("adhoc");
local adhoc = module:require "adhoc";
local st = require"util.stanza";
local set = require"util.set";
local dataform = require"util.... | mit |
jamesbrink/sysdig | userspace/sysdig/chisels/v_syscall_procs.lua | 8 | 1887 | --[[
Copyright (C) 2013-2015 Draios inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without... | gpl-2.0 |
drakmaniso/Flapoline | src/button.lua | 1 | 2883 | Button = {}
Button.__index = Button
---------------------------------------------------------------------------------------------------
function Button:new(action, imageName, x, y, color)
local object = {}
setmetatable(object, self)
object:reset(action, imageName, x, y, color)
return object
end
--... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/weaponskills/exenterator.lua | 12 | 2056 | -----------------------------------
-- Exenterator
-- Skill level: 357
-- Terpsichore: Aftermath effect varies with TP.
-- In order to obtain Exenterator, the quest Martial Mastery must be completed.
-- Description: Delivers a fourfold attack that lowers enemy's params.accuracy. Effect duration varies with TP.
--... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/plate_of_fin_sushi.lua | 35 | 1483 | -----------------------------------------
-- ID: 5665
-- Item: plate_of_fin_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Intelligence 5
-- Accuracy % 16
-- Ranged Accuracy % 16
-----------------------------------------
require("scripts/globals/status");
-------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/loaf_of_iron_bread.lua | 35 | 1197 | -----------------------------------------
-- ID: 4499
-- Item: loaf_of_iron_bread
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 4
-- Vitality 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- O... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Ghelsba_Outpost/bcnms/petrifying_pair.lua | 13 | 1480 | -----------------------------------
-- Area: Ghelsba Outpost
-- Name: pertrifying_pair BCNM30
-- @pos -162 -11 78 140
-----------------------------------
package.loaded["scripts/zones/Ghelsba_Outpost/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/keyite... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/galkan_sausage_+2.lua | 35 | 1364 | -----------------------------------------
-- ID: 5860
-- Item: galkan_sausage_+2
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength 5
-- Intelligence -6
-- Attack 11
-- Ranged Attack 11
-----------------------------------------
require("scripts/globals/status");
------... | gpl-3.0 |
rohanp/Algorithm-Implementations | Roman_Numerals/Lua/Yonaba/roman.lua | 26 | 1408 | -- Roman numerals encoding/decoding implementation
-- See: http://en.wikipedia.org/wiki/Roman_numerals
-- Roman numerals translation set for encoding
local romans = {
{1000, "M"}, {900, "CM"}, {500, "D"}, {400, "CD"},
{100, "C"}, {90, "XC"}, {50, "L"}, {40, "XL"},
{10, "X"}, {9, "IX"}, {5, "V"}, {4, ... | mit |
telbbs/luci-0.12 | modules/base/luasrc/config.lua | 88 | 1070 | --[[
LuCI - Configuration
Description:
Some LuCI configuration values read from uci file "luci"
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 may obtain a co... | apache-2.0 |
azukiapp/luasocket | test/utestclnt.lua | 44 | 18346 | local socket = require"socket"
socket.unix = require"socket.unix"
host = host or "luasocket"
function pass(...)
local s = string.format(...)
io.stderr:write(s, "\n")
end
function fail(...)
local s = string.format(...)
io.stderr:write("ERROR: ", s, "!\n")
socket.sleep(3)
os.exit()
end
function wa... | mit |
Velkon/DarkRP | gamemode/modules/hungermod/sv_interface.lua | 4 | 1848 | DarkRP.PLAYER.newHungerData = DarkRP.stub{
name = "newHungerData",
description = "Create the initial hunger data (called on PlayerInitialSpawn).",
parameters = {
},
returns = {
},
metatable = DarkRP.PLAYER
}
DarkRP.PLAYER.hungerUpdate = DarkRP.stub{
name = "hungerUpdate",
descriptio... | mit |
Kthulupwns/darkstar | scripts/zones/Xarcabard/npcs/qm7.lua | 9 | 1340 | -----------------------------------
-- Area: Xarcabard
-- NPC: qm7 (???)
-- Involved in Quests: RNG AF3 quest - Unbridled Passion
-- @pos -295.065 -25.054 151.250 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
shawnl/kyototycoon | example/ktscrtableex.lua | 12 | 4724 | kt = __kyototycoon__
db = kt.db
-- prepare secondary indices
idxdbs = {}
for dbname, dbobj in pairs(kt.dbs) do
if kt.strbwm(dbname, ".kct") then
local prefix = kt.regex(dbname, ".*/", "")
prefix = kt.regex(dbname, ".kct$", "")
if #prefix > 0 then
idxdbs[prefix] = dbobj
end
end
en... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/abilities/dark_shot.lua | 3 | 2320 | -----------------------------------
-- Ability: Dark Shot
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onUseAbility
-----------------------------------
function onAbilit... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/mobskills/Light_Blade.lua | 6 | 1353 | ---------------------------------------------
-- Light Blade
-- Description: Deals very high physical damage to a single player.
-- Type: Ranged
-- Damage decreases the farther away the target is from him.
---------------------------------------------
require("/scripts/globals/settings");
require("/script... | gpl-3.0 |
FPtje/DarkRP | gamemode/modules/fadmin/fadmin/playeractions/jail/sv_init.lua | 1 | 7388 | local function createJailTimer(target, jailTime)
if jailTime == 0 then return end
timer.Create("FAdmin_jail" .. target:UserID(), jailTime, 1, function()
if not IsValid(target) then return end
if not target:FAdmin_GetGlobal("fadmin_jailed") then return end
timer.Remove("FAdmin_jail_watch... | mit |
Kthulupwns/darkstar | scripts/globals/mobskills/Heavy_Stomp.lua | 6 | 1081 | ---------------------------------------------
-- Heavy Stomp
--
-- Description: Deals heavy damage to targets within an area of effect. Additional effect: Paralysis
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: Unknown radial
-- Notes: Paralysis effect has a very long duration.
-------... | gpl-3.0 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/MenuItemSprite.lua | 10 | 1692 |
--------------------------------
-- @module MenuItemSprite
-- @extend MenuItem
-- @parent_module cc
--------------------------------
--
-- @function [parent=#MenuItemSprite] setEnabled
-- @param self
-- @param #bool bEnabled
--------------------------------
-- since v0.99.5
-- @function [parent=#MenuItemSp... | mit |
Kthulupwns/darkstar | scripts/zones/Rabao/npcs/Nomad_Moogle.lua | 37 | 1063 | -----------------------------------
--
-- Nomad Moogle
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
require("scripts/zones/Rabao/TextIDs");
-----------------------------------
-- onTrade Action
---------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/The_Eldieme_Necropolis_[S]/npcs/Lennart.lua | 34 | 1133 | ----------------------------------
-- Area: The Eldieme Necropolis [S]
-- NPC: Lennart
-- Type: Item Deliverer
-- @pos 378.783 -36 61.805 175
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/loach_soup.lua | 35 | 1678 | -----------------------------------------
-- ID: 5671
-- Item: loach_soup
-- Food Effect: 4Hour,Group Food, All Races
-----------------------------------------
-- Dexterity 4
-- Agility 4
-- Accuracy % 7
-- Accuracy Cap 50
-- HP % 7
-- HP Cap 50
-- Evasion 5
-- (Did Not Add Group Food Effect)
-------------... | gpl-3.0 |
AttacqueSuperior/Engine | mods/ra/maps/intervention/intervention.lua | 2 | 10528 | --[[
Copyright 2007-2021 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you 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 vers... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Bastok_Mines/npcs/Tall_Mountain.lua | 17 | 1884 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Tall Mountain
-- Involved in Quest: Stamp Hunt
-- Finish Mission: Bastok 6-1
-- @pos 71 7 -7 234
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/shining_trout.lua | 17 | 1322 | -----------------------------------------
-- ID: 5791
-- Item: shining_trout
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIte... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Zhamwaa.lua | 34 | 1032 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Zhamwaa
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
----------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/weaponskills/sanguine_blade.lua | 26 | 1658 | -----------------------------------
-- Sanguine Blade
-- Sword weapon skill
-- Skill Level: 300
-- Drains a percentage of damage dealt to HP varies with TP.
-- Will not stack with Sneak Attack.
-- Not aligned with any "elemental gorgets" or "elemental belts" due to it's absence of Skillchain properties.
-- Eleme... | gpl-3.0 |
ASHRAF97/ASHRAFKASPERV3 | libs/dateparser.lua | 502 | 6212 | 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-2.0 |
Kthulupwns/darkstar | scripts/zones/Windurst_Woods/npcs/Mokop-Sankop.lua | 38 | 1043 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Mokop-Sankop
-- Type: Conquest Troupe
-- @zone: 241
-- @pos 11.542 1.05 -53.217
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
------... | gpl-3.0 |
mohammadclashclash/sinhfg | plugins/invite.lua | 28 | 1200 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Ryo.lua | 12 | 1193 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Ryo
-- Type: ZNM
-- @pos -127.086 0.999 22.693 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/besieged");
require("scripts/... | gpl-3.0 |
AGTMADCAT/naev | dat/missions/empire/emp_hcvl.lua | 11 | 5211 | --[[
Empire Heavy Combat Vessel License Mision
Mission that is basically a one-time pirate bounty mission.
Author: bobbens
minor edits by Infiltrator
--]]
-- Localization, choosing a language if naev is translated for non-english-speaking locales.
lang = naev.lang()
if lang == "es" then
else -- Defa... | gpl-3.0 |
amenophis1er/prosody-modules | mod_http_dir_listing/http_dir_listing/mod_http_dir_listing.lua | 32 | 2248 | -- Prosody IM
-- Copyright (C) 2012 Kim Alvefur
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
module:set_global();
local server = require"net.http.server";
local lfs = require "lfs";
local stat = lfs.attributes;
local build_path = require"socket.u... | mit |
Kthulupwns/darkstar | scripts/globals/weaponskills/blade_yu.lua | 12 | 1552 | -----------------------------------
-- Blade Yu
-- Katana weapon skill
-- Skill Level: 290
-- Delivers a water elemental attack. Additional effect Poison. Durration varies with TP.
-- Aligned with the Aqua Gorget & Soil Gorget.
-- Aligned with the Aqua Belt & Soil Belt.
-- Element: Water
-- Modifiers: DEX:50% ;... | gpl-3.0 |
xvaara/kong | kong/tools/io.lua | 3 | 2720 | -- IO related utility functions
local path = require("path").new("/")
local stringy = require "stringy"
local _M = {}
_M.path = path
---
-- Checks existence of a file.
-- @param path path/file to check
-- @return `true` if found, `false` + error message otherwise
function _M.file_exists(path)
local f, err = io.op... | apache-2.0 |
Mleaf/mleaf_luci | modules/admin-mini/luasrc/model/cbi/mini/dhcp.lua | 82 | 2998 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
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
h... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Uleguerand_Range/npcs/HomePoint#5.lua | 12 | 1188 | -----------------------------------
-- Area: Uleguerand_Range
-- NPC: HomePoint#5
-- @pos
-----------------------------------
package.loaded["scripts/zones/Uleguerand_Range/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Uleguerand_Range/TextIDs");
require("scripts/globals/homepoint");
... | gpl-3.0 |
xvaara/kong | kong/plugins/rate-limiting/schema.lua | 8 | 1467 | local DaoError = require "kong.dao.error"
local constants = require "kong.constants"
return {
fields = {
second = { type = "number" },
minute = { type = "number" },
hour = { type = "number" },
day = { type = "number" },
month = { type = "number" },
year = { type = "number" }
},
self_check... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Chateau_dOraguille/npcs/Chalvatot.lua | 10 | 4390 | -----------------------------------
-- Area: Chateau d'Oraguille
-- NPC: Chalvatot
-- Finish Mission "The Crystal Spring"
-- Start & Finishes Quests: Her Majesty's Garden
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- @pos -105 0.1 72 233
-----------------------------------
package.loaded["scripts/zones/Cha... | gpl-3.0 |
alioshii/KASBAR | plugins/en-me.lua | 15 | 1553 | do
local function joker(msg, matches)
if is_sudo(msg) then
local text = "โ
- ุงูุช ู
ุทูุฑ ูู ุงูููู ".."\n".."๐- ุงูุฏู/ุฌ : "..msg.from.id.."\n".."๐- ุงุณู
ู/ุฌ : "..msg.from.first_name.."\n".."๐ค- ุงูู
ุนุฑู : @"..msg.from.username.."\n".."๐- ุงุณู
ุงููุฑูุจ "..msg.to.title --@DevPointTeam
return reply_msg(msg.id, t... | gpl-2.0 |
Mleaf/mleaf_luci | applications/luci-statistics/luasrc/model/cbi/luci_statistics/csv.lua | 80 | 1198 | --[[
Luci configuration model for statistics - collectd csv plugin configuration
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
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 a... | apache-2.0 |
Mleaf/mleaf_luci | applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua | 38 | 17398 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
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://w... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Southern_San_dOria/npcs/Nenne.lua | 19 | 2107 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Nenne
-- Starts and Finishes Quest: To Cure a Cough
-- @zone 230
-- @pos -114 -6 102
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scr... | gpl-3.0 |
Narthorn/reStrat | profiles/Stormtalon's Lair/stormtalon.lua | 3 | 1896 | -----------------------------------------------------------------------------
--Debug Profile, only works on easy mobs in Large Training Grounds
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
--Encounter Logic
... | gpl-2.0 |
awhitesong/rspamd | test/lua/unit/base64.lua | 6 | 3783 | context("Base64 encodning", function()
local ffi = require("ffi")
local util = require("rspamd_util")
ffi.cdef[[
void ottery_rand_bytes(void *buf, size_t n);
unsigned ottery_rand_unsigned(void);
unsigned char* g_base64_decode (const char *in, size_t *outlen);
char * rspamd_encode_base64 (const uns... | bsd-2-clause |
telbbs/luci-0.12 | applications/luci-statistics/luasrc/model/cbi/luci_statistics/iptables.lua | 79 | 3679 | --[[
Luci configuration model for statistics - collectd iptables plugin configuration
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
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 Lice... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Al_Zahbi/npcs/Krujaal.lua | 38 | 1024 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Krujaal
-- Type: Residence Renter
-- @zone: 48
-- @pos 36.522 -1 -63.198
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-------------------------... | gpl-3.0 |
Kthulupwns/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 |
Kthulupwns/darkstar | scripts/globals/items/m&p_cracker.lua | 36 | 1319 | -----------------------------------------
-- ID: 5640
-- Item: M&P Cracker
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Vitality 5
-- Mind -5
-- Defense % 25
-- Attack Cap 154
-----------------------------------------
require("scripts/globals/status");
---------------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Windurst_Woods/npcs/Spare_Four.lua | 19 | 1506 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Spare Four
-- Working 100%
-- Involved in quest: A Greeting Cardian
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/globals/quests"] = nil;
require("scripts/globals/quests");
package.loaded[... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Tazhaal.lua | 19 | 1133 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Tazhaal
-- Admits players to the dock in Aht Urhgan
-- @pos -5.195 -1 -98.966 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/... | gpl-3.0 |
kuoruan/luci | modules/luci-base/luasrc/model/cbi/admin_network/proto_dhcp.lua | 74 | 1873 | -- Copyright 2011-2012 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local ifc = net:get_interface()
local hostname, accept_ra, send_rs
local bcast, defaultroute, peerdns, dns, metric, clientid, vendorclass
hostname = section:taboption("gener... | apache-2.0 |
Velkon/DarkRP | gamemode/modules/hungermod/sv_hungermod.lua | 2 | 2574 | local function HMPlayerSpawn(ply)
ply:setSelfDarkRPVar("Energy", 100)
end
hook.Add("PlayerSpawn", "HMPlayerSpawn", HMPlayerSpawn)
local function HMThink()
for k, v in pairs(player.GetAll()) do
if not v:Alive() then continue end
v:hungerUpdate()
end
end
timer.Create("HMThink", 10, 0, HMThink... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.