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 |
|---|---|---|---|---|---|
Arashbrsh/copyuz | plugins/banhammer.lua | 294 | 10470 | 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 |
FFXIOrgins/FFXIOrgins | scripts/zones/Windurst_Walls/npcs/Moan-Maon.lua | 38 | 1408 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Moan-Maon
-- Type: Standard NPC
-- @pos 88.244 -6.32 148.912 239
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scr... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Zeruhn_Mines/npcs/Zelman.lua | 34 | 1737 | -----------------------------------
-- Area: Zeruhn Mines
-- NPC: Zelman
-- Involved In Quest: Groceries
-----------------------------------
package.loaded["scripts/zones/Zeruhn_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
... | gpl-3.0 |
Mogara/QSanguosha | lua/about_us.lua | 6 | 10518 | --[[********************************************************************
Copyright (c) 2013-2014 - QSanguosha-Rara
This file is part of QSanguosha-Hegemony.
This game 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... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Aht_Urhgan_Whitegate/npcs/Mariyaam.lua | 38 | 1063 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Mariyaam
-- Type: Item Deliverer
-- @pos -125 -6 90 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/T... | gpl-3.0 |
IGGINC/NFDemo | Common/NFDataCfg/ScriptModule/script_init.lua | 3 | 1628 | --package.path = '../../NFDataCfg/Script/?.lua;'
pLuaScriptModule = nil;
pPluginManager = nil;
function init_script_system(xPluginManager,xLuaScriptModule)
pPluginManager = xPluginManager;
pLuaScriptModule = xLuaScriptModule;
io.write("\nHello Lua pPluginManager:" .. tostring(pPluginManager) .. " pLuaScriptModule... | mit |
kjk/volante | premake5.lua | 1 | 1882 | workspace "Volante"
configurations { "Debug", "Release" }
platforms { "Any CPU" }
flags { "Symbols" }
defines { "WITH_PATRICIA", "WITH_REPLICATION", "WITH_OLD_BTREE" }
filter "action:vs*"
location "vs2015"
filter "action:monodevelop"
location "monodevelop"
defines { "MONO" }
filter {}
start... | mit |
AliKhodadad/zedspam | plugins/admin.lua | 53 | 2402 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(rec... | gpl-2.0 |
aosee1h1/AOSEE_2H2 | plugin/invite.lua | 43 | 1335 | do
local function callbackres(extra, success, result)
--vardump(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(c... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/omniscience.lua | 4 | 4732 | -----------------------------------
-- Omniscience
-- Staff weapon skill
-- Skill Level: N/A
-- Lowers target's magic attack. Duration of effect varies with TP. Tupsimati: Aftermath effect varies with TP.
-- Reduces enemy's magic attack by -10.
-- Available only after completing the Unlocking a Myth (Schola... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/globals/mobskills/Rime_Spray.lua | 33 | 1448 | ---------------------------------------------
-- Rime Spray
--
-- Description: Deals Ice damage to enemies within a fan-shaped area, inflicting them with Frost and All statuses down.
-- Type: Breath
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Unknown cone
-- Notes:
----------------------------------------... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/zones/Mount_Kamihr/Zone.lua | 30 | 1254 | -----------------------------------
--
-- Zone: Mount Kamihr
--
-----------------------------------
package.loaded["scripts/zones/Mount_Kamihr/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Mount_Kamihr/TextIDs");
-----------------------------------
--... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/zones/Quicksand_Caves/npcs/_5sc.lua | 13 | 1253 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Ornate Door
-- Door blocked by Weight system
-- @pos -410 0 662 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Caves/TextIDs... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/zones/Windurst_Waters/npcs/Tosuka-Porika.lua | 13 | 6103 | -----------------------------------
-- 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 -... | gpl-3.0 |
martin-traverse/premake-core | tests/actions/xcode/test_xcode_project.lua | 1 | 56917 | --
-- tests/actions/xcode/test_xcode_project.lua
-- Automated test suite for Xcode project generation.
-- Copyright (c) 2009-2011 Jason Perkins and the Premake project
--
local suite = test.declare("xcode_project")
local xcode = premake.xcode
------------------------------------------------------------------------... | bsd-3-clause |
Kosmos82/kosmosdarkstar | scripts/zones/Windurst_Waters_[S]/npcs/Cattah_Pamjah.lua | 13 | 1065 | -----------------------------------
-- 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 |
firebaugh/Digitowls | WebotsController/Player.old/Motion/keyframes/km_Webots_OP_KickForwardRight.lua | 19 | 5537 | local mot = {};
mot.servos = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22};
mot.keyframes = {
{
angles = {-0.052, 0.051, 0.911, 0.661, -0.512, -0.827, -0.232, -0.011, -0.387, 1.355, -0.779, 0.048, -0.232, -0.023, -0.357, 1.338, -0.792, 0.003, 1.226, -0.457, 1.300, 0.391, },
stiffness = {0.900, 0.... | gpl-3.0 |
firebaugh/Digitowls | WebotsController/Player/Motion/keyframes/km_Nao_KickForwardRight_old.lua | 19 | 5537 | local mot = {};
mot.servos = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22};
mot.keyframes = {
{
angles = {-0.052, 0.051, 0.911, 0.661, -0.512, -0.827, -0.232, -0.011, -0.387, 1.355, -0.779, 0.048, -0.232, -0.023, -0.357, 1.338, -0.792, 0.003, 1.226, -0.457, 1.300, 0.391, },
stiffness = {0.900, 0.... | gpl-3.0 |
squeek502/luvit | tests/test-http-encoder.lua | 14 | 3883 | --[[
Copyright 2014 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 |
Igalia/snabb | lib/ljsyscall/syscall/rump/ffirump.lua | 24 | 1893 | -- ffi type and function definitions for rump kernel functions
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... | apache-2.0 |
Kosmos82/kosmosdarkstar | scripts/zones/Bastok_Markets/npcs/Sinon.lua | 14 | 4321 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Sinon
-- Armor Storage NPC
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/armorstorage");
require("scrip... | gpl-3.0 |
LaraiFox/ComputerCraft | src/LaraiFox/Install.lua | 1 | 1807 | --- Description
--
-- @author Larai Fox ( http://pastebin.com/u/LaraiFox )
-- @license GNU General Public License v3.0
-- @module Install.lua
local CONFIG_FILENAME = ".laraifox.cfg"
--- @usage
local USAGE_TEXT = [[
Install.lua [-d <directory>]
-d - Specifies a custom installation directory.
]]
local installDir... | gpl-3.0 |
Nax/citizenhack | dat/minetn-3.lua | 1 | 4542 | -- NetHack 3.7 mines.des $NHDT-Date: 1432512783 2015/05/25 00:13:03 $ $NHDT-Branch: master $:$NHDT-Revision: 1.25 $
-- Copyright (c) 1989-95 by Jean-Christophe Collet
-- Copyright (c) 1991-95 by M. Stephenson
-- NetHack may be freely redistributed. See license for details.
--
-- Minetown variant 3 by Kelly Bailey
-- ... | mit |
tinymins/MY | MY_Chat/src/MY_ChatCopy.lua | 1 | 7619 | --------------------------------------------------------
-- 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 |
Igalia/snabb | src/lib/cpuset.lua | 4 | 3373 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(...,package.seeall)
local numa = require('lib.numa')
local S = require('syscall')
local CPUSet = {}
function new()
return setmetatable({by_node={}}, {__index=CPUSet})
end
do
local cpuset = false
function global_cpuset()
... | apache-2.0 |
Kosmos82/kosmosdarkstar | scripts/zones/Metalworks/npcs/Mighty_Fist.lua | 12 | 2683 | -----------------------------------
-- Area: Metalworks
-- NPC: Mighty Fist
-- Starts & Finishes Quest: The Darksmith (R)
-- Involved in Quest: Dark Legacy
-- @pos -47 2 -30 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("sc... | gpl-3.0 |
King098/LuaFramework-ToLua-FairyGUI | LuaEncoder/luajit_ios/x86/jit/dis_x86.lua | 61 | 29376 | ----------------------------------------------------------------------------
-- LuaJIT x86/x64 disassembler module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
--------------------------------------------------------------------------... | mit |
Kosmos82/kosmosdarkstar | scripts/zones/Beaucedine_Glacier/mobs/Tundra_Tiger.lua | 6 | 1389 | -----------------------------------
-- Area: Beaucedine Glacier
-- MOB: Tundra Tiger
-- Note: PH for Nue, Kirata
-----------------------------------
require("scripts/globals/fieldsofvalor");
require("scripts/zones/Beaucedine_Glacier/MobIDs");
-----------------------------------
-- onMobDeath
------------------------... | gpl-3.0 |
DorianScholz/eiskaltdcpp | data/luascripts/startup.lua | 7 | 34907 | -- startup.lua: version 1.1.99/07
--
-- NMDC Listeners:
-- chat = normal chat message (you won't get your own messages)
-- f( hub, user, "message" )
-- DISCARDABLE:
-- return non-nil to hide the msg from BCDC++,
-- all discardable functions also get an optional last
-- ... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/globals/atma.lua | 27 | 40038 | -----------------------------------
--
-- EFFECT_ATMA
--
-- Also used for Voidwatch Atmacite
-- (it is a single effect in the client).
-- Todo: table this BS / ditch these functions
-----------------------------------
require("scripts/globals/status");
-----------------------------------
function atmaEffectGain(target... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/zones/Selbina/npcs/Valgeir.lua | 13 | 5061 | -----------------------------------
-- Area: Selbina
-- NPC: Valgeir
-- involved in his name is his name is Valgeir quest
-- involved in expertise quest
-- involved in the basics quest
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
justincormack/snabbswitch | src/apps/tap/tap.lua | 6 | 4124 | module(..., package.seeall)
local S = require("syscall")
local link = require("core.link")
local packet = require("core.packet")
local ffi = require("ffi")
local C = ffi.C
local const = require("syscall.linux.constants")
local os = require("os")
local t = S.types.t
Tap = { }
function Tap:new (name)
assert(name, ... | apache-2.0 |
tinymins/MY | MY_Toolbox/src/MY_ItemPrice.lua | 1 | 10954 | --------------------------------------------------------
-- 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 |
tinymins/MY | MY_Chat/src/MY_ChatBlock.lua | 1 | 10238 | --------------------------------------------
-- @Desc : ÁÄÌ츨Öú
-- @Author: ÜøÒÁ @tinymins
-- @Date : 2016-02-5 11:35:53
-- @Email : admin@derzh.com
-- @Last modified by: tinymins
-- @Last modified time: 2016-12-29 14:24:10
--------------------------------------------
----------------------------------------------... | bsd-3-clause |
Luanluan/skynet_test | service/gate.lua | 8 | 1934 | local skynet = require "skynet"
local gateserver = require "snax.gateserver"
local netpack = require "netpack"
local watchdog
local connection = {} -- fd -> connection : { fd , client, agent , ip, mode }
local forwarding = {} -- agent -> connection
skynet.register_protocol {
name = "client",
id = skynet.PTYPE_CLIEN... | mit |
Kosmos82/kosmosdarkstar | scripts/zones/Lower_Jeuno/npcs/Creepstix.lua | 12 | 1561 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Creepstix
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
-----------------------------------
-- onTra... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/globals/items/dish_of_spag_nero_di_seppia_+1.lua | 18 | 1799 | -----------------------------------------
-- ID: 5202
-- Item: dish_of_spag_nero_di_seppia_+1
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP % 17 (cap 140)
-- Dexterity 3
-- Vitality 2
-- Agility -1
-- Mind -2
-- Charisma -1
-- Double Attack 1
-- Store TP 6
----------------------------... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/globals/items/goldsmiths_belt.lua | 18 | 1186 | -----------------------------------------
-- ID: 15446
-- Item: Goldsmith's Belt
-- Enchantment: Synthesis image support
-- 2Min, All Races
-----------------------------------------
-- Enchantment: Synthesis image support
-- Duration: 2Min
-- Goldsmithing Skill +3
-----------------------------------------
require("scr... | gpl-3.0 |
tinymins/MY | MY_Chat/src/MY_TalkEx.lua | 1 | 15619 | --------------------------------------------------------
-- 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/East_Ronfaure/npcs/Field_Manual.lua | 29 | 1057 | -----------------------------------
-- Field Manual
-- Area: East Ronfaure
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/fieldsofvalor");
-----------------------------------
-- onTrigger Action
--------------------------------... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/zones/Bastok_Markets/npcs/Raghd.lua | 16 | 1292 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Raghd
-- Standard Merchant NPC
--
-- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("scripts/zon... | gpl-3.0 |
tinymins/MY | MY_TeamMon/src/MY_TeamMon_LT.lua | 1 | 6650 | --------------------------------------------------------
-- This file is part of the JX3 Mingyi Plugin.
-- @link : https://jx3.derzh.com/
-- @desc : ´ó×ÖÌáÐÑ
-- @author : ÜøÒÁ @Ë«ÃÎÕò @×··çõæÓ°
-- @ref : William Chan (Webster)
-- @modifier : Emil Zhai (root@derzh.com)
-- @copyright: Copyright (c) 2013 EM... | bsd-3-clause |
Kosmos82/kosmosdarkstar | scripts/globals/items/blindfish.lua | 18 | 1309 | -----------------------------------------
-- ID: 4313
-- Item: Blindfish
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
---------... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/zones/Northern_San_dOria/npcs/Macuillie.lua | 4 | 2566 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Macuillie
-- Type: Guildworker's Union Representative
-- @zone: 231
-- @pos -191.738 11.001 138.656
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/globals/keyitems");
re... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/zones/Lower_Delkfutts_Tower/npcs/Cermet_Door.lua | 27 | 1148 | -----------------------------------
-- Area: Lower Delkfutt's Tower
-- NPC: Cermet Door
-- Notes: Leads to Upper Delkfutt's Tower.
-- @pos 524 16 20 184
-----------------------------------
require("scripts/globals/settings");
-----------------------------------
-- onTrade Action
-----------------------------------... | gpl-3.0 |
aStonedPenguin/fprp | gamemode/modules/f4menu/cl_jobstab.lua | 1 | 11141 | /*---------------------------------------------------------------------------
Vote/become job button
---------------------------------------------------------------------------*/
local PANEL = {}
function PANEL:Init()
self.BaseClass.Init(self);
self:SetFont("F4MenuFont02");
self:SetTall(50);
end
function PANEL:set... | mit |
Igalia/snabb | lib/luajit/testsuite/test/lib/ffi/ffi_const.lua | 6 | 2186 | local ffi = require("ffi")
dofile("../common/ffi_util.inc")
ffi.cdef[[
typedef struct s_t {
int v, w;
} s_t;
typedef const s_t cs_t;
typedef enum en_t { EE } en_t;
typedef struct pcs_t {
int v;
const int w;
} pcs_t;
typedef struct foo_t {
static const int cc = 17;
enum { CC = -37 };
int i;
const int... | apache-2.0 |
Kosmos82/kosmosdarkstar | scripts/zones/Cirdas_Caverns/Zone.lua | 16 | 1191 | -----------------------------------
--
-- Zone: Cirdas Caverns
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Cirdas_Caverns/TextIDs"] = nil;
require("scripts/zones/Cirdas_Caverns/TextIDs");
-----------------------------------
-- onInitialize
-------------... | gpl-3.0 |
ychoucha/minetest-game-mineclone | mods/redstone/mesecons/wires.lua | 4 | 7559 | -- naming scheme: wire:(xp)(zp)(xm)(zm)_on/off
-- The conditions in brackets define whether there is a mesecon at that place or not
-- 1 = there is one; 0 = there is none
-- y always means y+
box_center = {-1/16, -.5, -1/16, 1/16, -.5+1/64, 1/16}
box_bump1 = { -2/16, -.5, -2/16, 2/16, -.5+1/64, 2/16 }
box_xp = {1/1... | lgpl-2.1 |
justincormack/snabbswitch | src/core/packet.lua | 13 | 3204 | module(...,package.seeall)
local debug = _G.developer_debug
local ffi = require("ffi")
local C = ffi.C
local freelist = require("core.freelist")
local lib = require("core.lib")
local memory = require("core.memory")
local counter = require("core.counter")
local freelist_add, freelist_remove, freelist_nfree = ... | apache-2.0 |
wingo/snabbswitch | lib/ljsyscall/test/rump.lua | 18 | 2492 | -- rump specific tests
-- in particular testing the threading, as that is rather different; you can map them to host threads how you like
local function init(S)
local helpers = require "syscall.helpers"
local types = S.types
local c = S.c
local abi = S.abi
local util = S.util
local bit = require "syscall.bit"
local ... | apache-2.0 |
Kosmos82/kosmosdarkstar | scripts/zones/Windurst_Walls/npcs/Jack_of_Diamonds.lua | 13 | 1230 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Jack of Diamonds
-- Adventurer's Assistant
-- Working 100%
-------------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
require("scripts/zones/Windurst_Walls/TextI... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/zones/Port_Windurst/npcs/Honorio.lua | 13 | 1388 | -----------------------------------
-- Area: Port Windurst
-- NPC: Honorio
-- @zone 240
-- @pos 218 -5 114
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
requ... | gpl-3.0 |
hawkthorne/hawkthorne-client-lua | src/nodes/liquid.lua | 1 | 6913 | -- General use 'liquid' node for things like quicksand and waterfalls
-- Set properties on the object to control
-- Required:
-- 'sprite' ( filepath ) - the path to the single image sprite for animation
-- Note: format for this sprite is 24x24 tiles, 2 rows, where the top
-- row is the top of t... | mit |
Kosmos82/kosmosdarkstar | scripts/zones/Kazham/npcs/Mamerie.lua | 13 | 1392 | -----------------------------------
-- Area: Kazham
-- NPC: Mamerie
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
-------... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/zones/Temenos/mobs/Fire_Elemental.lua | 7 | 1734 | -----------------------------------
-- Area: Temenos E T
-- NPC: Fire_Elemental
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
------------------------------... | gpl-3.0 |
yarlesp/corn | gui/labor_tracker.lua | 1 | 1254 | -- corn by yarlesp
-- pl development 2013
labor_tracker = { status = false }
function labor_tracker.create()
labor_tracker.status = true
end
function labor_tracker.destroy()
labor_tracker.status = false
end
function labor_tracker.draw()
love.graphics.setColor(255, 255, 255)
love.graphics.print("Labor: "..#capit... | mit |
squeek502/luvit | deps/stream/stream_readable.lua | 3 | 23794 | --[[
Copyright 2014 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/Rolanberry_Fields/npcs/Legion_Tome.lua | 29 | 1134 | -----------------------------------
-- Area: Rolanberry Fields
-- NPC: Legion Tome
-- Legion NPC
-- @pos 238 24 469 110
-----------------------------------
package.loaded["scripts/zones/Rolanberry_Fields/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/global... | gpl-3.0 |
Tech-IT-Easy/Teach-IT-Easy | Project/tests/lunit/lunit.lua | 21 | 17500 |
--[[--------------------------------------------------------------------------
This file is part of lunit 0.5.
For Details about lunit look at: http://www.mroth.net/lunit/
Author: Michael Roth <mroth@nessie.de>
Copyright (c) 2004, 2006-2009 Michael Roth <mroth@nessie.de>
Permission is hereby g... | gpl-3.0 |
mynameiscraziu/body | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile... | gpl-2.0 |
april-org/april-ann | packages/trainable/test/test.lua | 3 | 4001 | digits_image = ImageIO.read(string.get_path(arg[0]).."../../../EXAMPLES/digits.png")
m1 = digits_image:to_grayscale():invert_colors():matrix()
-- TRAINING --
-- a simple matrix for the desired output
train_input = dataset.matrix(m1,
{
patternSize = {16,16},
offset = {0,0},
numSteps... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/zones/Bastok_Markets/npcs/Charging_Chocobo.lua | 17 | 1618 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Charging Chocobo
-- Standard Merchant NPC
--
-- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/zones/Windurst_Waters_[S]/npcs/Yasmina.lua | 13 | 1073 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Yasmina
-- Type: Chocobo Renter
-- @zone: 94
-- @pos -34.972 -5.815 221.845
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;... | gpl-3.0 |
exochron/toy-box-enhanced | toys.db.lua | 1 | 29205 | local ADDON_NAME, ADDON = ...
ADDON.db.ingameList = {
[1973] = false, -- Orb of Deception
[13379] = false, -- Piccolo of the Flaming Fire
[17712] = false, -- Winter Veil Disguise Kit
[17716] = false, -- Snowmaster 9000
[18660] = false, -- World Enlarger
[18984] = false, -- Dimensional Ripper - Everlook
[18986] = false... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/globals/spells/suiton_ni.lua | 5 | 1227 | -----------------------------------------
-- Spell: Suiton: Ni
-- Deals water damage to an enemy and lowers its resistance against lightning.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
--------... | gpl-3.0 |
AmirPGA/AmirPGA | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
dani-sj/mahdi45 | plugins/filterword.lua | 32 | 4280 | do
TMP = {}
function First( msg )
local Xdata = load_data(_config.moderation.data);
if ( not Xdata[tostring(msg.to.id)]["settings"]["Blocked_Words"] ) then
Xdata[tostring(msg.to.id)]["settings"]["Blocked_Words"] = TMP
save_data(_config.moderation.data, Xdata);
print("i couldn't find the table so i cre... | gpl-2.0 |
Kosmos82/kosmosdarkstar | scripts/zones/Port_San_dOria/npcs/Maunadolace.lua | 13 | 1058 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Maunadolace
-- Type: Standard NPC
-- @zone: 232
-- @pos -22.800 -9.3 -148.645
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
------... | gpl-3.0 |
ahmadaghazadeh/FastBook | src/FastBookCreator/highlight/plugins/outhtml_curly_brackets_matcher.lua | 1 | 2229 | --[[
Sample plugin file for highlight 3.14
Assumes that CSS is enabled (ie Inline CSS is not set)
]]
Description="Shows matching curly brackets in HTML output."
-- optional parameter: syntax description
function syntaxUpdate(desc)
if (HL_OUTPUT == HL_FORMAT_HTML or HL_OUTPUT == HL_FORMAT_XHTML) then
pID=0 ... | mit |
Kosmos82/kosmosdarkstar | scripts/zones/Mhaura/npcs/Koh_Lenbalalako.lua | 13 | 2383 | -----------------------------------
-- Area: Mhaura
-- NPC: Koh Lenbalalako
-- Type: Standard NPC
-- @pos -64.412 -17 29.213 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mhaura/TextIDs");
require("scripts/g... | gpl-3.0 |
martin-traverse/premake-core | tests/_tests.lua | 1 | 6416 | return {
-- Base API tests
"test_string.lua",
"base/test_aliasing.lua",
"base/test_configset.lua",
"base/test_context.lua",
"base/test_criteria.lua",
"base/test_detoken.lua",
"base/test_include.lua",
"base/test_module_loader.lua",
"base/test_option.lua",
"base/test_os.lua",
"base/test_override.l... | bsd-3-clause |
Kosmos82/kosmosdarkstar | scripts/globals/mobskills/Sickle_Slash.lua | 34 | 1178 | ---------------------------------------------------
-- Sickle Slash
-- Deals critical damage. Chance of critical hit varies with TP.
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
------------------... | gpl-3.0 |
harveyhu2012/luci | applications/luci-openvpn/luasrc/model/cbi/openvpn-basic.lua | 7 | 3301 | --[[
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... | apache-2.0 |
firebaugh/Digitowls | WebotsController/Player.old/Motion/stance.lua | 4 | 3560 | module(..., package.seeall);
require('Body')
require('Kinematics')
require('walk')
require('vector')
active = true;
t0 = 0;
bodyHeight = Config.walk.bodyHeight;
footY = walk.footY;
supportX = walk.supportX;
qLArm = walk.qLArm;
qRArm = walk.qRArm;
bodyTilt=walk.bodyTilt;
--qLArm = math.pi/180*vector.new({105, 12, -85... | gpl-3.0 |
giann/light_world.lua | lib/body.lua | 5 | 23774 | local _PACKAGE = (...):match("^(.+)[%./][^%./]+") or ""
local normal_map = require(_PACKAGE..'/normal_map')
local util = require(_PACKAGE..'/util')
local anim8 = require(_PACKAGE..'/anim8')
local vector = require(_PACKAGE..'/vector')
local body = {}
body.__index = body
body.glowShader ... | mit |
firebaugh/Digitowls | WebotsController/Player/Lib/WebotsNaoGameControl.lua | 8 | 2832 | module(..., package.seeall);
require('controller')
require('GameControlPacket')
require('Config')
require('vector')
require('util')
require('gcm')
require('Speak')
require('Comm')
teamNumber = Config.game.teamNumber;
playerID = gcm.get_team_player_id();
teamIndex = 0;
nPlayers = Config.game.nPlayers;
teamColor = -1;... | gpl-3.0 |
firebaugh/Digitowls | WebotsController/Player.old/HeadFSM/NaoDemo/headTrack.lua | 12 | 1552 | module(..., package.seeall);
require('Body')
require('Config')
require('vcm')
t0 = 0;
timeout = 30.0;
-- ball detection timeout
tLost = 2.0;
--forikinecam
camOffsetZ = Config.head.camOffsetZ;
pitchMin = Config.head.pitchMin;
pitchMax = Config.head.pitchMax;
yawMin = Config.head.yawMin;
yawMax = Config.head.yawMax;
... | gpl-3.0 |
vinzenz/premake | src/host/lua-5.1.4/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | gpl-2.0 |
grepmusic/redis_sorted_set_with_prefix_in_query_for_feed | deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | bsd-3-clause |
vim-scripts/rogue.vim | autoload/rogue/debug.lua | 1 | 5917 | local g = Rogue -- alias
g.DEBUG = true
-- g.COVERAGE = true
local debug_log_file = nil
local debug_log_file_name = 'rogue_vim.log'
local cov_data
function g.printf(fmt, ...)
if not g.DEBUG then
return
end
if vim then
print(string.format(fmt, ...))
else
io.write(string.format(fmt, ...))
end
end
function... | mit |
Marre3/Space-Shooter | enemies.lua | 1 | 2561 | function loadEnemies()
enemies = {}
lastEnemySpawned = 0
enemiesKilled = 0
difficulty = 0.1
end
function updateEnemies()
for i,e in ipairs(enemies) do
e.lifetime = e.lifetime + 1
e.x = e.x - math.sin(e.angle) * e.speed
e.y = e.y + math.cos(e.angle) * e.speed
if math.sqrt((player.x... | mit |
studioarmix/10space | main.lua | 1 | 7462 |
function gameCenterText(string, font, y)
if not y then y = 0 end
if not font then font = gameFontLarge end
lg.setFont(font)
lg.printf(string, lg.getWidth()/2-font:getWrap(string, lg.getWidth())/2, lg.getHeight()/2-font:getHeight(string)/2+y, 500, "center")
end
function gameLoadLayouts()
gameLayout = {}
gameLayo... | isc |
Kosmos82/kosmosdarkstar | scripts/zones/Nashmau/npcs/Yohj_Dukonlhy.lua | 15 | 1397 | -----------------------------------
-- Area: Nashmau
-- NPC: Yohj Dukonlhy
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
-----------------------------------
-- onTrade Action... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/globals/items/serving_of_bavarois_+1.lua | 18 | 1196 | -----------------------------------------
-- ID: 5730
-- Item: Serving of Bavarois +1
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- HP 25
-- Intelligence 4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCh... | gpl-3.0 |
firebaugh/Digitowls | WebotsController/Player.old/Config/Config_Nao_Vision.lua | 4 | 1258 | module(..., package.seeall);
require('vector')
-- Vision Parameters
color = {};
color.orange = 1;
color.yellow = 2;
color.cyan = 4;
color.field = 8;
color.white = 16;
vision = {};
vision.maxFPS = 30;
vision.scaleB = 4;
vision.ball_diameter = 0.065;
vision.ball_height_max = -0.20;
vision.yellow_goal_count_thres = 15... | gpl-3.0 |
fegimanam/arbc | plugins/banhammer.lua | 4 | 16571 | -- data saved to moderation.json
do
-- make sure to set with value that not higher than stats.lua
local NUM_MSG_MAX = 4 -- Max number of messages per TIME_CHECK seconds
local TIME_CHECK = 4
local function kick_user(user_id, chat_id)
if user_id == tostring(our_id) then
send_msg('chat#id'..chat_id, ... | gpl-2.0 |
Kosmos82/kosmosdarkstar | scripts/globals/weaponskills/blast_arrow.lua | 9 | 1362 | -----------------------------------
-- Blast Arrow
-- Archery weapon skill
-- Skill level: 200
-- Delivers a melee-distance ranged attack. params.accuracy varies with TP.
-- Aligned with the Snow Gorget & Light Gorget.
-- Aligned with the Snow Belt & Light Belt.
-- Element: None
-- Modifiers: STR:16% ; AGI:25%
-- 100%T... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/globals/mobskills/Pyric_Blast.lua | 33 | 1323 | ---------------------------------------------
-- Pyric Blast
--
-- Description: Deals Fire damage to enemies within a fan-shaped area. Additional effect: Plague
-- Type: Breath
-- Ignores Shadows
-- Range: Unknown Cone
---------------------------------------------
require("scripts/globals/settings");
require("scr... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/zones/Feretory/Zone.lua | 32 | 1164 | -----------------------------------
--
-- Zone: Feretory
--
-----------------------------------
package.loaded["scripts/zones/Marjami_Ravine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Marjami_Ravine/TextIDs");
-----------------------------------
--... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/zones/Garlaige_Citadel/Zone.lua | 13 | 4132 | -----------------------------------
--
-- Zone: Garlaige_Citadel (200)
--
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Garlaige_Citadel... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/zones/Ordelles_Caves/npcs/qm3.lua | 13 | 1628 | -----------------------------------
-- Area: Ordelle's Caves
-- NPC: ??? (qm3)
-- Involved in Quest: A Squire's Test II
-- @pos -139 0.1 264 193
-------------------------------------
package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/settings")... | gpl-3.0 |
smillet71/luacode | launchingState.lua | 1 | 2383 | M = {}
M.name = "launchingState"
-----------------------------------------------------------------------------
local t=0
local tMax=10
-----------------------------------------------------------------------------
-- Enter this state
function M:enter()
print()
end
-- Leave this state
function M:leave()
p... | mit |
aStonedPenguin/fprp | entities/entities/spawned_money/init.lua | 1 | 1305 | AddCSLuaFile("cl_init.lua");
AddCSLuaFile("shared.lua");
include("shared.lua");
function ENT:Initialize()
self:SetModel(GAMEMODE.Config.shekelModel or "models/props/cs_assault/money.mdl");
self:PhysicsInit(SOLID_VPHYSICS);
self:SetMoveType(MOVETYPE_VPHYSICS);
self:SetSolid(SOLID_VPHYSICS);
self:SetUseType(SIMPLE... | mit |
squeek502/luvit | tests/test-fs-write.lua | 14 | 2113 | --[[
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 agre... | apache-2.0 |
Igalia/snabb | src/apps/ipv4/fragment.lua | 2 | 10436 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
-- IPv4 fragmentation (RFC 791)
module(..., package.seeall)
local bit = require("bit")
local ffi = require("ffi")
local lib = require("core.lib")
local packet = require("core.packet")
local counter = require("c... | apache-2.0 |
hawkthorne/hawkthorne-client-lua | src/positions/rich.lua | 2 | 2886 | return {
hand_right = {
{ {-10, 36}, {13, 31}, {-4, 32}, {-11, 31}, {-8, 36}, {-9, 34}, {-8, 34}, {-8, 36}, {-6, 36}, },
{ {-8, 36}, {10, 31}, {-3, 32}, {-14, 31}, {9, 36}, {7, 34}, {8, 34}, {7, 36}, {1, 37}, },
{ {-9, 34}, {-7, 35}, {-9, 36}, {-11, 36}, {-8, 35}, {-8, 29}, {-16, 17}, {-18, 29}, {-1... | mit |
Kosmos82/kosmosdarkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Tateeya.lua | 7 | 2616 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Tateeya
-- Automaton Attachment Unlocks
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
---------... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/globals/chocobo_digging.lua | 46 | 7397 | -- chocobo_digging.lua
require("scripts/globals/status");
require("scripts/globals/utils");
require("scripts/globals/settings");
-----------------------------------
-- DIG REQUIREMENTS
-----------------------------------
DIGREQ_NONE = 0;
DIGREQ_BURROW = 1;
DIGREQ_BORE = 2;
DIGREQ_MODIFIER = 4;
DIGREQ_NIGHT ... | gpl-3.0 |
angel2d/angel2d | Code/Tools/BuildScripts/lua-lib/penlight-1.0.2/tests/test-stringx.lua | 12 | 10042 | local stringx = require 'pl.stringx'
local asserteq = require 'pl.test' . asserteq
local T = require 'pl.test'.tuple
local function FIX(s)
io.stderr:write('FIX:' .. s .. '\n')
end
-- isalpha
asserteq(T(stringx.isalpha''), T(false))
asserteq(T(stringx.isalpha' '), T(false))
asserteq(T(stringx.isalpha'0'), T(false))... | bsd-3-clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.