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 |
|---|---|---|---|---|---|
FPtje/DarkRP | gamemode/modules/base/sh_commands.lua | 12 | 1750 | DarkRP.declareChatCommand{
command = "rpname",
description = "Set your RP name",
delay = 1.5
}
DarkRP.declareChatCommand{
command = "name",
description = "Set your RP name",
delay = 1.5
}
DarkRP.declareChatCommand{
command = "nick",
description = "Set your RP name",
delay = 1.5
}
... | mit |
Kthulupwns/darkstar | scripts/zones/Bastok_Mines/npcs/Quelle.lua | 28 | 2054 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Quelle
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/chocobo");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/globals/status");
----------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/spells/bluemagic/tail_slap.lua | 3 | 1049 | require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/bluemagic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
function onSpellCast(caster,target,sp... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/spells/rainstorm.lua | 31 | 1153 | --------------------------------------
-- Spell: Rainstorm
-- Changes the weather around target party member to "rainy."
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
----------------------------------------... | gpl-3.0 |
mightymadTV/gmod_deathmatch | teamdeathmatch/entities/entities/lua_run.lua | 3 | 1925 |
ENT.Type = "point"
ENT.DisableDuplicator = true
AccessorFunc( ENT, "m_bDefaultCode", "DefaultCode" )
--[[---------------------------------------------------------
Name: Initialize
Desc:
-----------------------------------------------------------]]
function ENT:Initialize()
end
--[[-------------------------... | gpl-2.0 |
alioshii/KASBAR | plugins/lock_reply.lua | 9 | 1439 | --[[
#
#ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#:((
# For More Information ....!
# Developer : Aziz < @TH3_GHOST >
# our channel: @DevPointTeam
# Version: 1.1
#:))
#ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#
]]
do... | gpl-2.0 |
Velkon/DarkRP | entities/weapons/weapon_cs_base2/shared.lua | 5 | 17289 | AddCSLuaFile()
if SERVER then
include("sv_commands.lua")
include("sh_commands.lua")
SWEP.Weight = 5
SWEP.AutoSwitchTo = false
SWEP.AutoSwitchFrom = false
end
if CLIENT then
SWEP.DrawAmmo = true
SWEP.DrawCrosshair = false
SWEP.ViewModelFOV = 82
SWEP.ViewModelFli... | mit |
mightymadTV/gmod_deathmatch | teamdeathmatch/entities/entities/ragdoll_motion.lua | 3 | 6498 |
AddCSLuaFile()
ENT.Type = "anim"
ENT.Spawnable = false
ENT.AdminOnly = false
ENT.Editable = true
local matBone = Material( "widgets/bone.png", "unlitsmooth" )
function ENT:SetupDataTables()
--
-- Scale - how far the ragdoll will move in the game world in relation to how far it moved in the real world
-... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Qufim_Island/npcs/Sasa_IM.lua | 28 | 3140 | -----------------------------------
-- Area: Qufim Island
-- NPC: Sasa, I.M.
-- Type: Outpost Conquest Guards
-- @pos -245.366 -20.344 299.502 126
-------------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/c... | gpl-3.0 |
rohanp/Algorithm-Implementations | Floyd_Warshall/Lua/Yonaba/floyd_warshall_test.lua | 26 | 1638 | -- Tests for floyd_warshall.lua
local fw = require 'floyd_warshall'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function same(t, d)
if #t ~= #d then return false end
if #t[1] ~= #d[1] then return false end
loc... | mit |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/script/init.lua | 39 | 1826 |
require "cocos.cocos2d.Cocos2d"
require "cocos.cocos2d.Cocos2dConstants"
require "cocos.cocos2d.extern"
require "cocos.cocos2d.bitExtend"
require "cocos.cocos2d.DrawPrimitives"
-- opengl
require "cocos.cocos2d.Opengl"
require "cocos.cocos2d.OpenglConstants"
-- cocosbuilder
require "cocos.cocosbuilder.CCBReaderLoad"
... | mit |
dios-game/dios-cocos-samples | src/lua-fantasy-warrior-3d/Resources/src/cocos/init.lua | 39 | 1826 |
require "cocos.cocos2d.Cocos2d"
require "cocos.cocos2d.Cocos2dConstants"
require "cocos.cocos2d.extern"
require "cocos.cocos2d.bitExtend"
require "cocos.cocos2d.DrawPrimitives"
-- opengl
require "cocos.cocos2d.Opengl"
require "cocos.cocos2d.OpenglConstants"
-- cocosbuilder
require "cocos.cocosbuilder.CCBReaderLoad"
... | mit |
Mleaf/mleaf_luci | applications/luci-asterisk/luasrc/model/cbi/asterisk/dialplans.lua | 80 | 2807 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 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$
]]--
l... | apache-2.0 |
LubyRuffy/haka | modules/protocol/http/test/uri-split.lua | 5 | 3224 | -- 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/.
local http = require('protocol/http')
local function count_table(tab)
local index = 0
for k, _ in pairs(tab) do
... | mpl-2.0 |
Velkon/DarkRP | gamemode/modules/doorsystem/sh_doors.lua | 2 | 6007 | local meta = FindMetaTable("Entity")
local plyMeta = FindMetaTable("Player")
function meta:isKeysOwnable()
if not IsValid(self) then return false end
local class = self:GetClass()
if ((class == "func_door" or class == "func_door_rotating" or class == "prop_door_rotating") or
(GAMEMODE.Config.a... | mit |
ark120202/aabs | game/scripts/vscripts/items/item_rune_keeper.lua | 1 | 1430 | function TrackStacks(keys)
local caster = keys.caster
local ability = keys.ability
if not ability.RuneContainer then ability.RuneContainer = {} end
for i,v in ipairs(ability.RuneContainer) do
if GameRules:GetGameTime() > v.expireGameTime then
PreformRuneUsage(caster, ability, ability:GetLevelSpecialValueFor("... | mit |
Kthulupwns/darkstar | scripts/zones/The_Sanctuary_of_ZiTah/npcs/Calliope_IM.lua | 30 | 3070 | -----------------------------------
-- Area: The Sanctuary of Zi'Tah
-- NPC: Calliope, I.M.
-- Outpost Conquest Guards
-- @pos -40.079 -0.642 -148.785 121
-----------------------------------
package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
xvaara/kong | spec/plugins/jwt/hooks_spec.lua | 2 | 5617 | local json = require "cjson"
local http_client = require "kong.tools.http_client"
local spec_helper = require "spec.spec_helpers"
local cache = require "kong.tools.database_cache"
local jwt_encoder = require "kong.plugins.jwt.jwt_parser"
local STUB_GET_URL = spec_helper.STUB_GET_URL
local API_URL = spec_helper.API_URL... | apache-2.0 |
awhitesong/rspamd | src/plugins/lua/once_received.lua | 1 | 4990 | --[[
Copyright (c) 2011-2015, Vsevolod Stakhov <vsevolod@highsecure.ru>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
lis... | bsd-2-clause |
Kthulupwns/darkstar | scripts/globals/items/windurst_taco.lua | 35 | 1560 | -----------------------------------------
-- ID: 5172
-- Item: windurst_taco
-- Food Effect: 30Min, All Races
-----------------------------------------
-- MP 20
-- Vitality -1
-- Agility 5
-- MP Recovered While Healing 1
-- Ranged Accuracy % 8 (cap 10)
-----------------------------------------
require("scr... | gpl-3.0 |
letoram/awb | awb_browser.lua | 1 | 2175 | --
-- Browser component with icons etc.
--
local browse_ext = {
};
function awbbrowse_gamedata(tbl)
local res = resourcefinder_search(tbl, true);
local list = {};
for i,j in ipairs(res.movies) do
local ment = {
resource = j,
name = "video_" .. tostring(i),
trigger = function()
local wnd, tfun... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Lower_Jeuno/npcs/Fephita.lua | 28 | 1801 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Fephita
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/chocobo");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/globals/status");
----------------------------... | gpl-3.0 |
ZeroNoFun/The-Aperture | lua/aperture/sounds/laser_sounds.lua | 2 | 1243 | --[[
LASER SOUNDS SOUNDS
]]
AddCSLuaFile()
APERTURESCIENCE.LaserBodyBurn =
{
channel = CHAN_BODY,
name = "GASL.LaserBodyBurn",
level = 65,
sound = { "player/pl_burnpain1_no_vo.wav"
, "player/pl_burnpain2_no_vo.wav"
, "player/pl_burnpain3_no_vo.wav"
},
volume = 1.0,
pitch = 100,
}
sound.Add( APERTURESCI... | mit |
Kthulupwns/darkstar | scripts/zones/Quicksand_Caves/npcs/_5s9.lua | 19 | 1272 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Ornate Door
-- Door blocked by Weight system
-- @pos -345 0 820 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Cave... | gpl-3.0 |
dios-game/dios-cocos-samples | src/lua-coin-tree/Resources/src/cocos/framework/extends/NodeEx.lua | 57 | 5161 | --[[
Copyright (c) 2011-2014 chukong-inc.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dis... | mit |
Kthulupwns/darkstar | scripts/zones/Sealions_Den/mobs/Tenzen.lua | 27 | 1077 | -----------------------------------
-- Area: Sealion den
-- NPC: Tenzen
-----------------------------------
-----------------------------------
-- onMobSpawn
-----------------------------------
function onMobSpawn(mob)
end;
-----------------------------------
-- onMobEngaged
--------------------------... | gpl-3.0 |
jlopenwrtluci/luci | applications/luci-app-pbx/luasrc/model/cbi/pbx-calls.lua | 117 | 18881 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | apache-2.0 |
aa65535/luci | applications/luci-app-pbx/luasrc/model/cbi/pbx-calls.lua | 117 | 18881 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Temenos/mobs/Beli.lua | 17 | 1186 | -----------------------------------
-- Area: Temenos N T
-- NPC: Beli
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
--------------------------------... | gpl-3.0 |
alioshii/KASBAR | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
jlopenwrtluci/luci | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/dns.lua | 68 | 2109 | -- Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.dns", package.seeall)
function rrdargs( graph, plugin, plugin_instance )
local traffic = {
title = "%H: DNS traffic", vlabel = "Bit/s",
data = {
sou... | apache-2.0 |
Kthulupwns/darkstar | scripts/globals/items/bowl_of_dhalmel_stew.lua | 35 | 1749 | -----------------------------------------
-- ID: 4433
-- Item: Bowl of Dhalmel Stew
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Strength 4
-- Agility 1
-- Vitality 2
-- Intelligence -2
-- Attack % 25
-- Attack Cap 45
-- Ranged ATT % 25
-- Ranged ATT Cap 45
---------------... | gpl-3.0 |
Omar-Real/RealBot | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
ma137292/mostafa-Bot | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
junrw/ember-gsoc2012 | src/components/ogre/widgets/EntityEditor.lua | 1 | 40958 | --Allows the editing of entities
EntityEditor = {
adapters = {
map = {
name = "Map",
createAdapter = function(self, element, prototype)
local wrapper = {}
wrapper.container = guiManager:createWindow("DefaultWindow")
wrapper.adapter = self.factory:createMapAdapter(wrapper.container, self.instance.... | gpl-3.0 |
dpino/snabb | src/core/histogram.lua | 8 | 4158 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
-- histogram.lua -- a histogram with logarithmic buckets
module(...,package.seeall)
local ffi = require("ffi")
local shm = require("core.shm")
local log, floor, max, min = math.log, math.floor, math.max, math.min
type = shm.register('his... | apache-2.0 |
cedlemo/blingbling | config_example/text_box/default/theme.lua | 2 | 8043 | ---------------------------
-- Default awesome theme --
---------------------------
local home_dir = os.getenv("HOME")
local config_dir = home_dir .. "/.config/awesome"
local themes_dir = config_dir .. "/themes"
local current_theme = themes_dir .. "/default"
theme = {}
theme.font = "Cantarell 9"
alpha = "55"... | gpl-2.0 |
aa65535/luci | applications/luci-app-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua | 61 | 2935 | -- Copyright 2009 Daniel Dickinson
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.luci_diag.netdiscover_common", package.seeall)
require("luci.i18n")
require("luci.util")
require("luci.sys")
require("luci.cbi")
require("luci.model.uci")
local translate = luci.i18n.translate
local Dum... | apache-2.0 |
ark120202/aabs | game/scripts/vscripts/modules/hero_selection/modifier_hero_selection_transformation.lua | 1 | 1100 | modifier_hero_selection_transformation = class({})
function modifier_hero_selection_transformation:CheckState()
return {
[MODIFIER_STATE_STUNNED] = true,
[MODIFIER_STATE_UNSELECTABLE] = true,
[MODIFIER_STATE_INVULNERABLE] = true,
[MODIFIER_STATE_NOT_ON_MINIMAP] = true,
[MODIFIER_STATE_NO_HEALTH_BAR] = true... | mit |
kaeza/love-klib | klib/gui/notebook.lua | 1 | 3102 |
local classes = require "klib.classes"
local Button = require("klib.gui.button").Button
local Compound = require("klib.gui.compound").Compound
local HBox = require("klib.gui.box").HBox
local m = classes.module "klib.gui.notebook"
local Notebook = classes.class(m, "Notebook", Compound)
-- Private fields.
local p_bu... | bsd-2-clause |
Kthulupwns/darkstar | scripts/zones/Crawlers_Nest/mobs/Aqrabuamelu.lua | 21 | 1463 | -----------------------------------
-- Area: Maze of Shakhrami
-- NM: Aqrabuamelu
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(mob... | gpl-3.0 |
kuoruan/luci | protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_ppp.lua | 5 | 3747 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local device, username, password
local ipv6, defaultroute, metric, peerdns, dns,
keepalive_failure, keepalive_interval, demand, mtu
device = section:taboption("general", Value... | apache-2.0 |
AGTMADCAT/naev | dat/ai/frontier_police.lua | 6 | 1699 | include("dat/ai/tpl/generic.lua")
include("dat/ai/personality/patrol.lua")
-- Settings
mem.aggressive = true
-- Create function
function create ()
-- Credits.
ai.setcredits( rnd.int(ai.pilot():ship():price()/300, ai.pilot():ship():price()/100) )
-- Handle bribing
if rnd.int() > 0.4 then
mem.bribe... | gpl-3.0 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Liquid.lua | 10 | 1291 |
--------------------------------
-- @module Liquid
-- @extend Grid3DAction
-- @parent_module cc
--------------------------------
--
-- @function [parent=#Liquid] getAmplitudeRate
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
--
-- @function [parent=#Liqui... | mit |
amin041/tele-dam- | lang/spanish_lang.lua | 4 | 19823 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
LubyRuffy/haka | sample/ruleset/http/compliance.lua | 3 | 2021 |
------------------------------------
-- Loading regex engine
------------------------------------
local rem = require("regexp/pcre")
------------------------------------
-- HTTP compliance
------------------------------------
-- check http method value
local http_methods = '^get$|^post$|^head$|^put$|^trace$|^delete... | mpl-2.0 |
dpino/snabb | src/lib/protocol/udp.lua | 15 | 2126 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(..., package.seeall)
local ffi = require("ffi")
local C = ffi.C
local header = require("lib.protocol.header")
local ipsum = require("lib.checksum").ipsum
local lib = require("core.lib")
local htons, ntohs = lib.htons, lib.ntohs
loca... | apache-2.0 |
mrbangi/mmb | plugins/sticklock.lua | 2 | 19217 | do
local administrators_only = 'For administrator only!'
local moderators_only = 'For moderators only!'
local function create_group(msg)
if not is_admin(msg) then return administrators_only end
local group_creator = msg.from.print_name
create_group_chat (group_creator, group_name, ok_cb, false)
return 'Group '... | gpl-2.0 |
telbbs/luci-0.12 | applications/luci-asterisk/luasrc/model/cbi/asterisk/dialplan_out.lua | 80 | 3231 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 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$
]]--
l... | apache-2.0 |
dpino/snabb | src/lib/traceprof/traceprof.lua | 9 | 5336 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
-- traceprof.lua: Low-level trace profiler
--
-- Traceprof analyzes the time spent in JIT-compiled traces. It is an
-- alternative to 'jit.p' with fewer features and based on a simpler
-- and (hopefully) more accurate sampling method.
-- ... | apache-2.0 |
mafi-hamyarbott/hamyargroup | plugins/location.lua | 1 | 1667 | -- 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 |
Kthulupwns/darkstar | scripts/zones/Port_San_dOria/npcs/HomePoint#3.lua | 12 | 1250 | -----------------------------------
-- Area: Port San dOria
-- NPC: HomePoint#3
-- @pos -6 -13 -150 232
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Port_San_dOria/TextIDs");
require("scripts/gl... | gpl-3.0 |
dios-game/dios-cocos-samples | src/lua-earth-warrior-3d/Resources/src/BigDude.lua | 2 | 4211 | require("AirCraft")
require("GameLayer")
require("AudioEngine")
local BigDude = class("BigDude", function()
return require("AirCraft").new()
end)
---------------------------
--@return #type description
function BigDude:ctor()
self.shootSchedulerID = nil
self.dismissSchedulerID = nil
end
-----------------------... | mit |
Kthulupwns/darkstar | scripts/globals/items/plate_of_fatty_tuna_sushi.lua | 35 | 1540 | -----------------------------------------
-- ID: 5153
-- Item: plate_of_fatty_tuna_sushi
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 20
-- Dexterity 3
-- Charisma 5
-- Accuracy % 16
-- Ranged ACC 16
-- Sleep Resist 5
-----------------------------------------
requir... | gpl-3.0 |
xvaara/kong | kong/plugins/loggly/handler.lua | 2 | 2975 | local BasePlugin = require "kong.plugins.base_plugin"
local basic_serializer = require "kong.plugins.log-serializers.basic"
local cjson = require "cjson"
local LogglyLogHandler = BasePlugin:extend()
LogglyLogHandler.PRIORITY = 1
local os_date = os.date
local tostring = tostring
local ngx_log = ngx.log
local ngx_ti... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Lebros_Cavern/Zone.lua | 28 | 1486 | -----------------------------------
--
-- Zone: Lebros_Cavern
--
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Lebros_Cavern/IDs");
-----------------------------------
-- onInitialize
-----------------------------------
function onInitialize(zone)
end;... | gpl-3.0 |
jlopenwrtluci/luci | libs/luci-lib-nixio/axTLS/www/lua/test_main.lua | 176 | 1139 | cgilua.htmlheader()
cgilua.put[[
<html>
<head><title>Script Lua Test</title></head>
<body>
cgi = {
]]
for i,v in pairs (cgi) do
if type(v) == "table" then
local vv = "{"
for a,b in pairs(v) do
vv = string.format ("%s%s = %s<br>\n", vv, a, tostring(b))
end
v = vv.."}"
end
cgilua.put (string.format ("%s =... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Northern_San_dOria/npcs/Pellimie.lua | 38 | 1025 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Pellimie
-- Type: Standard Dialogue NPC
-- @zone: 231
-- @pos 145.459 0.000 131.540
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs");... | gpl-3.0 |
alioshii/KASBAR | plugins/ar-azan.lua | 5 | 3827 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY jOker ▀▄ ▄▀
▀▄ ▄▀ BY joker (@fuck_8_you) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY joker ▀▄ ▄▀
▀▄ ▄▀ broadcast : الاذان ▀▄ ▄▀
▀... | gpl-2.0 |
FPtje/DarkRP | gamemode/modules/fpp/pp/server/core.lua | 1 | 26151 | FPP = FPP or {}
FPP.DisconnectedPlayers = FPP.DisconnectedPlayers or {}
local PLAYER = FindMetaTable("Player")
local ENTITY = FindMetaTable("Entity")
--[[-------------------------------------------------------------------------
Checks if a model is blocked
-------------------------------------------------------------... | mit |
Kthulupwns/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Matifa.lua | 37 | 1026 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Matifa
-- Type: Standard NPC
-- @pos -10.583 -1 -8.820 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegat... | gpl-3.0 |
AGTMADCAT/naev | dat/missions/baron/baron_prince.lua | 7 | 23693 | --[[
-- This is the second mission in the crazy baron string.
--]]
-- localization stuff, translators would work here
include("fleethelper.lua")
include("dat/scripts/numstring.lua")
lang = naev.lang()
if lang == "es" then
else -- default english
title = {}
text = {}
osd_msg = {}
misn_desc = {}
... | gpl-3.0 |
rohanp/Algorithm-Implementations | Bogobogosort/Lua/Yonaba/bogobogosort.lua | 27 | 1330 | -- Bogobogosort description
-- See : http://www.dangermouse.net/esoteric/bogobogosort.html
-- A custom array shuffle implementation
-- This is not part of the Bogobogosort algorithm
local function shuffle(list, s, e)
local n = #list
for i = s + 1, e do
local j, k = math.random(s, e), math.random(s, e)
list[j], ... | mit |
pengzj/skynet | lualib/sproto.lua | 5 | 3661 | local core = require "sproto.core"
local assert = assert
local sproto = {}
local host = {}
local weak_mt = { __mode = "kv" }
local sproto_mt = { __index = sproto }
local host_mt = { __index = host }
function sproto_mt:__gc()
core.deleteproto(self.__cobj)
end
function sproto.new(pbin)
local cobj = assert(core.newp... | mit |
Kthulupwns/darkstar | scripts/zones/Nashmau/npcs/HomePoint#1.lua | 12 | 1239 | -----------------------------------
-- Area: Nashmau
-- NPC: HomePoint#1
-- @pos -19.860 0.001 -25.441 53
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/homepo... | gpl-3.0 |
dpino/snabb | src/apps/interlink/receiver.lua | 7 | 1872 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(...,package.seeall)
local shm = require("core.shm")
local interlink = require("lib.interlink")
local Receiver = {name="apps.interlink.Receiver"}
function Receiver:new (queue)
packet.enable_group_freelist()
return setmetatabl... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Upper_Jeuno/npcs/Sibila-Mobla.lua | 34 | 1377 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Sibila-Mobla
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Upper_Jeuno/TextIDs");
require("scripts/globals/quests");... | gpl-3.0 |
davegoopot/mcrcd-minetest-game | games/mcr_coderdojo/mods/Jeija-minetest-mod-mesecons-d19e975/mesecons_microcontroller/init.lua | 2 | 19432 | EEPROM_SIZE = 255
local microc_rules = {}
for a = 0, 1 do
for b = 0, 1 do
for c = 0, 1 do
for d = 0, 1 do
local nodename = "mesecons_microcontroller:microcontroller"..tostring(d)..tostring(c)..tostring(b)..tostring(a)
local top = "jeija_microcontroller_top.png"
if tostring(a) == "1" then
top = top.."^jeija_microcont... | lgpl-3.0 |
GabrielNicolasAvellaneda/luvit-upstream | tests/libs/deep-equal.lua | 3 | 1798 | --[[
Copyright 2014 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 |
jorgehog/LibLinAlg | LibLinAlg_StringMatrix.lua | 1 | 2127 |
local addFunc = function(self, other) return self.strAdd(other) end
local concatFunc = function (self, other) return self.strConcat(other) end
print("String library loaded")
function Library.LibLinAlg.StringMatrix(__n, __m, blank)
local base = Library.LibLinAlg.Matrix(__n, __m, false)
local self = setmetatable({}... | gpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/Quest/arena.lua | 1 | 2568 | 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 onCreatureSay(cid, type, m... | gpl-3.0 |
dpino/snabb | lib/ljsyscall/syscall/linux/mips/nr.lua | 24 | 11626 | -- MIPS syscall numbers
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
-- these are different for different ... | apache-2.0 |
amenophis1er/prosody-modules | mod_srvinjection/mod_srvinjection.lua | 32 | 1246 |
module:set_global();
local adns = require "net.adns";
local map_config = module:get_option("srvinjection") or {};
local map = module:shared "s2s_map"
for host, mapping in pairs(map_config) do
if type(mapping) == "table" and type(mapping[1]) == "string" and (type(mapping[2]) == "number") then
local connecthost, c... | mit |
ark120202/aabs | game/scripts/vscripts/libraries/animations.lua | 10 | 16024 | ANIMATIONS_VERSION = "1.00"
--[[
Lua-controlled Animations Library by BMD
Installation
-"require" this file inside your code in order to gain access to the StartAnmiation and EndAnimation global.
-Additionally, ensure that this file is placed in the vscripts/libraries path and that the vscripts/libraries/modi... | mit |
Kthulupwns/darkstar | scripts/zones/Abyssea-Konschtat/npcs/Cruor_Prospector.lua | 29 | 10684 | -----------------------------------
-- Area: Abyssea - Konschtat
-- NPC: Cruor Prospector
-- Type: Cruor NPC
--
-----------------------------------
package.loaded["scripts/zones/Abyssea-Konschtat/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status"... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/spells/hydrohelix.lua | 22 | 1718 | --------------------------------------
-- Spell: Hydrohelix
-- Deals water damage that gradually reduces
-- a target's HP. Damage dealt is greatly affected by the weather.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals... | gpl-3.0 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/plugin/samples/HelloPluginsLua/src/main.lua | 7 | 1120 | cc.FileUtils:getInstance():addSearchPath("src")
cc.FileUtils:getInstance():addSearchPath("res")
-- CC_USE_DEPRECATED_API = true
require "cocos.init"
-- cclog
cclog = function(...)
print(string.format(...))
end
-- for CCLuaEngine traceback
function __G__TRACKBACK__(msg)
cclog("---------------------------------... | mit |
dpino/snabb | src/apps/keyed_ipv6_tunnel/tunnel.lua | 9 | 10003 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(...,package.seeall)
-- http://tools.ietf.org/html/draft-mkonstan-keyed-ipv6-tunnel-01
-- TODO: generalize
local AF_INET6 = 10
local ffi = require("ffi")
local C = ffi.C
local bit = require("bit")
local app = require("core.app")
l... | apache-2.0 |
sirnuke/soup-kitchen-love | tests/world/tile_spec.lua | 1 | 1076 | -- Soup Kitchen
-- Bryan DeGrendel (c) 2016
require "tests.setup"
describe("Tile", function()
require "soup-kitchen.settings"
require "soup-kitchen.world.coordinate"
require "soup-kitchen.world.map"
require "soup-kitchen.world.position"
require "soup-kitchen.world.tile"
local x, y
local coord
local t... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Uleguerand_Range/mobs/Jormungand.lua | 13 | 2511 | -----------------------------------
-- Area: Uleguaerand Range
-- NPC: Jormungand
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/titles");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInit... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Chateau_dOraguille/npcs/Mistaravant.lua | 38 | 1049 | -----------------------------------
-- Area: Chateau d'Oraguille
-- NPC: Mistaravant
-- Type: Standard NPC
-- @zone: 233
-- @pos 7.097 -3.999 67.988
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil;
... | gpl-3.0 |
aa65535/luci | applications/luci-app-aria2/luasrc/model/cbi/aria2.lua | 16 | 7911 | --[[
LuCI - Lua Configuration Interface - Aria2 support
Copyright 2014-2016 nanpuyue <nanpuyue@gmail.com>
Modified by maz-1 <ohmygod19993@gmail.com>
Modified by kuoruan <kuoruan@gmail.com>
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 |
rohanp/Algorithm-Implementations | Iterative_Deepening_Depth_First_Search/Lua/Yonaba/iddfs.lua | 26 | 3480 | -- Generic Iterative Deepening Depth-First search algorithm implementation
-- See : http://en.wikipedia.org/wiki/Iterative_deepening_depth-first_search
-- Notes : this is a generic implementation of IDDFS algorithm.
-- It is devised to be used on any type of graph (point-graph, tile-graph,
-- or whatever. It expects t... | mit |
Kthulupwns/darkstar | scripts/globals/weaponskills/fast_blade.lua | 30 | 1345 | -----------------------------------
-- Fast Blade
-- Sword weapon skill
-- Skill Level: 5
-- Delivers a two-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Soil Gorget.
-- Aligned with the Soil Belt.
-- Element: None
-- Modifiers: STR:20% ; DEX:20%
-- 100%TP 200%TP ... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Apollyon/mobs/Sirin.lua | 17 | 1134 | -----------------------------------
-- Area: Apollyon NE
-- NPC: Sirin
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
-----------------------------... | gpl-3.0 |
Alig96/nzombies | nzombies3/entities/entities/breakable_entry/shared.lua | 1 | 2673 | AddCSLuaFile( )
ENT.Type = "anim"
ENT.PrintName = "breakable_entry"
ENT.Author = "Alig96"
ENT.Contact = "Don't"
ENT.Purpose = ""
ENT.Instructions = ""
//models/props_interiors/elevatorshaft_door01a.mdl
//models/props_debris/wood_board02a.mdl
function ENT:Initialize()
self:SetModel("models/props_c17/fence01b.... | gpl-3.0 |
Mleaf/mleaf_luci | contrib/luadoc/lua/luadoc/doclet/formatter.lua | 171 | 2556 | -------------------------------------------------------------------------------
-- Doclet to format source code according to LuaDoc standard tags. This doclet
-- (re)write .lua files adding missing standard tags. Texts are formatted to
-- 80 columns and function parameters are added based on code analysis.
--
-- @relea... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Sauromugue_Champaign/npcs/qm4.lua | 11 | 2294 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: qm4 (???) (Tower 4)
-- Involved in Quest: THF AF "As Thick As Thieves"
-- @pos 129.587 -0.600 -235.525 120
-----------------------------------
package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil;
------------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Nashmau/npcs/Kakkaroon.lua | 17 | 2217 | -----------------------------------
-- Area: Nashmau
-- NPC: Kakkaroon
-- Standard Info NPC
-- @pos 13.245 0.000 -25.307 53
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/global... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/effects/teleport.lua | 4 | 2532 | -----------------------------------
--
-- EFFECT_TELEPORT
--
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/teleports");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
e... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/yellow_curry_bun.lua | 35 | 2171 | -----------------------------------------
-- ID: 5757
-- Item: yellow_curry_bun
-- Food Effect: 30minutes, All Races
-----------------------------------------
-- Health Points 25
-- Strength 5
-- Agility 2
-- Intelligence -4
-- Attack 20% (caps @ 75)
-- Ranged Attack 20% (caps @ 75)
-- Resist Sleep
-- Resi... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/West_Ronfaure/npcs/Aaveleon.lua | 17 | 1496 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Aaveleon
-- Involved in Quest: A Sentry's Peril
-- @pos -431 -45 343 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Attohwa_Chasm/mobs/Sargas.lua | 13 | 2084 | -----------------------------------
-- Area: Attohwa Chasm
-- NM: Sargas
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(... | gpl-3.0 |
himamm/uzzbot | plugins/groupmanager.lua | 166 | 11272 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if not is_admin(msg) then
return "You're not admin!"
end
local group_creator = msg.from.print_name
create_group_chat (group_cr... | gpl-2.0 |
kuoruan/luci | libs/luci-lib-nixio/root/usr/lib/lua/nixio/fs.lua | 184 | 3723 | --[[
nixio - Linux I/O library for lua
Copyright 2009 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
local... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Western_Adoulin/npcs/Home_Point#2.lua | 16 | 1186 | -----------------------------------
-- Area: Western_Adoulin
-- NPC: HomePoint#2
-- @pos
-----------------------------------
package.loaded["scripts/zones/Western_Adoulin/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Western_Adoulin/TextIDs");
require("scripts/globals/homepoint");
--... | gpl-3.0 |
amenophis1er/prosody-modules | mod_isolate_host/mod_isolate_host.lua | 31 | 1667 | local jid = require "util.jid";
local jid_bare, jid_split = jid.bare, jid.split;
local is_admin = require "core.usermanager".is_admin;
local set = require "util.set";
local st = require "util.stanza";
local stanza_types = set.new{"message", "presence", "iq"};
local jid_types = set.new{"bare", "full", "host"};
local e... | mit |
Kthulupwns/darkstar | scripts/globals/mobs.lua | 30 | 1617 | -----------------------------------
--
--
--
-----------------------------------
package.loaded["scripts/globals/conquest"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/missions");
require("scripts/globals/conquest");
require("scripts/globals/status"... | gpl-3.0 |
maier/nad | plugins/linux/bccbpf/lua/mod_runqlat.lua | 3 | 2119 | local circll = require("circll")
local BPF_TEXT = [[
#include <uapi/linux/ptrace.h>
#include <linux/sched.h>
#include <linux/nsproxy.h>
#include <linux/pid_namespace.h>
typedef struct pid_key {
u64 id; // work around
u64 slot;
} pid_key_t;
typedef struct pidns_key {
u64 id; // work around
u64 s... | bsd-3-clause |
Kthulupwns/darkstar | scripts/zones/Northern_San_dOria/npcs/Baraka.lua | 17 | 2115 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Baraka
-- Involved in Missions 2-3
-- @zone 231
-- @pos 36 -2 -2
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/setting... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.