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 |
|---|---|---|---|---|---|
LuaDist2/lzmq-auth | lakeconfig.lua | 8 | 4567 | local io = require "io"
io.stdout:setvbuf"no"
io.stderr:setvbuf"no"
function vc_version()
local VER = lake.compiler_version()
MSVC_VER = ({
[15] = '9';
[16] = '10';
})[VER.MAJOR] or ''
return MSVC_VER
end
if not L then
local function arkey(t)
assert(type(t) == 'table')
local keys = {}
for k in ... | mit |
benjaminwinger/Feudalciv | dependencies/tolua-5.2/src/bin/lua/function.lua | 9 | 9884 | -- tolua: function class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: function.lua,v 1.4 2009/11/24 16:45:14 fabraham Exp $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to p... | gpl-2.0 |
mardraze/prosody-modules | mod_support_contact/mod_support_contact.lua | 32 | 1757 | -- mod_support_contact.lua
--
-- Config options:
-- support_contact = "support@hostname"; -- a JID
-- support_contact_nick = "Support!"; -- roster nick
-- support_contact_group = "Users being supported!"; -- the roster group in the support contact's roster
local host = module:get_host();
local support_contact =... | mit |
jayman39tx/naev | dat/factions/equip/thurion.lua | 2 | 6287 | -- Generic equipping routines, helper functions and outfit definitions.
include("dat/factions/equip/generic.lua")
--[[
-- @brief Does thurion pilot equipping
--
-- @param p Pilot to equip
--]]
function equip( p )
-- Start with an empty ship
p:rmOutfit("all")
p:rmOutfit("cores")
-- Get ship info
loca... | gpl-3.0 |
Mr0Null/PUG-234-test-files | Scenario2/benchmarks/save.lua | 2 | 1262 | wrk.method = "POST"
wrk.body = "{\"text\":\"Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. D... | gpl-3.0 |
Mistranger/OpenRA | mods/d2k/maps/atreides-05/atreides05.lua | 5 | 16614 | HarkonnenBase = { HarkonnenConstructionYard, HarkonnenWindTrap1, HarkonnenWindTrap2, HarkonnenWindTrap3, HarkonnenWindTrap4, HarkonnenWindTrap5, HarkonnenWindTrap6, HarkonnenWindTrap7, HarkonnenWindTrap8, HarkonnenSilo1, HarkonnenSilo2, HarkonnenSilo3, HarkonnenSilo4, HarkonnenGunTurret1, HarkonnenGunTurret2, Harkonnen... | gpl-3.0 |
wangtianhang/UnityLuaTest | protoBufTest/tolua_runtime_2019-09-08/luajit-2.1/src/jit/bcsave.lua | 10 | 18503 | ----------------------------------------------------------------------------
-- LuaJIT module to save/list bytecode.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
-------------------------------------------------------------------------... | mit |
casseveritt/premake | tests/base/test_action.lua | 59 | 1366 | --
-- tests/base/test_action.lua
-- Automated test suite for the action list.
-- Copyright (c) 2009 Jason Perkins and the Premake project
--
T.action = { }
--
-- Setup/teardown
--
local fake = {
trigger = "fake",
description = "Fake action used for testing",
}
function T.action.setup()
premake.action.li... | bsd-3-clause |
cecile/Cecile_QuickLaunch | src/Cecile_QuickLaunchSpecGear/specgear.lua | 1 | 6151 | ----------------------------------------------------------------------------------------------------
-- search specgear module
--get the engine and create the module
local Engine = _G.Cecile_QuickLaunch;
--create the modules as submodule of search
local search = Engine.AddOn:GetModule("search");
local mod = search:Ne... | artistic-2.0 |
N3X15/spacebuild | lua/includes/modules/json.lua | 1 | 11892 | --[[
JSON Encoder and Parser for Lua 5.1
Copyright � 2007 Shaun Brown (http://www.chipmunkav.com).
All Rights Reserved.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software to deal in the Software without
restriction, including without limitation the rights to use, ... | apache-2.0 |
KayMD/Illarion-Content | item/food.lua | 3 | 15941 | --[[
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 |
gajop/Zero-K | gamedata/modrules.lua | 2 | 3878 | -- $Id: modrules.lua 4625 2009-05-16 13:11:14Z google frog $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: modrules.lua
-- brief: modrules definitions
--
-------------------------------... | gpl-2.0 |
litnimax/luci | modules/base/luasrc/i18n.lua | 77 | 3182 | --[[
LuCI - Internationalisation
Description:
A very minimalistic but yet effective internationalisation module
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You ... | apache-2.0 |
val-kulkov/openwrt-packages | utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/nat_traffic.lua | 79 | 1251 | local function scrape()
-- documetation about nf_conntrack:
-- https://www.frozentux.net/iptables-tutorial/chunkyhtml/x1309.html
nat_metric = metric("node_nat_traffic", "gauge" )
for e in io.lines("/proc/net/nf_conntrack") do
-- output(string.format("%s\n",e ))
local fields = space_split(e)
local ... | gpl-2.0 |
gajop/Zero-K | LuaRules/Configs/StartBoxes/Aum_1.1.lua | 6 | 4745 | local layout = {
[0] = {
boxes = {
{
{1955.5284423828, 4691.412109375},
{3044.5961914063, 4640.3276367188},
{2946.1135253906, 4585.0356445313},
{2840.8408203125, 4588.5498046875},
{2812.3791503906, 4543.7133789063},
{2801.9182128906, 4500.4814453125},
{2797.1865234375, 4446.4350585938}... | gpl-2.0 |
adib1380/create-your-anti-spam-group | plugins/rss.lua | 700 | 5434 | local function get_base_redis(id, option, extra)
local ex = ''
if option ~= nil then
ex = ex .. ':' .. option
if extra ~= nil then
ex = ex .. ':' .. extra
end
end
return 'rss:' .. id .. ex
end
local function prot_url(url)
local url, h = string.gsub(url, "http://", "")
local... | gpl-2.0 |
NowTeam/Now | plugins/help_fa.lua | 1 | 2440 | do
function run(msg, matches)
if is_momod(msg) then
return [[
دستورات فارسی ربات:
1- اداره اعضا
اخراج {یوزرنیم/ریپلای}
اخراج فرد از گروه
بن {یوزرنیم/ریپلای}
بن کردن فرد
حذف بن {یوزرنیم}
آن بن کردن فرد
ایدی {ریپلای/معمولی}
نمایش ایدی
2- اداره گروه
تنظیم قوانین {متن}
تنظیم متن به عنوان قوانین گروه
قوانین
نمایش قوانین... | gpl-2.0 |
davidBelanger/nn | MM.lua | 46 | 2695 | --[[ Module to perform matrix multiplication on two minibatch inputs,
producing a minibatch.
]]
local MM, parent = torch.class('nn.MM', 'nn.Module')
--[[ The constructor takes two optional arguments, specifying whether or not transpose
any of the input matrices before perfoming the multiplication.
]]
functi... | bsd-3-clause |
jinq0123/grpc-lua | examples/route_guide/server_reader/RecordRouteReader.lua | 1 | 2998 | --- Server reader class for RecordRoute method.
-- @classmod server_reader.RecordRouteReader
local Reader = {}
-------------------------------------------------------------------------------
--- Public functions.
-- @section public
--- New Reader.
-- @tparam Replier replier Replier object
-- @treturn table Reader ob... | bsd-3-clause |
gajop/Zero-K | LuaRules/Gadgets/unit_jumpjet_pilot.lua | 12 | 6460 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if (not gadgetHandler:IsSyncedCode()) then
return false
end
function gadget:GetInfo()
return {
name = "Jumpjet Pilot",
desc = "Steers ... | gpl-2.0 |
dafei2015/IntWars | BinWars/Scripts/Heroes/Ezreal.lua | 3 | 3326 | function CastSpell(self,spellIndex,x,y)
if spellIndex == 0 then
spell = CSpellWork(self,spellIndex,x,y) --EzrealMysticShot
spell.iUpdatePos = 1
--spell.setFacing = true --4F
spell.cooldown = 0
spell.manaCost = 0
sp... | gpl-3.0 |
KayMD/Illarion-Content | quest/nana_winterbutter_70_runewick.lua | 3 | 4690 | --[[
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 |
gajop/Zero-K | effects/gundam_kampferimpact.lua | 25 | 7159 | -- kampferimpact
return {
["kampferimpact"] = {
dirta = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
properties = {
airdrag = 0.7,
alwaysvisible = true,
colormap = [[0.1 0.1 0.1 1.0 0... | gpl-2.0 |
iainmerrick/Urho3D | Source/ThirdParty/toluapp/src/bin/lua/code.lua | 42 | 2520 | -- tolua: code class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1999
-- $Id: $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance, support, updates,
-- enhancements, o... | mit |
mardraze/prosody-modules | mod_service_directories/mod_service_directories.lua | 32 | 5943 | -- Prosody IM
-- Copyright (C) 2011 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-- An implementation of [XEP-0309: Service Directories]
-- Imports and defines
local st = require "util.stanza";
local jid_split = require "util.jid"... | mit |
dacrybabysuck/darkstar | scripts/zones/FeiYin/Zone.lua | 9 | 2796 | -----------------------------------
--
-- Zone: FeiYin (204)
--
-----------------------------------
local ID = require("scripts/zones/FeiYin/IDs")
require("scripts/globals/conquest");
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("scripts/globals/treasure")
require("scripts/globals/q... | gpl-3.0 |
MrTheSoulz/NerdPack | Libs/DiesalMenu-1.0/Objects/Menu.lua | 6 | 5026 | -- $Id: Menu.lua 60 2016-11-04 01:34:23Z diesal2010 $
local DiesalMenu = LibStub('DiesalMenu-1.0')
-- ~~| Libraries |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
local DiesalGUI = LibStub('DiesalGUI-1.0')
local DiesalTools = LibStub... | mit |
dacrybabysuck/darkstar | scripts/commands/addquest.lua | 11 | 1570 | ---------------------------------------------------------------------------------------------------
-- func: addquest <logID> <questID> <player>
-- desc: Adds a quest to the given targets log.
---------------------------------------------------------------------------------------------------
require("scripts/globals/q... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Vunkerl_Inlet_[S]/npcs/Leadavox.lua | 9 | 1437 | -----------------------------------
-- Area: Vunkerl Inlet (S) (I-6)
-- NPC: Leadavox
-- Involved in Quests
-- !pos 206 -32 316
-----------------------------------
local ID = require("scripts/zones/Vunkerl_Inlet_[S]/IDs");
require("scripts/globals/quests");
-----------------------------------
function onTrade(player,... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/mobskills/glacial_breath.lua | 11 | 1300 | ---------------------------------------------
-- Glacial Breath
--
-- Description: Deals Ice damage to enemies within a fan-shaped area.
-- Type: Breath
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Unknown cone
-- Notes: Used only by Jormungand and Isgebind
---------------------------------------------
req... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/spells/bluemagic/foot_kick.lua | 8 | 1490 | -----------------------------------------
-- Spell: Foot Kick
-- Deals critical damage. Chance of critical hit varies with TP
-- Spell cost: 5 MP
-- Monster Type: Beasts
-- Spell Type: Physical (Slashing)
-- Blue Magic Points: 2
-- Stat Bonus: AGI+1
-- Level: 1
-- Casting Time: 0.5 seconds
-- Recast Time: 6.5 seconds
-... | gpl-3.0 |
dcourtois/premake-core | src/_manifest.lua | 4 | 1380 | --
-- _manifest.lua
-- Manage the list of built-in Premake scripts.
-- Copyright (c) 2002-2015 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/_foundation.lua... | bsd-3-clause |
dacrybabysuck/darkstar | scripts/zones/RuLude_Gardens/IDs.lua | 9 | 4513 | -----------------------------------
-- Area: RuLude_Gardens
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.RULUDE_GARDENS] =
{
text =
{
CONQUEST_BASE = 0, -- Tallying conquest results...
... | gpl-3.0 |
wyozi/gmod-medialib | ext/shoutcastmeta.lua | 2 | 3808 | -- Shoutcast metadata fetcher.
-- AFAIK it is currently not possible to fetch metadata from the .pls stream itself without a binary module
-- But what we can do is try to find the Shoutcast webserver, and get current song data etc from there
--
-- This extension is fairly cheap to use. Querying for stream meatadata req... | mit |
dacrybabysuck/darkstar | scripts/globals/items/anchovy_pizza.lua | 11 | 1250 | -----------------------------------------
-- ID: 5699
-- Item: anchovy_pizza
-- Food Effect: 3 hours, all Races
-----------------------------------------
-- HP +30
-- DEX +1
-- Accuracy +9% (Cap 15)
-- Attack +10% (Cap 20)
-----------------------------------------
require("scripts/globals/status")
require("scripts/glob... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/mobskills/light_blade.lua | 11 | 1409 | ---------------------------------------------
-- Light Blade
-- Description: Deals very high physical damage to a single player.
-- Type: Ranged
-- Damage decreases the farther away the target is from him.
---------------------------------------------
require("scripts/globals/settings")
require("scripts/globals/sta... | gpl-3.0 |
skryabiin/core | engine/bin/lua/menus.lua | 1 | 2079 |
Menu = {
functions = {}
}
function Menu:new(menu)
menu = menu or {}
menu = Entity:new(menu)
menu:addBasicPosition("MenuPositions")
menu:setDimensions({200,400})
menu.facets.background = TextureFacet:new(menu)
menu.facets.background:setSystemName("MenuTextures")
menu.facets.background:setTextureName("blu... | mit |
dacrybabysuck/darkstar | scripts/zones/Windurst_Woods/npcs/Ponono.lua | 12 | 1587 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Ponono
-- Type: Clothcraft Guild Master
-- !pos -38.243 -2.25 -120.954 241
-----------------------------------
local ID = require("scripts/zones/Windurst_Woods/IDs")
require("scripts/globals/crafting")
require("scripts/globals/status")
---------------... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Abyssea-Konschtat/npcs/Cruor_Prospector.lua | 12 | 10275 | -----------------------------------
-- Area: Abyssea - Konschtat
-- NPC: Cruor Prospector
-- Type: Cruor NPC
-- !pos 132.000,-75.856,-822.000 15
-----------------------------------
local ID = require("scripts/zones/Abyssea-Konschtat/IDs")
require("scripts/globals/keyitems")
require("scripts/globals/settings")
require(... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/QuBia_Arena/bcnms/undying_promise.lua | 9 | 1217 | -----------------------------------
-- Undying Promise
-- Qu'Bia Arena BCNM40, Star Orb
-- !additem 1131
-----------------------------------
require("scripts/globals/battlefield")
-----------------------------------
function onBattlefieldInitialise(battlefield)
battlefield:setLocalVar("loot", 1)
battlefield:se... | gpl-3.0 |
ovh/overthebox-feeds | luci-base/luasrc/tools/webadmin.lua | 59 | 2301 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008-2015 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.tools.webadmin", package.seeall)
local util = require "luci.util"
local uci = require "luci.model.uci"
local ip = require "luci.ip"
func... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/items/jar_of_ground_wasabi.lua | 11 | 1306 | -----------------------------------------
-- ID: 5164
-- Item: jar_of_ground_wasabi
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Strength -1
-- Dexterity -1
-- Agility -1
-- Vitality -1
-- Intelligence -1
-- Mind -1
-- Charisma -1
-----------------------------------------
require("script... | gpl-3.0 |
Omegaphora/external_skia | tools/lua/scrape.lua | 145 | 2246 | function tostr(t)
local str = ""
for k, v in next, t do
if #str > 0 then
str = str .. ", "
end
if type(k) == "number" then
str = str .. "[" .. k .. "] = "
else
str = str .. tostring(k) .. " = "
end
if type(v) == "table" then
... | bsd-3-clause |
baishancloud/lua-acid | lib/test_repr.lua | 1 | 3724 | local repr = require("acid.repr")
local dd = test.dd
local opt_sep_one_space = { sep=' ' }
local opt_sep_two_space = { sep=' ' }
function test.repr(t)
local cases = {
{1, nil, '1'},
{'1', nil, '"1"'},
{nil, nil, ... | mit |
dacrybabysuck/darkstar | scripts/globals/spells/bluemagic/temporal_shift.lua | 12 | 1479 | -----------------------------------------
-- Spell: Temporal Shift
-- Enemies within range are temporarily prevented from acting
-- Spell cost: 48 MP
-- Monster Type: Luminians
-- Spell Type: Magical (Lightning)
-- Blue Magic Points: 5
-- Stat Bonus: HP+10, MP+15
-- Level: 73
-- Casting Time: 0.5 seconds
-- Recast Time... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/items/slice_of_grilled_black_hare.lua | 11 | 1095 | -----------------------------------------
-- ID: 4516
-- Item: slice_of_grilled_black_hare
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Strength 2
-- Intelligence -1
-- Attack % 20
-- Attack Cap 30
-----------------------------------------
require("scripts/globals/status")
require("scr... | gpl-3.0 |
Fir3element/downgrade86 | data/talkactions/scripts/looktype.lua | 27 | 1088 | function onSay(player, words, param)
if not player:getGroup():getAccess() then
return true
end
local lookType = tonumber(param)
if lookType >= 0 and lookType ~= 1 and lookType ~= 135 and lookType ~= 411 and lookType ~= 415 and lookType ~= 424 and (lookType <= 160 or lookType >= 192) and lookType ~= 439 and lookT... | gpl-2.0 |
varunparkhe/Algorithm-Implementations | Best_First_Search/Lua/Yonaba/bfs.lua | 26 | 3928 | -- Generic Best First Search algorithm implementation
-- See : http://en.wikipedia.org/wiki/Best-first_search
-- Notes : this is a generic implementation of BFS graph search algorithm.
-- It is devised to be used on any type of graph (point-graph, tile-graph,
-- or whatever. It expects to be initialized with a handler... | mit |
dacrybabysuck/darkstar | scripts/globals/weaponskills/last_stand.lua | 10 | 1872 | -----------------------------------
-- Last Stand
-- Skill Level: 357
-- Description: Attacks once or twice, depending on remaining ammunition. Damage dealt varies with TP.
-- If the first shot of the weapon skill does enough damage to defeat the target, the second shot will not be used.
-- To obtain Last Stand, the qu... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/weaponskills/guillotine.lua | 10 | 2013 | -----------------------------------
-- Guillotine
-- Scythe weapon skill
-- Skill level: 200
-- Delivers a four-hit attack. Duration varies with TP.
-- Modifiers: STR:25% MND:25%
-- 100%TP 200%TP 300%TP
-- 0.875 0.875 0.875
-----------------------------------
require("scripts/globals/status")
require("sc... | gpl-3.0 |
dkogan/notion.xfttest | contrib/statusd/legacy/statusd_mcpu.lua | 3 | 4590 | -- Authors: Jakub Ružička <yac@email.cz>
-- License: Unknown
-- Last Changed: 2008-08-14
--
-- statusd_mcpu.lua - multi CPU monitor for ion3 statusbar
--
-- version 0.1 by Jakub Ružička <yac@email.cz>, 2008-08-14
--
--
-- Small and hopefully efficient monitor for multiple CPU using Linux
-- /proc/stat.
--
-- in cfg_s... | lgpl-2.1 |
dacrybabysuck/darkstar | scripts/zones/Northern_San_dOria/npcs/Arachagnon.lua | 11 | 1150 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Arachagnon
-- Standard Merchant NPC
-----------------------------------
local ID = require("scripts/zones/Northern_San_dOria/IDs")
require("scripts/globals/npc_util")
require("scripts/globals/quests")
require("scripts/globals/shop")
function onT... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/items/strip_of_bison_jerky.lua | 11 | 1077 | -----------------------------------------
-- ID: 5207
-- Item: strip_of_bison_jerky
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Strength 5
-- Mind -2
-- Attack % 18
-- Attack Cap 70
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg... | gpl-3.0 |
worldforge/ember | src/components/ogre/widgets/EntityPicker.lua | 1 | 15121 | -- EntityPicker
-- Widget which is shown when an entity is picked. Basically it's a menu which allows the user to perform actions on the entity.
EntityPicker = {}
function EntityPicker:buildWidget(world)
self.world = world
self.widget = guiManager:createWidget()
local entityPickListener = world:getEntityPickLi... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/spells/battlefield_elegy.lua | 12 | 1788 | -----------------------------------------
-- Spell: Battlefield Elegy
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------------
function onMagicCastingCheck(caster, target, spell)
return 0
en... | gpl-3.0 |
fegimanam/uzrep | plugins/invite.lua | 299 | 1025 | -- Invite other user to the chat group.
-- Use !invite name User_name or !invite id id_number
-- The User_name is the print_name (there are no spaces but _)
do
local function callback(extra, success, result)
vardump(success)
vardump(result)
end
local function run(msg, matches)
local user = matches[2]
-- Use... | gpl-2.0 |
fiallo1313veeee/ARJ | plugins/boob.lua | 1 | 1602 | 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 |
dacrybabysuck/darkstar | scripts/zones/Windurst_Waters/npcs/Taajiji.lua | 10 | 1258 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Taajiji
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
local ID = require("scripts/zones/Windurst_Waters/IDs");
-----------------------------------
function onTrade(... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Chateau_dOraguille/npcs/_6h0.lua | 9 | 4595 | -----------------------------------
-- Area: Chateau d'Oraguille
-- Door: Prince Royal's
-- Finishes Quest: A Boy's Dream, Under Oath
-- Involved in Missions: 3-1, 5-2, 8-2
-- !pos -38 -3 73 233
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/settings");
require("scripts/... | gpl-3.0 |
abolz/Format | premake5.lua | 1 | 3308 | local build_dir = "build/" .. _ACTION
newoption {
trigger = "cxxflags",
description = "Additional build options",
}
newoption {
trigger = "linkflags",
description = "Additional linker options",
}
--------------------------------------------------------------------------------
solution "Format"
co... | mit |
dacrybabysuck/darkstar | scripts/globals/items/bowl_of_sutlac_+1.lua | 11 | 1178 | -----------------------------------------
-- ID: 5578
-- Item: Bowl of Sutlac
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10
-- MP +10
-- INT +2
-- HP Recovered while healing +1
-- MP Recovered while healing +1
-----------------------------------------
require... | gpl-3.0 |
dcourtois/premake-core | modules/vstudio/tests/vc2010/test_vectorextensions.lua | 16 | 2040 | ---
-- tests/actions/vstudio/vc2010/test_vectorextensions.lua
-- Validate handling of vectorextensions() in VS 2010 C/C++ projects.
--
-- Created 26 Mar 2015 by Jason Perkins
-- Copyright (c) 2015 Jason Perkins and the Premake project
---
local p = premake
local suite = test.declare("vs2010_vc_vectorextensions")
lo... | bsd-3-clause |
dacrybabysuck/darkstar | scripts/zones/Korroloka_Tunnel/Zone.lua | 9 | 2414 | -----------------------------------
--
-- Zone: Korroloka Tunnel (173)
--
-----------------------------------
local ID = require("scripts/zones/Korroloka_Tunnel/IDs")
require("scripts/globals/conquest")
require("scripts/globals/helm")
-----------------------------------
function onInitialize(zone)
-- Waterfalls (R... | gpl-3.0 |
birdbrainswagtrain/grid-sdk | src/engine/shared/region/layer.lua | 1 | 5422 | --========= Copyright © 2013-2015, Planimeter, All rights reserved. ==========--
--
-- Purpose: Region Layer class
--
--============================================================================--
class( "regionlayer" )
function regionlayer:regionlayer( layerData )
self.data = layerData
end
if ( _CLIE... | mit |
dacrybabysuck/darkstar | scripts/mixins/families/colibri_mimic.lua | 9 | 2775 | --[[
Colibri that copy spells cast on it.
localVar default description
-------- ------- -----------
[colibri]reflect_blue_magic 0 set to 1 for this mob to also reflect blue magic cast on it
https://ffxiclopedia.fandom.com/wiki/Colibri
https://ffxiclo... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/mobskills/pelagic_tempest.lua | 11 | 1182 | ---------------------------------------------
-- Pelagic Tempest
--
-- Description: Delivers an area attack that inflicts Shock and Terror.
-- Type: Physical?
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: 10' cone
-- Notes: Used by Murex affiliated with lightning element. Shock effect is fairly strong (28/t... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/weaponskills/howling_fist.lua | 10 | 1496 | -----------------------------------
-- Howling Fist
-- Hand-to-Hand weapon skill
-- Skill Level: 200
-- Damage varies with TP.
-- Will stack with Sneak Attack.
-- Ignores some defense.
-- Aligned with the Light Gorget & Thunder Gorget.
-- Aligned with the Light Belt & Thunder Belt.
-- Element: None
-- Modifiers: STR:20... | gpl-3.0 |
yszheda/quickx-extensions | UIPushButton.lua | 1 | 4229 |
--[[
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... | gpl-2.0 |
eagle14/kia12 | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile... | gpl-2.0 |
dacrybabysuck/darkstar | scripts/zones/The_Ashu_Talif/instances/the_black_coffin.lua | 9 | 2037 | -----------------------------------
--
-- TOAU-15: The Black Coffin
--
-----------------------------------
require("scripts/globals/instance")
require("scripts/globals/keyitems")
local ID = require("scripts/zones/The_Ashu_Talif/IDs")
-----------------------------------
function afterInstanceRegister(player)
local ... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/effects/field_support_food.lua | 12 | 2969 | -----------------------------------
--
-- dsp.effect.FIELD_SUPPORT_FOOD
-- From FoV and GoV
-----------------------------------
function onEffectGain(target,effect)
if (effect:getPower() == 1) then -- Dried Meat
target:addMod(dsp.mod.STR, 4)
target:addMod(dsp.mod.FOOD_ATTP, 22)
target:addMo... | gpl-3.0 |
eagle14/kia12 | 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 |
fgielow/devenserver | data/npc/scripts/comedinha.lua | 2 | 7217 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCre... | gpl-2.0 |
dacrybabysuck/darkstar | scripts/globals/items/salmon_sub_sandwich.lua | 11 | 1211 | -----------------------------------------
-- ID: 4355
-- Item: salmon_sub_sandwich
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 2
-- Agility 1
-- Vitality 1
-- Intelligence 2
-- Mind -2
-- Ranged ACC 2
-----------------------------------------
require("scripts/globals/status")... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Dynamis-Beaucedine/IDs.lua | 9 | 9599 | -----------------------------------
-- Area: Dynamis-Beaucedine
-----------------------------------
require("scripts/globals/keyitems")
require("scripts/globals/dynamis")
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.DYNAMIS_BEAUCEDINE] =
{
text =
{
... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Bastok_Markets/npcs/Arawn.lua | 9 | 2122 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Arawn
-- Starts & Finishes Quest: Stamp Hunt
-- !pos -121.492 -4.000 -123.923 235
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/titles");
require("scripts/globals... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/mobskills/randgrith.lua | 11 | 1087 | ---------------------------------------------
-- Randgrith
--
-- Description: Lowers target's evasion. Gullintani/Mjollnir: Temporarily improves accuracy.
-- Type: Physical
-- Range: Melee
---------------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("s... | gpl-3.0 |
Kelwing/pvpgn | lua/antihack/starcraft.lua | 7 | 2206 | --[[
Simple Anti MapHack for Starcraft: BroodWar 1.16.1
Copyright (C) 2014 HarpyWar (harpywar@gmail.com)
This file is a part of the PvPGN Project http://pvpgn.pro
Licensed under the same terms as Lua itself.
]]--
-- just unique request id for maphack
ah_mh_request_id = 99
-- map visible offset
ah_mh_offset =... | gpl-2.0 |
yangzexin/MMLuaBridge | MMLuaBridge/lua-5.1.5/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | apache-2.0 |
willswang/vlc | share/lua/meta/fetcher/tvrage.lua | 48 | 2571 | --[[
Gets metas for tv episode using tvrage.
$Id$
Copyright © 2010 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 version 2 of the License, or
(at your option) any l... | gpl-2.0 |
Fir3element/downgrade86 | data/npc/scripts/The Oracle.lua | 21 | 3593 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local vocation = {}
local town = {}
local destination = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) ... | gpl-2.0 |
keviner2004/shoot-em-up | Bullet.lua | 1 | 2159 | local GameObject = require("GameObject")
local move = require("move")
local Bullet = {}
Bullet.new = function(options)
local bullet = GameObject.new(options)
bullet:addTag("bullet")
bullet.isSensor = true
bullet:belongTo(PHYSIC_CATEGORY_BULLET)
if options and options.isRocket then
bullet:be... | mit |
andeandr100/Crumbled-World | Lua/MapEditor/textureSelectionMenu.lua | 1 | 4807 | require("Menu/MainMenu/mainMenuStyle.lua")
--this = SceneNode()
TextureSelectionMenu = {}
function TextureSelectionMenu.new(inCallback)
local self = {}
local form = nil
local callback = inCallback
function self.destroy()
if form then
form:setVisible(false)
form:destroy()
form = nil
e... | mit |
jeffknupp/arrow | c_glib/example/lua/read-batch.lua | 9 | 1557 | -- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you may... | apache-2.0 |
Flatlander57/TheImaginedOTClient | modules/corelib/util.lua | 1 | 7116 | -- @docfuncs @{
function print(...)
local msg = ""
local args = {...}
local appendSpace = #args > 1
for i,v in ipairs(args) do
msg = msg .. tostring(v)
if appendSpace and i < #args then
msg = msg .. ' '
end
end
g_logger.log(LogInfo, msg)
end
function pinfo(msg)
g_logger.log(LogInfo,... | mit |
dkogan/notion.xfttest | contrib/scripts/net_client_list.lua | 7 | 2805 | -- Authors: Etan Reisner <deryni@gmail.com>
-- License: MIT, see http://opensource.org/licenses/mit-license.php
-- Last Changed: 2007-07-22
--
--[[
Author: Etan Reisner
Email: deryni@unreliablesource.net
Summary: Maintains the _NET_CLIENT_LIST property (and the _NET_CLIENT_LIST_STACKING property incorrectly) on the roo... | lgpl-2.1 |
dacrybabysuck/darkstar | scripts/globals/items/slice_of_giant_sheep_meat.lua | 11 | 1068 | -----------------------------------------
-- ID: 4372
-- Item: slice_of_giant_sheep_meat
-- Food Effect: 5Min, Galka only
-----------------------------------------
-- Strength 2
-- Intelligence -4
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
----------------... | gpl-3.0 |
maxbannach/grazil | src/grazil/model/Random.lua | 1 | 1399 | ---
-- Copyright 2016 by Till Tantau
--
-- This file may be distributed and/or modified under the GNU Public License
--
-- imports
local random = math.random
---
-- A class capsuling random generators such that the same (or different) random number
-- sequences can be generated from different objects.
--
-- In detai... | gpl-3.0 |
ChristianKniep/orchestra | 1node-3elasticsearch/heka/lua/lin_inc.lua | 1 | 1513 | _PRESERVATION_VERSION = read_config("preservation_version") or 0
_PRESERVATION_VERSION = _PRESERVATION_VERSION + 1 -- force a revision update due to internal changes
require "circular_buffer"
require "string"
local alert = require "alert"
local annotation = require "annotation"
local anomaly = require... | mit |
dacrybabysuck/darkstar | scripts/zones/Northern_San_dOria/npcs/Ulycille.lua | 12 | 1397 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Ulycille
-- Type: Woodworking Adv. Synthesis Image Support
-- !pos -183.320 9.999 269.651 231
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/crafting");
local ID = require("scripts/zones/Northern_S... | gpl-3.0 |
nimaghorbani/dozdi1 | bot/bot.lua | 4 | 6818 | 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 = '0.14.6'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
r... | gpl-2.0 |
brenoriba/lstage | apps/http/server/lstage_socket.lua | 1 | 5021 | local lstage=require'lstage'
local socket=require'socket'
local mt=getmetatable(socket)
if mt==nil then
mt={}
setmetatable(socket,mt)
end
function mt.__persist()
return function () return require'lstage_socket' end
end
local tcp_client_mt,err=lstage.getmetatable("tcp{client}")
if tcp_client_mt then
tcp_client_m... | mit |
dacrybabysuck/darkstar | scripts/zones/Southern_San_dOria/npcs/Corua.lua | 11 | 1315 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Corua
-- Ronfaure Regional Merchant
-- !pos -66 2 -11 230
-----------------------------------
local ID = require("scripts/zones/Southern_San_dOria/IDs")
require("scripts/globals/events/harvest_festivals")
require("scripts/globals/conquest")
requi... | gpl-3.0 |
dkogan/notion.xfttest | contrib/statusd/statusd_fortune.lua | 3 | 6425 | -- Authors: Hendrik Iben <hiben@tzi.de>
-- License: GPL, version 2
-- Last Changed: 2006-03-23
--
-- statusd_fortune.lua v20060323
--
-- Displays a fortune (in a sane way for one line).
-- My first attempt at writing in lua and for ion.
--
-- Written by Hendrik Iben < hiben at tzi dot de >
--
-- How to use :
-- fortune... | lgpl-2.1 |
dacrybabysuck/darkstar | scripts/zones/Stellar_Fulcrum/mobs/Kamlanaut.lua | 9 | 1220 | -----------------------------------
-- Area: Stellar Fulcrum
-- Mob: Kam'lanaut
-- Zilart Mission 8 BCNM Fight
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/magic");
local blades = {823, 826, 828, 825, 824, 827};
--------------------... | gpl-3.0 |
WickedShell/ardupilot | Tools/CHDK-Scripts/Cannon SX260/3DR_EAI_SX260.lua | 96 | 29666 |
--[[
KAP UAV Exposure Control Script v3.1
-- Released under GPL by waterwingz and wayback/peabody
http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script
3DR EAI 1.0 is a fork of KAP 3.1 with settings specific to Canon cameras triggered off the Pixhawk autopilot.
Changelog:
-Modified Tv, Av, and... | gpl-3.0 |
gpedro/otclient | modules/gamelib/position.lua | 11 | 1078 | Position = {}
function Position.equals(pos1, pos2)
return pos1.x == pos2.x and pos1.y == pos2.y and pos1.z == pos2.z
end
function Position.greaterThan(pos1, pos2, orEqualTo)
if orEqualTo then
return pos1.x >= pos2.x or pos1.y >= pos2.y or pos1.z >= pos2.z
else
return pos1.x > pos2.x or pos1.y > pos2.y o... | mit |
dacrybabysuck/darkstar | scripts/zones/Metalworks/npcs/Karst.lua | 9 | 1444 | -----------------------------------
-- Area: Metalworks
-- NPC: Karst
-- Type: President
-- Involved in Bastok Missions 5-2
-- !pos 106 -21 0 237
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
-----------------------------------
function onTrade(player,np... | gpl-3.0 |
varunparkhe/Algorithm-Implementations | Successive_Over_Relaxation/Lua/Yonaba/sor.lua | 26 | 1264 | -- Successive Over Relaxation algorithm implementation
-- See : http://en.wikipedia.org/wiki/Successive_over-relaxation
-- Creates a vector of values
local function vector(len, v)
local x = {}
for i = 1, len do x[i] = v end
return x
end
-- Computes the norm of a given vector
local function norm(v)
local n = 0... | mit |
Dingf/Icewrack | game/dota_addons/icewrack/scripts/vscripts/bind_manager.lua | 1 | 10098 | if not CBindManager then
if _VERSION < "Lua 5.2" then
bit = require("lib/numberlua")
bit32 = bit.bit32
end
require("ext_entity")
require("ext_ability")
require("ext_item")
--TODO: Change the bind system to not use the "bind" command when Valve fixes keybinds for panorama
local stValidHotkeys =
{
--A, S, an... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.