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
RwNigma/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Balakaf.lua
37
1031
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Balakaf -- Type: Standard NPC -- @pos 25.505 -6.999 126.478 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whi...
gpl-3.0
Deadwing888/darkstar
scripts/globals/items/dolphin_staff.lua
41
1077
----------------------------------------- -- ID: 17134 -- Item: Dolphin Staff -- Additional Effect: Water Damage ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onAdditionalEffect Action -----------------------------...
gpl-3.0
Kong/kong
kong/cmd/reload.lua
1
2018
local prefix_handler = require "kong.cmd.utils.prefix_handler" local nginx_signals = require "kong.cmd.utils.nginx_signals" local conf_loader = require "kong.conf_loader" local kong_global = require "kong.global" local pl_path = require "pl.path" local pl_file = require "pl.file" local log = require "kong.cmd.utils.log...
apache-2.0
kosicki123/forgottenserver
data/talkactions/scripts/info.lua
21
1561
function onSay(player, words, param) if not player:getGroup():getAccess() then return true end local target = Player(param) if not target then player:sendCancelMessage("Player not found.") return false end if target:getAccountType() > player:getAccountType() then player:sendCancelMessage("You can not ge...
gpl-2.0
Deadwing888/darkstar
scripts/zones/Bastok_Mines/npcs/Zopago.lua
13
1112
----------------------------------- -- Area: Bastok Mines -- NPC: Zopago -- Type: VCS Chocobo Trainer -- @zone: 234 -- @pos 51.706 -0.126 -109.065 -- -- Auto-Script: Requires Verification ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; require("scripts/zones/Bastok_...
gpl-3.0
RwNigma/darkstar
scripts/zones/Tahrongi_Canyon/npcs/Pucotte.lua
28
1789
----------------------------------- -- Area: Tahrongi Canyon -- NPC: Pucotte -- Type: Chocobo Renter -- @pos 101.591 39.999 360.898 117 ----------------------------------- require("scripts/globals/chocobo"); require("scripts/globals/keyitems"); require("scripts/globals/settings"); require("scripts/globals/s...
gpl-3.0
ffxijuggalo/darkstar
scripts/zones/Port_Jeuno/npcs/Kindlix.lua
6
1340
----------------------------------- -- Area: Port Jeuno -- NPC: Kindlix -- Standard Merchant NPC -- !pos -18.820 4.000 23.302 246 ----------------------------------- local ID = require("scripts/zones/Port_Jeuno/IDs") require("scripts/globals/shop") ----------------------------------- local stock = { 4250, 22, ...
gpl-3.0
JetBoom/fretta13
gamemodes/fretta13/gamemode/vgui/vgui_scoreboard.lua
1
4556
include( "vgui_scoreboard_team.lua" ) include( "vgui_scoreboard_small.lua" ) local PANEL = {} Derma_Hook( PANEL, "Paint", "Paint", "ScoreHeader" ) Derma_Hook( PANEL, "ApplySchemeSettings", "Scheme", "ScoreHeader" ) Derma_Hook( PANEL, "PerformLayout", "Layout", "ScoreHeader" ) function PANEL:Init() se...
unlicense
Deadwing888/darkstar
scripts/zones/Tavnazian_Safehold/npcs/Latteaune.lua
13
1072
----------------------------------- -- Area: Tavnazian Safehold -- NPC: Latteaune -- Type: Event Scene Replayer -- @zone: 26 -- @pos -16.426 -28.889 109.626 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"]...
gpl-3.0
RwNigma/darkstar
scripts/zones/Windurst_Waters/npcs/Naiko-Paneiko.lua
17
3530
----------------------------------- -- Area: Windurst Waters -- NPC: Naiko-Paneiko -- Involved In Quest: Making Headlines, Riding on the Clouds -- @zone 238 -- @pos -246 -5 -308 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; package.loaded["scripts/globals/se...
gpl-3.0
destdev/ygopro-scripts
c59023523.lua
2
1411
--サイバネティック・マジシャン function c59023523.initial_effect(c) --atk change local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(59023523,0)) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCost(c59023523.cost) e1:Se...
gpl-2.0
destdev/ygopro-scripts
c86885905.lua
1
1831
--オルターガイスト・エミュレルフ function c86885905.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:SetTarget(c86885905.target) e1:SetOperation(c86885905.activate) c:RegisterEffect(e1) end function c86885905.t...
gpl-2.0
RwNigma/darkstar
scripts/globals/weaponskills/entropy.lua
30
1670
----------------------------------- -- Entropy -- Scythe weapon skill -- Skill level: 357 -- Description: Delivers a fourfold attack that converts damage dealt into own MP. Damage varies with TP. -- In order to obtain Entropy, the quest Martial Mastery must be completed. -- MP recovery is about 15~25% of damage d...
gpl-3.0
Kong/kong
spec/fixtures/https_server.lua
1
6956
local https_server = {} https_server.__index = https_server local fmt = string.format local mock_srv_tpl_file = require "spec.fixtures.mock_webserver_tpl" local ngx = require "ngx" local pl_dir = require "pl.dir" local pl_file = require "pl.file" local pl_template = require "pl.template" local pl_path = require "pl.p...
apache-2.0
topameng/tolua
Assets/ToLua/Lua/socket/smtp.lua
123
8074
----------------------------------------------------------------------------- -- SMTP client support for the Lua language. -- LuaSocket toolkit. -- Author: Diego Nehab ----------------------------------------------------------------------------- -------------------------------------------------------------------------...
mit
destdev/ygopro-scripts
c14882493.lua
4
3004
--極夜の騎士ガイア function c14882493.initial_effect(c) --search local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(14882493,0)) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_HANDES) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1,14882493) e1:SetCost(c14882493.thco...
gpl-2.0
simonfork/aquaria
game_scripts/scripts/entities/claystatue.lua
6
2760
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 vers...
gpl-2.0
RwNigma/darkstar
scripts/zones/Leujaoam_Sanctum/IDs.lua
33
3149
Leujaoam = { 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 = 6384, -- Obtained <number> gil KEYITEM_OBTAINED = 6384, -- Obtain...
gpl-3.0
maikerumine/grieftest
mods/xdecor/rope.lua
2
1589
local rope = {} -- Code by Mirko K. (modified by Temperest, Wulfsdad and kilbith) (License: GPL). minetest.register_on_punchnode(function(pos, oldnode, digger) if oldnode.name == "xdecor:rope" then rope:remove(pos, oldnode, digger, "xdecor:rope") end end) function rope.place(itemstack, placer, pointed_thing) if ...
lgpl-2.1
jun496276723/CocosMFCEditor
cocos2d/plugin/luabindings/script/lua_plugin.lua
146
1432
plugin = plugin or {} plugin.FacebookAgent = plugin.FacebookAgent or {} plugin.FacebookAgent.HttpMethod = { GET = 0, POST = 1, DELETE = 2, } plugin.FacebookAgent.AppEvent = { ACTIVATED_APP = "fb_mobile_activate_app", COMPLETED_REGISTRATION = "fb_mobile_complete_registration", VIEWED_CO...
gpl-3.0
RwNigma/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Kazween.lua
38
1062
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Kazween -- Type: Item Deliverer -- @pos -130 -6 95 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/Te...
gpl-3.0
Deadwing888/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Kleh_Engyumoh.lua
13
1066
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Kleh Engyumoh -- Type: Standard NPC -- @zone: 94 -- @pos -54.962 -4.5 57.701 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil...
gpl-3.0
ArcherSys/ArcherSys
Lua/examples/penlight/tests/test-func.lua
4
1815
require 'pl' asserteq = require('pl.test').asserteq utils.import('pl.func') -- _DEBUG = true function pprint (t) print(pretty.write(t)) end function test (e) local v = {} print('test',collect_values(e,v)) if #v > 0 then pprint(v) end local rep = repr(e) print(rep) end import ('math') test(_1+_2('hello...
mit
master041/tele___master
plugins/plugins.lua
257
4732
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
sol/pygments
tests/examplefiles/example.lua
3
9184
--[[ Auctioneer Advanced Version: <%version%> (<%codename%>) Revision: $Id: CoreMain.lua 2233 2007-09-25 03:57:33Z norganna $ URL: http://auctioneeraddon.com/ This is an addon for World of Warcraft that adds statistical history to the auction data that is collected when the auction is scanned, so that you can ea...
bsd-2-clause
jyggen/lua-parser
tests/Fixtures/33/b4/33/36c2fe00f257273ab3c60e13eb878dfea14ae5539eea9dffac1c020937.lua
1
224967
Grid2DB = { ["namespaces"] = { ["Grid2AoeHeals"] = { }, ["Grid2RaidDebuffs"] = { ["profiles"] = { ["RealUI"] = { ["enabledModules"] = { ["Mists of Pandaria"] = true, }, }, ["RealUI-Healing"] = { ["enabledModules"] = { ["Mists of Pandaria"] = true, },...
mit
shingenko/darkstar
scripts/zones/Sacrificial_Chamber/npcs/_4j1.lua
38
1045
----------------------------------- -- Area: Sacrificial Chamber -- NPC: Mahogany Door -- @pos -331 0.1 -300 163 ------------------------------------- package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil; ------------------------------------- require("scripts/zones/Sacrificial_Chamber/TextIDs"); -------...
gpl-3.0
veden/Rampant
prototypes/utils/StickerUtils.lua
1
2666
-- Copyright (C) 2022 veden -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. -- This program is distributed in the...
gpl-3.0
Illarion-eV/Illarion-Content
content/_gods/irmorom.lua
2
22075
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
shingenko/darkstar
scripts/zones/Maze_of_Shakhrami/npcs/Grounds_Tome.lua
34
1148
----------------------------------- -- Area: Maze of Shakhrami -- NPC: Grounds Tome ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/groundsofvalor"); ----------------------------------- -- onTrade Action ----------------------------------- function onTra...
gpl-3.0
telegrambot81/kingbot-sup
plugins/msg_checks.lua
37
10930
--Begin msg_checks.lua --Begin pre_process function local function pre_process(msg) -- Begin 'RondoMsgChecks' text checks by @rondoozle if is_chat_msg(msg) or is_super_group(msg) then if msg and not is_momod(msg) and not is_whitelisted(msg.from.id) then --if regular user local data = load_data(_config.moderatio...
gpl-2.0
apaszke/nn
SpatialDilatedConvolution.lua
9
2629
local THNN = require 'nn.THNN' local SpatialDilatedConvolution, parent = torch.class('nn.SpatialDilatedConvolution', 'nn.SpatialConvolution') function SpatialDilatedConvolution:__init(nInputPlane, nOutputPlane, kW, kH, dW, dH, padW, padH, dilationW, dilationH) parent.__init(self, nInputPlane, nOutputPlane, kW, kH, ...
bsd-3-clause
shingenko/darkstar
scripts/zones/AlTaieu/mobs/Aw_euvhi.lua
16
1513
----------------------------------- -- Area: AlTaieu -- NPC: Aw_euvhi ----------------------------------- package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil; ----------------------------------- require("scripts/zones/AlTaieu/TextIDs"); require("scripts/globals/keyitems"); -------------------------------...
gpl-3.0
swertz/MoMEMta
tests/phaseSpaceVolume/blockF.lua
1
3053
local p1 = declare_input("p1") local p2 = declare_input("p2") load_modules('MatrixElements/dummy/libme_dummy.so') parameters = { energy = 1000., W_mass = 250., W_width = 100. } cuba = { verbosity = 3, max_eval = 20000000000, relative_accuracy = 0.005, n_start = 10000000, seed = 546896...
gpl-3.0
ahmedjabbar1/TeamTop
libs/feedparser.lua
543
11955
local LOM = assert(require("lxp.lom"), "LuaExpat doesn't seem to be installed. feedparser kind of needs it to work...") local XMLElement = (loadfile "./libs/XMLElement.lua")() local dateparser = (loadfile "./libs/dateparser.lua")() local URL = (loadfile "./libs/url.lua")() local tinsert, tremove, tconcat = table.insert...
agpl-3.0
shingenko/darkstar
scripts/zones/Grauberg_[S]/Zone.lua
28
1315
----------------------------------- -- -- Zone: Grauberg_[S] (89) -- ----------------------------------- package.loaded["scripts/zones/Grauberg_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Grauberg_[S]/TextIDs"); ----------------------...
gpl-3.0
kveratis/GameCode4
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/xavante/src/codeweb/coroWeb.lua
1
2195
----------------------------------------------------------------------------- -- webThreads: Xavante resumable handlers framework -- -- Author: Javier Guerra -- Copyright (c) 2005 Kepler Project ----------------------------------------------------------------------------- local session = require "xavante.sessio...
lgpl-3.0
truefitness/vlc
share/lua/playlist/dailymotion.lua
23
3045
--[[ Translate Daily Motion video webpages URLs to the corresponding FLV URL. $Id$ Copyright © 2007-2011 the VideoLAN team 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 versio...
gpl-2.0
psychon/awesome
lib/awful/titlebar.lua
2
24503
--------------------------------------------------------------------------- --- Titlebars for awful. --**Create a titlebar:** -- -- This example reproduces what the default `rc.lua` does. It shows how to -- handle the titlebars on a lower level. -- -- @DOC_awful_titlebar_default_EXAMPLE@ -- -- @author Uli Schlachter --...
gpl-2.0
shadobaker/TeleBeyond
plugins/plugins.lua
7
6405
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
AleksCore/Mr.Green-MTA-Resources
resources/[race]/race_huntbot/hunt_cl.lua
4
2828
--made by Wojak aka Wojak[PL] aka [2RT]Wojak [PL] --if you want to edit something here don’t upload yours version addEvent("onclientbotstart",true) addEvent("onclientfirstplayerDEAD",true) addEvent("onclientpausestop",true) addEvent("onnewfirstplayer",true) addEvent("onClientMapStarting",true) local screenWidth, sc...
mit
telegrambot81/kingbot-sup
plugins/stats.lua
1
3949
do -- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_prin...
gpl-2.0
Illarion-eV/Illarion-Content
item/hand_bell.lua
1
5550
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
openwayne/chaos_theory
mods/areas/pos.lua
8
7271
-- I could depend on WorldEdit for this, but you need to have the 'worldedit' -- permission to use those commands and you don't have -- /area_pos{1,2} [X Y Z|X,Y,Z]. -- Since this is mostly copied from WorldEdit it is mostly -- licensed under the AGPL. (select_area is a exception) areas.marker1 = {} areas.marker2 = {...
lgpl-2.1
BSpike/MOOSE
Moose Development/Moose/Functional/Protect.lua
1
6461
--- **Functional** -- The PROTECT class handles the protection of objects, which can be zones, units, scenery. -- -- === -- -- ### Author: **Sven Van de Velde (FlightControl)** -- ### Contributions: **MillerTime** -- -- ==== -- -- @module Protect --- @type PROTECT.__ Methods which are not intended for mission desi...
gpl-3.0
imzyxwvu/objective-and-sync
src/VirtualHost.lua
1
4496
require "HttpMisc" require "FcgiProvider" local uv = require "luv" local mmin = math.min VirtualHost = (require "Object"):extend() function VirtualHost:initialize(initial) self.fastcgi_providers = {} if type(initial) == "table" then self.document_root = assert(initial.DocRoot, "no document root specif...
mit
wagonrepairer/Zero-K
LuaUI/Widgets/chili_new/controls/tabbar.lua
34
1898
--//============================================================================= TabBar = LayoutPanel:Inherit{ classname = "tabbar", orientation = "horizontal", resizeItems = false, centerItems = false, padding = {0, 0, 0, 0}, itemPadding = {0, 0, 0, 0}, itemMargin = {0, 0, 0, 0}, minIte...
gpl-2.0
shingenko/darkstar
scripts/zones/Throne_Room/mobs/Zeid.lua
18
1880
----------------------------------- -- Area: Throne Room -- NPC: Zeid -- Mission 9-2 BASTOK BCNM Fight ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/status"); require("scripts/globals/missions"); require("scripts/globals/settings"); require("scripts/globals/monstertpm...
gpl-3.0
redstormbot/zrdb
plugins/owners.lua
1467
12478
local function lock_group_namemod(msg, data, target) local group_name_set = data[tostring(target)]['settings']['set_name'] local group_name_lock = data[tostring(target)]['settings']['lock_name'] if group_name_lock == 'yes' then return 'Group name is already locked' else data[tostring(target)]['setting...
gpl-2.0
shingenko/darkstar
scripts/zones/Bastok_Mines/npcs/Christina.lua
38
1034
----------------------------------- -- Area: Bastok Mines -- NPC: Christina -- Type: Special Event Coordinator -- @zone: 234 -- @pos 23.703 -1 -86.034 -- -- Auto-Script: Requires Verification ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; require("scripts/zones/Bas...
gpl-3.0
beasterio/FireRays_SDK
Anvil_premake/anvil.lua
4
1829
project "Anvil" location "../Anvil" kind "StaticLib" if os.is("macosx") then buildoptions "-std=c++11 -stdlib=libc++ -fpermissive" glslang_os_files = "../Anvil/deps/glslang/glslang/OSDependent/Unix/*.*" elseif os.is("linux") then buildoptions "-std=c++11 -fPIC -fpermissive" glslang_os_files = "../Anvil...
mit
Illarion-eV/Illarion-Content
monster/base/spells/fireball.lua
5
1194
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
shingenko/darkstar
scripts/globals/weaponskills/asuran_fists.lua
30
1676
----------------------------------- -- Asuran Fists -- Hand-to-Hand weapon skill -- Skill Level: 250 -- Delivers an eightfold attack. params.accuracy varies with TP. -- In order to obtain Asuran Fists, the quest The Walls of Your Mind must be completed. -- Due to the 95% params.accuracy cap there is only a 66% ch...
gpl-3.0
kveratis/GameCode4
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/wxLua/bindings/wxwidgets/wxaui_rules.lua
1
7964
-- ---------------------------------------------------------------------------- -- Rules to build wxWidgets' wxAUI binding for wxLua -- load using : $lua -e"rulesFilename=\"rules.lua\"" genwxbind.lua -- ---------------------------------------------------------------------------- -- ------------------------------...
lgpl-3.0
shingenko/darkstar
scripts/zones/Bastok_Mines/npcs/Black_Mud.lua
36
2759
----------------------------------- -- Area: Bastok Mines -- NPC: Black Mud -- Starts & Finishes Quest: Drachenfall ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/se...
gpl-3.0
openwayne/chaos_theory
mods/pipeworks/decorative_tubes.lua
14
2806
local straight = function(pos, node, velocity, stack) return {velocity} end minetest.register_node("pipeworks:steel_block_embedded_tube", { description = "Airtight steelblock embedded tube", tiles = { "default_steel_block.png", "default_steel_block.png", "default_steel_block.png", "default_steel_block.png", "d...
lgpl-2.1
shingenko/darkstar
scripts/zones/Ordelles_Caves/npcs/Treasure_Chest.lua
17
3771
----------------------------------- -- Area: Ordelles Caves -- NPC: Treasure Chest -- Involved In Quest: Signed In Blood and The Goblin Tailor -- @zone 193 ----------------------------------- package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil; ----------------------------------- require("scripts/gl...
gpl-3.0
ArcherSys/ArcherSys
Lua/examples/luagl/viewIM.lua
1
1625
require("iuplua") require("iupluagl") require("luagl") require("imlua") iup.key_open() texture = 0 cnv = iup.glcanvas{buffer="DOUBLE", rastersize = "640x480"} function cnv:resize_cb(width, height) iup.GLMakeCurrent(self) gl.Viewport(0, 0, width, height) end function cnv:action(x, y) iup.GLMakeCurrent(self) ...
mit
ArcherSys/ArcherSys
Lua/lua/oil/kernel/base/Invoker.lua
1
5029
-------------------------------------------------------------------------------- ------------------------------ ##### ## ------------------------------ ------------------------------ ## ## # ## ------------------------------ ------------------------------ ## ## ## ## ---------------------------...
mit
wagonrepairer/Zero-K
LuaUI/Widgets/dbg_dcicon.lua
17
4357
-- $Id: dbg_dcicon.lua 3171 2008-11-06 09:06:29Z det $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- Copyright (C) 2007. -- Licensed under the terms of the GNU GPL, v2 or later. -- ---------------...
gpl-2.0
Illarion-eV/Illarion-Content
craft/final/armourer.lua
1
31257
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
psychon/awesome
lib/menubar/init.lua
2
18043
--------------------------------------------------------------------------- --- Menubar module, which aims to provide a freedesktop menu alternative -- -- List of menubar keybindings: -- --- -- -- * "Left" | "C-j" select an item on the left -- * "Right" | "C-k" select an item on the right -- * "Backspace" ex...
gpl-2.0
shingenko/darkstar
scripts/zones/Southern_San_dOria_[S]/npcs/YrvaulairSCousseraux1.lua
36
1227
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Yrvaulair S Cousseraux -- @zone 80 -- @pos 0 1 -78 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil; require("scripts/zones/Southern_San_dOria_[S]/TextIDs"); -------------------...
gpl-3.0
lixiantai/barrier_breaker
feeds/luci/applications/luci-firewall/luasrc/model/cbi/firewall/rules.lua
62
7176
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010-2012 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...
gpl-2.0
wahern/cqueues
regress/regress.lua
2
5111
local require = require -- may be overloaded by regress.require local auxlib = require"cqueues.auxlib" local regress = { cqueues = require"cqueues", dns = require "cqueues.dns", socket = require"cqueues.socket", thread = require"cqueues.thread", errno = require"cqueues.errno", condition = require"cqueues.conditi...
mit
shingenko/darkstar
scripts/zones/Windurst_Waters/npcs/Chomo_Jinjahl.lua
33
1210
----------------------------------- -- Area: Windurst Waters -- NPC: Chomo Jinjahl -- Guild Merchant NPC: Cooking Guild -- @pos -105.094 -2.222 73.791 238 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------------------------------- require("scripts/g...
gpl-3.0
wagonrepairer/Zero-K
LuaUI/Widgets/gui_antinuke_coverage.lua
7
13862
function widget:GetInfo() return { name = "Antinuke Coverage", desc = "Displays antinuke coverage of enemies and allies. Takes antinuke shadow into account.", author = "Google Frog", date = "Dec 10, 2009", --updated May 3, 2015 license = "GNU GPL v2", layer = 0, enabled = true ...
gpl-2.0
wagonrepairer/Zero-K
scripts/zenith.lua
2
10684
include "constants.lua" local spGetUnitRulesParam = Spring.GetUnitRulesParam local devCompatibility = Spring.Utilities.IsCurrentVersionNewerThan(100, 0) local base = piece "base" local flare = piece "flare" local firept = piece "firept" local SOURCE_RANGE = 4000 -- size of the box which the emit point can be rando...
gpl-2.0
yakovenkodenis/rethinkdb
external/v8_3.30.33.16/tools/gcmole/gcmole.lua
48
12079
-- Copyright 2011 the V8 project authors. All rights reserved. -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are -- met: -- -- * Redistributions of source code must retain the above copyright -- notice, this list of ...
agpl-3.0
obsy/luci
applications/luci-app-splash/luasrc/model/cbi/splash/splash.lua
68
3008
-- Licensed to the public under the Apache License 2.0. require("luci.model.uci") m = Map("luci_splash", translate("Client-Splash"), translate("Client-Splash is a hotspot authentification system for wireless mesh networks.")) s = m:section(NamedSection, "general", "core", translate("General")) s.addremove = false s...
apache-2.0
lixiantai/barrier_breaker
feeds/luci/applications/luci-asterisk/luasrc/model/cbi/asterisk-sip-connections.lua
80
3921
--[[ 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
shingenko/darkstar
scripts/globals/items/danceshroom.lua
35
1208
----------------------------------------- -- ID: 4375 -- Item: danceshroom -- Food Effect: 5Min, All Races ----------------------------------------- -- Strength -5 -- Dexterity 3 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnIte...
gpl-3.0
wagonrepairer/Zero-K
LuaRules/Gadgets/unit_capture.lua
3
20963
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function gadget:GetInfo() return { name = "Capture", desc = "Handles Yuri Style Capture System", author = "Google Frog", ...
gpl-2.0
wagonrepairer/Zero-K
LuaUI/Widgets/unit_rank_icons.lua
20
1883
function widget:GetInfo() return { name = "Rank Icons 2", desc = "Adds a rank icon depending on experience next to units (needs Unit Icons)", author = "trepan (idea quantum,jK), CarRepairer tweak, Sprung improve", date = "Nov 2014", -- "Feb, 2008" license = "GNU GPL, v2 or later", layer = ...
gpl-2.0
laincloud/lain-sdk
lain_sdk/yaml/lua_parser/yamlParser.lua
2
1535
yaml = require "lyaml" json = require "json" --------------------------------------------------------------------------------------------------------------- -- Enum for SocketType & ProcType --------------------------------------------------------------------------------------------------------------- SocketType={tcp=...
mit
Johnicholas/ceu
tests_os.lua
1
39590
VALGRIND = true --[===[ --]===] -- OK: well tested Test { [[escape(1);]], run = 1, } Test { [[escape(2);]], [[escape(3);]], run = 5, } Test { [[escape(1);]], [[escape(2);]], [[escape(3);]], [[escape(4);]], run = 10, } Test { [[escape(2);]], [[await 50ms; escape(10);]], run = 12, } Test { [[...
mit
shingenko/darkstar
scripts/globals/items/bunch_of_buburimu_grapes.lua
35
1223
----------------------------------------- -- ID: 4503 -- Item: Bunch of Buburimu Grapes -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility -6 -- Intelligence 4 ----------------------------------------- require("scripts/globals/status"); ------------------------------------...
gpl-3.0
simon-wh/PAYDAY-2-BeardLib
Hooks/World/GamePlayCentralManager.lua
2
3345
function GamePlayCentralManager:add_move_unit(unit, from, to, speed, done_callback) self._move_units = self._move_units or {} for k, move_unit in pairs(self._move_units) do if move_unit.unit == unit then table.remove(self._move_units, k) end end if not alive(unit) then return e...
mit
shingenko/darkstar
scripts/globals/items/cheval_salmon.lua
18
1332
----------------------------------------- -- ID: 4379 -- Item: cheval_salmon -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Mind 4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItem...
gpl-3.0
shingenko/darkstar
scripts/zones/RuLude_Gardens/npcs/HomePoint#2.lua
17
1249
----------------------------------- -- Area: RuLude_Gardens -- NPC: HomePoint#2 -- @pos 53 9 -57 243 ----------------------------------- package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/RuLude_Gardens/TextIDs"); require("scripts/globa...
gpl-3.0
psychon/awesome
tests/examples/wibox/awidget/prompt/vilike.lua
6
2239
--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_NO_USAGE --DOC_HIDE local wibox = require( "wibox" ) --DOC_HIDE local awful = { prompt = require("awful.prompt"),--DOC_HIDE util = require("awful.util")}--DOC_HIDE local beautiful = require( "beautiful" ) --DOC_HIDE local gfs ...
gpl-2.0
lixiantai/barrier_breaker
feeds/packages/net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/rule.lua
14
4064
-- ------ extra functions ------ -- function ruleCheck() -- determine if rules needs a proper protocol configured uci.cursor():foreach("mwan3", "rule", function (section) local sourcePort = ut.trim(sys.exec("uci get -p /var/state mwan3." .. section[".name"] .. ".src_port")) local destPort = ut.trim(sys.exec("...
gpl-2.0
ArcherSys/ArcherSys
Lua/examples/penlight/tests/test-comprehension.lua
4
2429
-- test-comprehension.lua -- test of comprehension.lua local comp = require 'pl.comprehension' . new() local asserteq = require 'pl.test' . asserteq -- test of list building asserteq(comp 'x for x' {}, {}) asserteq(comp 'x for x' {2,3}, {2,3}) asserteq(comp 'x^2 for x' {2,3}, {2^2,3^2}) asserteq(comp 'x for x if x % 2...
mit
clemty/OpenRA
mods/ra/maps/fort-lonestar/fort-lonestar.lua
10
5732
Patrol = { "e1", "e2", "e1" } Infantry = { "e4", "e1", "e1", "e2", "e1", "e2" } Vehicles = { "arty", "ftrk", "ftrk", "apc", "apc" } Tank = { "3tnk" } LongRange = { "v2rl" } Boss = { "4tnk" } SovietEntryPoints = { Entry1, Entry2, Entry3, Entry4, Entry5, Entry6, Entry7, Entry8 } PatrolWaypoints = { Entry2, Entry4, Entry...
gpl-3.0
wagonrepairer/Zero-K
units/chicken_blimpy.lua
4
6362
unitDef = { unitname = [[chicken_blimpy]], name = [[Blimpy]], description = [[Dodo Bomber]], airHoverFactor = 0, amphibious = true, buildCostEnergy = 0, buildCostMetal = 0, builder = false, buildPic = [[chicken_blimpy.png]...
gpl-2.0
shadobaker/TeleBeyond
plugins/admin.lua
7
6390
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(receiver, '...
gpl-2.0
Illarion-eV/Illarion-Content
server/learn.lua
1
9861
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
tizbac/ldcore
dep/lua5.1/etc/premake.lua
4
6199
---------------------------------------------------- -- The main porpouse of this file is to build linux gcc makefiles. -- Must have Premake version 3 installed. -- Original Premake was changed to remove some parameters and add others. -- Default parameters: -- premake3s --target gnu --os linux -- But it can build wi...
gpl-2.0
shingenko/darkstar
scripts/zones/Port_San_dOria/npcs/Coribalgeant.lua
36
1378
----------------------------------- -- Area: Port San d'Oria -- NPC: Coribalgeant -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/zones/Port_San_dOria/...
gpl-3.0
AleksCore/Mr.Green-MTA-Resources
resources/[race]/race_toptimes/toptimes_server.lua
4
15027
-- -- toptimes_server.lua -- SToptimesManager = {} SToptimesManager.__index = SToptimesManager SToptimesManager.instances = {} --------------------------------------------------------------------------- -- Server -- Handle events from Race -- -- This is the 'interface' from Race -- -----------------------------------...
mit
kveratis/GameCode4
Source/GCC4/3rdParty/luaplus51-all/Test/adolua.lua
1
1527
-- dblua.lua require "com" do local dblua_data = {} function DBOpen(connection_string) dblua_data.connection = luacom.CreateObject("ADODB.Connection") assert(dblua_data.connection) dblua_data.connection.ConnectionString = connection_string dblua_data.connection:Open() end function DBClos...
lgpl-3.0
Illarion-eV/Illarion-Content
npc/base/tools.lua
1
1555
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
apaszke/nn
SpatialReplicationPadding.lua
20
1993
local SpatialReplicationPadding, parent = torch.class('nn.SpatialReplicationPadding', 'nn.Module') function SpatialReplicationPadding:__init(pad_l, pad_r, pad_t, pad_b) parent.__init(self) self.pad_l = pad_l self.pad_r = pad_r or self.pad_l self.pad_t = pad_t or self.pad_l self.pad_b = pad_b or self....
bsd-3-clause
wagonrepairer/Zero-K
LuaUI/Widgets/api_i18n.lua
2
2981
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- --[[ Example: local tr local hellWorld function widget:Initialize() tr=WG.initializeTranslation(GetInfo().name,langCallback) hellWorld=tr("helloworld") end ...
gpl-2.0
PhilMo6/Lua_pi_pan
obj/commands/LED.lua
1
2699
local Command = require("obj.Command") --- test command local LED = Command:clone() LED.name = "LED" LED.keywords = {"L","led","l"} --- Execute the command function LED:execute(input,user,par) local words = string.Words(input) local input1, input2, input3 ,input4,input5 = words[1],words[2],words[3],words[4],words[5...
mit
dr0n3/WHCCalendar
Event.lua
2
9067
local WHCCalendar = Apollo.GetAddon("WHCCalendar") -- tEvents: -- ID: (playername..time of creation) -- -- NAME (Veteran Kel Voreth) -- -- CREATOR (Finn Walker) -- -- DATE ({day, month, year}) -- -- TIME ({hour, min}) -- -- NATTENDEES (number of attendees) -- -- CHANGED (time of last change) -- -- CANCELED (t...
mit
wagonrepairer/Zero-K
LuaUI/Widgets/gui_havens.lua
11
5124
------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Haven Handler", desc = "Haven Handler for Retreat Gadget", author = "CarRepai...
gpl-2.0
ArcherSys/ArcherSys
Lua/examples/luagd/steg.lua
3
10153
#/usr/bin/env lua --[[ Steganography with Lua-GD Steganography is the technique of writing hidden messages in such a way that no one apart from the intended recipient knows of the existence of the message; this is in contrast to cryptography, where the existence of the message is clear, but the ...
mit
AleksCore/Mr.Green-MTA-Resources
resources/[gameplay]/gus/antipickups.lua
4
1819
------Disallowed Vehicle Pickups------ --------------------------------------------- --------------------------------------------- disallowedVehs = { ["SHOOTER"] = { --Bikes-- 581, --BF-400 509, --Bike 481, --BMX 462, --Faggio 521, --FCR-900 463, --Freeway 510, --Mountain Bike 522, --NRG-500 461, ...
mit
shingenko/darkstar
scripts/zones/Garlaige_Citadel/npcs/Treasure_Coffer.lua
17
3976
----------------------------------- -- Area: Garlaige Citadel -- NPC: Treasure Coffer -- @zone 200 ----------------------------------- package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); ...
gpl-3.0