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
n0xus/darkstar
scripts/zones/Port_Jeuno/npcs/qm1.lua
17
2397
----------------------------------- -- Area: Port Jeuno -- NPC: ??? -- Finish Quest: Borghertz's Hands (AF Hands, Many job) -- @zone 246 -- @pos -51 8 -4 ----------------------------------- package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; package.loaded["scripts/globals/settings"] = nil; -------------...
gpl-3.0
davymai/CN-QulightUI
Interface/AddOns/Broker_Garrison/Libs/AceGUI-3.0-SharedMediaWidgets/FontWidget.lua
8
6008
-- Widget is based on the AceGUIWidget-DropDown.lua supplied with AceGUI-3.0 -- Widget created by Yssaril local AceGUI = LibStub("AceGUI-3.0") local Media = LibStub("LibSharedMedia-3.0") local AGSMW = LibStub("AceGUISharedMediaWidgets-1.0") do local widgetType = "LSM30_Font" local widgetVersion = 10 local conten...
gpl-2.0
qc88209818/JHGame
JHGame/scripting/lua/luajit/LuaJIT-2.0.1/dynasm/dasm_arm.lua
74
34483
------------------------------------------------------------------------------ -- DynASM ARM module. -- -- Copyright (C) 2005-2013 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ -- Module information: local _in...
gpl-2.0
ld-test/lanes
tests/timer.lua
6
2574
-- -- TIMER.LUA -- -- Sample program for Lua Lanes -- -- On MSYS, stderr is buffered. In this test it matters. io.stderr:setvbuf "no" local lanes = require "lanes".configure() local linda= lanes.linda() local function PRINT(str) io.stderr:write(str.."\n") end local T1= "1s" -- these keys can be anything... l...
mit
hlindqvist/pdns
pdns/powerdns-example-script.lua
14
3915
pdnslog("pdns-recursor Lua script starting!", pdns.loglevels.Warning) blockset = newDS() blockset:add{"powerdns.org", "xxx"} dropset = newDS(); dropset:add("123.cn") malwareset = newDS() malwareset:add("nl") magic2 = newDN("www.magic2.com") magicMetric = getMetric("magic") -- shows the various ways of blocking, ...
gpl-2.0
n0xus/darkstar
scripts/zones/Inner_Horutoto_Ruins/npcs/_5c8.lua
17
2168
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: Sealed Portal -- Involved in Quest: Making the Grade -- Working 50% -- Notes: Door will open if player has Making the Grade quest active, or if the have the KI portal charm. Door should open when 3 mages stand on circles, but no API for t...
gpl-3.0
n0xus/darkstar
scripts/zones/Chateau_dOraguille/Zone.lua
17
2744
----------------------------------- -- -- Zone: Chateau_dOraguille (233) -- ----------------------------------- package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require("scripts/glob...
gpl-3.0
rmobis/Raphael-Library
src/String.lua
1
7918
--[[ * Splits the string by the specified delimiter. * * Returns an array of strings, each of which is a substring of self formed by * splitting it on boundaries formed by the string delimiter. * * @since 0.1.0 * * @param {string} self - The string to be split * @param {string} ...
mit
davymai/CN-QulightUI
Interface/AddOns/QulightUI/Root/Libs/oUF/elements/leader.lua
2
1914
--[[ Element: Leader Icon Toggles visibility based on the units leader status. Widget Leader - Any UI widget. Notes The default leader icon will be applied if the UI widget is a texture and doesn't have a texture or color defined. Examples -- Position and size local Leader = self:CreateTexture(nil, ...
gpl-2.0
chengyi818/openwrt
customer/packages/luci/applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-app.lua
137
15546
cbimap = Map("asterisk", "asterisk", "") module = cbimap:section(TypedSection, "module", "Modules", "") module.anonymous = true app_alarmreceiver = module:option(ListValue, "app_alarmreceiver", "Alarm Receiver Application", "") app_alarmreceiver:value("yes", "Load") app_alarmreceiver:value("no", "Do Not Load") app_al...
gpl-2.0
n0xus/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Shahau.lua
24
1794
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Shahau -- Type: Alchemy Image Support -- @pos -10.470 -6.25 -141.700 241 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globa...
gpl-3.0
n0xus/darkstar
scripts/zones/The_Eldieme_Necropolis/npcs/_5fd.lua
34
1106
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: Shiva's Gate -- @pos 110 -34 -60 195 ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil; ----------------------------------- require("scripts/zones/The_Eldieme_Necropolis/TextIDs")...
gpl-3.0
Azmaedus/GarrisonJukeBox
music/mus_events.lua
1
12389
-- STRUCTURE -- [1] : Integer - ID of the music (new system) -- [2] : String - Path of the music file -- [3] : Integer - Length of the music file in seconds -- [4] : Integer - Blizzard File ID -- Get localization local GJB = LibStub("AceAddon-3.0"):GetAddon("GarrisonJukeBox") local L = GJB.L -- local L = LibStub("Ace...
gpl-2.0
tossp/lede-k3
package/lean/luci-app-flowoffload/luasrc/model/cbi/flowoffload.lua
2
1351
local m,s,o local SYS = require "luci.sys" m = Map("flowoffload") m.title = translate("Turbo ACC Acceleration Settings") m.description = translate("Opensource Linux Flow Offload driver (Fast Path or HWNAT)") m:append(Template("flow/status")) s = m:section(TypedSection, "flow") s.addremove = false s.anonymous = true ...
gpl-2.0
n0xus/darkstar
scripts/zones/Dynamis-Buburimu/bcnms/dynamis_Buburimu.lua
16
1143
----------------------------------- -- Area: dynamis_Buburimu -- Name: dynamis_Buburimu ----------------------------------- -- After registering the BCNM via bcnmRegister(bcnmid) function onBcnmRegister(player,instance) SetServerVariable("[DynaBuburimu]UniqueID",player:getDynamisUniqueID(1287)); SetServerVariabl...
gpl-3.0
chengyi818/openwrt
customer/packages/luci/applications/luci-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua
92
6917
-- wizard rewrite wip local uci = require "luci.model.uci".cursor() local sys = require "luci.sys" local util = require "luci.util" local ip = require "luci.ip" local community = "profile_" .. (uci:get("freifunk", "community", "name") or "Freifunk") local mesh_network = ip.IPv4(uci:get_first(community, "community", "...
gpl-2.0
rekotc/game-engine-demo
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/LuaMacro/tests/list.lua
2
1958
local M = require 'macro' List = require 'pl.List' local list_check -- list <var-list> [ = <init-list> ] -- acts as a 'macro factory', making locally-scoped macros for the variables, -- and emitting code to initialize plain variables. M.define ('list',function(get) get() -- skip space -- 'list' acts as a 'typ...
lgpl-3.0
Python1320/wire
lua/entities/gmod_wire_expression2/core/matrix.lua
10
44774
/******************************************************************************\ Matrix support \******************************************************************************/ local delta = wire_expression2_delta local function clone(a) local b = {} for k,v in ipairs(a) do b[k] = v end return b end /*****...
apache-2.0
DEVOmarReal/Omar-Real
bot/utils.lua
473
24167
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
Lucaszw/DIGITS
tools/torch/data.lua
3
23865
-- Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved. require 'torch' -- torch require 'nn' -- provides a normalization operator require 'utils' -- various utility functions require 'hdf5' -- import HDF5 now as it is unsafe to do it from a worker thread local threads = require 'threads' -- for multi-thre...
bsd-3-clause
davymai/CN-QulightUI
Interface/AddOns/QulightUI/Root/Libs/oUF/elements/tags.lua
1
14599
--[[ -- Credits: Vika, Cladhaire, Tekkub ]] local parent, ns = ... local oUF = ns.oUF local _PATTERN = '%[..-%]+' local _ENV = { Hex = function(r, g, b) if type(r) == "table" then if r.r then r, g, b = r.r, r.g, r.b else r, g, b = unpack(r) end end return string.format("|cff%02x%02x%02x", r*255, g*255, b*2...
gpl-2.0
tperalta82/OpenWRT-Builder
feeds/xwrt/webif-iw-lua/files/usr/lib/lua/lua-xwrt/addon/string.lua
26
6374
local hex2bin = { ["0"] = "0000", ["1"] = "0001", ["2"] = "0010", ["3"] = "0011", ["4"] = "0100", ["5"] = "0101", ["6"] = "0110", ["7"] = "0111", ["8"] = "1000", ["9"] = "1001", ["a"] = "1010", ["b"] = "1011", ["c"] = "1100", ["d"] = "1101", ["e"] = "1110", ["f"] = "1111" } local bin2hex = { ["0000"] ...
gpl-2.0
n0xus/darkstar
scripts/zones/Northern_San_dOria/npcs/Jeanvirgaud.lua
19
1841
----------------------------------- -- Area: Northern San d'Oria -- NPC: Jeanvirgaud -- Outpost Teleporter NPC -- @pos 45.559 -0.199 26.300 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest");...
gpl-3.0
n0xus/darkstar
scripts/zones/Misareaux_Coast/npcs/_0p0.lua
25
2664
----------------------------------- -- Area: Misareaux Coast -- NPC: Dilapidated Gate -- @pos 260 9 -435 25 ----------------------------------- package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zones/Misare...
gpl-3.0
davymai/CN-QulightUI
Interface/AddOns/DBM-ThroneFourWinds/localization.en.lua
1
1535
local L ------------------------ -- Conclave of Wind -- ------------------------ L = DBM:GetModLocalization(154) L:SetWarningLocalization({ warnSpecial = "Hurricane/Zephyr/Sleet Storm Active",--Special abilities hurricane, sleet storm, zephyr(which are on shared cast/CD) specWarnSpecial = "Special Abilities Ac...
gpl-2.0
feiying1460/witi-openwrt
package/ramips/ui/luci-mtk/src/libs/httpclient/luasrc/httpclient/receiver.lua
93
6049
--[[ LuCI - Lua Development Framework Copyright 2009 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- requ...
gpl-2.0
Python1320/wire
lua/wire/stools/speedometer.lua
9
1070
WireToolSetup.setCategory( "Detection" ) WireToolSetup.open( "speedometer", "Speedometer", "gmod_wire_speedometer", nil, "Speedometers" ) if CLIENT then language.Add( "tool.wire_speedometer.name", "Speedometer Tool (Wire)" ) language.Add( "tool.wire_speedometer.desc", "Spawns a speedometer for use with the wire syst...
apache-2.0
blaknite/lua-binary-heap
heap.lua
1
5519
local class = require 'vendor.middleclass' local Heap = class('Heap') local valid_types = { min = true, max = true, } -- Initializes the heap. -- Type can be one of 'min' or 'max'. Defaults to 'min'. -- Returns an instance of Heap. function Heap:initialize(type) self._nodes = {} type = type or 'min' self:s...
mit
n0xus/darkstar
scripts/commands/addallspells.lua
12
5159
--------------------------------------------------------------------------------------------------- -- func: addallspells -- desc: Adds all valid spells to the given target. If no target; then to the current player. --------------------------------------------------------------------------------------------------- ...
gpl-3.0
alishbully6528/bully
bot/seedbot.lua
1
8646
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 = '1.0' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then retu...
gpl-2.0
Azmaedus/GarrisonJukeBox
GarrisonJukeBox.lua
1
20434
--[[ Author: Azmaedus Created: 12/31/2014 License: GPLv2 Special Thanks: Onyxae, Purifico Change Log -------------------- 11/29/2014 - 0.1 Creation of addon 11/29/2014 - 0.1.1 Support for tier 1, 2, and 3 garrison (Outpost, Fort, and Garrison) 12/01/2014 - r8 1st commit to wowace.com (alpha) 12/02...
gpl-2.0
tanxunrong/mruby-toy
examples/login/client.lua
9
4300
package.cpath = "luaclib/?.so" local socket = require "clientsocket" local crypt = require "crypt" local bit32 = require "bit32" local fd = assert(socket.connect("127.0.0.1", 8001)) local function writeline(fd, text) socket.send(fd, text .. "\n") end local function unpack_line(text) local from = text:find("\n", 1...
mit
Arashbrsh/lifeiran
plugins/img_google.lua
660
3196
do local mime = require("mime") local google_config = load_from_file('data/google.lua') local cache = {} --[[ local function send_request(url) local t = {} local options = { url = url, sink = ltn12.sink.table(t), method = "GET" } local a, code, headers, status = http.request(options) return tabl...
gpl-2.0
erfan01311/supergroups
plugins/img_google.lua
660
3196
do local mime = require("mime") local google_config = load_from_file('data/google.lua') local cache = {} --[[ local function send_request(url) local t = {} local options = { url = url, sink = ltn12.sink.table(t), method = "GET" } local a, code, headers, status = http.request(options) return tabl...
gpl-2.0
megalithic/bits-and-bobs
hammerspoon/hammerspoon.symlink/redshift.lua
1
1268
-- simulate flux local utils = require 'utils' utils.log.df('[redshift] initializing') hs.location.start() local loc = hs.location.get() utils.log.df('[redshift] getting location', loc) hs.location.stop() local times = {sunrise = "07:00", sunset = "20:00"} if loc then local tzOffset = tonumber(string.sub(os.date(...
unlicense
n0xus/darkstar
scripts/zones/Al_Zahbi/npcs/Gidappa.lua
53
2317
----------------------------------- -- Area: Al Zahbi -- NPC: Gidappa -- Type: Clothcraft Normal/Adv. Image Support -- @pos 70.228 -7 -54.089 48 ----------------------------------- package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); require("s...
gpl-3.0
n0xus/darkstar
scripts/zones/Port_Bastok/npcs/Tete.lua
17
1295
----------------------------------- -- Area: Port Bastok -- NPC: Tete -- Continues Quest: The Wisdom Of Elders ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ------------------------------------ require("scripts/globals/settings"); require("scripts/globals/quest...
gpl-3.0
n0xus/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Animated_Claymore.lua
16
1489
----------------------------------- -- Area: Dynamis Xarcabard -- NPC: Animated Claymore ----------------------------------- require("scripts/globals/status"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- -- onMobEngaged ----------------------------------- func...
gpl-3.0
n0xus/darkstar
scripts/zones/Heavens_Tower/npcs/_6q2.lua
17
3449
----------------------------------- -- Area: Heaven's Tower -- NPC: Vestal Chamber (chamber of the Star Sibyl) -- @pos 0.1 -49 37 242 ----------------------------------- package.loaded["scripts/zones/Heavens_Tower/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require...
gpl-3.0
n0xus/darkstar
scripts/zones/Selbina/npcs/Abelard.lua
17
7136
----------------------------------- -- Area: Selbina -- NPC: Abelard -- An Explorer's Footsteps -- @pos -52 -11 -13 248 -- This quest was changed to require a minimum amount of fame to combat RMTs POS-Hacking around to -- quickly earn gil. However, as this is not a legitimate concern on private servers play...
gpl-3.0
n0xus/darkstar
scripts/zones/Windurst_Waters/npcs/Machitata.lua
36
1704
----------------------------------- -- Area: Windurst Waters -- NPC: Machitata -- Involved in Quest: Hat in Hand -- Working 100% -- @zone = 238 -- @pos = 163 0 -22 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------------------------------- requir...
gpl-3.0
n0xus/darkstar
scripts/zones/Riverne-Site_B01/npcs/HomePoint#1.lua
19
1189
----------------------------------- -- Area: Riverne-Site B01 -- NPC: HomePoint#1 -- @pos ----------------------------------- package.loaded["scripts/zones/Riverne-Site_B01/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Riverne-Site_B01/TextIDs"); require("scripts/globals/homepoint"); ...
gpl-3.0
ArmanIr/ProFbOt
plugins/webshot.lua
919
1473
local helpers = require "OAuth.helpers" local base = 'https://screenshotmachine.com/' local url = base .. 'processor.php' local function get_webshot_url(param) local response_body = {} local request_constructor = { url = url, method = "GET", sink = ltn12.sink.table(response_body), header...
gpl-2.0
n0xus/darkstar
scripts/globals/abilities/sentinel.lua
18
1091
----------------------------------- -- Ability: Sentinel -- Reduces physical damage taken and increases enmity. -- Obtained: Paladin Level 30 -- Recast Time: 5:00 -- Duration: 0:30 ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onAbilityCheck ----...
gpl-3.0
n0xus/darkstar
scripts/zones/Abyssea-Konschtat/npcs/Atma_Fabricant.lua
32
1104
----------------------------------- -- Zone: Abyssea - Konschtat -- NPC: Atma Fabricant -- ----------------------------------- package.loaded["scripts/zones/Abyssea-Konschtat/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/abyssea"); require...
gpl-3.0
realglobe-Inc/edo-auth
lib/coop_session_db.lua
1
2537
-- Copyright 2015 realglobe, Inc. -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to...
apache-2.0
chengyi818/openwrt
customer/packages/luci/applications/luci-firewall/luasrc/model/cbi/firewall/rule-details.lua
52
8016
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010-2012 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 htt...
gpl-2.0
feiying1460/witi-openwrt
package/ramips/ui/luci-mtk/src/applications/luci-firewall/luasrc/model/cbi/firewall/rule-details.lua
52
8016
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010-2012 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 htt...
gpl-2.0
hamed9898/maxbott
plugins/rae.lua
616
1312
do function getDulcinea( text ) -- Powered by https://github.com/javierhonduco/dulcinea local api = "http://dulcinea.herokuapp.com/api/?query=" local query_url = api..text local b, code = http.request(query_url) if code ~= 200 then return "Error: HTTP Connection" end dulcinea = json:decode(b) ...
gpl-2.0
mohammad8/iran-spem
plugins/rae.lua
616
1312
do function getDulcinea( text ) -- Powered by https://github.com/javierhonduco/dulcinea local api = "http://dulcinea.herokuapp.com/api/?query=" local query_url = api..text local b, code = http.request(query_url) if code ~= 200 then return "Error: HTTP Connection" end dulcinea = json:decode(b) ...
gpl-2.0
chengyi818/openwrt
customer/packages/luci/contrib/luadoc/lua/luadoc/taglet/standard/tags.lua
93
5221
------------------------------------------------------------------------------- -- Handlers for several tags -- @release $Id: tags.lua,v 1.8 2007/09/05 12:39:09 tomas Exp $ ------------------------------------------------------------------------------- local luadoc = require "luadoc" local util = require "luadoc.util"...
gpl-2.0
xennygrimmato/nmt
src/OpenNMT/onmt/scorers/dlratio.lua
8
1576
local function calculate_one_dlratio(pred, ref) local predlen = string.len(pred) local reflen = string.len(ref) local matrix = {} -- save time if we can if (predlen == 0) then return reflen elseif (pred == ref) then return 0 end -- create the predlen x reflen matrix for i = 0, predlen do ...
lgpl-3.0
n0xus/darkstar
scripts/globals/abilities/addendum_black.lua
28
1632
----------------------------------- -- Ability: Addendum: Black -- Allows access to additional Black Magic spells while using Dark Arts. -- Obtained: Scholar Level 30 -- Recast Time: Stratagem Charge -- Duration: 2 hours -- -- Level |Charges |Recharge Time per Charge -- ----- -------- --------------- -- 10...
gpl-3.0
chengyi818/openwrt
customer/packages/luci/modules/rpc/luasrc/controller/rpc.lua
70
4443
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 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 h...
gpl-2.0
n0xus/darkstar
scripts/globals/spells/aurorastorm.lua
31
1161
-------------------------------------- -- Spell: Aurorastorm -- Changes the weather around target party member to "auroras." -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ------------------------------------...
gpl-3.0
n0xus/darkstar
scripts/globals/effects/mnd_down.lua
18
1090
----------------------------------- -- -- EFFECT_MND_DOWN -- ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) if ((target:getStat(MOD_MND) - effec...
gpl-3.0
rekotc/game-engine-demo
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/stdlib/modules/string_ext.lua
3
8776
-- String module ("string", package.seeall) -- TODO: Pretty printing -- -- (Use in getopt) -- -- John Hughes's and Simon Peyton Jones's Pretty Printer Combinators -- -- Based on The Design of a Pretty-printing Library in Advanced -- Functional Programming, Johan Jeuring and Erik Meijer (eds), LNCS 925 -- h...
lgpl-3.0
n0xus/darkstar
scripts/globals/weaponskills/onslaught.lua
18
2401
----------------------------------- -- Onslaught -- Axe weapon skill -- Skill Level: N/A -- Lowers target's params.accuracy. Additional effect: temporarily increases Attack. -- Available only when equipped with the Relic Weapons Ogre Killer (Dynamis use only) or Guttler or Cleofun Axe (with Latent active). -- The...
gpl-3.0
n0xus/darkstar
scripts/zones/North_Gustaberg/TextIDs.lua
9
1306
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED_TWICE = 6551; -- You cannot obtain the item <item>. ITEM_CANNOT_BE_OBTAINED = 6552; -- You cannot obtain the item <item>. Come back after sorting your inventory. FULL_INVENTORY_AFTER_TRADE = 6556; -- You cannot obtain the #. Try tr...
gpl-3.0
chengyi818/openwrt
customer/packages/luci/applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo.lua
141
1038
--[[ smap_devinfo - SIP Device Information (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.i18n") re...
gpl-2.0
rekotc/game-engine-demo
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/lqt/old_bindings/qt_generator.lua
2
9050
#!/usr/bin/lua --[[ Copyright (c) 2007-2008 Mauro Iazzi 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, p...
lgpl-3.0
n0xus/darkstar
scripts/globals/items/crayfish.lua
18
1409
----------------------------------------- -- ID: 4472 -- Item: crayfish -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity -3 -- Vitality 1 -- defense 10 ----------------------------------------- require("scripts/globals/status"); -------------------------------------...
gpl-3.0
n0xus/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Saluhwa.lua
34
1475
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Saluhwa -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/zones/Aht_Urh...
gpl-3.0
adamlerer/nn
Threshold.lua
42
1158
local Threshold, parent = torch.class('nn.Threshold','nn.Module') function Threshold:__init(th,v,ip) parent.__init(self) self.threshold = th or 1e-6 self.val = v or 0 if (th and type(th) ~= 'number') or (v and type(v) ~= 'number') then error('nn.Threshold(threshold, value)') end -- default for ...
bsd-3-clause
fucker2929/fakk
bot/xynod32.lua
1
7977
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") require("./bot/permissions") local f = assert(io.popen('/usr/bin/git describe --tags', 'r')) VERSION = assert(f:read('*a')) f:...
gpl-2.0
erfan01311/supergroups
plugins/minecraft.lua
624
2605
local usage = { "!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565", "!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.", } local ltn12 = require "ltn12" local function mineSearch(ip, port, receiver) --25565 local responseText = "" l...
gpl-2.0
mohammad8/iran-spem
plugins/minecraft.lua
624
2605
local usage = { "!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565", "!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.", } local ltn12 = require "ltn12" local function mineSearch(ip, port, receiver) --25565 local responseText = "" l...
gpl-2.0
n0xus/darkstar
scripts/zones/Northern_San_dOria/npcs/Antonian.lua
17
2157
----------------------------------- -- Area: Northern San d'Oria -- NPC: Antonian -- Regional Marchant NPC -- Only sells when San d'Oria controlls Aragoneu. ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("script...
gpl-3.0
n0xus/darkstar
scripts/zones/Halvung/mobs/Wheel_Wamoura.lua
16
1585
----------------------------------- -- Area: Halvung -- MOB: Wheel Wamoura ----------------------------------- require("scripts/globals/status"); -- TODO: Damage resistances in streched and curled stances. Halting movement during stance change. ----------------------------------- -- OnMobSpawn Action -----...
gpl-3.0
n0xus/darkstar
scripts/zones/Abyssea-Grauberg/npcs/Dominion_Tactician.lua
61
4431
----------------------------------- -- Area: Abyssea - Grauberg -- NPC: Dominion Tactician -- ----------------------------------- package.loaded["scripts/zones/Abyssea-Grauberg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/abyssea"); require("script...
gpl-3.0
mahdidoraj/secretbot
plugins/boobs.lua
90
1731
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
gpl-2.0
sini370/telelife
plugins/boobs.lua
90
1731
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
gpl-2.0
n0xus/darkstar
scripts/zones/Beaucedine_Glacier_[S]/npcs/Disserond_RK.lua
38
1067
----------------------------------- -- Area: Beaucedine Glacier (S) -- NPC: Disserond, R.K. -- Type: Campaign Arbiter -- @zone: 136 -- @pos 76.178 -60.763 -48.775 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Beaucedine_Glacier_[S]...
gpl-3.0
n0xus/darkstar
scripts/zones/La_Theine_Plateau/npcs/Galaihaurat.lua
17
2430
----------------------------------- -- Area: La Theine Plateau -- NPC: Galaihaurat -- Involved in Mission: The Rescue Drill -- @pos -482 -7 222 102 ----------------------------------- package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil; ----------------------------------- require("scripts/globals...
gpl-3.0
Python1320/wire
lua/wire/stools/vthruster.lua
9
8209
WireToolSetup.setCategory( "Physics/Force" ) WireToolSetup.open( "vthruster", "Vector Thruster", "gmod_wire_vectorthruster", nil, "Vector Thrusters" ) if ( CLIENT ) then language.Add( "Tool.wire_vthruster.name", "Vector Thruster Tool (Wire)" ) language.Add( "Tool.wire_vthruster.desc", "Spawns a vector thruster for u...
apache-2.0
Nasias/GBRadio
GBRadio/Libs/AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua
22
7162
--[[----------------------------------------------------------------------------- EditBox Widget -------------------------------------------------------------------------------]] local Type, Version = "EditBox", 28 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidgetVersion(Type) or...
gpl-3.0
rekotc/game-engine-demo
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/bitop/bittest.lua
17
2353
-- Test cases for bit operations library. Public domain. local bit = require"bit" local vb = { 0, 1, -1, 2, -2, 0x12345678, 0x87654321, 0x33333333, 0x77777777, 0x55aa55aa, 0xaa55aa55, 0x7fffffff, 0x80000000, 0xffffffff } local function cksum(name, s, r) local z = 0 for i=1,#s do z = (z + string.byte(s, i)*...
lgpl-3.0
alexandre-mbm/SimTools
RandomWeather/Lua/vstruct/test/struct-test-gen.lua
4
28287
-- Config local CONF = { VERBOSE = false, -- Spew verbosely while testing? WIDTH = 32, -- Total width of numbers in bits. PRECISION = 17, -- Fractional precision in bits. MAX_DEPTH = 5, -- Limit on nesting depth of test formats. COMPOUND_LENGTH = 2, -- # formats in a sequence. SEED = fa...
mit
rekotc/game-engine-demo
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/lqt/generator/types.lua
2
5909
#!/usr/bin/lua --[[ Copyright (c) 2007-2009 Mauro Iazzi 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, ...
lgpl-3.0
Sigma-One/military-extended
military-extended_1.8.0/prototypes/items/weapons/minigun.lua
1
1350
data:extend ({ -- minigun { type = "gun", name = "minigun", icon = "__military-extended__/graphics/weapons/gatling.png", flags = {"goes-to-main-inventory"}, subgroup = "gun", order = "a[basic-clips]-a[minigun]", attack_parameters = { type = "projectile", ammo_category = "he...
mit
arman110110/beatbot
plugins/plugins.lua
22
4662
do to_id = "" -- 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 plu...
gpl-2.0
feiying1460/witi-openwrt
package/ramips/ui/luci-mtk/src/protocols/ipv6/luasrc/model/network/proto_4x6.lua
63
1522
--[[ LuCI - Network model - 6to4, 6in4 & 6rd protocol extensions Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> 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 ...
gpl-2.0
n0xus/darkstar
scripts/zones/Port_Windurst/npcs/Drozga.lua
51
1440
----------------------------------- -- Area: Port Windurst -- NPC: Drozga -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/zones/Port_Windurst/TextIDs"); ----...
gpl-3.0
Azmaedus/GarrisonJukeBox
globals/funcs.lua
1
10251
local GJB = LibStub("AceAddon-3.0"):GetAddon("GarrisonJukeBox") local L = GJB.L -- local L = LibStub("AceLocale-3.0"):GetLocale("GarrisonJukeBox") local AceGUI = LibStub("AceGUI-3.0") -- Lua APIs local tinsert, tconcat, tremove, tsort = table.insert, table.concat, table.remove, table.sort local fmt, tostring = string....
gpl-2.0
n0xus/darkstar
scripts/zones/Davoi/npcs/Treasure_Chest.lua
19
2551
----------------------------------- -- Area: Davoi -- NPC: Treasure Chest -- @zone 149 ----------------------------------- package.loaded["scripts/zones/Davoi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/treasure"); require("scripts/zones/Davoi/Tex...
gpl-3.0
n0xus/darkstar
scripts/globals/items/slice_of_buffalo_meat.lua
18
1424
----------------------------------------- -- ID: 5152 -- Item: slice_of_buffalo_meat -- Food Effect: 5Min, Galka only ----------------------------------------- -- Strength 4 -- Agility -5 -- Intelligence -7 ----------------------------------------- require("scripts/globals/status"); ----------------------...
gpl-3.0
xennygrimmato/nmt
src/OpenNMT/tools/utils/case.lua
1
2786
local unicode = require('tools.utils.unicode') local separators = require('tools.utils.separators') local case = {} case.CAPITAL = 'C' case.CAPITAL_FIRST = 'C1' case.LOWER = 'L' case.MIXED = 'M' case.NONE = 'N' case.UPPER = 'U' function case.combineCase(feat, thecase) if feat == case.NONE then if thecase == '...
lgpl-3.0
n0xus/darkstar
scripts/zones/Northern_San_dOria/npcs/Madaline.lua
36
1615
----------------------------------- -- Area: Northern San d'Oria -- NPC: Madaline -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quests...
gpl-3.0
E-Neo/graphx
spec/classes/digraph_spec.lua
1
8895
local gx = require "graphx" describe("DiGraph", function () it("Graph()", function () local G = gx.DiGraph({author="E-Neo"}) assert.are.equal("E-Neo", G.graph.author) assert.are.equal("", G.graph.name) assert.are.equal(G.adj, G.succ) ...
mit
aqasaeed/infernal
plugins/TIME.lua
120
2804
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
aqasaeed/satan
plugins/Time.lua
120
2804
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
rekotc/game-engine-demo
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/wxLua/samples/controls.wx.lua
2
47879
----------------------------------------------------------------------------- -- Name: controls.wx.lua -- Purpose: Controls wxLua sample -- Author: John Labenski -- Modified by: -- Created: 6/19/2007 -- RCS-ID: -- Copyright: (c) 2007 John Labenski -- Licence: wxWidgets licence ----------------...
lgpl-3.0
n0xus/darkstar
scripts/zones/Leafallia/npcs/HomePoint#1.lua
17
1169
----------------------------------- -- Area: Leafallia -- NPC: HomePoint#1 -- @pos ----------------------------------- package.loaded["scripts/zones/Leafallia/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Leafallia/TextIDs"); require("scripts/globals/homepoint"); --------------------...
gpl-3.0
Primordus/lua-quickcheck
lqc/generators/table.lua
2
6241
--- Module for generating tables of varying sizes and types -- @module lqc.generators.table -- @alias new_table local Gen = require 'lqc.generator' local random = require 'lqc.random' local bool = require 'lqc.generators.bool' local int = require 'lqc.generators.int' local float = require 'lqc.generators.float' local...
mit
n0xus/darkstar
scripts/zones/Port_Windurst/npcs/Odilia.lua
38
1029
----------------------------------- -- Area: Port Windurst -- NPC: Odilia -- Type: Standard NPC -- @zone: 240 -- @pos 78.801 -6 118.653 -- -- Auto-Script: Requires Verification (Verfied By Brawndo) ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; --------------------...
gpl-3.0
davymai/CN-QulightUI
Interface/AddOns/Skada/lib/AceGUI-3.0/widgets/AceGUIContainer-Window.lua
52
9726
local AceGUI = LibStub("AceGUI-3.0") -- Lua APIs local pairs, assert, type = pairs, assert, type -- WoW APIs local PlaySound = PlaySound local CreateFrame, UIParent = CreateFrame, UIParent -- Global vars/functions that we don't upvalue since they might get hooked, or upgraded -- List them here for Mikk's FindGlobals...
gpl-2.0
davymai/CN-QulightUI
Interface/AddOns/Zmini/GuildRosterButtons.lua
2
5718
local SetPushed local DB local _ local TEXT_BUTTONS = { ["playerStatus"] = { name = "Players", x = -205, y = -26 }, ["guildStatus"] = { name = "Guild", x = -145, y = -26 }, ["tradeskill"] = { name = "Profs", x = -85, y = -26 }, ["achievement"] = { name = "Achieve", x = -25, y = -26 }, ...
gpl-2.0
davymai/CN-QulightUI
Interface/AddOns/DBM-Party-Cataclysm/LostCityOfTheTolvir/Lockmaw.lua
1
1998
local mod = DBM:NewMod(118, "DBM-Party-Cataclysm", 5, 69) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 79 $"):sub(12, -3)) mod:SetCreatureID(43614) mod:SetZone() mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_AURA_APPLIED", "SPELL_AURA_REFRESH", "SPELL_AURA_REMOVED", "SPELL_...
gpl-2.0
uelei/dotfiles
lvim/.config/lvim/lua/uelei/org.lua
1
2844
-- org.lua local status_ok, orgmode = pcall(require, "orgmode") if not status_ok then return end -- Load custom tree-sitter grammar for org filetype orgmode.setup_ts_grammar() -- Tree-sitter configuration require("nvim-treesitter.configs").setup({ -- If TS highlights are not enabled at all, or disabled via `disable...
mit
padrinoo1/telehack
bot/utils.lua
646
23489
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