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
jiang42/Algorithm-Implementations
Caesar_Cipher/Lua/Yonaba/caesar_cipher_test.lua
26
1202
-- Tests for caesar_cipher.lua local caesar = require 'caesar_cipher' 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 = pass + 1 ...
mit
Fatalerror66/ffxi-a
scripts/globals/abilities/thunder_shot.lua
2
2211
----------------------------------- -- Ability: Thunder Shot ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- OnUseAbility ----------------------------------- function OnAbi...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/Mhaura/npcs/Yabby_Tanmikey.lua
2
1140
----------------------------------- -- Area: Mhaura -- NPC: Yabby Tanmikey -- Guild Merchant NPC: Goldsmithing Guild -- @pos -36.459 -16.000 76.840 249 ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); r...
gpl-3.0
soumith/cuda-convnet2.torch
examples/load_imagenet.lua
3
3737
-- Copyright (c) 2014 by -- Sergey Zagoruyko <sergey.zagoruyko@imagine.enpc.fr> -- Francisco Massa <fvsmassa@gmail.com> -- Universite Paris-Est Marne-la-Vallee/ENPC, LIGM, IMAGINE group require 'cunn' require 'ccn2' require 'mattorch' function load_imagenet(matfilename) local fSize = {3, 96, 256, 384, 384, ...
apache-2.0
Fatalerror66/ffxi-a
scripts/globals/abilities/wizards_roll.lua
6
1407
----------------------------------- -- Ability: Choral Roll ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); ----------------------------------- -- OnUseAbility ----------------------------------- function OnAbilityCheck(player,target,ability) lo...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/Tavnazian_Safehold/npcs/Home_Point.lua
10
1208
----------------------------------- -- Area: Tavnazian Safehold -- NPC: Home Point ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil; require("scripts/zones/Tavnazian_Safehold/TextIDs"); ----------------------------------...
gpl-3.0
Fatalerror66/ffxi-a
scripts/globals/items/baked_popoto.lua
2
1222
----------------------------------------- -- ID: 4436 -- Item: Baked Popoto -- Food Effect: 30Min, All Races ----------------------------------------- -- Health 20 -- Dexterity -1 -- Vitality 2 ----------------------------------------- require("scripts/globals/status"); -----------------------------------...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/Windurst_Waters_[S]/npcs/Koton-Llaton.lua
4
1053
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Koton-Llaton -- Type: Standard NPC -- @zone: 94 -- @pos: 78.220 -3.75 -173.631 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = n...
gpl-3.0
Wedge009/wesnoth
data/ai/micro_ais/cas/ca_herding_sheep_runs_enemy.lua
15
1688
local AH = wesnoth.require "ai/lua/ai_helper.lua" local M = wesnoth.map local function get_next_sheep_enemies(cfg) local sheep = AH.get_units_with_moves { side = wesnoth.current.side, { "and", wml.get_child(cfg, "filter_second") } } if (not sheep[1]) then return end local enemies = AH....
gpl-2.0
kidaa/FFXIOrgins
scripts/zones/Temenos/mobs/Abyssdweller_Jhabdebb.lua
2
1552
----------------------------------- -- Area: Temenos -- NPC: ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); ----------------------------------- -- onMobSpawn ...
gpl-3.0
KevinGuarnati/controllore
plugins/boobs.lua
3
1719
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an emp...
mit
MikePetullo/grilo-plugins
tests/lua-factory/data/test-source-lua-errors.lua
4
4293
--[[ * Copyright (C) 2016 Victor Toso. * * Contact: Victor Toso <me@victortoso.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; version 2.1 of * the License, or (at your opt...
lgpl-2.1
actionless/awesome
tests/examples/wibox/nwidget/default.lua
4
3116
--DOC_GEN_IMAGE --DOC_HIDE_ALL local parent = ... local naughty = require("naughty") local wibox = require("wibox") local beautiful = require("beautiful") local def = require("naughty.widget._default") local acommon = require("awful.widget.common") local aplace = require("awful.placement") local gears = require("gea...
gpl-2.0
flyzjhz/openwrt-bb
feeds/luci/applications/luci-vnstat/luasrc/model/cbi/vnstat.lua
90
2019
--[[ LuCI - Lua Configuration Interface Copyright 2010-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 ]]-- loc...
gpl-2.0
woesdo/XY
plugins/plugins.lua
88
6304
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
Fatalerror66/ffxi-a
scripts/zones/Upper_Jeuno/TextIDs.lua
2
1594
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6617; -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6537; -- Obtained: <item> GIL_OBTAINED = 6538; -- Obtained <number> gil KEYITEM_OBTAINED = 6540; -- Obtain...
gpl-3.0
kidaa/FFXIOrgins
scripts/globals/items/tortilla_bueno.lua
1
1145
----------------------------------------- -- ID: 5181 -- Item: tortilla_bueno -- Food Effect: 60Min, All Races ----------------------------------------- -- Health 8 -- Vitality 4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -----...
gpl-3.0
Fatalerror66/ffxi-a
scripts/globals/items/bowl_of_riverfin_soup.lua
3
1761
----------------------------------------- -- ID: 6069 -- Item: Bowl of Riverfin Soup -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- Accuracy % 14 Cap 90 -- Ranged Accuracy % 14 Cap 90 -- Attack % 18 Cap 80 -- Ranged Attack % 18 Cap 80 -- Amorph Killer 5 -----------------------------------...
gpl-3.0
tltneon/nsplugins
plugins/playx/sv_plugin.lua
2
1608
local PLUGIN = PLUGIN function PLUGIN:LoadData() if not PlayX then return end local screen = ents.Create("gmod_playx") screen:SetModel("models/dav0r/camera.mdl") screen:SetPos(self.screenPos) screen:SetAngles(self.screenAng) screen:SetRenderMode(RENDERMODE_TRANSALPHA) screen:SetColor(Color(255, 255, 255, 1)) ...
gpl-2.0
Fatalerror66/ffxi-a
scripts/zones/Lower_Jeuno/npcs/_l10.lua
36
1556
----------------------------------- -- Area: Lower Jeuno -- NPC: Streetlamp -- Involved in Quests: Community Service -- @zone 245 -- @pos -19 0 -4.625 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/s...
gpl-3.0
flyzjhz/openwrt-bb
feeds/luci/modules/freifunk/luasrc/model/cbi/freifunk/basics.lua
74
3518
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Manuel Munz <freifunk at somakoma de> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http:...
gpl-2.0
pavouk/lgi
samples/gstvideo.lua
6
3219
#! /usr/bin/env lua -- -- Sample GStreamer application, based on public Vala GStreamer Video -- Example (http://live.gnome.org/Vala/GStreamerSample) -- local lgi = require 'lgi' local GLib = lgi.GLib local Gtk = lgi.Gtk local GdkX11 = lgi.GdkX11 local Gst = lgi.Gst if tonumber(Gst._version) >= 1.0 then local Gs...
mit
kidaa/FFXIOrgins
scripts/zones/Riverne-Site_B01/npcs/_0t2.lua
4
1283
----------------------------------- -- Area: Riverne Site #B01 -- NPC: Unstable Displacement ----------------------------------- package.loaded["scripts/zones/Riverne-Site_B01/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Riverne-Site_B01/TextIDs"); ...
gpl-3.0
actionless/awesome
spec/wibox/container/margin_spec.lua
2
1966
--------------------------------------------------------------------------- -- @author Uli Schlachter -- @copyright 2017 Uli Schlachter --------------------------------------------------------------------------- local base = require('wibox.widget.base') local margin = require("wibox.container.margin") local imagebox =...
gpl-2.0
Inorizushi/DDR-EXTREME-JP-SM5
BGAnimations/ScreenTitleJoin background/default.lua
1
1439
function memcardActor(player) return LoadActor(THEME:GetPathG("MemoryCard", "Icons"))..{ InitCommand=cmd(vertalign,bottom;xy,THEME:GetMetric("ScreenSystemLayer","Credits"..pname(player).."X"),SCREEN_BOTTOM;zoom,2;animate,false;); OnCommand=cmd(visible,ToEnumShortString(MEMCARDMAN:GetCardState(player)) == 'ready')...
mit
shahryar1989/ShahryarAntiSpam
plugins/ingroup.lua
371
44212
do -- Check Member local function check_member_autorealm(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostr...
gpl-2.0
hjsrzvpqma/test2
plugins/ingroup.lua
371
44212
do -- Check Member local function check_member_autorealm(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostr...
gpl-2.0
meshr-net/meshr_win32
usr/lib/lua/luci/model/cbi/asterisk-mod-cdr.lua
11
1931
--[[ 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
Fatalerror66/ffxi-a
scripts/globals/spells/dia_iii.lua
2
1947
----------------------------------------- -- Spell: Dia III -- Lowers an enemy's defense and gradually deals light elemental damage. ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/Lower_Delkfutts_Tower/npcs/_544.lua
2
1599
----------------------------------- -- Area: Lower Delkfutt's Tower -- NPC: Cermet Door -- Notes: Door opens when you trade Delkfutt Key to it -- @pos 345 0.1 20 184 ----------------------------------- package.loaded["scripts/zones/Lower_Delkfutts_Tower/TextIDs"] = nil; ----------------------------------- require("...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/North_Gustaberg_[S]/npcs/Roderich.lua
2
1418
----------------------------------- -- Area: North Gusta(S) -- NPC: -400.039, 39.991, -90.445, ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil; require("scripts/zones/Bastok_Markets_[S]/TextIDs"); require("scripts/globals/que...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/Bastok_Mines/npcs/_6i8.lua
4
1235
----------------------------------- -- Area: Bastok Mines -- NPC: Door -- Involved in Quest: A Thief in Norg!? -- @pos 70 7 2 234 ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/zone...
gpl-3.0
simon-wh/PAYDAY-2-BeardLib-Editor
mods/BeardLib-Editor/Classes/Map/Elements/corelogicchance.lua
2
2099
EditorLogicChance = EditorLogicChance or class(MissionScriptEditor) function EditorLogicChance:create_element() self.super.create_element(self) self._element.class = "ElementLogicChance" self._element.values.chance = 100 end function EditorLogicChance:_build_panel() self:_create_panel() self:NumberCtrl("chance", ...
mit
Fatalerror66/ffxi-a
scripts/zones/Port_San_dOria/npcs/Habitox.lua
2
16216
----------------------------------- -- Area: Port Sandoria -- NPC: Habitox -- Type: Goblin Mystery Box -- @zone 232 -- @pos 10.000, -8.000, -130.000 -- -- Menu -- startEvent(0x031E, Item1, (Item2 or Dial #), Item3, 0, MysteryBoxTally) -- -- Tally Increase Amount 0: Smidge 1: Someamawhats 2: Gobby-fold 3: Gino...
gpl-3.0
flyzjhz/openwrt-bb
feeds/luci/applications/luci-coovachilli/luasrc/model/cbi/coovachilli_network.lua
79
1639
--[[ 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...
gpl-2.0
flyzjhz/openwrt-bb
feeds/luci/applications/luci-commands/luasrc/controller/commands.lua
76
5959
--[[ 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 ]]-- module("...
gpl-2.0
Clavus/LD32
engine/lib/loveframes/objects/multichoice.lua
13
11033
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ -- get the current require path local path = string.sub(..., 1, string.len(...) - string.len(".objects.multichoice")) local ...
mit
BTAxis/naev
dat/missions/empire/shipping/es01.lua
2
6549
--[[ Empire Shipping Dangerous Cargo Delivery Author: bobbens minor edits by Infiltrator ]]-- include "dat/scripts/numstring.lua" -- Mission details bar_desc = _("You see Commander Soldner who is expecting you.") misn_title = _("Empire Shipping Delivery") misn_reward = _("%s credits") misn_desc = {} mi...
gpl-3.0
flyzjhz/openwrt-bb
feeds/luci/applications/luci-asterisk/luasrc/model/cbi/asterisk/trunk_sip.lua
80
2561
--[[ LuCI - Lua Configuration Interface Copyright 2008 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$ ]]-- l...
gpl-2.0
emoses/hammerspoon
extensions/location/init.lua
13
7506
--- === hs.location === --- --- Determine the machine's location and useful information about that location local location = require("hs.location.internal") local internal = {} internal.__callbacks = {} --- hs.location.register(tag, fn[, distance]) --- Function --- Registers a callback function to be called when the ...
mit
redbill/torch7
torchcwrap.lua
54
15111
local wrap = require 'cwrap' local types = wrap.types types.Tensor = { helpname = function(arg) if arg.dim then return string.format("Tensor~%dD", arg.dim) else return "Tensor" end end, declare = function(arg...
bsd-3-clause
kidaa/FFXIOrgins
scripts/zones/Windurst_Woods/TextIDs.lua
3
5431
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6537; -- Come back after sorting your inventory. ITEM_OBTAINED = 6540; -- Obtained: <<<Unknown Parameter (Type: 80) 1>>><<<Possible Special Code: 01>>><<<Possible Special Code: 05>>> GIL_OBTAINED = 6541; -- O...
gpl-3.0
Eric-Dang/CocosLua
src/game/guanqia.lua
1
5447
--------------------------------------------------------------------------------------------------- -- ¹Ø¿¨ÐÅÏ¢ --------------------------------------------------------------------------------------------------- local d_chunk = require "game.chunk" -----------------------------------------------------------------------...
mit
capr/fbclient-alien
lua/fbclient/status_vector.lua
2
4528
--[[ STATUS_VECTOR structure: encapsulate error reporting for all firebird functions new() -> sv status(sv) -> true|nil,errcode full_status(fbapi, sv) -> true|nil,full_error_message errors(fbapi, sv) -> {err_msg1,...} sqlcode(fbapi, sv) -> n; deprecated in favor of sqlstate() in firebird 2.5+ sqlstate(fbapi, s...
mit
nonconforme/U3DTerrainEditor
Bin/OldFilters/dirtgrass.lua
2
1152
return { name="Perlin Fractal Terrain Types", description="Create a mottled dirt/grass terrain.", options= { {name="Frequency", type="value", value=8}, {name="Num Octaves", type="value", value=6}, {name="Gain", type="value", value=0.8}, {name="Seed", type="value", value=12345}, {name="Use Mask?", type="fl...
mit
Fatalerror66/ffxi-a
scripts/globals/mobskills/Everyones_Grudge.lua
6
1545
--------------------------------------------- -- Everyones Grudge -- -- Notes: Invokes collective hatred to spite a single target. -- Damage done is 5x the amount of tonberries you have killed! For NM's using this it is 50 x damage. --------------------------------------------- require("/scripts/globals/set...
gpl-3.0
mrbangi/deviilbot
plugins/plugins.lua
7
6145
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
kidaa/FFXIOrgins
scripts/zones/Zeruhn_Mines/Zone.lua
1
2378
----------------------------------- -- -- Zone: Zeruhn_Mines (172) -- ----------------------------------- package.loaded["scripts/zones/Zeruhn_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/zones/Zeruhn_Mines/TextIDs"); ----------------------------------...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/Southern_San_dOria/npcs/Kipopo.lua
11
1778
----------------------------------- -- Area: Southern San d'Oria -- NPC: Kipopo -- Type: Leathercraft Synthesis Image Support -- @pos -191.050 -2.15 12.285 230 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/Mhaura/npcs/Pikini-Mikini.lua
36
1448
----------------------------------- -- Area: Mhaura -- NPC: Pikini-Mikini -- Standard Merchant NPC -- @pos -48 -4 30 249 ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/zones/Mhaur...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/La_Theine_Plateau/npcs/qm2.lua
2
1829
----------------------------------- -- Area: La Theine Plateau -- NPC: ??? -- Involved in Quest: HITTING_THE_MARQUISATE THF af3 ----------------------------------- package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require...
gpl-3.0
miotatsu/milton
tundra/scripts/tundra/tools/msvc-winsdk.lua
28
4318
-- msvc-winsdk.lua - Use Microsoft Windows SDK 7.1 or later to build. module(..., package.seeall) local native = require "tundra.native" local os = require "os" if native.host_platform ~= "windows" then error("the msvc toolset only works on windows hosts") end local function get_host_arch() local snative = nati...
mit
lua-stdlib/lua-stdlib
lib/std/debug.lua
1
3921
--[[ General Lua Libraries for Lua 5.1, 5.2 & 5.3 Copyright (C) 2002-2018 stdlib authors ]] --[[-- Additions to the core debug module. The module table returned by `std.debug` also contains all of the entries from the core debug table. An hygienic way to import this module, then, is simply to override the core...
mit
Fatalerror66/ffxi-a
scripts/zones/Monastic_Cavern/TextIDs.lua
4
1042
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6375; -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6378; -- Obtained: <item> GIL_OBTAINED = 6379; -- Obtained <number> gil KEYITEM_OBTAINED = 6381; -- Obtain...
gpl-3.0
teddemunnik/tundra
scripts/tundra/tools/vbcc.lua
25
1563
module(..., package.seeall) local native = require "tundra.native" function apply(env, options) -- load the generic C toolset first tundra.unitgen.load_toolset("generic-cpp", env) -- Also add assembly support. tundra.unitgen.load_toolset("generic-asm", env) local vbcc_root = assert(native.getenv("VBCC"), "...
gpl-3.0
miotatsu/milton
tundra/scripts/tundra/tools/vbcc.lua
25
1563
module(..., package.seeall) local native = require "tundra.native" function apply(env, options) -- load the generic C toolset first tundra.unitgen.load_toolset("generic-cpp", env) -- Also add assembly support. tundra.unitgen.load_toolset("generic-asm", env) local vbcc_root = assert(native.getenv("VBCC"), "...
mit
Segs/Segs
Data/scripts/City_02_02/Spawndefs/Trolls_Skyway.spawndef.lua
3
6869
--This is a rank table --There could be multiple tables to generate spawns from local Trolls_Ranks_01 = { ["Underlings"] = { --NA }, ["Minions"] = { "Thug_Troll_01","Thug_Troll_02","Thug_Troll_03", "Thug_Troll_04","Thug_Troll_05","Thug_Troll_06", }, ["Boss"] = { }, ["...
bsd-3-clause
kidaa/FFXIOrgins
scripts/globals/mobskills/Optic_Induration.lua
2
1222
--------------------------------------------- -- Optic Induration -- -- Description: Charges up a powerful, calcifying beam directed at targets in a fan-shaped area of effect. Additional effect: Petrification &amp; enmity reset -- Type: Magical -- Utsusemi/Blink absorb: Ignores shadows -- Range: Unknown cone -- N...
gpl-3.0
BTAxis/naev
dat/missions/empire/emp_cargo00.lua
2
3677
--[[ Simple cargo mission that opens up the Empire cargo missions. Author: bobbens minor edits by Infiltrator ]]-- include "dat/scripts/numstring.lua" include "dat/scripts/jumpdist.lua" bar_desc = _("You see an Empire Lieutenant who seems to be looking at you.") misn_title = _("Empire Recruitment") mis...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/Dynamis-Windurst/npcs/qm1.lua
2
1258
----------------------------------- -- Area: Dynamis Windurst -- NPC: qm1 (???) -- Notes: Spawns when Megaboss is defeated ----------------------------------- package.loaded["scripts/zones/Dynamis-Windurst/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/zones...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/Ordelles_Caves/npcs/Stalagmite.lua
2
2371
----------------------------------- -- Area: Ordelles Caves -- NPC: Stalagmite -- Involved In Quest: Sharpening the Sword -- @pos -51 0.1 3 193 ----------------------------------- package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); req...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/Cloister_of_Tremors/bcnms/trial_by_earth.lua
6
1775
----------------------------------- -- Area: Cloister of Tremors -- BCNM: Trial by Earth -- @pos -539 1 -493 209 ----------------------------------- package.loaded["scripts/zones/Cloister_of_Tremors/TextIDs"] = nil; ------------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/que...
gpl-3.0
flyzjhz/openwrt-bb
feeds/luci/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua
73
11663
--[[ 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...
gpl-2.0
nonconforme/U3DTerrainEditor
Bin/TerrainEditorData/LuaScripts/terraineditUIoriginal.lua
2
22256
-- Terrain Editor UI TerrainEditUI=ScriptObject() uiStyle = cache:GetResource("XMLFile", "UI/DefaultStyle.xml") ui.root.defaultStyle = uiStyle; iconStyle = cache:GetResource("XMLFile", "UI/EditorIcons.xml"); function CreateCursor() local cursor = Cursor:new("Cursor") --cursor.defaultStyle=uiStyle --cursor.s...
mit
raziel-carvajal/splay-daemon
src/lua/modules/splay/socket.lua
2
2006
--[[ Splay ### v1.3 ### Copyright 2006-2011 http://www.splay-project.org ]] --[[ This file is part of Splay. Splay 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 L...
gpl-3.0
Wedge009/wesnoth
data/campaigns/World_Conquest/lua/map/postgeneration/1A_Start.lua
7
3455
function world_conquest_tek_map_repaint_1() world_conquest_tek_map_rebuild("Uu,Uu^Tf,Uh,Uu^Tf,Uu,Ai,Uh,Ql,Qxu,Xu", 3) world_conquest_tek_map_decoration_1() world_conquest_tek_map_dirt("Gg^Tf") end function world_conquest_tek_map_decoration_1() set_terrain { "Gs^Fdw", f.terrain("Gs^Ft"), } set_terrain { "Gs^Fm...
gpl-2.0
MarcoQin/AyrLand
scripts/components/map/Grid.lua
1
3857
local Grid = Component.create("Grid") function Grid:init(gridSize, numGrids) self.entities = {} self.gridSize = gridSize or 128 self.numGrids = numGrids self.grids = {} self.gridsTranspose = {} for i = 1, numGrids do self.grids[i] = {} for j = 1, numGrids do self.gri...
mit
Yhgenomics/premake-core
src/base/container.lua
6
8270
--- -- container.lua -- Implementation of configuration containers. -- Copyright (c) 2014 Jason Perkins and the Premake project --- local p = premake p.container = {} local container = p.container --- -- Keep a master dictionary of container class, so they can be easily looked -- up by name (technically you cou...
bsd-3-clause
Fatalerror66/ffxi-a
scripts/zones/Meriphataud_Mountains_[S]/Zone.lua
8
1317
----------------------------------- -- -- Zone: Meriphataud_Mountains_[S] (97) -- ----------------------------------- package.loaded["scripts/zones/Meriphataud_Mountains_[S]/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Meriphataud_Mountains_[S]/TextIDs"); --------------------...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/Davoi/npcs/Zantaviat.lua
4
2233
----------------------------------- -- Area: Davoi -- NPC: Zantaviat -- Involved in Mission: The Davoi Report -- @zone 149 -- @pos 215 0 -10 ----------------------------------- package.loaded["scripts/zones/Davoi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("script...
gpl-3.0
wounds1/zaza.bot
bot/devpoint.lua
21
15057
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") local f = assert(io.popen('/usr/bin/git describe --tags', 'r')) VERSION = assert(f:read('*a')) f:close() -- This function is ...
gpl-2.0
wizardbottttt/Speed_Bot
bot/utils.lua
239
13499
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() http.TIMEOUT = 10 funct...
gpl-2.0
Puccio7/bot-telegram
bot/utils.lua
239
13499
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() http.TIMEOUT = 10 funct...
apache-2.0
dromozoa/dromozoa-unix
test/lua/test_pathexec.lua
1
1539
-- Copyright (C) 2016,2018 Tomoyuki Fujimori <moyu@dromozoa.com> -- -- This file is part of dromozoa-unix. -- -- dromozoa-unix 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,...
gpl-3.0
BTAxis/naev
dat/factions/spawn/thurion.lua
1
3083
include("dat/factions/spawn/common.lua") -- @brief Spawns a small patrol fleet. function spawn_patrol () local pilots = {} local r = rnd.rnd() if r < 0.3 then scom.addPilot( pilots, "Thurion Ingenuity", 25 ); elseif r < 0.6 then scom.addPilot( pilots, "Thurion Ingenuity", 25 ); scom.add...
gpl-3.0
actionless/awesome
tests/examples/wibox/widget/imagebox/max_scaling_factor.lua
2
1635
--DOC_HIDE_ALL --DOC_GEN_IMAGE local parent = ... local wibox = require( "wibox" ) local beautiful = require( "beautiful" ) local function cell_centered_widget(widget) return wibox.widget { widget, valign = 'center', halign = 'center', content_fill_vertical = false, ...
gpl-2.0
waste143/waste
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
kiarash14/tel
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
Fatalerror66/ffxi-a
scripts/zones/Southern_San_dOria_[S]/npcs/Achtelle1.lua
72
1069
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Achtelle -- @zone 80 -- @pos 108 2 -11 ----------------------------------- ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; -----------------------...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/Southern_San_dOria_[S]/npcs/Achtelle.lua
72
1069
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Achtelle -- @zone 80 -- @pos 108 2 -11 ----------------------------------- ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; -----------------------...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/Meriphataud_Mountains_[S]/npcs/Telepoint.lua
18
1231
----------------------------------- -- Area: Meriphataud Mountains [S] -- NPC: Telepoint ----------------------------------- package.loaded["scripts/zones/Meriphataud_Mountains_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/Meriphataud_Mountains_[...
gpl-3.0
TeleMafia/mafia
plugins/PL (9).lua
6
1292
local function pre_process(msg) local hash = 'mute_time:'..msg.chat_id_ if redis:get(hash) and gp_type(msg.chat_id_) == 'channel' and not is_mod(msg) then tdcli.deleteMessages(msg.chat_id_, {[0] = tonumber(msg.id_)}) end end local function run(msg, matches) if matches[1]:lower() == 'mt' and is_mod(msg) t...
gpl-3.0
pquentin/wesnoth
data/ai/micro_ais/cas/ca_patrol.lua
26
6200
local AH = wesnoth.require "ai/lua/ai_helper.lua" local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua" local function get_patrol(cfg) local filter = cfg.filter or { id = cfg.id } local patrol = AH.get_units_with_moves { side = wesnoth.current.side, { "and", filter } }[1]...
gpl-2.0
flyzjhz/openwrt-bb
feeds/luci/modules/admin-full/luasrc/controller/admin/uci.lua
85
1975
--[[ 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...
gpl-2.0
simon-wh/PAYDAY-2-BeardLib-Editor
mods/BeardLib-Editor/Classes/Map/StaticEditor.lua
1
50618
--Clean this script by separating parts of it to different classes StaticEditor = StaticEditor or class(EditorPart) local Static = StaticEditor local Utils = BLE.Utils function Static:init(parent, menu) Static.super.init(self, parent, menu, "Selection") self._selected_units = {} self._ignore_raycast = {} ...
mit
LipkeGu/OpenRA
mods/d2k/maps/ordos-03a/ordos03a.lua
2
4895
--[[ Copyright 2007-2017 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
meshr-net/meshr_win32
usr/lib/lua/luci/model/cbi/upnp/upnp.lua
2
4075
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008-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 htt...
apache-2.0
actionless/awesome
docs/05-awesomerc.md.lua
1
9334
local filename, rcfile, new_rcfile, rc_script = ... local f = assert(io.open(filename, "w")) f:write[[# Default configuration file documentation This document explains the default `rc.lua` file provided by Awesome. ]] -- Document sections of the file to guide new users to the right doc pages local sections = {} ...
gpl-2.0
Fatalerror66/ffxi-a
scripts/zones/Arrapago_Reef/npcs/qm10.lua
19
2978
----------------------------------- -- Area: Arrapago Reef -- NPC: ??? -- Starts: Corsair Af1 ,AF2 ,AF3 -- @pos 457.128 -8.249 60.795 54 ----------------------------------- require("scripts/globals/status"); require("scripts/globals/quests"); require("scripts/globals/titles"); require("scripts/zones/Arrapag...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/Norg/npcs/Muzaffar.lua
2
3189
----------------------------------- -- Area: Norg -- NPC: Muzaffar -- Standard Info NPC -- Quests: Black Market -- @zone 252 -- @pos 16.678, -2.044, -14.600 ----------------------------------- require("scripts/zones/Norg/TextIDs"); require("scripts/globals/titles"); require("scripts/globals/quests"); -----------------...
gpl-3.0
capr/fbclient-alien
unit-tests/test_wrapper.lua
2
8323
#!/usr/bin/lua --[[ Test unit for wrapper.lua ]] local config = require 'test_config' local function asserteq(a,b,s) assert(a==b,s or string.format('%s ~= %s', tostring(a), tostring(b))) end function test_everything(env) require 'fbclient.error_codes' local fbclient = { svapi = require 'fbclient.status_vec...
mit
frutjus/OpenRA
mods/cnc/maps/gdi04a/gdi04a.lua
7
4742
AutoTrigger = { CPos.New(51, 47), CPos.New(52, 47), CPos.New(53, 47), CPos.New(54, 47) } GDIHeliTrigger = { CPos.New(27, 55), CPos.New(27, 56), CPos.New(28, 56), CPos.New(28, 57), CPos.New(28, 58), CPos.New(28, 59)} Nod1Units = { "e1", "e1", "e3", "e3" } Auto1Units = { "e1", "e1", "e3" } KillsUntilReinforcements = 1...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/Windurst_Waters/npcs/Npopo.lua
5
1038
----------------------------------- -- Area: Windurst Waters -- NPC: Npopo -- Type: Standard NPC -- @zone: 238 -- @pos: -35.464 -5.999 239.120 -- -- Auto-Script: Requires Verification (Verfied By Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; -----------...
gpl-3.0
raziel-carvajal/splay-daemon
src/lua/modules/test-json.lua
2
2960
--Benchmark json's encode/decode misc=require"splay.misc" json=require"json" function test_encode(data) return json.encode(data) end -- FUNCTIONAL TESTS -- PRIMITIVE TYPES t1=nil --expected JSON: null t1_enc=json.encode(t1) print("Expected=\"nil\", got->",t1_enc) assert(t1_enc=="null") --t1=test_encode --expected ...
gpl-3.0
mys007/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
jiang42/Algorithm-Implementations
Newton_Raphson/Lua/Yonaba/newtonraphson_test.lua
26
1041
-- Tests for derivative.lua local nrsolver = require 'newtonraphson' 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 = pass + 1 e...
mit
woesdo/XY
plugins/anti_chat.lua
62
1069
antichat = {}-- An empty table for solving multiple kicking problem do local function run(msg, matches) if is_momod(msg) then -- Ignore mods,owner,admins return end local data = load_data(_config.moderation.data) if data[tostring(msg.to.id)]['settings']['lock_chat'] then if data[tostring(msg.to.id)]['...
gpl-2.0
sapohl/data-pipeline
hindsight/io_modules/derived_stream/redshift.lua
5
1880
-- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at http://mozilla.org/MPL/2.0/. local M = {} local tostring = tostring local type = type local date = require "os".date local floor =...
mpl-2.0
kidaa/FFXIOrgins
scripts/commands/givekeyitem.lua
2
1065
--------------------------------------------------------------------------------------------------- -- func: givekeyitem -- auth: Link :: Modded by atom0s. -- desc: Gives a key item to the target player. --------------------------------------------------------------------------------------------------- cmdprops = { ...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/Windurst_Waters_[S]/npcs/Emhi_Tchaoryo.lua
38
1061
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Emhi Tchaoryo -- Type: Campaign Ops Overseer -- @zone: 94 -- @pos 10.577 -2.478 32.680 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextI...
gpl-3.0