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 |
|---|---|---|---|---|---|
pakozm/april-ann | packages/basics/cmdOpt/lua_src/cmdOpt.lua | 3 | 13490 | -- See the test file for details
-- A cmdOpt object is created and two main methods can be used:
-- - Generate help message
-- - parse arguments, which returns string (error) or a table
-- There are short (1 letter) and long options
-- The following formats are accepted:
-- -c if c does not require arguments
-- -cde... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/army_biscuit.lua | 12 | 1241 | -----------------------------------------
-- ID: 5657
-- Item: army_biscuit
-- Food Effect: 5Min?, All Races
-----------------------------------------
-- HP Recovered While Healing 3
-- MP Recovered While Healing 3
-----------------------------------------
require("scripts/globals/status");
--------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/North_Gustaberg/TextIDs.lua | 7 | 1306 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED_TWICE = 6559; -- You cannot obtain the item <item>.
ITEM_CANNOT_BE_OBTAINED = 6560; -- You cannot obtain the item <item>. Come back after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 6564; -- You cannot obtain the #. Try tr... | gpl-3.0 |
pakozm/april-ann | packages/imaging/libpng/package.lua | 2 | 1113 | package{ name = "libpng",
version = "1.0",
depends = { "Image", "ImageIO", "util", "aprilio" },
pkgconfig_depends = { "libpng" },
keywords = { "libpng" },
description = "loads and saves PNG images",
-- targets como en ant
target{
name = "init",
mkdir{ dir = "build" },
mkdir{ dir = "... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Rolanberry_Fields_[S]/npcs/Cavernous_Maw.lua | 27 | 2142 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: Cavernous Maw
-- @pos -198 8 360 91
-- Teleports Players to Rolanberry Fields
-----------------------------------
package.loaded["scripts/zones/Rolanberry_Fields_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
nsimplex/wicker | game/topology/common.lua | 6 | 5701 | --[[
-- Information about the world topology.
--]]
local Lambda = wickerrequire "paradigms.functional"
local GameCommon = wickerrequire "game.common"
local rooms = require "map/rooms"
local levels = require "map/levels"
--[[
-- Keys in the return value of "map/levels" corresponding to arrays of levels.
--]]
local... | gpl-2.0 |
ThomasWitte/dynasmgb | dynasm/dasm_arm.lua | 60 | 34483 | ------------------------------------------------------------------------------
-- DynASM ARM module.
--
-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _in... | gpl-3.0 |
emoon/wrui | bin/macosx/tundra/scripts/tundra/buildfile.lua | 28 | 7600 | module(..., package.seeall)
local util = require "tundra.util"
local native = require "tundra.native"
local function mk_defvariant(name)
return { Name = name; Options = {} }
end
local default_variants = {
mk_defvariant "debug",
mk_defvariant "production",
mk_defvariant "release"
}
local default_subvariant... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Windurst_Woods/npcs/Anillah.lua | 53 | 1829 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Anillah
-- Type: Clothcraft Image Support
-- @pos -34.800 -2.25 -119.950 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requ... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Davoi/npcs/_45h.lua | 9 | 2286 | -----------------------------------
-- Area: Davoi
-- NPC: Howling Pond
-- Used In Quest: Whence Blows the Wind
-- @pos 21 0.1 -258 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/glo... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Quicksand_Caves/npcs/qm6.lua | 27 | 2110 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: ??? (qm6)
-- Bastok Mission 8.1 "The Chains That Bind Us"
-- @pos
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("s... | gpl-3.0 |
Onahail/iQueue | game/dota_addons/iQueue/scripts/vscripts/iQueue_BuildingQueue.lua | 1 | 5282 | MAX_BUILDING_QUEUE = 6
BUILDING_THINK = 0.01
if BuildingQueue == nil then
print ('[BUILDINGQUEUE] creating BuildingQueue')
_G.BuildingQueue = class({})
end
function BuildingQueue:InitializeBuildingEntity( building )
local owner = building:GetOwner()
if FindUnitLabel(building, "CanRally") then
RallyPoints:... | apache-2.0 |
manuel-m/safe | mmsdk.lua | 1 | 9246 | #!./libs/lua-5.2.2/src/lua
-- mm sdk tools
-- [mmerr] --------------------------------------------------------------------
mmerrs={
missing_config="missing configuration file",
missing_argument="missing argument",
missing_api_m="missing api meta",
missing_api_m_dirname="missing api meta dirname",
missing_ap... | bsd-2-clause |
bmscoordinators/FFXI-Server | scripts/zones/The_Eldieme_Necropolis/npcs/_5fc.lua | 2 | 1248 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Titan's Gate
-- @pos 260 -34 -71 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs");
requir... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Southern_San_dOria/npcs/Meuneille.lua | 5 | 1991 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Meuneille
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/chocobo");
require("scripts/globals/status");
------------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Crawlers_Nest/npcs/qm11.lua | 57 | 2120 | -----------------------------------
-- Area: Crawlers' Nest
-- NPC: qm11 (??? - Exoray Mold Crumbs)
-- Involved in Quest: In Defiant Challenge
-- @pos 98.081 -38.75 -181.198 197
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Port_Jeuno/npcs/Digaga.lua | 14 | 1039 | ----------------------------------
-- Area: Port Jeuno
-- NPC: Digaga
-- Type: Item Deliverer
-- @zone 246
-- @pos -52.865 7.999 1.134
--
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
require("scripts/zones/Port_Jeuno/TextIDs");
-------------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Spire_of_Mea/npcs/_0l0.lua | 22 | 1502 | -----------------------------------
-- Area: Spire of Mea
-- NPC: Web of Recollection
-----------------------------------
package.loaded["scripts/zones/Spire_of_Mea/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/quests");
require("scripts/globals/mission... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Beadeaux/npcs/qm2.lua | 27 | 1444 | --------------------------
-- Area: Beadeaux
-- NPC: ??? (qm2)
-- Type: Quest NPC
-- @pos -79 1 -99 147
--------------------------
package.loaded["scripts/zones/Beadeaux/TextIDs"] = nil;
--------------------------
require("scripts/zones/Beadeaux/TextIDs");
require("scripts/globals/keyitems");
require("scripts/globals/... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Port_Jeuno/npcs/Zona_Shodhun.lua | 26 | 4283 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Zona Shodhun
-- Starts and Finishes Quest: Pretty Little Things
-- @zone 246
-- @pos -175 -5 -4
-----------------------------------
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop");
require("scripts... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/mobskills/nerve_gas.lua | 28 | 1063 | ---------------------------------------------
-- Nerve Gas
--
-- Description: Inflicts curse and powerful poison effect.
-- Type: Magical
-- Wipes Shadows
-- Range: 10' Radial
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/glob... | gpl-3.0 |
Mikea15/gamecode4 | Assets/Scripts/LevelPostInit.lua | 44 | 1877 | --========================================================================
-- ActorManager.lua : Executed after initializing the level
--
-- Part of the GameCode4 Application
--
-- GameCode4 is the sample application that encapsulates much of the source code
-- discussed in "Game Coding Complete - 4th Edition" by... | lgpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Windurst_Waters/npcs/Orn.lua | 14 | 1728 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Orn
-- @pos -68 -9 30 238
-----------------------------------
require("scripts/globals/settings");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------... | gpl-3.0 |
wingo/snabb | src/program/snabbnfv/fuzz/fuzz.lua | 3 | 5188 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(...,package.seeall)
local lib = require("core.lib")
local usage = require("program.snabbnfv.fuzz.README_inc")
function run (args)
if #args ~= 2 then print(usage) main.exit(1) end
local spec_path, output_path = unpack(args)
... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Stellar_Fulcrum/npcs/_4z0.lua | 14 | 1643 | -----------------------------------
-- Area: Stellar Fulcrum
-- Door: Qe'Lov Gate
-- @pos -520 -4 17 179
-------------------------------------
package.loaded["scripts/zones/Stellar_Fulcrum/TextIDs"] = nil;
package.loaded["scripts/globals/bcnm"] = nil;
-------------------------------------
require("scripts/globals/bcnm... | gpl-3.0 |
diamondo25/Vana | scripts/npcs/gachapon1.lua | 2 | 14634 | --[[
Copyright (C) 2008-2016 Vana Development 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; version 2
of the License.
This program is distributed in the hope that it will be useful,
but WITHO... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Port_San_dOria/npcs/Solgierte.lua | 17 | 1402 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Solgierte
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_San_dOria/TextIDs");
require("scripts/globals/quests");
-... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/fuscina.lua | 41 | 1095 | -----------------------------------------
-- ID: 18104
-- Item: Fuscina
-- Additional Effect: Lightning Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-------------------------------... | gpl-3.0 |
Snider-tech-club/Tank-game | game.love/HC/vector-light.lua | 30 | 3067 | --[[
Copyright (c) 2012 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, distribu... | gpl-3.0 |
BooM-amour/FUCKER | plugins/invite.lua | 1111 | 1195 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
sini370/sini370xy | plugins/invite.lua | 1111 | 1195 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
pastukhov/fishy-wifi | doodles/read_i2c_adc.lua | 2 | 1101 | -- This code is GPL v3 by gareth@l0l.org.uk
-- blah blah blah standard licence conditions apply blah blah blah
-- Special hat-tip to sancho and ryan amongst many others
-- Reads value of MCP3221 I2C ADC
-- As used on minipH project by Sparky's Widgets
id=0 -- need this to identify (software) IC2 bus?
io_pin= {[0]=3,[... | agpl-3.0 |
nsimplex/wicker | kernel_extensions/dst_abstraction/pseudoutils.lua | 6 | 6338 | -----
--[[ Wicker ]] VERSION="3.0"
--
-- Last updated: 2013-11-29
-----
--[[
Copyright (C) 2013 simplex
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your ... | gpl-2.0 |
cypherkey/AvorionMission | lib/story/ai.lua | 1 | 3661 | package.path = package.path .. ";data/scripts/lib/?.lua"
package.path = package.path .. ";data/scripts/?.lua"
require ("randomext")
require ("utility")
require ("stringutility")
TurretGenerator = require ("turretgenerator")
ShipUtility = require ("shiputility")
local AI = {}
function AI.getFaction()
local faction... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/quus.lua | 12 | 1319 | -----------------------------------------
-- ID: 5793
-- Item: quus
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
--------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Mamook/Zone.lua | 27 | 1246 | -----------------------------------
--
-- Zone: Mamook (65)
--
-----------------------------------
package.loaded["scripts/zones/Mamook/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Mamook/TextIDs");
-----------------------------------
-- onInitialize... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Western_Adoulin/npcs/Dewalt.lua | 14 | 2104 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Dewalt
-- Type: Standard NPC and Quest NPC
-- Involved with Quests: 'Flavors of our Lives'
-- 'Dont Ever Leaf Me'
-- @zone 256
-- @pos -23 0 28 256
-----------------------------------
require("scripts/globals/quests");
--... | gpl-3.0 |
storevpsnet/SV | libs/lua-redis.lua | 580 | 35599 | local redis = {
_VERSION = 'redis-lua 2.0.4',
_DESCRIPTION = 'A Lua client library for the redis key value storage system.',
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri',
}
-- The following line is used for backwards compatibility in order to keep the `Redis`
-- global module name. Using... | gpl-3.0 |
nerai/OpenRA | lua/sandbox.lua | 84 | 5098 | local sandbox = {
_VERSION = "sandbox 0.5",
_DESCRIPTION = "A pure-lua solution for running untrusted Lua code.",
_URL = "https://github.com/kikito/sandbox.lua",
_LICENSE = [[
MIT LICENSE
Copyright (c) 2013 Enrique García Cota
Permission is hereby granted, free of charge, to an... | gpl-3.0 |
MapQuest/osm2pgsql | tests/test_output_multi_tags.lua | 13 | 1113 | function drop_all (...)
return 1, {}
end
function test_nodes_1 (kv, num_tags)
if kv["foo"] then
tags = {}
tags["bar"] = kv["foo"]
return 0, tags
else
return 1, {}
end
end
function test_nodes_2 (kv, num_tags)
if kv["foo"] then
tags = {}
tags["baz"] = kv["foo"]
return 0, tags
els... | gpl-2.0 |
opentomb/OpenTomb | scripts/level/tr4/ALEXHUB.lua | 3 | 3963 | -- OPENTOMB LEVEL SCRIPT
-- FOR TOMB RAIDER 4, ALEXHUB
print("Level script loaded (ALEXHUB.lua)");
level_PostLoad = function()
addCharacterHair(player, getHairSetup(HAIR_TR4_OLD));
playStream(110);
end;
level_PreLoad = function()
-- STATIC COLLISION FLAGS -------------------------------------------------... | lgpl-3.0 |
lapayx/tsdemuxer | xupnpd/src/plugins/xupnpd_ivi.lua | 6 | 5583 | -- Copyright (C) 2011-2013 Anton Burdinuk
-- clark15b@gmail.com
-- https://tsdemuxer.googlecode.com/svn/trunk/xupnpd
-- MP4-lo
-- MP4-hi
cfg.ivi_fmt='MP4-hi'
cfg.ivi_video_count=100
-- genre:
-- arthouse, boeviki, voennye, detective, detskiy, documentary, drama, comedy, korotkometrazhki, melodramy, zolotaya_klassika,... | mit |
MinetestForFun/minetest-minetestforfun-server | mods/unified_inventory/item_names.lua | 8 | 1536 | -- Based on 4itemnames mod by 4aiman
local wield = {}
local huds = {}
local dtimes = {}
local dlimit = 3 -- HUD element will be hidden after this many seconds
local air_hud_mod = minetest.get_modpath("4air")
local hud_mod = minetest.get_modpath("hud")
local hudbars_mod = minetest.get_modpath("hudbars")
local functio... | unlicense |
opentomb/OpenTomb | scripts/entity/entity_functions_switch.lua | 2 | 22431 | -- OPENTOMB ADDITIONAL SWITCH SCRIPT
-- by TeslaRus, Lwmte - May 2014
--------------------------------------------------------------------------------
-- Switch script is used to define switch entity begaviour, which assigns
-- certain Lara's animations to them. Note that switch entities includes not
-- only switches,... | lgpl-3.0 |
ibawt/ev | vendor/lua/busted/languages/nl.lua | 15 | 1285 | local s = require('say')
s:set_namespace('nl')
-- 'Pending: test.lua @ 12 \n description
s:set('output.pending', 'Hangend')
s:set('output.failure', 'Mislukt')
s:set('output.success', 'Succes')
s:set('output.pending_plural', 'hangenden')
s:set('output.failure_plural', 'mislukkingen')
s:set('output.success_plural', 's... | mit |
notcake/gooey | lua/gooey/ui/savecontroller.lua | 1 | 1397 | local self = {}
Gooey.SaveController = Gooey.MakeConstructor (self, Gooey.ButtonController)
--[[
Events:
CanSaveChanged (canSave)
Fired when the save command has been enabled or disabled.
]]
function self:ctor (savable)
self.Savable = nil
self:RegisterAction ("Save", "CanSaveChanged")
-- Ev... | gpl-3.0 |
icebreaker/premake-dev | tests/actions/vstudio/test_vs2010_vcxproj.lua | 2 | 12817 | T.vs2010_vcxproj = { }
local vs10_vcxproj = T.vs2010_vcxproj
local include_directory = "bar/foo"
local include_directory2 = "baz/foo"
local debug_define = "I_AM_ALIVE_NUMBER_FIVE"
local vc2010 = premake.vstudio.vc2010
local sln, prj
function vs10_vcxproj.teardown()
sln = nil
prj = nil
end
function vs10_v... | bsd-3-clause |
cega/papercrop | nmake.lua | 15 | 2612 | require('mylib')
function detectVC()
local VC8_path="c:\\Program Files\\Microsoft Visual Studio 8"
local VC9_path="c:\\Program Files\\Microsoft Visual Studio 9.0"
if os.isFileExist(VC8_path.."\\readme.htm") then
print("VC8 detected")
devenvExe=VC8_path.."\\Common7\\IDE\\devenv.com"
setVa... | gpl-2.0 |
RomeroMalaquias/luv | tests/manual-test-cluster.lua | 12 | 5839 | -- This is quite the involved test. Basically it binds
-- to a tcp port, spawns n children (one per CPU core)
-- who all listen on the same shared port and act as a
-- load balancing cluster.
-- Then N clients are spawned that connect to the cluster
-- The application itself kills the worker upon connection
-- All N w... | apache-2.0 |
oregamikiller/cocos2dPod | cocos/scripting/lua-bindings/auto/api/ProgressTo.lua | 8 | 2076 |
--------------------------------
-- @module ProgressTo
-- @extend ActionInterval
-- @parent_module cc
--------------------------------
-- brief Initializes with a duration and destination percentage. <br>
-- param duration Specify the duration of the ProgressTo action. It's a value in seconds.<br>
-- param percent Sp... | mit |
Midiman/Verde | libs/dominatrix/elements/textinput.lua | 1 | 3997 | local path = (...):gsub('%.[^%.]+$', '')
local new_path = path:gsub("%.", "/")
local Class = require(path..".thirdparty.hump.class")
local Text = assert(love.filesystem.load(new_path.."elements/text.lua"))(path)
local Input = Class {}
Input:include(Text)
function Input:init(element, parent, gui)
Text.i... | mit |
oregamikiller/cocos2dPod | cocos/scripting/lua-bindings/auto/api/SpotLight.lua | 4 | 3722 |
--------------------------------
-- @module SpotLight
-- @extend BaseLight
-- @parent_module cc
--------------------------------
-- Returns the range of point or spot light.<br>
-- return The range of the point or spot light.
-- @function [parent=#SpotLight] getRange
-- @param self
-- @return float#float ret (return... | mit |
MinetestForFun/minetest-minetestforfun-server | mods/snow/src/falling_snow.lua | 9 | 7026 | --[[
--=================
--======================================
LazyJ's Fork of Splizard's "Snow" Mod
by LazyJ
version: Umpteen and 7/5ths something or another.
2014_04_12
--======================================
--=================
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
THE LIST OF CHANGES I'VE MADE
~~~~~~~~~~~~~~~~~~... | unlicense |
drunklurker/wesnoth | data/ai/micro_ais/cas/ca_zone_guardian.lua | 26 | 5275 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local LS = wesnoth.require "lua/location_set.lua"
local function get_guardian(cfg)
local filter = cfg.filter or { id = cfg.id }
local guardian = AH.get_units_with_moves {
side = wesnoth.current.side,
{ ... | gpl-2.0 |
Zaratusa/gmod_stuff | gamemodes/terrortown/entities/entities/ttt_juggernaut_suit/cl_init.lua | 2 | 1622 | -- author "Zaratusa"
-- contact "http://steamcommunity.com/profiles/76561198032479768"
-- co-author :"FloTurtle"
-- contact "https://steamcommunity.com/profiles/76561198114511249"
include('shared.lua')
LANG.AddToLanguage("english", "juggernaut_suit_name", "Juggernaut Suit")
LANG.AddToLanguage("english", "juggernaut_... | gpl-3.0 |
npge/lua-npge | spec/util/binary_search_spec.lua | 2 | 1543 | -- lua-npge, Nucleotide PanGenome explorer (Lua module)
-- Copyright (C) 2014-2016 Boris Nagaev
-- See the LICENSE file for terms of use.
local binary_search = require 'npge.util.binary_search'
describe("npge.util.binary_search", function()
it("checks that binary search works (lower)", function()
local lo... | mit |
dev-osrose/osIROSE-new | scripts/npcs/ai/[ferrell_guild_staff]_charrs.lua | 2 | 1071 | registerNpc(1110, {
walk_speed = 0,
run_speed = 0,
scale = 120,
r_weapon = 0,
l_weapon = 0,
level = 10,
hp = 100,
attack = 100,
hit = 100,
def = 100,
res = 100,
avoid ... | apache-2.0 |
neftalimich/YGOProAIDecks | ai/decks/ZoodiacBeast.lua | 1 | 66239 | function ZoodiacBeastStartup(deck)
print("ZoodiacBeast v2.0.2 by neftalimich.")
deck.Init = ZoodiacBeastInit
deck.Card = ZoodiacBeastCard
deck.Chain = ZoodiacBeastChain
deck.EffectYesNo = ZoodiacBeastEffectYesNo
deck.YesNo = ZoodiacBeastYesNo
deck.Position = ZoodiacBeastPosition
deck.... | mit |
mrbangi/bangii | plugins/boobs.lua | 731 | 1601 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
dani-sj/dashmahan | bot/creedbot.lua | 1 | 15647 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '1.0'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
retu... | gpl-2.0 |
dev-osrose/osIROSE-new | scripts/mobs/ai/fighter_clown.lua | 2 | 1072 | registerNpc(183, {
walk_speed = 170,
run_speed = 700,
scale = 115,
r_weapon = 1015,
l_weapon = 0,
level = 52,
hp = 31,
attack = 243,
hit = 124,
def = 128,
res = 104,
avoid... | apache-2.0 |
oregamikiller/cocos2dPod | external/lua/luasocket/script/socket/headers.lua | 31 | 3706 | -----------------------------------------------------------------------------
-- Canonic header field capitalization
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
local socket = require("socket.socket")
socket.headers = {}
local _M = socket.he... | mit |
ibawt/ev | vendor/lua/pl/app.lua | 8 | 5787 | --- Application support functions.
-- See @{01-introduction.md.Application_Support|the Guide}
--
-- Dependencies: `pl.utils`, `pl.path`
-- @module pl.app
local io,package,require = _G.io, _G.package, _G.require
local utils = require 'pl.utils'
local path = require 'pl.path'
local app = {}
local function check_script... | mit |
blackyang/neural-style | loadcaffe_wrapper.lua | 58 | 2411 | local ffi = require 'ffi'
require 'loadcaffe'
local C = loadcaffe.C
--[[
Most of this function is copied from
https://github.com/szagoruyko/loadcaffe/blob/master/loadcaffe.lua
with some horrible horrible hacks added by Justin Johnson to
make it possible to load VGG-19 without any CUDA dependency.
--]]
local fu... | mit |
alikingambav/archer3 | plugins/dl.lua | 13 | 2345 | local function run(msg, matches)
if matches[1] == "dl" then
local file = matches[2]
if is_sudo(msg) then -- sudo only
local receiver = get_receiver(msg)
send_document(receiver, "./data/files/"..file, ok_cb, false)
end
end
end
return {
patterns = {
"^[!/](dl) (.*)$"
},
run = run
}
... | gpl-2.0 |
Sxcret/FrenchRP | gamemode/modules/base/sv_data.lua | 1 | 18017 | /*---------------------------------------------------------------------------
Functions and variables
---------------------------------------------------------------------------*/
local setUpNonOwnableDoors,
setUpTeamOwnableDoors,
setUpGroupDoors,
migrateDB
/*-----------------------------------------------... | mit |
drunklurker/wesnoth | host.lua | 26 | 2733 | -- host.lua --
-- Try to host a game called "Test"
local function plugin()
local function log(text)
std_print("host: " .. text)
end
local counter = 0
local events, context, info
local helper = wesnoth.require("lua/helper.lua")
local function idle_text(text)
counter = counter + 1
if counter... | gpl-2.0 |
oregamikiller/cocos2dPod | cocos/scripting/lua-bindings/auto/api/MoveTo.lua | 11 | 1337 |
--------------------------------
-- @module MoveTo
-- @extend MoveBy
-- @parent_module cc
--------------------------------
-- @overload self, float, vec3_table
-- @overload self, float, vec2_table
-- @function [parent=#MoveTo] initWithDuration
-- @param self
-- @param #float duration
-- @param #vec2... | mit |
rsjaffe/MIDI2LR | src/plugin/LaunchServer.lua | 1 | 1439 | --[[----------------------------------------------------------------------------
LaunchServer.lua
Launches the app
This file is part of MIDI2LR. Copyright 2015 by Rory Jaffe.
MIDI2LR 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 ... | gpl-3.0 |
ddimon/cap | plugins/expire.lua | 1 | 1875 | local filename='data/remind.lua'
local cronned = load_from_file(filename)
local function save_cron(msg, text,date)
local origin = get_receiver(msg)
if not cronned[date] then
cronned[date] = {}
end
local arr = { origin, text } ;
table.insert(cronned[date], arr)
serialize_to_file(cronned, filename)
re... | gpl-2.0 |
Sxcret/FrenchRP | gamemode/entities/entities/spawned_shipment/init.lua | 1 | 6586 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
include("commands.lua")
util.AddNetworkString("FrenchRP_shipmentSpawn")
function ENT:Initialize()
local contents = CustomShipments[self:Getcontents() or ""]
self.Destructed = false
self:SetModel(contents and contents.shipmodel ... | mit |
joecridge/Jeo | hammerspoon/symbol.lua | 1 | 2154 | return {
['1'] = { key = '1', alt = false, shift = false },
['2'] = { key = '2', alt = false, shift = false },
['3'] = { key = '3', alt = false, shift = false },
['4'] = { key = '4', alt = false, shift = false },
['5'] = { key = '5', alt = false, shift = false },
['6'] = { key = '6', alt = false, shift = fa... | unlicense |
notcake/gooey | lua/gooey/ui/controls.lua | 1 | 5301 | Gooey.UI = {}
-- Fonts
include ("fonts.lua")
-- Layout
include ("layout/orientation.lua")
include ("layout/horizontalalignment.lua")
include ("layout/verticalalignment.lua")
include ("layout/sizingmethod.lua")
include ("sortorder.lua")
include ("splitcontainerpanel.lua")
-- Images
include ("imagecach... | gpl-3.0 |
mrbangi/bangii | plugins/img_google.lua | 660 | 3196 | do
local mime = require("mime")
local google_config = load_from_file('data/google.lua')
local cache = {}
--[[
local function send_request(url)
local t = {}
local options = {
url = url,
sink = ltn12.sink.table(t),
method = "GET"
}
local a, code, headers, status = http.request(options)
return tabl... | gpl-2.0 |
icebreaker/premake-dev | src/_manifest.lua | 2 | 1983 | --
-- _manifest.lua
-- Manage the list of built-in Premake scripts.
-- Copyright (c) 2002-2011 Jason Perkins and the Premake project
--
-- The master list of built-in scripts. Order is important! If you want to
-- build a new script into Premake, add it to this list.
return
{
-- core files
"base/os.lua",
"bas... | bsd-3-clause |
Sxcret/FrenchRP | gamemode/modules/voting/cl_voting.lua | 1 | 6972 | local QuestionVGUI = {}
local PanelNum = 0
local VoteVGUI = {}
local function MsgDoVote(msg)
local _, chatY = chat.GetChatBoxPos()
local question = msg:ReadString()
local voteid = msg:ReadShort()
local timeleft = msg:ReadFloat()
if timeleft == 0 then
timeleft = 100
end
local OldTime... | mit |
4aiman/ethereal | mapgen_v7l.lua | 1 | 17450 | -- Disable Ridges (NOTE: changed sidelen from 16 to 80 in all decoration)
minetest.register_on_mapgen_init(function(mapgen_params)
mapgen_params.flags = "nov7_ridges"
minetest.set_mapgen_params(mapgen_params)
end)
-- Warm Biome
minetest.register_biome({
name = "clay",
node_top = "defau... | gpl-3.0 |
npge/lua-npge | spec/alignment/align_rows_spec.lua | 2 | 9894 | -- lua-npge, Nucleotide PanGenome explorer (Lua module)
-- Copyright (C) 2014-2016 Boris Nagaev
-- See the LICENSE file for terms of use.
describe("npge.alignment.alignRows", function()
it("align multiple rows (simple)", function()
local f = require 'npge.alignment.alignRows'
assert.same(f({"ATGC"}... | mit |
kusk356/fucktion | plugins/webshot.lua | 919 | 1473 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
kusk356/fucktion | plugins/time.lua | 771 | 2865 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
MinetestForFun/minetest-minetestforfun-server | mods/sea/seastonebrick/init.lua | 3 | 5122 | --------
-- NODES
--------
minetest.register_node("seastonebrick:seastonebrick", {
description = "Seastone brick",
tiles = {"seastonebrick_seastonebrick.png"},
is_ground_content = true,
groups = {cracky=2, stone=1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("seastonebrick:seastoneb... | unlicense |
icebreaker/premake-dev | tests/actions/vstudio/sln2005/dependencies.lua | 2 | 1592 | --
-- tests/actions/vstudio/sln2005/dependencies.lua
-- Validate generation of Visual Studio 2005+ solution project dependencies.
-- Copyright (c) 2009-2011 Jason Perkins and the Premake project
--
T.vstudio_sln2005_dependencies = { }
local suite = T.vstudio_sln2005_dependencies
local sln2005 = premake.vstu... | bsd-3-clause |
PurgePJ/VouchBot | deps/discordia/libs/utils/Color.lua | 1 | 4994 | local class = require('class')
local format = string.format
local min, max, abs, floor = math.min, math.max, math.abs, math.floor
local lshift, rshift = bit.lshift, bit.rshift
local band, bor = bit.band, bit.bor
local bnot = bit.bnot
local isInstance = class.isInstance
local Color, get = class('Color')
lo... | gpl-3.0 |
PurgePJ/VouchBot | deps/docgen.lua | 2 | 4222 | require('./discordia')
local fs = require('fs')
local path = '../Discordia.wiki/classes'
fs.mkdirSync(path)
local classes = class.__classes
local open = io.open
local max = math.max
local floor, ceil = math.floor, math.ceil
local insert, sort = table.insert, table.sort
local f, rep, upper = string.format, string.rep... | gpl-3.0 |
tgcloner/how- | plugins/stats.lua | 866 | 4001 | 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 |
Fiskehatt/SaySapped_Extended | SaySapped.lua | 1 | 5565 |
--[[
SaySapped: Says "Sapped!" when you get sapped allowing you to notify nearby players about it.
Also works for many other CCs.
Author: Coax - Nostalrius PvP
Original idea: Bitbyte of Icecrown
--]]
--[[
version 1.1: new CCs, simplified the code a bit, timer for "rogue on me" alert
version 1.0: release
--]]
... | mit |
APItools/middleware | middleware/measure-x-ratelimit-remaining/measure_x_ratelimit_remaining_spec.lua | 1 | 1698 | local spec = require 'spec.spec'
describe('measure_x_ratelimiting_remaining', function()
local rate
before_each(function()
rate = spec.middleware('measure-x-ratelimit-remaining/measure_x_ratelimit_remaining.lua')
end)
describe('when a response does not have the required headers', function()
it('does n... | mit |
i-z/cocos2d-x-samples | samples/FantasyWarrior3D/src/HPCounter.lua | 8 | 2969 | local HPCounter = class("HPCounter",function()
return cc.Node:create()
end)
function HPCounter:create()
self._isBlooding = false
self._num = 0
return HPCounter.new()
end
function HPCounter:showBloodLossNum(damage,actor,attack)
local time = 1
local function getRandomXYZ()
local rand_x =... | mit |
motangish/OpenComputers | MGOS/OS/Desktop/Random.bapp/Random.lua | 1 | 1146 | local bapi = require("BAPI")
local gpu = require("BGPU")
local min, max = 1, 1000000
local x, y = bapi.getCenterOfScreen(40, 9)
local function minChanged(text)
if bapi.isNumber(text) then
min = text
end
end
local function maxChanged(text)
if bapi.isNumber(text) then
max = text
end
end
local function... | gpl-3.0 |
PurgePJ/VouchBot | deps/sha1/init.lua | 8 | 4499 | --[[lit-meta
name = "creationix/sha1"
version = "1.0.2"
homepage = "https://github.com/luvit/lit/blob/master/deps/sha1.lua"
description = "Pure Lua implementation of SHA1 using bitop"
authors = {
"Tim Caswell"
}
]]
-- http://csrc.nist.gov/groups/ST/toolkit/documents/Examples/SHA_All.pdf
local bit = re... | gpl-3.0 |
Sxcret/FrenchRP | gamemode/modules/fadmin/fadmin/playeractions/message/cl_init.lua | 6 | 2506 | local function MessageGui(ply)
if not FAdmin.Messages or not FAdmin.Messages.MsgTypes then return end
local frame = vgui.Create("DFrame")
frame:SetTitle("Send message")
frame:SetSize(350, 170)
frame:Center()
frame:SetVisible(true)
frame:MakePopup()
local MsgType = 2
local i = 0
... | mit |
dev-osrose/osIROSE-new | scripts/mobs/ai/astarot.lua | 2 | 1078 | registerNpc(395, {
walk_speed = 300,
run_speed = 710,
scale = 370,
r_weapon = 1055,
l_weapon = 0,
level = 145,
hp = 448,
attack = 860,
hit = 536,
def = 1173,
res = 529,
av... | apache-2.0 |
motangish/OpenComputers | MGOS/OS/Desktop/ImageGen.bapp/ImageGen.lua | 1 | 2091 | local bapi = require("BAPI")
local gpu = require("BGPU")
local image = require("BIMAGE")
local buffer = require("BBUFFER")
local w, h = gpu.getResolution()
local bc, bt, ba, min, max = 0xB5B5B5, 0, 0x1C1C1C, 0x000000, 0xFFFFFF
buffer.initialize()
local function pixelsGeneration()
for i = 1, h do
for d = 1, w d... | gpl-3.0 |
crazyhamedboy/botoliver | plugins/id.lua | 226 | 4260 | 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..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
local function returnids(cb_extra, success, result)
local re... | gpl-2.0 |
MinetestForFun/minetest-minetestforfun-server | minetestforfun_game/mods/default/furnace.lua | 6 | 8709 |
--
-- Formspecs
--
local function active_formspec(fuel_percent, item_percent)
local formspec =
"size[8,8.5]"..
default.gui_bg..
default.gui_bg_img..
default.gui_slots..
"list[current_name;src;2.75,0.5;1,1;]"..
"list[current_name;fuel;2.75,2.5;1,1;]"..
"image[2.75,1.5;1,1;default_furnace_fire_bg.png^[l... | unlicense |
Sxcret/FrenchRP | gamemode/entities/weapons/pocket/sv_init.lua | 1 | 8994 | local meta = FindMetaTable("Player")
/*---------------------------------------------------------------------------
Stubs
---------------------------------------------------------------------------*/
FrenchRP.stub{
name = "dropPocketItem",
description = "Make the player drop an item from the pocket.",
param... | mit |
gborghesan/URDriver | start.lua | 1 | 2671 |
require "rttlib"
require "rttros"
----------------------
-- get the deployer --
tc=rtt.getTC()
if tc:getName() == "lua" then
depl=tc:getPeer("Deployer")
elseif tc:getName() == "Deployer" then
depl=tc
end
rtt.setLogLevel("Warning")
--[ get convenience objects ]--
gs = gs or rtt.provides()
--tc = tc or rtt.getT... | mit |
dani-sj/dashmahan | plugins/cpu.lua | 244 | 1893 | function run_sh(msg)
name = get_name(msg)
text = ''
-- if config.sh_enabled == false then
-- text = '!sh command is disabled'
-- else
-- if is_sudo(msg) then
-- bash = msg.text:sub(4,-1)
-- text = run_bash(bash)
-- else
-- text = name .. ' you... | gpl-2.0 |
joecridge/Jeo | hammerspoon/shift.lua | 1 | 2133 | return {
['1'] = { key = '1', alt = false, shift = false },
['2'] = { key = '2', alt = false, shift = false },
['3'] = { key = '3', alt = false, shift = false },
['4'] = { key = '4', alt = false, shift = false },
['5'] = { key = '5', alt = false, shift = false },
['6'] = { key = '6', alt = false, shift = fa... | unlicense |
mattyx14/forgottenserver-1 | data/spells/scripts/party/enchant.lua | 2 | 1974 | local combat = createCombatObject()
local area = createCombatArea(AREA_CROSS5X5)
setCombatArea(combat, area)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, ... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.