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 |
|---|---|---|---|---|---|
The-HalcyonDays/darkstar | scripts/globals/spells/curaga_v.lua | 13 | 1247 | -----------------------------------------
-- Spell: Curaga V
-- Restores HP of all party members within area of effect.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------... | gpl-3.0 |
sepehrpk/firebot1 | plugins/anti-flood.lua | 281 | 2422 | local NUM_MSG_MAX = 5 -- Max number of messages per TIME_CHECK seconds
local TIME_CHECK = 5
local function kick_user(user_id, chat_id)
local chat = 'chat#id'..chat_id
local user = 'user#id'..user_id
chat_del_user(chat, user, function (data, success, result)
if success ~= 1 then
local text = 'I can\'t k... | gpl-2.0 |
FingasGaming/Game-Development | VRPE/sandbox/bin/scripts/core/baseClass/statemachine.lua | 2 | 2021 |
function new(entity)
local object = {}
object.entity = entity -- the object/entity to manipulate
object.states = {} -- states stored by the state machine
object.transitions = {} -- transtions stored by the state machine
object.currState = nil -- points to the current state
object.prevState = nil -- points to the... | gpl-2.0 |
The-HalcyonDays/darkstar | scripts/globals/spells/dark_carol.lua | 13 | 1501 | -----------------------------------------
-- Spell: Dark Carol
-- Increases dark resistance for party members within the area of effect.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-------------... | gpl-3.0 |
PointOneNav/fusion-engine-client | wireshark/p1_fusion_engine_dissector.lua | 1 | 14928 | --------------------------------------------------------------------------------
-- @brief Point One FusionEngine Protocol Wireshark packet dissector.
--
-- To use, install in `~/.local/lib/wireshark/plugins/`, then reload the
-- Wireshark plugins (Analyze -> Reload Lua Plugins) or restart Wireshark. We
-- recommend us... | mit |
GoblinInventor/Snail | hardoncollider/polygon.lua | 14 | 13533 | --[[
Copyright (c) 2011 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... | mit |
mcodegeeks/OpenKODE-Framework | 03_Tutorial/T02_XMCocos2D-v3-Lua/Resource/luaScript/RenderTextureTest/RenderTextureTest.lua | 4 | 18323 | -- Test #1 by Jason Booth (slipster216)
-- Test #3 by David Deaco (ddeaco)
--/**
-- * Impelmentation of RenderTextureSave
--*/
local function RenderTextureSave()
local ret = createTestLayer("Touch the screen",
"Press 'Save Image' to create an snapshot of the render texture")
... | mit |
The-HalcyonDays/darkstar | scripts/zones/Qufim_Island/npcs/Trodden_Snow.lua | 13 | 4765 | -----------------------------------
-- Area: Qufim Island
-- NPC: Trodden Snow
-- Mission: ASA - THAT_WHICH_CURDLES_BLOOD
-- Mission: ASA - SUGAR_COATED_DIRECTIVE
-- @zone 126
-- @pos -19 -17 104
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
----------------------------... | gpl-3.0 |
The-HalcyonDays/darkstar | scripts/globals/items/strip_of_bison_jerky.lua | 35 | 1398 | -----------------------------------------
-- 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");
------------... | gpl-3.0 |
coltonj96/UsefulCombinators | UsefulCombinators_0.2.2/prototypes/signal/signal.lua | 8 | 5506 | data:extend(
{
{
type = "virtual-signal",
name = "counting-signal",
icon = "__UsefulCombinators__/graphics/icons/signal/counting-signal.png",
subgroup = "virtual-signal",
order = "u[counting]"
},
{
type = "virtual-signal",
name = "time-mod-signal",
icon = "__UsefulCombi... | mit |
coltonj96/UsefulCombinators | UsefulCombinators_0.2.4/prototypes/signal/signal.lua | 8 | 5506 | data:extend(
{
{
type = "virtual-signal",
name = "counting-signal",
icon = "__UsefulCombinators__/graphics/icons/signal/counting-signal.png",
subgroup = "virtual-signal",
order = "u[counting]"
},
{
type = "virtual-signal",
name = "time-mod-signal",
icon = "__UsefulCombi... | mit |
coltonj96/UsefulCombinators | UsefulCombinators_0.2.1/prototypes/signal/signal.lua | 8 | 5506 | data:extend(
{
{
type = "virtual-signal",
name = "counting-signal",
icon = "__UsefulCombinators__/graphics/icons/signal/counting-signal.png",
subgroup = "virtual-signal",
order = "u[counting]"
},
{
type = "virtual-signal",
name = "time-mod-signal",
icon = "__UsefulCombi... | mit |
The-HalcyonDays/darkstar | scripts/zones/Pashhow_Marshlands/npcs/Cavernous_Maw.lua | 29 | 1512 | -----------------------------------
-- Area: Pashhow Marshlands
-- NPC: Cavernous Maw
-- @pos 418 25 27 109
-- Teleports Players to Pashhow Marshlands [S]
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
The-HalcyonDays/darkstar | scripts/globals/mobskills/Tail_Crush.lua | 25 | 1026 | ---------------------------------------------
-- Tail Crush
--
-- Description: Smashes a single target with its tail. Additional effect: Poison
-- Type: Physical
-- Utsusemi/Blink absorb: 1 shadow
-- Range: Melee
-- Notes:
---------------------------------------------
require("scripts/globals/settings");... | gpl-3.0 |
rgieseke/scintillua | lexers/glsl.lua | 1 | 5668 | -- Copyright 2006-2018 Mitchell mitchell.att.foicica.com. See LICENSE.
-- GLSL LPeg lexer.
local lexer = require('lexer')
local token, word_match = lexer.token, lexer.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local lex = lexer.new('glsl', {inherit = lexer.load('cpp')})
-- Whitespace.
lex:modify_rule('whitesp... | mit |
zhaozg/luvit | deps/http-codec.lua | 2 | 9174 | --[[
Copyright 2014-2015 The Luvit Authors. All Rights Reserved.
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
Unless required by applicable law o... | apache-2.0 |
The-HalcyonDays/darkstar | scripts/globals/items/pot_of_honey.lua | 35 | 1143 | -----------------------------------------
-- ID: 4370
-- Item: pot_of_honey
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Magic Regen While Healing 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIt... | gpl-3.0 |
johnd0e/FarManager | enc/tools/lua/lua/lxsh/lexers/bib.lua | 3 | 2442 | --[[
Lexer for BibTeX source code powered by LPeg.
Authors:
- Brendan O'Flaherty
- Peter Odding
Last Change: October 4, 2011
URL: http://peterodding.com/code/lua/lxsh/
TODO Comments?!
]]
local lxsh = require 'lxsh'
local lpeg = require 'lpeg'
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local D = R'09'
local I... | bsd-3-clause |
The-HalcyonDays/darkstar | scripts/globals/spells/pyrohelix.lua | 22 | 1717 | --------------------------------------
-- Spell: Pyrohelix
-- Deals fire damage that gradually reduces
-- a target's HP. Damage dealt is greatly affected by the weather.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/... | gpl-3.0 |
The-HalcyonDays/darkstar | scripts/zones/Palborough_Mines/npcs/_3z9.lua | 19 | 1592 | -----------------------------------
-- Area: Palborough Mines
-- NPC: Refiner Lever
-- Involved In Mission: Journey Abroad
-- @zone 143
-- @pos 180 -32 167
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
NAM-IL/VLC-2_2_0 | share/lua/intf/dumpmeta.lua | 98 | 2125 | --[==========================================================================[
dumpmeta.lua: dump a file's meta data on stdout/stderr
--[==========================================================================[
Copyright (C) 2010 the VideoLAN team
$Id$
Authors: Antoine Cellerier <dionoea at videolan dot org>
Th... | lgpl-2.1 |
Amaz1/interact | rules.lua | 1 | 1364 | --The actual rules.
interact.rules = [[
Rules:
1. No griefing.
2. No hacked clients.
3. No swearing or insults towards other players.
4. No family roleplay.
5. No dating.
6. Do not ask for more privs, or to be an admin. Also do not ask for items.
7. PVP is not allowed.
]]
--The questions on the rules, if the quiz is ... | mit |
The-HalcyonDays/darkstar | scripts/zones/Port_Windurst/npcs/Sattsuh_Ahkanpari.lua | 36 | 1598 | -----------------------------------
-- Area: Port Windurst
-- NPC: Sattsuh Ahkanpari
-- Regional Marchant NPC
-- Only sells when Windurst controlls Elshimo Uplands
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
p... | gpl-3.0 |
The-HalcyonDays/darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/_5cr.lua | 17 | 2435 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: _5cr (Magical Gizmo) #3
-- Involved In Mission: The Horutoto Ruins Experiment
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/... | gpl-3.0 |
The-HalcyonDays/darkstar | scripts/globals/spells/Vital_Etude.lua | 11 | 1611 | -----------------------------------------
-- Spell: Vital Etude
-- Static VIT Boost, BRD 70
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
fun... | gpl-3.0 |
ccw808/mtasa-blue | vendor/pthreads/premake5.lua | 4 | 1320 | project "pthread"
language "C++"
kind "SharedLib"
targetname "pthread"
targetdir(buildpath("server"))
includedirs {
"include"
}
vpaths {
["Headers"] = "**.h",
["Sources"] = "**.c",
["*"] = "premake5.lua"
}
files {
"premake5.lua",
"include/pthread.c",
"include/config.h",
"include/context.h",
... | gpl-3.0 |
angeloc/sysdig | userspace/sysdig/chisels/spy_syslog.lua | 3 | 5814 | --[[
Copyright (C) 2013-2018 Draios Inc dba Sysdig.
This file is part of sysdig.
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
Unless required by ... | apache-2.0 |
The-HalcyonDays/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Kabihyam.lua | 34 | 1033 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Kabihyam
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
---------... | gpl-3.0 |
NAM-IL/VLC-2_2_0 | share/lua/playlist/pluzz.lua | 105 | 3740 | --[[
$Id$
Copyright © 2011 VideoLAN
Authors: Ludovic Fauvet <etix at l0cal dot com>
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... | lgpl-2.1 |
The-HalcyonDays/darkstar | scripts/globals/spells/bluemagic/death_ray.lua | 9 | 1601 | -----------------------------------------
-- Spell: Death Ray
-- Deals dark damage to an enemy
-- Spell cost: 49 MP
-- Monster Type: Amorphs
-- Spell Type: Magical (Dark)
-- Blue Magic Points: 2
-- Stat Bonus: HP-5, MP+5
-- Level: 34
-- Casting Time: 4.5 seconds
-- Recast Time: 29.25 seconds
-- Magic Bursts ... | gpl-3.0 |
The-HalcyonDays/darkstar | scripts/zones/Port_Bastok/npcs/Ronan.lua | 19 | 2559 | -----------------------------------
-- Area: Port Bastok
-- NPC: Ronan
-- Start & Finishes Quest: Out of One's Shell
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/... | gpl-3.0 |
shahabsaf1/beni-dalton | plugins/stats.lua | 24 | 3698 | do
local NUM_MSG_MAX = 1
local TIME_CHECK = 1 -- seconds
local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
-- Returns a table with `... | gpl-2.0 |
hxw804781317/MT7620N | package/ralink/ui/luci-mtk/src/applications/luci-ahcp/luasrc/model/cbi/ahcp.lua | 36 | 3895 | --[[
LuCI - Lua Configuration Interface
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.org/licenses/LICENSE-2.0
$Id: init.lua... | gpl-2.0 |
Jereviendrai/telegram-bot | plugins/giphy.lua | 1 | 1782 | -- Idea by https://github.com/asdofindia/telegram-bot/
-- See http://api.giphy.com/
do
local BASE_URL = 'http://api.giphy.com/v1'
local API_KEY = 'dc6zaTOxFJmzC' -- public beta key
function get_image(response)
local images = json:decode(response).data
if #images == 0 then return nil end -- No images
local i = ... | gpl-2.0 |
The-HalcyonDays/darkstar | scripts/zones/Northern_San_dOria/npcs/_6fc.lua | 21 | 1890 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Papal Chambers
-- Finish Mission: The Davoi Report
-- @pos 131 -11 122 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
package.loaded["scripts/globals/missions"] = nil;
---------------... | gpl-3.0 |
rrpgfirecast/firecast | Plugins/Sheets/Ficha Starfinder/output/rdkObjs/FichaNave/ReactorPart.lfm.lua | 1 | 13863 | require("firecast.lua");
local __o_rrpgObjs = require("rrpgObjs.lua");
require("rrpgGUI.lua");
require("rrpgDialogs.lua");
require("rrpgLFM.lua");
require("ndb.lua");
require("locale.lua");
local __o_Utils = require("utils.lua");
local function constructNew_frmReactorPart()
local obj = GUI.fromHandle(_obj_newObjec... | apache-2.0 |
eiro/lua-Spore | src/Spore/Middleware/Format/YAML.lua | 1 | 1289 | --
-- lua-Spore : <http://fperrad.github.com/lua-Spore/>
--
local pcall = pcall
local type = type
local raises = require 'Spore'.raises
local yaml = require 'lyaml'
local _ENV = nil
local m = {}
function m:call (req)
local spore = req.env.spore
if spore.payload and type(spore.payload) == 'table' then
... | mit |
The-HalcyonDays/darkstar | scripts/globals/mobskills/PW_Head_Snatch.lua | 13 | 1029 | ---------------------------------------------
-- Head Snatch
--
-- Description: Grabs a single target's head.
-- Type: Physical
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Melee
-- Notes: Only used by Gurfurlur the Menacing. Reduces HP to 10%.
---------------------------------------------
require("scri... | gpl-3.0 |
ypkang/treelstm | util/Tree.lua | 9 | 1126 | --[[
A basic tree structure.
--]]
local Tree = torch.class('treelstm.Tree')
function Tree:__init()
self.parent = nil
self.num_children = 0
self.children = {}
end
function Tree:add_child(c)
c.parent = self
self.num_children = self.num_children + 1
self.children[self.num_children] = c
end
function Tre... | gpl-2.0 |
The-HalcyonDays/darkstar | scripts/globals/items/dish_of_spaghetti_nero_di_seppia_+1.lua | 36 | 1731 | -----------------------------------------
-- ID: 5202
-- Item: Dish of Spaghetti Nero Di Seppia +1
-- Food Effect: 60 Mins, All Races
-----------------------------------------
-- HP % 17 (cap 140)
-- Dexterity 3
-- Vitality 2
-- Agility -1
-- Mind -2
-- Charisma -1
-- Double Attack 1
-- Store TP 6
---------------------... | gpl-3.0 |
The-HalcyonDays/darkstar | scripts/zones/Port_Jeuno/npcs/Challoux.lua | 37 | 1148 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Challoux
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
require("scripts/zones/Port_Jeuno/TextIDs");
-----------------------------------
-... | gpl-3.0 |
The-HalcyonDays/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Ranpi-Monpi.lua | 38 | 1048 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Ranpi-Monpi
-- Type: Standard NPC
-- @zone: 94
-- @pos -115.452 -3 43.389
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-... | gpl-3.0 |
brianhang/nutscript2 | gamemode/classes/sh_character.lua | 1 | 6964 | --[[
File: classes/sh_character.lua
Purpose: Defines the character class here which is used to store data
related to a character.
--]]
-- The DT variable for character ID.
CHAR_ID = 31
-- The number of bits in a longer number.
local LONG = 32
local CHARACTER = nut.meta.character or {}
CHARACTER.__index =... | mit |
JioCloud/contrail-controller | src/analytics/uvedelete.lua | 3 | 1266 | --
-- Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
--
local function sub_del(_values)
local lres = redis.call('hgetall',_values)
local iter = 1
while iter <= #lres do
local attr = lres[iter]
local val = lres[iter+1]
if string.byte(val,1) ~= 60 then
loca... | apache-2.0 |
The-HalcyonDays/darkstar | scripts/zones/RuLude_Gardens/npcs/Muhoho.lua | 34 | 1386 | -----------------------------------
-- Area: Ru'Lud Gardens
-- NPC: Muhoho
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/RuLude_Gardens/TextIDs");
require("scripts/globals/quest... | gpl-3.0 |
rgieseke/scintillua | lexers/diff.lua | 1 | 1302 | -- Copyright 2006-2018 Mitchell mitchell.att.foicica.com. See LICENSE.
-- Diff LPeg lexer.
local lexer = require('lexer')
local token, word_match = lexer.token, lexer.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local lex = lexer.new('diff', {lex_by_line = true})
-- Text, separators, and file headers.
lex:add_r... | mit |
The-HalcyonDays/darkstar | scripts/globals/mobskills/Ill_Wind.lua | 15 | 1309 | ---------------------------------------------
-- Ill Wind
-- Description: Deals Wind damage to enemies within an area of effect. Additional effect: Dispel
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes Shadows
-- Range: Unknown radial
-- Notes: Only used by Puks in Mamook, Besieged, and the following Noto... | gpl-3.0 |
KlonD90/tarantool | test/app/msgpackffi.test.lua | 8 | 2398 | #!/usr/bin/env tarantool
package.path = "lua/?.lua;"..package.path
local tap = require('tap')
local common = require('serializer_test')
local function is_map(s)
local b = string.byte(string.sub(s, 1, 1))
return b >= 0x80 and b <= 0x8f or b == 0xde or b == 0xdf
end
local function is_array(s)
local b = st... | bsd-2-clause |
Andrettin/Wyrmsun | scripts/civilizations/anglo_saxon/characters.lua | 1 | 66450 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/slashcommands/admin/completeQuest.lua | 1 | 2449 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/weapons/carbines/ee3CarbineElite.lua | 1 | 2422 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
Mizugola/MeltingSagaEngine | engine/Lib/Extlibs/pl/array2d.lua | 5 | 13419 | --- Operations on two-dimensional arrays.
-- See @{02-arrays.md.Operations_on_two_dimensional_tables|The Guide}
--
-- Dependencies: `pl.utils`, `pl.tablex`, `pl.types`
-- @module pl.array2d
local type,tonumber,assert,tostring,io,ipairs,string,table =
_G.type,_G.tonumber,_G.assert,_G.tostring,_G.io,_G.ipairs,_G.str... | mit |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/EaseBounceOut.lua | 1 | 1107 |
--------------------------------
-- @module EaseBounceOut
-- @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 EaseBounceOut action. If creation failed, ret... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/hair/human/objects.lua | 1 | 103827 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
yannayl/packages | net/wifidog-ng/files/wifidog-ng/heartbeat.lua | 22 | 1457 | --[[
Copyright (C) 2018 Jianhui Zhao <jianhuizhao329@gmail.com>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later vers... | gpl-2.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/gamemode/sv_profiling.lua | 1 | 7271 | -- This system creates nodes which can be used to spawn dynamic objectives.
GM.ProfilerNodes = {}
GM.ProfilerFolder = "zsprofiler"
GM.ProfilerFolderPreMade = "profiler_premade"
GM.MaxProfilerNodes = 128
hook.Add("Initialize", "ZSProfiler", function()
file.CreateDir(GAMEMODE.ProfilerFolder)
file.CreateDir(G... | gpl-2.0 |
yannayl/packages | net/dynapoint/src/dynapoint.lua | 94 | 6369 | #!/usr/bin/lua
--[[
Copyright (C) 2016 Tobias Ilte <tobias.ilte@campus.tu-berlin.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later v... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/tailor/fieldWearIiReinforcedFibers/reinforcedWorkShirt.lua | 1 | 4367 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
Modified-MW-DF/modified-MDF | MWDF Project/Dwarf Fortress/hack/scripts/masterwork/functions/attack.lua | 2 | 17640 | --attack based functions, version 42.06a
--[[
addAttack(unit,defender_id,body_id,target_id,item_id,attack_id,hitchance,velocity,delay) - Add an attack to unit targeting defender_id's target_id body part. If a body part attack will use body_id, if an item attack will use item_id.
getAttack(unit,main_type,sub_type) ... | mit |
Modified-MW-DF/modified-MDF | MWDF Project/Dwarf Fortress/hack/lua/plugins/sort/items.lua | 3 | 1162 | local _ENV = mkmodule('plugins.sort.items')
local utils = require('utils')
orders = orders or {}
-- Relies on NULL being auto-translated to NULL, and then sorted
orders.exists = {
key = function(item)
return 1
end
}
orders.type = {
key = function(item)
return item:getType(... | mit |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/TintBy.lua | 1 | 1376 |
--------------------------------
-- @module TintBy
-- @extend ActionInterval
-- @parent_module cc
--------------------------------
-- Creates an action with duration and color.<br>
-- param duration Duration time, in seconds.<br>
-- param deltaRed Delta red color.<br>
-- param deltaGreen Delta green color.<... | apache-2.0 |
C60Project/C60-CPU | plugins/Gpmoderator.lua | 2 | 22293 | do
local function callback(extra, success, result)
vardump(success)
end
local function is_spromoted(chat_id, user_id)
local hash = 'sprom:'..chat_id..':'..user_id
local spromoted = redis:get(hash)
return spromoted or false
end
local function spromote(receiver, user_id, username)
local chat_id = string.gsub... | gpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/building/general/objects.lua | 1 | 172165 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/dathomir/npcs/nightsister/nightsisterElder.lua | 1 | 5099 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/corellia/npcs/misc/feralSelonian.lua | 1 | 4743 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/tatooine/npcs/dimU/dimUMonasteryNun.lua | 1 | 4512 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/lair/hutt_thug/objects.lua | 1 | 3373 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
yobiya/tdd_game_sample | cross/cocos2d/cocos/scripting/lua/script/extern.lua | 48 | 2506 | function clone(object)
local lookup_table = {}
local function _copy(object)
if type(object) ~= "table" then
return object
elseif lookup_table[object] then
return lookup_table[object]
end
local new_table = {}
lookup_table[object] = new_table
... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/objects/corellia/npcs/greck/greckAssassin.lua | 1 | 4485 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/slashcommands/admin/manufacture.lua | 1 | 2441 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | lgpl-3.0 |
Andrettin/Wyrmsun | scripts/units_fauna.lua | 1 | 21894 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
Modified-MW-DF/modified-MDF | MWDF Project/Dwarf Fortress/hack/scripts/embark-skills.lua | 2 | 2635 | -- Adjusts dwarves' skills when embarking
--[====[
embark-skills
=============
Adjusts dwarves' skills when embarking.
Note that already-used skill points are not taken into account or reset.
:points N: Sets the skill points remaining of the selected dwarf to ``N``.
:points N all: Sets the skill poin... | mit |
TheAnswer/FirstTest | bin/scripts/object/tangible/component/food/secrets/objects.lua | 1 | 6177 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/artisan/noviceArtisan/bofaTreat.lua | 1 | 4087 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
Lunovox/minetest_nibirus_game | mods/add/lunoshooters/item_shotgun.lua | 1 | 1078 | minetest.register_tool("lunoshooters:shotgun", {
description = "Escopeta (12mm)",
inventory_image = "shooter_shotgun.png",
groups = { shooters=1 },
on_use = function(itemstack, user, pointed_thing)
local name = user:get_player_name()
lunoshooters:fire_weapon(user, pointed_thing, {
name = name,
range = 16,... | agpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/rori/creatures/capperSpineflapDrone.lua | 1 | 4671 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/entities/weapons/weapon_zs_sigilplacer/shared.lua | 1 | 4373 | SWEP.PrintName = "Sigil Placer"
SWEP.ViewModel = "models/weapons/c_pistol.mdl"
SWEP.WorldModel = "models/weapons/w_pistol.mdl"
SWEP.UseHands = true
SWEP.Primary.ClipSize = -1
SWEP.Primary.DefaultClip = -1
SWEP.Primary.Automatic = false
SWEP.Primary.Ammo = "none"
SWEP.Secondary.ClipSize = -1
SWEP.Secondar... | gpl-2.0 |
Modified-MW-DF/modified-MDF | MWDF Project/Dwarf Fortress/hack/scripts/make-monarch.lua | 2 | 1287 | --set target unit as king/queen
--[====[
make-monarch
============
Make the selected unit King or Queen of your civilisation.
]====]
local unit=dfhack.gui.getSelectedUnit()
if not unit then qerror("No unit selected") end
local newfig=dfhack.units.getNemesis(unit).figure
local my_entity=df.historical_enti... | mit |
robertbrook/underscore_lua | spec/any_spec.lua | 3 | 1240 | require 'spec_helper'
describe["_.any"] = function()
describe["when providing a truth function"] = function()
describe["when some of the elements pass the function"] = function()
before = function()
input = { 1,2,3 }
result = _.any(input, function(i) return i%2==0 end)
end
it["should return true"... | mit |
PAPAGENO-devels/papageno | test/benchmarks/Lua/lua-regression-test/grim/msb_thunder.lua | 1 | 1658 | msb_thunder_startwalk = 0
msb_thunder_stopwalk = 1
msb_thunder_walk = 2
msb_thunder_talk = 3
msb_thunder_stop_talk = 4
msb_thunder_run = 5
msb_thunder_start_run = 6
msb_thunder_stop_run = 7
msb_thunder_rest = 8
msb_thunder_turn_right = 9
msb_thunder_walk_upstairs = 10
msb_thunder_walk_downstairs = 11
msb_thunder_putbac... | gpl-2.0 |
hamode-Aliraq/HAMODE_ALIRAQE | plugins/list1.lua | 1 | 2770 | --[[
#
#ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#:((
# For More Information ....!
# Developer : hamode ⇒ @llual
# our channel: @Dev_com
# Version: 1.1
#:))
#ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#
]]
do
local fu... | gpl-2.0 |
PAPAGENO-devels/papageno | test/benchmarks/Lua/lua-regression-test/grim/dlg_bees.lua | 1 | 9920 | CheckFirstTime("dlg_bees.lua")
be1 = Dialog:create()
be1.focus = dd.barrel_bees
be1.intro = function(arg1) -- line 13
be1.node = "first_bee_node"
break_here()
break_here()
terry:remove_barrel_stamp()
if hh.union_card.owner == manny then
be1[190].off = TRUE
elseif lm.talked_union and not ... | gpl-2.0 |
gabrielPeart/keys | VSCOKeys.lrdevplugin/Terminate.lua | 11 | 1089 | --[[----------------------------------------------------------------------------
VSCO Keys for Adobe Lightroom
Copyright (C) 2015 Visual Supply Company
Licensed under GNU GPLv2 (or any later version).
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public Lic... | gpl-2.0 |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/Tween.lua | 1 | 2575 |
--------------------------------
-- @module Tween
-- @extend ProcessBase
-- @parent_module ccs
--------------------------------
--
-- @function [parent=#Tween] getAnimation
-- @param self
-- @return ArmatureAnimation#ArmatureAnimation ret (return value: ccs.ArmatureAnimation)
------------------... | apache-2.0 |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/Helper.lua | 1 | 3332 |
--------------------------------
-- @module Helper
-- @parent_module ccui
--------------------------------
-- brief Get a UTF8 substring from a std::string with a given start position and length<br>
-- Sample: std::string str = "涓浗涓浗涓浗"; substr = getSubStringOfUTF8String(str,0,2) will = "涓浗"<br>
-- para... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/tailor/casualWearIiiWeatherWear/decorativeDress.lua | 1 | 4641 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/spawns/dantooine/dungeons/forceCrystalHuntersCave.lua | 1 | 4747 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/endor/npcs/gundula/gundulaLoremaster.lua | 1 | 4588 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/entities/entities/status_packup/init.lua | 1 | 1772 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function ENT:PlayerSet(pPlayer, bExists)
pPlayer:EmitSound("items/ammocrate_open.wav")
pPlayer.PackUp = pPlayer
if self:GetStartTime() == 0 then
self:SetStartTime(CurTime())
end
end
function ENT:Think()
if self.Remo... | gpl-2.0 |
fkaa/iceball | pkg/base/ent/expl_grenade.lua | 4 | 3651 | --[[
This file is part of Ice Lua Components.
Ice Lua Components is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... | gpl-3.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/clothing/bodysuits/bodysuit6.lua | 1 | 2290 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
Entware-ng/entware-routing | luci-app-bmx6/bmx6/usr/lib/lua/luci/model/cbi/bmx6/tunnels.lua | 18 | 2336 | --[[
Copyright (C) 2011 Pau Escrich <pau@dabax.net>
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 later version.
Th... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/yavin4/creatures/ravagingGackleBat.lua | 1 | 4738 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
kyle-lu/fceux.js | output/luaScripts/Excitingbike-speedometeronly.lua | 9 | 2348 | --Exciting Bike - Speedometer
--Written by XKeeper
--Shows the speedometer (obviously)
require("x_functions");
if not x_requires then
-- Sanity check. If they require a newer version, let them know.
timer = 1;
while (true) do
timer = timer + 1;
for i = 0, 32 do
gui.drawbox( 6, 28 + i, 250, 92 - ... | gpl-2.0 |
Iliaaaaa/test | CWR.lua | 2 | 8578 | 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'
URL = require('socket.url')
JSON = require('dkjson')
redis = (loadfile "./redis.lua")()
redis2 = (loadfile "./redis2.lua")()
HTTPS = require('ssl.https... | agpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/yavin4/creatures/mawgaxFemale.lua | 1 | 4692 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
Andrettin/Wyrmsun | scripts/languages/turkish.lua | 1 | 1642 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
yannayl/packages | utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/cpu.lua | 74 | 1429 | -- stat/cpu collector
local function scrape()
local stat = get_contents("/proc/stat")
-- system boot time, seconds since epoch
metric("node_boot_time_seconds", "gauge", nil,
string.match(stat, "btime ([0-9]+)"))
-- context switches since boot (all CPUs)
metric("node_context_switches_total", "counter", n... | gpl-2.0 |
zhityer/zhityer1 | plugins/banhammer.lua | 27 | 10471 | local function is_user_whitelisted(id)
local hash = 'whitelist:user#id'..id
local white = redis:get(hash) or false
return white
end
local function is_chat_whitelisted(id)
local hash = 'whitelist:chat#id'..id
local white = redis:get(hash) or false
return white
end
local function kick_user(user_id, chat_id)... | gpl-2.0 |
Entware-ng/entware-routing | alfred/files/bat-hosts.lua | 1 | 3132 | #!/usr/bin/lua
local type_id = 64 -- bat-hosts
function get_hostname()
local hostfile = io.open("/proc/sys/kernel/hostname", "r")
local ret_string = hostfile:read()
hostfile:close()
return ret_string
end
function get_interfaces_names()
local ret = {}
for name in io.popen("ls -1 /sys/class/net/"):lines()... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.