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
metadeus/luv
tests/forms.lua
1
2859
local io, type, tostring, require = io, type, tostring, require local TestCase, forms, fields, Model, html = require "luv.dev.unittest".TestCase, require "luv.forms", require "luv.fields", require "luv.db.models".Model, require "luv.utils.html" local references = require "luv.fields.references" module(...) local Test...
bsd-3-clause
Arashbrsh/persian
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
n0xus/darkstar
scripts/zones/The_Ashu_Talif/Zone.lua
34
1119
----------------------------------- -- -- Zone: The_Ashu_Talif -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/The_Ashu_Talif/TextIDs"] = nil; require("scripts/zones/The_Ashu_Talif/TextIDs"); ----------------------------------- -- onInitialize -...
gpl-3.0
n0xus/darkstar
scripts/zones/Manaclipper/Zone.lua
28
1617
----------------------------------- -- -- Zone: Manaclipper -- ----------------------------------- package.loaded["scripts/zones/Manaclipper/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Manaclipper/TextIDs"); ------------------------------...
gpl-3.0
davymai/CN-QulightUI
Interface/AddOns/QulightUI/Root/Libs/oGlow/Pipes/Inspect.lua
1
2416
if (select(4, GetAddOnInfo("Fizzle"))) then return end local _E local slots = { "Head", "Neck", "Shoulder", "Shirt", "Chest", "Waist", "Legs", "Feet", "Wrist", "Hands", "Finger0", "Finger1", "Trinket0", "Trinket1", "Back", "MainHand", "SecondaryHand", [19] = "Tabard" } local _MISSING = {} local pollFrame = CreateFr...
gpl-2.0
alirezanile/Ldcxvx
plugins/weather.lua
274
1531
do local BASE_URL = "http://api.openweathermap.org/data/2.5/weather" local function get_weather(location) print("Finding weather in ", location) location = string.gsub(location," ","+") local url = BASE_URL url = url..'?q='..location url = url..'&units=metric' url = url..'&appid=bd82977b86bf27fb59a04b61b6...
gpl-2.0
mway08/Atlas
lib/admin-sql.lua
40
8858
--[[ $%BEGINLICENSE%$ Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. This program 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; version 2 of the License. This program is distribut...
gpl-2.0
n0xus/darkstar
scripts/zones/Tavnazian_Safehold/npcs/Morangeart.lua
38
1057
----------------------------------- -- Area: Tavnazian Safehold -- NPC: Morangeart -- Type: ENM Quest Activator -- @zone: 26 -- @pos -74.308 -24.782 -28.475 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"]...
gpl-3.0
alirezanile/Ldcxvx
libs/redis.lua
566
1214
local Redis = require 'redis' local FakeRedis = require 'fakeredis' local params = { host = os.getenv('REDIS_HOST') or '127.0.0.1', port = tonumber(os.getenv('REDIS_PORT') or 6379) } local database = os.getenv('REDIS_DB') local password = os.getenv('REDIS_PASSWORD') -- Overwrite HGETALL Redis.commands.hgetall = ...
gpl-2.0
n0xus/darkstar
scripts/globals/items/bowl_of_goblin_stew.lua
13
1500
----------------------------------------- -- ID: 4465 -- Item: bowl_of_goblin_stew -- Food Effect: 3Hrs, All Races ----------------------------------------- -- Dexterity -4 -- Attack % 15.5 -- Ranged Attack % 15.5 ----------------------------------------- require("scripts/globals/status"); ---------------...
gpl-3.0
xennygrimmato/nmt
src/OpenNMT/test/onmt/LMTest.lua
8
1166
require('onmt.init') local tester = ... local languageModelTest = torch.TestSuite() function languageModelTest.basic() tester:eq(onmt.LanguageModel.dataType('monotext'), true) tester:eq(onmt.LanguageModel.dataType(), 'monotext') end function languageModelTest.train() local cmd = onmt.utils.ExtendedCmdLine.new...
lgpl-3.0
DemonSinusa/SiemanC
LibsUser/luajit2/libs/klass/klass.lua
4
5868
-- $FILE klass.lua -- $VERSION 0.0.5 -- $AUTHOR Ketmar -- $DESCRIPTION -- another simple prototype-based class engine with finalizers and support for 'inherited' calls -- -- $LICENSE -- WTFPL -- -- $DEPENDS -- kmodule -- -- $USAGE -- local newclass = class(nil, "baseclass") -- function newclass:Method (...) p...
gpl-3.0
n0xus/darkstar
scripts/zones/Norg/npcs/Ryoma.lua
17
3886
----------------------------------- -- Area: Norg -- NPC: Ryoma -- Start and Finish Quest: 20 in Pirate Years, I'll Take the Big Box, True Will -- Involved in Quest: Ayame and Kaede -- @pos -23 0 -9 252 ----------------------------------- package.loaded["scripts/zones/Norg/TextIDs"] = nil; --------------------...
gpl-3.0
n0xus/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Wahraga.lua
19
1178
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Wahraga -- Guild Merchant: Alchemist Guild -- @pos -76.836 -6.000 140.331 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/global...
gpl-3.0
davymai/CN-QulightUI
Interface/AddOns/Aurora/AddOns/Blizzard_GuildBankUI.lua
1
3720
local F, C = unpack(select(2, ...)) C.themes["Blizzard_GuildBankUI"] = function() GuildBankFrame:DisableDrawLayer("BACKGROUND") GuildBankFrame:DisableDrawLayer("BORDER") GuildBankFrame.TopLeftCorner:Hide() GuildBankFrame.TopRightCorner:Hide() GuildBankFrame.TopBorder:Hide() GuildBankTabTitleBackground:SetTextur...
gpl-2.0
davymai/CN-QulightUI
Interface/AddOns/DBM-Party-WoD/GrimRailDepot/BlackrockAssaultCommander.lua
1
3176
local mod = DBM:NewMod(1163, "DBM-Party-WoD", 3, 536) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 12458 $"):sub(12, -3)) mod:SetCreatureID(79545) mod:SetEncounterID(1732) mod:SetZone() mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_AURA_APPLIED 160681 166570", "SPELL_AURA_APP...
gpl-2.0
rekotc/game-engine-demo
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/penlight/lua/pl/app.lua
3
3918
--- Application support functions. -- <p>See <a href="../../index.html#app">the Guide</a> -- @class module -- @name pl.app local utils = require 'pl.utils' local path = require 'pl.path' local lfs = require 'lfs' --[[ module ('pl.app',utils._module) ]] local app = {} local function check_script_name () if _G.ar...
lgpl-3.0
n0xus/darkstar
scripts/zones/Port_Windurst/npcs/Thubu_Parohren.lua
44
1821
----------------------------------- -- Area: Port Windurst -- NPC: Thubu Parohren -- Type: Fishing Guild Master -- @pos -182.230 -3.835 61.373 240 ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); req...
gpl-3.0
feiying1460/witi-openwrt
package/ramips/ui/luci-mtk/src/libs/px5g/lua/px5g/util.lua
170
1148
--[[ * px5g - Embedded x509 key and certificate generator based on PolarSSL * * Copyright (C) 2009 Steven Barth <steven@midlink.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License, version 2.1 as published by the Free ...
gpl-2.0
davymai/CN-QulightUI
Interface/AddOns/DBM-DragonSoul/localization.it.lua
1
7342
if GetLocale() ~= "itIT" then return end local L ------------- -- Morchok -- ------------- L= DBM:GetModLocalization(311) L:SetWarningLocalization({ KohcromWarning = "%s: %s"--Bossname, spellname. At least with this we can get boss name from casts in this one, unlike a timer started off the previous bosses casts. })...
gpl-2.0
sdgdsffdsfff/luajava
test/testMemory.lua
8
1169
------------------------------------------------------ -- Creates a lot of objects to check if the -- used memory keeps stable ------------------------------------------------------ local runtime = luajava.bindClass("java.lang.Runtime"):getRuntime() function doGc(event, lineNumber) if event == "count" then...
mit
n0xus/darkstar
scripts/zones/Phomiuna_Aqueducts/npcs/_0rs.lua
17
1623
----------------------------------- -- Area: Phomiuna_Aqueducts -- NPC: Oil lamp -- @pos -60 -23 60 27 ----------------------------------- package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zones/Phomiuna...
gpl-3.0
coderpunch/evolvemod
lua/evolve/plugins/sh_ban.lua
1
4178
--[[----------------------------------------------------------------------------------------------------------------------- Ban a player To do: Clean up this piece of shit. -----------------------------------------------------------------------------------------------------------------------]]-- local PLUGIN = {} P...
apache-2.0
davymai/CN-QulightUI
Interface/AddOns/Zmini/QuestLevelPatch.lua
1
4691
-------------------------------------------------------------------------------------------------------- -- QuestLevelPatch variables -- -------------------------------------------------------------------------------------------------------- loca...
gpl-2.0
mahdidoraj/secretbot
plugins/stats.lua
81
4126
do -- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_prin...
gpl-2.0
deezl/homedecor_lite
homedecor/furniture_recipes.lua
1
2032
minetest.register_craft({ output = "homedecor:table", "homedecor:chair 2", recipe = { { "group:wood","group:wood", "group:wood" }, { "group:stick", "", "group:stick" }, }, }) minetest.register_craft({ type = "shapeless", output = "homedecor:table_mahogany", recipe = { "homedecor...
unlicense
RyanTech/LoveLink
Resources/Cocos2dConstants.lua
8
7778
local CCConstants = {} CCConstants.SPRITE_INDEX_NOT_INITIALIZED = 0xffffffff CCConstants.TMX_ORIENTATION_HEX = 0x1 CCConstants.TMX_ORIENTATION_ISO = 0x2 CCConstants.TMX_ORIENTATION_ORTHO = 0x0 CCConstants.Z_COMPRESSION_BZIP2 = 0x1 CCConstants.Z_COMPRESSION_GZIP = 0x2 CCConstants.Z_COMPRESSION_NONE = 0x3 CCCo...
mit
Arashbrsh/lifeiran
bot/utils.lua
356
14963
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/...
gpl-2.0
beijixing/C-SocketProtobuf
TestScrollView/cocos2d/plugin/luabindings/auto/api/AgentManager.lua
146
1798
-------------------------------- -- @module AgentManager -- @parent_module plugin -------------------------------- -- -- @function [parent=#AgentManager] getSocialPlugin -- @param self -- @return plugin::ProtocolSocial#plugin::ProtocolSocial ret (return value: cc.plugin::ProtocolSocial) -------------------...
mit
davymai/CN-QulightUI
Interface/AddOns/QulightUI/Addons/Infotext/默认文件/power.lua
1
1292
if Qulight["general"].centerpanel then if Qulight["datatext"].power and Qulight["datatext"].power > 0 then local Stat = CreateFrame("Frame") Stat:SetFrameStrata("BACKGROUND") Stat:SetFrameLevel(3) local Text = LeftUpInfoPanel:CreateFontString(nil, "OVERLAY") Text:SetFont(Qulight["media"].font, 10, "OVERLAY") PP...
gpl-2.0
n0xus/darkstar
scripts/globals/spells/bluemagic/firespit.lua
27
1478
----------------------------------------- -- Spell: Firespit -- Deals fire damage to an enemy -- Spell cost: 121 MP -- Monster Type: Beastmen -- Spell Type: Magical (Fire) -- Blue Magic Points: 5 -- Stat Bonus: STR+3 -- Level: 68 -- Casting Time: 6.5 seconds -- Recast Time: 42.75 seconds -- Magic Bursts on: ...
gpl-3.0
Python1320/wire
lua/wire/client/gmod_tool_auto.lua
18
7138
local ent_tool_mappings = { prop_physics = { "easy_precision", "!weapon_physgun" }, func_physbox = { "easy_precision", "!weapon_physgun" }, } local ent_tool_patterns = { {"^.*$", ent_tool_mappings}, {"^prop_", "!weapon_physgun"}, bogus = {"^gmod_(.*)$", true}, -- The bogus index ensures that this always is itera...
apache-2.0
n0xus/darkstar
scripts/globals/abilities/pets/thunder_iv.lua
20
1161
--------------------------------------------------- -- Aero 2 --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); require("scripts/globals/magic"); ----------------------------------------------...
gpl-3.0
n0xus/darkstar
scripts/zones/Bastok_Markets/npcs/Zon-Fobun.lua
19
2359
----------------------------------- -- Area: Bastok Markets -- NPC: Zon-Fobun -- Type: Quest Giver -- @zone: 235 -- @pos -241.293 -3 63.406 -- -- Auto-Script: Requires Verification. Verified standard dialog - thrydwolf 12/18/2011 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/Tex...
gpl-3.0
Lucaszw/DIGITS
tools/torch/test.lua
2
15453
-- Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved. require 'torch' require 'xlua' require 'optim' require 'pl' require 'trepl' require 'image' require 'lfs' local dir_path = debug.getinfo(1,"S").source:match[[^@?(.*[\/])[^\/]-$]] if dir_path ~= nil then package.path = dir_path .."?.lua;".. packa...
bsd-3-clause
feiying1460/witi-openwrt
package/ramips/ui/luci-mtk/src/modules/base/luasrc/http/protocol/date.lua
88
2760
--[[ HTTP protocol implementation for LuCI - date handling (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....
gpl-2.0
privatesource/Vira_max
plugins/qr.lua
4
1620
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) do if color == str then return value end end return str end loc...
gpl-2.0
shagu/pfQuest
db/zhCN/objects-tbc.lua
1
188063
pfDB["objects"]["zhCN-tbc"] = { [4] = "营火伤害", [38] = "巨龙的遗产", [129] = "Naxx Teleporter trap", [256] = "通缉!", [333] = "上古圣物", [334] = "上古圣物", [965] = "黑烟-鳞片2", [1323] = "Uther\'s Tomb Statue", [1324] = "Grom\'s Monument", [1562] = "哈迦德的箱子", [1621] = "布瑞尔索恩", [1675] = "瑟伯切尔", [1684] = "Blacksmit...
mit
elbamos/nn
VolumetricConvolution.lua
10
6232
local VolumetricConvolution, parent = torch.class('nn.VolumetricConvolution', 'nn.Module') function VolumetricConvolution:__init(nInputPlane, nOutputPlane, kT, kW, kH, dT, dW, dH, padT, padW, padH) parent.__init(self) dT = dT or 1 dW = dW or 1 dH = dH or 1 self.nInputPlane = nInputPlane self.nOutpu...
bsd-3-clause
LiberatorUSA/GUCEF
dependencies/toluapp/src/bin/lua/array.lua
42
6551
-- tolua: array class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1999 -- $Id: array.lua,v 1.1 2000/11/06 22:03:57 celes Exp $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to provide ma...
apache-2.0
jshackley/darkstar
scripts/zones/Ghelsba_Outpost/npcs/Hut_Door.lua
17
2049
----------------------------------- -- Area: Ghelsba_Outpost -- NPC: Hut Door -- @pos -165.357 -11.672 77.771 140 ------------------------------------- package.loaded["scripts/zones/Ghelsba_Outpost/TextIDs"] = nil; package.loaded["scripts/globals/bcnm"] = nil; ------------------------------------- require("s...
gpl-3.0
jshackley/darkstar
scripts/zones/Grand_Palace_of_HuXzoi/Zone.lua
6
4724
----------------------------------- -- -- Zone: Grand_Palace_of_HuXzoi (34) -- ----------------------------------- package.loaded["scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Grand_Palace_of_HuXzoi/TextID...
gpl-3.0
Samanj5/Spam-is-DEAD
plugins/inrealm.lua
114
25001
-- 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
mohammadclashclash/sina20160
plugins/inrealm.lua
114
25001
-- 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
jshackley/darkstar
scripts/zones/Port_Bastok/npcs/Blabbivix.lua
17
1227
----------------------------------- -- Area: Port Bastok -- NPC: Blabbivix -- Standard merchant, though he acts like a guild merchant -- @pos -110.209 4.898 22.957 236 ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("sc...
gpl-3.0
jshackley/darkstar
scripts/globals/items/spicy_cracker.lua
35
1335
----------------------------------------- -- ID: 4466 -- Item: spicy_cracker -- Food Effect: 3Min, All Races ----------------------------------------- -- HP Recovered While Healing 7 -- Beast Killer -- Resist Sleep ----------------------------------------- require("scripts/globals/status"); --------------...
gpl-3.0
jshackley/darkstar
scripts/zones/Southern_San_dOria/npcs/Phamelise.lua
30
2057
----------------------------------- -- Area: Southern San d'Oria -- NPC: Phamelise -- Only sells when San d'Oria controlls Zulkheim Region ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/gl...
gpl-3.0
BeyondTeam/TeleBeyond
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...
agpl-3.0
jshackley/darkstar
scripts/zones/Temenos/mobs/Goblin_Slaughterman.lua
1
1077
----------------------------------- -- Area: Temenos N T -- NPC: Goblin_Slaughterman ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); -----------------...
gpl-3.0
bigdogmat/gmod_whitelist
lua/whitelist/cl_menu.lua
1
4092
-- Whitelist menu -- Localized functions local string_gmatch = string.gmatch -- Create menu variables local list, reason, count, lookup -- Create helper functions local function add_ID(id, initial) if id == '' then return end if lookup[id] then return end lookup[id] = list:AddLine(id):GetID() count = cou...
apache-2.0
saeeidbeygi/Mrbot
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
LWJGL-CI/bgfx
scripts/bindings-bf.lua
3
9223
local codegen = require "codegen" local idl = codegen.idl "bgfx.idl" local beef_template = [[ /* * Copyright 2011-2022 Branimir Karadzic. All rights reserved. * License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE */ /* * * AUTO GENERATED! DO NOT EDIT! * */ using System; namespace Bgfx { public sta...
bsd-2-clause
Keithenneu/Dota2-FullOverwrite
modes/laning.lua
1
17038
------------------------------------------------------------------------------- --- AUTHOR: Nostrademous --- CONTRIBUTOR: Code based on work by Platinum_dota2 --- GITHUB REPO: https://github.com/Nostrademous/Dota2-FullOverwrite ------------------------------------------------------------------------------- BotsInit = ...
gpl-3.0
iofun/treehouse
luerl/6b72d16ff7549f26f488feb0c65dd941.lua
1
2109
-- Nuclear weapons Terran storage add-on. -- Our unit function table local this_unit = {} -- Where we are and fast we move local x, y, dx, dy -- Our name local name = "Terran_Nuclear_Silo" -- Our color local color = "blue" -- Our BWAPI unit type local type = 108 -- Size of a...
agpl-3.0
jshackley/darkstar
scripts/zones/Boneyard_Gully/mobs/Race_Runner.lua
1
1504
----------------------------------- -- Area: Boneyard_Gully -- Name: Race Runner ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/status"); local path = { -539, 0, -481, -556, 0, -478, -581, 0, -475, -579, -3, -460, -572, 2, -433, -545, 1, -440, -53...
gpl-3.0
PTPM/MTASA-legacy
ptpm/vehicles.lua
1
3936
function isQualified( thePlayer, theVehicle, seat ) if seat == 0 and getPlayerClassID( thePlayer ) then -- if the keys task has been activated if classes[getPlayerClassID( thePlayer )].type == "pm" and data.tasks.keys then return true end if not cantDrive[classes[getPlayerClassID( thePlayer )].type][g...
mit
jshackley/darkstar
scripts/globals/spells/bluemagic/reactor_cool.lua
17
2109
----------------------------------------- -- Spell: Reactor Cool -- Enhances defense and covers you with magical ice spikes. Enemies that hit you take ice damage -- Spell cost: 28 MP -- Monster Type: Luminions -- Spell Type: Magical (Ice) -- Blue Magic Points: 5 -- Stat Bonus: INT+3 MND+3 -- Level: 74 -- Casti...
gpl-3.0
tridge/ardupilot
libraries/AP_Scripting/examples/ahrs-source-gps-optflow.lua
11
11422
-- switches between AHRS/EKF sources based on the pilot's source selection switch or using an automatic source selection algorithm -- this script is intended to help vehicles automatically switch between GPS and optical flow -- -- configure a forward or downward facing lidar with a range of at least 5m -- setup RCx_OPT...
gpl-3.0
jshackley/darkstar
scripts/zones/Rolanberry_Fields/npcs/Mayuyu.lua
27
1686
----------------------------------- -- Area: Rolanberry Fields -- NPC: Mayuyu -- Legion NPC -- @pos 240 24.399 468 ----------------------------------- package.loaded["scripts/zones/Rolanberry_Fields/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/gl...
gpl-3.0
10sa/Advanced-Nutscript
nutscript/plugins/3dtext/sv_plugin.lua
1
1060
local PLUGIN = PLUGIN or { }; function PLUGIN:PlayerLoadedData(client) for k, v in pairs(self.text) do netstream.Start(client, "nut_TextData", {v.pos, v.angle, v.text, v.scale}) end end function PLUGIN:AddText(client, text, scale) local trace = client:GetEyeTraceNoCursor() local data = { pos = trace.HitPos + ...
mit
anonymous12212020/mahdi0000
plugins/all.lua
88
4791
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
dani-sj/tekmilienod
plugins/all.lua
88
4791
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
tridge/ardupilot
libraries/AP_Scripting/examples/LED_matrix_text.lua
27
7707
--[[ Script to control LED strips based on the roll of the aircraft. This is an example to demonstrate the LED interface for WS2812 LEDs --]] --[[ for this demo we will use a single strip with 30 LEDs --]] local matrix_x = 7 local matrix_y = 7 -- matrix to convert from x y pos to location in the strip local id = {} -...
gpl-3.0
jshackley/darkstar
scripts/zones/Port_Windurst/npcs/Rottata.lua
19
1832
----------------------------------- -- Area: Port Windurst -- NPC: Rottata -- Outpost Teleporter NPC -- @pos 193.111 -12.999 215.638 240 ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest"); require("sc...
gpl-3.0
jshackley/darkstar
scripts/zones/Sealions_Den/Zone.lua
17
2036
----------------------------------- -- -- Zone: Sealions_Den (32) -- ----------------------------------- package.loaded["scripts/zones/Sealions_Den/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Sealions_Den/TextIDs"); ----------------------...
gpl-3.0
jshackley/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Yahsra.lua
2
3600
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Yahsra -- Type: Assault Mission Giver -- @pos 120.967 0.161 -44.002 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyi...
gpl-3.0
sugiartocokrowibowo/Algorithm-Implementations
Burrows_Wheeler_Transform/Lua/Yonaba/bwt_test.lua
26
1111
-- Tests for bwt.lua local bwt = require 'bwt' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total = total + 1 local ok, err = pcall(f) if ok then pass = pass + 1 end local status = ok...
mit
jshackley/darkstar
scripts/zones/Ifrits_Cauldron/npcs/qm2.lua
2
1482
----------------------------------- -- Area: Ifrit's Cauldron -- NPC: qm2 (???) -- Notes: Used to spawn Bomb Queen -- @pos 18 20 -104 205 ----------------------------------- package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Ifrits_Cauld...
gpl-3.0
UnKnOwNsBoT/UnKnOwNsBoT
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
luastoned/turbo
turbo/cdef.lua
7
22601
--- Turbo.lua C function declarations -- -- Copyright 2013, 2014 John Abrahamsen -- -- 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 -- -- Unl...
apache-2.0
Shrike78/Shilke2D
Shilke2D/Utils/Bitmap/BitmapRegion.lua
1
3173
--[[--- BitmapRegion class it's an helper for handling atlases of packed bitmaps. A BipmapRegion defines a region over an image, a frame if the packed texture has been trimmed to save space/memory, and a rotation flag to idenify 90° clockwise rotated regions It's the base class of Textures, that can be considered as...
mit
jshackley/darkstar
scripts/zones/Bastok_Mines/npcs/Arva.lua
35
1293
----------------------------------- -- Area: Bastok Mines -- NPC: Arva -- Adventurer's Assistant -- Working 100% ------------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; require("scripts/zones/Bastok_Mines/TextIDs"); ------------...
gpl-3.0
jshackley/darkstar
scripts/globals/spells/herculean_etude.lua
18
1618
----------------------------------------- -- Spell: Herculean Etude -- Static STR Boost, BRD 74 ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- ...
gpl-3.0
jshackley/darkstar
scripts/zones/Spire_of_Holla/npcs/_0h2.lua
51
1327
----------------------------------- -- 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
VincentGong/chess
cocos2d-x/cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_ui_auto_api.lua
6
3732
-------------------------------- -- @module ccui -------------------------------------------------------- -- the ccui LayoutParameter -- @field [parent=#ccui] LayoutParameter#LayoutParameter LayoutParameter preloaded module -------------------------------------------------------- -- the ccui LinearLayoutParameter --...
mit
asmagill/hs._asm.luathread
luaskin/modules/drawing/color/init.lua
6
24586
local module = require("hs.drawing.color.internal") --- === hs.drawing.color === --- --- Additions to hs.drawing which provide access to the system color lists and a wider variety of ways to represent color within Hammerspoon. --- --- Color is represented within Hammerspoon as a table containing keys which tell Hammer...
mit
Victek/wrt1900ac-aa
veriksystems/luci-0.11/libs/nixio/docsrc/nixio.TLSSocket.lua
173
2926
--- TLS Socket Object. -- TLS Sockets contain the underlying socket and context in the fields -- "socket" and "context". -- @cstyle instance module "nixio.TLSSocket" --- Initiate the TLS handshake as client with the server. -- @class function -- @name TLSSocket.connect -- @usage This function calls SSL_connect(). -- @...
gpl-2.0
jshackley/darkstar
scripts/zones/Empyreal_Paradox/mobs/Prishe.lua
1
2619
----------------------------------- -- Area: Empyreal Paradox -- MOB: Prishe -- Chains of Promathia 8-4 BCNM Fight ----------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/zones/Empyreal_Paradox/TextIDs"); ----------------------------------- -- onMobIn...
gpl-3.0
jshackley/darkstar
scripts/globals/items/kayabaligi.lua
18
1260
----------------------------------------- -- ID: 5460 -- Item: Kayabaligi -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 4 -- Mind -6 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -------...
gpl-3.0
Th2Evil/SuperPlus
plugins/getfile.lua
14
1025
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ get file : جلب ملف ▀▄ ▄▀...
gpl-2.0
jshackley/darkstar
scripts/globals/items/dish_of_spaghetti_arrabbiata_+1.lua
35
1757
----------------------------------------- -- ID: 5212 -- Item: dish_of_spaghetti_arrabbiata_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Health % 15 -- Health Cap 150 -- Strength 5 -- Vitality 2 -- Intelligence -7 -- Attack % 22 -- Attack Cap 120 -- Store TP 5 ----------...
gpl-3.0
jshackley/darkstar
scripts/globals/weaponskills/howling_fist.lua
30
1458
----------------------------------- -- Howling Fist -- Hand-to-Hand weapon skill -- Skill Level: 200 -- Damage varies with TP. -- Will stack with Sneak Attack. -- Ignores some defense. -- Aligned with the Light Gorget & Thunder Gorget. -- Aligned with the Light Belt & Thunder Belt. -- Element: None -- Modifie...
gpl-3.0
jshackley/darkstar
scripts/zones/Palborough_Mines/npcs/@3z0.lua
61
1064
----------------------------------- -- Area: Palborough Mines -- NPC: ----------------------------------- require("scripts/globals/status"); ----------------------------------- ----------------------------------- -- onSpawn ----------------------------------- function onSpawn(npc) local elevator = { ...
gpl-3.0
jshackley/darkstar
scripts/zones/Quicksand_Caves/npcs/_5s4.lua
17
1278
----------------------------------- -- Area: Quicksand Caves -- NPC: Ornate Door -- Door blocked by Weight system -- @pos -709 0 -380 208 ----------------------------------- package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Quicksand_Cav...
gpl-3.0
jshackley/darkstar
scripts/zones/Heavens_Tower/npcs/_6q1.lua
17
1377
----------------------------------- -- Area: Heaven's Tower -- NPC: Starway Stairway -- @pos -10 0.1 30 242 ----------------------------------- package.loaded["scripts/zones/Heavens_Tower/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/Heavens_...
gpl-3.0
gemini-project/contrib
ingress/controllers/nginx/lua/vendor/lua-resty-http/lib/resty/http.lua
45
21496
local http_headers = require "resty.http_headers" local ngx_socket_tcp = ngx.socket.tcp local ngx_req = ngx.req local ngx_req_socket = ngx_req.socket local ngx_req_get_headers = ngx_req.get_headers local ngx_req_get_method = ngx_req.get_method local str_gmatch = string.gmatch local str_lower = string.lower local str_u...
apache-2.0
mfirry/FrameworkBenchmarks
frameworks/Lua/octopus/config.lua
12
1032
return { extensions = { {octopusExtensionsDir, "core"}, {octopusExtensionsDir, "baseline"}, {octopusExtensionsDir, "orm"}, {octopusExtensionsDir, "app"}, }, octopusExtensionsDir = octopusExtensionsDir, octopusHostDir = octopusHostDir, port = 8080, securePort = 38080, luaCodeCache = "on",...
bsd-3-clause
jshackley/darkstar
scripts/zones/Port_Windurst/npcs/Yafa_Yaa.lua
36
2750
----------------------------------- -- Area: Port Windurst -- NPC: Yafa Yaa ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/settings"); require("scripts/zones/Port_W...
gpl-3.0
Ombridride/minetest-minetestforfun-server
minetestforfun_game/mods/boats/init.lua
7
8231
-- -- Helper functions -- boats = {} function boats.is_water(pos) local nn = minetest.get_node(pos).name return minetest.get_item_group(nn, "water") ~= 0 end function boats.get_sign(i) if i == 0 then return 0 else return i / math.abs(i) end end function boats.get_velocity(v, yaw, y) local x = -math.sin(ya...
unlicense
jshackley/darkstar
scripts/zones/Metalworks/npcs/_6le.lua
34
1035
----------------------------------- -- Area: Metalworks -- Door: _6le (Presidential Suite) -- @pos 113 -20 8 237 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Metalworks/TextIDs"); --------------------...
gpl-3.0
jshackley/darkstar
scripts/globals/items/dish_of_spaghetti_pescatora.lua
35
1659
----------------------------------------- -- ID: 5191 -- Item: dish_of_spaghetti_pescatora -- Food Effect: 30Min, All Races ----------------------------------------- -- Health % 15 -- Health Cap 150 -- Vitality 3 -- Mind -1 -- Defense % 22 -- Defense Cap 65 -- Store TP 6 ------------------------------------...
gpl-3.0
jshackley/darkstar
scripts/zones/Port_San_dOria/npcs/Ceraulian.lua
17
5036
----------------------------------- -- Area: Port San d'Oria -- NPC: Ceraulian -- Involved in Quest: The Holy Crest -- @pos 0 -8 -122 232 ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); re...
gpl-3.0
emadni/telelordteamgimi
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
jshackley/darkstar
scripts/globals/items/kalamar.lua
18
1256
----------------------------------------- -- ID: 5448 -- Item: Kalamar -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 3 -- Mind -5 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -----------...
gpl-3.0
jshackley/darkstar
scripts/globals/spells/bio_iii.lua
18
2541
----------------------------------------- -- Spell: Bio III -- Deals dark damage that weakens an enemy's attacks and gradually reduces its HP. -- caster:getMerit() returns a value which is equal to the number of merit points TIMES the value of each point -- Bio III value per point is '30' This is a constant set in ...
gpl-3.0
Victek/wrt1900ac-aa
veriksystems/luci-0.11/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/interface.lua
8
2820
--[[ Luci statistics - interface plugin diagram definition (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www....
gpl-2.0
jshackley/darkstar
scripts/zones/Chateau_dOraguille/npcs/Rahal.lua
17
5981
----------------------------------- -- Area: Chateau d'Oraguille -- NPC: Rahal -- Involved in Quests: The Holy Crest, Lure of the Wildcat (San d'Oria) -- @pos -28 0.1 -6 233 ----------------------------------- package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil; ----------------------------------- ...
gpl-3.0
jshackley/darkstar
scripts/zones/Crawlers_Nest/npcs/qm9.lua
17
1819
----------------------------------- -- Area: Crawlers Nest -- NPC: ??? -- Used In Quest: A Boy's Dream -- @pos -18 -8 124 197 ----------------------------------- package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scr...
gpl-3.0
Ombridride/minetest-minetestforfun-server
mods/runes/scrolls.lua
8
1181
-- Scrolls for Runes Redo -- runes.scrolls = {} function register_scroll(name, type, data) if not data then return end local def = { inventory_image = (data.texture or "runes_scroll_unknown.png"), groups = {scroll = 1}, description = (data.description or "Mysterious Scroll"), } minetest.register_craftitem...
unlicense
jshackley/darkstar
scripts/zones/Qufim_Island/npcs/Tsonga-Hoponga_WW.lua
30
3060
----------------------------------- -- Area: Qufim Island -- NPC: Tsonga-Hoponga, W.W. -- Type: Outpost Conquest Guards -- @pos -245.366 -20.344 299.502 126 ----------------------------------- package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conq...
gpl-3.0