repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
RebootRevival/FFXI_Test | scripts/globals/spells/bluemagic/sub-zero_smash.lua | 26 | 2012 | -----------------------------------------
-- Spell: Sub-zero Smash
-- Additional Effect: Paralysis. Damage varies with TP
-- Spell cost: 44 MP
-- Monster Type: Aquans
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 4
-- Stat Bonus: HP+10 VIT+3
-- Level: 72
-- Casting Time: 1 second
-- Recast Time: 30 seconds
-- S... | gpl-3.0 |
CCAAHH/telegram-bot-supergroups | plugins/google.lua | 722 | 1037 | local function googlethat(query)
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&"
local parameters = "q=".. (URL.escape(query) or "")
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
local r... | gpl-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Upper_Delkfutts_Tower/TextIDs.lua | 3 | 1183 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6415; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6421; -- Obtained: <item>.
GIL_OBTAINED = 6422; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6424; -- Obtained... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/commands/addkeyitem.lua | 8 | 1662 | ---------------------------------------------------------------------------------------------------
-- func: addkeyitem <ID> <player>
-- desc: Adds a key item to the player.
---------------------------------------------------------------------------------------------------
require("scripts/globals/keyitems");
cmdprop... | gpl-3.0 |
ys1045097987/Face-Experiments | msceleb_lowshot_dff.lua | 1 | 1440 | require 'torch'
require 'paths'
require 'image'
require 'preprocess'
torch.setdefaulttensortype('torch.FloatTensor')
local dataset = {}
local msceleb_lowshot = {}
local ffi = require 'ffi'
function dataset.load_data(opt)
local train = {}
local test = {}
msceleb_lowshot.root_folder = '/work/cv3/yan/Lowshot/n... | apache-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Quicksand_Caves/npcs/qm6.lua | 1 | 2097 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: ??? (qm6)
-- Bastok Mission 8.1 "The Chains That Bind Us"
-- !pos
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("sc... | gpl-3.0 |
rafradek/wire | lua/entities/gmod_wire_expression2/core/complex.lua | 17 | 11243 | /******************************************************************************\
Complex numbers support
\******************************************************************************/
-- faster access to some math library functions
local abs = math.abs
local Round = math.Round
local sqrt = math.sqrt
local exp ... | apache-2.0 |
RebootRevival/FFXI_Test | scripts/zones/The_Eldieme_Necropolis/npcs/_5ff.lua | 3 | 1249 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Leviathan's Gate
-- !pos 88 -34 -60 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs");
req... | gpl-3.0 |
mr-shahin/nebron | plugins/banhammer.lua | 1 | 39699 | local function pre_process(msg)
if msg.to.type ~= 'pv' then
chat = msg.to.id
user = msg.from.id
local function check_newmember(arg, data)
test = load_data(_config.moderation.data)
lock_bots = test[arg.chat_id]['settings']['lock_bots']
local hash = "gp_lang:"..arg.chat_id
local lang = redis:get(hash)
... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Castle_Oztroja/npcs/_47f.lua | 3 | 1232 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _47f (Handle)
-- Notes: Opens door _471
-- !pos -182 -15 -19 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Castle_Oztroja/TextIDs");
... | gpl-3.0 |
heroiclabs/nakama | data/modules/iap_verifier_rpc.lua | 1 | 4309 | --[[
Copyright 2019 The Nakama Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... | apache-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Mhaura/npcs/Yabby_Tanmikey.lua | 3 | 1167 | -----------------------------------
-- Area: Mhaura
-- NPC: Yabby Tanmikey
-- Guild Merchant NPC: Goldsmithing Guild
-- !pos -36.459 -16.000 76.840 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
req... | gpl-3.0 |
chripell/mytools | configs/X-old/awesome/calendar.lua | 1 | 4549 | --[[
Copyright 2017 Stefano Mazzucco <stefano AT curso DOT re>
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 3 of the License, or (at your option) any later
version.
Th... | apache-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Windurst_Woods/npcs/Umumu.lua | 3 | 3016 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Umumu
-- Involved In Quest: Making Headlines
-- !pos 32.575 -5.250 141.372 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
r... | gpl-3.0 |
zhaojun2066/lightning | lightning-gateway/lualib/resty/core/uri.lua | 7 | 1524 | -- Copyright (C) Yichun Zhang (agentzh)
local ffi = require 'ffi'
local ffi_string = ffi.string
local C = ffi.C
local ngx = ngx
local type = type
local tostring = tostring
local base = require "resty.core.base"
local get_string_buf = base.get_string_buf
ffi.cdef[[
size_t ngx_http_lua_ffi_uri_escaped_length(cons... | apache-2.0 |
TheRikyHUN/fooniks | resources/phoenix_Skills/skills-server.lua | 2 | 9119 | --[[
]]--
local loaded = false;
skills = { };
otherIds = { };
pSkillLevel = { };
pXp = { };
debuggers = { };
sLevels = { };
function displayLoadedRes( res )
if( loaded ) then return false; end
RegisterSkills( );
CalculateSkillLevels( );
if( getResourceLastStartTime( getResourceFro... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Abyssea-Konschtat/mobs/Turul.lua | 17 | 2144 | -----------------------------------
-- Area: Abyssea - Konschtat (15)
-- Mob: Turul
-----------------------------------
require("scripts/globals/status");
mixins = { require("scripts/mixins/families/amphiptere") }
-----------------------------------
-- onMobInitialize
-----------------------------------
function ... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Northern_San_dOria/npcs/Mevreauche.lua | 3 | 2114 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Mevreauche
-- Type: Smithing Guild Master
-- !pos -193.584 10 148.655 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Northern_Sa... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Diorama_Abdhaljs-Ghelsba/Zone.lua | 17 | 1127 | -----------------------------------
--
-- Zone: Diorama_Abdhaljs-Ghelsba
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Diorama_Abdhaljs-Ghelsba/TextIDs"] = nil;
require("scripts/zones/Diorama_Abdhaljs-Ghelsba/TextIDs");
-----------------------------------
... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Rabao/npcs/Leodarion.lua | 3 | 3660 | -----------------------------------
-- Area: Rabao
-- NPC: Leodarion
-- Involved in Quest: 20 in Pirate Years, I'll Take the Big Box, True Will
-- !pos -50 8 40 247
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/sett... | gpl-3.0 |
Cyco12/PotatoBot | deps/discordia/containers/snowflakes/User.lua | 1 | 4122 | local Snowflake = require('../Snowflake')
local format = string.format
local wrap, yield = coroutine.wrap, coroutine.yield
local User, property, method = class('User', Snowflake)
User.__description = "Represents a Discord user."
function User:__init(data, parent)
Snowflake.__init(self, data, parent)
end
function U... | apache-2.0 |
andr3wmac/bgfx | scripts/genie.lua | 1 | 8716 | --
-- Copyright 2010-2016 Branimir Karadzic. All rights reserved.
-- License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
--
newoption {
trigger = "with-amalgamated",
description = "Enable amalgamated build.",
}
newoption {
trigger = "with-ovr",
description = "Enable OculusVR integration.",
}
newoptio... | bsd-2-clause |
RebootRevival/FFXI_Test | scripts/zones/Eastern_Altepa_Desert/npcs/Telepoint.lua | 17 | 1706 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: Telepoint
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Eastern_Altepa_Desert/TextIDs");... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Mhaura/npcs/Kotan-Purutan.lua | 3 | 2520 | -----------------------------------
-- Area: Mhaura
-- NPC: Kotan-Purutan
-- Involved in Quest: Overnight Delivery
-- !pos 40.323 -8.999 44.242 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
-----------------------------------
-- on... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/globals/spells/bluemagic/cannonball.lua | 33 | 1721 | -----------------------------------------
-- Spell: Cannonball
-- Damage varies with TP
-- Spell cost: 66 MP
-- Monster Type: Vermin
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 3
-- Stat Bonus: STR+1, DEX+1
-- Level: 70
-- Casting Time: 0.5 seconds
-- Recast Time: 28.5 seconds
-- Skillchain Element(s): Fusion... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Batallia_Downs/mobs/Stalking_Sapling.lua | 2 | 1082 | -----------------------------------
-- Area: Batallia Downs
-- MOB: Stalking Sapling
-----------------------------------
require("scripts/globals/fieldsofvalor");
require("scripts/zones/Batallia_Downs/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Bibiki_Bay/TextIDs.lua | 3 | 2478 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item> come back again after sorting your inventory.
ITEM_OBTAINED = 6386; -- Obtained: <item>.
GIL_OBTAINED = 6387; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6389; -- Obt... | gpl-3.0 |
mahdikord/mahdibary | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
koppa/wireshark | test/lua/dissectFPM.lua | 28 | 15867 | ----------------------------------------
--
-- author: Hadriel Kaplan <hadriel@128technology.com>
-- Copyright (c) 2015, Hadriel Kaplan
-- This code is in the Public Domain, or the BSD (3 clause) license
-- if Public Domain does not apply in your country.
--
-- Version: 1.0
--
------------------------------------------... | gpl-2.0 |
RebootRevival/FFXI_Test | scripts/zones/North_Gustaberg_[S]/npcs/Barricade.lua | 16 | 1148 | -----------------------------------
-- Area: North Gustaberg (S) (I-6)
-- NPC: Barricade
-- Involved in Quests: The Fighting Fourth
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg_[S]/TextIDs"] = nil;
package.loaded["scripts/globals/quests"] = nil;
-----------------------------------
... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Southern_San_dOria_[S]/npcs/CeraneIVirgaut1.lua | 3 | 1059 | -----------------------------------
-- 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 |
Munchotaur/wordgrinder | src/lua/export/latex.lua | 3 | 2492 | -- © 2008 David Given.
-- WordGrinder is licensed under the MIT open source license. See the COPYING
-- file in this distribution for the full text.
local untextab = {
["#"] = "\\#",
["$"] = "\\$",
["&"] = "\\&",
["{"] = "\\{",
["}"] = "\\}",
["_"] = "\\_{}",
["^"] = "\\^{}",
["~"] = "\\~{}",
["%"] = "\\%",
... | mit |
RebootRevival/FFXI_Test | scripts/zones/Tavnazian_Safehold/npcs/_0q1.lua | 3 | 1944 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: _0q1 (Sewer Entrance)
-- !pos 28 -12 44 26
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Tavnazian_Safehold/TextIDs");
require("scri... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Dynamis-Buburimu/mobs/Apocalyptic_Beast.lua | 23 | 1524 | -----------------------------------
-- Area: Dynamis Buburimu
-- MOB: Apocalyptic_Beast
-----------------------------------
package.loaded["scripts/zones/Dynamis-Buburimu/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Buburimu/TextIDs");
requir... | gpl-3.0 |
felixdae/skynet | 3rd/lpeg/re.lua | 160 | 6286 | -- $Id: re.lua,v 1.44 2013/03/26 20:11:40 roberto Exp $
-- imported functions and modules
local tonumber, type, print, error = tonumber, type, print, error
local setmetatable = setmetatable
local m = require"lpeg"
-- 'm' will be used to parse expressions, and 'mm' will be used to
-- create expressions; that is, 're' ... | mit |
mohammadclashclash/sinaeror | 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 |
RebootRevival/FFXI_Test | scripts/globals/weaponskills/calamity.lua | 25 | 1516 | -----------------------------------
-- Calamity
-- Axe weapon skill
-- Skill level: 200 (Beastmasters and Warriors only.)
-- Delivers a single-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Soil Gorget & Thunder Gorget.
-- Aligned with the Soil Belt & Thunder Belt.
-- Element: N... | gpl-3.0 |
daogangtang/redis_luajit2.6 | deps/luajit-2.0/dynasm/dasm_mips.lua | 15 | 28080 | ------------------------------------------------------------------------------
-- DynASM MIPS module.
--
-- Copyright (C) 2005-2012 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _i... | bsd-3-clause |
milogert/dotfiles | modules/neovim/config/lua/milogert/config/luasnip.lua | 1 | 1616 | local ls = require("luasnip")
local s = ls.snippet
local sn = ls.snippet_node
local isn = ls.indent_snippet_node
local t = ls.text_node
local i = ls.insert_node
local f = ls.function_node
local c = ls.choice_node
local d = ls.dynamic_node
local r = ls.restore_node
local events = require("luasnip.util.events")
local ai ... | mit |
samijon/s | plugins/ingroup.lua | 527 | 44020 | 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.id
if member_id ~= our_id then
-- Group configuration
data[tostr... | gpl-2.0 |
majidhp888/Hack | plugins/groupmanager.lua | 136 | 11323 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if not is_admin(msg) then
return "You're not admin!"
end
local group_creator = msg.from.print_name
create_group_chat (group_cr... | gpl-2.0 |
blackzw/openwrt_sdk_dev1 | staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/usr/lib/lua/luci/model/network.lua | 1 | 33426 | --[[
LuCI - Network model
Copyright 2009-2010 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
Unless required by app... | gpl-2.0 |
babymannen/theforgottenserver-7.4 | server/data/talkactions/scripts/buyhouse.lua | 16 | 1163 | function onSay(player, words, param)
local housePrice = configManager.getNumber(configKeys.HOUSE_PRICE)
if housePrice == -1 then
return true
end
if not player:isPremium() then
player:sendCancelMessage("You need a premium account.")
return false
end
local position = player:getPosition()
position:getNextPo... | gpl-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Eastern_Altepa_Desert/Zone.lua | 11 | 4037 | -----------------------------------
--
-- Zone: Eastern_Altepa_Desert (114)
--
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require("scripts/zones/Eastern_Altepa_Dese... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/West_Ronfaure/npcs/qm1.lua | 3 | 1489 | -----------------------------------
-- Area: West Ronfaure
-- NPC: qm1 (???)
-- Involved in Quest: The Dismayed Customer
-- !pos -453 -20 -230 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings")... | gpl-3.0 |
mzguanglin/LuCI | modules/admin-mini/luasrc/model/cbi/mini/system.lua | 33 | 2293 | --[[
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$
]]--
req... | apache-2.0 |
RebootRevival/FFXI_Test | scripts/globals/items/plate_of_dorado_sushi_+1.lua | 12 | 1697 | -----------------------------------------
-- ID: 5179
-- Item: plate_of_dorado_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Dexterity 5
-- Accuracy % 16
-- Accuracy Cap 76
-- Ranged ACC % 16
-- Ranged ACC Cap 76
-- Sleep Resist 2
-- Enmity 5
------------------------------------... | gpl-3.0 |
onpon4/naev | dat/missions/zalek/neburesearch/neburesearch_02.lua | 1 | 5152 | --[[
<?xml version='1.0' encoding='utf8'?>
<mission name="Emergency of Immediate Inspiration">
<flags>
<unique />
</flags>
<avail>
<priority>15</priority>
<done>Advanced Nebula Research</done>
<chance>30</chance>
<location>Bar</location>
<faction>Empire</faction>
<cond>system.get("Gamma Polaris"):jumpD... | gpl-3.0 |
Afforess/Factorio-Stdlib | spec/utils/is_spec.lua | 1 | 11337 | require('spec/setup/busted')()
local Is = require('__stdlib__/stdlib/utils/is')
describe(
'variable type checks',
function()
local a, b, c, d, e
before_each(
function()
a = 'string'
b = 1
c = {}
d =
... | isc |
RebootRevival/FFXI_Test | scripts/zones/West_Ronfaure/npcs/Aaveleon.lua | 3 | 1516 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Aaveleon
-- Involved in Quest: A Sentry's Peril
-- !pos -431 -45 343 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require(... | gpl-3.0 |
openwrt-es/openwrt-luci | libs/luci-lib-px5g/lua/px5g/util.lua | 170 | 1148 | --[[
* px5g - Embedded x509 key and certificate generator based on PolarSSL
*
* Copyright (C) 2009 Steven Barth <steven@midlink.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License, version 2.1 as published by the Free ... | apache-2.0 |
petoju/awesome | lib/awful/widget/tasklist.lua | 2 | 31814 | ---------------------------------------------------------------------------
--- Tasklist widget module for awful.
--
-- <a name="status_icons"></a>
-- **Status icons:**
--
-- By default, the tasklist prepends some symbols in front of the client name.
-- This is used to notify that the client has some specific propertie... | gpl-2.0 |
lenovor/BBRL | scripts/lua_scripts/makeInit.lua | 3 | 2837 |
local agents = require "data.agents"
local gridComputing = require "data.gridComputing"
local formulaSets = require "data.formula_sets"
local experiments_accurate = require "data.experiments_accurate"
local experiments_inaccurate = require "data.experiments_inaccurate"
local experiments_options = requir... | gpl-2.0 |
zhaojun2066/lightning | lightning-gateway/lualib/resty/kafka/response.lua | 1 | 2118 | -- Copyright (C) Dejiang Zhu(doujiang24)
local bit = require "bit"
local setmetatable = setmetatable
local byte = string.byte
local sub = string.sub
local lshift = bit.lshift
local bor = bit.bor
local strbyte = string.byte
local _M = {}
local mt = { __index = _M }
function _M.new(self, str)
local resp = set... | apache-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Sealions_Den/mobs/Ultima.lua | 3 | 1757 | -----------------------------------
-- Area: Sealions Den
-- MOB: Ultima
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/msg");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(mob)
mob:setMo... | gpl-3.0 |
TheRikyHUN/fooniks | resources/phoenix_Skills/skills-client.lua | 2 | 3660 | -- Some stuff...
local SELF_DEBUG = false;
local debugSkill = 0;
local debugXP = 0;
local debugLevel = 0;
local showing = false;
local moveX = 0;
drawText = "......";
drawImage = ":phoenix_Skills/images/levelup.png";
-- Some values needed everywhere...
local player = getLocalPlayer( );
local rootElemen... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Great_Axe.lua | 17 | 1499 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Animated Great Axe
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
function onMobE... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Qulun_Dome/mobs/Diamond_Quadav.lua | 3 | 1543 | -----------------------------------
-- Area: Qulun_Dome
-- NM: Diamond_Quadav
-- Note: PH for Za Dha Adamantking PH
-----------------------------------
require("scripts/zones/Qulun_Dome/TextIDs");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/South_Gustaberg/npcs/Field_Manual.lua | 29 | 1063 | -----------------------------------
-- Field Manual
-- Area: South Gustaberg
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/fieldsofvalor");
-----------------------------------
-- onTrigger Action
------------------------------... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/AlTaieu/mobs/Aw_euvhi.lua | 21 | 1552 | -----------------------------------
-- Area: AlTaieu
-- MOB: Aw_euvhi
-----------------------------------
package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/AlTaieu/TextIDs");
require("scripts/globals/keyitems");
-----------------------------------
-- on... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Rabao/npcs/Dancing_Wolf.lua | 3 | 1655 | -----------------------------------
-- Area: Rabao
-- NPC: Dancing Wolf
-- Type: Standard NPC
-- @zone 247
-- !pos 7.619 7 81.209
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
----------------------------------... | gpl-3.0 |
ChargeIn/CandyUI | StarPanel/StarPanel.lua | 2 | 76961 | -----------------------------------------------------------------------------------------------
-- Client Lua Script for StarPanel
-- Copyright (c) NCsoft. All rights reserved
-----------------------------------------------------------------------------------------------
require "Window"
--------------------... | gpl-3.0 |
MRAHS/SuperGpSupporter | plugins/vote.lua | 615 | 2128 | do
local _file_votes = './data/votes.lua'
function read_file_votes ()
local f = io.open(_file_votes, "r+")
if f == nil then
print ('Created voting file '.._file_votes)
serialize_to_file({}, _file_votes)
else
print ('Values loaded: '.._file_votes)
f:close()
end
return loadfile (_file_votes)()... | gpl-2.0 |
openwrt-es/openwrt-luci | protocols/luci-proto-ipv6/luasrc/model/network/proto_6x4.lua | 8 | 1068 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local netmod = luci.model.network
local _, p
for _, p in ipairs({"6in4", "6to4", "6rd"}) do
local proto = netmod:register_protocol(p)
function proto.get_i18n(self)
if p == "6in4" then
return luci.i18n.... | apache-2.0 |
djianq/Game | Design/Tools/xls2lua/lua/数值表/Z资源配置表.xls.lua | 1 | 35883 | -- xls md5:45bd277591075734a07ebb284e82b739
return {
["__SheetOrder"] = {
["A"] = {"string", "图标资源", },
},
["图标资源"] = {
["A"] = {"string@ukey", "名称", "图标_巨石", "低级血瓶", "中级血瓶", "高级血瓶", "滚动条", "提示框", "物品Tips", "输入框", "完裂血石(6级)", "完裂血石(7级)", "关卡灰色星星", "关卡星星", "扫荡券", "金宝箱", "金宝箱打开", "银宝箱", "银宝箱打开", "铜宝箱", "铜宝箱打开", "bos... | mit |
RebootRevival/FFXI_Test | scripts/zones/Waughroon_Shrine/bcnms/up_in_arms.lua | 30 | 1813 | -----------------------------------
-- Area: Waughroon_Shrine
-- Name: up in arms
-- BCNM60
-----------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/zone... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Bastok_Mines/npcs/Elki.lua | 17 | 2546 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Elki
-- Starts Quests: Hearts of Mythril, The Eleventh's Hour
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/... | gpl-3.0 |
openwrt-es/openwrt-luci | applications/luci-app-nlbwmon/luasrc/controller/nlbw.lua | 5 | 5444 | -- Copyright 2017 Jo-Philipp Wich <jo@mein.io>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.nlbw", package.seeall)
function index()
entry({"admin", "nlbw"}, firstchild(), _("Bandwidth Monitor"), 80)
entry({"admin", "nlbw", "display"}, template("nlbw/display"), _("Display"), 1)
en... | apache-2.0 |
RebootRevival/FFXI_Test | scripts/globals/items/smoked_salmon.lua | 12 | 1269 | -----------------------------------------
-- ID: 4380
-- Item: smoked_salmon
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 2
-- Mind -3
-- Ranged Accuracy +1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------... | gpl-3.0 |
artzde/openwrt_tp-link_wr1043nd | feeds/xwrt/webif-iw-lua/files/usr/lib/lua/lua-xwrt/xwrt/page.lua | 18 | 10329 | --------------------------------------------------------------------------------
-- htmlpageClass.lua
--
-- Author(s) [in order of work date]:
-- Fabián Omar Franzotti
--
--------------------------------------------------------------------------------
--
-- usage : page = xwrtpageClass.new(title_of_page)
-- page ... | gpl-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Waughroon_Shrine/bcnms/operation_desert_swarm.lua | 30 | 1815 | -----------------------------------
-- Area: Waughroon_Shrine
-- Name: Operation desert swarm
-----------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/zo... | gpl-3.0 |
felixdae/skynet | lualib/ws_protocol.lua | 1 | 8931 | -- Copyright (C) Yichun Zhang (agentzh)
local bit = require "bit32"
local socket = require "socket"
local byte = string.byte
local char = string.char
local sub = string.sub
local band = bit.band
local bor = bit.bor
local bxor = bit.bxor
local lshift = bit.lshift
local rshift = bit.rshift
local tohex = bit.tohex
loc... | mit |
RebootRevival/FFXI_Test | scripts/globals/items/calico_comet.lua | 12 | 1340 | -----------------------------------------
-- ID: 5715
-- Item: Calico Comet
-- Food Effect: 5 Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----... | gpl-3.0 |
blackzw/openwrt_sdk_dev1 | staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/usr/lib/lua/luci/model/cbi/admin_network/proto_static.lua | 10 | 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 |
rafradek/wire | lua/wire/client/wire_listeditor.lua | 10 | 13858 | // A list editor. It allows reading editing and saving lists as *.txt files.
// It uses wire_expression2_browser for it's file browser.
// The files have an easy structure for easy editing. Rows are separated by '\n' and columns by '|'.
// Made by Grocel.
local PANEL = {}
AccessorFunc( PANEL, "m_strRootPath", "Root... | apache-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Metalworks/npcs/Mih_Ketto.lua | 3 | 1050 | -----------------------------------
-- Area: Metalworks
-- NPC: Mih Ketto
-- Type: Standard NPC
-- @zone 237
-- !pos 24.046 -17 32.751
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
require("scripts/zones/... | gpl-3.0 |
rafradek/wire | lua/entities/gmod_wire_speedometer.lua | 9 | 3119 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Speedometer"
ENT.WireDebugName = "Speedo"
function ENT:GetXYZMode()
return self:GetNetworkedBool( 0 )
end
function ENT:GetAngVel()
return self:GetNetworkedBool( 1 )
end
function ENT:SetModes( XYZMode, AngVel )
self:SetNetworkedBool(... | apache-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Windurst_Waters_[S]/npcs/Cattah_Pamjah.lua | 3 | 1062 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Cattah Pamjah
-- Type: Title Changer
-- @zone 94
-- !pos -13.564 -2 10.673
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
--... | gpl-3.0 |
petoju/awesome | lib/awful/wibar.lua | 2 | 13303 | ---------------------------------------------------------------------------
--- Wibox module for awful.
-- This module allows you to easily create wibox and attach them to the edge of
-- a screen.
--
--@DOC_awful_wibar_default_EXAMPLE@
--
-- You can even have vertical bars too.
--@DOC_awful_wibar_left_EXAMPLE@
--
-- @a... | gpl-2.0 |
CCAAHH/telegram-bot-supergroups | plugins/lyrics.lua | 695 | 2113 | do
local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs'
local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5'
local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect'
local function getInfo(query)
print('Getting info of ' .. query)
local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY
... | gpl-2.0 |
openwrt-es/openwrt-luci | modules/luci-base/luasrc/sgi/uhttpd.lua | 79 | 1956 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require "nixio.util"
require "luci.http"
require "luci.sys"
require "luci.dispatcher"
require "luci.ltn12"
function handle_request(env)
exectime = os.clock()
local renv = {
CONTENT_LENGTH = env.CONTENT_LEN... | apache-2.0 |
Munchotaur/wordgrinder | tests/simple-editing.lua | 3 | 1029 | require("tests/testsuite")
Cmd.InsertStringIntoParagraph("foo")
AssertEquals(1, #Document)
AssertEquals(1, #Document[1])
AssertEquals("foo", Document[1][1])
Cmd.DeletePreviousChar()
AssertEquals("fo", Document[1][1])
Cmd.InsertStringIntoParagraph("o bar")
AssertEquals(1, #Document)
AssertEquals(2, #Document[1])
As... | mit |
RebootRevival/FFXI_Test | scripts/globals/weaponskills/backhand_blow.lua | 25 | 1380 | -----------------------------------
-- Backhand Blow
-- Hand-to-Hand weapon skill
-- Skill Level: 100
-- Deals params.critical damage. Chance of params.critical hit varies with TP.
-- Aligned with the Breeze Gorget.
-- Aligned with the Breeze Belt.
-- Element: None
-- Modifiers: STR:30% ; DEX:30%
-- 100%TP 200%TP ... | gpl-3.0 |
bmichalo/MoonGen | test/tests/01-send.lua | 8 | 1672 | -- Function to test: Send
-- Test against: Network card speed.
local luaunit = require "luaunit"
local dpdk = require "dpdk"
local memory = require "memory"
local device = require "device"
local timer = require "timer"
local log = require "testlog"
local testlib = require "testlib"
local tconfig = require "tconfig"
... | mit |
RebootRevival/FFXI_Test | scripts/zones/Abyssea-Altepa/npcs/qm14.lua | 3 | 1402 | -----------------------------------
-- Zone: Abyssea-Altepa
-- NPC: qm14 (???)
-- Spawns Bennu
-- !pos ? ? ? 218
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/status");
-----------------------------------
-- onTrigger Action
-----------------------------------
func... | gpl-3.0 |
openwrt-es/openwrt-luci | applications/luci-app-rp-pppoe-server/luasrc/model/cbi/rp-pppoe-server.lua | 1 | 2038 | -- Copyright 2015 Daniel Dickinson <openwrt@daniel.thecshore.com>
-- Licensed to the public under the Apache License 2.0.
local m, s, o
local nixio = require "nixio"
m = Map("pppoe", translate("Roaring Penguin PPPoE Server"),
translate("PPPoE Server Configuration"))
s = m:section(TypedSection, "pppoe_server", tran... | apache-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Nashmau/npcs/Abihaal.lua | 17 | 1065 | -----------------------------------
-- Area: Nashmau
-- NPC: Abihaal
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
-----------------------------------
-- onTrade Action
-----... | gpl-3.0 |
PolyCement/swallow-squad | lib/anim8.lua | 14 | 8492 | local anim8 = {
_VERSION = 'anim8 v2.3.0',
_DESCRIPTION = 'An animation library for LÖVE',
_URL = 'https://github.com/kikito/anim8',
_LICENSE = [[
MIT LICENSE
Copyright (c) 2011 Enrique García Cota
Permission is hereby granted, free of charge, to any person obtaining a
copy of ... | mit |
tgserver2018/Tarfand.farsi | libs/JSON.lua | 1 | 35012 | -- -*- 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-3.0 |
tommo/mock | mock/tools/Achievement.lua | 1 | 4438 | --[[
* MOCK framework for Moai
* Copyright (C) 2012 Tommo Zhou(tommo.zhou@gmail.com). All rights reserved.
*
* 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
*... | mit |
llual/VIPTEAM | plugins/l1.lua | 2 | 2811 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ By : @shaD_o ▀▄ ▄▀
▀▄ ▄▀ BY dev (shaD_o) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY shaD_o ▀▄ ▄▀
▀▄ ▄▀ chhanale : @vip_team1 ▀▄ ▄▀
▀▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄▄▀... | gpl-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Uleguerand_Range/npcs/HomePoint#1.lua | 3 | 1251 | -----------------------------------
-- Area: Uleguerand_Range
-- NPC: HomePoint#1
-- !pos
-----------------------------------
package.loaded["scripts/zones/Uleguerand_Range/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Uleguerand_Range/TextIDs");
require("scripts/globals/homepoint");
... | gpl-3.0 |
ashang/koreader | frontend/luxl.lua | 14 | 17271 | --[[
This code was derived from the pico_xml project
which can be found here:
http://kd7yhr.org/bushbo/pico_xml.md
The original C code, written by: Brian O. Bush
Pure Lua Version written by: William A Adams
Dramatic Speed Improvements by: Robert G Jakabosky
References
http://www.faq... | agpl-3.0 |
RebootRevival/FFXI_Test | scripts/globals/items/zafmlug_bass.lua | 12 | 1327 | -----------------------------------------
-- ID: 4385
-- Item: zafmlug_bass
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
------... | gpl-3.0 |
blackzw/openwrt_sdk_dev1 | staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/usr/lib/lua/luci/webapi/Wlan.lua | 1 | 29458 | module("luci.webapi.Wlan", package.seeall)
local common = require('luci.webapi.Util')
local uci = require("luci.model.uci").cursor()
--[[
get wifi state
Parameters
responose value:
State: 0 off ,1 on
]]
function GetWlanState()
local rsp = {}
local state
rsp["State"] = 0 --0 off
flags = uci:foreach("wireless"... | gpl-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Windurst_Waters/npcs/Ajen-Myoojen.lua | 3 | 1057 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Ajen-Myoojen
-- Type: Standard NPC
-- @zone 238
-- !pos -44.542 -5.999 238.996
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-------... | gpl-3.0 |
petoju/awesome | tests/examples/sequences/client_rules/floating.lua | 4 | 1690 | --DOC_GEN_IMAGE --DOC_NO_USAGE
local module = ... --DOC_HIDE
local ruled = {client = require("ruled.client") } --DOC_HIDE
local awful = {tag = require("awful.tag"), layout = require("awful.layout")} --DOC_HIDE
awful.placement = require("awful.placement") --DOC_HIDE
require("awful.ewmh") --DOC_HIDE
screen[1]:fake_resiz... | gpl-2.0 |
blackzw/openwrt_sdk_dev1 | staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/usr/lib/lua/luci/webapi/RoutingRules.lua | 1 | 10355 | module("luci.webapi.RoutingRules", package.seeall)
local common = require('luci.webapi.Util')
--[[
Get Dynamic Routing information
Parameters
Return value:
"State":1,
"RipState": "1",
"Operation": "1",
"RipVerion": "0"
]]
function GetDynamicRouting()
local rsp = {}
local state = common.GetValue("ripd", "ripd... | gpl-2.0 |
RebootRevival/FFXI_Test | scripts/globals/mobskills/smoke_discharger.lua | 33 | 1301 | ---------------------------------------------------
-- Smoke_Discharger
-- Description:
-- Type: Magical
-- additional effect : Petrification.
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
-----... | gpl-3.0 |
darkonie/dcos | packages/adminrouter/extra/src/resty/http_headers.lua | 19 | 2236 | local rawget, rawset, setmetatable =
rawget, rawset, setmetatable
local str_find, str_lower, str_sub =
string.find, string.lower, string.sub
local _M = {
_VERSION = '0.10',
}
local function hyphenate(k)
local k_hyphened = ""
local match = false
local prev_pos = 0
repeat
... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.