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 |
|---|---|---|---|---|---|
chelog/brawl | addons/brawl-weapons/lua/cw/client/cw_clientmenu.lua | 1 | 6247 | local function CW2_GetLaserQualityText(level)
if level <= 1 then
return " Normal"
end
return " High"
end
CustomizableWeaponry.renderTargetSizes = {[1] = {size = 256, text = "Low (256x256)"},
[2] = {size = 512, text = "Medium (512x512)"},
[3] = {size = 768, text = "High (768x768)"},
[4] = {size = 1... | gpl-3.0 |
LaFamiglia/Illarion-Content | npc/base/consequence/warp.lua | 4 | 1102 | --[[
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 |
bsmr-games/lipsofsuna | data/lipsofsuna/core/objects/object-chunk-manager.lua | 1 | 2787 | --- Implements partitioning and swapping of map objects.
--
-- Lips of Suna 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 |
Noltari/luci | protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua | 2 | 4048 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local username, password, ac, service
local ipv6, defaultroute, metric, peerdns, dns,
keepalive_failure, keepalive_interval, demand, mtu
username = section:taboption("gener... | apache-2.0 |
LaFamiglia/Illarion-Content | monster/race_10_mummy/id_110_king.lua | 1 | 1560 | --[[
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 |
BHYCHIK/tntlua | spammerdb.lua | 5 | 2479 | -- spammerdb.lua
local function get_value(flags, stype)
return math.floor(flags / (4 ^ stype)) % 4
end
local function set_value(v, stype, old_flags)
return old_flags + v * 4 ^ stype
end
function spammerdb_get(userid, stype, ...)
-- client sends integers encoded as BER-strings
userid = box.unpack('i', useri... | bsd-2-clause |
pigparadise/skynet | service/datacenterd.lua | 8 | 1949 | local skynet = require "skynet"
local command = {}
local database = {}
local wait_queue = {}
local mode = {}
local function query(db, key, ...)
if key == nil then
return db
else
return query(db[key], ...)
end
end
function command.QUERY(key, ...)
local d = database[key]
if d ~= nil then
return query(d, ...... | mit |
adminomega/exterme-orginal | 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 |
spark0511/blueteambot | 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 |
chegenipapi/sajadchegen | 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 |
LaFamiglia/Illarion-Content | alchemy/base/alchemy.lua | 1 | 38279 | --[[
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 |
Ali-2h/wwefucker | 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 |
MustaphaTR/OpenRA | mods/d2k/maps/atreides-02b/atreides02b-AI.lua | 14 | 1137 | --[[
Copyright 2007-2022 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you 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 vers... | gpl-3.0 |
RedSnake64/openwrt-luci-packages | applications/luci-app-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/widgets_overview.lua | 68 | 1868 | -- Copyright 2012 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
local uci = require "luci.model.uci".cursor()
local fs = require "nixio.fs"
local utl = require "luci.util"
m = Map("freifunk-widgets", translate("Widgets"),
translate("Configure installed widget... | apache-2.0 |
luiseduardohdbackup/WarriorQuest | WarriorQuest/runtime/win32/Cocos2dConstants.lua | 13 | 16741 | cc = cc or {}
cc.SPRITE_INDEX_NOT_INITIALIZED = 0xffffffff
cc.TMX_ORIENTATION_HEX = 0x1
cc.TMX_ORIENTATION_ISO = 0x2
cc.TMX_ORIENTATION_ORTHO = 0x0
cc.Z_COMPRESSION_BZIP2 = 0x1
cc.Z_COMPRESSION_GZIP = 0x2
cc.Z_COMPRESSION_NONE = 0x3
cc.Z_COMPRESSION_ZLIB = 0x0
cc.BLEND_DST = 0x303
cc.BLEND_SRC = 0x1
... | mit |
LaFamiglia/Illarion-Content | item/id_290_cabbage.lua | 1 | 1250 | --[[
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 |
yanarsin/cnnbot | 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 |
alivilteram/seedteam | 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 |
Noltari/luci | protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6to4.lua | 72 | 1073 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local ipaddr, defaultroute, metric, ttl, mtu
ipaddr = section:taboption("general", Value, "ipaddr",
translate("Local IPv4 address"),
translate("Leave empty to use the current W... | apache-2.0 |
dismantl/luci-0.12 | modules/rpc/luasrc/controller/rpc.lua | 70 | 4443 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | apache-2.0 |
Inorizushi/DDR-X3 | BGAnimations/BGScripts/default.lua | 2 | 1189 | --DO NOT TRY TO LOAD THIS ACTOR DIRECTLY!!
--IT WILL NOT WORK!!
local t = Def.ActorFrame{};
local function setVisibility(self)
local song = GAMESTATE:GetCurrentSong();
local shouldShowBGScripts = false
if song then
shouldShowBGScripts = not song:HasBGChanges()
if shouldShowBGScri... | mit |
rjeli/node9 | fs/appl/syscall.lua | 3 | 13668 | -- system interface objects --
-- (see kernel startup for available kernel interfaces)
local S = {}
local stat = {}
function stat.new(...)
args = {...}
self = {}
self.name = ""
self.uid = ""
self.gid = ""
self.muid = ""
if not args[1] then
self.qid = {path = ffi.new("uint64_... | mit |
shahabsaf1/copy-infernal | plugins/Location.lua | 185 | 1565 | -- Implement a command !loc [area] which uses
-- the static map API to get a location image
-- Not sure if this is the proper way
-- Intent: get_latlong is in time.lua, we need it here
-- loadfile "time.lua"
-- Globals
-- If you have a google api key for the geocoding/timezone api
do
local api_key = nil
local base_... | gpl-2.0 |
koeppea/ettercap | src/lua/share/scripts/http_requests.lua | 12 | 2720 | ---
--
-- Created by Ryan Linn and Mike Ryan
-- Copyright (C) 2012 Trustwave Holdings, Inc.
description = "Script to show HTTP requsts";
local http = require("http")
local packet = require("packet")
local bin = require("bit")
hook_point = http.hook
packetrule = function(packet_object)
-- If this isn't a tcp pa... | gpl-2.0 |
AleksCore/Mr.Green-MTA-Resources | resources/[gameplay]/mapstop100/votestop100_c.lua | 3 | 9181 | welcomeText = "Welcome to the Mr.Green Maps top 100! Choose maps from the list on the left you want to vote for and add\nthem with the 'Add' button. If you made a mistake simply remove the vote with the 'remove' button. When\nyou carefully selected the maps press the 'Cast vote' button. You may vote up to a maximum of ... | mit |
TheAncientGoat/GodheadLips | data/system/file.lua | 1 | 1302 | if not Los.program_load_extension("file") then
error("loading extension `file' failed")
end
File = Class()
File.class_name = "File"
--- Reads the contents of a file.
-- @param self File class.
-- @param name File name relative to the mod root.
-- @return String or nil.
File.read = function(self, name)
return Los.fi... | gpl-3.0 |
shingenko/darkstar | scripts/zones/La_Theine_Plateau/npcs/Cermet_Headstone.lua | 17 | 2685 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Cermet Headstone
-- Involved in Mission: ZM5 Headstone Pilgrimage (Water Fragment)
-- @pos -170 39 -504 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
--------------------------------... | gpl-3.0 |
shingenko/darkstar | scripts/globals/spells/bluemagic/power_attack.lua | 28 | 1761 | -----------------------------------------
-- Spell: Power Attack
-- Deals critical damage. Chance of critical hit varies with TP
-- Spell cost: 5 MP
-- Monster Type: Vermin
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 1
-- Stat Bonus: MND+1
-- Level: 4
-- Casting Time: 0.5 seconds
-- Recast Time: 7.2... | gpl-3.0 |
simon-wh/PAYDAY-2-BeardLib | Modules/Utils/DependenciesModule.lua | 2 | 4343 | DependenciesModule = DependenciesModule or BeardLib:ModuleClass("Dependencies", ModuleBase)
function DependenciesModule:Load(config)
config = config or self._config
local missing_dep = false
for _, dep in ipairs(config) do
if dep.name then
local meta = dep._meta:lower()
loc... | mit |
shingenko/darkstar | scripts/globals/spells/horde_lullaby_ii.lua | 10 | 1265 | -----------------------------------------
-- Spell: Horde Lullaby
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,... | gpl-3.0 |
jyggen/lua-parser | tests/Fixtures/cf/5e/bb/fc1de34220024fedb8c1afbb155a34706c59ff2e21bcd9fc066bd9d735.lua | 1 | 56853 |
TRP3_Profiles = {
["0720161639zFLPT"] = {
["player"] = {
["characteristics"] = {
["RA"] = "Human",
["EC"] = "Blue",
["LN"] = "Claridge",
["MI"] = {
},
["FN"] = "Jett",
["PS"] = {
},
["AG"] = "Thirties",
["CL"] = "Commoner",
["IC"] = "Achievement_Characte... | mit |
clemty/OpenRA | mods/cnc/maps/gdi05a/gdi05a.lua | 4 | 6649 | RepairThreshold = { Easy = 0.3, Normal = 0.6, Hard = 0.9 }
ActorRemovals =
{
Easy = { Actor167, Actor168, Actor190, Actor191, Actor193, Actor194, Actor196, Actor198, Actor200 },
Normal = { Actor167, Actor194, Actor196, Actor197 },
Hard = { },
}
GdiTanks = { "mtnk", "mtnk" }
GdiApc = { "apc" }
GdiInfantry = { "e1",... | gpl-3.0 |
wagonrepairer/Zero-K | LuaUI/Widgets/chili_new/controls/multiprogressbar.lua | 7 | 4265 | --//=============================================================================
--- Multiprogressbar module
--- Multiprogressbar fields.
-- Inherits from Control.
-- @see control.Control
-- @table Multiprogressbar
-- @bool[opt=false] drawBorder should the border be drawn?
-- @tparam {r,g,b,a} borderColor specifies ... | gpl-2.0 |
wagonrepairer/Zero-K | scripts/dynsupport.lua | 3 | 16082 | include "constants.lua"
dyncomm = include('dynamicCommander.lua')
local spSetUnitShieldState = Spring.SetUnitShieldState
-- pieces
local base = piece 'base'
local pelvis = piece 'pelvis'
local turret = piece 'turret'
local torso = piece 'torso'
local head = piece 'head'
local armhold = piece 'armhold'
local ru... | gpl-2.0 |
shingenko/darkstar | scripts/globals/mobskills/Cyclone_Wing.lua | 18 | 1140 | ---------------------------------------------
-- Tebbad Wing
--
-- Description: Deals darkness damage to enemies within a very wide area of effect. Additional effect: Sleep
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: 30' radial.
-- Notes: Used only by Vrtra and Azdaja
--------------... | gpl-3.0 |
Illarion-eV/Illarion-Content | quest/gorgophone_520_wilderness.lua | 1 | 35759 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
shingenko/darkstar | scripts/zones/Crawlers_Nest/npcs/qm12.lua | 57 | 2120 | -----------------------------------
-- Area: Crawlers' Nest
-- NPC: qm12 (??? - Exoray Mold Crumbs)
-- Involved in Quest: In Defiant Challenge
-- @pos 99.326 -0.126 -188.869 197
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Palborough_Mines/Zone.lua | 27 | 1673 | -----------------------------------
--
-- Zone: Palborough_Mines (143)
--
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Palborough_Mines/TextIDs");
---------... | gpl-3.0 |
obsy/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/startup.lua | 74 | 2567 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2010-2012 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2010 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local sys = require "luci.sys"
local inits = { }
for _, name ... | apache-2.0 |
openwayne/chaos_theory | mods/animals_modpack/animal_wolf/init.lua | 1 | 6820 | -------------------------------------------------------------------------------
-- Mob Framework Mod by Sapier
--
-- You may copy, use, modify or do nearly anything except removing this
-- copyright notice.
-- And of course you are NOT allowed to pretend you have written it.
--
--! @file init.lua
--! @brief wolf implem... | lgpl-2.1 |
wagonrepairer/Zero-K | units/turrettorp.lua | 7 | 5270 | unitDef = {
unitname = [[turrettorp]],
name = [[Urchin]],
description = [[Torpedo Launcher]],
acceleration = 0,
activateWhenBuilt = true,
brakeRate = 0,
buildAngle = 16384,
buildCostEnergy = 120,
buildCostMetal = 120,
builder = false,
... | gpl-2.0 |
wagonrepairer/Zero-K | units/striderhub.lua | 3 | 5213 | unitDef = {
unitname = [[striderhub]],
name = [[Strider Hub]],
description = [[Constructs Striders, Builds at 10 m/s]],
acceleration = 0,
brakeRate = 1.5,
buildCostEnergy = 600,
buildCostMeta... | gpl-2.0 |
obsy/luci | modules/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... | apache-2.0 |
redstormbot/zrdb | plugins/dictionary.lua | 58 | 1663 |
--[[
-- Translate text using Google Translate.
-- http://translate.google.com/translate_a/single?client=t&ie=UTF-8&oe=UTF-8&hl=en&dt=t&tl=en&sl=auto&text=hello
--]]
do
function translate(source_lang, target_lang, text)
local path = "http://translate.google.com/translate_a/single"
-- URL query parameters
local p... | gpl-2.0 |
cuberite/CuberitePluginChecker | Simulator.lua | 2 | 52490 | -- Simulator.lua
-- Implements the Cuberite simulator
--[[
Usage:
local sim = require("Simulator").create()
-- Possibly use sim as an upvalue in special API function implementations
-- Extend the simulator's sandbox etc.
sim:run(options, api)
The simulator keeps a sandbox for the plugin files, lists of registered... | unlicense |
openwayne/chaos_theory | mods/worldedit/serialization.lua | 10 | 8359 | --- Schematic serialization and deserialiation.
-- @module worldedit.serialization
worldedit.LATEST_SERIALIZATION_VERSION = 5
local LATEST_SERIALIZATION_HEADER = worldedit.LATEST_SERIALIZATION_VERSION .. ":"
--[[
Serialization version history:
1: Original format. Serialized Lua table with a weird linked ... | lgpl-2.1 |
Cyumus/Plugins | vault/items/sh_repairment.lua | 1 | 1269 | ITEM.name = "Toolkit"
ITEM.desc = "A toolkit."
ITEM.uniqueID = "toolkit"
ITEM.model = Model("models/props_c17/SuitCase001a.mdl")
ITEM.category = "Utils"
ITEM.flag = "i"
ITEM.price = 200
ITEM.functions = {}
ITEM.functions.Open = {
text = "Open",
run = function(itemTable, client, data)
if (CLIENT) then ret... | gpl-3.0 |
ld-test/dromozoa-commons | dromozoa/commons/base16.lua | 3 | 3545 | -- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com>
--
-- This file is part of dromozoa-commons.
--
-- dromozoa-commons 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... | gpl-3.0 |
wagonrepairer/Zero-K | effects/gundam_dirt.lua | 24 | 11215 | -- dirt3
-- dirt
-- dirt2
return {
["dirt3"] = {
poof01 = {
air = true,
class = [[CSimpleParticleSystem]],
count = 10,
ground = true,
properties = {
airdrag = 1.0,
alwaysvisible = false,
col... | gpl-2.0 |
xFleury/crawl-0.13.0-fairplay | source/dat/dlua/layout/hyper_decor.lua | 1 | 4755 | ------------------------------------------------------------------------------
-- v_decor.lua:
--
-- Functions that handle decorating walls, doors, and other points of interest
------------------------------------------------------------------------------
hyper.decor = {}
---------------------------------------------... | gpl-2.0 |
shingenko/darkstar | scripts/globals/spells/victory_march.lua | 18 | 1419 | -----------------------------------------
-- Spell: Victory March
-- Gives party members Haste
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,spe... | gpl-3.0 |
shingenko/darkstar | scripts/globals/weaponskills/blast_shot.lua | 30 | 1320 | -----------------------------------
-- Blast Shot
-- Marksmanship weapon skill
-- Skill Level: 200
-- Delivers a melee-distance ranged attack. params.accuracy varies with TP.
-- Aligned with the Snow Gorget & Light Gorget.
-- Aligned with the Snow Belt & Light Belt.
-- Element: None
-- Modifiers: AGI:30%
-- 10... | gpl-3.0 |
openwayne/chaos_theory | mods/animalmaterials/cooking/init.lua | 1 | 3667 | ---------------------------------------------------------
--Cooking Support, added by Mr Elmux
-- You may use modify or do nearly anything except removing this Copyright hint
-----------------------------------------------------------
local version = "0.1.1"
core.log("action","MOD: Loading cooking (by Mr Elmux) ...")
c... | lgpl-2.1 |
shadobaker/TeleBeyond | plugins/chat.lua | 7 | 2910 | local function run(msg)
if msg.text == "hi" then
return "Hello\n"..msg.from.first_name
end
if msg.text == "Hi" then
return "Hello\n"..msg.from.first_name
end
if msg.text == "Hello" then
return "Hi\n"..msg.from.first_name
end
if msg.text == "hello" then
return "Hi\n"..msg.from.first_name
end
if msg.text == "slm" the... | gpl-2.0 |
wagonrepairer/Zero-K | LuaRules/Gadgets/exp_no_air_nuke.lua | 17 | 1024 | -- $Id: exp_no_air_nuke.lua 3171 2008-11-06 09:06:29Z det $
function gadget:GetInfo()
return {
name = "NoAirNuke",
desc = "Disables the custom nuke effect, if the nuke is shoot in the air.",
author = "jK",
date = "Dec, 2007",
license = "GNU GPL, v2 or later",
layer = 0... | gpl-2.0 |
fzimmermann89/texlive.js | texlive/texmf-dist/tex/luatex/lualibs/lualibs-lpeg.lua | 4 | 38440 | if not modules then modules = { } end modules ['l-lpeg'] = {
version = 1.001,
comment = "companion to luat-lib.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
-- we can get too many ca... | gpl-2.0 |
shingenko/darkstar | scripts/globals/mobskills/Damnation_Dive.lua | 18 | 1351 | ---------------------------------------------
-- Damnation Dive
--
-- Description: Dives into a single target. Additional effect: Knockback + Stun
-- Type: Physical
-- Utsusemi/Blink absorb: 3 shadow
-- Range: Melee
-- Notes: Used instead of Gliding Spike by certain notorious monsters.
---------------------------... | gpl-3.0 |
ld-test/dromozoa-commons | test/test_base64.lua | 3 | 1684 | -- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com>
--
-- This file is part of dromozoa-commons.
--
-- dromozoa-commons 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... | gpl-3.0 |
Illarion-eV/Illarion-Content | lte/debuff_constitution.lua | 5 | 1185 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
shingenko/darkstar | scripts/zones/Mount_Zhayolm/npcs/qm3.lua | 16 | 1173 | -----------------------------------
-- Area: Mount Zhayolm
-- NPC: ??? (Spawn Anantaboga(ZNM T2))
-- @pos -368 -13 366 61
-----------------------------------
package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mount_Zhayolm/TextIDs");
--------------... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Western_Altepa_Desert/npcs/_3h7.lua | 17 | 1890 | -----------------------------------
-- Area: Western Altepa Desert
-- NPC: _3h7 (Emerald Column)
-- Notes: Mechanism for Altepa Gate
-- @pos -775 2 -460 125
-----------------------------------
package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("... | gpl-3.0 |
simon-wh/PAYDAY-2-BeardLib | Modules/Addons/InteractionsModule.lua | 2 | 1104 | InteractionsModule = InteractionsModule or BeardLib:ModuleClass("Interactions", ItemModuleBase)
InteractionsModule.required_params = {}
function InteractionsModule:AddInteractionsDataToTweak(i_self)
for _, data in ipairs(self._config) do
if data._meta == "interaction" then
if i_self[data.id] the... | mit |
shingenko/darkstar | scripts/zones/Al_Zahbi/npcs/Taten-Bilten.lua | 19 | 1155 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Taten-Bilten
-- Guild Merchant NPC: Clothcraft Guild
-- @pos 71.598 -6.000 -56.930 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
re... | gpl-3.0 |
Illarion-eV/Illarion-Content | content/_gods/bragon.lua | 3 | 1961 | --[[
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 |
wagonrepairer/Zero-K | effects/gundam_unitrupture.lua | 25 | 3297 | -- unitrupture
return {
["unitrupture"] = {
dirtg = {
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
properties = {
airdrag = 0.7,
alwaysvisible = true,
colormap = [[0.1 0.1 0.1 1.0 0.5 0... | gpl-2.0 |
shingenko/darkstar | scripts/globals/mobskills/Blade_Metsu.lua | 18 | 1156 | ---------------------------------------------
-- Blade Metsu
--
-- Description: Additional effect: Paralysis
-- Hidden effect: temporarily enhances Subtle Blow effect.
-- Type: Physical
-- Range: Melee
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/sta... | gpl-3.0 |
ArcherSys/ArcherSys | Lua/lua/luarocks/fs/lua.lua | 1 | 18172 |
--- Native Lua implementation of filesystem and platform abstractions,
-- using LuaFileSystem, LZLib, MD5 and LuaCurl.
module("luarocks.fs.lua", package.seeall)
local fs = require("luarocks.fs")
local cfg = require("luarocks.cfg")
local dir = require("luarocks.dir")
local util = require("luarocks.util")
local socke... | mit |
wagonrepairer/Zero-K | LuaRules/Gadgets/factory_anti_slacker.lua | 11 | 1772 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
ArcherSys/ArcherSys | Lua/lua/oil/corba/services/event/ProxyPushSupplier.lua | 7 | 2450 | local oil = require "oil"
local oo = require "oil.oo"
local assert = require "oil.assert"
module("oil.corba.services.event.ProxyPushSupplier", oo.class)
function __init(class, admin)
return oo.rawnew(class, {
admin = admin,
connected = false,
push_consumer = nil
... | mit |
wagonrepairer/Zero-K | LuaRules/Gadgets/unit_oneclick_weapon.lua | 11 | 6231 | ------------------------------------------------------------------------------
-- HOW IT WORKS:
-- Just calls a function in the unit script (to emit-sfx the weapon etc.)
-- and sets reload time for one of the unit's weapons
--------------------------------------------------------------------------------
function gadge... | gpl-2.0 |
psychon/awesome | tests/examples/shims/root.lua | 1 | 3925 | local root = {_tags={}}
local gtable = require("gears.table")
local hotkeys = nil
function root:tags()
return root._tags
end
function root:size() --TODO use the screens
return 0, 0
end
function root:size_mm()
return 0, 0
end
function root.cursor() end
-- GLOBAL KEYBINDINGS --
local keys = {}
functi... | gpl-2.0 |
shingenko/darkstar | scripts/globals/items/bowl_of_mog_pudding.lua | 36 | 1154 | -----------------------------------------
-- ID: 6009
-- Item: Bowl of Mog Pudding
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP 7
-- Vitality 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
----... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Cape_Teriggan/npcs/relic.lua | 38 | 1841 | -----------------------------------
-- Area: Cape Terrigan
-- NPC: <this space intentionally left blank>
-- @pos 73 4 -174 113
-----------------------------------
package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Cape_Teriggan/TextIDs");
---------... | gpl-3.0 |
Illarion-eV/Illarion-Content | alchemy/item/id_167_yellow_bottle.lua | 1 | 2052 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
shingenko/darkstar | scripts/globals/items/carpenters_belt.lua | 30 | 1212 | -----------------------------------------
-- ID: 15444
-- Item: Carpenter's belt
-- Enchantment: Synthesis image support
-- 2Min, All Races
-----------------------------------------
-- Enchantment: Synthesis image support
-- Duration: 2Min
-- Woodworking Skill +3
-----------------------------------------
re... | gpl-3.0 |
shingenko/darkstar | scripts/globals/weaponskills/geirskogul.lua | 18 | 2004 | -----------------------------------
-- Geirskogul
-- Polearm weapon skill
-- Skill Level: N/A
-- Gae Assail/Gungnir: Shock Spikes.
-- This weapon skill is only available with the stage 5 relic Polearm Gungnir, within Dynamis with the stage 4 Gae Assail, or by activating the latent effect on the Skogul Lance.
-- A... | gpl-3.0 |
ld-test/busted.ryanplusplus | busted/outputHandlers/utfTerminal.lua | 2 | 4523 | local ansicolors = require 'ansicolors'
local s = require 'say'
local pretty = require 'pl.pretty'
return function(options, busted)
local handler = require 'busted.outputHandlers.base'(busted)
local successDot = ansicolors('%{green}●')
local failureDot = ansicolors('%{red}●')
local errorDot = ansicolors('%... | mit |
matinJ/skynet | examples/client.lua | 67 | 2101 | package.cpath = "luaclib/?.so"
package.path = "lualib/?.lua;examples/?.lua"
if _VERSION ~= "Lua 5.3" then
error "Use lua 5.3"
end
local socket = require "clientsocket"
local proto = require "proto"
local sproto = require "sproto"
local host = sproto.new(proto.s2c):host "package"
local request = host:attach(sproto.n... | mit |
fzimmermann89/texlive.js | texlive/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/phylogenetics/DistanceMatrix.lua | 1 | 12413 | -- Copyright 2013 by Till Tantau
--
-- This file may be distributed an/or modified
--
-- 1. under the LaTeX Project Public License and/or
-- 2. under the GNU Public License
--
-- See the file doc/generic/pgf/licenses/LICENSE for more information
-- @release $Header$
local DistanceMatrix = {}
-- Imports
local Int... | gpl-2.0 |
shingenko/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5f5.lua | 34 | 1106 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Shiva's Gate
-- @pos 270 -34 100 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs")... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Port_Windurst/npcs/Kumama.lua | 36 | 1748 | -----------------------------------
-- Area: Port Windurst
-- NPC: Kumama
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/zones/Port_Windurst/TextIDs... | gpl-3.0 |
ld-test/dromozoa-commons | dromozoa/commons/sequence_writer.lua | 1 | 1487 | -- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com>
--
-- This file is part of dromozoa-commons.
--
-- dromozoa-commons 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... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Halvung/mobs/Wamouracampa.lua | 16 | 1604 | -----------------------------------
-- Area: Halvung
-- MOB: Wamouracampa
-----------------------------------
require("scripts/globals/status");
-- TODO: Damage resistances in streched and curled stances. Halting movement during stance change. Morph into Wamoura.
-----------------------------------
-- OnMob... | gpl-3.0 |
raffomania/ideophilia | src/states/menuState.lua | 1 | 1024 |
local GameState = require("states/gameState")
local KeyPressed = require("events/keyPressed")
-- State superclass
local State = require("core/state")
local MenuState = class("MenuState", State)
function MenuState:load()
self.engine = Engine()
self.eventmanager = EventManager()
end
function MenuState:update... | mit |
hiddenvirushacker/hiddenvirus | 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 |
wagonrepairer/Zero-K | scripts/armsptk.lua | 11 | 4999 | include "constants.lua"
include "spider_walking.lua"
--------------------------------------------------------------------------------
-- pieces
--------------------------------------------------------------------------------
local base = piece 'base'
local turret = piece 'turret'
local box = piece 'box'
local leg1 =... | gpl-2.0 |
shingenko/darkstar | scripts/zones/Throne_Room/npcs/_4l2.lua | 51 | 1172 | -----------------------------------
-- Area: Throne Room
-- NPC: Ore Door
-------------------------------------
require("scripts/globals/bcnm");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
if (TradeBCNM(player,player:ge... | gpl-3.0 |
ArcherSys/ArcherSys | Lua/lua/oil/arch/ludo.lua | 1 | 1061 | local port = require "oil.port"
local component = require "oil.component"
local arch = require "oil.arch"
module "oil.arch.ludo"
-- MARSHALING
ValueEncoder = component.Template{
codec = port.Facet,
}
-- REFERENCES
ObjectReferrer = component.Template{
references = port.Facet,
}
-- REQUESTER
OperationRequ... | mit |
ld-test/dromozoa-commons | test/test_double.lua | 1 | 1772 | -- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com>
--
-- This file is part of dromozoa-commons.
--
-- dromozoa-commons 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... | gpl-3.0 |
QuetzalQatl/RustPluginManual | SnapshotAllPlugins/email.lua | 1 | 5188 | PLUGIN.Title = "Email API"
PLUGIN.Version = V(0, 1, 3)
PLUGIN.Description = "API for sending email messages via supported transactional email services."
PLUGIN.Author = "Wulfspider"
PLUGIN.Url = "http://forum.rustoxide.com/plugins/712/"
PLUGIN.ResourceId = 712
PLUGIN.HasConfig = true
local debug = false
function PLUG... | gpl-2.0 |
nadavo/DeepLearningCourse | hw3/utils/trainRecurrent.lua | 1 | 7972 | require 'optim'
require 'eladtools'
require 'nn'
require 'recurrent'
----------------------------------------------------------------------
-- Output files configuration
os.execute('mkdir -p ' .. opt.save)
cmd:log(opt.save .. '/log.txt', opt)
local netFilename = paths.concat(opt.save, 'Net')
local optStateFilename = p... | mit |
kveratis/GameCode4 | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/luasql/tests/test.lua | 1 | 24318 | #!/usr/local/bin/lua5.1
-- See Copyright Notice in license.html
-- $Id: test.lua,v 1.52 2008/06/30 10:43:03 blumf Exp $
TOTAL_FIELDS = 40
TOTAL_ROWS = 40 --unused
DEFINITION_STRING_TYPE_NAME = "text"
QUERYING_STRING_TYPE_NAME = "text"
CREATE_TABLE_RETURN_VALUE = 0
DROP_TABLE_RETURN_VALUE = 0
MSG_CURSOR... | lgpl-3.0 |
wagonrepairer/Zero-K | LuaRules/Gadgets/unit_attributes.lua | 3 | 18430 |
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "Attributes",
desc = "Handles UnitRu... | gpl-2.0 |
wagonrepairer/Zero-K | units/armca.lua | 2 | 5953 | unitDef = {
unitname = [[armca]],
name = [[Crane]],
description = [[Construction Aircraft, Builds at 4 m/s]],
acceleration = 0.1,
airStrafe = 0,
amphibious = true,
brakeRate = 0.1,
buildCostEnergy = 220,
buildCostMetal = 22... | gpl-2.0 |
matinJ/skynet | lualib/mysql.lua | 31 | 15725 | -- Copyright (C) 2012 Yichun Zhang (agentzh)
-- Copyright (C) 2014 Chang Feng
-- This file is modified version from https://github.com/openresty/lua-resty-mysql
-- The license is under the BSD license.
-- Modified by Cloud Wu (remove bit32 for lua 5.3)
local socketchannel = require "socketchannel"
local mysqlaux = req... | mit |
obsy/luci | applications/luci-app-dump1090/luasrc/model/cbi/dump1090.lua | 30 | 7206 | -- Copyright 2014-2015 Álvaro Fernández Rojas <noltari@gmail.com>
-- Licensed to the public under the Apache License 2.0.
m = Map("dump1090", "dump1090", translate("dump1090 is a Mode S decoder specifically designed for RTLSDR devices, here you can configure the settings."))
s = m:section(TypedSection, "dump1090", ""... | apache-2.0 |
shingenko/darkstar | scripts/zones/Ifrits_Cauldron/npcs/relic.lua | 38 | 1848 | -----------------------------------
-- Area: Ifrit's Cauldron
-- NPC: <this space intentionally left blank>
-- @pos -18 40 20 205
-----------------------------------
package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Ifrits_Cauldron/TextIDs");
--... | gpl-3.0 |
jsat97/sysdig | userspace/sysdig/chisels/iobytes_file.lua | 18 | 1602 | --[[
Copyright (C) 2013-2014 Draios inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without... | gpl-2.0 |
kveratis/GameCode4 | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/loop/lua/loop/collection/MapWithArrayOfKeys.lua | 1 | 2412 | --------------------------------------------------------------------------------
---------------------- ## ##### ##### ###### -----------------------
---------------------- ## ## ## ## ## ## ## -----------------------
---------------------- ## ## ## ## ## ###### -----------------... | lgpl-3.0 |
shingenko/darkstar | scripts/zones/Kazham-Jeuno_Airship/Zone.lua | 28 | 1458 | -----------------------------------
--
-- Zone: Kazham-Jeuno_Airship
--
-----------------------------------
-----------------------------------
-- onInitialize
-----------------------------------
function onInitialize(zone)
end;
-----------------------------------
-- onZoneIn
------------------------... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.