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 |
|---|---|---|---|---|---|
uonline/debut | src/day2/act2/barracks_hall.room.lua | 1 | 2654 | barracks_hall = room {
nam = 'Коридор штаба';
dsc = [[
Ты стоишь посреди просторного коридора, освещённого пламенем
многочисленных факелов. Прямо перед тобой на стене висит
знамя Режима Ремана. Ты делаешь неутешительный
вывод, что тебя доставили прямиком в городской штаб Режима --
место с кучей солдат, бого... | gpl-3.0 |
darkdukey/sdkbox-facebook-sample-v2 | samples/Lua/TestLua/Resources/luaScript/ZwoptexTest/ZwoptexTest.lua | 8 | 4465 | local scheduler = CCDirector:sharedDirector():getScheduler()
--------------------------------------------------------------------
--
-- ZwoptexGenericTest
--
--------------------------------------------------------------------
local function ZwoptexGenericTest()
local ret = createTestLayer("Zwoptex Tests",
... | mit |
BluePentagram/BP_Esper_Abilities | bp_esper_abilities/lua/weapons/esper_telepathy.lua | 1 | 1379 | if SERVER then
AddCSLuaFile()
SWEP.Weight = 5
SWEP.AutoSwitchTo = false
SWEP.AutoSwitchFrom = false
elseif CLIENT then
SWEP.PrintName = "Telepathy - WIP"
SWEP.Slot = 0
SWEP.SlotPos = 6
SWEP.DrawAmmo = false
SWEP.DrawCrosshair = false
end
-- local ply = SWEP.Owner
SWEP.Author = "Blue-Pentagram"
SWEP.... | gpl-2.0 |
aminaleahmad/merbots | bot/utils.lua | 15 | 14995 | 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")()
JSON = (loadfile "./libs/... | gpl-2.0 |
FastQuake/E410 | data/scripts/ai.lua | 2 | 7406 | require "networkutils"
local nodes = {}
require "networkutils"
local monsters = {}
AIManager = {}
bulletd = 300
wave = 1
function tablelength(T)
local count = 0
for _ in pairs(T) do count = count + 1 end
return count
end
function tableContains(t,searchv)
for k,v in pairs(t) do
if v == searchv then
return ... | gpl-2.0 |
cooljeanius/CEGUI | projects/premake/config.lua | 1 | 7035 | --
-- CEGUI premake configuration script
--
--- These control whether certain build configurations will be available in the
--- generated solutions. You can set to false (or comment) any build configs
--- you will not be using.
WANT_RELEASE_WITH_SYMBOLS_BUILD = true
WANT_STATIC_BUILD = true
--- This controls which v... | gpl-3.0 |
ncarlson/eiga | runtime/modules/graphics/graphics.lua | 1 | 4586 | -- Copyright (C) 2012 Nicholas Carlson
--
-- 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, publi... | mit |
JarnoVgr/Mr.Green-MTA-Resources | resources/[race]/race/rankingboard_client.lua | 4 | 9750 | local sx,sy = guiGetScreenSize()
RankingBoard = {}
RankingBoard.__index = RankingBoard
RankingBoard.instances = {}
local screenWidth, screenHeight = guiGetScreenSize()
local topDistance = 250
local bottomDistance = 0.26*screenHeight
local posLeftDistance = 30
local nameLeftDistance = 60
local labelHeight = 16
local... | mit |
Zefiros-Software/ZPM | test/extern/luacov/stats.lua | 4 | 2078 | -----------------------------------------------------
-- Manages the file with statistics (being) collected.
-- @class module
-- @name luacov.stats
local stats = {}
-----------------------------------------------------
-- Loads the stats file.
-- @param statsfile path to the stats file.
-- @return table with data or n... | mit |
tianxiawuzhei/cocos-quick-cpp | publibs/cocos2dx/cocos/scripting/lua-bindings/auto/api/TextureCache.lua | 2 | 5315 |
--------------------------------
-- @module TextureCache
-- @extend Ref
-- @parent_module cc
--------------------------------
-- Reload texture from the image file.<br>
-- If the file image hasn't loaded before, load it.<br>
-- Otherwise the texture will be reloaded from the file image.<br>
-- param fileName It's th... | mit |
LuaDist2/oil | lua/precompiler.lua | 4 | 6261 | #!/usr/bin/env lua
--------------------------------------------------------------------------------
-- @script Lua Script Pre-Compiler
-- @version 1.1
-- @author Renato Maia <maia@tecgraf.puc-rio.br>
--
local assert = assert
local error = error
local ipairs = ipairs
local loadfile = loadfile
local pairs = ... | mit |
JarnoVgr/Mr.Green-MTA-Resources | resources/[race]/race_delay_indicator/textlib.lua | 3 | 7856 | dxText = {}
dxText_mt = { __index = dxText }
local idAssign,idPrefix = 0,"c"
local g_screenX,g_screenY = guiGetScreenSize()
local visibleText = {}
------
defaults = {
fX = 0.5,
fY = 0.5,
bRelativePosition = true,
strText = "",
bVerticalAlign = "center",
bHorizontalAlign = "center",
tCol... | mit |
opentechinstitute/luci | protocols/ppp/luasrc/model/network/proto_ppp.lua | 77 | 2695 | --[[
LuCI - Network model - 3G, PPP, PPtP, PPPoE and PPPoA protocol extension
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.o... | apache-2.0 |
minecraftgame-andrd/minecraftgame | plugins/linkpv.lua | 46 | 31163 | do
local function check_member(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[tostring(msg.to.id)] = {
... | gpl-2.0 |
abasshacker/abbasone | plugins/inrealm.lua | 287 | 25005 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
HEYAHONG/nodemcu-firmware | lua_modules/ftp/ftpserver.lua | 7 | 18436 | --[[SPLIT MODULE ftp]]
--[[ A simple ftp server
This is my implementation of a FTP server using Github user Neronix's
example as inspriration, but as a cleaner Lua implementation that is
suitable for use in LFS. The coding style adopted here is more similar to
best practice for normal (PC) module implementations,... | mit |
maxrio/packages981213 | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/memberconfig.lua | 110 | 1317 | -- ------ extra functions ------ --
function cbi_add_interface(field)
uci.cursor():foreach("mwan3", "interface",
function (section)
field:value(section[".name"])
end
)
end
-- ------ member configuration ------ --
dsp = require "luci.dispatcher"
arg[1] = arg[1] or ""
m5 = Map("mwan3", translate("MWAN Membe... | gpl-2.0 |
adamflott/wargus | scripts/ai/ai_nephrite_2013.lua | 1 | 18820 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|_... | gpl-2.0 |
AliKhodadad/zed-spam | plugins/help.lua | 337 | 5009 | do
function pairsByKeys(t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
ashkanpj/fire | plugins/help.lua | 337 | 5009 | do
function pairsByKeys(t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
JarnoVgr/Mr.Green-MTA-Resources | resources/[race]/race_traffic_sensor/trafficsensor_client.lua | 4 | 7294 | --
-- traffic_sensor_client.lua
--
---------------------------------------------------------------------------
--
-- Handle events from Race
--
---------------------------------------------------------------------------
addEventHandler('onClientResourceStart', g_ResRoot,
function()
-- Bigdar.setHotKey( 'F4' ) -- U... | mit |
tianxiawuzhei/cocos-quick-cpp | publibs/cocos2dx/cocos/scripting/lua-bindings/auto/api/ImageView.lua | 4 | 4394 |
--------------------------------
-- @module ImageView
-- @extend Widget
-- @parent_module ccui
--------------------------------
-- Load texture for imageview.<br>
-- param fileName file name of texture.<br>
-- param texType @see `Widget::TextureResType`
-- @function [parent=#ImageView] loadTexture
-- @param sel... | mit |
JarnoVgr/Mr.Green-MTA-Resources | resources/[admin]/admin/client/gui/admin_stats.lua | 7 | 5177 | --[[**********************************
*
* Multi Theft Auto - Admin Panel
*
* gui\admin_stats.lua
*
* Original File by lil_Toady
*
**************************************]]
aStatsForm = nil
local aStatsGUI = {}
function aPlayerStats ( player )
if ( aStatsForm == nil ) then
local x, y = guiGetScreenSize()
aStatsFo... | mit |
tianxiawuzhei/cocos-quick-cpp | publibs/cocos2dx/tests/lua-tests/src/CocosDenshionTest/CocosDenshionTest.lua | 6 | 7421 | local EFFECT_FILE = "effect1.wav"
local MUSIC_FILE = nil
local targetPlatform = cc.Application:getInstance():getTargetPlatform()
if (cc.PLATFORM_OS_IPHONE == targetPlatform) or (cc.PLATFORM_OS_IPAD == targetPlatform) then
MUSIC_FILE = "background.caf"
else
MUSIC_FILE = "background.mp3"
end
local LINE_SPACE =... | mit |
JarnoVgr/Mr.Green-MTA-Resources | resources/[race]/race/_joiner.lua | 4 | 6557 | --
-- joiner.lua
--
-- 1. Delay onPlayerJoin until client loaded
-- 2. Patch the following calls to only use the joined players:
-- getElementsByType('player')
-- getDeadPlayers
-- getPlayerCount
-- getRandomPlayer
-- 3. In any call that uses getRootElement() or g_Root to specify all players, use
... | mit |
JarnoVgr/Mr.Green-MTA-Resources | resources/[admin]/admin/client/gui/admin_moddetails.lua | 7 | 2857 | --[[**********************************
*
* Multi Theft Auto - Admin Panel
*
* gui\admin_moddetails.lua
*
**************************************]]
aModdetailsForm = nil
local modDetailsPlayer = nil
function aViewModdetails ( player )
modDetailsPlayer = player
if ( aModdetailsForm == nil ) then
local x, y = guiGet... | mit |
Zefiros-Software/ZPM | test/src/testLoad.lua | 1 | 1353 | --[[ @cond ___LICENSE___
-- Copyright (c) 2017 Zefiros Software.
--
-- 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, ... | mit |
PlayFab/LuaSdk | PlayFabServerSDK/PlayFab/PlayFabEconomyApi.lua | 3 | 21513 | -- PlayFab Economy API
-- This is the main file you should require in your game
-- All api calls are documented here: https://docs.microsoft.com/gaming/playfab/api-references/
-- Example code:
-- local PlayFabEconomyApi = require("PlayFab.PlayFabEconomyApi")
-- PlayFabEconomyApi.<EconomyApiCall>(request, successCallbac... | apache-2.0 |
maxrio/packages981213 | net/luci-app-e2guardian/files/e2guardian-cbi.lua | 55 | 18594 | --[[
LuCI E2Guardian module
Copyright (C) 2015, Itus Networks, Inc.
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
Author: Marko Ratkaj <marko.ratkaj... | gpl-2.0 |
MmxBoy/newbot | plugins/anti-bot.lua | 29 | 3063 | local function isBotAllowed (userId, chatId)
local hash = 'anti-bot:allowed:'..chatId..':'..userId
local banned = redis:get(hash)
return banned
end
local function allowBot (userId, chatId)
local hash = 'anti-bot:allowed:'..chatId..':'..userId
redis:set(hash, true)
end
local function disallowBot (userId, cha... | gpl-2.0 |
Frenzie/koreader-base | ffi/pic.lua | 1 | 9880 | local ffi = require("ffi")
local BB = require("ffi/blitbuffer")
local Png = require("ffi/png")
local Jpeg = require("ffi/jpeg")
require("ffi/giflib_h")
local giflib
if ffi.os == "Windows" then
giflib = ffi.load("libs/libgif-7.dll")
elseif ffi.os == "OSX" then
giflib = ffi.load("libs/libgif.7.dylib")
else
g... | agpl-3.0 |
JarnoVgr/Mr.Green-MTA-Resources | resources/[gameplay]/-shaders-radial_blur/c_radial_blur.lua | 4 | 14796 | --
-- c_radial_blur.lua
--
-----------------------------------------------------------------------------------
-- Settings for changing
-----------------------------------------------------------------------------------
bSuspendSpeedEffectOnLowFPS = false -- true for auto FPS saving
bSuspendRotateEffectOnLowFPS = fal... | mit |
Frenzie/koreader-base | ffi/sha2.lua | 1 | 151394 | --------------------------------------------------------------------------------------------------------------------------
-- sha2.lua
--------------------------------------------------------------------------------------------------------------------------
-- VERSION: 9 (2020-05-10)
-- AUTHOR: Egor Skriptunoff
-- LIC... | agpl-3.0 |
darkdukey/sdkbox-facebook-sample-v2 | samples/Lua/TestLua/Resources/luaScript/ActionManagerTest/ActionManagerTest.lua | 8 | 6444 | local kTagNode = 0
local kTagGrossini = 1
local kTagSequence = 2
local scheduler = CCDirector:sharedDirector():getScheduler()
--------------------------------------------------------------------
--
-- Test1
--
--------------------------------------------------------------------
local function CrashTest()
... | mit |
dgcrouse/torch-rnn | test/VanillaRNN_test.lua | 17 | 5462 | require 'torch'
require 'nn'
local gradcheck = require 'util.gradcheck'
require 'VanillaRNN'
local tests = torch.TestSuite()
local tester = torch.Tester()
local function check_size(x, dims)
tester:asserteq(x:dim(), #dims)
for i, d in ipairs(dims) do
tester:assert(x:size(i) == d)
end
end
local function ... | mit |
PlayFab/LuaSdk | PlayFabServerSDK/PlayFab/PlayFabProfilesApi.lua | 3 | 6818 | -- PlayFab Profiles API
-- This is the main file you should require in your game
-- All api calls are documented here: https://docs.microsoft.com/gaming/playfab/api-references/
-- Example code:
-- local PlayFabProfilesApi = require("PlayFab.PlayFabProfilesApi")
-- PlayFabProfilesApi.<ProfilesApiCall>(request, successCa... | apache-2.0 |
PlayFab/LuaSdk | PlayFabClientSDK/PlayFab/PlayFabProfilesApi.lua | 3 | 6818 | -- PlayFab Profiles API
-- This is the main file you should require in your game
-- All api calls are documented here: https://docs.microsoft.com/gaming/playfab/api-references/
-- Example code:
-- local PlayFabProfilesApi = require("PlayFab.PlayFabProfilesApi")
-- PlayFabProfilesApi.<ProfilesApiCall>(request, successCa... | apache-2.0 |
opentechinstitute/luci | applications/luci-statistics/luasrc/statistics/rrdtool/definitions/processes.lua | 78 | 2188 | --[[
Luci statistics - processes plugin diagram definition
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.... | apache-2.0 |
opentechinstitute/luci | modules/admin-mini/luasrc/model/cbi/mini/dhcp.lua | 82 | 2998 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | apache-2.0 |
opentechinstitute/luci | libs/nixio/docsrc/nixio.UnifiedIO.lua | 157 | 5891 | --- Unified high-level I/O utility API for Files, Sockets and TLS-Sockets.
-- These functions are added to the object function tables by doing <strong>
-- require "nixio.util"</strong>, can be used on all nixio IO Descriptors and
-- are based on the shared low-level read() and write() functions.
-- @cstyle instance
mo... | apache-2.0 |
jithumon/Kochu | plugins/onmessage.lua | 8 | 8605 | local config = require 'config'
local u = require 'utilities'
local api = require 'methods'
local plugin = {}
local function max_reached(chat_id, user_id)
local max = tonumber(db:hget('chat:'..chat_id..':warnsettings', 'mediamax')) or 2
local n = tonumber(db:hincrby('chat:'..chat_id..':mediawarn', user_id, 1)... | gpl-2.0 |
mehrdadneyazy78/-S-Bot | plugins/isX.lua | 605 | 2031 | local https = require "ssl.https"
local ltn12 = require "ltn12"
local function request(imageUrl)
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local api_key = mashape.api_key
if ... | gpl-2.0 |
mobarski/sandbox | scite/old/wscite_zzz/lexers/notused/ps.lua | 5 | 1630 | -- Copyright 2006-2017 Mitchell mitchell.att.foicica.com. See LICENSE.
-- Postscript LPeg lexer.
local l = require('lexer')
local token, word_match = l.token, l.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local M = {_NAME = 'ps'}
-- Whitespace.
local ws = token(l.WHITESPACE, l.space^1)
-- Comments.
local comm... | mit |
tianxiawuzhei/cocos-quick-cpp | publibs/cocos2dx/cocos/scripting/lua-bindings/script/framework/extends/UISlider.lua | 57 | 1392 |
--[[
Copyright (c) 2011-2014 chukong-inc.com
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, di... | mit |
aminaleahmad/merbots | plugins/id.lua | 11 | 5732 | --[[
Print user identification/informations by replying their post or by providing
their username or print_name.
!id <text> is the least reliable because it will scan trough all of members
and print all member with <text> in their print_name.
chat_info can be displayed on group, send it into PM, or save as file then... | gpl-2.0 |
Zefiros-Software/ZPM | src/cli/github.lua | 1 | 1252 | --[[ @cond ___LICENSE___
-- Copyright (c) 2017 Zefiros Software.
--
-- 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, ... | mit |
robbie-cao/mooncake | fs-detect.lua | 1 | 1715 | #!/usr/bin/env lua
pl = require("pl")
posix = require("posix")
local uv = require("luv")
local path = arg[1] or "."
local fdir = posix.dir(path)
local fset = Set(fdir)
--[[
pretty.dump(fdir)
pretty.dump(fset)
--]]
local fse = uv.new_fs_event()
assert(uv.fs_event_start(fse, path, {
-- "watch_entry" = true,
-... | mit |
dmccuskey/dmc-facebook | dmc_corona/dmc_facebook.lua | 4 | 25261 | --====================================================================--
-- dmc_facebook.lua
--
--
-- by David McCuskey
-- Documentation: http://docs.davidmccuskey.com/display/docs/dmc_facebook.lua
--====================================================================--
--[[
Copyright (C) 2013 David McCuskey. All Rig... | mit |
RokaRoka/MistyWitches | hump/class.lua | 25 | 3024 | --[[
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 |
JarnoVgr/Mr.Green-MTA-Resources | resources/[gameplay]/joinquit/joinquit_server.lua | 1 | 1972 | addEventHandler("onPlayerJoin", root,
function()
local country = exports.geoloc:getPlayerCountryName(source)
country = country and (' (' .. country .. ')') or ''
local redirect = ''
if getElementData(source, 'redirectedFrom') then
redirect = ' from ' .. string.lower(getElementData(source, 'redire... | mit |
LuaDist2/oil | lua/loop/simple.lua | 13 | 3619 | --------------------------------------------------------------------------------
---------------------- ## ##### ##### ###### -----------------------
---------------------- ## ## ## ## ## ## ## -----------------------
---------------------- ## ## ## ## ## ###### --------------------... | mit |
tianxiawuzhei/cocos-quick-cpp | publibs/cocos2dx/external/lua/luasocket/script/socket.lua | 93 | 4451 | -----------------------------------------------------------------------------
-- LuaSocket helper module
-- Author: Diego Nehab
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- Declare module and import depend... | mit |
tianxiawuzhei/cocos-quick-cpp | publibs/cocos2dx/cocos/scripting/lua-bindings/auto/api/EaseBounceIn.lua | 9 | 1242 |
--------------------------------
-- @module EaseBounceIn
-- @extend EaseBounce
-- @parent_module cc
--------------------------------
-- brief Create the action with the inner action.<br>
-- param action The pointer of the inner action.<br>
-- return A pointer of EaseBounceIn action. If creation failed, return nil.
--... | mit |
tianxiawuzhei/cocos-quick-cpp | publibs/cocos2dx/cocos/scripting/lua-bindings/script/cocostudio/CocoStudio.lua | 62 | 9435 | if nil == ccs then
return
end
if not json then
require "cocos.cocos2d.json"
end
require "cocos.cocostudio.StudioConstants"
function ccs.sendTriggerEvent(event)
local triggerObjArr = ccs.TriggerMng.getInstance():get(event)
if nil == triggerObjArr then
return
end
for i = 1, table.getn... | mit |
kyuu/dynrpg-rpgss | assets/Scripts/extensions/inputmanager/InputManager.lua | 1 | 5485 | require "system"
require "extensions.timer"
InputManager = class {
__name = "InputManager",
listeners = {},
sortedListeners = {},
keyRepeat = {
delay = 500, -- milliseconds before key repeat start
interval = 50, -- milliseconds before next key repeat
timer = 0,
... | mit |
cyanskies/OpenRA | mods/ra/maps/soviet-06a/soviet06a-reinforcements_teams.lua | 12 | 1302 | EnemyReinforcements =
{
easy =
{
{ "e1", "e1", "e3" },
{ "e1", "e3", "jeep" },
{ "e1", "jeep", "1tnk" }
},
normal =
{
{ "e1", "e1", "e3", "e3" },
{ "e1", "e3", "jeep", "jeep" },
{ "e1", "jeep", "1tnk", "2tnk" }
},
hard =
{
{ "e1", "e1", "e3", "e3", "e1" },
{ "e1", "e3", "jeep", "jeep", "1tnk" ... | gpl-3.0 |
cyanskies/OpenRA | mods/cnc/maps/gdi03/gdi03.lua | 46 | 3709 | SamSites = { Sam1, Sam2, Sam3, Sam4 }
Sam4Guards = { Sam4Guard0, Sam4Guard1, Sam4Guard2, Sam4Guard3, Sam4Guard4, HiddenBuggy }
NodInfantrySquad = { "e1", "e1", "e1", "e1", "e1" }
NodAttackRoutes = { { AttackWaypoint }, { AttackWaypoint }, { AttackRallypoint1, AttackRallypoint2, AttackWaypoint } }
InfantryReinforcements... | gpl-3.0 |
JarnoVgr/Mr.Green-MTA-Resources | resources/[race]/race_ghost_assist/playback_local_client.lua | 2 | 19378 | -- // =====================[ important variables ] ===================//
g_Root = getRootElement()
local nextNode = nil -- !!!
local prev, curr
local node1, node2
local lastNodeID = 1 -- gotta start at 1
local nextNodeID = 1 -- gotta start at 1
local id, idx
local x, y, z
local xx, yy, zz
local xx2, yy2, zz2
local r... | mit |
maxrio/packages981213 | net/smartsnmpd/files/mibs/system.lua | 158 | 6428 | --
-- This file is part of SmartSNMP
-- Copyright (C) 2014, Credo Semiconductor Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your optio... | gpl-2.0 |
LuaDist2/oil | lua/oil/kernel/lua/Dispatcher.lua | 6 | 3727 | --------------------------------------------------------------------------------
------------------------------ ##### ## ------------------------------
------------------------------ ## ## # ## ------------------------------
------------------------------ ## ## ## ## ---------------------------... | mit |
tianxiawuzhei/cocos-quick-cpp | publibs/cocos2dx/cocos/scripting/lua-bindings/auto/api/Sprite.lua | 1 | 17465 |
--------------------------------
-- @module Sprite
-- @extend Node,TextureProtocol
-- @parent_module cc
--------------------------------
-- @overload self, cc.SpriteFrame
-- @overload self, string
-- @function [parent=#Sprite] setSpriteFrame
-- @param self
-- @param #string spriteFrameName
-- @retur... | mit |
opentechinstitute/luci | applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna6.lua | 38 | 1176 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2011 Manuel Munz <freifunk at somakoma dot 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
h... | apache-2.0 |
sebastianlis/OOP-Samples-for-Corona-SDK | classes/samples/Monetization/InAppPurchase.lua | 1 | 4534 | require "classes.constants.screen"
InAppPurchase={}
function InAppPurchase:new()
local this = display.newGroup()
local public = this
local private = {}
local widget = require("widget")
local store = require("plugin.google.iap.v3")
local background = display.newImageRect("img/backgroundMonetiza... | mit |
raymondtfr/forgottenserver | data/talkactions/scripts/deathlist.lua | 43 | 2176 | local function getArticle(str)
return str:find("[AaEeIiOoUuYy]") == 1 and "an" or "a"
end
local function getMonthDayEnding(day)
if day == "01" or day == "21" or day == "31" then
return "st"
elseif day == "02" or day == "22" then
return "nd"
elseif day == "03" or day == "23" then
return "rd"
else
return "t... | gpl-2.0 |
Craige/prosody-modules | mod_s2s_idle_timeout/mod_s2s_idle_timeout.lua | 32 | 1590 | local now = os.time;
local s2smanager = require "core.s2smanager";
local timer = require "util.timer";
local s2s_sessions = setmetatable({}, { __mode = "kv" });
local idle_timeout = module:get_option("s2s_idle_timeout") or 300;
local check_interval = math.ceil(idle_timeout * 0.75);
local function install_checks(ses... | mit |
yuri/sfoto | lua/sputnik/actions/sfoto.lua | 1 | 11748 | -----------------------------------------------------------------------------
-- Implements Sputnik actions for a photoalbum / blog combo.
-----------------------------------------------------------------------------
module(..., package.seeall)
local ITEMS_PER_ROW = 5
local imagegrid = require("sfoto.imagegrid")
local... | mit |
gedads/Neodynamis | scripts/zones/Northern_San_dOria/npcs/Maurinne.lua | 3 | 1039 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Maurinne
-- Type: Standard Dialogue NPC
-- @zone 231
-- !pos -127.185 0.000 179.193
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs");
... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Behemoths_Dominion/mobs/King_Behemoth.lua | 11 | 1784 | -----------------------------------
-- Area: Behemoth's Dominion
-- HNM: King Behemoth
-----------------------------------
local ID = require("scripts/zones/Behemoths_Dominion/IDs")
mixins = {require("scripts/mixins/rage")}
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Port_Bastok/npcs/Synergy_Engineer.lua | 3 | 1051 | -----------------------------------
-- Area: Port Bastok
-- NPC: Synergy Engineer
-- Type: Standard NPC
-- @zone 236
-- !pos 37.700 -0.3 -50.500
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-------------... | gpl-3.0 |
hades2013/openwrt-mtk | package/ralink/ui/luci-mtk/src/applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-format.lua | 80 | 3636 | --[[
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 |
starlightknight/darkstar | scripts/globals/spells/bluemagic/plasma_charge.lua | 12 | 1283 | -----------------------------------------
-- Spell: Plasma Charge
-- Covers you with magical lightning spikes. Enemies that hit you take lightning damage
-- Spell cost: 24 MP
-- Monster Type: Luminians
-- Spell Type: Magical (Lightning)
-- Blue Magic Points: 5
-- Stat Bonus: STR+3 DEX+3
-- Level: 75
-- Casting Time: 3 ... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Chateau_dOraguille/npcs/Chalvatot.lua | 9 | 4381 | -----------------------------------
-- Area: Chateau d'Oraguille
-- NPC: Chalvatot
-- Finish Mission "The Crystal Spring"
-- Start & Finishes Quests: Her Majesty's Garden
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- !pos -105 0.1 72 233
-----------------------------------
require("scripts/globals/settings... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Temple_of_Uggalepih/npcs/_4f3.lua | 3 | 2093 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: _4f3
-- Notes: Tonberry Priest Room (Offers Tonberry Hate Reset)
-- !pos 60.001 -1.653 -147.755 159
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
-----------------------------------
requ... | gpl-3.0 |
dimitarcl/premake-dev | tests/config/test_targetinfo.lua | 2 | 5642 | --
-- tests/config/test_targetinfo.lua
-- Test the config object's build target accessor.
-- Copyright (c) 2011-2013 Jason Perkins and the Premake project
--
local suite = test.declare("config_targetinfo")
local config = premake.config
--
-- Setup and teardown
--
local sln, prj
function suite.setup()
_ACTION... | bsd-3-clause |
tommy3/Urho3D | bin/Data/LuaScripts/Utilities/Touch.lua | 32 | 2209 | -- Mobile framework for Android/iOS
-- Gamepad from Ninja Snow War
-- Touches patterns:
-- - 1 finger touch = pick object through raycast
-- - 1 or 2 fingers drag = rotate camera
-- - 2 fingers sliding in opposite direction (up/down) = zoom in/out
-- Setup: Call the update function 'UpdateTouches()' from... | mit |
gedads/Neodynamis | scripts/zones/Selbina/npcs/Porter_Moogle.lua | 3 | 1518 | -----------------------------------
-- Area: Selbina
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- @zone 248
-- !pos TODO
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
require("scrip... | gpl-3.0 |
mishin/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 |
starlightknight/darkstar | scripts/globals/abilities/pets/attachments/mana_tank.lua | 11 | 1151 | -----------------------------------
-- Attachment: Mana Tank
-----------------------------------
require("scripts/globals/automaton")
require("scripts/globals/status")
-----------------------------------
function onEquip(pet)
-- We do not have support to do a fraction of a percent so we rounded
local frame = p... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/weaponskills/catastrophe.lua | 19 | 2122 | -----------------------------------
-- Catastrophe
-- Scythe weapon skill
-- Skill Level: N/A
-- Drain target's HP. Bec de Faucon/Apocalypse: Additional effect: Haste
-- This weapon skill is available with the stage 5 relic Scythe Apocalypse or within Dynamis with the stage 4 Bec de Faucon.
-- Also available without Af... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Sauromugue_Champaign/mobs/Tabar_Beak.lua | 3 | 1037 | -----------------------------------
-- Area: Sauromugue Champaign
-- MOB: Tabar Beak
-----------------------------------
require("scripts/globals/fieldsofvalor");
require("scripts/zones/Sauromugue_Champaign/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
function onMo... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Buburimu_Peninsula/npcs/Stone_Monument.lua | 3 | 1303 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Stone Monument
-- Involved in quest "An Explorer's Footsteps"
-- !pos 320.755 -4.000 368.722 118
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require(... | gpl-3.0 |
telergybot/zspam | 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 |
pedro-andrade-inpe/terrame | test/packages/load-wrong/tests/Tube.lua | 30 | 1562 | -------------------------------------------------------------------------------------------
-- TerraME - a software platform for multiple scale spatially-explicit dynamic modeling.
-- Copyright (C) 2001-2014 INPE and TerraLAB/UFOP.
--
-- This code is part of the TerraME framework.
-- This framework is free software; yo... | lgpl-3.0 |
gedads/Neodynamis | scripts/globals/mobskills/chemical_bomb.lua | 5 | 1128 | ---------------------------------------------
-- Chemical_Bomb
--
-- Description: slow + elegy
---------------------------------------------
require("scripts/globals/monstertpmoves");
require("scripts/globals/settings");
require("scripts/globals/status");
---------------------------------------------
function onMobSki... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Port_Bastok/npcs/HomePoint#3.lua | 3 | 1252 | -----------------------------------
-- Area: Port_Bastok
-- NPC: HomePoint#3
-- !pos -126 -6 10 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Port_Bastok/TextIDs");
require("scripts/globals/homepoint");
... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Beadeaux/npcs/Haggleblix.lua | 3 | 7234 | -----------------------------------
-- Area: Beadeaux
-- NPC: Haggleblix
-- Type: Dynamis NPC
-- !pos -255.847 0.595 106.485 147
-----------------------------------
package.loaded["scripts/zones/Beadeaux/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/glob... | gpl-3.0 |
canhnt/ingress | rootfs/etc/nginx/lua/util/split.lua | 2 | 1955 | local ipairs = ipairs
local _M = {}
-- splits strings into host and port
local function parse_addr(addr)
local _, _, host, port = addr:find("([^:]+):([^:]+)")
if host and port then
return {host=host, port=port}
else
return nil, "error in parsing upstream address!"
end
end
function _M.get_first_value(... | apache-2.0 |
starlightknight/darkstar | scripts/globals/items/bowl_of_sopa_de_pez_blanco.lua | 11 | 1259 | -----------------------------------------
-- ID: 4601
-- Item: Bowl of Sopa de Pez Blanco
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 12
-- Dexterity 6
-- Mind -4
-- Accuracy 3
-- Ranged ACC % 7
-- Ranged ACC Cap 10
-----------------------------------------
require("scripts/glo... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Metalworks/npcs/Glarociquet_TK.lua | 3 | 2890 | -----------------------------------
-- Area: Metalworks
-- NPC: Glarociquet, T.K.
-- !pos 19 -16 -28 237
-- X Grant Signet
-- X Recharge Emperor Band, Empress Band, or Chariot Band
-- X Accepts traded Crystals to fill up the Rank bar to open new Missions.
-- X Sells items in exchange for Conquest Points
-- X Start Sup... | gpl-3.0 |
Amorph/premake-stable | tests/actions/make/test_make_pch.lua | 1 | 1860 | --
-- tests/actions/make/test_make_pch.lua
-- Validate the setup for precompiled headers in makefiles.
-- Copyright (c) 2010 Jason Perkins and the Premake project
--
T.make_pch = { }
local suite = T.make_pch
local _ = premake.make.cpp
--
-- Setup and teardown
--
local sln, prj, cfg
function suite.setup()
sl... | bsd-3-clause |
dimitarcl/premake-dev | tests/base/test_override.lua | 18 | 1484 | --
-- tests/base/test_override.lua
-- Verify function override support.
-- Copyright (c) 2012 Jason Perkins and the Premake project
--
T.premake_override = {}
local suite = T.premake_override
--
-- Setup
--
local X = {}
function suite.setup()
X.testfunc = function(value)
return value or "testfunc"
end
... | bsd-3-clause |
gedads/Neodynamis | scripts/zones/Silver_Sea_route_to_Nashmau/Zone.lua | 17 | 1405 | -----------------------------------
--
-- Zone: Silver_Sea_route_to_Nashmau
--
-----------------------------------
package.loaded["scripts/zones/Silver_Sea_route_to_Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Silver_Sea_route_to_Nashmau/TextIDs");
require("scripts/globals/sett... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Horlais_Peak/bcnms/shooting_fish.lua | 9 | 1062 | -----------------------------------
-- Shooting Fish
-- Horlais Peak BCNM20, Cloudy Orb
-- !additem 1551
-----------------------------------
require("scripts/globals/battlefield")
-----------------------------------
function onBattlefieldInitialise(battlefield)
battlefield:setLocalVar("loot", 1)
end
function onBa... | gpl-3.0 |
Achain-Dev/Achain | src/Chain/libraries/glua/tests_lua/test_too_many_localvars.lua | 1 | 1408 | local M = {}
function M:init()
end
function M:start()
local a0
local a1
local a2
local a3
local a4
local a5
local a6
local a7
local a8
local a9
local a10
local a11
local a12
local a13
local a14
local a15
local a16
local a17
local a18
local a19
local a20
local a21
local a22
local a23
local a24
local a25
local a26
loc... | mit |
gedads/Neodynamis | scripts/zones/LaLoff_Amphitheater/bcnms/ark_angels_4.lua | 2 | 3588 | -----------------------------------
-- Area: LaLoff Amphitheater
-- Name: Ark Angels 4 (Elvaan)
-----------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
require("scripts/globals/missi... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Temenos/mobs/Goblin_Fencer.lua | 28 | 1132 | -----------------------------------
-- Area: Temenos N T
-- NPC: Goblin_Fencer
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-------------------------------... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Grand_Palace_of_HuXzoi/npcs/_iyc.lua | 3 | 1036 | -----------------------------------
-- Area: Grand Palace of Hu'Xzoi
-- NPC: Particle Gate
-- !pos -39 0 -319 34
-----------------------------------
package.loaded["scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Grand_Palace_of_HuXzoi/TextIDs");
---... | gpl-3.0 |
dimitarcl/premake-dev | tests/actions/vstudio/vc200x/test_compiler_block.lua | 1 | 12572 | --
-- tests/actions/vstudio/vc200x/test_compiler_block.lua
-- Validate generation the VCCLCompiler element in Visual Studio 200x C/C++ projects.
-- Copyright (c) 2011-2013 Jason Perkins and the Premake project
--
local suite = test.declare("vs200x_compiler_block")
local vc200x = premake.vstudio.vc200x
--... | bsd-3-clause |
gedads/Neodynamis | scripts/zones/Port_San_dOria/npcs/HomePoint#1.lua | 3 | 1272 | -----------------------------------
-- Area: Port San dOria
-- NPC: HomePoint#1
-- !pos -67.963 -4.000 -105.023 232
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Port_San_dOria/TextIDs");
require("scripts/... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/items/serving_of_mille-feuille.lua | 11 | 1191 | -----------------------------------------
-- ID: 5559
-- Item: Serving of Mille Feuille
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +8
-- MP +15
-- Intelligence +1
-- HP Recoverd while healing 1
-- MP Recovered while healing 1
----------------------------------... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.