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 |
|---|---|---|---|---|---|
linxiulei/sysdig | userspace/sysdig/chisels/ps.lua | 17 | 2773 | --[[
Copyright (C) 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 even t... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0023-n0025-o0000.lua | 1 | 1401 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
CCAAHH/creed | plugins/ingroup.lua | 30 | 48221 | 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.id
if member_id ~= our_id then
-- Group configuration
data[tostr... | gpl-2.0 |
splay-project/splay | src/rpc_client/splay-list-libs.lua | 1 | 3048 | #!/usr/bin/env lua
--[[
Splay Client Commands ### v1.4 ###
Copyright 2006-2011
http://www.splay-project.org
]]
--[[
This file is part of Splay.
Splay 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 Fo... | gpl-3.0 |
Invertika/data | scripts/maps/ow-n0001-p0022-o0000.lua | 1 | 1401 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
remakeelectric/luci | applications/luci-app-firewall/luasrc/model/cbi/firewall/zone-details.lua | 4 | 6079 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2010-2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local nw = require "luci.model.network"
local fw = require "luci.model.firewall"
local ds = require "luci.dispatcher"
local ut = require "luci.util"
loca... | apache-2.0 |
nightcj/mmo | test/testredis.lua | 85 | 1039 | local skynet = require "skynet"
local redis = require "redis"
local conf = {
host = "127.0.0.1" ,
port = 6379 ,
db = 0
}
local function watching()
local w = redis.watch(conf)
w:subscribe "foo"
w:psubscribe "hello.*"
while true do
print("Watch", w:message())
end
end
skynet.start(function()
skynet.fork(watc... | mit |
Invertika/data | scripts/maps/ow-n0017-p0018-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
techiejohn/SimTools | Miscellaneous/ThrottleManager.lua | 2 | 10260 | -- Throttle Manager 1.2.0
-- E-mail: pilotjohn at gearsdown.com
-- Sounds: http://www.freesound.org/people/milton./packs/5284/
--
-- Manage throttles to provide both forward and reverse thrust
-- on single axes by allowing functionality toggle through dedicated
-- joystick buttons (such as those below the detent ... | mit |
mendsley/premake-core | modules/vstudio/tests/cs2005/test_project_refs.lua | 2 | 3237 | --
-- tests/actions/vstudio/cs2005/test_project_refs.lua
-- Test the project dependencies block of a Visual Studio 2005+ C# project.
-- Copyright (c) 2012 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vstudio_cs2005_project_refs")
local cs2005 = p.vstudio.cs2005
--
-- Setu... | bsd-3-clause |
Invertika/data | scripts/maps/ow-n0012-p0009-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Android092921/farsi | plugins/inrealm.lua | 1 | 25087 | -- 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 is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
jcai1/WowCoding | weakauras/roaring-blaze/table.lua | 1 | 3431 | {
d = {
actions = {
init = {
custom = "----- Roaring Blaze -----\nlocal A = aura_env\n-- local R = WeakAuras.regions[A.id].region\n-- local S = WeakAurasSaved.displays[A.id]\nlocal playerGUID = UnitGUID(\"player\")\n\n----- Set options here -----\nlocal refreshRate = 20\n\n----- Utility -----\nlocal... | mit |
Invertika/data | scripts/maps/ow-p0018-p0025-o0000.lua | 1 | 1401 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
tian0506123/myGame | cocos2d/plugin/luabindings/auto/api/ProtocolUser.lua | 146 | 1133 |
--------------------------------
-- @module ProtocolUser
-- @extend PluginProtocol
-- @parent_module plugin
--------------------------------
-- brief config the application info<br>
-- param devInfo This parameter is the info of aplication,<br>
-- different plugin have different format<br>
-- warning Must invoke this... | apache-2.0 |
Invertika/data | scripts/maps/ow-n0015-p0011-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-p0003-n0014-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-n0009-p0020-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
hackpascal/luci | applications/luci-app-watchcat/luasrc/model/cbi/watchcat/watchcat.lua | 43 | 1898 | -- Copyright 2012 Christian Gagneraud <chris@techworks.ie>
-- Licensed to the public under the Apache License 2.0.
m = Map("system",
translate("Watchcat"),
translate("Watchcat allows configuring a periodic reboot when the " ..
"Internet connection has been lost for a certain period of time."
))
s = m:secti... | apache-2.0 |
linxiulei/sysdig | userspace/sysdig/chisels/iobytes.lua | 18 | 1666 | --[[
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 |
Meoo/premake-core | src/host/lua-5.1.4/test/life.lua | 888 | 2635 | -- life.lua
-- original by Dave Bollinger <DBollinger@compuserve.com> posted to lua-l
-- modified to use ANSI terminal escape sequences
-- modified to use for instead of while
local write=io.write
ALIVE="¥" DEAD="þ"
ALIVE="O" DEAD="-"
function delay() -- NOTE: SYSTEM-DEPENDENT, adjust as necessary
for i=1,10000 do... | bsd-3-clause |
Invertika/data | scripts/maps/ow-o0000-p0025-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | effects/zoe.lua | 18 | 11600 | -- zoe_cap
-- zoe_cap3
-- zoe_cap4
-- zoe_cap2
-- zoe
-- zoe_ring
return {
["zoe_cap"] = {
rocks = {
air = true,
class = [[CSimpleParticleSystem]],
count = 10,
ground = true,
water = true,
underwater = t... | gpl-2.0 |
Meoo/premake-core | tests/base/test_os.lua | 3 | 4143 | --
-- tests/base/test_os.lua
-- Automated test suite for the new OS functions.
-- Copyright (c) 2008-2014 Jason Perkins and the Premake project
--
local suite = test.declare("base_os")
local cwd
function suite.setup()
cwd = os.getcwd()
os.chdir(_TESTS_DIR)
end
function suite.teardown()
os... | bsd-3-clause |
PaulosV/ntopng | scripts/lua/modules/top_scripts/top_os.lua | 10 | 6839 | --
-- (C) 2013-15 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "top_talkers"
require "json"
local top_os_intf = {}
if (ntop.isPro()) then
package.path = dirs.installdir .. "/pro/scripts/lua/modules/top_scripts/?.lua;" .. package.path
... | gpl-3.0 |
dvdvideo1234/wire | lua/entities/gmod_wire_expression2/core/custom/remoteupload.lua | 3 | 2122 | E2Lib.RegisterExtension("remoteupload", false, "Allows the E2 to remotely change the source code of other E2s.")
local antispam = {}
local function check(ply)
if antispam[ply] and antispam[ply] > CurTime() then
return false
else
antispam[ply] = CurTime() + 1
return true
end
end
umsg.PoolString("e2_remoteupl... | apache-2.0 |
zjohn4/PD2-lua-src | lib/units/editor/flashlightelement.lua | 1 | 1256 | FlashlightUnitElement = FlashlightUnitElement or class( MissionElement )
function FlashlightUnitElement:init( unit )
FlashlightUnitElement.super.init( self, unit )
self._hed.state = false
self._hed.on_player = false
table.insert( self._save_values, "state" )
table.insert( self._save_values, "on_player" )
end... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0014-n0009-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
TeleMidia/dietncl | dietncl/filter/descriptor.lua | 1 | 2287 | --[[ filter.unused_media -- Remove unused medias.
Copyright (C) 2013-2017 PUC-Rio/Laboratorio TeleMidia
This file is part of DietNCL.
DietNCL 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... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0025-n0005-o0000.lua | 1 | 1401 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
stephen322/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 |
Invertika/data | scripts/maps/ow-p0006-p0009-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-n0017-p0008-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-n0002-p0006-o0000.lua | 1 | 1399 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
splay-project/splay | daemon/src/lua/testcases/test_socket.lua | 2 | 1248 | local socket = require"socket"
assert(socket._VERSION == "LuaSocket 3.0-rc1")
assert(socket.dns) -- table: 0x7fc8b1c0fc60
assert(socket._SETSIZE== 1024)
assert(socket.protect) -- function: 0x105c0bff0
assert(socket.choose) -- function: 0x7fc8b1c06310
assert(socket.try) -- function: 0x7fc8b1c062e0
assert(socket.connect4... | gpl-3.0 |
GoogleFrog/Zero-K | effects/missile.lua | 25 | 5590 | -- missile_tag_white_10
-- missile_hit_sphere_120
-- missile_hit_pikes_160
-- missile_tag_white_40
return {
["missile_tag_white_10"] = {
smoketrail = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water... | gpl-2.0 |
GoogleFrog/Zero-K | LuaRules/Gadgets/unit_bomber_dive.lua | 2 | 8056 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
typcn/mpv | TOOLS/lua/cycle-deinterlace-pullup.lua | 52 | 2012 | -- This script cycles between deinterlacing, pullup (inverse
-- telecine), and both filters off. It uses the "deinterlace" property
-- so that a hardware deinterlacer will be used if available.
--
-- It overrides the default deinterlace toggle keybinding "D"
-- (shift+d), so that rather than merely cycling the "deinter... | gpl-2.0 |
cogwerkz/gUI4 | gUI4_UnitFrames/units/target.lua | 1 | 15802 | local addon,ns = ...
local gUI4 = GP_LibStub("GP_AceAddon-3.0"):GetAddon("gUI4", true)
if not gUI4 then return end
local oUF = gUI4.oUF
if not oUF then return end
local parent = gUI4:GetModule("gUI4_UnitFrames")
if not parent then return end
local module = parent:NewModule("Target", "GP_AceEvent-3.0")
... | mit |
hfjgjfg/yagop54 | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
wsmith323/hammerspoon | extensions/spotify/init.lua | 9 | 2589 | --- === hs.spotify ===
---
--- Controls for Spotify music player
local spotify = {}
local alert = require "hs.alert"
local as = require "hs.applescript"
-- Internal function to pass a command to Applescript.
local function tell(cmd)
local _cmd = 'tell application "Spotify" to ' .. cmd
local ok, result = as.apple... | mit |
Deiz/naev | dat/ai/flee.lua | 11 | 1051 | include("dat/ai/include/basic.lua")
include("dat/ai/personality/trader.lua")
--[[
===FLEE AI===
Mission specific AI to make pilots leave the system immediately.
Settings
--]]
-- Required control rate
control_rate = 2
-- Required "flee" function
function create ()
end
-- Required "control" function
function co... | gpl-3.0 |
peymankhanas8487/Horror_Avatar | plugins/lyrics.lua | 695 | 2113 | do
local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs'
local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5'
local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect'
local function getInfo(query)
print('Getting info of ' .. query)
local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY
... | gpl-2.0 |
CestusMagnus/go-qt5 | make/ui/tablewidgetitem.lua | 4 | 1623 | module("tablewidgetitem")
name = "TableWidgetItem"
base = "object"
funcs = [[
+ Init()
+ InitWithText(text string)
- Close()
SetBackground(b Brush)
Background()(b Brush)
SetCheckState(c CheckState)
CheckState()(c CheckState)
Column()(i int)
SetFlags(f ItemFlags)
Flags()(f ItemFlags)
SetFont(f Font)
Font()(f Font)
Se... | bsd-2-clause |
Wedmer/luci | applications/luci-app-ddns/luasrc/model/cbi/ddns/hints.lua | 12 | 6943 | -- Copyright 2014-2016 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed to the public under the Apache License 2.0.
local DISP = require "luci.dispatcher"
local SYS = require "luci.sys"
local CTRL = require "luci.controller.ddns" -- this application's controller
local DDNS = require "luc... | apache-2.0 |
ignacio/LuaNode | lib/luanode/stream.lua | 2 | 2323 | local Class = require "luanode.class"
local EventEmitter = require "luanode.event_emitter"
local _M = {
_NAME = "luanode.stream",
_PACKAGE = "luanode."
}
-- Make LuaNode 'public' modules available as globals.
luanode.stream = _M
-- Stream Class
local Stream = Class.InheritsFrom(EventEmitter)
_M.Stream = Stream
Str... | mit |
Wedmer/luci | libs/luci-lib-nixio/axTLS/samples/lua/axssl.lua | 176 | 19286 | #!/usr/local/bin/lua
--
-- Copyright (c) 2007, Cameron Rich
--
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright notice,
-... | apache-2.0 |
shahifaqeer/my-luci-bismark-0.11 | modules/admin-full/luasrc/model/cbi/admin_system/fstab/swap.lua | 9 | 1963 | --[[
LuCI - Lua Configuration Interface
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://www.apache.org/licenses/LICENSE-2.0
$Id: swap.lua... | apache-2.0 |
HarpyWar/pvpgn | lua/include/table.lua | 7 | 6168 | --[[
Copyright (C) 2014 HarpyWar (harpywar@gmail.com)
This file is a part of the PvPGN Project http://pvpgn.pro
Licensed under the same terms as Lua itself.
]]--
-- Clear table
function table.clear(_table)
for k in pairs(_table) do
_table[k] = nil
end
end
-- Get table size
function table.count(T)
if not T ... | gpl-2.0 |
HeavensSword/darkstar | scripts/zones/Lebros_Cavern/instances/wamoura_farm_raid.lua | 5 | 3465 | -----------------------------------
--
-- Assault: Wamoura Farm Raid
--
-----------------------------------
require("scripts/zones/Lebros_Cavern/IDs");
-----------------------------------
function afterInstanceRegister(player)
local instance = player:getInstance();
player:messageSpecial(Lebros.text.ASSAULT_27_... | gpl-3.0 |
cogwerkz/gUI4 | gUI4_ActionBars/libs/LibBabble-SubZone-3.0/LibBabble-SubZone-3.0_ptBR.lua | 1 | 283248 | --[[
$Id: LibBabble-SubZone-3.0_ptBR.lua 192 2016-08-31 14:08:00Z arith $
Name: LibBabble-SubZone-3.0
Revision: $Rev: 192 $
Maintainers: arith, dynaletik
Last updated by: $Author: arith $
Website: http://www.wowace.com/addons/libbabble-subzone-3-0/
Dependencies: None
License: MIT
]]
local _, private = ...... | mit |
404rq/GTW-RPG | [resources]/GTWrob/rob_c.lua | 2 | 3131 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/404rq/GTW-RPG/
Bugtracker: https://discuss.404rq.com/t/issues
Suggestions: https://discuss.404rq.com/t/deve... | bsd-2-clause |
EMCTeamIR/bot | plugins/inrealm.lua | 71 | 25005 | -- 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 is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
mukunda-/Delleren | Libs/AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua | 15 | 56930 | --- AceConfigDialog-3.0 generates AceGUI-3.0 based windows based on option tables.
-- @class file
-- @name AceConfigDialog-3.0
-- @release $Id: AceConfigDialog-3.0.lua 1126 2014-11-10 06:38:01Z nevcairiel $
local LibStub = LibStub
local MAJOR, MINOR = "AceConfigDialog-3.0", 60
local AceConfigDialog, oldminor = LibStub... | mit |
redfield23/redbot | plugins/anti_spam.lua | 102 | 3744 |
--An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
local data = load_data(_config.moderation.data)
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id =... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/items/lebkuchen_house.lua | 3 | 1147 | -----------------------------------------
-- ID: 5616
-- Item: lebkuchen_house
-- Food Effect: 180Min, All Races
-----------------------------------------
-- HP +8
-- MP +10% (cap 45)
-- INT +3
-- hHP +2
-- hMP +1
-----------------------------------------
require("scripts/globals/status");
-----------------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/abilities/pets/judgment_bolt.lua | 4 | 1126 | ---------------------------------------------------
-- Judgment Bolt
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
require("/scripts/globals/magic");
---------------------------------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/The_Garden_of_RuHmet/Zone.lua | 5 | 11086 | -----------------------------------
--
-- Zone: The_Garden_of_RuHmet (35)
--
-----------------------------------
package.loaded["scripts/zones/The_Garden_of_RuHmet/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/zones/The_Gard... | gpl-3.0 |
shahifaqeer/my-luci-bismark-0.11 | applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/widget.lua | 78 | 1243 | --[[
LuCI - Lua Configuration Interface
Copyright 2012 Manuel Munz <freifunk at somakoma dot de>
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
]]--
... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Beaucedine_Glacier/mobs/Calcabrina.lua | 5 | 1719 | -----------------------------------
-- Area: Beaucedine Glacier
-- NM: Calcabrina
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------
function onMobInitialize(mob)
mob:setMobMod(MOBMOD_ADD_EFF... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/mobskills/smoke_discharger.lua | 33 | 1301 | ---------------------------------------------------
-- Smoke_Discharger
-- Description:
-- Type: Magical
-- additional effect : Petrification.
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
-----... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/abilities/chakra.lua | 2 | 1675 | -----------------------------------
-- Ability: Chakra
-- Cures certain status effects and restores a small amount of HP to user.
-- Obtained: Monk Level 35
-- Recast Time: 5:00
-- Duration: Instant
-----------------------------------
require("scripts/globals/status");
-----------------------------------
function onAb... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/abilities/altruism.lua | 2 | 1037 | -----------------------------------
-- Ability: Altruism
-- Increases the accuracy of your next White Magic spell.
-- Obtained: Scholar Level 75 Tier 2 Merit Points
-- Recast Time: Stratagem Charge
-- Duration: 1 white magic spell or 60 seconds, whichever occurs first
--
-- Level |Charges |Recharge Time per Charge
--... | gpl-3.0 |
devlaith/DEVLAITH-HL | plugins/HL-anti_spam.lua | 3 | 5170 | kicktable = {}
do
local TIME_CHECK = 2 -- seconds
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id == our_id then
return msg
end
-- Save user on Redis
if msg.from.type == 'user' then
local hash = 'user:'..msg... | gpl-2.0 |
taksetareh12/mojtaba | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/items/high_breath_mantle.lua | 3 | 1164 | -----------------------------------------
-- ID: 15487
-- Item: High Breath Mantle
-- Item Effect: HP+38 / Enmity+5
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------------
function onItemCheck(target)
local effect ... | gpl-3.0 |
duane-r/squaresville | mapgen.lua | 1 | 37758 | -- Squaresville mapgen.lua
-- Copyright Duane Robertson (duane@duanerobertson.com), 2017
-- Distributed under the LGPLv2.1 (https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html)
local DEBUG
local abyssal_pivot = -20
local big_trees_mod = minetest.get_modpath('big_trees')
--local biomemap = {}
local biomes = squ... | lgpl-2.1 |
ferbivore/luabox | examples/events.lua | 1 | 1656 | -- Prints every received event.
inspect = require("lib/inspect")
write = require("lib/write")
local last_time_event = nil
local last_termbox_event = nil
function luabox.load()
termbox.setinmode(termbox.inmode.altMouse)
display()
end
function luabox.event(e)
if(e.key == termbox.key.CtrlC) then
... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Windurst_Waters/npcs/Koko_Lihzeh.lua | 5 | 1513 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Koko Lihzeh
-- Involved in Quest: Making the Grade, Riding on the Clouds
-- @zone 238
-- !pos 135 -6 162
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("s... | gpl-3.0 |
arrayfire/arrayfire-lua | wrapper/arrayfire/methods/methods.lua | 4 | 2234 | --- Array methods.
-- Modules --
local af = require("arrayfire_lib")
-- Exports --
local M = {}
-- See also: https://github.com/arrayfire/arrayfire/blob/devel/src/api/cpp/array.cpp
-- --
local Dims = {}
--
function M.Add (array_module, meta)
local Call = array_module.Call
local CallWrap = array_module.CallWrap
... | bsd-3-clause |
shahifaqeer/my-luci-bismark-0.11 | applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua | 7 | 1890 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | apache-2.0 |
ind9/kong | spec/unit/tools/utils_spec.lua | 13 | 3243 | local utils = require "kong.tools.utils"
describe("Utils", function()
describe("strings", function()
local first = utils.random_string()
assert.truthy(first)
assert.falsy(first:find("-"))
local second = utils.random_string()
assert.falsy(first == second)
end)
describe("tables", function()
... | apache-2.0 |
dkorolev/tarantool | test/box/access_bin.test.lua | 7 | 3894 | --
-- Access control tests which require a binary protocol
-- connection to the server
--
box.schema.user.grant('guest','read,write,execute','universe')
session = box.session
remote = require('net.box')
c = remote:new(box.cfg.listen)
c:call("dostring", "session.su('admin')")
c:call("dostring", "return session.user()")
... | bsd-2-clause |
HeavensSword/darkstar | scripts/globals/items/bowl_of_navarin.lua | 3 | 1631 | -----------------------------------------
-- 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 |
Openarl/PathOfBuilding | Data/Uniques/shield.lua | 1 | 28950 | -- Item data (c) Grinding Gear Games
return {
-- Shield: Armour
[[
Ahn's Heritage
Colossal Tower Shield
Variant: {2_6}Pre 3.0.0
Variant: Current
Requires Level 67, 159 Str
Implicits: 1
{variant:2}+(10-20) to maximum Life
(50-100)% increased Armour
+(60-80) to maximum Life
-1 to maximum Endurance Charges
-10% to maxim... | mit |
HeavensSword/darkstar | scripts/zones/Pashhow_Marshlands/npcs/Cavernous_Maw.lua | 5 | 1119 | -----------------------------------
-- Area: Pashhow Marshlands
-- NPC: Cavernous Maw
-- !pos 418 25 27 109
-- Teleports Players to Pashhow Marshlands [S]
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/s... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Yuhtunga_Jungle/npcs/Uphra-Kophra_WW.lua | 3 | 2976 | -----------------------------------
-- Area: Yuhtunga Jungle
-- NPC: Uphra-Kophra, W.W.
-- Outpost Conquest Guards
-- !pos -242.487 -1 -402.772 123
-----------------------------------
package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");... | gpl-3.0 |
boundary/boundary-plugin-mysql | modules/framework.lua | 5 | 48800 | -- Copyright 2015 Boundary, Inc.
--
-- 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 agreed to i... | apache-2.0 |
thetanil/thetasynth-pi | lua/pl/operator.lua | 37 | 4310 | --- Lua operators available as functions.
--
-- (similar to the Python module of the same name)
--
-- There is a module field `optable` which maps the operator strings
-- onto these functions, e.g. `operator.optable['()']==operator.call`
--
-- Operator strings like '>' and '{}' can be passed to most Penlight functions
... | apache-2.0 |
hasammm/hossam | libs/XMLElement.lua | 569 | 4025 | -- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence.
-- updated for module-free world of lua 5.3 on April 2 2015
-- Not documented at all, but not interesting enough to warrant documentation anyway.
local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ... | gpl-2.0 |
269724033/lor | lib/lor/lib/application.lua | 1 | 4307 | local pairs = pairs
local ipairs = ipairs
local type = type
local setmetatable = setmetatable
local Router = require("lor.lib.router.router")
local Request = require("lor.lib.request")
local Response = require("lor.lib.response")
local View = require("lor.lib.view")
local supported_http_methods = require("lor.lib.meth... | mit |
HeavensSword/darkstar | scripts/zones/Lower_Jeuno/npcs/Yatniel.lua | 5 | 1500 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Yatniel
-- Type: Standard NPC
-- @zone 245
-- !pos -66.817 -7 -126.594
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-------------------------... | gpl-3.0 |
seomoz/qless-core | config.lua | 2 | 1642 | -------------------------------------------------------------------------------
-- Configuration interactions
-------------------------------------------------------------------------------
-- This represents our default configuration settings
Qless.config.defaults = {
['application'] = 'qless',
['heartbeat... | mit |
HeavensSword/darkstar | scripts/globals/spells/enchanting_etude.lua | 5 | 1815 | -----------------------------------------
-- Spell: Enchanting Etude
-- Static CHR Boost, BRD 22
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,t... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/AlTaieu/npcs/qm3.lua | 7 | 1459 | -----------------------------------
-- Area: Al'Taieu
-- NPC: ??? (Jailer of Prudence Spawn)
-- Allows players to spawn the Jailer of Prudence by trading the Third Virtue, Deed of Sensibility, and High-Quality Hpemde Organ to a ???.
-- !pos , 706 -1 22
-----------------------------------
package.loaded["scripts/zones/... | gpl-3.0 |
DavadDi/flatbuffers | tests/MyGame/Example/Vec3.lua | 11 | 1440 | -- automatically generated by the FlatBuffers compiler, do not modify
-- namespace: Example
local flatbuffers = require('flatbuffers')
local Vec3 = {} -- the module
local Vec3_mt = {} -- the class metatable
function Vec3.New()
local o = {}
setmetatable(o, {__index = Vec3_mt})
return o
end
function Vec3_... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Full_Moon_Fountain/bcnms/moonlit_path.lua | 5 | 2199 | -----------------------------------
-- Area: Full Moon Fountain
-- Name: The Moonlit Path
-----------------------------------
package.loaded["scripts/zones/Full_Moon_Fountain/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("scripts/... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Meriphataud_Mountains_[S]/npcs/Indescript_Markings.lua | 3 | 1242 | ----------------------------------
-- Area: Meriphataud_Mountains_[S]
-- NPC: Indescript Markings
-- Type: Quest
-- !pos -389 -9 92 1 96
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Meriphataud_Mo... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Dynamis-San_dOria/Zone.lua | 5 | 2074 | -----------------------------------
--
-- Zone: Dynamis-San_dOria
--
-----------------------------------
package.loaded["scripts/zones/Dynamis-San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Dynamis-San_dOria/TextIDs");
-------------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Spire_of_Holla/npcs/_0h1.lua | 66 | 1356 | -----------------------------------
-- Area: Spire_of_Holla
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Holla/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Holla/TextIDs");
-------------------... | gpl-3.0 |
mosy210/fast-spam | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/spells/absorb-mnd.lua | 4 | 1557 | --------------------------------------
-- Spell: Absorb-MND
-- Steals an enemy's mind.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMa... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/mammut.lua | 7 | 1024 | -----------------------------------------
-- ID: 18503
-- Item: Mammut
-- Additional Effect: Ice Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------
function onAdditionalEffect(player,t... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Lufaise_Meadows/npcs/Jemmoquel_RK.lua | 3 | 2973 | -----------------------------------
-- Area: Lufaise Meadows
-- NPC: Jemmoquel, R.K.
-- Outpost Conquest Guards
-- !pos -542.418 -7.124 -53.521 24
-----------------------------------
package.loaded["scripts/zones/Lufaise_Meadows/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
... | gpl-3.0 |
barbarubra/Don-t-know-What-i-m-doing. | lua/luasocket/src/url.lua | 148 | 10529 | -----------------------------------------------------------------------------
-- URI parsing, composition and relative URL resolution
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: url.lua,v 1.38 2006/04/03 04:45:42 diego Exp $
-----------------------------------------------------------------------------
... | apache-2.0 |
AaMegaTeam/AntiSpamV2 | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | agpl-3.0 |
alilaptop/a123 | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
rastin45/webot | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
Max-pbot/Maxbot | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
DipColor/test | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.