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 |
|---|---|---|---|---|---|
oceancn/luci-nwan | luci/applications/luci-shadowsocks/luasrc/model/cbi/shadowsocks.lua | 2 | 3645 | --[[
RA-MOD
]]--
local fs = require "nixio.fs"
local sslocal =(luci.sys.call("pidof ss-local > /dev/null") == 0)
local ssredir =(luci.sys.call("pidof ss-redir > /dev/null") == 0)
local button =""
if sslocal or ssredir then
m = Map("shadowsocks", translate("shadowsocks"), translate("shadowsocks is running"))
else
... | mit |
Zomis/FactorioMods | advanced-combinator_1.1.0/gui.lua | 1 | 15045 | local logic = require "logic"
local common = require "common"
-- A table stored in `global.player_opened`.
-- Key: player index
-- Value: { gui = frameRoot, combinator = advanced_combinator }
local player_opened_map = nil
local function player_opened(player, new_value)
global.player_opened = global.player_opened or... | mit |
Scavenge/darkstar | scripts/zones/Lower_Jeuno/npcs/Miladi-Nildi.lua | 14 | 1047 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Miladi-Nildi
-- Type: Standard NPC
-- @zone 245
-- @pos 39.898 -5.999 77.190
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------... | gpl-3.0 |
fengshao0907/ABTestingGateway | diversion/diversion.lua | 22 | 7762 | local runtimeModule = require('abtesting.adapter.runtime')
local redisModule = require('abtesting.utils.redis')
local systemConf = require('abtesting.utils.init')
local handler = require('abtesting.error.handler').handler
local ERRORINFO = require('abtesting.error.errcode').info
local cjson = requi... | mit |
Scavenge/darkstar | scripts/globals/items/coffeecake_muffin.lua | 12 | 1371 | -----------------------------------------
-- ID: 5655
-- Item: coffeecake_muffin
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Mind 1
-- Strength -1
-- MP % 10 (cap 85)
-----------------------------------------
require("scripts/globals/status");
----------------------------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/FeiYin/mobs/Specter.lua | 14 | 3722 | -----------------------------------
-- Area: Fei'Yin
-- MOB: Specter
-----------------------------------
require("scripts/zones/FeiYin/MobIDs");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob, player, isKiller)... | gpl-3.0 |
LuaDist2/lustache | src/lustache/scanner.lua | 12 | 1384 | local string_find, string_match, string_sub =
string.find, string.match, string.sub
local scanner = {}
-- Returns `true` if the tail is empty (end of string).
function scanner:eos()
return self.tail == ""
end
-- Tries to match the given regular expression at the current position.
-- Returns the ma... | mit |
lingmann/dcos | packages/adminrouter/extra/src/lib/resty/evp.lua | 10 | 11550 | -- Copyright (C) by Daniel Hiltgen (daniel.hiltgen@docker.com)
local ffi = require "ffi"
local _C = ffi.C
local _M = { _VERSION = "0.0.2" }
local CONST = {
SHA256_DIGEST = "SHA256",
SHA512_DIGEST = "SHA512",
}
_M.CONST = CONST
-- Reference: https://wiki.openssl.org/index.php/EVP_Signing_and_Verifying
ffi.... | apache-2.0 |
Scavenge/darkstar | scripts/globals/items/felicifruit.lua | 12 | 1197 | -----------------------------------------
-- ID: 5964
-- Item: Felicifruit
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -7
-- Intelligence 5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
---... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Northern_San_dOria/npcs/Vichuel.lua | 17 | 1946 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Vichuel
-- Only sells when San d'Oria controlls Fauregandi Region
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/North... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/spells/vital_etude.lua | 27 | 1611 | -----------------------------------------
-- Spell: Vital Etude
-- Static VIT Boost, BRD 70
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagi... | gpl-3.0 |
Zomis/FactorioMods | advanced-combinator_1.1.0/logic/signal_set.lua | 1 | 2842 | local constants = require "prototypes/constants"
local common = require "common"
local function set_signal(logic, entity, current, index, signal_type, signal_value)
if not signal_type then
return
end
local max_range = constants[entity.name]
if index == nil then
entity.force.print("[Advanced Combinator]... | mit |
DebugClub/slua | build/luajit-2.0.4/dynasm/dasm_x86.lua | 116 | 58970 | ------------------------------------------------------------------------------
-- DynASM x86/x64 module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
local x64 = x64
-- Module i... | mit |
Scavenge/darkstar | scripts/zones/Alzadaal_Undersea_Ruins/npcs/_20m.lua | 9 | 8247 | -----------------------------------
-- Area: Alzadaal Undersea Ruins
-- Door: Runic Seal
-- @pos 125 -2 20 72
-----------------------------------
package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/mis... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Rala_Waterways/Zone.lua | 17 | 1223 | -----------------------------------
--
-- Zone: Rala Waterways
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Rala_Waterways/TextIDs"] = nil;
require("scripts/zones/Rala_Waterways/TextIDs");
-----------------------------------
-- onInitialize
-------------... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaRules/Gadgets/unit_turn.lua | 13 | 3957 | function gadget:GetInfo()
return {
name = "Turn Command",
desc = "Implements Turn command for vehicles",
author = "FLOZi, yuritch", -- yuritch is magical
date = "5/02/10",
license = "PD",
layer = -5,
enabled = false -- loaded by default?
}
end
include("LuaRules/Configs/custo... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/MieuseloirBEnchelles1.lua | 14 | 1027 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Miuseloir B Enchelles
-- @zone 80
-- @pos 120 0 104
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
------------------------------... | gpl-3.0 |
Kyklas/luci-proto-hso | applications/luci-asterisk/luasrc/model/cbi/asterisk/voicemail.lua | 80 | 1684 | --[[
LuCI - Lua Configuration Interface
Copyright 2009 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$
]]--
lo... | apache-2.0 |
Zero-K-Experiments/Zero-K-Experiments | effects/klara.lua | 25 | 6569 | -- klara
-- klara_smokejets
return {
["klara"] = {
boom = {
air = true,
class = [[CExpGenSpawner]],
count = 1,
ground = true,
water = true,
properties = {
delay = [[0 i1]],
explosion... | gpl-2.0 |
trms/lpeg | test.lua | 46 | 43600 | #!/usr/bin/env lua5.1
-- $Id: test.lua,v 1.105 2014/12/12 17:00:39 roberto Exp $
-- require"strict" -- just to be pedantic
local m = require"lpeg"
-- for general use
local a, b, c, d, e, f, g, p, t
-- compatibility with Lua 5.2
local unpack = rawget(table, "unpack") or unpack
local loadstring = rawget(_G, "lo... | mit |
Scavenge/darkstar | scripts/zones/Norg/npcs/Louartain.lua | 15 | 1383 | -----------------------------------
-- Area: Norg
-- NPC: Louartain
-- Standard Info NPC
-----------------------------------
require("scripts/globals/pathfind");
local path = {
41.878349, -6.282223, 10.820915,
42.088036, -6.282223, 11.867051,
42.096603, -6.282223, 12.939011,
42.104187, -6.282223, 17.270992,
42.126625... | gpl-3.0 |
lordporya1/6985 | plugins/id.lua | 24 | 4404 | do
local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
local function scan_name(extra, success, result)
local f... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/King_Ranperres_Tomb/mobs/Vrtra.lua | 19 | 2405 | -----------------------------------
-- Area: King Ranperre's Tomb
-- MOB: Vrtra
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/titles");
local offsets = {1, 3, 5, 2, 4, 6};
-----------------------------------
-- OnMobInitialize Action
--------------------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/items/greedie.lua | 12 | 1322 | -----------------------------------------
-- ID: 4500
-- Item: greedie
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 1
-- Mind -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----------... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/items/tricolored_carp.lua | 12 | 1330 | -----------------------------------------
-- ID: 4426
-- Item: tricolored_carp
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
---... | gpl-3.0 |
XingxingZhang/lstm-lm | nnets/LSTMLM.lua | 1 | 8683 |
require 'torch'
require 'nn'
require 'optim'
require 'nngraph'
require 'EMaskedClassNLLCriterion'
require 'basic'
local model_utils = require 'model_utils'
local lstm_util = require 'lstmutil'
local LSTMLM = torch.class('LSTMLM', 'BModel')
function LSTMLM:__init(opts)
self.opts = opts
self.name = 'LSTMLM'
se... | apache-2.0 |
Scavenge/darkstar | scripts/zones/Windurst_Woods/npcs/Kororo.lua | 13 | 3630 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Kororo
-- Type: Standard NPC
-- @zone 241
-- @pos -11.883 -3.75 5.508
-- Starts quest: A Greeting Cardian
-- Involved in quests: Lost Chick
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.lo... | gpl-3.0 |
1yvT0s/luvit | tests/test-path.lua | 14 | 28907 | --[[
Copyright 2012 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 or agr... | apache-2.0 |
Scavenge/darkstar | scripts/globals/items/vongola_clam.lua | 12 | 1688 | -----------------------------------------
-- ID: 5131
-- Item: Vongola Clam
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity -5
-- Vitality 4
-- Defense +17% - 50 Cap
-- HP 5% - 50 Cap
-----------------------------------------
require("scripts/globals/status");
----------------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Temple_of_Uggalepih/npcs/qm8.lua | 14 | 1645 | -----------------------------------
-- Area: Temple of Uggalepih (159)
-- NPC: qm8 (???)
-- Notes: Used to spawn Habetrot
-- @pos -57.434 -8.484 55.317 0
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/T... | gpl-3.0 |
ld-test/luars232 | bindings/lua/test.lua | 2 | 8204 | port_name = "/dev/ttyS0"
platform = "linux"
-- port_name = "COM1"
-- platform = "win32"
rs232 = require("luars232")
function time_stamp()
t = os.date("*t")
return string.format("[%02s.%02s.%s %02s:%02s:%02s] ",
t.day, t.month, t.year,
t.hour, t.min, t.sec)
end
oldprint = print
function myprint(t... | mit |
kankaristo/premake-core | tests/actions/vstudio/vc2010/test_files.lua | 9 | 16467 | --
-- tests/actions/vstudio/vc2010/test_files.lua
-- Validate generation of files block in Visual Studio 2010 C/C++ projects.
-- Copyright (c) 2011-2014 Jason Perkins and the Premake project
--
local suite = test.declare("vstudio_vs2010_files")
local vc2010 = premake.vstudio.vc2010
--
-- Setup
--
local wks, prj... | bsd-3-clause |
baisai/LightInkLua | Example/lua/BindClass.lua | 1 | 1185 |
local CppClass = CppClassList.CppClass
local cppObj = CppClass:new__(1)
print("cppObj:get_private() == 1 ? ", cppObj:get_private() == 1)
cppObj:set_private(100)
print("cppObj:get_private() == 100 ? ", cppObj:get_private() == 100)
cppObj:set_enum(cppObj.enum1)
print("cppObj:get_enum() == cppObj.enum1 ? ", cp... | mit |
Zero-K-Experiments/Zero-K-Experiments | effects/slasher.lua | 25 | 3765 | -- slashmuzzle
-- slashrearmuzzle
return {
["slashmuzzle"] = {
fire = {
air = true,
class = [[CSimpleParticleSystem]],
count = 10,
ground = true,
water = true,
properties = {
airdrag = 0.6,
... | gpl-2.0 |
PicoleDeLimao/Ninpou2 | game/dota_addons/ninpou2/scripts/vscripts/buildings/buildings.lua | 1 | 1229 | --[[
Author: PicoleDeLimao
Date: 07.23.2016
Add modifier_building to buildings
]]
function OnCreated(event)
local caster = event.caster
local ability = event.ability
ability:ApplyDataDrivenModifier(caster, caster, "modifier_building", {})
caster.hp = caster:GetHealth()
end
function KeepHealth(event)
local ca... | apache-2.0 |
Scavenge/darkstar | scripts/zones/Western_Adoulin/npcs/Terwok.lua | 14 | 1294 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Terwok
-- Type: Standard NPC and Quest NPC
-- Involved With Quest: 'Order Up'
-- @zone 256
-- @pos 127 4 -81
-----------------------------------
require("scripts/globals/quests");
-----------------------------------
-- onTrade Action
-----------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Khaf_Jhifanm.lua | 17 | 1367 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Khaf Jhifanm
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
require("scr... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Bastok_Markets/npcs/Malene.lua | 9 | 2499 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Malene
-- Type: Quest NPC
-- @zone 235
-- @pos -173 -4 64
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/gl... | gpl-3.0 |
nmacs/lm3s-uclinux | lib/liblua/xavante-2.2.1/src/xavante/cgiluahandler.lua | 3 | 1222 | -----------------------------------------------------------------------------
-- Xavante CGILua handler
--
-- Authors: Javier Guerra and Andre Carregal
-- Copyright (c) 2004-2007 Kepler Project
--
-- $Id: cgiluahandler.lua,v 1.46 2009/05/20 22:28:42 mascarenhas Exp $
----------------------------------------------------... | gpl-2.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaUI/Widgets/chili_new/handlers/taskhandler.lua | 43 | 3106 | --//=============================================================================
--// TaskHandler
TaskHandler = {}
--// type1: use use 2 tables so we can iterate and update at the same time
local objects = {}
local objects2 = {}
local objectsCount = 0
--// type2
local objectsInAnInstant = {}
local objectsInAnInstan... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Port_Windurst/npcs/Machu-Kuchu.lua | 17 | 1108 | -----------------------------------
-- Area: Port Windurst
-- Machu-Kuchu
-- Warps players to Windurst Walls
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_Windurst/TextIDs");
----------------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/spells/bluemagic/spinal_cleave.lua | 35 | 1794 | -----------------------------------------
-- Spell: Spinal Cleave
-- Accuracy varies with TP
-- Spell cost: 61 MP
-- Monster Type: Undead
-- Spell Type: Physical (Slashing)
-- Blue Magic Points: 4
-- Stat Bonus: VIT+2, INT+1, MND+1
-- Level: 63
-- Casting Time: 0.5 seconds
-- Recast Time: 28.5 seconds
-- Skillchain Ele... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/items/cathedral_salad.lua | 12 | 1542 | -----------------------------------------
-- ID: 5679
-- Item: cathedral_salad
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- MP 15% Cap 90
-- Agility 7
-- Mind 7
-- Strength -5
-- Vitality -5
-- Ranged Accuracy +17
-----------------------------------------
require("scripts/globals/statu... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Bastok_Mines/npcs/Gorvik.lua | 14 | 1058 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Gorvik
-- Type: Past Event Watcher
-- @zone 234
-- @pos 21.033 -1 -98.486
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scripts/... | gpl-3.0 |
MOSAVI17/ABCD | plugins/channels.lua | 27 | 1754 | do
-- Checks if bot was disabled on specific chat
local function is_channel_disabled(receiver)
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable... | gpl-2.0 |
kasicass/gearx | bin/lua/scenecredit.lua | 1 | 1908 | -- emacs: -*- mode: lua; coding: utf-8; -*-
--[[
Copyright (C) 2007 GearX Team
This source code 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 Licen... | lgpl-2.1 |
Tkachov/scummvm | devtools/create_ultima/files/ultima6/scripts/md/worktype.lua | 18 | 8242 | function select_target_actor(src_actor)
local var_10 = 0x7fff
local target_actor
for i=0,0xff do
local actor = Actor.get(i)
local actor_align = actor.align
local actor_obj_n = actor.obj_n
local src_actor_align = src_actor.align
local src_actor_obj_n = src_actor.obj_n
if acto... | gpl-3.0 |
ramindel0761/tele_ir | plugins/fun.lua | 1 | 17110 |
--Begin Fun.lua By @deleteTeam
--Special Thx To @tele_ir
--------------------------------
local function run_bash(str)
local cmd = io.popen(str)
local result = cmd:read('*all')
return result
end
--------------------------------
local api_key = nil
local base_api = "https://maps.googleapis.com/maps/api"
--... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/items/plate_of_homemade_salad.lua | 12 | 1869 | -----------------------------------------
-- ID: 5227
-- Item: plate_of_homemade_salad
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Magic 10
-- Accuracy +12% (cap 80)
-- Attack +10% (cap 40)
-- Ranged Accuracy +12% (cap 80)
-- Ranged Attack +10% (cap 40)
--------------------------------... | gpl-3.0 |
kankaristo/premake-core | src/base/fileconfig.lua | 16 | 6997 | --
-- fileconfig.lua
-- The set of configuration information for a specific file.
-- Copyright (c) 2011-2014 Jason Perkins and the Premake project
--
premake.fileconfig = {}
local p = premake
local fileconfig = p.fileconfig
local context = p.context
local project = p.project
--
-- A little confusing: the file ... | bsd-3-clause |
Scavenge/darkstar | scripts/zones/Windurst_Waters/npcs/Maqu_Molpih.lua | 17 | 1669 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Maqu Molpih
-- Only sells when Windurst controlls Aragoneu Region
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/events/harvest_festivals")
require("scripts/globals/shop");
require("scripts/globals/... | gpl-3.0 |
PicoleDeLimao/Ninpou2 | game/dota_addons/ninpou2/scripts/vscripts/items/yin_orb.lua | 1 | 1513 | --[[
Author: PicoleDeLimao
Date: 03.27.2016
Add yin damage when yin orb is equipped
]]
function Equip(event)
local caster = event.caster
local ability = event.ability
local yinDmg = ability:GetLevelSpecialValueFor("yin_damage_bonus", ability:GetLevel() - 1)
caster.numYinOrbs = (caster.numYinOrbs or 0) + 1
if ... | apache-2.0 |
Scavenge/darkstar | scripts/globals/spells/poison_iii.lua | 26 | 1127 | -----------------------------------------
-- Spell: Poison
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,spel... | gpl-3.0 |
Kyklas/luci-proto-hso | applications/luci-asterisk/luasrc/model/cbi/asterisk/voicemail_settings.lua | 80 | 2412 | --[[
LuCI - Lua Configuration Interface
Copyright 2009 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$
]]--
re... | apache-2.0 |
Zero-K-Experiments/Zero-K-Experiments | effects/gundam_bulletimpact.lua | 25 | 2079 | -- bulletimpact
return {
["bulletimpact"] = {
dirt01 = {
class = [[dirt]],
count = 3,
ground = true,
properties = {
alphafalloff = 2,
color = [[0.2, 0.1, 0.05]],
pos = [[r-5 r5, 0, r-5 r5]],
... | gpl-2.0 |
Scavenge/darkstar | scripts/globals/items/whale_staff.lua | 42 | 1075 | -----------------------------------------
-- ID: 17533
-- Item: Whale Staff
-- Additional Effect: Water Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-------------------------------... | gpl-3.0 |
tarikgwa/nfd | lua/libs/dbh_light.lua | 1 | 2484 | --
-- Newfies-Dialer License
-- http://www.newfies-dialer.org
--
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this file,
-- You can obtain one at http://mozilla.org/MPL/2.0/.
--
-- Copyright (C) 2011-2014 Star2Billing S.L.
--
--... | mpl-2.0 |
oceancn/luci-nwan | luci/applications/luci-cpulimit/luasrc/model/cbi/cpulimit.lua | 2 | 1042 |
m = Map("cpulimit", translate("cpulimit"),translate("cpulimit-ng"))
s = m:section(TypedSection, "list", translate("Settings"))
s.template = "cbi/tblsection"
s.anonymous = true
s.addremove = true
enable = s:option(Flag, "enabled", translate("enable", "enable"))
enable.optional = false
enable.rmempty = false
exename =... | mit |
Scavenge/darkstar | scripts/zones/Dangruf_Wadi/npcs/qm4.lua | 17 | 2009 | -----------------------------------
-- NPC: ??? (QM4)
-- Type: Grasswix dice roll game part 2
-- @zone 191
-- Involved in quest "As Thick As Thieves"
-----------------------------------
package.loaded["scripts/zones/Dangruf_Wadi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests")... | gpl-3.0 |
cyclonetm/XmakanX | plugins/inpm.lua | 1 | 3128 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
nmacs/lm3s-uclinux | lib/liblua/luasocket-2.0.2/etc/check-links.lua | 59 | 3388 | -----------------------------------------------------------------------------
-- Little program that checks links in HTML files, using coroutines and
-- non-blocking I/O via the dispatcher module.
-- LuaSocket sample files
-- Author: Diego Nehab
-- RCS ID: $$
------------------------------------------------------------... | gpl-2.0 |
kirubz/Penlight | lua/pl/sip.lua | 20 | 10104 | --- Simple Input Patterns (SIP).
-- SIP patterns start with '$', then a
-- one-letter type, and then an optional variable in curly braces.
--
-- sip.match('$v=$q','name="dolly"',res)
-- ==> res=={'name','dolly'}
-- sip.match('($q{first},$q{second})','("john","smith")',res)
-- ==> res=={second='smith',first=... | mit |
zhongk/lua_xlib | libs/util.lua | 1 | 11529 | function tuple(...)
local self = {}
local _tuple = {
__index = {...},
__class = 'tuple',
__newindex = function(t, k, v)
error("'tuple' does not support item assignment", 2)
end
}
setmetatable(self, _tuple)
return self
end
---------------------------------------------------------------------------------... | bsd-3-clause |
Scavenge/darkstar | scripts/zones/Bastok_Mines/npcs/Tibelda.lua | 17 | 1377 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Tibelda
-- Only sells when Bastok controlls Valdeaunia Region
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scripts/zones/Ba... | gpl-3.0 |
Scavenge/darkstar | scripts/commands/cnation.lua | 14 | 1205 | ---------------------------------------------------------------------------------------------------
-- func: cnation <target> <campaign allegiance>
-- desc: check or alter target characters campaign allegiance
---------------------------------------------------------------------------------------------------
cmdprops ... | gpl-3.0 |
Tkachov/scummvm | devtools/create_ultima/files/ultima6/scripts/md/intro.lua | 17 | 57970 | local lua_file = nil
--load common functions
lua_file = nuvie_load("common/intro_common.lua"); lua_file();
local FREUD_STATE_STARING = 0
local FREUD_STATE_WRITING = 1
local function origin_fx_sequence()
local g_img_tbl = image_load_all("title.lzc")
canvas_set_palette("strax.pal", 0)
local stars = sprit... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/effects/int_down.lua | 34 | 1116 | -----------------------------------
--
-- EFFECT_INT_DOWN
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
if ((target:getStat(MOD_INT) - effect:ge... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/PsoXja/npcs/_09c.lua | 14 | 2875 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _09c (Stone Gate)
-- Notes: Spawns Gargoyle when triggered
-- @pos 290.000 -1.925 -18.400 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
re... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Port_Bastok/npcs/Ehrhard.lua | 33 | 1378 | -----------------------------------
-- Area: Port Bastok
-- NPC: Ehrhard
-- Involved in Quest: Stamp Hunt
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Port_Bastok/TextIDs");
... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Davoi/npcs/Zantaviat.lua | 14 | 2404 | -----------------------------------
-- Area: Davoi
-- NPC: Zantaviat
-- Involved in Mission: The Davoi Report
-- @pos 215 0.1 -10 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/globa... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/spells/hojo_san.lua | 27 | 1246 | -----------------------------------------
-- Spell: Hojo:San
-- Description: Inflicts Slow on target.
-- Edited from slow.lua
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
------------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Castle_Oztroja/mobs/Yagudo_Drummer.lua | 12 | 1025 | -----------------------------------
-- Area: Castle Oztroja (151)
-- MOB: Yagudo_Drummer
-----------------------------------
require("scripts/zones/Castle_Oztroja/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob, player, isKiller)
end;
--------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Morangeart.lua | 14 | 1070 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Morangeart
-- Type: ENM Quest Activator
-- @zone 26
-- @pos -74.308 -24.782 -28.475
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] =... | gpl-3.0 |
dani-sj/evilbot03 | plugins/plugins.lua | 285 | 6096 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
mortezamosavy999/monsterTG | plugins/Plugins.lua | 285 | 6096 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
ArchonTeam/Soft_TG | plugins/plugins.lua | 285 | 6096 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
sil3ntboyy/TGuard1.0.0 | bot/utils.lua | 91 | 31577 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = (loadfile "./libs/serpent.lua")()
feedparser = (loadfile "./libs/feedparser.lua")()
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.l... | gpl-2.0 |
Scavenge/darkstar | scripts/globals/items/bowl_of_navarin.lua | 12 | 1990 | -----------------------------------------
-- ID: 4439
-- Item: Bowl of Navarin
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health % 3 (cap 130)
-- Strength 3
-- Agility 1
-- Vitality 1
-- Intelligence -1
-- Attack % 27
-- Attack Cap 30
-- Evasion 5
-- Ranged ATT % 27
-- Ranged ATT Cap... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/La_Theine_Plateau/npcs/Cavernous_Maw.lua | 58 | 1927 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Cavernous Maw
-- @pos -557.9 0.001 637.846 102
-- Teleports Players to Abyssea - La Theine
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Caedarva_Mire/npcs/_27a.lua | 14 | 1106 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: Engraved Tablet
-- @pos 763 -9 638 79
-----------------------------------
require("scripts/globals/keyitems");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-------... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaRules/Gadgets/unit_attributes.lua | 4 | 18538 |
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "Attributes",
desc = "Handles UnitRu... | gpl-2.0 |
cromo/ludum-dare-37 | assets/goald.lua | 1 | 5951 | return {
version = "1.1",
luaversion = "5.1",
tiledversion = "0.17.2",
orientation = "orthogonal",
renderorder = "right-down",
width = 32,
height = 32,
tilewidth = 16,
tileheight = 16,
nextobjectid = 1,
properties = {},
tilesets = {
{
name = "gold-walls",
firstgid = 1,
tile... | mit |
Scavenge/darkstar | scripts/zones/Sauromugue_Champaign/Zone.lua | 11 | 4456 | -----------------------------------
--
-- Zone: Sauromugue_Champaign (120)
--
-----------------------------------
package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require("scripts/zones/Sauromugue_Champaign/... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/abilities/light_shot.lua | 27 | 2802 | -----------------------------------
-- Ability: Light Shot
-- Consumes a Light Card to enhance light-based debuffs. Additional effect: Light-based Sleep
-- Dia Effect: Defense Down Effect +5% and DoT + 1
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require... | gpl-3.0 |
3203317/g | assets/redis/fishjoy_switch.lua | 1 | 2113 | -- huangxin <3203317@qq.com>
local db = KEYS[1];
local server_id = KEYS[2];
local channel_id = KEYS[3];
local bullet_level = ARGV[1];
redis.call('SELECT', db);
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
local user_id = redis.call('GET', server_id ..'::'.. ... | mit |
Kyklas/luci-proto-hso | applications/luci-statistics/luasrc/statistics/rrdtool/definitions/iwinfo.lua | 77 | 1798 | --[[
Luci statistics - wireless plugin diagram definition
(c) 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... | apache-2.0 |
Kyklas/luci-proto-hso | applications/luci-freifunk-diagnostics/luasrc/controller/freifunk/diag.lua | 70 | 2007 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Copyright 2013 Manuel Munz <freifunk@somakoma.de>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
... | apache-2.0 |
endlessm/chromium-browser | third_party/skia/tools/lua/scrape_dashing_full.lua | 159 | 4610 | local canvas -- holds the current canvas (from startcanvas())
--[[
startcanvas() is called at the start of each picture file, passing the
canvas that we will be drawing into, and the name of the file.
Following this call, there will be some number of calls to accumulate(t)
where t is a tabl... | bsd-3-clause |
jchuang1977/openwrt | package/lean/luci-app-usb-printer/luasrc/model/cbi/usb_printer.lua | 18 | 3243 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2005-2013 hackpascal <hackpascal@gmail.com>
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... | gpl-2.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaRules/Gadgets/ai_CAI.lua | 2 | 139674 |
-- In-game, type "/luarules caiscout [x]" in the console to toggle scoutmap drawing for team [x]
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "CAI"... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Ransnana.lua | 14 | 1063 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Ransnana
-- Type: Standard NPC
-- @zone 94
-- @pos -22.008 -13.339 122.819
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/weaponskills/omniscience.lua | 19 | 2066 | -----------------------------------
-- Omniscience
-- Staff weapon skill
-- Skill Level: N/A
-- Lowers target's magic attack. Duration of effect varies with TP. Tupsimati: Aftermath effect varies with TP.
-- Reduces enemy's magic attack by -10.
-- Available only after completing the Unlocking a Myth (Scholar) quest.
--... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Southern_San_dOria/npcs/Pourette.lua | 17 | 1946 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Pourette
-- Only sells when San d'Oria controlls Derfland Region
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria/Te... | gpl-3.0 |
Rob96/GoS | WeedleAIOFixedMenu.lua | 1 | 169543 | local KoreanChamps = {"Ezreal", "Zed", "Ahri", "Blitzcrank", "Caitlyn", "Brand", "Ziggs", "Morgana", "Syndra", "KogMaw", "Lux", "Cassiopeia", "Karma", "Orianna", "Ryze", "Jhin", "Jayce", "Kennen", "Thresh", "Amumu", "Elise", "Zilean", "Corki", "Sivir", "Aatrox", "Jinx", "Warwick", "Twitch", "Skarner", "Soraka", "Veigar... | gpl-3.0 |
KKfo/gamecode4 | Assets/Scripts/TeapotBrains.lua | 44 | 2897 | --========================================================================
-- TeapotBrains.lua : Base class for teapot brains
--
-- Part of the GameCode4 Application
--
-- GameCode4 is the sample application that encapsulates much of the source code
-- discussed in "Game Coding Complete - 4th Edition" by Mike McS... | lgpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | effects/galiblow.lua | 17 | 3450 | return {
["gali_fade"] = {
usedefaultexplosions = false,
galifading = {
air = true,
class = [[CExploSpikeProjectile]],
count = 4,
ground = true,
water = true,
properties = {
length = 55,
width = 86,
... | gpl-2.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaRules/Configs/StartBoxes/Ravaged_v2.lua | 11 | 7186 | return {
[0] = {
boxes = {
{
{4239.5439453125, 952.95397949219},
{3816.2067871094, 727.26159667969},
{3812.9736328125, 691.92926025391},
{3831.6794433594, 655.50103759766},
{3858.7185058594, 628.42718505859},
{3868.0451660156, 585.70172119141},
{3898.32421875, 529.91290283203},
{39... | gpl-2.0 |
xincun/nginx-openresty-windows | lua-resty-string-0.09/t/sha384.lua | 10 | 2111 | # vi:ft=
use Test::Nginx::Socket;
repeat_each(2);
plan tests => repeat_each() * (3 * blocks());
our $HttpConfig = <<'_EOC_';
#lua_code_cache off;
lua_package_path 'lib/?.lua;;';
lua_package_cpath 'lib/?.so;;';
_EOC_
no_long_string();
run_tests();
__DATA__
=== TEST 1: hello SHA-384
--- http_config ev... | bsd-2-clause |
xincun/nginx-openresty-windows | luajit-root-x64/luajit/share/luajit-2.1.0-alpha/jit/p.lua | 17 | 9092 | ----------------------------------------------------------------------------
-- LuaJIT profiler.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
-- This modul... | bsd-2-clause |
Scavenge/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Count_Vine.lua | 23 | 1602 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Count Vine
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
------------------------... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.