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/Kuftal_Tunnel/npcs/qm2.lua
17
1031
----------------------------------- -- Area: Kuftal Tunnel -- NPC: ??? (qm2) -- Note: Used to spawn Cancer & Bastok mission 8-2 -- @pos -25.238 -12.785 -148.393 174 ----------------------------------- package.loaded["scripts/zones/Kuftal_Tunnel/TextIDs"] = nil; ----------------------------------- require("scripts/zon...
gpl-3.0
aqasaeed/satan
plugins/stats.lua
7
4006
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
feiying1460/witi-openwrt
package/ramips/ui/luci-mtk/src/applications/luci-transmission/luasrc/model/cbi/transmission.lua
75
13259
--[[ LuCI - Lua Configuration Interface - Transmission support Copyright 2012 Gabor Varga <vargagab@gmail.com> 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/LICEN...
gpl-2.0
xennygrimmato/nmt
src/OpenNMT/onmt/modules/Encoder.lua
5
9764
--[[ Encoder is a unidirectional Sequencer used for the source language. h_1 => h_2 => h_3 => ... => h_n | | | | . . . . | | | | h_1 => h_2 => h_3 => ... => h_n | | | | | | | |...
lgpl-3.0
n0xus/darkstar
scripts/zones/Balgas_Dais/bcnms/rank_2_mission.lua
17
1788
----------------------------------- -- Area: Horlais Peak -- Name: Mission Rank 2 -- @pos 299 -123 345 146 ----------------------------------- package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil; ------------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/Balgas_Dais/TextIDs...
gpl-3.0
LuffyPan/skynet
examples/simpleweb.lua
76
2091
local skynet = require "skynet" local socket = require "socket" local httpd = require "http.httpd" local sockethelper = require "http.sockethelper" local urllib = require "http.url" local table = table local string = string local mode = ... if mode == "agent" then local function response(id, ...) local ok, err = ht...
mit
uelei/dotfiles
lvim/.config/lvim/ftplugin/rust.lua
1
1162
local status_ok, which_key = pcall(require, "which-key") if not status_ok then return end local opts = { mode = "n", -- NORMAL mode prefix = "<leader>", buffer = nil, -- Global mappings. Specify a buffer number for buffer local mappings silent = true, -- use `silent` when creating keymaps noremap = true, -...
mit
davymai/CN-QulightUI
Interface/AddOns/DBM-VoA/localization.ru.lua
1
2606
if GetLocale() ~= "ruRU" then return end local L ---------------------------------- -- Archavon the Stone Watcher -- ---------------------------------- L = DBM:GetModLocalization("Archavon") L:SetGeneralLocalization({ name = "Аркавон Страж Камня" }) L:SetWarningLocalization({ WarningGrab = "Аркавон хватает |3-...
gpl-2.0
chengyi818/openwrt
customer/packages/luci/contrib/luasrcdiet/lua/llex.lua
122
12449
--[[-------------------------------------------------------------------- llex.lua: Lua 5.1 lexical analyzer in Lua This file is part of LuaSrcDiet, based on Yueliang material. Copyright (c) 2008 Kein-Hong Man <khman@users.sf.net> The COPYRIGHT file describes the conditions under which this software may be d...
gpl-2.0
n0xus/darkstar
scripts/zones/Quicksand_Caves/npcs/_5s0.lua
17
1271
----------------------------------- -- Area: Quicksand Caves -- NPC: Ornate Door -- Door blocked by Weight system -- @pos -21 0 -60 208 ----------------------------------- package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Quicksand_Caves...
gpl-3.0
n0xus/darkstar
scripts/globals/spells/cursna.lua
18
1804
----------------------------------------- -- Spell: Cursna -- Removes curse and bane from target. ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(cas...
gpl-3.0
n0xus/darkstar
scripts/zones/Qufim_Island/Zone.lua
17
2558
----------------------------------- -- -- Zone: Qufim_Island (126) -- ----------------------------------- package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/titles"); require("scripts/globals/quests"); ...
gpl-3.0
n0xus/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Zhamwaa.lua
34
1032
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Zhamwaa -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); ----------...
gpl-3.0
n0xus/darkstar
scripts/zones/Lower_Jeuno/npcs/Sniggnix.lua
19
2175
----------------------------------- -- Area: Lower Jeuno -- NPC: Sniggnix -- Type: Standard NPC -- @zone: 245 -- @pos -45.832 4.498 -135.029 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; -----------------...
gpl-3.0
qllpa/TAEFWN
plugins/lock_user.lua
5
1255
--[[ _____ _ _ _ _____ Dev @lIMyIl |_ _|__| |__ / \ | | _| ____| Dev @li_XxX_il | |/ __| '_ \ / _ \ | |/ / _| Dev @h_k_a | |\__ \ | | |/ ___ \| <| |___ Dev @Aram_omar22 |_||___/_| |_/_/ \_\_|\_\_____| Dev @IXX_I_XXI CH > @lTSHAKEl_CH --]] l...
gpl-2.0
davymai/CN-QulightUI
Interface/AddOns/Broker_Garrison/Libs/AceGUI-3.0-SharedMediaWidgets/Libs/AceGUI-3.0/widgets/AceGUIContainer-SimpleGroup.lua
91
1890
--[[----------------------------------------------------------------------------- SimpleGroup Container Simple container widget that just groups widgets. -------------------------------------------------------------------------------]] local Type, Version = "SimpleGroup", 20 local AceGUI = LibStub and LibStub("AceGUI-3...
gpl-2.0
Azmaedus/GarrisonJukeBox
libs/AceGUI-3.0/widgets/AceGUIContainer-SimpleGroup.lua
91
1890
--[[----------------------------------------------------------------------------- SimpleGroup Container Simple container widget that just groups widgets. -------------------------------------------------------------------------------]] local Type, Version = "SimpleGroup", 20 local AceGUI = LibStub and LibStub("AceGUI-3...
gpl-2.0
xubigshu/skynet
lualib/skynet/inject.lua
12
1354
local function getupvaluetable(u, func, unique) i = 1 while true do local name, value = debug.getupvalue(func, i) if name == nil then return end local t = type(value) if t == "table" then u[name] = value elseif t == "function" then if not unique[value] then unique[value] = true getupvalue...
mit
feiying1460/witi-openwrt
package/ramips/ui/luci-mtk/src/libs/nixio/docsrc/nixio.UnifiedIO.lua
157
5891
--- Unified high-level I/O utility API for Files, Sockets and TLS-Sockets. -- These functions are added to the object function tables by doing <strong> -- require "nixio.util"</strong>, can be used on all nixio IO Descriptors and -- are based on the shared low-level read() and write() functions. -- @cstyle instance mo...
gpl-2.0
Python1320/wire
lua/wire/client/sound_browser.lua
10
27100
// A sound browser for the sound emitter and the expression 2 editor. // Made by Grocel. local max_char_count = 200 //File length limit local max_char_chat_count = 110 // chat has a ~128 char limit, varies depending on char wide. local Disabled_Gray = Color(140, 140, 140, 255) local SoundBrowserPanel = nil local Tab...
apache-2.0
n0xus/darkstar
scripts/zones/RoMaeve/npcs/qm2.lua
17
1920
----------------------------------- -- Area: Ro'Maeve -- NPC: qm2 (???) -- Involved in Mission: Bastok 7-1 -- @pos 102 -4 -114 122 and <many pos> ----------------------------------- package.loaded["scripts/zones/RoMaeve/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems");...
gpl-3.0
n0xus/darkstar
scripts/zones/PsoXja/npcs/_099.lua
17
1675
----------------------------------- -- Area: Pso'Xja -- NPC: _099 (Stone Gate) -- Notes: Spawns Gargoyle when triggered -- @pos -330.000 14.074 -261.600 9 ----------------------------------- package.loaded["scripts/zones/PsoXja/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Pso...
gpl-3.0
n0xus/darkstar
scripts/globals/magicburst.lua
18
3419
require("scripts/globals/status") SC_NONE = 0 -- Lv0 None SC_TRANSFIXION = 1 -- Lv1 Light SC_COMPRESSION = 2 -- Lv1 Dark SC_LIQUEFACTION = 3 -- Lv1 Fire SC_SCISSION = 4 -- Lv1 Earth SC_REVERBERATION = 5 -- Lv1 Water SC_DETONATION = 6 -- Lv1 Wind SC_INDURATION = 7 -- Lv1 Ice S...
gpl-3.0
davymai/CN-QulightUI
Interface/AddOns/DBM-BWL/localization.kr.lua
1
3136
if GetLocale() ~= "koKR" then return end local L ----------------- -- Razorgore -- ----------------- L = DBM:GetModLocalization("Razorgore") L:SetGeneralLocalization{ name = "폭군 서슬송곳니" } L:SetTimerLocalization{ TimerAddsSpawn = "추가 병력 등장" } L:SetOptionLocalization{ TimerAddsSpawn = "첫번째 추가 병력 등장 바 보기" } L:SetMi...
gpl-2.0
n0xus/darkstar
scripts/zones/Metalworks/npcs/Vicious_Eye.lua
19
1163
----------------------------------- -- Area: Metalworks -- NPC: Vicious Eye -- Type: Guild Merchant (Blacksmithing Guild) -- @pos -106.132 0.999 -28.757 237 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settin...
gpl-3.0
n0xus/darkstar
scripts/zones/Temenos/mobs/Carbuncle_Prime.lua
13
2169
----------------------------------- -- Area: Temenos E T -- NPC: mystic Avatar ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); ------------------------...
gpl-3.0
omidtarh/wezardbot
plugins/isX.lua
605
2031
local https = require "ssl.https" local ltn12 = require "ltn12" local function request(imageUrl) -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local mashape = load_from_file('data/mashape.lua', { api_key = '' }) local api_key = mashape.api_key if ...
gpl-2.0
mohammad8/iran-spem
plugins/isX.lua
605
2031
local https = require "ssl.https" local ltn12 = require "ltn12" local function request(imageUrl) -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local mashape = load_from_file('data/mashape.lua', { api_key = '' }) local api_key = mashape.api_key if ...
gpl-2.0
QVaucher/Gwynt-Lua
lib/hump/vector-light.lua
2
3758
--[[ Copyright (c) 2012-2013 Matthias Richter Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis...
mit
misterdustinface/gamelib-common-polyglot
src/param-adjuster/layout-partials/txt-field.lua
1
4504
local datastore = require 'datastore' local constants = require 'constants' local widgets = require 'widgets' local timers = require 'animation-timers' local style = require 'style' local fonts = require 'fonts' local rects = require 'rects' local new_action = require 'touch-action' local interpolate_colors = require '...
gpl-2.0
n0xus/darkstar
scripts/globals/npc_util.lua
18
4415
package.loaded["scripts/globals/settings"] = nil; -- Provides helper methods for npcs npcUtil = {}; -- give gil to player with message and multiplied gil -- npcUtil.giveGil(player, 200) -- npcUtil.giveGil(player, 1000, {rate=false}) function npcUtil.giveGil(player, amount, options) local total = amount; -- don't...
gpl-3.0
chengyi818/openwrt
customer/packages/luci/modules/base/luasrc/dispatcher.lua
72
23586
--[[ LuCI - Dispatcher Description: The request dispatcher and module dispatcher generators FileId: $Id$ License: Copyright 2008 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/Bastok_Mines/npcs/Virnage.lua
17
2326
----------------------------------- -- Area: Bastok Mines -- NPC: Virnage -- Starts Quest: Altana's Sorrow -- @zone 234 -- @pos 0 0 51 ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); req...
gpl-3.0
davymai/CN-QulightUI
Interface/AddOns/QulightUI/Addons/Reminder.lua
1
11593
if not Qulight["misk"].Reminder == true then return end ReminderBuffs = { DEATHKNIGHT = { [1] = { -- Horn of Winter group ["spells"] = { 57330, -- Horn of Winter }, ["negate_spells"] = { 6673, -- Battle Shout 19506, -- Trueshot Aura }, ["combat"] = true, }, [2] = { -- Bl...
gpl-2.0
davymai/CN-QulightUI
Interface/AddOns/FriendListColors/libs/AceGUI-3.0/widgets/AceGUIWidget-Icon.lua
42
3995
--[[----------------------------------------------------------------------------- Icon Widget -------------------------------------------------------------------------------]] local Type, Version = "Icon", 21 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >=...
gpl-2.0
MOZGIII/mpv
TOOLS/lua/drc-control.lua
21
2806
-- This script enables live control of the dynamic range compression -- (drc) audio filter while the video is playing back. This can be -- useful to avoid having to stop and restart mpv to adjust filter -- parameters. See the entry for "drc" under the "AUDIO FILTERS" -- section of the man page for a complete descriptio...
gpl-2.0
n0xus/darkstar
scripts/zones/Port_San_dOria/npcs/Perdiouvilet.lua
19
1651
----------------------------------- -- Area: Port San d'Oria -- NPC: Perdiouvilet -- Involved in Quest: Lure of the Wildcat (San d'Oria) -- @pos -59 -5 -29 232 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/glo...
gpl-3.0
davymai/CN-QulightUI
Interface/AddOns/Broker_Garrison/Locales/frFR.lua
1
11165
local L = LibStub:GetLibrary("AceLocale-3.0"):NewLocale("Broker_Garrison", "frFR" ) if not L then return end L["About"] = "À propos" -- Needs review L["Add item to custom LDB Text"] = "Ajout d'un élément au texte LDB personnalisé" L["Adds OK/Dismiss Button to Toasts (Requires 'Repeat on Load')"] = "Ajoute un bouton O...
gpl-2.0
davymai/CN-QulightUI
Interface/AddOns/DBM-Brawlers/Rank4.lua
1
1453
local mod = DBM:NewMod("BrawlRank4", "DBM-Brawlers") local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 11898 $"):sub(12, -3)) mod:SetModelID(28115) mod:SetZone() mod:SetUsedIcons(8) mod:RegisterEvents( "SPELL_CAST_SUCCESS 141013", "SPELL_AURA_APPLIED 133129", "PLAYER_TARGET_CHANGED" ) local warnSp...
gpl-2.0
marziehf/DataAugmentationNMT
src/train.lua
1
8713
require 'torch' require 'nn' require 'optim' require 'mon_LanguageModel' require 'util.DataLoader' local utils = require 'util.utils' local unpack = unpack or table.unpack local cmd = torch.CmdLine() -- Dataset options cmd:option('-input_h5', 'data/tiny-shakespeare.h5') cmd:option('-input_json', 'data/tiny-shakespe...
mit
n0xus/darkstar
scripts/zones/Windurst_Waters/npcs/Lumomo.lua
19
2836
----------------------------------- -- Area: Windurst Waters -- NPC: Lumomo -- Type: Standard NPC -- @zone: 238 -- @pos -55.770 -5.499 18.914 -- 0x027e 0x0332 0x0334 0x0336 0x0337 -- Auto-Script: Requires Verification (Verfied By Brawndo) ----------------------------------- package.loaded["scripts/zones/Wind...
gpl-3.0
ArmanIr/ProFbOt
plugins/xkcd.lua
628
1374
do function get_last_id() local res,code = https.request("http://xkcd.com/info.0.json") if code ~= 200 then return "HTTP ERROR" end local data = json:decode(res) return data.num end function get_xkcd(id) local res,code = http.request("http://xkcd.com/"..id.."/info.0.json") if code ~= 200 then return "HT...
gpl-2.0
n0xus/darkstar
scripts/zones/Upper_Jeuno/npcs/Ajithaam.lua
17
4294
----------------------------------- -- Area: Upper Jeuno -- NPC: Ajithaam -- @pos -82 0.1 160 244 ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; package.loaded["scripts/globals/settings"] = nil; ----------------------------------- require("scripts/globals/setti...
gpl-3.0
davymai/CN-QulightUI
Interface/AddOns/DBM-Highmaul/localization.de.lua
1
2511
if GetLocale() ~= "deDE" then return end local L --------------- -- Kargath Bladefist -- --------------- L= DBM:GetModLocalization(1128) --------------------------- -- The Butcher -- --------------------------- L= DBM:GetModLocalization(971) --------------------------- -- Tectus, the Living Mountain -- ------------...
gpl-2.0
n0xus/darkstar
scripts/zones/Windurst_Woods/npcs/Kopuro-Popuro.lua
19
6253
----------------------------------- -- Area: Windurst Woods -- NPC: Kopuro-Popuro -- Type: Standard NPC -- @zone: 241 -- @pos -0.037 -4.749 -22.589 -- Starts Quests: The All-New C-2000, Legendary Plan B, The All-New C-3000 -- Involved in quests: Lost Chick ----------------------------------- require("scripts/glob...
gpl-3.0
sam1i/Turres-Monacorum
love2d/libraries/button.lua
1
4302
--Button class -- This Class is a Button with all its Attributes -- @param x -- @param y -- @param width -- @param height -- @param name The Name of the button -- @param path for an Image function love.gui.newButton(x, y, width, height, text) local o = {} --Attribute o.type = "button" o.x = x or 0 o.y = ...
mit
Python1320/wire
lua/entities/gmod_wire_expression2/core/datasignal.lua
5
12371
--[[ dataSignal optimized Made by Divran dataSignals are a combination of signals and gvars. Instead of using one to trigger the E2, and the other to send the data, dataSignals can both trigger the E2 AND send the data at the same time. Have fun! ]] local currentsignal local runagain local groups = {} local queue =...
apache-2.0
n0xus/darkstar
scripts/globals/items/dried_date.lua
35
1354
----------------------------------------- -- ID: 5567 -- Item: dried_date -- Food Effect: 30Min, All Races ----------------------------------------- -- Health 10 -- Magic 20 -- Agility -1 -- Intelligence 3 ----------------------------------------- require("scripts/globals/status"); ----------------------...
gpl-3.0
n0xus/darkstar
scripts/zones/Apollyon/mobs/Apollyon_Scavenger.lua
16
1411
----------------------------------- -- Area: Apollyon NW -- NPC: Kaiser Behemoth ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Apollyon/TextIDs"); ----------------------------------- -- onMobSpawn Act...
gpl-3.0
gpedro/server
data/scripts/otstd/classes/condition.lua
3
7884
otstd.conditions = {} function Condition:type() return self.__name end function Creature:addCondition(cond) -- Create the actual condition local obj = createCondition() -- Use coroutine to guarantee no leaks due to script errors local co = coroutine.create(otstd.conditions.makeConditionObject) state, obj = coro...
gpl-2.0
DEVOmarReal/Omar-Real
plugins/ingroup.lua
156
60323
do -- Check Member local function check_member_autorealm(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.peer_id if member_id ~= our_id then -- Group configuration data[...
gpl-2.0
privatesource/Vira_max
plugins/filemanager.lua
4
6063
-- Base folder local BASE_FOLDER = "/root/" local folder = "" local function download_file(extra, success, result) vardump(result) local file = "" local filename = "" if result.media.type == "photo" then file = result.id filename = "somepic.jpg" elseif result.media.type == "document...
gpl-2.0
ddysher/turbo
turbo/structs/buffer.lua
12
8668
-- Turbo.lua Low-level buffer implementation -- -- Copyright 2013 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 -- -- Un...
apache-2.0
n0xus/darkstar
scripts/zones/Windurst_Waters/npcs/Dagoza-Beruza.lua
38
1040
----------------------------------- -- Area: Windurst Waters -- NPC: Dagoza-Beruza -- Type: Mission NPC -- @zone: 238 -- @pos -54.523 -6 229.271 -- -- Auto-Script: Requires Verification (Verfied By Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ---------...
gpl-3.0
n0xus/darkstar
scripts/zones/Southern_San_dOria_[S]/npcs/CeraneIVirgaut1.lua
36
1082
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Cerane I Virgaut -- @zone 80 -- @pos -268 -4 100 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil; require("scripts/zones/Southern_San_dOria_[S]/TextIDs"); ---------------------...
gpl-3.0
n0xus/darkstar
scripts/zones/Davoi/npcs/Disused_Well.lua
38
1303
----------------------------------- -- Area: Davoi -- NPC: Disused Well -- Involved in Quest: A Knight's Test -- @pos -221 2 -293 149 ----------------------------------- package.loaded["scripts/zones/Davoi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/zones...
gpl-3.0
n0xus/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Bujahwa.lua
34
1034
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Bujahwa -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); --------...
gpl-3.0
lduboeuf/lit
libs/autoconfig.lua
2
2559
--[[ Copyright 2014-2015 The Luvit Authors. All Rights Reserved. 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 o...
apache-2.0
n0xus/darkstar
scripts/zones/Cloister_of_Frost/npcs/Ice_Protocrystal.lua
17
1856
----------------------------------- -- Area: Cloister of Frost -- NPC: Ice Protocrystal -- Involved in Quests: Trial by Ice, Trial Size Trial by Ice -- @pos 558 0 596 203 ----------------------------------- package.loaded["scripts/zones/Cloister_of_Frost/TextIDs"] = nil; ------------------------------------- ...
gpl-3.0
DEVOmarReal/Omar-Real
plugins/anti_spam.lua
2
5409
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id == our_id then return msg end -- Save...
gpl-2.0
holmesycl/springside4
modules/redis/src/main/resources/redis/dispatch.lua
71
1534
-- KEYS: [1]job:scheduled, [2]job:ready, [3]job:dispatch.counter, [4]job:lock, [5]job:retry.counter -- ARGV: [1]currentTime, [2]reliable, [3]timeoutSeconds local batchsize = 64 local function batchAddReadyJob(jobs, count) local i = 1 while i<=count do local j = 1 local batchJobs={} while i<=count and j<=batch...
apache-2.0
xennygrimmato/nmt
src/OpenNMT/test/onmt/BridgeTest.lua
8
1937
require('onmt.init') local tester = ... local bridgeTest = torch.TestSuite() function bridgeTest.inconsistentNumStates() tester:assertError(function () onmt.Bridge('copy', 500, 2, 500, 3) end) end function bridgeTest.inconsistentHiddenSize() tester:assertError(function () onmt.Bridge('copy', 500, 2, 400, 2) end...
lgpl-3.0
n0xus/darkstar
scripts/zones/Bastok_Markets/npcs/Zhikkom.lua
36
1504
----------------------------------- -- Area: Bastok Markets -- NPC: Zhikkom -- Standard Merchant NPC -- -- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; require(...
gpl-3.0
n0xus/darkstar
scripts/zones/Norg/npcs/_700.lua
17
2923
----------------------------------- -- Area: Norg -- NPC: Oaken door (Gilgamesh's room) -- @pos 97 -7 -12 252 ----------------------------------- require("scripts/globals/missions"); require("scripts/globals/settings") ----------------------------------- -- onTrade Action ---------------------------------...
gpl-3.0
feiying1460/witi-openwrt
package/ramips/ui/luci-mtk/src/modules/base/luasrc/model/cbi/admin_network/proto_static.lua
60
2663
--[[ 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...
gpl-2.0
xennygrimmato/nmt
src/OpenNMT/onmt/utils/Tensor.lua
8
4118
--[[ Recursively call `func()` on all tensors within `out`. ]] local function recursiveApply(out, func, ...) local res if torch.type(out) == 'table' then res = {} for k, v in pairs(out) do res[k] = recursiveApply(v, func, ...) end return res end if torch.isTensor(out) then res = func(o...
lgpl-3.0
n0xus/darkstar
scripts/zones/Ship_bound_for_Selbina/npcs/Rajmonda.lua
17
1228
----------------------------------- -- Area: Ship bound for Selbina -- NPC: Rajmonda -- Type: Guild Merchant: Fishing Guild -- @pos 1.841 -2.101 -9.000 220 ----------------------------------- package.loaded["scripts/zones/Ship_bound_for_Selbina/TextIDs"] = nil; ----------------------------------- require("sc...
gpl-3.0
tanxunrong/mruby-toy
lualib/socket.lua
1
7144
local driver = require "socketdriver" local skynet = require "skynet" local assert = assert local socket = {} -- api local buffer_pool = {} -- store all message buffer object local socket_pool = setmetatable( -- store all socket object {}, { __gc = function(p) for id,v in pairs(p) do driver.close(id) -- don'...
mit
n0xus/darkstar
scripts/zones/Castle_Oztroja/npcs/qm1.lua
19
1470
----------------------------------- -- Area: Castle Oztroja -- NPC: qm1 (???) -- Involved in Quest: True Strength -- @pos -100 -71 -132 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require...
gpl-3.0
n0xus/darkstar
scripts/zones/Bibiki_Bay/npcs/qm1.lua
17
1388
----------------------------------- -- Area: Bibiki Bay -- NPC: ??? (qm1) -- Notes: Used to spawn Shen -- @pos -115.108 0.300 -724.664 4 ----------------------------------- package.loaded["scripts/zones/Bibiki_Bay/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bibiki_Bay/TextID...
gpl-3.0
n0xus/darkstar
scripts/zones/Jugner_Forest_[S]/mobs/Lobison.lua
19
1537
----------------------------------- -- Area: Jugner Forest (S) -- NPC: Lobison ----------------------------------- ----------------------------------- -- onMobSpawn Action ----------------------------------- function onMobSpawn(mob) mob:setLocalVar("transformTime", os.time()) end; ----------------------------------...
gpl-3.0
n0xus/darkstar
scripts/zones/Ranguemont_Pass/npcs/Grounds_Tome.lua
34
1142
----------------------------------- -- Area: Ranguemont Pass -- NPC: Grounds Tome ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/groundsofvalor"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade...
gpl-3.0
n0xus/darkstar
scripts/globals/mobskills/Feather_Maelstrom.lua
30
1043
--------------------------------------------- -- Feather Maelstrom -- Sends a storm of feathers to a single target. -- Additional effect: Bio & Amnesia --------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); ...
gpl-3.0
n0xus/darkstar
scripts/zones/Qufim_Island/TextIDs.lua
9
1292
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6384; -- Obtained: <item>. GIL_OBTAINED = 6385; -- Obtained <number> gil. KEYITEM_OBTAINED = 6387; -- Obtained...
gpl-3.0
feiying1460/witi-openwrt
package/ramips/ui/luci-mtk/src/modules/admin-full/luasrc/model/cbi/admin_network/network.lua
66
2693
--[[ 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
mstorchak/packages
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_ubus_stations.lua
25
3315
local ubus = require "ubus" local bit = require "bit" local function get_wifi_interfaces() -- based on hostapd_stations.lua local u = ubus.connect() local status = u:call("network.wireless", "status", {}) local interfaces = {} for _, dev_table in pairs(status) do for _, intf in ipairs(dev_table['interface...
gpl-2.0
n0xus/darkstar
scripts/zones/Selbina/npcs/Gabwaleid.lua
17
1508
----------------------------------- -- Area: Selbina -- NPC: Gabwaleid -- Involved in Quest: Riding on the Clouds -- @pos -17 -7 11 248 ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Selbina/TextIDs"); requ...
gpl-3.0
ArmanIr/loloamad
plugins/yoda.lua
642
1199
local ltn12 = require "ltn12" local https = require "ssl.https" -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local mashape = load_from_file('data/mashape.lua', { api_key = '' }) local function request(text) local api = "https://yoda.p.mashape.com/yoda?" text = ...
gpl-2.0
alirezanile/Ldcxvx
plugins/yoda.lua
642
1199
local ltn12 = require "ltn12" local https = require "ssl.https" -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local mashape = load_from_file('data/mashape.lua', { api_key = '' }) local function request(text) local api = "https://yoda.p.mashape.com/yoda?" text = ...
gpl-2.0
ArmanIr/ProFbOt
plugins/yoda.lua
642
1199
local ltn12 = require "ltn12" local https = require "ssl.https" -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local mashape = load_from_file('data/mashape.lua', { api_key = '' }) local function request(text) local api = "https://yoda.p.mashape.com/yoda?" text = ...
gpl-2.0
mohammad8/iran-spem
plugins/yoda.lua
642
1199
local ltn12 = require "ltn12" local https = require "ssl.https" -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local mashape = load_from_file('data/mashape.lua', { api_key = '' }) local function request(text) local api = "https://yoda.p.mashape.com/yoda?" text = ...
gpl-2.0
n0xus/darkstar
scripts/globals/effects/bust.lua
37
1640
----------------------------------- -- -- -- ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) if (effect:getSubType() == MOD_DMG) then target:addM...
gpl-3.0
n0xus/darkstar
scripts/globals/items/sakura_biscuit.lua
36
1161
----------------------------------------- -- ID: 6010 -- Item: Sakura Biscuit -- Food Effect: 30Min, All Races ----------------------------------------- -- Intelligence 3 -- Charisma 2 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck...
gpl-3.0
joewan/protoc-gen-lua
protobuf/decoder.lua
15
11556
-- -------------------------------------------------------------------------------- -- FILE: decoder.lua -- DESCRIPTION: protoc-gen-lua -- Google's Protocol Buffers project, ported to lua. -- https://code.google.com/p/protoc-gen-lua/ -- -- Copyright (c) 2010 , 林卓毅 (Zhuoyi Lin) netsnail@gmail.com -- ...
bsd-3-clause
chengyi818/openwrt
customer/packages/luci/modules/rpc/luasrc/jsonrpc.lua
81
2192
--[[ 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
kbehafarin/newfies-dialer
lua/libs/database.lua
3
14469
-- -- Newfies-Dialer License -- http://www.newfies-dialer.org -- -- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this file, -- You can obtain one at http://mozilla.org/MPL/2.0/. -- -- Copyright (C) 2011-2013 Star2Billing S.L. -- --...
mpl-2.0
n0xus/darkstar
scripts/zones/Bastok_Mines/npcs/Goraow.lua
34
2470
----------------------------------- -- Area: Bastok Mines -- NPC: Goraow -- Starts Quests: Vengeful Wrath -- @pos 38 .1 14 234 ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("script...
gpl-3.0
n0xus/darkstar
scripts/globals/effects/aftermath_lv1.lua
18
1105
----------------------------------- -- -- EFFECT_AFTERMATH_LV1 -- ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) local power = effect:getPower(); if...
gpl-3.0
xennygrimmato/nmt
src/OpenNMT/tools/embeddings.lua
7
12126
require('torch') require('onmt.init') local tds = require('tds') local zlib = require ('zlib') local path = require('pl.path') local cmd = onmt.utils.ExtendedCmdLine.new('embeddings.lua') cmd:setCmdLineOptions( { { '-dict_file', '', [[Path to outputted dict file from `preprocess.lua`.]], { ...
lgpl-3.0
n0xus/darkstar
scripts/zones/Northern_San_dOria/npcs/Nouveil.lua
17
2121
----------------------------------- -- Area: Northern San d'Oria -- NPC: Nouveil -- Type: General -- @zone: 231 -- @pos 123 0 106 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings");...
gpl-3.0
Python1320/wire
lua/wire/stools/radio.lua
9
1280
WireToolSetup.setCategory( "Input, Output/Data Transfer" ) WireToolSetup.open( "radio", "Radio", "gmod_wire_radio", nil, "Radios" ) if ( CLIENT ) then language.Add( "Tool.wire_radio.name", "Radio Tool (Wire)" ) language.Add( "Tool.wire_radio.desc", "Spawns a radio for use with the wire system." ) language.Add( "Too...
apache-2.0
n0xus/darkstar
scripts/zones/Tavnazian_Safehold/npcs/Gennoue.lua
29
1057
----------------------------------- -- Area: Tavnazian Safehold -- NPC: Gennoue -- Type: Weather Reporter ----------------------------------- package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Tavnazian_Safe...
gpl-3.0
n0xus/darkstar
scripts/zones/Port_Bastok/npcs/Dehlner.lua
37
1228
----------------------------------- -- Area: Port Bastok -- NPC: Dehlner -- Standard Info NPC -- Invlolved in Quest: A Foreman's Best Friend ----------------------------------- require("scripts/globals/quests"); package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; require("scripts/zones/Port_Bastok/Text...
gpl-3.0
n0xus/darkstar
scripts/zones/Western_Altepa_Desert/TextIDs.lua
9
1562
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory. FULL_INVENTORY_AFTER_TRADE = 6383; -- You cannot obtain the <item>. Try trading again after sorting your inventory. ITEM_OBTAINED = 6384; ...
gpl-3.0
n0xus/darkstar
scripts/zones/Horlais_Peak/Zone.lua
32
1645
----------------------------------- -- -- Zone: Horlais_Peak (139) -- ----------------------------------- package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Horlais_Peak/TextIDs"); ---------------------...
gpl-3.0
Ne02ptzero/Grog-Like
Tools/BuildScripts/lua-lib/penlight-1.0.2/tests/test-pylib.lua
11
1759
-- test-pylib.lua local List = require 'pl.List' require 'pl.stringx'.import() local text = require 'pl.text' local Template = text.Template local asserteq = require 'pl.test' . asserteq l = List{10,20,30,40,50} s = List{1,2,3,4,5} -- test using: lua pylist.lua local lst = List:new() lst:append(10) lst:extend{20,30,4...
apache-2.0
davymai/CN-QulightUI
Interface/AddOns/Aurora/FrameXML/LFRFrame.lua
1
2123
local F, C = unpack(select(2, ...)) tinsert(C.themes["Aurora"], function() LFRQueueFrame:DisableDrawLayer("BACKGROUND") LFRBrowseFrame:DisableDrawLayer("BACKGROUND") LFRBrowseFrameRoleInset:DisableDrawLayer("BORDER") LFRQueueFrameRoleInset:DisableDrawLayer("BORDER") LFRQueueFrameListInset:DisableDrawLayer("BORDER...
gpl-2.0
n0xus/darkstar
scripts/globals/weaponskills/leg_sweep.lua
18
1532
----------------------------------- -- Leg Sweep -- Polearm weapon skill -- Skill Level: 100 -- Stuns enemy. Chance of stunning varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Thunder Gorget. -- Aligned with the Thunder Belt. -- Element: None -- Modifiers: STR:30% -- 100%TP 200%TP 3...
gpl-3.0
rmobis/Raphael-Library
TLua Engine.lua
1
2728
TLua = { content = nil, data = nil, exportedData = nil, } function TLua.checkContent() if string.sub(TLua.content, -5) == '.tlua' then TLua.content = TLua.getFileContent(TLua.content) end end function TLua.getFileContent(filename) local handler = assert(io.open(filename, 'r')) loca...
mit
mwgoldsmith/vlc
share/lua/playlist/break.lua
113
1995
--[[ $Id$ Copyright © 2007 the VideoLAN team 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; either version 2 of the License, or (at your option) any later version. This program is distribut...
gpl-2.0