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
FFXIOrgins/FFXIOrgins
scripts/zones/Rabao/npcs/Shiny_Teeth.lua
36
1675
----------------------------------- -- Area: Rabao -- NPC: Shiny Teeth -- Standard Merchant NPC -- @pos -30 8 99 247 ----------------------------------- package.loaded["scripts/zones/Rabao/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/zones/Rabao/Text...
gpl-3.0
suchipi/pac3
lua/pac3/core/client/libraries/webaudio/streams.lua
1
1339
-- made by Morten and CapsAdmin pac.webaudio = pac.webaudio or {} local webaudio = pac.webaudio webaudio.Streams = webaudio.Streams or {} webaudio.Streams.LastStreamId = 0 webaudio.Streams.Streams = {} function webaudio.Streams.CreateStream(url) --url = url:gsub("http[s?]://", "http://") if url:find("http",...
gpl-3.0
PioneerMakeTeam/Cretaceous
wicker/kernel_extensions/class.lua
5
5095
local GClass = _G.Class local assert, error = assert, error local type = type local rawget, rawset = rawget, rawset local pairs, ipairs = pairs, ipairs local next = next local getmetatable, setmetatable = getmetatable, setmetatable --- local Lambda = wickerrequire "paradigms.functional" pkgrequire "uuids" --- l...
mit
hydna/luahydna
hydna.lua
1
1364
local io = require("io") local http = require("socket.http") local ltn12 = require("ltn12") local hydna = {} function hydna.send(url, data, priority) priority = priority or 0 return do_request(url, data, priority) end function hydna.emit(url, data) return do_request(url, data, nil) end function do_re...
mit
FFXIOrgins/FFXIOrgins
scripts/zones/Metalworks/npcs/Nogga.lua
34
1203
----------------------------------- -- Area: Metalworks -- NPC: Nogga -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/zones/Metalworks/TextIDs"); ---...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Aht_Urhgan_Whitegate/npcs/Naja_Salaheem.lua
7
2566
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Naja Salaheem -- Type: Standard NPC -- @pos 22.700 -8.804 -45.591 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missio...
gpl-3.0
Capster/Metro
lua/metro/ui/dcolorcube.lua
2
3343
--[[ _ ( ) _| | __ _ __ ___ ___ _ _ /'_` | /'__`\( '__)/' _ ` _ `\ /'_` ) ( (_| |( ___/| | | ( ) ( ) |( (_| | `\__,_)`\____)(_) (_) (_) (_)`\__,_) DColorCube --]] local PANEL = {} AccessorFunc( PANEL, "m_Hue", "Hue" ) AccessorFunc( PANEL, "m_BaseRGB", "BaseRGB" ) AccessorFunc( PANEL, "m_...
apache-2.0
wilbefast/you-ordered-a-pizza
src/debugWorldDraw.lua
2
2709
local seed = 123 local rng = love.math.newRandomGenerator(seed) local function drawFixture(fixture) local shape = fixture:getShape() local shapeType = shape:getType() if (fixture:isSensor()) then love.graphics.setColor(0,0,255,96) else love.graphics.setColor(rng:random(32,255),rng:random(32,255),rn...
mit
FFXIOrgins/FFXIOrgins
scripts/globals/spells/mages_ballad_iii.lua
4
1187
----------------------------------------- -- Spell: Mage's Ballad III -- Gradually restores target's MP. ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function OnMagicCastingCh...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/effects/prowess_killer.lua
34
2312
----------------------------------- -- -- EFFECT_PROWESS : "Killer" effects bonus -- ----------------------------------- ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) target:addMod(MOD_VERMIN_KILLER, effect:getPower()...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/items/garlic_cracker_+1.lua
35
1345
----------------------------------------- -- ID: 4280 -- Item: garlic_cracker_+1 -- Food Effect: 5Min, All Races ----------------------------------------- -- Magic Regen While Healing 8 -- Undead Killer 5 -- Blind Resist 5 ----------------------------------------- require("scripts/globals/status"); ------...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/abilities/maguss_roll.lua
6
1407
----------------------------------- -- Ability: Magus's Roll ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); ----------------------------------- -- OnUseAbility ----------------------------------- function OnAbilityCheck(player,target,ability) l...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/items/pipin_hot_popoto.lua
35
1291
----------------------------------------- -- ID: 4282 -- Item: pipin_hot_popoto -- Food Effect: 60Min, All Races ----------------------------------------- -- HP 25 -- Vitality 3 -- HP recovered while healing 1 ----------------------------------------- require("scripts/globals/status"); -------------------...
gpl-3.0
joshimoo/Algorithm-Implementations
Depth_Limited_Search/Lua/Yonaba/dls.lua
26
3110
-- Generic Depth-Limited search algorithm implementation -- See : http://en.wikipedia.org/wiki/Depth-limited_search -- Notes : this is a generic implementation of Depth-Limited search algorithm. -- It is devised to be used on any type of graph (point-graph, tile-graph, -- or whatever. It expects to be initialized with...
mit
Capster/Metro
lua/metro/ui/listview.lua
1
15311
local PANEL = {} AccessorFunc( PANEL, "m_bDirty", "Dirty", FORCE_BOOL ) AccessorFunc( PANEL, "m_bSortable", "Sortable", FORCE_BOOL ) AccessorFunc( PANEL, "m_iHeaderHeight", "HeaderHeight" ) AccessorFunc( PANEL, "m_iDataHeight", "DataHeight" ) AccessorFunc( PANEL, "m_bMultiSelect", "MultiSele...
apache-2.0
FFXIOrgins/FFXIOrgins
scripts/zones/Konschtat_Highlands/npcs/qm1.lua
34
1376
----------------------------------- -- Area: Konschtat Highlands -- NPC: qm1 (???) -- Continues Quests: Past Perfect -- @pos -201 16 80 108 ----------------------------------- package.loaded["scripts/zones/Konschtat_Highlands/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quest...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/items/colored_egg.lua
35
1274
----------------------------------------- -- ID: 4487 -- Item: colored_egg -- Food Effect: 30Min, All Races ----------------------------------------- -- Health 20 -- Magic 20 -- Attack 3 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- ...
gpl-3.0
msburgess3200/PERP
gamemodes/perp/gamemode/items/furniture_bathtub.lua
1
1263
local ITEM = {}; ITEM.ID = 6; ITEM.Reference = "furniture_bathtub"; ITEM.Name = "Bathtub"; ITEM.Description = "A large bathtub. Looks like it could hold a lot of water.\n\nLeft click to spawn as prop."; ITEM.Weight = 10; ITEM.Cost = 1000; ITEM.MaxStack = 100; ITEM.InventoryModel...
mit
PioneerMakeTeam/Cretaceous
wicker/init/kernel_components/extra_utilities.lua
5
1981
--[[ Copyright (C) 2013 simplex 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 distributed in the hope that ...
mit
msburgess3200/PERP
gamemodes/perp/entities/weapons/weapon_perp_paramedic_defib/shared.lua
1
3110
if SERVER then AddCSLuaFile("shared.lua") end if CLIENT then SWEP.PrintName = "Defibrillator" SWEP.Slot = 2 SWEP.SlotPos = 1 SWEP.DrawAmmo = false SWEP.DrawCrosshair = false end SWEP.Author = "RedMist" SWEP.Instructions = "Left Click: Attempt to shock victim back to life. Right Click: Charge defibrillator." SW...
mit
facebook/fbnn
fbnn/SparseKmax.lua
1
5121
-- Copyright 2004-present Facebook. All Rights Reserved. local sparse = require 'sparse' --[[ This module performs a sparse embedding with the following process: 1. Perform a dense embedding 2. Apply a linear transformation (to high dimensional space) 3. Make the output k-sparse The parameters of the dense embeddin...
bsd-3-clause
jonathanelscpt/sip-normalization-scripts
sip-normalization-scripts/libra-from-metadata.lua
1
1567
--[[ Author : Jonathan Els Version : 1.0 Description: Workaround for defect in Libra Recorder CTI Matching ignoring recording headers (.e.g. x-nearendaddr and x-farendaddr), which contain the exact DNs required for matching purposes. From/RURI may (correctly) c...
mit
FFXIOrgins/FFXIOrgins
scripts/globals/weaponskills/circle_blade.lua
6
1227
----------------------------------- -- Circle Blade -- Sword weapon skill -- Skill Level: 150 -- Delivers an area of effect attack. Attack radius varies with TP. -- Aligned with the Aqua Gorget & Thunder Gorget. -- Aligned with the Aqua Belt & Thunder Belt. -- Element: None -- Modifiers: STR:35% -- 10...
gpl-3.0
Gael-de-Sailly/minetest-minetestforfun-server
mods/nether/nether/guide.lua
3
15924
local cube = minetest.inventorycube -- the content of the guide local guide_infos = { { description = "Mushrooms", {"text", "Nether mushrooms can be found on the nether's ground and\n".. "on netherrack soil, it can be dug by hand."}, {"image", {1, 1, "riesenpilz_nether_shroom_side.png"}}, {"y", 0.2}, {"t...
unlicense
sjznxd/lc-20130127
applications/luci-statistics/luasrc/model/cbi/luci_statistics/ping.lua
80
1397
--[[ Luci configuration model for statistics - collectd ping plugin 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 ...
apache-2.0
fartoverflow/naev
dat/missions/neutral/cargo.lua
8
4208
--[[ -- These are regular cargo delivery missions. Pay is low, but so is difficulty. -- Most of these missions require BULK ships. Not for small ships! --]] include "dat/scripts/cargo_common.lua" include "dat/scripts/numstring.lua" lang = naev.lang() if lang == "es" then else -- default english misn_desc = "%s in...
gpl-3.0
velukh/MplusLedger
Libs/AceAddon-3.0/AceAddon-3.0.lua
17
26462
--- **AceAddon-3.0** provides a template for creating addon objects. -- It'll provide you with a set of callback functions that allow you to simplify the loading -- process of your addon.\\ -- Callbacks provided are:\\ -- * **OnInitialize**, which is called directly after the addon is fully loaded. -- * **OnEnable...
mit
zaeem998/vtbot
libs/fakeredis.lua
650
40405
local unpack = table.unpack or unpack --- Bit operations local ok,bit if _VERSION == "Lua 5.3" then bit = (load [[ return { band = function(x, y) return x & y end, bor = function(x, y) return x | y end, bxor = function(x, y) return x ~ y end, bnot = function(x) return ~x end, rshift = function(x...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/abilities/pets/aero_ii.lua
6
1159
--------------------------------------------------- -- Aero 2 --------------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); require("/scripts/globals/monstertpmoves"); require("/scripts/globals/magic"); ------------------------------------------...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/abilities/pets/healing_breath_i.lua
6
1272
--------------------------------------------------- -- Healing Breath I --------------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); require("/scripts/globals/monstertpmoves"); --------------------------------------------------- function OnAb...
gpl-3.0
gadLinux/thrift
test/lua/test_basic_server.lua
30
3451
-- 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 may n...
apache-2.0
subzrk/BadRotations
Libs/LibSpellRange-1.0/libs/LibStub/tests/test.lua
86
2013
debugstack = debug.traceback strmatch = string.match loadfile("../LibStub.lua")() local lib, oldMinor = LibStub:NewLibrary("Pants", 1) -- make a new thingy assert(lib) -- should return the library table assert(not oldMinor) -- should not return the old minor, since it didn't exist -- the following is to create data ...
gpl-3.0
soroushwilson/wilson1
plugins/help_fa.lua
1
3808
do function run(msg, matches) if msg.to.type == 'chat' and is_momod(msg) then return 'Tele soroush Command List'.. [[ 💙 ليست دستورات به زبان فارسي ❤️ 🔴 اخراج [کد،ايدي،ريپلی] 🔹شخص مورد نظر از گروه اخراج ميشود. 🔴 بن ‌[ايدي،کد،ريپلی] 🔹شخص مورد نظر از گروه محروم ميشود 🔴 حذف بن [کد،ايدي،ریپلی] 🔹شخص مورد نظر از م...
gpl-2.0
hacker44-h44/1104
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
sjznxd/luci-0.11-aa
modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua
5
13985
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008-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 htt...
apache-2.0
vietlq/luasocket
etc/forward.lua
61
2077
-- load our favourite library local dispatch = require("dispatch") local handler = dispatch.newhandler() -- make sure the user knows how to invoke us if table.getn(arg) < 1 then print("Usage") print(" lua forward.lua <iport:ohost:oport> ...") os.exit(1) end -- function to move data from one socket to t...
mit
VideahGams/NumberFucker3DS
game/main.lua
1
7243
local board = {} local size_w = 3 local size_h = 3 local n local min, max = 1, 9 local gameover = false local biggest_x, biggest_y local bigfont = love.graphics.newFont("Junction-bold.ttf", 54) local smallfont = love.graphics.newFont("Junction-bold.ttf", 32) local anim_from_x, anim_from_y local anim...
mit
TW1STaL1CKY/pac3
lua/pac3/core/client/parts/gesture.lua
2
2749
local PART = {} PART.ClassName = "gesture" PART.NonPhysical = true PART.ThinkTime = 0 PART.Group = 'entity' PART.Icon = 'icon16/thumb_up.png' pac.StartStorableVars() pac.GetSet(PART, "Loop", false) pac.GetSet(PART, "GestureName", "", {editor_panel = "sequence"}) pac.GetSet(PART, "SlotName", "attackreloa...
gpl-3.0
adamsumm/SMBRNN
Torch/model/RNN.lua
6
1135
local RNN = {} function RNN.rnn(input_size, rnn_size, n, dropout) -- there are n+1 inputs (hiddens on each layer and x) local inputs = {} table.insert(inputs, nn.Identity()()) -- x for L = 1,n do table.insert(inputs, nn.Identity()()) -- prev_h[L] end local x, input_size_L local outputs = {} fo...
mit
peval/Atlas
lib/load-multi.lua
39
13282
--[[ $%BEGINLICENSE%$ Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is dis...
gpl-2.0
teahouse/FWServer
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
zhouxiaoxiaoxujian/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
MOSAVI17/Gbot
plugins/media.lua
297
1590
do local function run(msg, matches) local receiver = get_receiver(msg) local url = matches[1] local ext = matches[2] local file = download_to_file(url) local cb_extra = {file_path=file} local mime_type = mimetype.get_content_type_no_sub(ext) if ext == 'gif' then print('send_file') send_docum...
gpl-2.0
MAXtgBOT/Telemax-TG
plugins/media.lua
297
1590
do local function run(msg, matches) local receiver = get_receiver(msg) local url = matches[1] local ext = matches[2] local file = download_to_file(url) local cb_extra = {file_path=file} local mime_type = mimetype.get_content_type_no_sub(ext) if ext == 'gif' then print('send_file') send_docum...
gpl-2.0
mahdmahdia/DBDB
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
dddaaaddd/super_me
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
mahdikord/mahdibaryaji
libs/redis.lua
566
1214
local Redis = require 'redis' local FakeRedis = require 'fakeredis' local params = { host = os.getenv('REDIS_HOST') or '127.0.0.1', port = tonumber(os.getenv('REDIS_PORT') or 6379) } local database = os.getenv('REDIS_DB') local password = os.getenv('REDIS_PASSWORD') -- Overwrite HGETALL Redis.commands.hgetall = ...
gpl-2.0
punisherbot/test
libs/redis.lua
566
1214
local Redis = require 'redis' local FakeRedis = require 'fakeredis' local params = { host = os.getenv('REDIS_HOST') or '127.0.0.1', port = tonumber(os.getenv('REDIS_PORT') or 6379) } local database = os.getenv('REDIS_DB') local password = os.getenv('REDIS_PASSWORD') -- Overwrite HGETALL Redis.commands.hgetall = ...
gpl-2.0
kastnerkyle/MemNN
MemN2N-lang-model/main.lua
18
5587
-- Copyright (c) 2015-present, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. require('xlua') r...
bsd-3-clause
routek/qMp
packages/qmp-system/files/usr/lib/lua/luci/controller/qmp.lua
1
3527
--[[ Copyright (C) 2011 Fundacio Privada per a la Xarxa Oberta, Lliure i Neutral guifi.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 ...
gpl-2.0
sjznxd/luci-0.11-aa
libs/sgi-luci/luasrc/ttpd/handler/luci.lua
53
1923
--[[ HTTP server implementation for LuCI - luci handler (c) 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....
apache-2.0
FFXIOrgins/FFXIOrgins
scripts/zones/West_Sarutabaruta/npcs/Naguipeillont_RK.lua
8
2962
----------------------------------- -- Area: West Sarutabaruta -- NPC: Naguipeillont, R.K. -- Type: Outpost Conquest Guards -- @pos -11.322 -13.459 317.696 115 ----------------------------------- package.loaded["scripts/zones/West_Sarutabaruta/TextIDs"] = nil; ----------------------------------- require("scripts/glob...
gpl-3.0
dcelasun/thrift
lib/lua/TTransport.lua
115
2800
-- -- 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...
apache-2.0
msburgess3200/PERP
gamemodes/perp/gamemode/vehicles/Old Cars/swat_van.lua
1
2506
/////////////////////////////// // © 2009-2010 Pulsar Effect // // All rights reserved // /////////////////////////////// // This material may not be // // reproduced, displayed, // // modified or distributed // // without the express prior // // written permission of the // // the copyright holder. // ...
mit
Mogara/QSanguosha
extension-doc/16-RoleJudgement.lua
15
15976
--[[ 在前面五个文档中,您已经学习了在开启身份预知的情况下,让 AI 按照您的要求去工作的所有基本知识了。 为了真正熟悉 AI 的编写,接下来您需要做的只是不断地模仿和练习。 下面你可以根据自己的情况作出选择: + 如果您对身份判断不感兴趣,或者认为您添加的技能和卡牌对身份判断影响很小。 您可以直接跳到 17-Example.lua,并且仅仅阅读其中与身份判断无关的部分。 + 如果您希望进一步了解身份判断部分的 AI,欢迎继续阅读本文档。 本文档将集中介绍 smart-ai.lua 中第二部分“身份、动机、仇恨值”的内容。 首先需要树立一个概念,在一局游戏中,所有的 AI 共享同一套身份判断有关的数据。 而并不是像一些人想象的...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Norg/npcs/Mamaulabion.lua
19
7883
----------------------------------- -- Area: Norg -- NPC: Mamaulabion -- Starts and finishes Quest: Mama Mia -- @zone 252 -- @pos -57 -9 68 (88) --CSIDs for Mamaulabion --0x005D / 93 = Standard --0x00BF / 191 = start quest --0x00C0 / 192 = quest accepted --0x00C1 / 193 = given an item --0x00C2 / 194 = give...
gpl-3.0
Crigges/WurstScript
Wurstpack/wehack.lua
1
24809
-- This file is executed once on we start up. The state perseveres -- through callbacks -- -- wehack.runprocess: Wait for exit code, report errors (grimext) -- wehack.runprocess2: Wait for exit code, don't report errors (jasshelper) -- wehack.execprocess: Don't wait for exit code (War3) -- grimregpath = "Software\\...
apache-2.0
m2mselect/owrt
feeds/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 ...
gpl-2.0
FFXIOrgins/FFXIOrgins
scripts/zones/Aht_Urhgan_Whitegate/npcs/Gigirk.lua
34
1031
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Gigirk -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); -----------...
gpl-3.0
april-org/april-ann
packages/basics/matrix/lua_src/generic_serialization.lua
2
6704
local function archive_wrapper(s) if class.is_a(s, aprilio.package) then assert(s:number_of_files() == 1, "Expected only 1 file in the package") return s:open(1) else return s end end matrix.__generic__ = matrix.__generic__ or {} matrix.__generic__.__make_generic_to_lua_string__ = function(matrix_...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/RuLude_Gardens/npcs/Neraf-Najiruf.lua
13
2032
----------------------------------- -- Area: Ru'Lud Gardens -- NPC: Neraf-Najiruf -- Involved in Quests: Save my Sister -- @zone 243 -- @pos -36 2 60 ----------------------------------- package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Leafallia/Zone.lua
30
1242
----------------------------------- -- -- Zone: Leafallia -- ----------------------------------- package.loaded["scripts/zones/Leafallia/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Leafallia/TextIDs"); ----------------------------------- -- onIniti...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Castle_Oztroja/npcs/qm2.lua
13
1407
----------------------------------- -- Area: Castle Oztroja -- NPC: qm2 (???) -- Used In Quest: Whence Blows the Wind -- @pos -100 -63 58 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); requ...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/globals/spells/bluemagic/body_slam.lua
35
1710
----------------------------------------- -- Spell: Body Slam -- Delivers an area attack. Damage varies with TP -- Spell cost: 74 MP -- Monster Type: Dragon -- Spell Type: Physical (Blunt) -- Blue Magic Points: 4 -- Stat Bonus: VIT+1, MP+5 -- Level: 62 -- Casting Time: 1 seconds -- Recast Time: 27.75 seconds -- Skillch...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Open_sea_route_to_Mhaura/Zone.lua
13
1464
----------------------------------- -- -- Zone: Open_sea_route_to_Mhaura (47) -- ----------------------------------- package.loaded["scripts/zones/Open_sea_route_to_Mhaura/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Open_sea_route_to_Mhaura/TextIDs"); --------------------------------...
gpl-3.0
squeek502/luvit
tests/test-http-post-1mb.lua
11
2276
--[[ Copyright 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 or agr...
apache-2.0
Kosmos82/kosmosdarkstar
scripts/zones/Lower_Jeuno/npcs/_l02.lua
13
1556
----------------------------------- -- Area: Lower Jeuno -- NPC: Streetlamp -- Involved in Quests: Community Service -- @zone 245 -- @pos -89.022 -0 -123.317 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/sett...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/globals/items/serving_of_mille_feuille.lua
18
1471
----------------------------------------- -- ID: 5559 -- Item: Serving of Mille Feuille -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +8 -- MP +15 -- Intelligence +1 -- HP Recoverd while healing 1 -- MP Recovered while healing 1 ----------------------------------...
gpl-3.0
tizzybec/30log
specs/instances.lua
3
4271
require 'luacov' local class = require '30log' context('Instantiation', function() local Window, window before(function() Window = class('Window', {size = 100}) function Window:setSize(size) self.size = size end window = Window:new() end) test('instances are created via new()',function() assert_true(cl...
mit
vinzenz/premake
src/_premake_main.lua
7
3768
-- -- _premake_main.lua -- Script-side entry point for the main program logic. -- Copyright (c) 2002-2009 Jason Perkins and the Premake project -- local scriptfile = "premake4.lua" local shorthelp = "Type 'premake4 --help' for help" local versionhelp = "premake4 (Premake Build Script Generator) %s" --...
gpl-2.0
yasinghorbani/seed
plugins/tr.lua
14
1877
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
angel2d/angel2d
Code/Angel/Scripting/EngineScripts/sugar.lua
7
3727
------------------------------------------------------------------------------ -- Copyright (C) 2008-2014, Shane Liesegang -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- * Redist...
bsd-3-clause
vizewang/skynet
service/launcher.lua
51
3199
local skynet = require "skynet" local core = require "skynet.core" require "skynet.manager" -- import manager apis local string = string local services = {} local command = {} local instance = {} -- for confirm (function command.LAUNCH / command.ERROR / command.LAUNCHOK) local function handle_to_address(handle) retu...
mit
hawkthorne/hawkthorne-client-lua
src/verticalparticles.lua
3
1546
---------------------------------------------------------------------- -- verticalparticles.lua -- Manages the particles for the starry select menu background. -- Created by tjvezina ---------------------------------------------------------------------- Particle = {} Particle.__index = Particle local window = require...
mit
tinymins/MY
MY_Toolbox/src/MY_FooterTip.lua
1
11296
-------------------------------------------------------- -- This file is part of the JX3 Mingyi Plugin. -- @link : https://jx3.derzh.com/ -- @desc : ºÃÓÑ¡¢°ï»á³ÉÔ±½ÅÏÂÐÕÃûÏÔʾ -- @author : ÜøÒÁ @Ë«ÃÎÕò @×··çõæÓ° -- @modifier : Emil Zhai (root@derzh.com) -- @copyright: Copyright (c) 2013 EMZ Kingsoft Co., Ltd....
bsd-3-clause
Kosmos82/kosmosdarkstar
scripts/zones/Northern_San_dOria/npcs/Eperdur.lua
12
5419
----------------------------------- -- Area: Northern San d'Oria -- NPC: Eperdur -- Starts and Finishes Quest: Altana's Sorrow (finish), Acting in Good Faith (finish), Healing the Land, -- @pos 129 -6 96 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; --------...
gpl-3.0
King098/LuaFramework-ToLua-FairyGUI
Assets/LuaFramework/ToLua/Lua/jit/v.lua
5
5769
---------------------------------------------------------------------------- -- Verbose mode of the LuaJIT compiler. -- -- Copyright (C) 2005-2017 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
mit
BooM-amour/superbomb
plugins/ingroup.lua
371
44212
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
harveyhu2012/luci
applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua
78
1844
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Manuel Munz <freifunk at somakoma dot de> 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...
apache-2.0
maysam0111/ss
plugins/invite.lua
2
1317
do local function callbackres(extra, success, result) local user = 'user#id'..result.peer_id local chat = 'chat#id'..extra.chatid local channel = 'channel#id'..extra.chatid if is_banned(result.id, extra.chatid) then send_large_msg(chat, 'User is banned.') send_large_msg(channel, 'User is ba...
gpl-2.0
Kosmos82/kosmosdarkstar
scripts/globals/mobskills/PL_Heavy_Stomp.lua
33
1168
--------------------------------------------- -- Heavy Stomp -- -- Description: Deals heavy damage to targets within an area of effect. Additional effect: Paralysis -- Type: Physical -- Utsusemi/Blink absorb: 2-3 shadows -- Range: Unknown radial -- Notes: Paralysis effect has a very long duration. ---------------------...
gpl-3.0
hawkthorne/hawkthorne-client-lua
src/nodes/material.lua
1
1656
----------------------------------------------- -- material.lua -- Represents a material when it is in the world -- Created by HazardousPeach ----------------------------------------------- local controls = require 'controls' local Item = require 'items/item' local Material = {} Material.__index = Material Material.i...
mit
Kosmos82/kosmosdarkstar
scripts/zones/Spire_of_Dem/npcs/_0j1.lua
39
1330
----------------------------------- -- Area: Spire_of_Dem -- NPC: web of regret ----------------------------------- package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/zones/Spire_of_Dem/TextIDs"); -------------------------...
gpl-3.0
firebaugh/Digitowls
Lib/Platform/Nao/Body/dcm.lua
4
1300
module(..., package.seeall); require("shm"); require("carray"); sensorShm = shm.open('dcmSensor'); actuatorShm = shm.open('dcmActuator'); sensor = {}; actuator = {}; function get_sensor_shm(shmkey, index) if (index) then return sensor[shmkey][index]; else local t = {}; for i = 1,#sensor[shmkey] do ...
gpl-3.0
justincormack/snabbswitch
lib/ljsyscall/syscall/netbsd/syscalls.lua
24
4076
-- BSD specific syscalls local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string = require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string local abi = require "syscall.abi" r...
apache-2.0
Igalia/snabb
lib/ljsyscall/syscall/netbsd/syscalls.lua
24
4076
-- BSD specific syscalls local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string = require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string local abi = require "syscall.abi" r...
apache-2.0
aStonedPenguin/fprp
entities/weapons/stunstick/shared.lua
1
6191
AddCSLuaFile(); if CLIENT then SWEP.PrintName = "Stun Stick" SWEP.Slot = 0 SWEP.SlotPos = 5 SWEP.DrawAmmo = false SWEP.DrawCrosshair = false end SWEP.Base = "weapon_cs_base2" SWEP.Author = "fprp Developers" SWEP.Instructions = "Left click to discipline\nRight click to kill\nReload to threaten" SWEP.Contact = ""...
mit
Kosmos82/kosmosdarkstar
scripts/zones/Beaucedine_Glacier/TextIDs.lua
13
1124
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6562; -- You cannot obtain the item. Come back after sorting your inventory. FULL_INVENTORY_AFTER_TRADE = 6564; -- You cannot obtain the #. Try trading again after sorting your inventory. ITEM_OBTAINED = 6565; -- Obtained:...
gpl-3.0
harveyhu2012/luci
applications/luci-asterisk/luasrc/model/cbi/asterisk/trunk_sip.lua
80
2561
--[[ LuCI - Lua Configuration Interface Copyright 2008 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 $Id$ ]]-- l...
apache-2.0
Kosmos82/kosmosdarkstar
scripts/zones/QuBia_Arena/mobs/Trion.lua
8
1489
----------------------------------- -- Area: qubia arena -- MOB: Trion -- the heir to the light sando 9-2 ----------------------------------- package.loaded["scripts/zones/QuBia_Arena/TextIDs"] = nil; ----------------------------------- require("scripts/zones/QuBia_Arena/TextIDs"); require("scripts/globals/status"); r...
gpl-3.0
Cadene/torch7
torchcwrap.lua
54
15111
local wrap = require 'cwrap' local types = wrap.types types.Tensor = { helpname = function(arg) if arg.dim then return string.format("Tensor~%dD", arg.dim) else return "Tensor" end end, declare = function(arg...
bsd-3-clause
wingo/snabbswitch
lib/ljsyscall/syscall/syscalls.lua
13
33583
-- choose correct syscalls for OS, plus shared calls -- note that where functions are identical if present but may be missing they can also go here -- note that OS specific calls are loaded at the end so they may override generic calls here local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs,...
apache-2.0
Kosmos82/kosmosdarkstar
scripts/zones/Southern_San_dOria/npcs/Raminel.lua
13
4948
----------------------------------- -- Area: Southern San d'Oria -- NPC: Raminel -- Involved in Quests: Riding on the Clouds -- @zone 230 -- @pos -56 2 -21 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals...
gpl-3.0
Nax/citizenhack
dat/Rog-fila.lua
2
1796
-- NetHack 3.7 Rogue.des $NHDT-Date: 1432512784 2015/05/25 00:13:04 $ $NHDT-Branch: master $:$NHDT-Revision: 1.11 $ -- Copyright (c) 1992 by Dean Luick -- NetHack may be freely redistributed. See license for details. -- -- des.room({ type = "ordinary", contents = function() des.stair("up") ...
mit
mynameiscraziu/body
plugins/sss.lua
44
9652
local function is_user_whitelisted(id) local hash = 'whitelist:user#id'..id local white = redis:get(hash) or false return white end local function is_chat_whitelisted(id) local hash = 'whitelist:chat#id'..id local white = redis:get(hash) or false return white end local function kick_user(user_id, chat_id)...
gpl-2.0
Kosmos82/kosmosdarkstar
scripts/globals/spells/bluemagic/mind_blast.lua
26
1989
----------------------------------------- -- Spell: Mind Blast -- Deals lightning damage to an enemy. Additional effect: Paralysis -- Spell cost: 82 MP -- Monster Type: Demons -- Spell Type: Magical (Lightning) -- Blue Magic Points: 4 -- Stat Bonus: MP+5 MND+1 -- Level: 73 -- Casting Time: 3 seconds -- Recast Time: 30 ...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/globals/spells/shellra_v.lua
26
1101
----------------------------------------- -- Spell: Shellra ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target,spel...
gpl-3.0
harveyhu2012/luci
modules/admin-full/luasrc/model/cbi/admin_system/fstab/swap.lua
84
1922
--[[ LuCI - Lua Configuration Interface Copyright 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 $Id$ ]]-- lo...
apache-2.0
april-org/april-ann
packages/ann/optimizer/test/test-digits-l1.lua
3
5360
mathcore.set_use_cuda_default(util.is_cuda_available()) -- local check = utest.check local T = utest.test -- T("L1TestDigits", function() -- un generador de valores aleatorios... y otros parametros bunch_size = tonumber(arg[1]) or 64 semilla = 1234 weights_random = random(semilla) descrip...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/globals/weaponskills/flash_nova.lua
9
1395
----------------------------------- -- Skill level: 290 -- Delivers light elemental damage. Additional effect: Flash. Chance of effect varies with TP. -- Generates a significant amount of Enmity. -- Does not stack with Sneak Attack -- Aligned with Aqua Gorget. -- Aligned with Aqua Belt. -- Properties: -- Element: Light...
gpl-3.0