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 |
|---|---|---|---|---|---|
abosalah22/zak | plugins/aboshoshoo1.lua | 1 | 4292 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ help1 : مساعدة ▀▄ ▄▀
▀▄▀... | gpl-2.0 |
scan-bot/scan-bot | plugins/sudo.lua | 359 | 1878 | function run_sh(msg)
name = get_name(msg)
text = ''
-- if config.sh_enabled == false then
-- text = '!sh command is disabled'
-- else
-- if is_sudo(msg) then
-- bash = msg.text:sub(4,-1)
-- text = run_bash(bash)
-- else
-- text = name .. ' yo... | gpl-2.0 |
Ninjistix/darkstar | scripts/globals/effects/prowess_killer.lua | 34 | 2257 | -----------------------------------
--
-- EFFECT_PROWESS : "Killer" effects bonus
--
-----------------------------------
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_VERMIN_KILLER, effect:getPower());
targ... | gpl-3.0 |
ccyphers/kong | spec/03-plugins/10-acl/01-api_spec.lua | 4 | 8079 | local cjson = require "cjson"
local helpers = require "spec.helpers"
describe("Plugin: acl (API)", function()
local consumer, admin_client
setup(function()
assert(helpers.start_kong())
admin_client = helpers.admin_client()
end)
teardown(function()
if admin_client then admin_client:close() end
h... | apache-2.0 |
Ninjistix/darkstar | scripts/globals/spells/drain_ii.lua | 5 | 2074 | -----------------------------------------
-- Spell: Drain II
-- Drain functions only on skill level!!
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/settings");
require("scripts/globals/msg");
--------------------------------------... | gpl-3.0 |
arca1n/cocos2d-x_nextpeer_integration | samples/Lua/TestLua/Resources/luaScript/ActionsEaseTest/ActionsEaseTest.lua | 4 | 15911 | local kTagAction1 = 1
local kTagAction2 = 2
local kTagSlider = 1
local s = cc.Director:getInstance():getWinSize()
local scheduler = cc.Director:getInstance():getScheduler()
local function createSimpleMoveBy()
return cc.MoveBy:create(3, cc.p(s.width - 130, 0))
end
local function createSimpleDelayTime()
return... | mit |
jokersso3/joker | plugins/security.lua | 1 | 19775 | --Begin security.lua
--Prerequisite:
local function isABotBadWay (user)
local username = user.username or ''
return username:match("[Bb]ot$")
end
local function get_variables_hash(msg)
return 'chat:'..msg.to.id..':badword'
end
local function list_variablesbad(msg)
local hash = get_varia... | gpl-2.0 |
SharpWoW/Chocobo | ChocoboOptions.lua | 1 | 9333 | --[[
Copyright (c) 2010-2020 by Adam Hellberg
This file is part of Chocobo.
Chocobo 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
(at your option) an... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/abilities/curing_waltz_ii.lua | 2 | 2553 | -----------------------------------
-- Ability: Curing Waltz II
-- Heals HP to target player.
-- Obtained: Dancer Level 30
-- TP Required: 35%
-- Recast Time: 00:08
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/msg");
---------------... | gpl-3.0 |
dinodeck/ninety_nine_days_of_dev | 006_magic_menu/code/Party.lua | 8 | 1448 | Party = {}
Party.__index = Party
function Party:Create()
local this =
{
mMembers = {}
}
setmetatable(this, self)
return this
end
function Party:Add(member)
self.mMembers[member.mId] = member
end
function Party:RemoveById(id)
self.mMembers[id] = nil
end
function Party:Remove(membe... | mit |
dinodeck/ninety_nine_days_of_dev | 001_cancel_textboxes/code/Party.lua | 8 | 1448 | Party = {}
Party.__index = Party
function Party:Create()
local this =
{
mMembers = {}
}
setmetatable(this, self)
return this
end
function Party:Add(member)
self.mMembers[member.mId] = member
end
function Party:RemoveById(id)
self.mMembers[id] = nil
end
function Party:Remove(membe... | mit |
Ninjistix/darkstar | scripts/zones/The_Sanctuary_of_ZiTah/TextIDs.lua | 5 | 1933 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item>. Come back after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 6384; -- You cannot obtain the <item>. Try trading again after sorting your inventory.
ITEM_OBTAINED = 6386; ... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/abilities/manifestation.lua | 2 | 1089 | -----------------------------------
-- Ability: Manifestation
-- Extends the effect of your next enfeebling1 black magic spell to targets within range. MP cost and casting time2 are doubled.
-- Obtained: Scholar Level 40
-- Recast Time: Stratagem Charge
-- Duration: 1 compatible black magic spell or 60 seconds, whichev... | gpl-3.0 |
eugenesan/openwrt-luci | protocols/ipv6/luasrc/model/cbi/admin_network/proto_hnet.lua | 40 | 1492 | --[[
LuCI - Lua Configuration Interface
Copyright 2013 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
]]--
local map... | apache-2.0 |
Ninjistix/darkstar | scripts/zones/Windurst_Woods/npcs/Anillah.lua | 3 | 1496 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Anillah
-- Type: Clothcraft Image Support
-- !pos -34.800 -2.25 -119.950 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requi... | gpl-3.0 |
kahrl/minetest-mod-away | init.lua | 1 | 5895 | -------------------------------------
-- Away mod by kahrl --
-- Idea by jordan4ibanez & kahrl --
-- Version 1.0 --
-------------------------------------
--
-- Set yourself as away using the server command
-- /away
-- You can also give a reason, as follows:
-- /away Saving the ... | gpl-2.0 |
timstclair/kube-contrib | ingress/controllers/nginx/lua/error_page.lua | 45 | 1661 | http = require "resty.http"
def_backend = "upstream-default-backend"
local concat = table.concat
local upstream = require "ngx.upstream"
local get_servers = upstream.get_servers
local get_upstreams = upstream.get_upstreams
local random = math.random
local us = get_upstreams()
function openURL(status)
local httpc ... | apache-2.0 |
blackman1380/antispam | plugins/inrealm.lua | 183 | 36473 | -- 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_admin1(msg) then
local group_creator = msg.from.print_name
create_group_chat (group_creator, group_na... | gpl-2.0 |
wounds1/zaza2 | plugins/inrealm.lua | 183 | 36473 | -- 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_admin1(msg) then
local group_creator = msg.from.print_name
create_group_chat (group_creator, group_na... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Cloister_of_Tides/npcs/Water_Protocrystal.lua | 5 | 1895 | -----------------------------------
-- Area: Cloister of Tides
-- NPC: Water Protocrystal
-- Involved in Quests: Trial by Water, Trial Size Trial by Water
-- !pos 560 36 560 211
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Tides/TextIDs"] = nil;
-------------------------------------
r... | gpl-3.0 |
mohammadtofani/fox | plugins/p.lua | 134 | 6165 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
ArchiveTeam/googlemoderator-grab | googlemoderator.lua | 1 | 1325 | local url_count = 0
local tries = 0
wget.callbacks.httploop_result = function(url, err, http_stat)
-- NEW for 2014: Slightly more verbose messages because people keep
-- complaining that it's not moving or not working
status_code = http_stat["statcode"]
url_count = url_count + 1
io.stdout:write(url_count ... | unlicense |
neofob/sile | languages/as.lua | 3 | 1139 | SILE.hyphenator.languages["as"] = {}
SILE.hyphenator.languages["as"].patterns =
{
-- GENERAL RULE
-- Do not break either side of ZERO-WIDTH JOINER (U+200D)
"22",
-- Break on both sides of ZERO-WIDTH NON JOINER (U+200C)
"11",
-- Break before or after any independent vowel.
"অ1",
"আ1",
"ই1",
"ঈ1",
"উ1",
"ঊ1",
"ঋ1"... | mit |
ztuowen/chill-dev | Manual/test-cases/examples/cuda-chill/nbody.lua | 3 | 1653 | --CUBLAS 2 MM Multiply
--This function form intializes "CUDAIZE v2" versus "CUDAIZE v1" if you
--call init() and use global variables to specify procedure and loop
--Second parameter is procedure # and third is loop #
init("nbody.c", "nbody_cpu" , 0)
dofile("cudaize.lua") --defines custom tile_by_index, copy_to_reg... | gpl-3.0 |
codedash64/Urho3D | bin/Data/LuaScripts/35_SignedDistanceFieldText.lua | 26 | 7747 | -- Signed distance field text example.
-- This sample demonstrates:
-- - Creating a 3D scene with static content
-- - Creating a 3D text use SDF Font
-- - Displaying the scene using the Renderer subsystem
-- - Handling keyboard and mouse input to move a freelook camera
require "LuaScripts/Utilities/Sam... | mit |
carnalis/Urho3D | bin/Data/LuaScripts/35_SignedDistanceFieldText.lua | 26 | 7747 | -- Signed distance field text example.
-- This sample demonstrates:
-- - Creating a 3D scene with static content
-- - Creating a 3D text use SDF Font
-- - Displaying the scene using the Renderer subsystem
-- - Handling keyboard and mouse input to move a freelook camera
require "LuaScripts/Utilities/Sam... | mit |
Ninjistix/darkstar | scripts/zones/Spire_of_Vahzl/npcs/_0n0.lua | 22 | 1534 | -----------------------------------
-- Area: Spire of Vahzl
-- NPC: Web of Recollection
-----------------------------------
package.loaded["scripts/zones/Spire_of_Vahzl/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/quests");
require("scripts/globals/mis... | gpl-3.0 |
jamiepg1/MCServer | MCServer/Plugins/TestLuaRocks/TestLuaRocks.lua | 22 | 1232 |
-- TestLuaRocks.lua
-- This is a mockup plugin that does a quick test of LuaRocks capability in MCServer
-- "Success" is when the plugin loads, downloads the forum webpage and displays the headers and length and then displays both libs as loaded.
-- "Failure" usually manifests as one of the "require" lines failing, ... | apache-2.0 |
bmddota/ContainersPlayground | game/dota_addons/containersplayground/scripts/vscripts/internal/util.lua | 1 | 2497 | function DebugPrint(...)
local spew = Convars:GetInt('barebones_spew') or -1
if spew == -1 and BAREBONES_DEBUG_SPEW then
spew = 1
end
if spew == 1 then
print(...)
end
end
function DebugPrintTable(...)
local spew = Convars:GetInt('barebones_spew') or -1
if spew == -1 and BAREBONES_DEBUG_SPEW then... | apache-2.0 |
Ninjistix/darkstar | scripts/globals/spells/cura_ii.lua | 3 | 4199 | -----------------------------------------
-- Spell: Cura
-- Restores hp in area of effect. Self target only
-- From what I understand, Cura's base potency is the same as Cure II's.
-- With Afflatus Misery Bonus, it can be as potent as a Curaga III
-- Modeled after our cure_ii.lua, which was modeled after the below refe... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/weaponskills/garland_of_bliss.lua | 3 | 1795 | -----------------------------------
-- Garland Of Bliss
-- Staff weapon skill
-- Skill level: N/A
-- Lowers target's defense. Duration of effect varies with TP. Nirvana: Aftermath effect varies with TP.
-- Reduces enemy's defense by 12.5%.
-- Available only after completing the Unlocking a Myth (Summoner) quest.
-- Ali... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Upper_Jeuno/npcs/Hinda.lua | 5 | 1042 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Hinda
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Upper_Jeuno/TextIDs");
require("scripts/globals/quests");
---------------... | gpl-3.0 |
davidbuzz/ardupilot | libraries/AP_Scripting/examples/rover-set-steering-and-throttle.lua | 24 | 2101 | -- cause a rover to drive in a figure of eight pattern by directly controlling steering and throttle
--
-- CAUTION: This script only works for Rover
-- this script waits for the vehicle to be armed and RC6 input > 1800 and then:
-- a) switches to Guided mode
-- b) increases throttle to 30% and turns right at 20% ... | gpl-3.0 |
AlexisBRENON/awesome | spec/wibox/test_utils.lua | 6 | 3100 | ---------------------------------------------------------------------------
-- @author Uli Schlachter
-- @copyright 2014 Uli Schlachter
---------------------------------------------------------------------------
local object = require("gears.object")
local wbase = require("wibox.widget.base")
local lbase = require("wi... | gpl-2.0 |
eugenesan/openwrt-luci | applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo_config.lua | 80 | 1274 | --[[
LuCI - Lua Configuration Interface
(c) 2009 Daniel Dickinson
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$
]]--
require("luci.controller.l... | apache-2.0 |
neofob/sile | packages/tate.lua | 1 | 4995 | local pdf = require("justenoughlibtexpdf")
SILE.tateFramePrototype = SILE.framePrototype {
direction = "TTB-RTL",
enterHooks = { function (self)
self.oldtypesetter = SILE.typesetter
SILE.typesetter.leadingFor = function(self, v)
v.height = SILE.toPoints("1zw")
return SILE.settings.get("document... | mit |
Ninjistix/darkstar | scripts/globals/mobskills/pw_calcifying_deluge.lua | 34 | 1153 | ---------------------------------------------
-- Calcifying Deluge
--
-- Description: Delivers a threefold ranged attack to targets in an area of effect. Additional effect: Petrification
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: Unknown
-- Notes: Used only by Medusa.
----------------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/curaga_v.lua | 5 | 1427 | -----------------------------------------
-- Spell: Curaga V
-- Restores HP of all party members within area of effect.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
--------------------... | gpl-3.0 |
BooM-amour/bomb | plugins/lock_badword.lua | 59 | 1102 | local function run(msg, matches)
if msg.to.type == 'chat' then
if is_owner(msg) then
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)] then
if data[tostring(msg.to.id)]['settings'] then
if data[tostring(msg.to.id)]['settings']['lock_badw'... | gpl-2.0 |
tele911/xy-test | plugins/lock_badword.lua | 59 | 1102 | local function run(msg, matches)
if msg.to.type == 'chat' then
if is_owner(msg) then
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)] then
if data[tostring(msg.to.id)]['settings'] then
if data[tostring(msg.to.id)]['settings']['lock_badw'... | gpl-2.0 |
dafei2015/hugular_cstolua | Client/Assets/uLua/Source/LuaJIT/src/host/genminilua.lua | 127 | 11962 | ----------------------------------------------------------------------------
-- Lua script to generate a customized, minified version of Lua.
-- The resulting 'minilua' is used for the build process of LuaJIT.
----------------------------------------------------------------------------
-- Copyright (C) 2005-2015 Mike P... | mit |
malyutinegor/starsim | app/scripts/libs/hump-timer.lua | 1 | 6532 | --[[
Copyright (c) 2010-2013 Matthias Richter
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... | gpl-3.0 |
heritage902/railroad | pugixml/scripts/premake4.lua | 128 | 2376 | -- Reset RNG seed to get consistent results across runs (i.e. XCode)
math.randomseed(12345)
local static = _ARGS[1] == 'static'
local action = premake.action.current()
if string.startswith(_ACTION, "vs") then
if action then
-- Disable solution generation
function action.onsolution(sln)
sln.vstudio_configs = p... | gpl-3.0 |
dinodeck/ninety_nine_days_of_dev | 006_magic_menu/code/Dice.lua | 10 | 2092 | Dice = {}
Dice.__index = Dice
function Dice:Create(diceStr)
local this =
{
mDice = {}
}
setmetatable(this, self)
this:Parse(diceStr)
return this
end
function Dice:Parse(diceStr)
local len = string.len(diceStr)
local index = 1
local allDice = {}
while index <= len do
... | mit |
rigeirani/seed | bot/seedbot.lua | 44 | 10244 | 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")
VERSION = '2'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
return... | gpl-2.0 |
eugenesan/openwrt-luci | modules/base/luasrc/http/protocol/conditionals.lua | 88 | 4757 | --[[
HTTP protocol implementation for LuCI - RFC2616 / 14.19, 14.24 - 14.28
(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
... | apache-2.0 |
johnsoch/cuberite | Server/Plugins/APIDump/Classes/Network.lua | 11 | 38094 |
-- Network.lua
-- Defines the documentation for the cNetwork-related classes and cUrlClient
return
{
cNetwork =
{
Desc = [[
This is the namespace for high-level network-related operations. Allows plugins to make TCP
connections to the outside world using a callback-based API.</p>
<p>
All function... | apache-2.0 |
TRex22/hawkthorne-journey | src/hawk/i18n.lua | 1 | 1149 | local json = require 'hawk/json'
local middle = require 'hawk/middleclass'
local i18n = middle.class("i18n")
function i18n:initialize(path, locale)
self.path = path
self:setLocale("en-US")
end
function i18n:getLocale(locale)
local path = self.path .. "/" .. locale .. '.json'
assert(love.filesystem.exists(pat... | mit |
wangyi0226/skynet | lualib/skynet/dns.lua | 12 | 12001 | --[[
lua dns resolver library
See https://github.com/xjdrew/levent/blob/master/levent/dns.lua for more detail
-- resource record type:
-- TYPE value and meaning
-- A 1 a host address
-- NS 2 an authoritative name server
-- MD 3 a mail destination (Obsolete - use MX... | mit |
neilbu/osrm-backend | profiles/lib/tags.lua | 8 | 3030 | -- Helpers for searching and parsing tags
local Tags = {}
-- return [forward,backward] values for a specific tag.
-- e.g. for maxspeed search forward:
-- maxspeed:forward
-- maxspeed
-- and backward:
-- maxspeed:backward
-- maxspeed
function Tags.get_forward_backward_by_key(way,data,key)
local forward = wa... | bsd-2-clause |
arca1n/cocos2d-x_nextpeer_integration | cocos/scripting/lua/script/Cocos2d.lua | 4 | 6861 | cc = cc or {}
cc.DIRECTOR_PROJECTION_2D = 0
cc.DIRECTOR_PROJECTION_3D = 1
function cc.clampf(value, min_inclusive, max_inclusive)
-- body
local temp = 0
if min_inclusive > max_inclusive then
temp = min_inclusive
min_inclusive = max_inclusive
max_inclusive = temp
end
if v... | mit |
Ninjistix/darkstar | scripts/globals/spells/bio_ii.lua | 2 | 2409 | -----------------------------------------
-- Spell: Bio II
-- Deals dark damage that weakens an enemy's attacks and gradually reduces its HP.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
----------------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/settings.lua | 2 | 11554 | -----------------------------------------------
------------- GLOBAL SETTINGS -------------
-----------------------------------------------
-- This is to allow server operators to further customize their servers. As more features are added to pXI, the list will surely expand.
-- Anything scripted can be customize... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Palborough_Mines/npcs/_3za.lua | 5 | 1172 | -----------------------------------
-- Area: Palborough Mines
-- NPC: Refiner Lid
-- Involved In Mission: Journey Abroad
-- @zone 143
-- !pos 180 -32 167
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/sett... | gpl-3.0 |
TRex22/hawkthorne-journey | src/instructions.lua | 3 | 3287 | local Gamestate = require 'vendor/gamestate'
local window = require 'window'
local camera = require 'camera'
local sound = require 'vendor/TEsound'
local fonts = require 'fonts'
local controls = require 'controls'
local VerticalParticles = require "verticalparticles"
local Menu = require 'menu'
local state = Gamestate.... | mit |
otservme/global1051 | data/actions/scripts/tools/rope.lua | 7 | 1024 | local holeId = {
294, 369, 370, 383, 392, 408, 409, 410, 427, 428, 430, 462, 469, 470, 482,
484, 485, 489, 924, 3135, 3136, 7933, 7938, 8170, 8286, 8285, 8284, 8281,
8280, 8279, 8277, 8276, 8323, 8567, 8585, 8596, 8595, 8249, 8250, 8251,
8252, 8253, 8254, 8255, 8256, 8972, 9606, 9625, 13190, 14461, 19519, 21536
}
... | gpl-2.0 |
Xamla/torch-ros | demo/orbit.lua | 1 | 2203 | ros = require 'ros'
tf = ros.tf
--[[
Compute points along an arc on a plane around a center point and normal.
You can use rviz to display the moving 'eye' transform with the TF display.
Please make sure 'Fixed Frame' is set to 'world'.
]]
function normalize(v)
return v / torch.norm(v)
end
function totensor(t)
... | bsd-3-clause |
Ninjistix/darkstar | scripts/zones/Windurst_Waters/npcs/Orn.lua | 5 | 1330 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Orn
-- !pos -68 -9 30 238
-----------------------------------
require("scripts/globals/settings");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
bookwormStatus = player:getQuestStatu... | gpl-3.0 |
amir1213/tamir | plugins/torrent_search.lua | 411 | 1622 | --[[ NOT USED DUE TO SSL ERROR
-- See https://getstrike.net/api/
local function strike_search(query)
local strike_base = 'http://getstrike.net/api/v2/torrents/'
local url = strike_base..'search/?phrase='..URL.escape(query)
print(url)
local b,c = http.request(url)
print(b,c)
local search = json:decode(b)
v... | gpl-2.0 |
dinodeck/ninety_nine_days_of_dev | 004_stat_numbers/code/FrontMenuState.lua | 2 | 6216 |
FrontMenuState = {}
FrontMenuState.__index = FrontMenuState
function FrontMenuState:Create(parent)
local layout = Layout:Create()
layout:Contract('screen', 118, 40)
layout:SplitHorz('screen', "top", "bottom", 0.12, 2)
layout:SplitVert('bottom', "left", "party", 0.726, 2)
layout:SplitHorz(... | mit |
Ninjistix/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5fs.lua | 5 | 2283 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: South Plate
-- !pos 185 -32 -10 195
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
local state0 = 8;
local state1 = 9;
local DoorOffset = npc:getID() - 27; -- _5f1
... | gpl-3.0 |
Ninjistix/darkstar | scripts/commands/setplayernation.lua | 22 | 1385 | ---------------------------------------------------------------------------------------------------
-- func: setplayernation
-- desc: Sets the target players nation.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "ss... | gpl-3.0 |
charles-l/LD29 | Worm.lua | 1 | 2137 | Worm = class('Worm')
Worm:include(DynCol)
Worm:include(Stateful)
Worm.static.sprite = love.graphics.newImage('res/worm.png')
function Worm:initialize(x, leapDist)
self:createCol(x, love.graphics.getHeight() + math.random(100, 200), 20, 100)
self.jumpV = 13
self.speed = 4
self.leapDist = leapDist
self.g = anim... | mit |
wangyi0226/skynet | service/sharedatad.lua | 7 | 3384 | local skynet = require "skynet"
local sharedata = require "skynet.sharedata.corelib"
local table = table
local cache = require "skynet.codecache"
cache.mode "OFF" -- turn off codecache, because CMD.new may load data file
local NORET = {}
local pool = {}
local pool_count = {}
local objmap = {}
local collect_tick = 10
... | mit |
Ninjistix/darkstar | scripts/zones/Batallia_Downs/npcs/qm3.lua | 5 | 1467 | -----------------------------------
-- Area: Batallia Downs
-- NPC: qm3 (???)
-- Involved in Mission 9-1 (San dOria)
-- !pos 210 17 -615 105
-----------------------------------
package.loaded["scripts/zones/Batallia_Downs/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Batallia_Downs/Text... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/VeLugannon_Palace/mobs/Detector.lua | 7 | 2061 | -----------------------------------
-- Area: VeLugannon Palace
-- MOB: Detector
-----------------------------------
require("scripts/globals/groundsofvalor");
-----------------------------------
function onMobInitialize(mob)
end;
function onMobSpawn(mob)
local Detector = mob:getID();
GetMobByID(Detector):se... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Nashmau/TextIDs.lua | 5 | 1902 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_CANNOT_BE_OBTAINEDX = 6381; -- You cannot obtain the
ITEM_OBTAINED = 6386; -- Obtained: <item>
ITEM_OBTAINEDX = 639... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Spire_of_Vahzl/Zone.lua | 5 | 1122 | -----------------------------------
--
-- Zone: Spire_of_Vahzl (23)
--
-----------------------------------
package.loaded["scripts/zones/Spire_of_Vahzl/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Spire_of_Vahzl/TextIDs");
require("scripts/globals/miss... | gpl-3.0 |
wounds1/zaza2 | plugins/arabic_lock.lua | 234 | 1405 | antiarabic = {}-- An empty table for solving multiple kicking problem
do
local function run(msg, matches)
if is_momod(msg) then -- Ignore mods,owner,admins
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)]['settings']['lock_arabic'] then
if data[tostring(msg.to.id)... | gpl-2.0 |
dafei2015/hugular_cstolua | Client/tools/luaTools/win/lua/jit/bc.lua | 74 | 5606 | ----------------------------------------------------------------------------
-- LuaJIT bytecode listing module.
--
-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | mit |
dmekersa/create2Dmobilegames | ChickenSprite/chicken_packer.lua | 1 | 1407 | --
-- created with TexturePacker (http://www.codeandweb.com/texturepacker)
--
-- $TexturePacker:SmartUpdate:f7d1d7007b7802f7006ab5b725c167b8:80ac306c7910ffcff4e0135f3b07762a:508315e819c8c5d7d547404630422e16$
--
-- local sheetInfo = require("mysheet")
-- local myImageSheet = graphics.newImageSheet( "mysheet.png", sheetI... | unlicense |
Ninjistix/darkstar | scripts/globals/effects/accuracy_boost.lua | 32 | 1029 | -----------------------------------
--
-- EFFECT_ACCURACY_BOOST
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_ACC,effect:getPower());
... | gpl-3.0 |
SharpWoW/Chocobo | ChocoboCommand.lua | 1 | 10477 | --[[
Copyright (c) 2010-2020 by Adam Hellberg
This file is part of Chocobo.
Chocobo 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
(at your op... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Apollyon/mobs/Fir_Bholg.lua | 5 | 1066 | -----------------------------------
-- Area: Apollyon SW
-- NPC: Fir Bholg
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
-----------------------------------
... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Kazham/npcs/Vanono.lua | 5 | 1130 | -----------------------------------
-- Area: Kazham
-- NPC: Vanono
-- Type: Standard NPC
-- @zone 250
-- !pos -23.140 -5 -23.101
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-----------------------------------
... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Korroloka_Tunnel/npcs/qm2.lua | 5 | 2281 | -----------------------------------
-- Area: Korroloka Tunnel
-- NPC: ??? (qm2)
-- Involved In Quest: Ayame and Kaede
-- !pos -208 -9 176 173
-----------------------------------
package.loaded["scripts/zones/Korroloka_Tunnel/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Korroloka_Tunnel/T... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/victory_march.lua | 5 | 1420 | -----------------------------------------
-- Spell: Victory March
-- Gives party members Haste
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
fun... | gpl-3.0 |
neofob/sile | languages/it.lua | 3 | 2859 | SILE.hyphenator.languages["it"] = {}
SILE.hyphenator.languages["it"].patterns =
{
".a3p2n", -- After the Garzanti dictionary: a-pnea, a-pnoi-co
".anti1",
".anti3m2n",
".bio1",
".ca4p3s",
".circu2m1",
".contro1",
".di2s3cine",
".e2x1eu",
".fran2k3",
".free3",
".li3p2sa",
".narco1",
".opto1",
".orto3p2",... | mit |
Ninjistix/darkstar | scripts/zones/Alzadaal_Undersea_Ruins/npcs/_20m.lua | 5 | 7859 | -----------------------------------
-- Area: Alzadaal Undersea Ruins
-- Door: Runic Seal
-- !pos 125 -2 20 72
-----------------------------------
package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missi... | gpl-3.0 |
LuaDist2/gntp | src/lua/gntp/connector/lluv.lua | 2 | 2831 | ------------------------------------------------------------------
--
-- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Copyright (C) 2015-2016 Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Licensed according to the included 'LICENSE' document
--
-- This file is part of lua-gntp library.
--
-----... | mit |
ccyphers/kong | kong/plugins/key-auth/handler.lua | 1 | 4280 | local cache = require "kong.tools.database_cache"
local responses = require "kong.tools.responses"
local constants = require "kong.constants"
local singletons = require "kong.singletons"
local BasePlugin = require "kong.plugins.base_plugin"
local ngx_set_header = ngx.req.set_header
local ngx_get_headers = ngx.req.get_... | apache-2.0 |
Ninjistix/darkstar | scripts/globals/items/slice_of_lynx_meat.lua | 3 | 1088 | -----------------------------------------
-- ID: 5667
-- Item: Slice of Lynx Meat
-- Food Effect: 5 Min, Galka only
-----------------------------------------
-- Strength 5
-- Intelligence -7
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
function ... | gpl-3.0 |
PetarTilevRusev/EndlessWar | game/scripts/vscripts/units/human/human_upgrades.lua | 1 | 6749 | function ApplyKingUpgrade( event )
local caster = event.caster -- Saving the Caster Handle
local ability = event.ability -- Saving The Ability Handle
local ability_name = ability:GetName()
local modifier_name = ability_name.."_modifier"
ability:ApplyDataDrivenModifier(caster, caster, modifier_name,... | mit |
Ninjistix/darkstar | scripts/zones/Northern_San_dOria/npcs/Arachagnon.lua | 5 | 1577 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Arachagnon
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop");
re... | gpl-3.0 |
wangyi0226/skynet | lualib/http/internal.lua | 3 | 7689 | local table = table
local type = type
local M = {}
local LIMIT = 8192
local function chunksize(readbytes, body)
while true do
local f,e = body:find("\r\n",1,true)
if f then
return tonumber(body:sub(1,f-1),16), body:sub(e+1)
end
if #body > 128 then
-- pervent the attacker send very long stream without ... | mit |
AlexisBRENON/awesome | spec/wibox/layout/flex_spec.lua | 9 | 2771 | ---------------------------------------------------------------------------
-- @author Uli Schlachter
-- @copyright 2014 Uli Schlachter
---------------------------------------------------------------------------
local flex = require("wibox.layout.flex")
local utils = require("wibox.test_utils")
describe("wibox.layout... | gpl-2.0 |
Ninjistix/darkstar | scripts/globals/items/plate_of_piscators_paella.lua | 3 | 1226 | -----------------------------------------
-- ID: 5969
-- Item: Plate of Piscator's Paella
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- HP 45
-- Dexterity 6
-- Accuracy % 16 (cap 85)
-- Undead Killer 6
-----------------------------------------
require("scripts/globals/status");
---------... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Metalworks/npcs/Hugues.lua | 3 | 1463 | -----------------------------------
-- Area: Metalworks
-- NPC: Hugues
-- Type: Smithing Synthesis Image Support
-- !pos -106.336 2.000 26.117 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/RuLude_Gardens/npcs/Maat.lua | 4 | 9528 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Maat
-- Starts and Finishes Quest: Limit Break Quest 1-5
-- Involved in Quests: Beat Around the Bushin
-- @zone 243
-- !pos 8 3 118
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
--------------------... | gpl-3.0 |
hamrah12/hamrah_shoma | plugins/channels.lua | 300 | 1680 | -- Checks if bot was disabled on specific chat
local function is_channel_disabled( receiver )
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable_channel(receiver)
if... | gpl-2.0 |
Ninjistix/darkstar | scripts/globals/weaponskills/scourge.lua | 7 | 1930 | -----------------------------------
-- Scourge
-- Great Sword weapon skill
-- Skill level: N/A
-- Additional effect: temporarily improves params.critical hit rate.
-- params.critical hit rate boost duration is based on TP when the weapon skill is used. 100% TP will give 20 seconds of params.critical hit rate boost;... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Sealions_Den/npcs/_0w0.lua | 5 | 1453 | -----------------------------------
-- Area: Sealion's Den
-- NPC: Iron Gate
-- !pos 612 132 774 32
-----------------------------------
package.loaded["scripts/zones/Sealions_Den/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Sealions_Den/TextIDs");
require("scripts/globals/teleports");
re... | gpl-3.0 |
drhelius/bstone-ios | dependencies/SDL-1bc5372ee27f/premake/projects/SDL2.lua | 6 | 10613 | -- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purp... | gpl-2.0 |
Ninjistix/darkstar | scripts/globals/mobskills/sledgehammer.lua | 33 | 1219 | ---------------------------------------------
-- Sledgehammer
--
-- Description: Delivers a sledgehammer blow to all targets in front. Additional effect: Petrification
-- Type: Physical
-- Utsusemi/Blink absorb: 3 shadows
-- Range: Front cone
-- Notes: Only used by Gurfurlur the Menacing.
------------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/weaponskills/combo.lua | 26 | 1453 | -----------------------------------
-- Combo
-- Hand-to-Hand weapon skill
-- Skill level: 5
-- Delivers a threefold attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Thunder Gorget.
-- Aligned with the Thunder Belt.
-- Element: None
-- Modifiers: STR:20% ; DEX:20%
-- 100%TP 200%TP ... | gpl-3.0 |
otservme/global1051 | data/npc/scripts/The Oracle.lua | 28 | 3447 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local vocation = {}
local town = {}
local destination = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisa... | gpl-2.0 |
Ninjistix/darkstar | scripts/globals/items/gold_lobster.lua | 3 | 1155 | -----------------------------------------
-- ID: 5797
-- Item: gold_lobster
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity -5
-- Vitality 3
-- Defense % 16 (Cap 50)
-----------------------------------------
require("scripts/globals/status");
------------------------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/items/pipira.lua | 3 | 1299 | -----------------------------------------
-- ID: 5787
-- Item: pipira
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-- Attack % 14.5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
function on... | gpl-3.0 |
ocurr/hammerspoon | extensions/doc/init.lua | 8 | 14263 |
--- === hs.doc ===
---
--- Create documentation objects for interactive help within Hammerspoon
---
--- The documentation object created is a table with tostring metamethods allowing access to a specific functions documentation by appending the path to the method or function to the object created.
---
--- From the Ham... | mit |
Ninjistix/darkstar | scripts/zones/Valley_of_Sorrows/mobs/Adamantoise.lua | 4 | 1554 | -----------------------------------
-- Area: Valley of Sorrows
-- HNM: Adamantoise
-----------------------------------
require("scripts/zones/Valley_of_Sorrows/MobIDs");
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/titles");
function onMobInitialize(mob)
end;
funct... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.