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
TheAnswer/FirstTest
bin/scripts/creatures/objects/yavin4/creatures/chokuMale.lua
1
4679
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program 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; either version 2 of the License, --or (at your option) any later versio...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/items/objects/deed/vehicledeeds/landspeederAV21VehicleDeed.lua
1
2425
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program 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; either version 2 of the License, --or (at your option) any later versi...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/ranger/wayfaringIvExplorationMastery/camoKitEndor.lua
1
3689
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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; either version 2 of the License, --or (at your option) any lat...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/items/objects/weapons/carbines/dh17Carbine.lua
1
2419
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program 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; either version 2 of the License, --or (at your option) any lat...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/artisan/noviceArtisan/sixSidedDiceSet.lua
1
3750
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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; either version 2 of the License, --or (at your option) any lat...
lgpl-3.0
zhityer/zhityer1
plugins/stats.lua
458
4098
-- Saves the number of messages from a user -- Can check the number of messages with !stats do local NUM_MSG_MAX = 5 local TIME_CHECK = 4 -- seconds local function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name....
gpl-2.0
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/artisan/noviceArtisan/smallGlass.lua
1
3587
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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; either version 2 of the License, --or (at your option) any lat...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/skills/creatureSkills/dantooine/creatures/thuneAttacks.lua
1
4900
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program 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; either version 2 of the License, --or (at your option) any lat...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/object/tangible/lair/brackaset/objects.lua
1
4694
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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; either version 2 of the License, --or (at your option) any later ve...
lgpl-3.0
Lunovox/minetest_nibirus_game
mods/base/vessels/init.lua
18
6192
-- Minetest 0.4 mod: vessels -- See README.txt for licensing and other information. local vessels_shelf_formspec = "size[8,7;]" .. default.gui_bg .. default.gui_bg_img .. default.gui_slots .. "list[context;vessels;0,0.3;8,2;]" .. "list[current_player;main;0,2.85;8,1;]" .. "list[current_player;main;0,4.08;8,3;8]...
agpl-3.0
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/tailor/fieldWearIvParamilitaryGear/ithorianOfficersJacket.lua
1
4444
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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; either version 2 of the License, --or (at your option) any lat...
lgpl-3.0
asmagill/hammerspoon
extensions/razer/razer.lua
3
26940
--- === hs.razer === --- --- Razer device support. --- --- This extension currently only supports the Razer Tartarus V2. --- It allows you to trigger callbacks when you press buttons and use the --- scroll wheel, as well as allowing you to change the LED backlights --- on the buttons and scroll wheel, and control the t...
mit
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/scout/noviceScout/lecepanineDart.lua
1
3586
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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; either version 2 of the License, --or (at your option) any lat...
lgpl-3.0
xboot/xboot
examples/graphics/balls/Ball.lua
1
1414
local M = Class(DisplayObject) function M:init(maxWidth, maxHeight) self.super:init() self.image = assets:loadDisplay("ball.png") local w, h = self.image:getSize() self.imgWidth = w self.imgHeight = h self.maxWidth = maxWidth self.maxHeight = maxHeight self.xdirection = 1 self.ydirection = 1 se...
mit
bartvm/Penlight
tests/test-stringx.lua
3
13464
local stringx = require 'pl.stringx' local utils = require 'pl.utils' local asserteq = require 'pl.test' . asserteq local T = require 'pl.test'.tuple local function FIX(s) io.stderr:write('FIX:' .. s .. '\n') end -- isalpha asserteq(T(stringx.isalpha''), T(false)) asserteq(T(stringx.isalpha' '), T(false)) asserteq...
mit
TheAnswer/FirstTest
bin/scripts/items/objects/clothing/belts/belt12.lua
1
2245
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program 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; either version 2 of the License, --or (at your option) any lat...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/slashcommands/skills/saberHeadHit.lua
1
2575
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program 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; either version 2 of the License, --or (at your option) any later version. ...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/dantooine/npcs/kunga/kungaHerbalist.lua
1
4868
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program 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; either version 2 of the License, --or (at your option) any later versio...
lgpl-3.0
weiDDD/WSSParticleSystem
cocos2d/cocos/scripting/lua-bindings/auto/api/SkewFrame.lua
1
1540
-------------------------------- -- @module SkewFrame -- @extend Frame -- @parent_module ccs -------------------------------- -- -- @function [parent=#SkewFrame] getSkewY -- @param self -- @return float#float ret (return value: float) -------------------------------- -- -- @function [parent=...
apache-2.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/corellia/npcs/lordNyax/lordNyaxFiend.lua
1
4690
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program 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; either version 2 of the License, --or (at your option) any later versio...
lgpl-3.0
phibon/squeeze-web-gui-lua
squeeze-web-gui.lua
1
29815
#!/usr/bin/env luajit -- Web Configuration and Control Interface (lua version) for a -- Wandboard Squeeze Player -- -- Copyright (C) 2014 Adrian Smith <triode1@btinternet.com> -- -- This file is part of squeeze-web-gui-lua. -- -- squeeze-web-gui-lua is free software: you can redistribute it and/or modify -- it under ...
gpl-3.0
ChenJunor/hue
tools/wrk-scripts/lib/hue.lua
22
1575
local argparse = require("lib/argparse") local cookie = require("lib/cookie") local uri = require("lib/uri-f570bf7") local inspect = require("lib/inspect") local hue = {} hue.parse_args = function(args) local parser = argparse() parser:option "-X" "--method" :description "HTTP method" parser:option "-s" "--sessi...
apache-2.0
Mizugola/MeltingSagaEngine
engine/Lib/Toolkit/Functions/quest.lua
5
3439
local Color = require("Lib/StdLib/ConsoleColor"); local Route = require("Lib/Toolkit/Route"); local Style = require("Lib/Toolkit/Stylesheet"); local TM = require("Lib/Toolkit/Utils"); local Quests = { MyFirstQuest = { description = "A Quest for beginners !", quest = function(autocomplete) ...
mit
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/weaponsmith/advancedFirearmsCrafting/dh17ShortCarbine.lua
1
4870
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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; either version 2 of the License, --or (at your option) any lat...
lgpl-3.0
Andrettin/Wyrmsun
scripts/deities_egyptian.lua
1
25036
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//...
gpl-2.0
mikalsande/lua-simple-bloom
bloom.lua
1
4685
local bit = require("bit") local math = require("math") local xxhash = require("xxhash") local hash = xxhash.xxh32 math.randomseed(os.time()) local new = function(numberOfItems, failureRate) assert(type(numberOfItems) == "number", "numberOfItems must be a number") assert(numberOfItems >= 100, "numberOfItems must ...
unlicense
TheAnswer/FirstTest
bin/scripts/skills/creatureSkills/dantooine/creatures/huurtonAttacks.lua
1
6344
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program 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; either version 2 of the License, --or (at your option) any lat...
lgpl-3.0
asmagill/hammerspoon
extensions/doc/doc.lua
4
12833
--- === hs.doc === --- --- Create documentation objects for interactive help within Hammerspoon --- --- The documentation object created is a table with tostring metamethods allowing access to a specific functions documentation by appending the path to the method or function to the object created. --- --- From the Ham...
mit
TheAnswer/FirstTest
bin/scripts/object/draft_schematic/space/armor/objects.lua
1
17549
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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; either version 2 of the License, --or (at your option) any later ve...
lgpl-3.0
Modified-MW-DF/modified-MDF
MWDF Project/Dwarf Fortress/hack/scripts/gui/family-affairs.lua
2
9804
-- gui/family-affairs -- derived from v1.2 @ http://www.bay12forums.com/smf/index.php?topic=147779 local helpstr = [====[ gui/family-affairs ================== A user-friendly interface to view romantic relationships, with the ability to add, remove, or otherwise change them at your whim - fantastic for depres...
mit
MaxG87/awesome
lib/wibox/layout/mirror.lua
2
3717
--------------------------------------------------------------------------- -- @author dodo -- @copyright 2012 dodo -- @release @AWESOME_VERSION@ -- @classmod wibox.layout.mirror --------------------------------------------------------------------------- local type = type local error = error local pairs = pairs local ...
gpl-2.0
Andrettin/Wyrmsun
scripts/civilizations/portuguese/factions.lua
1
1485
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/yavin4/creatures/geonosianCaveSpider.lua
1
5057
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program 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; either version 2 of the License, --or (at your option) any later versio...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/object/manufacture_schematic/base/objects.lua
1
4177
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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; either version 2 of the License, --or (at your option) any later ve...
lgpl-3.0
Modified-MW-DF/modified-MDF
MWDF Project/Dwarf Fortress/hack/scripts/masterwork/spells/trigger.lua
2
1210
--spells/trigger.lua local utils = require 'utils' local split = utils.split_string local persistTable = require 'persist-table' validArgs = validArgs or utils.invert({ 'help', 'source', 'target', 'spell', }) local args = utils.processArgs({...}, validArgs) if args.help then -- Help declaration p...
mit
EMCTeamIR/EMC
plugins/plugins.lua
72
6113
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
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/tailor/fieldWearIBasicGear/paddedPullover.lua
1
4396
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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; either version 2 of the License, --or (at your option) any lat...
lgpl-3.0
PAPAGENO-devels/papageno
test/benchmarks/Lua/lua-regression-test/grim/dlg_eva2.lua
1
5304
CheckFirstTime("dlg_eva2.lua") ev2 = Dialog:create() ev2.focus = hq.eva_obj ev2.intro = function(arg1) -- line 13 if not eva.got_teeth then if dom.mouthpiece.bonded then ev2[90].off = FALSE end if not eva.talked_out_again then ev2.node = "first_eva_node" i...
gpl-2.0
JarnoVgr/ZombieSurvival
gamemodes/zombiesurvival/entities/weapons/weapon_zs_poisonzombie_2/init.lua
2
2020
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function SWEP:Reload() self.BaseClass.SecondaryAttack(self) end local function DoFleshThrow(pl, wep) if pl:IsValid() and pl:Alive() and wep:IsValid() then pl:ResetSpeed() local startpos = pl:GetPos() startpos.z = pl:GetShootPos().z...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/musician/musicalTechniquesIii/aBandfill.lua
1
3582
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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; either version 2 of the License, --or (at your option) any lat...
lgpl-3.0
CrackedP0t/models
hump/timer.lua
27
6224
--[[ Copyright (c) 2010-2013 Matthias Richter Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis...
mit
HeavensSword/darkstar
scripts/zones/Port_San_dOria/npcs/Fiva.lua
5
1634
----------------------------------- -- Area: Port San d'Oria -- NPC: Fiva -- only sells when San d'Oria controls Kolshushu ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Port_San_dOria/TextIDs"); require("scri...
gpl-3.0
HeavensSword/darkstar
scripts/globals/abilities/tacticians_roll.lua
1
2793
----------------------------------- -- Ability: Tacticians's Roll -- Grants a Regain effect to party members within area of effect. -- Optimal Job: None -- Lucky Number: 5 -- Unlucky Number: 8 -- Level: 86 -- Phantom Roll +1 Value: 2 -- -- Die Roll | Regain -- -------- ------- -- 1 |+10 -- 2 |...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Rabao/npcs/Maryoh_Comyujah.lua
5
1731
----------------------------------- -- Area: Rabao -- NPC: Maryoh Comyujah -- Involved in Mission: The Mithra and the Crystal (Zilart 12) -- !pos 0 8 73 247 ----------------------------------- package.loaded["scripts/zones/Rabao/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); ...
gpl-3.0
Deiz/naev
dat/missions/neutral/dts_01.lua
6
10752
--[[ MISSION: Defend the System 2 DESCRIPTION: A mission to defend the system against swarm of pirate ships. This will be the second in a planned series of random encounters. After the third mission, perhaps there'll be a regular diet of similar missions Perhaps th...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Kazham-Jeuno_Airship/TextIDs.lua
5
1080
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6386; -- Obtained: <item> GIL_OBTAINED = 6387; -- Obtained <number> gil KEYITEM_OBTAINED = 6389; -- Obtain...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Cloister_of_Flames/bcnms/trial_by_fire.lua
5
1839
----------------------------------- -- Area: Cloister of Flames -- BCNM: Trial by Fire -- !pos -721 0 -598 207 ----------------------------------- package.loaded["scripts/zones/Cloister_of_Flames/TextIDs"] = nil; ------------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/quests...
gpl-3.0
404rq/GTW-RPG
[resources]/GTWvehicles/data.lua
2
6815
--[[ ******************************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: Mr_Moose Source code: https://github.com/404rq/GTW-RPG/ Bugtracker: https://discuss.404rq.com/t/issues Suggestions: https://discuss.404rq.com/t/deve...
bsd-2-clause
ind9/kong
spec/plugins/ratelimiting/access_spec.lua
13
7363
local spec_helper = require "spec.spec_helpers" local http_client = require "kong.tools.http_client" local cjson = require "cjson" local STUB_GET_URL = spec_helper.STUB_GET_URL local function wait() -- Wait til the beginning of a new second before starting the test -- to avoid ending up in an edge case when the s...
apache-2.0
pd2-linux/tina
feeds/luci/modules/admin-mini/luasrc/model/cbi/mini/network.lua
82
6273
--[[ 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
yongkangchen/slua
build/luajit-2.1.0/src/jit/dis_arm.lua
78
19363
---------------------------------------------------------------------------- -- LuaJIT ARM disassembler module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -...
mit
HeavensSword/darkstar
scripts/zones/Port_Windurst/npcs/Gomada-Vulmada.lua
5
2485
----------------------------------- -- Area: Port Windurst -- NPC: Gomada-Vulmada ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/settings"); require("scripts/zones/Port_Wind...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Koyol-Futenol.lua
5
3641
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Koyol-Futenol -- Title Change NPC -- !pos -129 2 -20 50 ----------------------------------- require("scripts/globals/titles"); local title2 = { DARK_RESISTANT , BEARER_OF_THE_MARK_OF_ZAHAK , SEAGULL_PHRATRIE_CREW_MEMBER , PROUD_AUTOMATON_OWNER...
gpl-3.0
CestusMagnus/go-qt5
make/ui/spinbox.lua
4
1166
module("spinbox") name = "SpinBox" base = "baseSpinBox" funcs = [[ + Init() @ CleanText()(text string) @ SetDisplayIntegerBase(base int) @ DisplayIntegerBase()(base int) @ SetMaximum(value int) @ Maximum()(value int) @ SetMinimum(value int) @ Minimum()(value int) @ SetPrefix(prefix string) @ Prefix()(prefix string) ...
bsd-2-clause
HeavensSword/darkstar
scripts/globals/items/garlic_cracker_+1.lua
3
1081
----------------------------------------- -- ID: 4280 -- Item: garlic_cracker_+1 -- Food Effect: 5Min, All Races ----------------------------------------- -- HP recovered while healing +8 -- Undead Killer +12 -- Blind Resist +12 ----------------------------------------- require("scripts/globals/status"); --------------...
gpl-3.0
hasammm/hossam
plugins/getlink.lua
11
28101
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ A SPECiAL LINK : الرابط خاص ▀▄ ▄▀ ▀▄...
gpl-2.0
HeavensSword/darkstar
scripts/zones/Bastok_Markets_[S]/npcs/Engelhart.lua
5
3191
----------------------------------- -- Area: Bastok Markets (S) -- NPC: Engelhart -- Quest NPC -- pos -79 -4 -125 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bastok_Markets_[S]/TextIDs"); require("scrip...
gpl-3.0
HeavensSword/darkstar
scripts/globals/items/bowl_of_goulash.lua
3
1290
----------------------------------------- -- ID: 5750 -- Item: bowl_of_goulash -- Food Effect: 3Hrs, All Races ----------------------------------------- -- VIT +3 -- INT -2 -- Accuracy +10% (cap 54) -- DEF +10% (cap 30) ----------------------------------------- require("scripts/globals/status"); -----------------------...
gpl-3.0
dlannan/webdruino
deps/turbo-1.0.0/turbo/tcpserver.lua
2
8559
--- Turbo.lua TCP Server module -- A simple non-blocking extensible TCP Server based on the IOStream class. -- Includes SSL support. Used as base for the Turbo HTTP Server. -- -- Copyright 2011, 2012, 2013 John Abrahamsen -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file...
mit
Openarl/PathOfBuilding
Export/Scripts/essence.lua
1
1363
local colMap = { ["Amulet"] = "AmuletMod", ["Ring"] = "RingMod", ["Belt"] = "BeltMod", ["Quiver"] = "QuiverMod", ["Helmet"] = "HelmetMod", ["Body Armour"] = "BodyArmourMod", ["Boots"] = "BootsMod", ["Gloves"] = "GlovesMod", ["Shield"] = "ShieldMod", ["Bow"] = "BowMod", ["Claw"] = "ClawMod", ["Dagger"] = "Da...
mit
marcoag/awesome-config
themes/sky-grey/theme.lua
2
5795
-- sky-grey, awesome3 theme, by Andrei "Garoth" Thorp, modified by macgrey -- If you want SVGs and extras, get them from garoth.com/awesome/sky-theme --{{{ Main local awful = require("awful") awful.util = require("awful.util") theme = {} home = os.getenv("HOME") config = awful.util.getdir("config") s...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Northern_San_dOria/npcs/Danngogg.lua
5
1120
----------------------------------- -- Area: Northern San d'Oria -- NPC: Danngogg -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Northern_San_dOria/TextIDs"); require("scripts/globals/...
gpl-3.0
cogwerkz/gUI4
gUI4/libs/GP_oUF-Elements/runes.lua
1
4276
local addon,ns = ... local oUF = ns.oUF if not oUF then return end -- Lua API local floor = math.floor local select = select -- WoW API local GetRuneCooldown = GetRuneCooldown local GetRuneType = GetRuneType local GetTime = GetTime local LEGION = tonumber((select(2, GetBuildInfo()))) >= 21996 local ...
mit
HeavensSword/darkstar
scripts/globals/items/cathedral_salad.lua
3
1278
----------------------------------------- -- ID: 5679 -- Item: cathedral_salad -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- MP 15% Cap 90 -- Agility 7 -- Mind 7 -- Strength -5 -- Vitality -5 -- Ranged Accuracy +17 ----------------------------------------- require("scripts/globals/status...
gpl-3.0
mahdib9/99
plugins/bot_manager.lua
243
3007
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
shahifaqeer/my-luci-bismark-0.11
applications/luci-asterisk/luasrc/model/cbi/asterisk/voicemail_settings.lua
11
2467
--[[ LuCI - Lua Configuration Interface Copyright 2009 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: voicemai...
apache-2.0
flokicrowbr/SARO
tools/item_merge.lua
15
23076
-- This file is part of Hercules. -- http://herc.ws - http://github.com/HerculesWS/Hercules -- -- Copyright (C) 2014-2015 Hercules Dev Team -- -- Hercules 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, eit...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Hajawaa.lua
4
4273
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Hajawaa -- Armor Storage NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/armorstorage"); ...
gpl-3.0
HeavensSword/darkstar
scripts/globals/mobskills/thermal_pulse.lua
34
1074
--------------------------------------------- -- Thermal Pulse -- Family: Wamouracampa -- Description: Deals Fire damage to enemies within area of effect. Additional effect: Blindness -- Type: Magical -- Utsusemi/Blink absorb: Ignores shadow -- Range: 12.5 -- Notes: Open form only. -----------------------------...
gpl-3.0
HeavensSword/darkstar
scripts/globals/common.lua
35
2855
----------------------------------- -- -- ----------------------------------- ----------------------------------- -- switch ----------------------------------- function switch(c) local swtbl = { casevar = c, caseof = function (self,code) local f if (self.casevar) then f = cod...
gpl-3.0
DaemonEleuel/avorionpack
data/scripts/systems/teleporterkey8.lua
1
2042
package.path = package.path .. ";data/scripts/systems/?.lua" package.path = package.path .. ";data/scripts/lib/?.lua" require ("basesystem") require ("utility") require ("randomext") -- this key is dropped by the smuggler function getNumTurrets(seed, rarity) return math.max(1, rarity.value + 1) end function getH...
mit
Openarl/PathOfBuilding
Data/2_6/Skills/minion.lua
1
68891
-- This file is automatically generated, do not edit! -- Path of Building -- -- Minion active skills -- Skill data (c) Grinding Gear Games -- local skills, mod, flag, skill = ... skills["ChaosElementalCascadeSummoned"] = { name = "Cascade", hidden = true, color = 3, description = "Icicles emerge from the ground in...
mit
HeavensSword/darkstar
scripts/globals/mobskills/gigaflare.lua
37
1686
--------------------------------------------- -- Gigaflare -- Family: Bahamut -- Description: Deals massive Fire damage to enemies within a fan-shaped area. -- Type: Magical -- Utsusemi/Blink absorb: Wipes shadows -- Range: -- Notes: Used by Bahamut when at 10% of its HP, and can use anytime afterwards at will...
gpl-3.0
devlaith/DEVLAITH-HL
plugins/map.lua
3
1225
do local api_key = nil local base_api = "https://maps.googleapis.com/maps/api" function get_staticmap(area) local api = base_api .. "/staticmap?" -- Get a sense of scale local lat,lng,acc,types = get_latlong(area) local scale = types[1] if scale=="locality" then zoom=8 elseif scale=="country...
gpl-2.0
HeavensSword/darkstar
scripts/zones/Davoi/npcs/Village_Well.lua
5
1653
----------------------------------- -- Area: Davoi -- NPC: Village Well -- Involved in Quest: Under Oath ----------------------------------- package.loaded["scripts/zones/Davoi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/quests"); require("scripts/...
gpl-3.0
Deiz/naev
dat/ai/tpl/merchant.lua
6
2284
include("dat/ai/include/basic.lua") -- Variables mem.enemy_close = 500 -- Distance enemy is too close for comfort -- Required control rate control_rate = 2 -- Required "control" function function control () task = ai.taskname() enemy = ai.getenemy() -- Runaway if enemy is near if task ~= "runaway" a...
gpl-3.0
HeavensSword/darkstar
scripts/globals/items/dish_of_spaghetti_nero_di_seppia.lua
3
1545
----------------------------------------- -- ID: 5193 -- Item: dish_of_spaghetti_nero_di_seppia -- Food Effect: 30Min, All Races ----------------------------------------- -- HP % 17 (cap 130) -- Dexterity 3 -- Vitality 2 -- Agility -1 -- Mind -2 -- Charisma -1 -- Double Attack 1 -- Store TP 6 --------------------------...
gpl-3.0
Openarl/PathOfBuilding
Data/2_6/Bases/mace.lua
1
27012
-- This file is automatically generated, do not edit! -- Item data (c) Grinding Gear Games local itemBases = ... itemBases["Driftwood Club"] = { type = "One Handed Mace", socketLimit = 3, tags = { default = true, weapon = true, onehand = true, mace = true, one_hand_weapon = true, }, implicit = "10% reduced Enemy S...
mit
Deiz/naev
dat/missions/neutral/oldwoman.lua
9
6257
--[[ -- -- MISSION: The complaining grandma -- DESCRIPTION: The player is taking an old woman from Dvaered space to Sirius space. -- The old woman keeps muttering about how the times have changed and how it used to be when she was young. -- --]] include "dat/scripts/cargo_common.lua" -- Localization, choosing a langu...
gpl-3.0
dkorolev/tarantool
test/box/on_replace.test.lua
1
1034
-- test c and lua triggers: must return only lua triggers #box.space._space:on_replace() function f() print('test') end type(box.space._space:on_replace(f)) #box.space._space:on_replace() ts = box.schema.space.create('test_space') ti = ts:create_index('primary', { type = 'hash' }) type(ts.on_replace) ts.on_replace() t...
bsd-2-clause
HeavensSword/darkstar
scripts/globals/spells/cure_vi.lua
3
4472
----------------------------------------- -- Spell: Cure VI -- Restores target's HP. -- Shamelessly stolen from http://members.shaw.ca/pizza_steve/cure/Cure_Calculator.html ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic");...
gpl-3.0
natuan241/Algorithm-Implementations
Move_To_Front_Transform/Lua/Yonaba/mtf_test.lua
26
1524
-- Tests for mtf.lua local mtf = require 'mtf' 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 end local status = ok...
mit
Dota-2-5v5v5v5/GameFolder
scripts/vscripts/examples/notificationsExample.lua
1
2150
-- Send a notification to all players that displays up top for 5 seconds Notifications:TopToAll({text="Top Notification for 5 seconds ", duration=5.0}) -- Send a notification to playerID 0 which will display up top for 9 seconds and be green, on the same line as the previous notification Notifications:Top(0, {text="...
gpl-3.0
HeavensSword/darkstar
scripts/globals/spells/bluemagic/temporal_shift.lua
3
1456
----------------------------------------- -- Spell: Temporal Shift -- Enemies within range are temporarily prevented from acting -- Spell cost: 48 MP -- Monster Type: Luminians -- Spell Type: Magical (Lightning) -- Blue Magic Points: 5 -- Stat Bonus: HP+10, MP+15 -- Level: 73 -- Casting Time: 0.5 seconds -- Recast Time...
gpl-3.0
LuaDist2/luasec
src/options.lua
1
2091
local function usage() print("Usage:") print("* Generate options of your system:") print(" lua options.lua -g /path/to/ssl.h [verion] > options.h") print("* Examples:") print(" lua options.lua -g /usr/include/openssl/ssl.h > options.h\n") print(" lua options.lua -g /usr/include/openssl/ssl.h \"OpenSSL 1....
mit
peymankhanas8487/Horror_Avatar
plugins/quotes.lua
651
1630
local quotes_file = './data/quotes.lua' local quotes_table function read_quotes_file() local f = io.open(quotes_file, "r+") if f == nil then print ('Created a new quotes file on '..quotes_file) serialize_to_file({}, quotes_file) else print ('Quotes loaded: '..quotes_file) f...
gpl-2.0
Deiz/naev
dat/missions/flf/flf_pre01.lua
10
14621
--[[ -- This is the first "prelude" mission leading to the FLF campaign. The player takes a FLF agent onboard, then either turns him in to the Dvaered or delivers him to a hidden FLF base. -- stack variable flfbase_intro: -- 1 - The player has turned in the FLF agent or rescued the Dvaered crew. Conditional for dv...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Caedarva_Mire/npcs/Nahshib.lua
5
2880
----------------------------------- -- Area: Caedarva Mire -- NPC: Nahshib -- Type: Assault -- !pos -274.334 -9.287 -64.255 79 ----------------------------------- package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globa...
gpl-3.0
ind9/kong
spec/plugins/oauth2/schema_spec.lua
20
1863
local validate_entity = require("kong.dao.schemas_validation").validate_entity local oauth2_schema = require "kong.plugins.oauth2.schema" require "kong.tools.ngx_stub" describe("OAuth2 Entities Schemas", function() describe("OAuth2 Configuration", function() it("should not require a `scopes` when `mandatory_s...
apache-2.0
HarpyWar/pvpgn
lua/antihack/starcraft.lua
7
2206
--[[ Simple Anti MapHack for Starcraft: BroodWar 1.16.1 Copyright (C) 2014 HarpyWar (harpywar@gmail.com) This file is a part of the PvPGN Project http://pvpgn.pro Licensed under the same terms as Lua itself. ]]-- -- just unique request id for maphack ah_mh_request_id = 99 -- map visible offset ah_mh_offset =...
gpl-2.0
cogwerkz/gUI4
gUI4_Auras/shared/themes.lua
1
2747
local addon,ns = ... local gUI4 = GP_LibStub("GP_AceAddon-3.0"):GetAddon("gUI4", true) if not gUI4 then return end local parent = gUI4:GetModule("gUI4_Auras", true) if not parent then return end local L = GP_LibStub("GP_AceLocale-3.0"):GetLocale("gUI4") local LMP = GP_LibStub("GP_LibMediaPlus-1.0") loca...
mit
PAC3-Server/gm-http-discordrelay
lua/discordrelay/modules/server/luaerror_to_channel.lua
1
7336
local luaerror_to_channel = {} local discordrelay = discordrelay luaerror_to_channel.errors = {} local function post(channel, msg) discordrelay.CreateMessage(channel, msg, function(h, b, c) if discordrelay.util.badcode[c] then discordrelay.log(2, "DiscordRelayErrorMsg failed", discordrelay.util.badcode[c], b) ...
gpl-3.0
minermoder27/minetest-str_helpers
init.lua
1
1989
strs={} function strs:starts(Str,Start) return string.sub(Str,1,string.len(Start))==Start end function strs:ends(String,End) return End=='' or string.sub(String,-string.len(End))==End end function strs:rem_from_start(Str,Start) return string.sub(Str,string.len(Start)+1) end function strs:rem_from...
apache-2.0
HeavensSword/darkstar
scripts/zones/Upper_Jeuno/npcs/Souren.lua
5
1744
----------------------------------- -- Area: Upper Jeuno -- NPC: Souren -- Involved in Quests: Save the Clock Tower -- @zone 244 -- !pos -51 0 4 ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); requir...
gpl-3.0
HeavensSword/darkstar
scripts/globals/mobskills/drop_hammer.lua
33
1032
--------------------------------------------- -- Drop Hammer -- -- Description: Drops the hammer. Additional effect: Bind -- Type: Physical -- Utsusemi/Blink absorb: 2-3 shadows? -- Range: Melee -- Notes: Only used by "destroyers" (carrying massive warhammers). --------------------------------------------- requi...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Spire_of_Vahzl/bcnms/desires_of_emptiness.lua
5
2291
----------------------------------- -- Area: Spire_of_VAHLZ -- Name: desires_of_emptiness ----------------------------------- package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/keyitems"); require("scripts/globals/...
gpl-3.0
mengyou0304/redis
deps/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
bsd-3-clause
itugs/redis
deps/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
bsd-3-clause
LuaDevelopmentTools/luadocumentor
template/index.lua
4
1042
-------------------------------------------------------------------------------- -- Copyright (c) 2012 Sierra Wireless. -- All rights reserved. This program and the accompanying materials -- are made available under the terms of the Eclipse Public License v1.0 -- which accompanies this distribution, and is availabl...
epl-1.0
HeavensSword/darkstar
scripts/zones/Middle_Delkfutts_Tower/Zone.lua
4
3383
----------------------------------- -- -- Zone: Middle_Delkfutts_Tower -- ----------------------------------- package.loaded["scripts/zones/Middle_Delkfutts_Tower/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Middle_Delkfutts_Tower/TextIDs"); require("scripts/zones/Middle_Delkfutts_Tower/M...
gpl-3.0