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 |
|---|---|---|---|---|---|
Kthulupwns/darkstar | scripts/zones/Northern_San_dOria/npcs/Phaviane.lua | 38 | 1024 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Phaviane
-- Type: Standard Dialogue NPC
-- @zone: 231
-- @pos -4.000 0.000 -28.000
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs");
... | gpl-3.0 |
aa65535/luci | applications/luci-app-wifischedule/luasrc/controller/wifischedule/wifi_schedule.lua | 21 | 1998 | -- Copyright (c) 2016, prpl Foundation
--
-- Permission to use, copy, modify, and/or distribute this software for any purpose with or without
-- fee is hereby granted, provided that the above copyright notice and this permission notice appear
-- in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL... | apache-2.0 |
LuaDist2/lj2procfs | lj2procfs/codecs/diskstats.lua | 3 | 1431 | -- The field names used here are the same as for the iostat
-- program.
-- That program uses a 'struct io_stats'
-- Here we simply use a lua table
local function decoder(path)
path = path or "/proc/diskstats"
local tbl = {}
-- If you were using 'C', this would be a 'scanf' template
local pattern = "(%d+)%s+(%d+)... | mit |
Mleaf/mleaf_luci | protocols/ppp/luasrc/model/network/proto_ppp.lua | 77 | 2695 | --[[
LuCI - Network model - 3G, PPP, PPtP, PPPoE and PPPoA protocol extension
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.o... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Windurst_Walls/npcs/Chawo_Shipeynyo.lua | 38 | 1040 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Chawo Shipeynyo
-- Type: Standard NPC
-- @zone: 239
-- @pos 3.593 -17 124.069
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
---------... | gpl-3.0 |
Nefarix/Nefarix.github.io | RMTCore/Encounters/RMT/Engineers.lua | 1 | 14573 | ----------------------------------------------------------------------------------------------------
-- Engineers encounter script
--
-- Copyright (C) 2016 Joshua Shaffer
----------------------------------------------------------------------------------------------------
local core = Apollo.GetPackage("Gemini:Addon-1.1... | agpl-3.0 |
jlopenwrtluci/luci | modules/luci-base/luasrc/util.lua | 3 | 17115 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local io = require "io"
local math = require "math"
local table = require "table"
local debug = require "debug"
local ldebug = require "luci.debug"
local string = require "string"
local coroutine = require "coro... | apache-2.0 |
ZeroNoFun/The-Aperture | lua/effects/paint_splat_effect.lua | 2 | 1792 | function EFFECT:Init( data )
self.Start = data:GetOrigin()
self.Direction = data:GetNormal()
self.Color = data:GetColor()
self.Radius = math.max( 0.6, data:GetRadius() / 150 )
local color = APERTURESCIENCE:GetColorByGelType( self.Color )
self.Emitter = ParticleEmitter( self.Start )
for i = 1, 5 do
loc... | mit |
Kthulupwns/darkstar | scripts/globals/spells/aspir.lua | 13 | 1507 | -----------------------------------------
-- Spell: Aspir
-- Drain functions only on skill level!!
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/weaponskills/blade_rin.lua | 30 | 1366 | -----------------------------------
-- Blade Rin
-- Katana weapon skill
-- Skill Level: 5
-- Delivers a single-hit attack. Chance of params.critical varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Light Gorget.
-- Aligned with the Light Belt.
-- Element: None
-- Modifiers: STR:20% ; DEX:20... | gpl-3.0 |
xvaara/kong | spec/unit/tools/faker_spec.lua | 2 | 3722 | local uuid = require "lua_uuid"
local Faker = require "kong.tools.faker"
local DaoError = require "kong.dao.error"
describe("Faker", function()
local ENTITIES_TYPES = { "api", "consumer", "plugin", "node" }
local factory_mock = {}
local insert_spy
local faker
before_each(function()
insert_spy = spy.ne... | apache-2.0 |
junrw/ember-gsoc2012 | src/components/ogre/widgets/Environment.lua | 1 | 2230 | --[[
A widget for allowing interaction with the environment, such as setting the time of day and changing the fog distance.
]]--
Environment = {}
function Environment:Time_ValueChanged(args)
local timeValue = self.timeSlider:getCurrentValue()
self.environment:setTime(86400 * timeValue)
return true
end
function ... | gpl-3.0 |
ma-bo/lua-poco | examples/condition.lua | 1 | 2788 | --[[ condition.lua
This example shows how to use the condition module to signal threads. This module differs from
the event module in that conditions accept a mutex as an argument.
In the example, the main thread reads stdin to trigger the condition. The threads do some work
with a shared resource un... | bsd-3-clause |
Kthulupwns/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5f8.lua | 34 | 1105 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Titan's Gate
-- @pos 260 -34 88 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs");... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Outer_RaKaznar_U/Zone.lua | 32 | 1301 | -----------------------------------
--
-- Zone: Outer Ra’Kanzar [U] (275)
--
-----------------------------------
package.loaded["scripts/zones/Outer_RaKaznar_U/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Outer_RaKaznar_U/TextIDs");
------... | gpl-3.0 |
xvaara/kong | kong/plugins/acl/handler.lua | 2 | 1694 | local BasePlugin = require "kong.plugins.base_plugin"
local cache = require "kong.tools.database_cache"
local responses = require "kong.tools.responses"
local utils = require "kong.tools.utils"
local ACLHandler = BasePlugin:extend()
ACLHandler.PRIORITY = 950
function ACLHandler:new()
ACLHandler.super.new(self, "ac... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Bearclaw_Pinnacle/bcnms/flames_for_the_dead.lua | 13 | 1781 | -----------------------------------
-- Area: Bearclaw_Pinnacle
-- Name: flames_for_the_dead
-- bcnmID : 640
-- enemy: Snoll_Tzar 16801793 16801794 16801795 group 176
-----------------------------------
package.loaded["scripts/zones/Bearclaw_Pinnacle/TextIDs"] = nil;
-----------------------------------
requir... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Northern_San_dOria/npcs/Gaudylox.lua | 17 | 1598 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Gaudylox
-- Standard merchant, though he acts like a guild merchant
-- @pos -147.593 11.999 222.550 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
----------------------------------... | gpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/Grof, the guard.lua | 1 | 1783 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) ... | gpl-3.0 |
jamesbrink/sysdig | userspace/sysdig/chisels/v_connections.lua | 3 | 4121 | --[[
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 |
Wiladams/LJIT2Win32 | tests/test_DbgHelp.lua | 1 | 1032 | -- test_DbgHelp.lua
package.path = package.path..";../?.lua"
local ffi = require("ffi");
local dbg = require("dbghelp_ffi")
local test_Demangle = function(MangledNames)
local UnDecoratedLength = 255;
local UnDecoratedName = ffi.new("char[?]", UnDecoratedLength);
for _,name in ipairs(MangledNames) do
local r... | mit |
mlody1039/ModernOts | data/npc/scripts/Lugri.lua | 1 | 3484 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
funct... | gpl-3.0 |
czlc/ejoy2d | examples/flappybird.lua | 3 | 9873 | -- This example show how to write a flappy bird
local ej = require "ejoy2d"
local fw = require "ejoy2d.framework"
local pack = require "ejoy2d.simplepackage"
local matrix = require "ejoy2d.matrix"
local config = require "examples.asset.bird_config"
pack.load {
pattern = fw.WorkDir..[[examples/asset/?]],
"birds",
}
... | mit |
Kthulupwns/darkstar | scripts/zones/Xarcabard/npcs/Pelogrant.lua | 17 | 1851 | -----------------------------------
-- Area: Xarcabard
-- NPC: Pelogrant
-- Type: Outpost Vendor
-- @pos 210 -22 -201 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/inferno_axe.lua | 16 | 1028 | -----------------------------------------
-- ID: 16709
-- Item: Inferno Axe
-- Additional Effect: Fire Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
--------------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/commands/changejob.lua | 3 | 1977 | ---------------------------------------------------------------------------------------------------
-- func: changejob
-- auth: <Unknown> :: Modded by atom0s.
-- desc: Changes the players current job.
---------------------------------------------------------------------------------------------------
cmdprops =
... | gpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/TP/flyingcarpet_hills.lua | 4 | 1321 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function ... | gpl-3.0 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/EventAssetsManagerEx.lua | 18 | 1491 |
--------------------------------
-- @module EventAssetsManagerEx
-- @extend EventCustom
-- @parent_module cc
--------------------------------
--
-- @function [parent=#EventAssetsManagerEx] getAssetsManagerEx
-- @param self
-- @return AssetsManagerEx#AssetsManagerEx ret (return value: cc.AssetsManagerEx)
--... | mit |
LubyRuffy/haka | sample/filter/httpmodif.lua | 3 | 2691 | ------------------------------------
-- Loading dissectors
------------------------------------
require('protocol/ipv4')
require('protocol/tcp')
local http = require('protocol/http')
local last_firefox_version = 24.0
local firefox_web_site = 'http://www.mozilla.org'
-- Domain whitelist.
-- All traffic to these domain... | mpl-2.0 |
tanema/light_world.lua | lib/init.lua | 1 | 12741 | --[[
The MIT License (MIT)
Copyright (c) 2014 Marcus Ihde, Tim Anema
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, mod... | mit |
Kthulupwns/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Komalata.lua | 37 | 1496 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Komalata
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
require("scripts/zones/Tavnazian_Safehold/TextIDs");
--------------... | gpl-3.0 |
blinkseb/MoMEMta | lua/functions.lua | 3 | 3489 | -- Make an object immutable, preventing the user to modify it
local function const(obj)
local mt = {}
function mt.__index(proxy, k)
local v = obj[k]
if type(v) == 'table' then
v = const(v)
end
return v
end
function mt.__newindex(proxy, k, v)
error("ob... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/hushed_dagger.lua | 7 | 1079 | -----------------------------------------
-- ID: 18008
-- Item: Hushed Dagger
-- Additional Effect: Silence
-- TODO: Enchantment: Ensilence
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
--... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Mikhe_Aryohcha.lua | 38 | 1124 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Mikhe Aryohcha
-- Type: Standard NPC
-- @zone: 94
-- @pos -56.645 -4.5 13.014
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil... | gpl-3.0 |
dreamsxin/otclient | modules/game_interface/gameinterface.lua | 2 | 29159 | WALK_STEPS_RETRY = 10
gameRootPanel = nil
gameMapPanel = nil
gameRightPanel = nil
gameLeftPanel = nil
gameBottomPanel = nil
logoutButton = nil
mouseGrabberWidget = nil
countWindow = nil
logoutWindow = nil
exitWindow = nil
bottomSplitter = nil
limitedZoom = false
currentViewMode = 0
smartWalkDirs = {}
smartWalkDir = ni... | mit |
Kthulupwns/darkstar | scripts/zones/Den_of_Rancor/npcs/HomePoint#1.lua | 12 | 1246 | -----------------------------------
-- Area: Den_of_Rancor
-- NPC: HomePoint#1
-- @pos -80 46 62 160
-----------------------------------
package.loaded["scripts/zones/Den_of_Rancor/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Den_of_Rancor/TextIDs");
require("scripts/globals... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/hypno_staff.lua | 16 | 1030 | -----------------------------------------
-- ID: 17117
-- Item: Hypno Staff
-- Additional Effect: Sleep
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-----------------------------------
f... | gpl-3.0 |
LubyRuffy/haka | sample/gettingstarted/gettingstarted.lua | 3 | 1175 |
-- load the ipv4 dissector to be able to read the fields of ipv4 packets
local ipv4 = require("protocol/ipv4")
-- load the tcp dissectors (statefull and stateless)
-- this is needed to be able to track tcp connections
-- and to get access to tcp packet fields
local tcp = require("protocol/tcp")
local tcp_connection =... | mpl-2.0 |
Kthulupwns/darkstar | scripts/globals/items/fish_chiefkabob.lua | 35 | 1539 | -----------------------------------------
-- ID: 4575
-- Item: fish_chiefkabob
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Dexterity 1
-- Vitality 2
-- Mind 1
-- Charisma 1
-- defense % 26
-- defense Cap 95
-----------------------------------------
require("scripts/global... | gpl-3.0 |
AGTMADCAT/naev | dat/events/tutorial/tutorial-disabling.lua | 10 | 6187 | -- This is the tutorial: disabling.
include("dat/events/tutorial/tutorial-common.lua")
include "fleethelper.lua"
-- localization stuff, translators would work here
lang = naev.lang()
if lang == "es" then
else -- default english
title1 = "Tutorial: Disabling"
message1 = [[Welcome to the disabling tutorial.
Du... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Dagger.lua | 17 | 1480 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Animated Dagger
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
functi... | gpl-3.0 |
AttacqueSuperior/Engine | mods/d2k/maps/harkonnen-02a/harkonnen02a-AI.lua | 2 | 1131 | --[[
Copyright 2007-2021 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 |
Wiladams/LJIT2Win32 | WinError.lua | 1 | 9567 | local ffi = require "ffi"
local bit = require "bit"
local band = bit.band
local bor = bit.bor
local rshift = bit.rshift
local lshift = bit.lshift
--[[
//
// The return value of COM functions and methods is an HRESULT.
// This is not a handle to anything, but is merely a 32-bit value
// with several fields encoded in... | mit |
ark120202/aabs | game/scripts/vscripts/items/item_radiance.lua | 1 | 5745 | LinkLuaModifier("modifier_item_radiance_lua", "items/item_radiance.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_item_radiance_lua_effect", "items/item_radiance.lua", LUA_MODIFIER_MOTION_NONE)
item_radiance_baseclass = {
GetIntrinsicModifierName = function() return "modifier_item_radiance_lua" end,
}
fun... | mit |
Kthulupwns/darkstar | scripts/globals/spells/bluemagic/feather_storm.lua | 3 | 1380 | -----------------------------------------
-- Feather Storm
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/bluemagic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
... | gpl-3.0 |
shayanchabok555/tigerantispam007 | bot/bot.lua | 1 | 6651 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This function is ... | gpl-2.0 |
scottcs/wyx | wyx/map/Dungeon.lua | 1 | 1051 | local Class = require 'lib.hump.class'
local Place = getClass 'wyx.map.Place'
local Level = getClass 'wyx.map.Level'
-- Dungeon
--
local Dungeon = Class{name='Dungeon',
inherits=Place,
function(self, name)
Place.construct(self, name)
end
}
-- destructor
function Dungeon:destroy()
Place.destroy(self)
end
-- gen... | mit |
ioiasff/iosdaaa | plugins/ingroup.lua | 2 | 31457 | do
local function check_member(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostring(msg.to.id)] = {
... | gpl-2.0 |
Kthulupwns/darkstar | scripts/globals/items/gold_lobster.lua | 17 | 1404 | -----------------------------------------
-- ID: 5797
-- Item: gold_lobster
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity -5
-- Vitality 3
-- Defense % 15
-----------------------------------------
require("scripts/globals/status");
-------------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Lower_Jeuno/npcs/_l05.lua | 36 | 1559 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Streetlamp
-- Involved in Quests: Community Service
-- @zone 245
-- @pos -61.132 6 -75.010
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
Omar-Real/RealBot | libs/dateparser.lua | 502 | 6212 | local difftime, time, date = os.difftime, os.time, os.date
local format = string.format
local tremove, tinsert = table.remove, table.insert
local pcall, pairs, ipairs, tostring, tonumber, type, setmetatable = pcall, pairs, ipairs, tostring, tonumber, type, setmetatable
local dateparser={}
--we shall use the host OS's... | gpl-2.0 |
dios-game/dios-cocos-samples | src/lua-fantasy-warrior-3d/src/custom/api/EffectSprite3D.lua | 9 | 1697 |
--------------------------------
-- @module EffectSprite3D
-- @extend Sprite3D
-- @parent_module cc
--------------------------------
--
-- @function [parent=#EffectSprite3D] setEffect3D
-- @param self
-- @param #cc.Effect3D effect
-- @return EffectSprite3D#EffectSprite3D self (return value: cc.EffectSprite3D)
... | mit |
siilaas/TiGER | system/libs/redis.lua | 36 | 1136 | local Redis = (loadfile "./system/libs/lua-redis.lua")()
local FakeRedis = (loadfile "./system/libs/fakeredis.lua")()
local params = {
host = '127.0.0.1',
port = 6379,
}
-- Overwrite HGETALL
Redis.commands.hgetall = Redis.command('hgetall', {
response = function(reply, command, ...)
local new_reply = { }
... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Ponono.lua | 38 | 1047 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Ponono
-- Type: Standard NPC
-- @zone: 94
-- @pos 156.069 -0.001 -15.667
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
--... | gpl-3.0 |
dpino/snabb | lib/ljsyscall/syscall/osx/ioctl.lua | 24 | 4079 | -- ioctls, filling in as needed
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string
local function init(types)
l... | apache-2.0 |
Mleaf/mleaf_luci | applications/luci-statistics/luasrc/statistics/rrdtool/definitions/processes.lua | 78 | 2188 | --[[
Luci statistics - processes plugin diagram definition
(c) 2008 Freifunk Leipzig / 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
http://www.... | apache-2.0 |
Kthulupwns/darkstar | scripts/globals/items/chocolate_crepe.lua | 36 | 1320 | -----------------------------------------
-- ID: 5775
-- Item: Chocolate Crepe
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- HP +15
-- MP Healing 2
-- Magic Accuracy +4
-- Magic Defense +1
-----------------------------------------
require("scripts/globals/status");
-------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Riverne-Site_B01/npcs/HomePoint#1.lua | 12 | 1188 | -----------------------------------
-- Area: Riverne-Site B01
-- NPC: HomePoint#1
-- @pos
-----------------------------------
package.loaded["scripts/zones/Riverne-Site_B01/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Riverne-Site_B01/TextIDs");
require("scripts/globals/homepoint");
... | gpl-3.0 |
dios-game/dios-cocos-samples | src/lua-fantasy-warrior-3d/Resources/src/actors/Knight.lua | 8 | 9940 | require "GlobalVariables"
require "MessageDispatchCenter"
require "Helper"
require "AttackCommand"
local file = "model/knight/knight.c3b"
Knight = class("Knight", function()
return require "Actor".create()
end)
function Knight:ctor()
self._useWeaponId = ReSkin.knight.weapon
self._useArmourId = ReSkin.kni... | mit |
Kthulupwns/darkstar | scripts/globals/weaponskills/coronach.lua | 12 | 2085 | -----------------------------------
-- Skill Level: N/A
-- Description: Additional effect: temporarily lowers enmity.
-- Lowers Enmity for a certain amount of time. (Enmity -20)
-- Regardless of the damage, Coronach hate is only 80CE / 240 VE (Enmity- effect included).
-- This weapon skill is only available with t... | gpl-3.0 |
mrbangi/mmb | plugins/welcome.lua | 6 | 3484 | local add_user_cfg = load_from_file('data/add_user_cfg.lua')
local function template_add_user(base, to_username, from_username, chat_name, chat_id)
base = base or ''
to_username = '@' .. (to_username or '')
from_username = '@' .. (from_username or '')
chat_name = string.gsub(chat_name, '_', ' ') or ''
c... | gpl-2.0 |
amin041/tele-dam- | plugins/commands.lua | 45 | 2965 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
harvardnlp/im2markup | src/train.lua | 1 | 14035 | --[[ Training, adapted from https://github.com/harvardnlp/seq2seq-attn/blob/master/train.lua
--]]
torch.setheaptracking(true)
require 'nn'
require 'nngraph'
require 'cudnn'
require 'optim'
require 'paths'
package.path = package.path .. ';src/?.lua' .. ';src/data/?.lua' .. ';src/utils/?.lua' .. ';src/model/?.lua'
requ... | mit |
mlody1039/ModernOts | data/npc/scripts/wedding.lua | 1 | 7564 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisap... | gpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/Sell/haroun.lua | 2 | 5508 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCr... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Ilrusi_Atoll/npcs/Ancient_Lockbox.lua | 36 | 1212 | -----------------------------------
-- Area:
-- NPC: ancient lockbox
-- @zone illrusi atoll
-- @pos
-----------------------------------
package.loaded["scripts/zones/Ilrusi_Atoll/TextIDs"] = nil;
package.loaded["scripts/globals/bcnm"] = nil;
-------------------------------------
require("scripts/globals/bc... | gpl-3.0 |
alioshii/KASBAR | plugins/ar-me.lua | 15 | 1553 | do
local function joker(msg, matches)
if is_sudo(msg) then
local text = "✅- انت مطور في الكون ".."\n".."🆔- ايدك/ج : "..msg.from.id.."\n".."🔖- اسمك/ج : "..msg.from.first_name.."\n".."🔤- المعرف : @"..msg.from.username.."\n".."🌐- اسم الكروب "..msg.to.title --@DevPointTeam
return reply_msg(msg.id, t... | gpl-2.0 |
telbbs/luci-0.12 | applications/luci-statistics/luasrc/model/cbi/luci_statistics/csv.lua | 80 | 1198 | --[[
Luci configuration model for statistics - collectd csv plugin configuration
(c) 2008 Freifunk Leipzig / 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 a... | apache-2.0 |
telbbs/luci-0.12 | applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua | 38 | 17398 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010 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://w... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Temenos/mobs/Moblin_Dustman.lua | 17 | 1108 | -----------------------------------
-- Area: Temenos N T
-- NPC: Moblin_Dustman
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
----------------------... | gpl-3.0 |
telergybot/telergybot | plugins/isX.lua | 605 | 2031 | local https = require "ssl.https"
local ltn12 = require "ltn12"
local function request(imageUrl)
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local api_key = mashape.api_key
if ... | gpl-2.0 |
azukiapp/luasocket | src/ftp.lua | 60 | 9243 | -----------------------------------------------------------------------------
-- FTP support for the Lua language
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- D... | mit |
kuoruan/luci | libs/luci-lib-json/luasrc/json.lua | 15 | 11159 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local nixio = require "nixio"
local util = require "luci.util"
local table = require "table"
local string = require "string"
local coroutine = ... | apache-2.0 |
kuoruan/luci | applications/luci-app-asterisk/luasrc/asterisk/cc_idd.lua | 68 | 7491 | -- Licensed to the public under the Apache License 2.0.
module "luci.asterisk.cc_idd"
CC_IDD = {
-- Country, CC, IDD
{ "Afghanistan", "93", "00" },
{ "Albania", "355", "00" },
{ "Algeria", "213", "00" },
{ "American Samoa", "684", "00" },
{ "Andorra", "376", "00" },
{ "Angola", "244", "00" },
{ "Anguilla", "26... | apache-2.0 |
Malyonsus/sanieui | datatext/dummytext.lua | 1 | 2234 | local lib = SanieUI.lib
local textString
local textColor
--[[---------------------------
Datatext Constants
--]]----------------------------
-- Set name
local name = "NewText"
-- Set update frequency in seconds. Set to nil for event-only updating.
local updateFrequency = nil
-- Font
local font = SanieUI.font
-- Font s... | mit |
Kthulupwns/darkstar | scripts/zones/Windurst_Woods/npcs/HomePoint#4.lua | 12 | 1252 | -----------------------------------
-- Area: Windurst Woods
-- NPC: HomePoint#4
-- @pos 74 -7.5 -139 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Windurst_Woods/TextIDs");
require("scripts/g... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/jack-o-lantern.lua | 35 | 1604 | -----------------------------------------
-- ID: 4488
-- Item: jack-o-lantern
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Charisma -10
-- Accuracy 10
-- Ranged Acc 10
-- Evasion 10
-- Arcana Killer 5
-- Dark Res 25
-----------------------------------------
require("scrip... | gpl-3.0 |
Wiladams/LJIT2Win32 | BCryptUtils.lua | 1 | 9204 | local ffi = require "ffi"
local BCrypt = require "BCrypt"
local stringutils = require("stringutils")
BCryptKey = ffi.typeof("BCryptKey");
BCryptKey_mt = {
__gc = function(self)
local status = BCrypt.Lib.BCryptDestroyKey(self.Handle)
end,
__index = {
FinalizeKeyPair = function(self)
local status = BCryp... | mit |
aa65535/luci | modules/luci-base/luasrc/dispatcher.lua | 1 | 20735 | -- 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.
local fs = require "nixio.fs"
local sys = require "luci.sys"
local util = require "luci.util"
local http = require "luci.http"
local nixio = require "nixi... | apache-2.0 |
Kthulupwns/darkstar | scripts/globals/mobskills/Aerial_Collision.lua | 5 | 1201 | ---------------------------------------------
-- Aerial Collusion
-- Description: Cone Attack damage and Defense Down, strips Utsusemi (MOBPARAM_WIPE_SHADOWS)
---------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monst... | gpl-3.0 |
die88/ardupilot | Tools/CHDK-Scripts/kap_uav.lua | 96 | 28513 | --[[
KAP UAV Exposure Control Script v3.1
-- Released under GPL by waterwingz and wayback/peabody
http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script
@title KAP UAV 3.1
@param i Shot Interval (sec)
@default i 15
@range i 2 120
@param s Total Shots (0=infinite)
@default s 0
@range ... | gpl-3.0 |
BooM-amour/test | plugins/spanish_lang.lua | 20 | 18303 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
Big-B/dotfiles | awesome/freedesktop/menu.lua | 5 | 3750 | -- Grab environment
local utils = require("freedesktop.utils")
local io = io
local string = string
local table = table
local os = os
local ipairs = ipairs
local pairs = pairs
module("freedesktop.menu")
all_menu_dirs = {
'/usr/share/applications/',
'/usr/local/share/applications/',
'~/.local/share/applicat... | mit |
SkyLothar/lua-resty-jwt | lib/resty/evp.lua | 1 | 11592 | -- 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 |
shayanchabok555/tigerantispam007 | plugins/xkcd.lua | 628 | 1374 | do
function get_last_id()
local res,code = https.request("http://xkcd.com/info.0.json")
if code ~= 200 then return "HTTP ERROR" end
local data = json:decode(res)
return data.num
end
function get_xkcd(id)
local res,code = http.request("http://xkcd.com/"..id.."/info.0.json")
if code ~= 200 then return "HT... | gpl-2.0 |
Sponk/neotris | scripts/SDK/Object3d.lua | 1 | 6292 | --- The Object3d class
-- An 'Object3d' instance is an object in a scene which can be
-- manipulated via its position, rotation or scale. The 'Object3d' class
-- is mostly used as the base class for other permutations like
-- 'OEntity' or 'OLight' which extend the usability for their specific use-case.
dofile("class.l... | gpl-3.0 |
Moe-/RunAway | particle.lua | 1 | 2310 | class "Particle" {
p = nil;
active = true;
lifetime = 0;
maxLifetime = 0.5;
}
function Particle:__init(x, y, r, g, b, lifetime)
self.posx = x
self.posy = y
self.maxLifetime = lifetime
local id = love.image.newImageData(32, 32)
for x = 0, 31 do
for y = 0, 31 do
local gradient = 1 - ((x-15)^2... | mit |
jlopenwrtluci/luci | applications/luci-app-radicale/luasrc/model/cbi/radicale.lua | 28 | 27049 | -- Copyright 2015-2016 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed under the Apache License, Version 2.0
local NXFS = require("nixio.fs")
local DISP = require("luci.dispatcher")
local DTYP = require("luci.cbi.datatypes")
local HTTP = require("luci.http")
local UTIL = require("luci.ut... | apache-2.0 |
kuoruan/luci | applications/luci-app-radicale/luasrc/model/cbi/radicale.lua | 28 | 27049 | -- Copyright 2015-2016 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed under the Apache License, Version 2.0
local NXFS = require("nixio.fs")
local DISP = require("luci.dispatcher")
local DTYP = require("luci.cbi.datatypes")
local HTTP = require("luci.http")
local UTIL = require("luci.ut... | apache-2.0 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/EditBox.lua | 10 | 7937 |
--------------------------------
-- @module EditBox
-- @extend Widget,IMEDelegate
-- @parent_module ccui
--------------------------------
-- js NA<br>
-- lua NA
-- @function [parent=#EditBox] keyboardDidShow
-- @param self
-- @param #cc.IMEKeyboardNotificationInfo info
--------------------------------
-- ge... | mit |
Kthulupwns/darkstar | scripts/zones/Metalworks/npcs/_6ld.lua | 17 | 1316 | -----------------------------------
-- Area: Metalworks
-- Door: _6ld (President's Office)
-- @pos 92 -19 0.1 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Metalw... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Meriphataud_Mountains/npcs/Chegourt_RK.lua | 28 | 3160 | -----------------------------------
-- Area: Meriphataud Mountains
-- NPC: Chegourt, R.K.
-- Type: Outpost Conquest Guards
-- @pos -295 16 418 119
-------------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
--------------------------------------
require("scripts... | gpl-3.0 |
SPARKTEA/SPARKTEAM | plugin/ingroup.lua | 156 | 60323 | do
-- Check Member
local function check_member_autorealm(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.peer_id
if member_id ~= our_id then
-- Group configuration
data[... | gpl-2.0 |
Kthulupwns/darkstar | scripts/commands/delmission.lua | 3 | 1101 | ---------------------------------------------------------------------------------------------------
-- func: @delmission <logID> <missionID> <player>
-- auth: <Unknown>, modified by TeoTwawki
-- desc: Deletes the given mission from the GM or target player.
-----------------------------------------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/hamsi.lua | 18 | 1253 | -----------------------------------------
-- ID: 5449
-- Item: Hamsi
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 1
-- Mind -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/campaign.lua | 9 | 1157 |
-----------------------------------------------------------------
-- Variable for getNationTeleport and getPoint
-----------------------------------------------------------------
ALLIED_NOTES = 11;
MAW = 4;
PAST_SANDORIA = 5;
PAST_BASTOK = 6;
PAST_WINDURST = 7;
-----------------------------------
-- ha... | gpl-3.0 |
dpino/snabb | lib/pflua/tests/properties/pflua_pipelines_match.lua | 11 | 1542 | #!/usr/bin/env luajit
-- -*- lua -*-
module(..., package.seeall)
package.path = package.path .. ";../?.lua;../../src/?.lua"
-- Compare the results of the libpcap/bpf and pure-lua pflua pipelines.
local pf = require("pf")
local savefile = require("pf.savefile")
local utils = require('pf.utils')
local pflang = require(... | apache-2.0 |
Kthulupwns/darkstar | scripts/globals/items/bibikibo.lua | 18 | 1256 | -----------------------------------------
-- ID: 4314
-- Item: Bibikibo
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 1
-- Mind -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
----------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Quicksand_Caves/npcs/Goblin_Geologist.lua | 38 | 1025 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Goblin Geologist
-- Type: Mission
-- @pos -737.000 -11.125 -550.000 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Caves... | gpl-3.0 |
FPtje/DarkRP | gamemode/modules/language/sh_language.lua | 1 | 3672 | local rp_languages = {}
local selectedLanguage = GetConVar("gmod_language"):GetString() -- Switch language by setting gmod_language to another language
function DarkRP.addLanguage(name, tbl)
local old = rp_languages[name] or {}
rp_languages[name] = tbl
-- Merge the language with the translations added by ... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.