repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
kitala1/darkstar | scripts/globals/items/salty_bretzel.lua | 35 | 1296 | -----------------------------------------
-- ID: 5182
-- Item: salty_bretzel
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Magic % 8
-- Magic Cap 60
-- Vitality 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Dynamis-Qufim/mobs/Adamantking_Effigy.lua | 17 | 2130 | -----------------------------------
-- Area: Dynamis Qufim
-- NPC: Adamantking_Effigy
-----------------------------------
package.loaded["scripts/zones/Dynamis-Qufim/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Qufim/TextIDs");
--... | gpl-3.0 |
apletnev/koreader | frontend/ui/font.lua | 3 | 5643 | --[[--
Font module.
]]
local Device = require("device")
local Freetype = require("ffi/freetype")
local lfs = require("libs/libkoreader-lfs")
local logger = require("logger")
local Screen = Device.screen
local Font = {
fontmap = {
-- default font for menu contents
cfont = "noto/NotoSans-Regular.ttf... | agpl-3.0 |
Nukesor/ShapeRape | src/core/stackhelper.lua | 2 | 1115 | StackHelper = class("StackHelper")
function StackHelper:__init()
self.states = {}
self.backCounter = 0
end
function StackHelper:current()
if #self.states == 0 then return nil
elseif #self.states > 0 then
return self.states[#self.states]
end
end
function StackHelper:push(element)
... | gpl-3.0 |
kaustavha/rackspace-monitoring-agent | hostinfo/init.lua | 2 | 4507 | --[[
Copyright 2014 Rackspace
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 in writing, software
dis... | apache-2.0 |
kitala1/darkstar | scripts/globals/items/skewer_of_m&p_chicken.lua | 36 | 1336 | -----------------------------------------
-- ID: 5639
-- Item: Skewer of M&P Chicken
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Strength 5
-- Intelligence -5
-- Attack % 25
-- Attack Cap 154
-----------------------------------------
require("scripts/globals/status");
----------------... | gpl-3.0 |
fqrouter/luci | protocols/ipv6/luasrc/model/cbi/admin_network/proto_6to4.lua | 12 | 1276 | --[[
LuCI - Lua Configuration Interface
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
local ma... | apache-2.0 |
Roblox/Core-Scripts | CoreScriptsRoot/Modules/Common/ObjectPool.lua | 2 | 1511 | -- // FileName: ObjectPool.lua
-- // Written by: TheGamer101
-- // Description: An object pool class used to avoid unnecessarily instantiating Instances.
local module = {}
--////////////////////////////// Include
--//////////////////////////////////////
local modulesFolder = script.Parent
--//////////////////////////... | apache-2.0 |
crabman77/minetest-minetestforfun-server | mods/plantlife_modpack/ferns/treefern.lua | 8 | 6641 | -----------------------------------------------------------------------------------------------
-- Ferns - Tree Fern 0.1.1
-----------------------------------------------------------------------------------------------
-- by Mossmanikin
-- License (everything): WTFPL
-- Contains code from: biome_lib
-- Looked at cod... | unlicense |
umbrellaTG/sphero | plugins/antiemoji.lua | 4 | 2951 | local function run(msg, matches) if is_momod(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']['antiemoji'] then lock_ads = data[tostring(msg.to.id)]['settings']['antiemoji'] end e... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Metalworks/Zone.lua | 28 | 1683 | -----------------------------------
--
-- Zone: Metalworks (237)
--
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/zone");
require("scripts/globals/settings");
requi... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Yhoator_Jungle/npcs/Telepoint.lua | 17 | 1628 | -----------------------------------
-- Area: Yhoator Jungle
-- NPC: Telepoint
-----------------------------------
package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Yhoator_Jungle/TextIDs");
---------... | gpl-3.0 |
kitala1/darkstar | scripts/globals/mobskills/Rock_Smash.lua | 12 | 1045 | ---------------------------------------------
-- Rock Smash
--
-- Description: Damages a single target. Additional effect: Petrification
-- Type: Physical
-- Utsusemi/Blink absorb: 1 shadow
-- Range: Melee
-- Notes:
---------------------------------------------
require("scripts/globals/settings");
req... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Crochepallade.lua | 36 | 1043 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Crochepallade -- Name is Moogle for some reason
-- @zone 80
-- @pos -46 2 -8
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextI... | gpl-3.0 |
kitala1/darkstar | scripts/globals/weaponskills/tachi_shoha.lua | 30 | 1753 | -----------------------------------
-- Tachi: Shoha
-- Great Katana weapon skill
-- Skill Level: 357
-- Delivers a two-hit attack. Damage varies with TP.
-- To obtain Tachi: Shoha, the quest Martial Mastery must be completed and it must be purchased from the Merit Points menu.
-- Suspected to have an Attack Bonus... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Port_Windurst/npcs/Kohlo-Lakolo.lua | 36 | 10182 | -----------------------------------
-- Area: Port Windurst
-- NPC: Kohlo-Lakolo
-- Invloved In Quests: Truth, Justice, and the Onion Way!,
-- Know One's Onions,
-- Inspector's Gadget,
-- Onion Rings,
-- Crying Over Onions,
-- Wild Card,
-- ... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Sauromugue_Champaign_[S]/npcs/Cavernous_Maw.lua | 13 | 1456 | -----------------------------------
-- Area: Sauromugue Champaign [S]
-- NPC: Cavernous Maw
-- @pos 369 8 -227 98
-- Teleports Players to Sauromugue_Champaign
-----------------------------------
package.loaded["scripts/zones/Sauromugue_Champaign_[S]/TextIDs"] = nil;
-----------------------------------
requir... | gpl-3.0 |
selaselah/thrift | test/lua/test_basic_client.lua | 57 | 7626 | -- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file ... | apache-2.0 |
Sean-Der/thrift | test/lua/test_basic_client.lua | 57 | 7626 | -- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file ... | apache-2.0 |
kitala1/darkstar | scripts/zones/Abyssea-Misareaux/Zone.lua | 32 | 1543 | -----------------------------------
--
-- Zone: Abyssea - Misareaux
--
-----------------------------------
package.loaded["scripts/zones/Abyssea-Misareaux/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/zones/Abysse... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Spire_of_Vahzl/npcs/_0n0.lua | 12 | 1483 | -----------------------------------
-- 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/gl... | gpl-3.0 |
apletnev/koreader | frontend/ui/widget/datewidget.lua | 4 | 6712 | local Blitbuffer = require("ffi/blitbuffer")
local ButtonTable = require("ui/widget/buttontable")
local CenterContainer = require("ui/widget/container/centercontainer")
local CloseButton = require("ui/widget/closebutton")
local Device = require("device")
local FrameContainer = require("ui/widget/container/framecontaine... | agpl-3.0 |
kitala1/darkstar | scripts/zones/Port_Bastok/npcs/Sugandhi.lua | 30 | 1587 | -----------------------------------
-- Area: Port Bastok
-- NPC: Sugandhi
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/zones/Port_Bastok/TextIDs");
require("scripts/globals/shop");
-----------------------------------
-- onTra... | gpl-3.0 |
Pulse-Eight/drivers | Control4/sky_q_ip_pulse-eight/lib/c4_timer.lua | 9 | 7500 | --[[=============================================================================
c4_timer Class
Copyright 2015 Control4 Corporation. All Rights Reserved.
===============================================================================]]
require "common.p8declares"
require "lib.c4_object"
c4_timer = inheritsFr... | apache-2.0 |
Pulse-Eight/drivers | Control4/tv_sink_pulse-eight/lib/c4_timer.lua | 9 | 7500 | --[[=============================================================================
c4_timer Class
Copyright 2015 Control4 Corporation. All Rights Reserved.
===============================================================================]]
require "common.p8declares"
require "lib.c4_object"
c4_timer = inheritsFr... | apache-2.0 |
Pulse-Eight/drivers | Control4/neo8_modular_pulse-eight/lib/c4_timer.lua | 9 | 7500 | --[[=============================================================================
c4_timer Class
Copyright 2015 Control4 Corporation. All Rights Reserved.
===============================================================================]]
require "common.p8declares"
require "lib.c4_object"
c4_timer = inheritsFr... | apache-2.0 |
kitala1/darkstar | scripts/zones/Bastok_Mines/npcs/Phara.lua | 20 | 2542 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Phara
-- Starts and Finishes Quest: The doorman (start)
-- Involved in Quest: The Talekeeper's Truth
-- @zone 234
-- @pos 75 0 -80
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/The_Eldieme_Necropolis/Zone.lua | 30 | 2110 | -----------------------------------
--
-- Zone: The_Eldieme_Necropolis (195)
--
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/... | gpl-3.0 |
crabman77/minetest-minetestforfun-server | mods/homedecor_modpack/homedecor/cobweb.lua | 14 | 5698 | minetest.register_node("homedecor:cobweb_corner", {
description = "Cobweb",
drawtype = "torchlike",
tiles = { "homedecor_cobweb_torchlike.png" },
inventory_image = "homedecor_cobweb.png",
wield_image = "homedecor_cobweb.png",
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
liquid_v... | unlicense |
crabman77/minetest-minetestforfun-server | mods/interact/init.lua | 9 | 13033 | dofile(minetest.get_modpath("interact") .. "/config.lua")
dofile(minetest.get_modpath("interact") .. "/rules.lua") --I put the rules in their own file so that they don't get lost/overlooked!
local rule1 = 0
local rule2 = 0
local rule3 = 0
local rule4 = 0
local multi = 0
function table.length(T)
local count = 0
for ... | unlicense |
kitala1/darkstar | scripts/zones/Caedarva_Mire/npcs/Jazaraat_s_Headstone.lua | 13 | 1058 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: Jazaraat's Headstone
-- Involved in mission: The Lost Kingdom (TOAUM 13)
-- @pos -389 6 -570 79
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
require("scripts/zones/Caedarva_Mire/TextIDs");
... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Mhoti_Pyiahrs.lua | 38 | 1045 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Mhoti Pyiahrs
-- Type: Allegiance
-- @zone: 94
-- @pos 6.356 -2 26.677
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
----... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Southern_San_dOria/npcs/Katharina.lua | 37 | 1095 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Katharina
-- General Info NPC
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Southe... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Windurst_Waters/npcs/HomePoint#1.lua | 12 | 1265 | -----------------------------------
-- Area: Windurst Waters
-- NPC: HomePoint#1
-- @pos -32.022 -5.000 131.741 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Windurst_Waters/TextIDs");
requi... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Caedarva_Mire/npcs/Nareema.lua | 12 | 1995 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: Nareema
-- Type: Assault
-- @pos 518.387 -24.707 -467.297 79
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Sauromugue_Champaign/npcs/qm6.lua | 8 | 2290 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: qm6 (???) (Tower 6)
-- Involved in Quest: THF AF "As Thick As Thieves"
-- @pos 363.481 23.600 6.335 120
-----------------------------------
package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil;
----------------------------------... | gpl-3.0 |
lvdmaaten/nn | CMul.lua | 24 | 3600 | local CMul, parent = torch.class('nn.CMul', 'nn.Module')
function CMul:__init(...)
parent.__init(self)
local arg = {...}
self.size = torch.LongStorage()
local n = #arg
if n == 1 and torch.type(arg[1]) == 'torch.LongStorage' then
self.size:resize(#arg[1]):copy(arg[1])
else
self.size:r... | bsd-3-clause |
kitala1/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Porter_Moogle.lua | 41 | 1547 | -----------------------------------
-- Area: Tavnazian_Safehold
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- @zone 26
-- @pos TODO
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Tavnazian_S... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Jugner_Forest/npcs/Pure_Heart_IM.lua | 30 | 3050 | -----------------------------------
-- Area: Jugner Forest
-- NPC: Pure Heart, I.M.
-- Type: Border Conquest Guards
-- @pos 570.732 -2.637 553.508 104
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest"... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Southern_San_dOria/npcs/Valeriano.lua | 34 | 2020 | -----------------------------------
-- Area: Southern_San_dOria
-- NPC: Valeriano
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/sho... | gpl-3.0 |
crabman77/minetest-minetestforfun-server | mods/homedecor_modpack/homedecor/gastronomy.lua | 12 | 5792 | local S = homedecor.gettext
local cutlery_cbox = {
type = "fixed",
fixed = {
{ -5/16, -8/16, -6/16, 5/16, -7/16, 2/16 },
{ -2/16, -8/16, 2/16, 2/16, -4/16, 6/16 }
}
}
homedecor.register("cutlery_set", {
drawtype = "mesh",
mesh = "homedecor_cutlery_set.obj",
tiles = { "homedecor_cutlery_set.png" },
invento... | unlicense |
crabman77/minetest-minetestforfun-server | mods/plantlife_modpack/dryplants/init.lua | 7 | 7706 | -----------------------------------------------------------------------------------------------
local title = "Grasses" -- former "Dry plants"
local version = "0.1.5"
local mname = "dryplants"
-----------------------------------------------------------------------------------------------
-- by Mossmanikin
-- t... | unlicense |
kitala1/darkstar | scripts/globals/abilities/equanimity.lua | 28 | 1166 | -----------------------------------
-- Ability: Equanimity
-- Your next black magic spell will generate less enmity.
-- Obtained: Scholar Level 75
-- Recast Time: Stratagem Charge
-- Duration: 1 black magic spell or 60 seconds, whichever occurs first
--
-- Level |Charges |Recharge Time per Charge
-- ----- -... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Norg/npcs/Heizo.lua | 19 | 3109 | -----------------------------------
-- Area: Norg
-- NPC: Heizo
-- Starts and Ends Quest: Like Shining Leggings
-- @pos -1 -5 25 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scrip... | gpl-3.0 |
d-o/LUA-LIB | src/rinLibrary/GenericCommand.lua | 2 | 13870 | -------------------------------------------------------------------------------
--- Library for High level command support.
-- @module rinLibrary.Device.Command
-- @author Darren Pearson
-- @author Merrick Heley
-- @copyright 2013 Rinstrum Pty Ltd
------------------------------------------------------------------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Windurst_Waters/npcs/Kopopo.lua | 33 | 1196 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Kopopo
-- Guild Merchant NPC: Cooking Guild
-- @pos -103.935 -2.875 74.304 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
iotcafe/nodemcu-firmware-lua5.3.0 | lua_examples/yet-another-ds18b20.lua | 79 | 1924 | ------------------------------------------------------------------------------
-- DS18B20 query module
--
-- LICENCE: http://opensource.org/licenses/MIT
-- Vladimir Dronnikov <dronnikov@gmail.com>
--
-- Example:
-- dofile("ds18b20.lua").read(4, function(r) for k, v in pairs(r) do print(k, v) end end)
------------------... | mit |
kitala1/darkstar | scripts/zones/Port_Bastok/npcs/Fo_Mocorho.lua | 59 | 1038 | -----------------------------------
-- Area: Port Bastok
-- NPC: Fo Mocorho
-- Type: Weather Reporter
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Port_Bastok/TextIDs");
--... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Buburimu_Peninsula/Zone.lua | 6 | 4625 | -----------------------------------
--
-- Zone: Buburimu_Peninsula (118)
--
-----------------------------------
package.loaded[ "scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require("scripts/zones/Buburimu_Penins... | gpl-3.0 |
crabman77/minetest-minetestforfun-server | mods/snow/src/util.lua | 9 | 5009 | --Global config and function table.
snow = {
snowball_gravity = 100/109,
snowball_velocity = 19,
sleds = true,
enable_snowfall = true,
lighter_snowfall = false,
debug = false,
smooth_biomes = true,
christmas_content = true,
smooth_snow = true,
min_height = 3,
mapgen_rarity = 18,
mapgen_size = 210,
}
--Conf... | unlicense |
apletnev/koreader | frontend/ui/widget/radiobutton.lua | 1 | 4732 | --[[--
Widget that shows a radiobutton checked (`◉`) or unchecked (`◯`)
or nothing of the same size.
Example:
local RadioButton = require("ui/widget/radiobutton")
local parent_widget = FrameContainer:new{}
table.insert(parent_widget, RadioButton:new{
checkable = false, -- shows nothing when false,... | agpl-3.0 |
kitala1/darkstar | scripts/zones/RuAun_Gardens/Zone.lua | 28 | 15340 | -----------------------------------
--
-- Zone: RuAun_Gardens (130)
--
-----------------------------------
package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/missions");
require("scripts/globals/conque... | gpl-3.0 |
shahabsaf1/uzz-bot | plugins/bugzilla.lua | 611 | 3983 | do
local BASE_URL = "https://bugzilla.mozilla.org/rest/"
local function bugzilla_login()
local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password
print("accessing " .. url)
local res,code = https.request( url )
local data = json:decode(res)
return data
... | gpl-2.0 |
kidaa/MoonGen | lua/include/proto/udp.lua | 2 | 7647 | ------------------------------------------------------------------------
--- @file udp.lua
--- @brief User datagram protocol (UDP) utility.
--- Utility functions for udp_header struct
--- defined in \ref headers.lua . \n
--- Includes:
--- - Udp constants
--- - Udp header utility
--- - Definition of Udp packets
--------... | mit |
kitala1/darkstar | scripts/globals/campaign.lua | 10 | 4902 |
-----------------------------------------------------------------
-- Variable for getNationTeleport and getPoint
-----------------------------------------------------------------
ALLIED_NOTES = 11;
MAW = 4;
PAST_SANDORIA = 5;
PAST_BASTOK = 6;
PAST_WINDURST = 7;
-- ---------------------------------------... | gpl-3.0 |
theonlywild/erfaaan | plugins/welcome.lua | 35 | 3625 | local add_user_cfg = load_from_file('data/add_user_cfg.lua')
local function template_add_user(base, to_username, from_username, chat_name, chat_id)
base = base or ''
to_username = '@' .. (to_username or '')
from_username = '@' .. (from_username or '')
chat_name = string.gsub(chat_name, '_', ' ') or ''
c... | gpl-2.0 |
hanxi/cocos2d-x-v3.1 | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Widget.lua | 3 | 9949 |
--------------------------------
-- @module Widget
-- @extend ProtectedNode
--------------------------------
-- @function [parent=#Widget] setSizePercent
-- @param self
-- @param #cc.Vec2 vec2
--------------------------------
-- @function [parent=#Widget] getCustomSize
-- @param self
-- @return size_table#... | mit |
kitala1/darkstar | scripts/zones/Gusgen_Mines/npcs/_5g0.lua | 34 | 1096 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: _5g0 (Door C)
-- @pos 44 -42.4 -25.5 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Gusgen_Mines/TextIDs");
---------------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Carpenters_Landing/mobs/Birdtrap.lua | 23 | 1306 | -----------------------------------
-- Area: Carpenters' Landing
-- Mob: Birdtrap
-- Note: Placeholder Orctrap
-----------------------------------
require("scripts/zones/Carpenters_Landing/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
function onMob... | gpl-3.0 |
dangerrr/dangerrr | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
sylvanaar/IDLua | testdata/non-test-system-files/lua5.1-tests/main.lua | 3 | 3302 | #! testing special comment on first line
print ("testing lua.c options")
assert(os.execute() ~= 0) -- machine has a system command
prog = os.tmpname()
otherprog = os.tmpname()
out = os.tmpname()
do
local i = 0
while arg[i] do i=i-1 end
progname = '"'..arg[i+1]..'"'
end
print(progname)
local prepfile = func... | apache-2.0 |
d-o/LUA-LIB | src/rinLibrary/display/C500.lua | 2 | 7688 | -------------------------------------------------------------------------------
-- C500 LCD Services
-- Functions to add the C500 LCD to the display fields
-- @module rinLibrary.Device.LCD
-- @author Merrick Heley
-- @copyright 2016 Rinstrum Pty Ltd
----------------------------------------------------------------------... | gpl-3.0 |
kaustavha/rackspace-monitoring-agent | tests/fixtures/init.lua | 3 | 1458 | local los = require('los')
local fs = require('fs')
local path = require('path')
local get_static
local load_fixtures = function(dir, is_json)
local finder = is_json and '(.*)' or '(.*).json'
-- Convert the \ to / so path.posix works
if los.type() == 'win32' then
dir = dir:gsub("\\", "/")
end
local fixt... | apache-2.0 |
kitala1/darkstar | scripts/zones/Davoi/npcs/_45i.lua | 19 | 2041 | -----------------------------------
-- Area: Davoi
-- NPC: Wailing Pond
-- Used In Quest: Whence Blows the Wind
-- @pos 380 0.1 -181 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/gl... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Western_Adoulin/npcs/Porter_Moogle.lua | 41 | 1534 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- @zone 256
-- @pos TODO
-----------------------------------
package.loaded["scripts/zones/Western_Adoulin/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Western_Adoulin/... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Lower_Jeuno/npcs/Muckvix.lua | 23 | 1436 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Muckvix
-- Involved in Mission: Magicite
-- @zone 245
-- @pos -26.824 3.601 -137.082
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
... | gpl-3.0 |
kitala1/darkstar | scripts/globals/abilities/pets/hydro_breath.lua | 25 | 1252 | ---------------------------------------------------
-- Hydro Breath
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
function onAbilityCh... | gpl-3.0 |
Pulse-Eight/drivers | Control4/proamp8_pulse-eight/p8system.lua | 1 | 2553 | require "lib.json"
function P8INT:GET_DETAILS(idBinding)
--LogTrace("Updating System Details")
local uri = P8INT:GET_MATRIX_URL() .. "/System/Details"
C4:urlGet(uri, {}, false,
function(ticketId, strData, responseCode, tHeaders, strError)
if responseCode ~= 200 or strError ~= nil then
LogWarn(... | apache-2.0 |
kitala1/darkstar | scripts/zones/Port_Windurst/npcs/Mojo-Pojo.lua | 38 | 1037 | -----------------------------------
-- Area: Port Windurst
-- NPC: Mojo-Pojo
-- Type: Standard NPC
-- @zone: 240
-- @pos -108.041 -4.25 109.545
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
------------... | gpl-3.0 |
fastmailops/prosody | util/x509.lua | 4 | 6584 | -- Prosody IM
-- Copyright (C) 2010 Matthew Wild
-- Copyright (C) 2010 Paul Aurich
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-- TODO: I feel a fair amount of this logic should be integrated into Luasec,
-- so that everyone isn't re-inventing t... | mit |
kitala1/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Scythe.lua | 17 | 1480 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Animated Scythe
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
functi... | gpl-3.0 |
yemahuang/OpenBird | Resources/Cocos2d.lua | 26 | 9014 | require "CocoStudio"
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 = ... | mit |
fastmailops/prosody | core/hostmanager.lua | 4 | 5221 | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local configmanager = require "core.configmanager";
local modulemanager = require "core.modulemanager";
l... | mit |
kitala1/darkstar | scripts/zones/Mamook/npcs/qm2.lua | 8 | 1162 | -----------------------------------
-- Area: Mamook
-- NPC: ??? (Spawn Iriri Samariri(ZNM T2))
-- @pos -118 7 -80 65
-----------------------------------
package.loaded["scripts/zones/Mamook/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mamook/TextIDs");
--------------------------------... | gpl-3.0 |
jjimenezg93/ai-state_machines | moai/3rdparty/luasocket-2.0.2/samples/lpr.lua | 59 | 1574 | local lp = require("socket.lp")
local function usage()
print('\nUsage: lua lpr.lua [filename] [keyword=val...]\n')
print('Valid keywords are :')
print(
' host=remote host or IP address (default "localhost")\n' ..
' queue=remote queue or printer name (default "printer")\n' ..
' port=remote port ... | mit |
tetoali605/THETETOO_A7A | plugins/en_help.lua | 3 | 7325 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY tetoo ▀▄ ▄▀
▀▄ ▄▀ BY nmore (@l_l_lo) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY l_l_ll ▀▄ ▄▀
▀▄ ▄▀ broadcast : help ar ▀▄ ▄▀
▀▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀... | gpl-2.0 |
dangerrr/dangerrr | owners.lua | 2 | 12795 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)... | gpl-2.0 |
mahdi1062/avira | bot/dj.lua | 1 | 16223 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This function is ... | gpl-2.0 |
dangerrr/dangerrr | bot/bot.lua | 1 | 7075 | 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 = '0.14.6'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
r... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Port_San_dOria/npcs/Coullave.lua | 36 | 1889 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Coullave
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/quests");
requ... | gpl-3.0 |
kitala1/darkstar | scripts/globals/weaponskills/tachi_rana.lua | 12 | 4581 | -----------------------------------
-- Tachi Rana
-- Great Katana weapon skill
-- Skill Level: N/A
-- Delivers a three-fold attack. params.accuracy varies with TP. Aftermath effect varies with TP. See Kogarasumaru.
-- In order to obtain Tachi: Rana, the Unlocking a Myth (Samurai) quest must be completed.
-- Will ... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/bretzel.lua | 35 | 1302 | -----------------------------------------
-- ID: 4391
-- Item: Bretzel
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Magic % 8
-- Magic Cap 55
-- Vitality 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------... | gpl-3.0 |
mahdikord/mahdib3 | plugins/inrealm.lua | 850 | 25085 | -- 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 |
UB12/lionbot | plugins/inrealm.lua | 850 | 25085 | -- 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 |
tetoali605/THETETOO_A7A | plugins/lock-fwd.lua | 6 | 2410 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY tetoo ▀▄ ▄▀
▀▄ ▄▀ BY nmore (@l_l_lo) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY l_l_ll ▀▄ ▄▀
▀▄ ▄▀ broadcast : قـفل اعاده توجي ▀▄ ▄▀
▀▄▀▀▄▄▀▀▄▄▀▄▄▀▀... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Jugner_Forest_[S]/mobs/Decrepit_Gnole.lua | 12 | 1538 | -----------------------------------
-- Area: Jugner Forest (S)
-- NPC: Decrepit Gnole
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
mob:setLocalVar("transformTime", os.time())
end;
---------------------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Port_Bastok/npcs/HomePoint#3.lua | 12 | 1188 | -----------------------------------
-- Area: Port_Bastok
-- NPC: HomePoint#3
-- @pos -126 -6 10 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Port_Bastok/TextIDs");
require("scripts/globals/homepoint");
... | gpl-3.0 |
kitala1/darkstar | scripts/zones/RuLude_Gardens/npcs/Pherimociel.lua | 23 | 2499 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Pherimociel
-- Involved in mission: COP 1-2
-- @pos -31.627 1.002 67.956 243
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
r... | gpl-3.0 |
dtrip/.ubuntu | awesome/rc.lua | 1 | 26391 | -- Standard awesome library
local gears = require("gears")
awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
-- Widget and layout library
wibox = require("wibox")
-- Theme handling library
beautiful = require("beautiful")
-- Notification library
naughty = require("naughty")
radica... | mit |
nicodinh/cuberite | lib/tolua++/src/bin/lua/template_class.lua | 41 | 1829 |
_global_templates = {}
classTemplateClass = {
name = '',
body = '',
parents = {},
args = {}, -- the template arguments
}
classTemplateClass.__index = classTemplateClass
function classTemplateClass:throw(types, local_scope)
--if table.getn(types) ~= table.getn(self.args) then
-- error("#invalid parameter co... | apache-2.0 |
kitala1/darkstar | scripts/zones/Northern_San_dOria/npcs/Jufaue.lua | 38 | 1052 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Jufaue
-- Type: Past Event Watcher
-- @zone: 231
-- @pos 13.221 -1.199 -19.231
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = ni... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Northern_San_dOria/npcs/Bertenont.lua | 19 | 1660 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Bertenont
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- @pos -165 0.1 226 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/loaf_of_black_bread.lua | 35 | 1287 | -----------------------------------------
-- ID: 4364
-- Item: loaf_of_black_bread
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 8
-- Dexterity -1
-- Vitality 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Nashmau/npcs/Leleroon.lua | 17 | 2992 | -----------------------------------
-- Area: Nashmau
-- NPC: Leleroon
-- Standard Info NPC -- Corsair SideQuests
-- @pos -14.687 0.000 25.114 53
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Pashhow_Marshlands/npcs/Souun_IM.lua | 30 | 3060 | -----------------------------------
-- Area: Pashhow Marshlands
-- NPC: Souun, I.M.
-- Type: Outpost Conquest Guards
-- @pos 470.843 23.465 415.520 109
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/con... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/spirit_maul.lua | 16 | 1517 | -----------------------------------------
-- ID: 18853
-- Spirit Maul
-- Additional effect: Light damage
-- Enchantment: TP+100
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
--------------... | gpl-3.0 |
crabman77/minetest-minetestforfun-server | mods/snow/src/snowball.lua | 9 | 11951 | --============
--Snowballs
--============
-- Snowballs were destroying nodes if the snowballs landed just right.
-- Quite a bit of trial-and-error learning here and it boiled down to a
-- small handful of code lines making the difference. ~ LazyJ
local creative_mode = minetest.setting_getbool("creative_mode")
local... | unlicense |
kitala1/darkstar | scripts/zones/RuLude_Gardens/npcs/Magian_Moogle_Green.lua | 48 | 2440 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Magian Moogle (Green Bobble)
-- Type: Magian Trials NPC (Job Emotes)
-- @pos -4.558 2.451 111.305 64
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
require("s... | gpl-3.0 |
eriche2016/torch7 | torchcwrap.lua | 54 | 15111 | local wrap = require 'cwrap'
local types = wrap.types
types.Tensor = {
helpname = function(arg)
if arg.dim then
return string.format("Tensor~%dD", arg.dim)
else
return "Tensor"
end
end,
declare = function(arg... | bsd-3-clause |
fqrouter/luci | applications/luci-statistics/luasrc/statistics/datatree.lua | 77 | 4394 | --[[
Luci statistics - rrd data tree builder
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.