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 |
|---|---|---|---|---|---|
chengyi818/openwrt | feeds/routing/luci-app-bmx6/files/usr/lib/lua/luci/model/cbi/bmx6/hna.lua | 20 | 1534 | --[[
Copyright (C) 2011 Pau Escrich <pau@dabax.net>
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.
Th... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Kazham/npcs/Nuh_Celodehki.lua | 37 | 1195 | -----------------------------------
-- Area: Kazham
-- NPC: Nuh Celodehki
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTr... | gpl-3.0 |
ld-test/lua-avro | src/avro/tests/raw.lua | 1 | 13895 | -- -*- coding: utf-8 -*-
------------------------------------------------------------------------
-- Copyright © 2011-2015, RedJack, LLC.
-- All rights reserved.
--
-- Please see the COPYING file in this distribution for license details.
------------------------------------------------------------------------
local A ... | mit |
tanxunrong/mruby-toy | lualib/snax/loginserver.lua | 1 | 4894 | local skynet = require "skynet"
local socket = require "socket"
local crypt = require "crypt"
local table = table
local string = string
local assert = assert
--[[
Protocol:
line (\n) based text protocol
1. Server->Client : base64(8bytes random challenge)
2. Client->Server : base64(8bytes handshake client key)
3... | mit |
n0xus/darkstar | scripts/globals/mobskills/MP_Absorption.lua | 13 | 1189 | ---------------------------------------------------
-- MP Absorption
-- Single target MP Drain. (Ignores shadows.)
-- Type: Magical
-- Range: Melee
-- Notes: If used against undead, it will simply do damage and not drain HP.
---------------------------------------------------
require("scripts/globals/settings");
requi... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Dynamis-Bastok/bcnms/dynamis_bastok.lua | 16 | 1162 | -----------------------------------
-- Area: Dynamis Bastok
-- Name: Dynamis Bastok
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[DynaBastok]UniqueID",player:getDynamisUniqueID(1280));
SetServerVariable("[Dyna... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Abyssea-Grauberg/Zone.lua | 32 | 1549 | -----------------------------------
--
-- Zone: Abyssea - Grauberg
--
-----------------------------------
package.loaded["scripts/zones/Abyssea-Grauberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/zones/Abysse... | gpl-3.0 |
mahdidoraj/secretbot | plugins/lock_username.lua | 2 | 1038 |
antiusername = {}-- An empty table for solving multiple kicking problem
do
local function run(msg, matches)
if is_momod(msg) then -- Ignore mods,owner,admins
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)]['settings']['lock_username'] then
if data[tost... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Apollyon/bcnms/SW_Apollyon.lua | 19 | 1120 | -----------------------------------
-- Area: Appolyon
-- Name:
-----------------------------------
require("scripts/globals/limbus");
require("scripts/globals/keyitems");
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[SW_Apollyon]UniqueID",Generate... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Kazham/Zone.lua | 28 | 1626 | -----------------------------------
--
-- Zone: Kazham (250)
--
-----------------------------------
-----------------------------------
-- onInitialize
-----------------------------------
function onInitialize(zone)
end;
-----------------------------------
-- onConquestUpdate
-------------------------... | gpl-3.0 |
n0xus/darkstar | scripts/globals/mobskills/Throat_Stab.lua | 18 | 1115 | ---------------------------------------------
-- Throat Stab
--
-- Description: Deals damage to a single target reducing their HP to 5%. Resets enmity.
-- Type: Physical
-- Utsusemi/Blink absorb: No
-- Range: Single Target
-- Notes: Very short range, easily evaded by walking away from it.
----------------... | gpl-3.0 |
tossp/lede-k3 | package/lean/luci-app-verysync/luasrc/model/cbi/verysync.lua | 2 | 1064 | -- Copyright 2008 Yanira <forum-2008@email.de>
-- Copyright 2020 KFERMercer <KFER.Mercer@gmail.com>
-- Licensed to the public under the Apache License 2.0.
m = Map("verysync")
m.title = translate("Verysync")
m.description = translate("Simple and easy-to-use multi-platform file synchronization software, astonishing tra... | gpl-2.0 |
feiying1460/witi-openwrt | package/ramips/ui/luci-mtk/src/applications/luci-openvpn/luasrc/model/cbi/openvpn-basic.lua | 71 | 3274 | --[[
LuCI - Lua Configuration Interface
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 the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
requ... | gpl-2.0 |
telespead/Reza-bot | plugins/banhammer.lua | 1085 | 11557 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
n0xus/darkstar | scripts/globals/spells/ionohelix.lua | 9 | 1732 | --------------------------------------
-- Spell: Ionohelix
-- Deals lightning damage that gradually reduces
-- a target's HP. Damage dealt is greatly affected by the weather.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/glob... | gpl-3.0 |
rekotc/game-engine-demo | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/luaffi/test.lua | 2 | 8391 | -- vim: ts=4 sw=4 sts=4 et tw=78
-- Copyright (c) 2011 James R. McKaskill. See license in ffi.h
io.stdout:setvbuf('no')
local ffi = require 'ffi'
local dlls = {}
dlls.__cdecl = ffi.load('test_cdecl')
if ffi.arch == 'x86' and ffi.os == 'Windows' then
dlls.__stdcall = ffi.load('test_stdcall')
dlls.__fastcall =... | lgpl-3.0 |
rekotc/game-engine-demo | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/lqt/generator/qtemplates.lua | 2 | 1195 | return {
-- example usage:
--
-- ["ex<T>"] = { "ex<double>", "ex<string>" }
-- module = { ["ex2<K,V>"] = { "example<char*, int>" } }
qtcore = {
["QList<T>"] = { "QList<QString>", "QList<QFileInfo>", "QList<QVariant>",
"QList<QModelIndex>", "QList<int>", "QList<QUrl>" },
},
qtgui = {
["QList<T>"] = { "QL... | lgpl-3.0 |
n0xus/darkstar | scripts/globals/spells/bluemagic/mp_drainkiss.lua | 18 | 1946 | -----------------------------------------
-- Spell: MP Drainkiss
-- Steals an enemy's MP. Ineffective against undead
-- Spell cost: 20 MP
-- Monster Type: Amorphs
-- Spell Type: Magical (Dark)
-- Blue Magic Points: 4
-- Stat Bonus: MP+5
-- Level: 42
-- Casting Time: 4 seconds
-- Recast Time: 90 seconds
-- Ma... | gpl-3.0 |
n0xus/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 |
ld-test/lanes | src/lanes.lua | 4 | 23320 | --
-- LANES.LUA
--
-- Multithreading and -core support for Lua
--
-- Authors: Asko Kauppi <akauppi@gmail.com>
-- Benoit Germain <bnt.germain@gmail.com>
--
-- History: see CHANGES
--
--[[
===============================================================================
Copyright (C) 2007-10 Asko Kauppi <akauppi@... | mit |
xennygrimmato/nmt | src/OpenNMT/onmt/data/Vocabulary.lua | 1 | 6552 | local path = require('pl.path')
local case = require('tools.utils.case')
--[[ Vocabulary management utility functions. ]]
local Vocabulary = torch.class("Vocabulary")
local function countFeatures(filename, idxFile)
local reader = onmt.utils.FileReader.new(filename, idxFile)
local _, _, numFeatures = onmt.utils.Fe... | lgpl-3.0 |
ArmanIr/ProFbOt | plugins/steam.lua | 645 | 2117 | -- See https://wiki.teamfortress.com/wiki/User:RJackson/StorefrontAPI
do
local BASE_URL = 'http://store.steampowered.com/api/appdetails/'
local DESC_LENTH = 200
local function unescape(str)
str = string.gsub( str, '<', '<' )
str = string.gsub( str, '>', '>' )
str = string.gsub( str, '"', '"' )
str... | gpl-2.0 |
n0xus/darkstar | scripts/globals/weaponskills/wasp_sting.lua | 18 | 1539 | -----------------------------------
-- Wasp Sting
-- Dagger weapon skill
-- Skill level: 5
-- Poisons target. Duration of effect varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Soil Gorget.
-- Aligned with the Soil Belt.
-- Element: None
-- Modifiers: : DEX:100%
-- 100%TP 200%TP 300... | gpl-3.0 |
lduboeuf/lit | libs/export.lua | 9 | 1935 | --[[
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 |
ppriest/mame | 3rdparty/genie/src/actions/make/make_cpp.lua | 1 | 15782 | --
-- make_cpp.lua
-- Generate a C/C++ project makefile.
-- Copyright (c) 2002-2013 Jason Perkins and the Premake project
--
premake.make.cpp = { }
premake.make.override = { }
local cpp = premake.make.cpp
local make = premake.make
function premake.make_cpp(prj)
-- create a shortcut to the compiler interface
... | gpl-2.0 |
n0xus/darkstar | scripts/globals/abilities/dancers_roll.lua | 9 | 3136 | -----------------------------------
-- Ability: Dancer's Roll
-- Grants Regen status to party members within area of effect
-- Optimal Job: Dancer
-- Lucky Number: 3
-- Unlucky Number: 7
-- Level: 61
--
-- Die Roll |No DNC |With DNC
-- -------- ---------- ----------
-- 1 ... | gpl-3.0 |
n0xus/darkstar | scripts/globals/items/crepe_delice.lua | 36 | 1239 | -----------------------------------------
-- ID: 5767
-- Item: Crepe Delice
-- Food Effect: 60 Min, All Races
-----------------------------------------
-- HP +15
-- Magic Accuracy +3
-- Magic Defense +2
-----------------------------------------
require("scripts/globals/status");
--------------------------------------... | gpl-3.0 |
LuffyPan/skynet | lualib/mongo.lua | 58 | 11027 | local bson = require "bson"
local socket = require "socket"
local socketchannel = require "socketchannel"
local skynet = require "skynet"
local driver = require "mongo.driver"
local md5 = require "md5"
local rawget = rawget
local assert = assert
local bson_encode = bson.encode
local bson_encode_order = bson.encode_ord... | mit |
davymai/CN-QulightUI | Interface/AddOns/QulightUI/Root/Libs/oUF/elements/cpoints.lua | 2 | 2483 | --[[ Element: Combo Point Icons
Toggles visibility of the player and vehicles combo points.
Widget
CPoints - An array consisting of five UI widgets.
Notes
The default combo point texture will be applied to textures within the CPoints
array that don't have a texture or color defined.
Examples
local CPoin... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Chamber_of_Oracles/bcnms/shattering_stars.lua | 19 | 1938 | -----------------------------------
-- Area: Qu'Bia Arena
-- Name: Shattering stars - Maat Fight
-- @pos -221 -24 19 206
-----------------------------------
package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Sacrificial_Chamber/TextIDs");
--... | gpl-3.0 |
ppriest/mame | 3rdparty/genie/tests/test_platforms.lua | 59 | 1601 | --
-- tests/test_platforms.lua
-- Automated test suite for platform handling functions.
-- Copyright (c) 2009 Jason Perkins and the Premake project
--
T.platforms = { }
local testmap = { Native="Win32", x32="Win32", x64="x64" }
local sln, r
function T.platforms.setup()
sln = solution "MySolution"
configura... | gpl-2.0 |
seeker24/butlr | plugins/extra.lua | 1 | 4540 | local plugin = {}
local function is_locked(chat_id)
local hash = 'chat:'..chat_id..':settings'
local current = db:hget(hash, 'Extra')
if current == 'off' then
return true
else
return false
end
end
function plugin.onTextMessage(msg, blocks)
if msg.chat.type == 'private' then return end
if ... | gpl-2.0 |
gpedro/server | data/scripts/otstd/classes/weapon.lua | 3 | 8059 | -- TODO:
-- - Distance weapons hit chance formula
-- - Wand support
otstd.weapons = {}
Weapon = {}
Weapon_mt = {__index = Weapon}
function Weapon:new(weaponID)
local weapon = {
-- Default weapon params
id = weaponID,
vocation = "any",
level = 0,
magicLevel = 0,
mana = 0,
manaPercent = 0,
soul = 0,
... | gpl-2.0 |
n0xus/darkstar | scripts/globals/spells/bluemagic/hecatomb_wave.lua | 18 | 1947 | -----------------------------------------
-- Spell: Hecatomb Wave
-- Deals wind damage to enemies within a fan-shaped area originating from the caster. Additional effect: Blindness
-- Spell cost: 116 MP
-- Monster Type: Demons
-- Spell Type: Magical (Wind)
-- Blue Magic Points: 3
-- Stat Bonus: AGI+1
-- Level: ... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Rabao/npcs/HomePoint#2.lua | 19 | 1173 | -----------------------------------
-- Area: Rabao
-- NPC: HomePoint#2
-- @pos -21 8.13 110 247
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Rabao/TextIDs");
require("scripts/globals/homepoint");
----------------... | gpl-3.0 |
mpeterv/busted | busted/languages/de.lua | 15 | 1403 | local s = require('say')
s:set_namespace('de')
-- 'Pending: test.lua @ 12 \n description
s:set('output.pending', 'Noch nicht erledigt')
s:set('output.failure', 'Fehlgeschlagen')
s:set('output.success', 'Erfolgreich')
s:set('output.pending_plural', 'übersprungen')
s:set('output.failure_plural', 'fehlgeschlagen')
s:se... | mit |
davymai/CN-QulightUI | Interface/AddOns/FriendListColors/libs/AceGUI-3.0/widgets/AceGUIContainer-ScrollFrame.lua | 37 | 6549 | --[[-----------------------------------------------------------------------------
ScrollFrame Container
Plain container that scrolls its content and doesn't grow in height.
-------------------------------------------------------------------------------]]
local Type, Version = "ScrollFrame", 23
local AceGUI = LibStub an... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/Broker_Garrison/Libs/AceGUI-3.0/widgets/AceGUIContainer-ScrollFrame.lua | 37 | 6549 | --[[-----------------------------------------------------------------------------
ScrollFrame Container
Plain container that scrolls its content and doesn't grow in height.
-------------------------------------------------------------------------------]]
local Type, Version = "ScrollFrame", 23
local AceGUI = LibStub an... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Windurst_Waters/npcs/Tosuka-Porika.lua | 17 | 5843 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Tosuka-Porika
-- Starts Quests: Early Bird Catches the Bookworm, Chasing Tales
-- Involved in Quests: Hat in Hand, Past Reflections, Blessed Radiance
-- Involved in Missions: Windurst 2-1, Windurst 7-1, Windurst 8-2, CoP 3-3
-- @pos -26 -6 1... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Northern_San_dOria/npcs/Attarena.lua | 30 | 1955 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Attarena
-- Only sells when San d'Oria controlls Li'Telor Region
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Toraimarai_Canal/npcs/_4pc.lua | 19 | 1798 | -----------------------------------
-- Area: Toraimarai Canal
-- NPC: Marble Door
-- Involved In Windurst Mission 7-1
-- @pos 132 12 -19 169 169
-----------------------------------
package.loaded["scripts/zones/Toraimarai_Canal/TextIDs"] = nil;
require("scripts/zones/Toraimarai_Canal/TextIDs");
-----------------------... | gpl-3.0 |
n0xus/darkstar | scripts/globals/mining.lua | 7 | 6184 | -------------------------------------------------
-- Author: Ezekyel
-- Mining functions
-- Info from:
-- http://wiki.ffxiclopedia.org/wiki/Mining
-------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-------------------------------... | gpl-3.0 |
nbryansky/fastnetmon | src/sflow_hooks.lua | 14 | 5769 | local json = require("json")
-- We have this library bundled only in luajit:
-- g++ lua_integration.cpp -lluajit-5.1
-- Before production use, please call your code with luajit CLI
local ffi = require("ffi")
-- Load declaration from the inside separate header file
-- This code should be in sync with https://github.c... | gpl-2.0 |
n0xus/darkstar | scripts/globals/mobskills/Kick_Out.lua | 18 | 1156 | ---------------------------------------------
-- Kick Out
--
-- Description: Deals heavy damage and inflicts blind to any target behind user.
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: Unknown cone, backwards
-- Notes: Only used when the Behemoth is attacking with it's tail.
------... | gpl-3.0 |
n0xus/darkstar | scripts/globals/items/juglan_jumble.lua | 36 | 1363 | -----------------------------------------
-- ID: 5923
-- Item: Juglan Jumble
-- Food Effect: 5 Min, All Races
-----------------------------------------
-- HP Healing 5
-- MP Healing 8
-- Bird Killer 12
-- Resist Paralyze 12
-----------------------------------------
require("scripts/globals/status");
-----------------... | gpl-3.0 |
feiying1460/witi-openwrt | package/ramips/ui/luci-mtk/src/applications/luci-asterisk/luasrc/asterisk.lua | 80 | 18044 | --[[
LuCI - Lua Configuration Interface
Asterisk PBX interface library
Copyright 2009 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/licen... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Castle_Zvahl_Baileys/npcs/Switchstix.lua | 30 | 19765 | -----------------------------------
-- Area: Castle Zvahl Baileys
-- NPC: Switchstix
-- Type: Standard NPC
-- @pos 386.091 -13 -17.399 161
-----------------------------------
package.loaded["scripts/zones/Castle_Zvahl_Baileys/TextIDs"] = nil;
require("scripts/zones/Castle_Zvahl_Baileys/TextIDs");
require("scripts/... | gpl-3.0 |
alirezanile/Ldcxvx | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
hamed9898/maxbott | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
goblinor/BomBus1 | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
shayanchabok007/antispamfox | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Halvung/npcs/Mining_Point.lua | 29 | 1078 | -----------------------------------
-- Area: Halvung
-- NPC: Mining Point
-----------------------------------
package.loaded["scripts/zones/Halvung/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/mining");
require("scripts/zones/Halvung/TextIDs");
-------------------------... | gpl-3.0 |
linmajia/dlbench | synthetic/experiments/torch/fc/ffn26752l6bm.lua | 2 | 3002 | require 'sys';
require 'bit';
require 'optim';
require 'cutorch'
local opts = require 'opts'
local opt = opts.parse(arg)
if opt.deviceId >= 0 then
require 'cunn';
require 'cudnn';
cutorch.setDevice(opt.deviceId+1)
else
require 'nn'
end
print 'fc'
torch.setdefaulttensortype('torch.FloatTensor')
-- loca... | mit |
omidtarh/wezardbot | plugins/sudo.lua | 359 | 1878 | function run_sh(msg)
name = get_name(msg)
text = ''
-- if config.sh_enabled == false then
-- text = '!sh command is disabled'
-- else
-- if is_sudo(msg) then
-- bash = msg.text:sub(4,-1)
-- text = run_bash(bash)
-- else
-- text = name .. ' yo... | gpl-2.0 |
hamishcunningham/fishy-wifi | lua/size-bug/sizebug100.lua | 2 | 2759 | sizebug = {}
function sizebug.trigger()
print("000000000000001")
print("000000000000002")
print("000000000000003")
print("000000000000004")
print("000000000000005")
print("000000000000006")
print("000000000000007")
print("000000000000008")
print("000000000000009")
print("000000000000010")
print("0... | agpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/Broker_Garrison/Libs/LibToast-1.0/LibStub/LibStub.lua | 43 | 2196 | -- $Id: LibStub.lua 76 2007-09-03 01:50:17Z mikk $
-- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info
-- LibStub is hereby placed in the Public Domain
-- Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke
local LIBSTUB_MAJOR, LIBSTU... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-BlackwingDescent/Maloriak.lua | 1 | 10849 | local mod = DBM:NewMod(173, "DBM-BlackwingDescent", nil, 73)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 146 $"):sub(12, -3))
mod:SetCreatureID(41378)
mod:SetEncounterID(1025)
mod:SetZone()
mod:SetUsedIcons(1, 2, 3, 4, 6, 7, 8)
mod:SetModelSound("Sound\\Creature\\Nefarian\\VO_BD_Nefarian_Maloriak... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Bastok_Markets/npcs/Lamepaue.lua | 31 | 10041 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Lamepaue
-- Type: Past Event Watcher
-- @zone: 235
-- @pos -172.136 -5 -69.632
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("scripts/zones/Bastok_Markets/TextIDs");
require("scripts/gl... | gpl-3.0 |
janlou2/TeleA | plugins/setrank.lua | 1 | 8893 | do
local Dev = 122774063 --put your id here(BOT OWNER ID)
local function setrank(msg, name, value) -- setrank function
local hash = nil
if msg.to.type == 'chat' then
hash = 'rank:'..msg.to.id..':variables'
end
if hash then
redis:hset(hash, name, value)
return send_msg('chat#id'..msg.to.id, 'مقام کاربر... | gpl-2.0 |
aqasaeed/infernal | plugins/service_entergroup.lua | 27 | 3609 | local add_user_cfg = load_from_file('data/add_user_cfg.lua')
local function template_add_user(base, to_username, from_username, chat_name, chat_id)
base = base or ''
to_username = '@' .. (to_username or '')
from_username = '@' .. (from_username or '')
chat_name = string.gsub(chat_name, '_', ' ') or ''
c... | gpl-2.0 |
n0xus/darkstar | scripts/zones/West_Ronfaure/npcs/qm4.lua | 17 | 1638 | -----------------------------------
-- Area: West Ronfaure
-- NPC: qm4 (???)
-- Involved in Quest: The Dismayed Customer
-- @pos -399 -10 -438 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/sett... | gpl-3.0 |
glycerine/goq | vendor/git.apache.org/thrift.git/lib/lua/TFramedTransport.lua | 19 | 2952 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | bsd-2-clause |
n0xus/darkstar | scripts/zones/Lower_Jeuno/npcs/_l09.lua | 36 | 1563 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Streetlamp
-- Involved in Quests: Community Service
-- @zone 245
-- @pos -32.897 0 -28.521
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Port_Bastok/npcs/Valeriano.lua | 36 | 1723 | -----------------------------------
-- Area: Port Bastok
-- NPC: Valeriano
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/zones/Port_Bastok/TextIDs");... | gpl-3.0 |
kbehafarin/newfies-dialer | lua/newfies.lua | 3 | 3187 | --
-- 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 |
mohammad8/iran-spem | 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 |
shayanchabok007/antispamfox | 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/Western_Altepa_Desert/npcs/_3h5.lua | 17 | 1838 | -----------------------------------
-- Area: Western Altepa Desert
-- NPC: _3h5 (Ruby Column)
-- Notes: Mechanism for Altepa Gate
-- @pos 59 10 -104 125
-----------------------------------
package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
n0xus/darkstar | scripts/globals/items/yellow_globe.lua | 18 | 1322 | -----------------------------------------
-- ID: 4403
-- Item: yellow_globe
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItem... | gpl-3.0 |
hamishcunningham/fishy-wifi | lua/doodles/i2c_oled2.lua | 2 | 2233 | id=0 -- need this to identify (software) IC2 bus?
gpio= {[0]=3,[2]=4,[4]=2,[5]=1,[12]=6,[13]=7,[14]=5} -- this maps GPIO numbers to internal IO references
sda=gpio[12] -- connect to pin GPIO14
scl=gpio[14] -- connect to pin GPIO12
addr=0x3C -- the I2C address of our device
ret=0
-- initialize i2c
i2c.setup(id,sda,scl... | agpl-3.0 |
Goodzilam/Good | plugins/banhammer.lua | 33 | 12751 | local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned =... | gpl-2.0 |
n0xus/darkstar | scripts/globals/items/mokusa.lua | 41 | 1064 | -----------------------------------------
-- ID: 18451
-- Item: Mokusa
-- Additional Effect: Wind Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-----------------------------------
... | gpl-3.0 |
ddysher/turbo | turbo/httputil.lua | 1 | 25421 | --- Turbo.lua HTTP Utilities module
-- Contains the HTTPHeaders and HTTPParser classes, which parses request and
-- response headers and also offers utilities to build request headers.
--
-- Also offers a few functions for parsing GET URL parameters, and different
-- POST data types.
--
-- Copyright John Abrahamsen 201... | apache-2.0 |
n0xus/darkstar | scripts/zones/Windurst_Woods/npcs/Tapoh_Lihzeh.lua | 17 | 3315 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Tapoh Lihzeh
-- Starts & Finishes Repeatable Quest: Paying Lip Service
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
re... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Pursuivant.lua | 34 | 1035 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Pursuivant
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
-------... | gpl-3.0 |
tscheffe/dotfiles | .hammerspoon/init.lua | 1 | 9787 | -- [[
-- TODO: Check if hotkeys are able to be bound by hammerspoon and warn if they're not: https://www.hammerspoon.org/docs/hs.hotkey.html#assignable
-- TODO: Investigate: https://github.com/miromannino/miro-windows-manager, seems pretty legit
-- TODO: Investigate this too https://www.hammerspoon.org/Spoons/PushToTal... | mit |
ppriest/mame | 3rdparty/bgfx/scripts/example-common.lua | 14 | 2153 | --
-- Copyright 2010-2016 Branimir Karadzic. All rights reserved.
-- License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
--
project ("example-common")
uuid ("21cc0e26-bf62-11e2-a01e-0291bd4c8125")
kind "StaticLib"
includedirs {
path.join(BX_DIR, "include"),
path.join(BGFX_DIR, "include"),
path.jo... | gpl-2.0 |
mahdidoraj/secretbot | bot/utils.lua | 494 | 23873 | 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 |
n0xus/darkstar | scripts/zones/Southern_San_dOria/npcs/Simmie.lua | 36 | 1432 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Simmie
-- General Info NPC
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests"... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Garlaige_Citadel/npcs/_5ki.lua | 17 | 1372 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: _5ki (Banishing Gate #3)
-- @pos -100 -3.008 359 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Garlaige_Citadel/TextIDs");
... | gpl-3.0 |
n0xus/darkstar | scripts/globals/items/hellfire_axe.lua | 41 | 1071 | -----------------------------------------
-- ID: 16713
-- Item: Hellfire Axe
-- Additional Effect: Fire Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-------------------------------... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Nashmau/npcs/Tsutsuroon.lua | 38 | 1260 | -----------------------------------
-- Area: Nashmau
-- NPC: Tsutsuroon
-- Type: Tenshodo Merchant
-- @pos -15.193 0.000 31.356 53
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/global... | gpl-3.0 |
n0xus/darkstar | scripts/globals/spells/hyoton_san.lua | 17 | 1619 | -----------------------------------------
-- Spell: Hyoton: San
-- Deals ice damage to an enemy and lowers its resistance against fire.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
----... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-Party-Cataclysm/ZulGurub/CoMWushoolay.lua | 1 | 1607 | local mod = DBM:NewMod(180, "DBM-Party-Cataclysm", 11, 76, 1)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 131 $"):sub(12, -3))
mod:SetCreatureID(52286)
mod:SetZone()
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_START",
"SPELL_AURA_APPLIED"
)
mod.onlyHeroic = true
loca... | gpl-2.0 |
n0xus/darkstar | scripts/zones/PsoXja/npcs/_i98.lua | 17 | 1532 | -----------------------------------
-- Area: Pso'Xja
-- NPC: Stone Gate
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/PsoXja/TextIDs");
require("scripts/globals/keyitems... | gpl-3.0 |
n0xus/darkstar | scripts/globals/items/dish_of_spaghetti_vongole_rosso.lua | 35 | 1660 | -----------------------------------------
-- ID: 5189
-- Item: dish_of_spaghetti_vongole_rosso
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health % 17
-- Health Cap 90
-- Vitality 2
-- Mind -1
-- Defense % 25
-- Defense Cap 30
-- Store TP 6
---------------------------------... | gpl-3.0 |
ibrahimlovers/babeleon-bot | lang/galician_lang.lua | 30 | 19289 | ---------------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- ... | gpl-3.0 |
chengyi818/openwrt | customer/packages/luci/protocols/ppp/luasrc/model/cbi/admin_network/proto_ppp.lua | 59 | 3761 | --[[
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 |
sam1i/Turres-Monacorum | love2d/external/jumper/core/bheap.lua | 6 | 5504 | --- <strong>A light implementation of `binary heaps`</strong>.
-- While running a search, some algorithms have to maintains a list of nodes called __open list__.
-- Finding in this list the lowest cost node from the node being processed can be quite slow,
-- (as it requires to skim through the collection of nodes stor... | mit |
n0xus/darkstar | scripts/zones/Windurst_Woods/npcs/Jack_of_Spades.lua | 33 | 1329 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Jack of Spades
-- Adventurer's Assistant
-- Working 100%
-------------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
require("scripts/zones/Windurst_Woods/TextIDs");... | gpl-3.0 |
n0xus/darkstar | scripts/globals/items/strip_of_sheep_jerky.lua | 35 | 1394 | -----------------------------------------
-- ID: 4518
-- Item: strip_of_sheep_jerky
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Strength 3
-- Intelligence -1
-- Attack % 22
-- Attack Cap 35
-----------------------------------------
require("scripts/globals/status");
----... | gpl-3.0 |
rigeirani/bib | plugins/antisquig.lua | 27 | 1167 | -- Put this at the very top of your plugin list, even before blacklist.lua.
antisquig = {}
local triggers = {
'[\216-\219][\128-\191]'
}
local action = function(msg)
local moddat = load_data('moderation.json')
if not moddat[msg.chat.id_str] then
return true
end
if moddat[msg.chat.id_str][msg.from.id_str] ... | gpl-2.0 |
chengyi818/openwrt | customer/packages/luci/applications/luci-statistics/luasrc/model/cbi/luci_statistics/collectd.lua | 69 | 2332 | --[[
Luci configuration model for statistics - general collectd configuration
(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
... | gpl-2.0 |
feiying1460/witi-openwrt | package/ramips/ui/luci-mtk/src/applications/luci-ltqtapi/luasrc/controller/ltqtapi.lua | 76 | 1274 | --[[
LuCI - Lua Configuration Interface
Copyright 2019 John Crispin <blogic@openwrt.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
]]--
module("... | gpl-2.0 |
n0xus/darkstar | scripts/globals/items/bowl_of_eyeball_soup.lua | 35 | 1403 | -----------------------------------------
-- ID: 4453
-- Item: Bowl of Eyeball Soup
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Charisma -10
-- Health Regen While Healing 4
-- Accuracy 12
-- Ranged ACC 12
-----------------------------------------
require("scripts/globals/s... | gpl-3.0 |
rekotc/game-engine-demo | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/luasql/tests/example.lua | 6 | 1100 | -- See Copyright Notice in license.html
-- load driver
require"luasql.postgres"
-- create environment object
env = assert (luasql.postgres())
-- connect to data source
con = assert (env:connect("luasql-test"))
-- reset our table
res = con:execute"DROP TABLE people"
res = assert (con:execute[[
CREATE TABLE people(
... | lgpl-3.0 |
astrofra/harfang-lua-experiments | vr-demo-0/demo/fx_red_sector_title.lua | 2 | 1440 | --
function start_fx_red_sector_title(dt)
print("start_fx_red_sector_title()")
DEMO_STATE = fx_red_sector_title
end
function fx_red_sector_title(dt, demo_clock)
fx_clock = demo_clock - get_fx_start_time('fx_red_sector_title')
fx_clock_norm = fx_clock / get_fx_end_time('fx_red_sector_title')
-- blue... | mit |
astrofra/harfang-lua-experiments | rsi-heartcore/demo/fx_red_sector_title.lua | 2 | 1440 | --
function start_fx_red_sector_title(dt)
print("start_fx_red_sector_title()")
DEMO_STATE = fx_red_sector_title
end
function fx_red_sector_title(dt, demo_clock)
fx_clock = demo_clock - get_fx_start_time('fx_red_sector_title')
fx_clock_norm = fx_clock / get_fx_end_time('fx_red_sector_title')
-- blue... | mit |
tossp/lede-k3 | package/lean/luci-app-v2ray-server/luasrc/model/cbi/v2ray_server/api/app.lua | 2 | 3923 | #!/usr/bin/lua
local action = arg[1]
local sys = require 'luci.sys'
local jsonc = require "luci.jsonc"
local ucic = require"luci.model.uci".cursor()
local CONFIG = "v2ray_server"
local CONFIG_PATH = "/var/etc/" .. CONFIG
local LOG_PATH = "/var/log/" .. CONFIG
local LOG_APP_FILE = LOG_PATH .. "/app.log"
local BIN_PATH... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_0rv.lua | 17 | 1337 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: _0rv (Oil lamp)
-- Notes: Opens north door at J-9 from inside.
-- @pos -63.703 -26.227 37.000 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
re... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.