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 |
|---|---|---|---|---|---|
rpetit3/darkstar | scripts/zones/Provenance/Zone.lua | 30 | 1295 | -----------------------------------
--
-- Zone: Provenance (222)
--
-----------------------------------
package.loaded["scripts/zones/Provenance/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Provenance/TextIDs");
-----------------------------------
-- onInitialize
-----------------------... | gpl-3.0 |
Jigoku/dungeon | editor.lua | 1 | 3388 | --[[
* Copyright (C) 2015 Ricky K. Thomson
*
* 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.
* This program is d... | gpl-3.0 |
opentechinstitute/luci-commotion-linux | contrib/luasrcdiet/lua/optparser.lua | 122 | 23598 | --[[--------------------------------------------------------------------
optparser.lua: does parser-based optimizations
This file is part of LuaSrcDiet.
Copyright (c) 2008 Kein-Hong Man <khman@users.sf.net>
The COPYRIGHT file describes the conditions
under which this software may be distributed.
See the ... | apache-2.0 |
Arlefreak/goToWork | frameworks/js-bindings/cocos2d-x/plugin/luabindings/auto/api/ProtocolAnalytics.lua | 146 | 2113 |
--------------------------------
-- @module ProtocolAnalytics
-- @extend PluginProtocol
-- @parent_module plugin
--------------------------------
-- brief Track an event begin.<br>
-- param eventId The identity of event
-- @function [parent=#ProtocolAnalytics] logTimedEventBegin
-- @param self
-- @param #char eventI... | mit |
xiezhen11111/rpgDemo | cocos2d/plugin/luabindings/auto/api/ProtocolAnalytics.lua | 146 | 2113 |
--------------------------------
-- @module ProtocolAnalytics
-- @extend PluginProtocol
-- @parent_module plugin
--------------------------------
-- brief Track an event begin.<br>
-- param eventId The identity of event
-- @function [parent=#ProtocolAnalytics] logTimedEventBegin
-- @param self
-- @param #char eventI... | apache-2.0 |
schidler/ionic-luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-format.lua | 68 | 3423 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
cbimap = Map("asterisk", "asterisk", "")
module = cbimap:section(TypedSection, "module", "Modules", "")
module.anonymous = true
format_au = module:option(Lis... | apache-2.0 |
mpeterv/depgraph | src/depgraph/luacheck/lexer.lua | 1 | 18618 | local utils = require "depgraph.luacheck.utils"
-- Lexer should support syntax of Lua 5.1, Lua 5.2, Lua 5.3 and LuaJIT(64bit and complex cdata literals).
local lexer = {}
local sbyte = string.byte
local ssub = string.sub
local schar = string.char
local sreverse = string.reverse
local tconcat = table.concat
local mflo... | mit |
rpetit3/darkstar | scripts/globals/abilities/curing_waltz_ii.lua | 19 | 2262 | -----------------------------------
-- Ability: Curing Waltz II
-- Heals HP to target player.
-- Obtained: Dancer Level 30
-- TP Required: 35%
-- Recast Time: 00:08
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- onAbi... | gpl-3.0 |
ManStache/PokeBotBad | data/movelist.lua | 6 | 23754 | local Movelist = {}
-- http://bulbapedia.bulbagarden.net/wiki/List_of_moves#List_of_moves
local moves = {
{
name = 'Pound',
id = 1,
move_type = 'normal',
special = false,
power = 40,
max_pp = 35,
accuracy = 100,
},
{
name = 'Karate-Chop',
id = 2,
move_type = 'fighting',
specia... | mit |
aradml/- | plugins/email.lua | 1 | 1261 | local function run(msg, matches)
local base = "curl 'https://person.clearbit.com/v1/people/email/"..matches[1].."' -u 3986c574e76b9b21094c695606f8f76e:"
local data = io.popen(base):read('*all')
local jdat = JSON.decode(data)
if not jdat.name then
return "آدرس ایمیل وارد شده صحیح نیست. آدرس ایمیل را به صورت زیر وا... | gpl-2.0 |
iamgreaser/pysnip | feature_server/iceball/lib_map.lua | 1 | 12265 | --[[
This file is part of Ice Lua Components.
Ice Lua Components is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... | gpl-3.0 |
zhwsh00/DirectFire-android | cocos2d-2.1beta3-x-2.1.0/samples/TestLua/Resources/luaScript/ActionsTest/ActionsName.lua | 1 | 1253 | require "luaScript/helper"
Action_Table =
{
"ACTION_MANUAL_LAYER",
"ACTION_MOVE_LAYER",
"ACTION_SCALE_LAYER",
"ACTION_ROTATE_LAYER",
"ACTION_SKEW_LAYER",
"ACTION_SKEWROTATE_LAYER",
"ACTION_JUMP_LAYER",
"ACTION_CARDINALSPLINE_LAYER",
"ACTION_CATMULLROM_LAYER",
"ACTION_BEZIER_LAY... | mit |
rpetit3/darkstar | scripts/globals/spells/bluemagic/cocoon.lua | 28 | 1337 | -----------------------------------------
-- Spell: Cocoon
-- Enhances defense
-- Spell cost: 10 MP
-- Monster Type: Vermin
-- Spell Type: Magical (Earth)
-- Blue Magic Points: 1
-- Stat Bonus: VIT+3
-- Level: 8
-- Casting Time: 1.75 seconds
-- Recast Time: 60 seconds
-- Duration: 90 seconds
--
-- Combos: None
-------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Northern_San_dOria/npcs/Ulycille.lua | 53 | 1947 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Ulycille
-- Type: Woodworking Adv. Synthesis Image Support
-- @pos -183.320 9.999 269.651 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
tenvick/hugula | Client/Assets/Lua/common/json.lua | 8 | 26199 | -- -*- coding: utf-8 -*-
--
-- Copyright 2010-2012 Jeffrey Friedl
-- http://regex.info/blog/
--
local VERSION = 20111207.5 -- version history at end of file
local OBJDEF = { VERSION = VERSION }
--
-- Simple JSON encoding and decoding in pure Lua.
-- http://www.json.org/
--
--
-- JSON = (loadfile "JSON.lua")() -- on... | mit |
tvandijck/premake-core | modules/vstudio/_preload.lua | 5 | 2318 | --
-- _preload.lua
-- Define the makefile action(s).
-- Copyright (c) Jason Perkins and the Premake project
--
local p = premake
local project = p.project
-- initialize module.
p.modules.vstudio = p.modules.vstudio or {}
p.modules.vstudio._VERSION = p._VERSION
p.vstudio = p.modules.vstudio
-- load actions.
i... | bsd-3-clause |
MakanEXE/Cyclone | plugins/arabic_lock.lua | 56 | 1093 |
antiarabic = {}-- An empty table for solving multiple kicking problem
do
local function run(msg, matches)
if is_momod(msg) then -- Ignore mods,owner,admins
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)]['settings']['lock_arabic'] then
if data[tostring(msg.to.id... | gpl-2.0 |
MinetestForFun/server-minetestforfun-creative | mods/pipeworks/flowing_logic.lua | 2 | 4507 | -- This file provides the actual flow and pathfinding logic that makes water
-- move through the pipes.
--
-- Contributed by mauvebic, 2013-01-03, rewritten a bit by Vanessa Ezekowitz
--
local finitewater = minetest.setting_getbool("liquid_finite")
pipeworks.check_for_liquids = function(pos)
local coords = {
{x=po... | unlicense |
nokizorque/ucd | UCDjobs/server.lua | 1 | 3461 | local jobs
local vowels = {["a"] = true, ["e"] = true, ["i"] = true, ["o"] = true, ["u"] = true}
playerRanks = {}
addEventHandler("onResourceStart", resourceRoot,
function ()
jobs = exports.UCDjobsTable:getJobTable()
--db:query(cacheRanks, {}, "SELECT * FROM `jobs__stats`")
end
)
--[[
function cacheRanks(qh)
l... | mit |
rpetit3/darkstar | scripts/zones/Sauromugue_Champaign_[S]/npcs/Indescript_Markings.lua | 26 | 1405 | -----------------------------------
-- Area: Sauromugue Champaign [S]
-- NPC: Indescript Markings
-- @pos 322 24 113
-- Quest NPC
-----------------------------------
package.loaded["scripts/zones/Sauromugue_Champaign_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Sauromugue_Champaign_... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/monstertpmoves.lua | 6 | 23819 | require("scripts/globals/magic");
require("scripts/globals/magicburst")
require("scripts/globals/status")
require("scripts/globals/utils")
-- Foreword: A lot of this is good estimating since the FFXI playerbase has not found all of info for individual moves.
-- What is known is that they roughly follow play... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Southern_San_dOria/npcs/Machielle.lua | 12 | 1979 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Machielle
-- Only sells when Bastok controls Norvallen Region
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/events... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/serving_of_medicinal_quus.lua | 18 | 1388 | -----------------------------------------
-- ID: 4294
-- Item: serving_of_medicinal_quus
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Dexterity 1
-- Mind -1
-- Ranged ACC % 7
-- Ranged ACC Cap 15
-----------------------------------------
require("scripts/globals/status");
-----------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Ship_bound_for_Selbina/npcs/Bhagirath.lua | 27 | 2092 | -----------------------------------
-- Area: Ship_bound_for_Selbina
-- NPC: Bhagirath
-- Notes: Tells ship ETA time
-- @pos 0.278 -14.707 -1.411 220
-----------------------------------
package.loaded["scripts/zones/Ship_bound_for_Selbina/TextIDs"] = nil;
require("scripts/zones/Ship_bound_for_Selbina/TextIDs");
--... | gpl-3.0 |
gligneul/FastLua | luatests/errors.lua | 1 | 14984 | -- $Id: errors.lua,v 1.92 2016/03/07 19:27:08 roberto Exp $
print("testing errors")
local debug = require"debug"
-- avoid problems with 'strict' module (which may generate other error messages)
local mt = getmetatable(_G) or {}
local oldmm = mt.__index
mt.__index = nil
local function checkerr (msg, f, ...)
local ... | mit |
rpetit3/darkstar | scripts/commands/givexp.lua | 12 | 1181 | ---------------------------------------------------------------------------------------------------
-- func: @givexp <amount> <player>
-- desc: Gives the GM or target player experience points.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permissio... | gpl-3.0 |
vseledkin/april-ann | packages/basics/matrix/lua_src/generic_print.lua | 3 | 1789 | -- GENERIC PRINT FUNCTION
matrix.__generic__ = matrix.__generic__ or {}
matrix.__generic__.__make_generic_print__ = function(name,getter)
assert(name and getter)
return function(self)
local MAX_ROW_LEN,MAX_ROWS = 60,6
local dims = self:dim()
local coords = {}
local out = {}
local row... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/RuAun_Gardens/TextIDs.lua | 15 | 1775 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 6383; -- You cannot obtain the <item>. Try trading again after sorting your inventory.
ITEM_OBTAINED = 6384; ... | gpl-3.0 |
tvandijck/premake-core | tests/base/test_override.lua | 16 | 1459 | --
-- tests/base/test_override.lua
-- Verify function override support.
-- Copyright (c) 2012 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("base_override")
--
-- Setup
--
local X = {}
function suite.setup()
X.testfunc = function(value)
return value or "testfunc"
... | bsd-3-clause |
rpetit3/darkstar | scripts/zones/Yhoator_Jungle/npcs/Mugha_Dovajaiho.lua | 13 | 1881 | -----------------------------------
-- Area: Yhoator Jungle
-- NPC: Mugha Dovajaiho
-- @pos 202 0 -82 124
-----------------------------------
package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
require(... | gpl-3.0 |
ddouglascarr/rooset | lffrontend/app/main/admin/_action/member_update.lua | 1 | 2101 | local id = param.get_id()
local member = Member:by_id(id) or Member:new()
param.update(member, "identification", "notify_email", "admin")
local locked = param.get("locked", atom.boolean)
if locked ~= nil then
member.locked = locked
end
local deactivate = param.get("deactivate", atom.boolean)
if deactivate then
m... | mit |
brendonjustin/vlc | share/lua/playlist/break.lua | 113 | 1995 | --[[
$Id$
Copyright © 2007 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distribut... | gpl-2.0 |
tvandijck/premake-core | modules/gmake/gmake_workspace.lua | 13 | 4317 | --
-- make_workspace.lua
-- Generate a workspace-level makefile.
-- Copyright (c) 2002-2015 Jason Perkins and the Premake project
--
local p = premake
local make = p.make
local tree = p.tree
local project = p.project
--
-- Generate a GNU make "workspace" makefile, with support for the new platforms API.
--
fun... | bsd-3-clause |
tonkah/Browser | lib/lousy/load.lua | 6 | 1365 | -- Get lua environment
local io = require "io"
local assert = assert
local string = string
local print = print
local setmetatable = setmetatable
local type = type
-- Get luakit environment
local capi = {
luakit = luakit
}
module("lousy.load")
-- Keep loaded resources in memory
local data = {}
local function loa... | gpl-3.0 |
dmccuskey/dmc-objects | examples/DMC-MultiShapes/dmc_corona/dmc_objects.lua | 22 | 19366 | --====================================================================--
-- dmc_objects.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2011-2015 David McCuskey
Permission is hereby granted, fre... | mit |
sys4-fr/server-minetestforfun | mods/shutdown/init.lua | 6 | 2391 | --[[
shutdown par turbogus, code sous licence gpl2 ou sup
déclaration du "timer" par Jat ( du mod annonce )
Affiche l'heure dans le chat toute les minutes et
arrête votre serveur "proprement" à une heure précise afin de créer
une sauvegarde
]]--
-- compatibility with soundset mod
local SOUNDVOLUME = 1
local get_volu... | unlicense |
rpetit3/darkstar | scripts/zones/The_Shrine_of_RuAvitau/npcs/blank_4.lua | 31 | 4968 | -----------------------------------
-- Area: The Shrine of Ru'Avitau
-- NPC: ??? divine might mission
-- @pos -40 0 -151 178
-----------------------------------
package.loaded["scripts/zones/The_Shrine_of_RuAvitau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Shrine_of_RuAvitau/TextI... | gpl-3.0 |
DDTChen/CookieVLC | vlc/share/lua/sd/frenchtv.lua | 111 | 1356 | --[[
$Id$
Copyright © 2010 VideoLAN and AUTHORS
Authors: Fabio Ritrovato <sephiroth87 at videolan dot org>
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
... | gpl-2.0 |
swfiua/awesome | rc.lua | 1 | 22394 | -- Standard awesome library
local gears = require("gears")
local awful = require("awful")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library
local naughty = require("naughty")
local menubar = req... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Cloister_of_Tremors/bcnms/puppet_master.lua | 27 | 1588 | -----------------------------------
-- Area: Cloister of Tremors
-- BCNM: The Puppet Master
-- @pos -539 1 -493 209
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Tremors/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/quests");
require("scripts/zones/Cloi... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Buburimu_Peninsula/npcs/Song_Runes.lua | 20 | 1949 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Song Runes
-- Finishes Quest: The Old Monument
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Caedarva_Mire/npcs/HomePoint#1.lua | 27 | 1269 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: HomePoint#1
-- @pos -449 13.399 -497 79
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Caedarva_Mire/TextIDs");
require("scripts/globals/ho... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Metalworks/npcs/Manilam.lua | 13 | 1432 | -----------------------------------
-- Area: Metalworks
-- NPC: Manilam
-- Type: Quest NPC
-- @pos -57.300 -11 22.332 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Meta... | gpl-3.0 |
Dejvino/nodemcu-firmware | lua_examples/yet-another-bmp085.lua | 65 | 2608 | ------------------------------------------------------------------------------
-- BMP085 query module
--
-- LICENCE: http://opensource.org/licenses/MIT
-- Vladimir Dronnikov <dronnikov@gmail.com>
-- Heavily based on work of Christee <Christee@nodemcu.com>
--
-- Example:
-- dofile("bmp085.lua").read(sda, scl)
----------... | mit |
rm-code/sakuraba | src/constants/ActorConstants.lua | 1 | 2701 | local ACTOR_TYPES = {
PLAYER = 'player',
CAT = 'cat',
DOG = 'dog'
};
local ACTOR_STATS = {
[ACTOR_TYPES.PLAYER] = {
maxhealth = 20,
speed = 8,
stats = {
strength = 5,
dexterity = 6,
endurance = 5
},
skills = {
... | mit |
lukego/snabbswitch | lib/luajit/dynasm/dasm_arm64.lua | 15 | 34807 | ------------------------------------------------------------------------------
-- DynASM ARM64 module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _... | apache-2.0 |
rpetit3/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Melleupaux.lua | 13 | 1286 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Melleupaux
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
require("scripts/zones/Tavnazian_Safehold/TextIDs");
----------------------... | gpl-3.0 |
i32ropie/telegram-bot | plugins/youtube.lua | 644 | 1722 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
function get_yt_data (yt_code)
local url = 'https://www.googleapis.com/yo... | gpl-2.0 |
Endika/Algorithm-Implementations | Dijkstra_Search/Lua/Yonaba/handlers/gridmap_handler.lua | 182 | 2356 | -- A grid map handler
-- Supports 4-directions and 8-directions moves
-- This handler is devised for 2d bounded grid where nodes are indexed
-- with a pair of (x, y) coordinates. It features straight (4-directions)
-- and diagonal (8-directions) moves.
local PATH = (...):gsub('handlers.gridmap_handler$','')
local Nod... | mit |
Endika/Algorithm-Implementations | Iterative_Deepening_Depth_First_Search/Lua/Yonaba/handlers/gridmap_handler.lua | 182 | 2356 | -- A grid map handler
-- Supports 4-directions and 8-directions moves
-- This handler is devised for 2d bounded grid where nodes are indexed
-- with a pair of (x, y) coordinates. It features straight (4-directions)
-- and diagonal (8-directions) moves.
local PATH = (...):gsub('handlers.gridmap_handler$','')
local Nod... | mit |
rpetit3/darkstar | scripts/zones/Korroloka_Tunnel/npcs/qm1.lua | 13 | 1181 | -----------------------------------
-- Area: Korroloka Tunnel
-- NPC: ??? (qm1) - Morion Worm spawn
-- @pos 254.652 -6.039 20.878 173
-----------------------------------
package.loaded["scripts/zones/Korroloka_Tunnel/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Korroloka_Tunnel/TextIDs"... | gpl-3.0 |
MHK-BOT/copy | plugins/Web_Shot.lua | 1 | 1797 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
headers = {
referer = bas... | gpl-2.0 |
luizluca/openwrt-packages | utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/netdev.lua | 66 | 1077 |
local netdevsubstat = {
"receive_bytes_total",
"receive_packets_total",
"receive_errs_total",
"receive_drop_total",
"receive_fifo_total",
"receive_frame_total",
"receive_compressed_total",
"receive_multicast_total",
"transmit_bytes_total",
"transmit_packets_total",
"transmit... | gpl-2.0 |
dwmw2/luci | modules/luci-mod-admin-full/luasrc/controller/admin/system.lua | 25 | 10209 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.admin.system", package.seeall)
function index()
local fs = require "nixio.fs"
entry({"admin", "system"}, alias("admin", "syste... | apache-2.0 |
sys4-fr/server-minetestforfun | mods/WorldEdit/worldedit_commands/safe.lua | 9 | 2083 | local safe_region_callback = {}
local safe_region_param = {}
local function check_region(name, param)
local pos1, pos2 = worldedit.pos1[name], worldedit.pos2[name] --obtain positions
if pos1 == nil or pos2 == nil then
worldedit.player_notify(name, "no region selected")
return nil
end
return worldedit.... | unlicense |
crazym/lsyncd | examples/lftp.lua | 5 | 3376 | --~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- User configuration file for lsyncd.
--
-- Syncs with 'lftp'.
--
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lftp = {
-----
-- Spawns rsync for a list of... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Norg/npcs/Marilleune.lua | 27 | 1730 | -----------------------------------
-- Area: Norg
-- NPC: Marilleune
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/chocobo");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- onTr... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Reisenjima/Zone.lua | 30 | 1439 | -----------------------------------
--
-- Zone: Reisenjima (291)
--
-----------------------------------
package.loaded["scripts/zones/Reisenjima/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Reisenjima/TextIDs");
require("scripts/globals/settings");
require("scripts/globals/zone");
-----... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/weaponskills/pyrrhic_kleos.lua | 19 | 2150 | -----------------------------------
-- Pyrrhic Kleos
-- Dagger weapon skill
-- Skill level: N/A
-- Description: Delivers a fourfold attack that lowers target's evasion. Duration of effect varies with TP. Terpsichore: Aftermath effect varies with TP.
-- Available only after completing the Unlocking a Myth (Dancer) quest... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Northern_San_dOria/npcs/Antonian.lua | 12 | 2125 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Antonian
-- Regional Marchant NPC
-- Only sells when San d'Oria controlls Aragoneu.
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
vseledkin/april-ann | packages/metrics/roc/package.lua | 3 | 1201 | package{ name = "metrics.roc",
version = "1.0",
depends = { "util", "stats", },
keywords = { "roc" },
description = "alignment",
-- targets como en ant
target{
name = "init",
mkdir{ dir = "build" },
mkdir{ dir = "include" },
},
target{ name = "clean",
delete{ dir = "build" }... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Silver_Sea_route_to_Nashmau/Zone.lua | 13 | 1383 | -----------------------------------
--
-- Zone: Silver_Sea_route_to_Nashmau
--
-----------------------------------
package.loaded["scripts/zones/Silver_Sea_route_to_Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Silver_Sea_route_to_Nashmau/TextIDs");
require("scripts/globals/sett... | gpl-3.0 |
emoon/docking_system | tundra.lua | 1 | 2067 | require "tundra.syntax.glob"
local native = require('tundra.native')
local win32 = {
Env = {
GENERATE_PDB = "1",
CCOPTS = {
"/FS",
"/W4",
"/WX", "/I.", "/D_CRT_SECURE_NO_WARNINGS",
{ "/Od"; Config = "*-*-debug" },
{ "/O2"; Config = "*-*-release" },
},
PROGOPTS = {
"/INCREMENTAL:NO"-- Disa... | bsd-3-clause |
rpetit3/darkstar | scripts/zones/Port_Windurst/npcs/Explorer_Moogle.lua | 13 | 1737 | -----------------------------------
-- Area: Port Windurst
-- NPC: Explorer Moogle
-- Working 100%
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/teleports");
-----------------------------------
-- onTrade Action
-----------------------------------
functio... | gpl-3.0 |
lthall/Leonard_ardupilot | libraries/AP_Scripting/examples/analog_input_and_GPIO.lua | 19 | 1748 | -- This script is an example of reading a analog pin, PWM in and GPIO
-- for these examples BRD_PWM_COUNT must be 0
-- load the analog pin, there are only 16 of these available
-- some are used by the main AP code, ie battery monitors
-- assign them like this in the init, not in the main loop
local analog_in = analog... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Mount_Zhayolm/npcs/Mining_Point.lua | 13 | 1060 | -----------------------------------
-- Area: Mount Zhayolm
-- NPC: Mining Point
-----------------------------------
package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/mining");
require("scripts/zones/Mount_Zhayolm/TextIDs");
-----------------... | gpl-3.0 |
dmccuskey/dmc-objects | dmc_corona/lib/dmc_lua/lua_states_mix.lua | 44 | 6090 | --====================================================================--
-- dmc_lua/lua_states_mix.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (C) 2013-2015 David McCuskey. All Rights Reserved.
... | mit |
dmccuskey/dmc-objects | examples/DMC-ufo/dmc_corona/lib/dmc_lua/lua_states_mix.lua | 44 | 6090 | --====================================================================--
-- dmc_lua/lua_states_mix.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (C) 2013-2015 David McCuskey. All Rights Reserved.
... | mit |
kcsoft/tinyhub | tinyhub/plugins/websocket.lua | 1 | 1195 | local websocket = {}
local json = require'json'
server = require'websocket'.server.uloop
tinycore = require("tinycore")
function websocket.init()
server.listen
{
port = 8080,
protocols = {
echo = function(ws)
local message = ws:receive()
if message then
local ok, jsonMsg = pcall(json.decode, messag... | mit |
dwmw2/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk/voicemail.lua | 68 | 1475 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local ast = require "luci.asterisk"
cbimap = Map("asterisk", "Voicemail - Mailboxes")
voicemail = cbimap:section(TypedSection, "voicemail", "Voicemail Boxes")
voicemail.addremove = true
voicemail.anonymous = t... | apache-2.0 |
dwmw2/luci | build/luadoc/luadoc/config.lua | 165 | 1234 | -------------------------------------------------------------------------------
-- LuaDoc configuration file. This file contains the default options for
-- luadoc operation. These options can be overriden by the command line tool
-- @see luadoc.print_help
-- @release $Id: config.lua,v 1.6 2007/04/18 14:28:39 tomas Exp... | apache-2.0 |
dwmw2/luci | applications/luci-app-firewall/luasrc/model/cbi/firewall/zone-details.lua | 8 | 6080 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2010-2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local nw = require "luci.model.network"
local fw = require "luci.model.firewall"
local ds = require "luci.dispatcher"
local ut = require "luci.util"
loca... | apache-2.0 |
schidler/ionic-luci | applications/luci-app-modbusgw/luasrc/model/cbi/modbusgw/regs.lua | 2 | 1842 | --
-- Copyright 2015 Bright Things UN Ltd.
--
-- Maintainer: Lars Boegild Thomsen <lth@bright-things.com>
--
local ds = require "luci.dispatcher"
m = Map("modbusgw", translate("Modbus Gateway - Device registers"),
translate("Edit the Modbus device registers on this page."))
device = m:section(NamedSection, arg[1],... | apache-2.0 |
rpetit3/darkstar | scripts/zones/Northern_San_dOria/npcs/Emilia.lua | 13 | 1036 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Emilia
-- Type: Standard Dialogue NPC
-- @zone: 231
-- @pos -39.840 -2.000 -5.403
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs");
... | gpl-3.0 |
dmccuskey/dmc-objects | examples/DMC-ufo/dmc_corona/lib/dmc_lua/lua_files.lua | 48 | 11592 | --====================================================================--
-- dmc_lua/lua_files.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (C) 2014-2015 David McCuskey. All Rights Reserved.
Permi... | mit |
dmccuskey/dmc-objects | examples/Corona-Graphics-Fishies/dmc_corona/lib/dmc_lua/lua_files.lua | 48 | 11592 | --====================================================================--
-- dmc_lua/lua_files.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (C) 2014-2015 David McCuskey. All Rights Reserved.
Permi... | mit |
rpetit3/darkstar | scripts/globals/items/serving_of_bass_meuniere.lua | 18 | 1550 | -----------------------------------------
-- ID: 4582
-- Item: serving_of_bass_meuniere
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health % 3
-- Dexterity 3
-- Agility 3
-- Mind -3
-- Ranged ACC % 6
-- Ranged ACC Cap 15
-----------------------------------------
require("scripts/glob... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Yhoator_Jungle/npcs/Harvesting_Point.lua | 13 | 1080 | -----------------------------------
-- Area: Yhoator Jungle
-- NPC: Harvesting Point
-----------------------------------
package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/harvesting");
require("scripts/zones/Yhoator_Jungle/TextIDs");
------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Northern_San_dOria/npcs/Pirvidiauce.lua | 13 | 2100 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Pirvidiauce
-- Conquest depending medicine seller
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/glob... | gpl-3.0 |
esguk811/DarkRP | entities/entities/letter/commands.lua | 12 | 2743 | local function MakeLetter(ply, args, type)
if not GAMEMODE.Config.letters then
DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("disabled", "/write / /type", ""))
return ""
end
if ply.maxletters and ply.maxletters >= GAMEMODE.Config.maxletters then
DarkRP.notify(ply, 1, 4, DarkRP.getPhrase... | mit |
brendonjustin/vlc | share/lua/sd/appletrailers.lua | 110 | 1814 | --[[
$Id$
Copyright © 2010 VideoLAN and AUTHORS
Authors: Ilkka Ollakka <ileoo at videolan dot org >
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 yo... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Lower_Jeuno/npcs/Bluffnix.lua | 25 | 5561 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Bluffnix
-- Starts and Finishes Quests: Gobbiebags I-X
-- @pos -43.099 5.900 -114.788 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings... | gpl-3.0 |
MinetestForFun/server-minetestforfun-creative | minetestforfun_game/mods/default/init.lua | 1 | 4697 | -- Minetest 0.4 mod: default
-- See README.txt for licensing and other information.
default = {} -- Definitions made by this mod are usable by all mods.
-- The API documentation in here was moved into game_api.txt
-- Definitions made by this mod that other mods can use too
default = {}
default.LIGHT_MAX = 14
-- GU... | unlicense |
rpetit3/darkstar | scripts/globals/items/holy_maul.lua | 41 | 1073 | -----------------------------------------
-- ID: 17080
-- Item: Holy Maul
-- Additional Effect: Light Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
---------------------------------... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/poison_arrow.lua | 41 | 1046 | -----------------------------------------
-- ID: 18157
-- Item: Poison Arrow
-- Additional Effect: Poison
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-----------------------------------
f... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Beaucedine_Glacier/npcs/Trail_Markings.lua | 21 | 2756 | -----------------------------------
-- Area: Beaucedine Glacier
-- NPC: Trail Markings
-- Dynamis-Beaucedine Enter
-- @pos -284 -39 -422 111
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
re... | gpl-3.0 |
MinetestForFun/server-minetestforfun-creative | mods/moretrees/init.lua | 1 | 10070 | -- More trees! 2013-04-07
--
-- This mod adds more types of trees to the game
--
-- Some of the node definitions and textures came from cisoun's conifers mod
-- and bas080's jungle trees mod.
--
-- Brought together into one mod and made L-systems compatible by Vanessa
-- Ezekowitz.
--
-- Firs and Jungle tree axioms/ru... | unlicense |
wanghuan1115/sdkbox-chartboost-sample | lua/src/cocos/framework/extends/UIEditBox.lua | 57 | 1442 |
--[[
Copyright (c) 2011-2014 chukong-inc.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, di... | mit |
DDTChen/CookieVLC | vlc/share/lua/playlist/jamendo.lua | 105 | 3112 | --[[
$Id$
Copyright © 2010 VideoLAN and AUTHORS
Authors: Fabio Ritrovato <sephiroth87 at videolan dot org>
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
... | gpl-2.0 |
fegimanam/mer | plugins/channels.lua | 27 | 1754 | do
-- Checks if bot was disabled on specific chat
local function is_channel_disabled(receiver)
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Cloister_of_Frost/TextIDs.lua | 15 | 1042 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6384; -- Obtained: <item>
GIL_OBTAINED = 6385; -- Obtained <number> gil
KEYITEM_OBTAINED = 6387; -- Obtain... | gpl-3.0 |
ddouglascarr/rooset | lffrontend/app/main/member/show.lua | 1 | 5933 | local member = Member:by_id(param.get_id())
if not member or not member.activated then
execute.view { module = "index", view = "404" }
request.set_status("404 Not Found")
return
end
local limit = 25
local initiated_initiatives = Initiative:new_selector()
:join("initiator", nil, { "initiator.initiative_id = i... | mit |
rpetit3/darkstar | scripts/zones/Windurst_Walls/npcs/_6n8.lua | 30 | 1321 | -----------------------------------
-- Area: Windurst Walls
-- Door: Priming Gate
-- Involved in quest: Toraimarai Turmoil
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scripts/zones/Windurst_Walls/TextIDs");
-----------------------------------
... | gpl-3.0 |
telemanagerplus/SelfBot | libs/dkjson.lua | 1 | 26630 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
schidler/ionic-luci | libs/luci-lib-httpclient/luasrc/httpclient/receiver.lua | 78 | 5842 | -- Copyright 2009 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
require "nixio.util"
local nixio = require "nixio"
local httpc = require "luci.httpclient"
local ltn12 = require "luci.ltn12"
local print, tonumber, require, unpack = print, tonumber, require, unpack
module "l... | apache-2.0 |
rpetit3/darkstar | scripts/zones/Southern_San_dOria/npcs/Rosel.lua | 13 | 3014 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Rosel
-- Starts and Finishes Quest: Rosel the Armorer
-- @zone 230
-- @pos
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/setti... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/frostreaper.lua | 41 | 1063 | -----------------------------------------
-- ID: 16784
-- Item: Frostreaper
-- Additional Effect: Ice Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
---------------------------------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Southern_San_dOria/npcs/Atelloune.lua | 11 | 2706 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Atelloune
-- Starts and Finishes Quest: Atelloune's Lament
-- @zone 230
-- @pos 122 0 82
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
lukego/snabbswitch | lib/luajit/src/jit/dis_x86.lua | 10 | 32726 | ----------------------------------------------------------------------------
-- 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
--------------------------------------------------------------------------... | apache-2.0 |
rpetit3/darkstar | scripts/globals/items/ogre_eel.lua | 18 | 1390 | -----------------------------------------
-- ID: 4481
-- Item: ogre_eel
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-- Evasion 5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChe... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.