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 |
|---|---|---|---|---|---|
FFXIOrgins/FFXIOrgins | scripts/zones/Bastok_Markets/npcs/Degenhard.lua | 19 | 2053 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Degenhard
-- Starts & Ends Quest: The Bare Bones
-- Involved in Quests: Beat Around the Bushin
-- @zone 235
-- @pos -175 2 -135
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
----------------... | gpl-3.0 |
daofeng2015/luci | protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_dhcpv6.lua | 60 | 1569 | -- Copyright 2013 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local o = section:taboption("general", ListValue, "reqaddress",
translate("Request IPv6-address"))
o:value("try")
o:value("force")
o:value("none", "disabled")
o.default = "try"
... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/serving_of_salmon_eggs.lua | 35 | 1340 | -----------------------------------------
-- ID: 5217
-- Item: serving_of_salmon_eggs
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Health 6
-- Magic 6
-- Dexterity 2
-- Mind -3
-----------------------------------------
require("scripts/globals/status");
-------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Ifrits_Cauldron/Zone.lua | 2 | 1651 | -----------------------------------
--
-- Zone: Ifrits_Cauldron (205)
--
-----------------------------------
package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Ifrits_Cauldron/TextIDs");
------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/bowl_of_medicinal_gruel.lua | 35 | 1505 | -----------------------------------------
-- ID: 4534
-- Item: bowl_of_medicinal_gruel
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- Vitality -1
-- Agility 2
-- Ranged Accuracy % 15 (cap 15)
-- HP Recovered While Healing 4
-----------------------------------------
require("scr... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/vehicles/cop_car_admin.lua | 1 | 2115 |
VEHICLE = {};
VEHICLE.ID = 'D';
VEHICLE.Name = "Police Charger";
VEHICLE.Make = "Dodge";
VEHICLE.Model = "Charger";
VEHICLE.Script = "911";
VEHICLE.Cost = 0;
VEHICLE.PaintJobCost = 0;
VEHICLE.DF = false;
VEHICLE.CustomBodyGroup = nil;
VEHICLE.PaintJobs = {
{model = 'models/si... | mit |
brianbennett/fpga_nes | sw/scripts/ppu_spr_ram.lua | 3 | 6237 | ----------------------------------------------------------------------------------------------------
-- Script: ppu_spr_ram.lua
-- Description: PPU test. Directed test for reading/writing sprite ram through the PPU register
-- interface.
---------------------------------------------------------------... | bsd-2-clause |
caidongyun/nginx-openresty-windows | luajit-root/luajit/share/luajit-2.1.0-alpha/jit/p.lua | 2 | 9402 | ----------------------------------------------------------------------------
-- LuaJIT profiler.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
-- Thi... | bsd-2-clause |
msburgess3200/PERP | gamemodes/perp/gamemode/vehicles/spyder.lua | 1 | 2012 |
VEHICLE = {};
VEHICLE.ID = 'i';
VEHICLE.FID = '14';
VEHICLE.Name = "Spyder";
VEHICLE.Make = "Ferrari";
VEHICLE.Model = "Spyder";
VEHICLE.Script = "spyder";
VEHICLE.Cost = 115000;
VEHICLE.PaintJobCost = 7000;
VEHICLE.DF = true;
VEHICLE.CustomBodyGroup = nil;
VEHICLE.PaintJobs = {
... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Bastok_Markets_[S]/npcs/Heumila.lua | 38 | 1030 | -----------------------------------
-- Area: Bastok Markets (S)
-- NPC: Heumila
-- Type: Past Event Watcher
-- @zone: 87
-- @pos
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/bowl_of_pumpkin_soup.lua | 35 | 1656 | -----------------------------------------
-- ID: 4430
-- Item: bowl_of_pumpkin_soup
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- HP % 1
-- Vitality -1
-- Agility 3
-- HP Recovered While Healing 5
-- Ranged Accuracy % 8 (cap 20)
-----------------------------------------
requi... | gpl-3.0 |
fartoverflow/naev | dat/events/tutorial/tutorial-comms.lua | 11 | 4514 | -- This is tutorial: communications.
include("dat/events/tutorial/tutorial-common.lua")
-- localization stuff, translators would work here
lang = naev.lang()
if lang == "es" then
else -- default english
title1 = "Tutorial: Communications"
message1 = [[Welcome to the communications tutorial.
This tutorial... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/The_Shrine_of_RuAvitau/npcs/HomePoint#1.lua | 4 | 1671 | -----------------------------------
-- Area: The Shrine of Ru'Avitau
-- NPC: HomePoint#1
-- @pos -13 48 61 178
-----------------------------------
package.loaded["scripts/zones/The_Shrine_of_RuAvitau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/The_S... | gpl-3.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/carts/rails.lua | 7 | 3879 | minetest.register_node(":default:rail", {
description = "Rail",
drawtype = "raillike",
tiles = {
"default_rail.png", "default_rail_curved.png",
"default_rail_t_junction.png", "default_rail_crossing.png"
},
inventory_image = "default_rail.png",
wield_image = "default_rail.png",
paramtype = "light",
sunlight_... | unlicense |
m2mselect/owrt | feeds/luci/applications/luci-app-pbx/luasrc/controller/pbx.lua | 144 | 1448 | --[[
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 |
subzrk/BadRotations | Rotations/Rogue/Outlaw/OutlawCuteOne.lua | 3 | 40678 | local rotationName = "CuteOne"
---------------
--- Toggles ---
---------------
local function createToggles()
-- Rotation Button
RotationModes = {
[1] = { mode = "Auto", value = 1 , overlay = "Automatic Rotation", tip = "Swaps between Single and Multiple based on number of targets in range.", highlight = 1... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Aht_Urhgan_Whitegate/npcs/Zabahf.lua | 19 | 1646 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Zabahf
-- Type: Standard NPC
-- @pos -90.070 -1 10.140 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
requi... | gpl-3.0 |
subzrk/BadRotations | Rotations/Priest/Discipline/DisciplineBizkut.lua | 3 | 60319 | local rotationName = "Bizkut"
--------------
--- COLORS ---
--------------
local colorGreen = "|cff00FF00"
local colorRed = "|cffFF0000"
local colorWhite = "|cffFFFFFF"
---------------
--- Toggles ---
---------------
local function createToggles()
-- Healer Button
HealerModes = {
[1] = { mo... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Tavnazian_Safehold/TextIDs.lua | 3 | 1981 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6378; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6381; -- Obtained: <item>
GIL_OBTAINED = 6382; -- Obtained <number> gil
KEYITEM_OBTAINED = 6384; -- Ob... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Northern_San_dOria/npcs/Pirvidiauce.lua | 36 | 1984 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Pirvidiauce
-- Conquest depending medicine seller
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scr... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/mobskills/Leaf_Dagger.lua | 6 | 1200 | ---------------------------------------------
-- Leaf Dagger
--
-- Description: Deals piercing damage to a single target. Additional effect: Poison
-- Type: Physical
-- Utsusemi/Blink absorb: 2 shadows
-- Range: Melee?
-- Notes: On higher level Madragoras (Korrigans for example) the poision is 5hp/tick for... | gpl-3.0 |
daofeng2015/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk/voicemail_settings.lua | 68 | 2203 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require "luci.sys.zoneinfo"
cbimap = Map("asterisk", "Voicemail - Common Settings")
voicegeneral = cbimap:section(TypedSection, "voicegeneral",
"General Voicemail Options", "Common settings for all mailboxes... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Riverne-Site_A01/npcs/_0u2.lua | 19 | 1339 | -----------------------------------
-- Area: Riverne Site #A01
-- NPC: Unstable Displacement
-----------------------------------
package.loaded["scripts/zones/Riverne-Site_A01/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Riverne-Site_A01/Text... | gpl-3.0 |
pax2you4now/wesnoth | data/ai/micro_ais/micro_ai_self_data.lua | 26 | 3940 | -- This set of functions provides a consistent way of storing Micro AI variables
-- in the AI's persistent self.data variable. These need to be stored inside
-- a [micro_ai] tag, so that they are bundled together for a given Micro AI
-- together with an ai_id= key. Their existence can then be checked when setting
-- up... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/spells/quake.lua | 4 | 1233 | -----------------------------------------
-- Spell: Quake
-- Deals earth damage to an enemy.
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
fu... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/slice_of_tavnazian_ram_meat.lua | 17 | 1334 | -----------------------------------------
-- ID: 5208
-- Item: slice_of_tavnazian_ram_meat
-- Food Effect: 5Min, Galka only
-----------------------------------------
-- Strength 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
---------------------------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Residential_Area/npcs/Moogle.lua | 7 | 2589 | -----------------------------------
-- Area: Residential Area
-- NPC: Moogle
--
-----------------------------------
require("scripts/globals/moglocker")
-- get the offset of:
-- Your Mog Locker lease is valid until XXXXX, kupo.?Prompt?
-- for a given zone.
function getMogLockerTextOffset(zone)
if (zon... | gpl-3.0 |
peval/Atlas | lib/proxy/split.lua | 41 | 14816 | module("proxy.split", package.seeall)
--local table = require("proxy.table")
local crc = require("proxy.crc32")
local log = require("proxy.log")
local filter = require("proxy.filter")
local config_file = string.format("proxy.conf.config_%s", proxy.global.config.instance)
local config = require(config_file)
l... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Halvung/npcs/qm2.lua | 15 | 1157 | -----------------------------------
-- Area: Halvung
-- NPC: ??? (Spawn Dextrose(ZNM T2))
-- @pos -144 11 464 62
-----------------------------------
package.loaded["scripts/zones/Halvung/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Halvung/TextIDs");
-----------------------------------... | gpl-3.0 |
ho3einkj/boti | plugins/anti_fosh.lua | 49 | 1591 | local function run(msg, matches)
if is_owner(msg) then
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)] then
if data[tostring(msg.to.id)]['settings'] then
if data[tostring(msg.to.id)]['settings']['antifosh'] then
lock_fos... | gpl-2.0 |
hb9cwp/snabbswitch | lib/ljsyscall/test/test.lua | 18 | 89565 | -- test suite for ljsyscall.
-- TODO stop using globals for tests
arg = arg or {}
-- only use this installation for tests
package.path = "./?.lua;"
local strict = require "include.strict.strict"
local helpers = require "syscall.helpers"
local assert = helpers.assert
local S
local tmpabi
local short
if arg[1] ==... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Ship_bound_for_Selbina/Zone.lua | 17 | 1635 | -----------------------------------
--
-- Zone: Ship_bound_for_Selbina (220)
--
-----------------------------------
package.loaded["scripts/zones/Ship_bound_for_Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("sc... | gpl-3.0 |
teahouse/FWServer | skynet/service/bootstrap.lua | 18 | 1196 | local skynet = require "skynet"
local harbor = require "skynet.harbor"
require "skynet.manager" -- import skynet.launch, ...
local memory = require "memory"
skynet.start(function()
local sharestring = tonumber(skynet.getenv "sharestring" or 4096)
memory.ssexpand(sharestring)
local standalone = skynet.getenv "stand... | mit |
sjznxd/lc-20130127 | contrib/luasrcdiet/lua/lparser.lua | 122 | 41820 | --[[--------------------------------------------------------------------
lparser.lua: Lua 5.1 parser in Lua
This file is part of LuaSrcDiet, based on Yueliang material.
Copyright (c) 2008 Kein-Hong Man <khman@users.sf.net>
The COPYRIGHT file describes the conditions
under which this software may be distribu... | apache-2.0 |
maximilianofaccone/puppy-siberian | root/.conky/.scripts_orange/main.lua | 1 | 5879 | require "cairo"
require "imlib2"
-- определяем раздел home, для возможности работать с любого компьтера
usrhome = os.getenv("HOME")
-- необходимые скрипты
dofile (usrhome .."/.conky/.scripts_orange/backgraund.lua")
dofile (usrhome .."/.conky/.scripts_orange/clock_hands.lua")
dofile (usrhome .."/.conky/.scripts_oran... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/spells/knights_minne_iv.lua | 4 | 1518 | -----------------------------------------
-- Spell: Knight's Minne IV
-- Grants Defense bonus to all allies.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function OnMagicCasti... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/PsoXja/npcs/_09b.lua | 9 | 1609 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _09b (Stone Gate)
-- Notes: Spawns Gargoyle when triggered
-- @pos -330.000 14.074 -261.600 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Pso... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Bastok_Markets/npcs/Peritrage.lua | 36 | 1558 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Peritrage
-- Standard Merchant NPC
--
-- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
requir... | gpl-3.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/3d_armor/3d_armor/armor.lua | 1 | 22081 | local armors_no_shields = { ["3d_armor:helmet_hardenedleather"] = true,["3d_armor:chestplate_hardenedleather"] = true,
["3d_armor:leggings_hardenedleather"] = true,["3d_armor:boots_hardenedleather"] = true,
["3d_armor:helmet_reinforcedleather"] = true,["3d_armor:chestplate_reinforcedleather"] = true,
... | unlicense |
FFXIOrgins/FFXIOrgins | scripts/globals/mobskills/Chains_of_Rage.lua | 5 | 1150 | ---------------------------------------------
-- Chains of Apathy
--
---------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
require("/scripts/globals/keyitems");
require("/scripts/zones/Empyreal_Paradox/TextIDs... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Mhaura/npcs/Explorer_Moogle.lua | 4 | 1780 | -----------------------------------
-- Area: Mhaura
-- NPC: Explorer Moogle
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mhaura/TextIDs");
require("scripts/globals/settings");
require("scripts/globals/tele... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/abilities/modus_veritas.lua | 5 | 1550 | -----------------------------------
-- Ability: Modus Veritas
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- OnUseAbility
-----------------------------------
function OnAbilityCheck(p... | gpl-3.0 |
ers35/luakernel | src/luakernel.lua | 1 | 10048 | local sqlite3 = require("lsqlite3")
package.searchers[2] = function(modname)
return loader, modname
end
timer_ticks = 0
local tasks = {}
function taskadd(func, name, maskcount)
local co = coroutine.create(func)
setmaskhook(co, maskcount or 1000)
local task = {
name = name or "task_" .. #tasks,
-- Fo... | cc0-1.0 |
TRIEXTEAM/TaylortTG | plugins/tagall.lua | 13 | 2876 | --Tag ppl with username and a msg after it
local function tagall(cb_extra, success, result)
local receiver = cb_extra.receiver
local chat_id = "chat#id"..result.id
local text = ''
for k,v in pairs(result.members) do
if v.username then
text = text.."> @"..v.username.."\n"
end
end
text =... | gpl-2.0 |
POPHUP/maroonhost | plugins/tagall.lua | 13 | 2876 | --Tag ppl with username and a msg after it
local function tagall(cb_extra, success, result)
local receiver = cb_extra.receiver
local chat_id = "chat#id"..result.id
local text = ''
for k,v in pairs(result.members) do
if v.username then
text = text.."> @"..v.username.."\n"
end
end
text =... | gpl-2.0 |
suchipi/pac3 | lua/pac3/editor/client/examples.lua | 1 | 176003 | pace.example_outfits = {}
--pace.example_outfits[""] = {}
pace.example_outfits["projectile gun advanced"] = {[1] = {
["children"] = {
[1] = {
["children"] = {
},
["self"] = {
["ClassName"] = "model",
["Position"] = Vector(21.794189453125, -0.0023193359375, 31.116744995117),
["Model"] = "models/p... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Qufim_Island/Zone.lua | 2 | 2350 | -----------------------------------
--
-- Zone: Qufim_Island (126)
--
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/quests");
... | gpl-3.0 |
sjznxd/lc-20130127 | libs/sys/luasrc/sys/zoneinfo/tzdata.lua | 72 | 16813 | --[[
LuCI - Autogenerated Zoneinfo Module
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
]]--
module "luci.sys.zoneinfo.tzdata"
TZ = {
{ 'Africa/Abi... | apache-2.0 |
sjznxd/luci-0.11-aa | libs/sys/luasrc/sys/zoneinfo/tzdata.lua | 72 | 16813 | --[[
LuCI - Autogenerated Zoneinfo Module
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
]]--
module "luci.sys.zoneinfo.tzdata"
TZ = {
{ 'Africa/Abi... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Tavnazian_Safehold/npcs/Despachiaire.lua | 17 | 2644 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Despachiaire
-- @pos 108 -40 -83 26
-----------------------------------
require("scripts/globals/missions");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Aht_Urhgan_Whitegate/npcs/Sharin-Garin.lua | 7 | 1872 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Sharin-Garin
-- Type: Adventurer's Assistant
-- @pos 122.658 -1.315 33.001 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/b... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/spells/phalanx.lua | 4 | 1073 | -----------------------------------------
-- Spell: PHALANX
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function OnMagicCastingCheck(caster,... | gpl-3.0 |
daofeng2015/luci | applications/luci-app-p2pblock/luasrc/model/cbi/luci_fw/p2pblock.lua | 60 | 2067 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local sys = require "luci.sys"
m = Map("freifunk_p2pblock", translate("P2P-Block"),
translate("P2P-Block is a greylisting mechanism to block various peer-to-peer protocols for non-whitelisted clients."))
s = ... | apache-2.0 |
CAAP/ferre | ferre/precios.lua | 2 | 1269 | #!/usr/local/bin/lua
local sql = require'carlos.sqlite'
local fd = require'carlos.fold'
local aux = require'ferre.aux'
local function quot(x)
if 'table' == type(x) then return string.format('[%s]', table.concat(fd.reduce(x, fd.map(quot), fd.into, {}), ', ')) end
return tonumber(x) and (math.tointeger(x) or x... | bsd-2-clause |
Gael-de-Sailly/minetest-minetestforfun-server | mods/moreblocks/ownership.lua | 13 | 1282 | --[[
More Blocks: ownership handling
Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
local S = moreblocks.gettext
function moreblocks.node_is_owned(pos, placer)
local ownername = false
if type(IsPlayerNodeOwner) == "function" then -- ... | unlicense |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/evisceration.lua | 6 | 1377 | -----------------------------------
-- Evisceration
-- Dagger weapon skill
-- Skill level: 230
-- In order to obtain Evisceration, the quest Cloak and Dagger must be completed.
-- Delivers a fivefold attack. Chance of params.critical hit varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the... | gpl-3.0 |
sjznxd/lc-20130127 | applications/luci-splash/luasrc/controller/splash/splash.lua | 23 | 3542 | module("luci.controller.splash.splash", package.seeall)
local uci = luci.model.uci.cursor()
local util = require "luci.util"
function index()
entry({"admin", "services", "splash"}, cbi("splash/splash"), _("Client-Splash"), 90)
entry({"admin", "services", "splash", "splashtext" }, form("splash/splashtext"), _("Splas... | apache-2.0 |
hb9cwp/snabbswitch | lib/ljsyscall/syscall/netbsd/sysctl.lua | 24 | 9682 | --types for NetBSD sysctl, incomplete at present
local require = require
local c = require "syscall.netbsd.constants"
-- TODO note might be considered bool, CTLTYPE_BOOL is defined.
-- TODO we should traverse tree and read types instead of predefined values
local types = {
unspec = c.CTL.UNSPEC,
kern = {... | apache-2.0 |
sjznxd/lc-20130127 | applications/luci-commands/luasrc/model/cbi/commands.lua | 77 | 1141 | --[[
LuCI - Lua Configuration Interface
Copyright 2012 Jo-Philipp Wich <jow@openwrt.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 m,... | apache-2.0 |
subzrk/BadRotations | Rotations/Paladin/Retribution/RetributionCuteOne.lua | 2 | 50461 | local rotationName = "CuteOne"
---------------
--- Toggles ---
---------------
local function createToggles()
-- Rotation Button
RotationModes = {
[1] = { mode = "Auto", value = 1 , overlay = "Automatic Rotation", tip = "Swaps between Single and Multiple based on number of targets in range.", highlight = 1,... | gpl-3.0 |
PioneerMakeTeam/Cretaceous | wicker/gadgets/persistentstring.lua | 6 | 3185 | local Lambda = wickerrequire "paradigms.functional"
local Debuggable = wickerrequire "adjectives.debuggable"
local Pred = wickerrequire "lib.predicates"
local assert = assert
local tostring = tostring
---
if not IsWorldgen() then
require "mainfunctions"
end
---
local CACHE_KEY = {}
---
local SetFileName = (fun... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/North_Gustaberg/npcs/Butsutsu_WW.lua | 8 | 2946 | -----------------------------------
-- Area: North Gustaberg
-- NPC: Butsutsu, W.W.
-- Type: Border Conquest Guards
-- @pos -520.704 38.75 560.258 106
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conques... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/items/furniture_wood_gun_cabinet.lua | 1 | 1230 |
local ITEM = {};
ITEM.ID = 80;
ITEM.Reference = "furniture_wood_gun_cabinet";
ITEM.Name = "Antique Gun Cabinet";
ITEM.Description = "Unfortunatly, the guns don't work.\n\nLeft click to spawn as prop.";
ITEM.Weight = 30;
ITEM.Cost = 1000;
ITEM.MaxStack = 100;
ITEM.InventoryModel ... | mit |
m2mselect/owrt | feeds/luci/applications/luci-app-minidlna/luasrc/controller/minidlna.lua | 72 | 1242 | -- Copyright 2012 Gabor Juhos <juhosg@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.minidlna", package.seeall)
function index()
if not nixio.fs.access("/etc/config/minidlna") then
return
end
local page
page = entry({"admin", "services", "minidlna"}, cbi("minidlna... | gpl-2.0 |
msburgess3200/PERP | gamemodes/perp/entities/entities/prop_back_gun/cl_init.lua | 1 | 1087 |
include('shared.lua')
function ENT:Draw()
local Owner = self:GetNetworkedEntity("o", nil);
if (!IsValid(Owner) || Owner == LocalPlayer()) then
self:DrawShadow(false);
return false;
end
local Attachment = Owner:GetAttachment(Owner:LookupAttachment("chest"));
local Pos = Attachment.Pos;
local Ang = Attac... | mit |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/raging_rush.lua | 6 | 1285 | -----------------------------------
-- Raging Rush
-- Great Axe weapon skill
-- Skill level: 200 (Warriors only.)
-- Delivers a three-hit attack. Chance of params.critical hit varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Snow Gorget & Aqua Gorget.
-- Aligned with the Snow Belt & Aq... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/plate_of_vegan_sautee.lua | 35 | 1401 | -----------------------------------------
-- ID: 5184
-- Item: plate_of_vegan_sautee
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Agility 1
-- Vitality -1
-- Ranged ACC % 7
-- Ranged ACC Cap 20
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Dynamis-Xarcabard/mobs/Statue_Prototype.lua | 17 | 1242 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Statue Prototype
-----------------------------------
package.loaded["scripts/zones/Dynamis-Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/dynamis");
require("scri... | gpl-3.0 |
mahdikord/mahdikord9 | plugins/invite.lua | 1111 | 1195 | 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 |
chinnytp/proxmark3 | client/scripts/parameters.lua | 27 | 1267 |
-- The getopt-functionality is loaded from pm3/getopt.lua
-- Have a look there for further details
getopt = require('getopt')
usage = "script run parameters.lua -a 1 -blala -c -de"
author = "Martin Holst Swende"
desc =[[
This is an example script to demonstrate handle parameters in scripts.
For more info, check the ... | gpl-2.0 |
mkacik/bcc | src/lua/src/squish.lua | 9 | 8029 | #!/usr/bin/env lua
local short_opts = { v = "verbose", vv = "very_verbose", o = "output", q = "quiet", qq = "very_quiet", g = "debug" }
local opts = { use_http = false };
for _, opt in ipairs(arg) do
if opt:match("^%-") then
local name = opt:match("^%-%-?([^%s=]+)()")
name = (short_opts[name] or name):gsub("%-+"... | apache-2.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/vehicles/Old Cars/lambo.lua | 1 | 3138 | ///////////////////////////////
// © 2009-2010 Pulsar Effect //
// All rights reserved //
///////////////////////////////
// This material may not be //
// reproduced, displayed, //
// modified or distributed //
// without the express prior //
// written permission of the //
// the copyright holder. //
... | mit |
PioneerMakeTeam/Cretaceous | wicker/adjectives/configurable.lua | 3 | 10672 | --[[
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 ... | mit |
sjznxd/lc-20130127 | build/setup.lua | 99 | 1114 | local SYSROOT = os.getenv("LUCI_SYSROOT")
-- override uci access
local uci_core = require "uci"
local uci_model = require "luci.model.uci"
uci_model.cursor = function(config, save)
return uci_core.cursor(config or SYSROOT .. "/etc/config", save or SYSROOT .. "/tmp/.uci")
end
uci_model.cursor_state = function()
re... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/effects/int_down.lua | 19 | 1095 | -----------------------------------
--
-- EFFECT_INT_DOWN
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
if((target:getStat(MOD_INT) - effect... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Sauromugue_Champaign/npcs/qm7.lua | 11 | 2297 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: qm7 (???) (Tower 7)
-- Involved in Quest: THF AF "As Thick As Thieves"
-- @pos -193.869 15.400 276.837 120
-----------------------------------
package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil;
------------------------------... | gpl-3.0 |
svyatogor/resty-lua-jwt | lib/resty/jwt.lua | 1 | 17891 | local cjson = require "cjson"
local aes = require "resty.aes"
local evp = require "resty.evp"
local hmac = require "resty.hmac"
local resty_random = require "resty.random"
local _M = {_VERSION="0.1.1"}
local mt = {__index=_M}
local string_match= string.match
local string_rep = string.rep
local string_format = string.... | apache-2.0 |
louiseGrandjonc/emacs | test/etags/lua-src/allegro.lua | 53 | 6727 | -- ase -- allegro-sprite-editor: the ultimate sprites factory
-- Copyright (C) 2001-2004 by David A. Capello
--
-- Read "LEGAL.txt" for more information.
-- internal routine
local function get_layer_by_name (sprite, layer, name)
if layer.readable == false then
return nil;
end
if layer.name and strcmp (layer... | gpl-3.0 |
sjznxd/luci-0.11-aa | applications/luci-ahcp/luasrc/controller/ahcp.lua | 76 | 1533 | --[[
LuCI - Lua Configuration Interface
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id: init.lua... | apache-2.0 |
robertbrook/Penlight | lua/pl/text.lua | 34 | 7257 | --- Text processing utilities.
--
-- This provides a Template class (modeled after the same from the Python
-- libraries, see string.Template). It also provides similar functions to those
-- found in the textwrap module.
--
-- See @{03-strings.md.String_Templates|the Guide}.
--
-- Calling `text.format_operator()` over... | mit |
Lsty/ygopro-scripts | c55713623.lua | 5 | 1304 | --収縮
function c55713623.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(c55713623.con... | gpl-2.0 |
MalRD/darkstar | scripts/globals/items/party_egg.lua | 11 | 1032 | -----------------------------------------
-- ID: 4595
-- Item: party_egg
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 25
-- Magic 25
-- Attack 5
-- Ranged Attack 4
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
---------... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Port_Bastok/npcs/Jabbar.lua | 11 | 1318 | -----------------------------------
-- Area: Port Bastok
-- NPC: Jabbar
-- Type: Tenshodo Merchant
-- Involved in Quests: Tenshodo Menbership
-- !pos -99.718 -2.299 26.027 236
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop");
require("scripts/globals/quests");
re... | gpl-3.0 |
Lsty/ygopro-scripts | c65331686.lua | 3 | 4482 | --ファーニマル・オウル
function c65331686.initial_effect(c)
--search
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(65331686,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:... | gpl-2.0 |
Lsty/ygopro-scripts | c79447365.lua | 7 | 2070 | --トゥーン・マスク
function c79447365.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCondition(c79447365.condition)
e1:SetTarget(c79447365.target)
e1:SetOper... | gpl-2.0 |
Lsty/ygopro-scripts | c12986807.lua | 5 | 1900 | --ラヴァル・グレイター
function c12986807.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(Card.IsAttribute,ATTRIBUTE_FIRE),1)
c:EnableReviveLimit()
--to hand
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(12986807,0))
e1:SetCategory(CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_SI... | gpl-2.0 |
elant/cardpeek | dot_cardpeek_dir/scripts/lib/calypso_card_num.lua | 17 | 1572 | --
-- This file is part of Cardpeek, the smart card reader utility.
--
-- Copyright 2009-2013 by Alain Pannetrat <L1L1@gmx.com>
--
-- 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... | gpl-3.0 |
rahul-iisc/seq2seq-mapping | seq2seq.lua | 1 | 15957 | --[[
-- adapted from encoder-decoder-coupling example from Element-research/rnn/example and char-rnn by Karpathy
-- This example includes -
-- multiple LSTM layered encoder-decoder
-- dropout between stacked LSTM layers
-- input sequences can be of any length
-- I'm not aware of effects of arbitra... | mit |
Lsty/ygopro-scripts | c164710.lua | 5 | 1664 | --小人のいたずら
function c164710.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,0x1c0)
e1:SetOperation(c164710.lvop)
c:RegisterEffect(e1)
--lv
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EV... | gpl-2.0 |
ThingMesh/openwrt-luci | libs/lucid/luasrc/lucid.lua | 48 | 8771 | --[[
LuCI - Lua Development Framework
Copyright 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://www.apache.org/licenses/LICENSE-2.0
$Id$
]]
local ni... | apache-2.0 |
adan830/luacheck | src/luacheck/filter.lua | 4 | 9008 | local options = require "luacheck.options"
local core_utils = require "luacheck.core_utils"
local utils = require "luacheck.utils"
local filter = {}
-- Returns array of normalized options, one for each file.
local function get_normalized_opts(report, opts)
local res = {}
for i in ipairs(report) do
local ... | mit |
Lsty/ygopro-scripts | c13032689.lua | 6 | 2419 | --エクシーズ・ユニット
function c13032689.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c13032689.target)
e1:SetOperation(c13032689.operation)
c:RegisterEffect(... | gpl-2.0 |
Lsty/ygopro-scripts | c64514622.lua | 3 | 1383 | --龍王の聖刻印
function c64514622.initial_effect(c)
aux.EnableDualAttribute(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetDescription(aux.Stringid(64514622,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(aux.IsDualState)
e1:SetCost(... | gpl-2.0 |
nmabhi/Webface | training/opts.lua | 8 | 2801 | local M = { }
-- http://stackoverflow.com/questions/6380820/get-containing-path-of-lua-file
function script_path()
local str = debug.getinfo(2, "S").source:sub(2)
return str:match("(.*/)")
end
function M.parse(arg)
local cmd = torch.CmdLine()
cmd:text()
cmd:text('OpenFace')
cmd:text()
cmd:text('... | apache-2.0 |
Lsty/ygopro-scripts | c64163367.lua | 3 | 1299 | --「A」細胞培養装置
function c64163367.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--counter1
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetRange(LOCATION_SZONE)
e2:SetCode(EVENT_REMOVE... | gpl-2.0 |
imblackman/khoffash1 | plugins/groupmanagerfa.lua | 1 | 1460 | local function modadd(msg)
local hash = "gp_lang:"..msg.chat_id_
local lang = redis:get(hash)
if not is_admin(msg) then
if not lang then
return '_You are not bot admin_'
else
return 'شما مدیر ربات نمیباشید'
end
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.chat_i... | gpl-3.0 |
ara8586/9900 | plugins/lock_fwd.lua | 1 | 1145 | do
local function pre_process(msg)
--Checking mute
local hash = 'mate:'..msg.to.id
if redis:get(hash) and msg.fwd_from and not is_sudo(msg) and not is_owner(msg) and not is_momod(msg) and not is_admin1(msg) then
delete_msg(msg.id, ok_cb, true)
return "done"
end
... | agpl-3.0 |
MalRD/darkstar | scripts/zones/Nyzul_Isle/instances/nashmeira's_plea.lua | 9 | 1926 | -----------------------------------
--
-- TOAU-42: Path of Darkness
--
-----------------------------------
local ID = require("scripts/zones/Nyzul_Isle/IDs")
require("scripts/globals/instance")
require("scripts/globals/keyitems");
-----------------------------------
function afterInstanceRegister(player)
local ins... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Western_Adoulin/npcs/Dewalt.lua | 9 | 1784 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Dewalt
-- Type: Standard NPC and Quest NPC
-- Involved with Quests: 'Flavors of our Lives', 'Dont Ever Leaf Me'
-- !pos -23 0 28 256
-----------------------------------
require("scripts/globals/quests");
-----------------------------------
function... | gpl-3.0 |
mikhail-angelov/vlc | share/lua/playlist/zapiks.lua | 89 | 3182 | --[[
$Id$
Copyright © 2011 the VideoLAN team
Authors: Konstantin Pavlov (thresh@videolan.org)
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 opt... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.