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 |
|---|---|---|---|---|---|
cjtallman/LDoc | ldoc/builtin/global.lua | 3 | 11311 | --- Lua global functions.
module 'global'
---
-- Issues an error when its argument `v` is false.
-- That is, nil or false. otherwise, returns all its arguments.
-- `message` is an error when absent, it defaults to "assertion failed!"
function assert(v , message) end
---
-- This function is a generic interface to t... | mit |
Armyluix/darkstar | scripts/zones/Port_Bastok/npcs/Yazan.lua | 17 | 2027 | -----------------------------------
-- Area: Port Bastok
-- NPC: Yazan
-- Starts Quests: Bite the Dust (100%)
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
------------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Vunkerl_Inlet_[S]/npcs/Leafy_Patch.lua | 45 | 1646 | -----------------------------------
-- Area: Vunkerl Inlet (S) (F-5)
-- NPC: Leafy Patch
-- Involved in Quests
-- @pos -418 -33 576
-----------------------------------
package.loaded["scripts/zones/Vunkerl_Inlet_[S]/TextIDs"] = nil;
package.loaded["scripts/globals/quests"] = nil;
-----------------------------------
re... | gpl-3.0 |
v3n/ProDBG | bin/win32/scripts/tundra/ide/xcode5.lua | 25 | 28102 | -- Xcode 5 Workspace/Project file generation
module(..., package.seeall)
local path = require "tundra.path"
local nodegen = require "tundra.nodegen"
local util = require "tundra.util"
local native = require "tundra.native"
local xcode_generator = {}
xcode_generator.__index = xcode_generator
function xcode_generator... | mit |
Armyluix/darkstar | scripts/zones/Xarcabard/npcs/Luck_Rune.lua | 34 | 1062 | -----------------------------------
-- Area: Xarcabard
-- NPC: Luck Rune
-- Involved in Quest: Mhaura Fortune
-- @pos 576.117 -0.164 -16.935 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Xarcab... | gpl-3.0 |
bravnsgaard/premake-core | src/actions/vstudio/vs2005_solution.lua | 2 | 9388 | --
-- vs2005_solution.lua
-- Generate a Visual Studio 2005-2012 solution.
-- Copyright (c) 2009-2015 Jason Perkins and the Premake project
--
local p = premake
p.vstudio.sln2005 = {}
local vstudio = p.vstudio
local sln2005 = p.vstudio.sln2005
local project = p.project
local tree = p.tree
---
-- Add namespace ... | bsd-3-clause |
abriasffxi/darkstar | scripts/zones/Jade_Sepulcher/Zone.lua | 32 | 1271 | -----------------------------------
--
-- Zone: Jade_Sepulcher (67)
--
-----------------------------------
package.loaded["scripts/zones/Jade_Sepulcher/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Jade_Sepulcher/TextIDs");
---------------------------... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Quicksand_Caves/TextIDs.lua | 9 | 1486 | -- 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 |
Armyluix/darkstar | scripts/zones/Selbina/npcs/Abelard.lua | 17 | 7136 | -----------------------------------
-- Area: Selbina
-- NPC: Abelard
-- An Explorer's Footsteps
-- @pos -52 -11 -13 248
-- This quest was changed to require a minimum amount of fame to combat RMTs POS-Hacking around to
-- quickly earn gil. However, as this is not a legitimate concern on private servers play... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/San_dOria-Jeuno_Airship/TextIDs.lua | 9 | 1088 | -- 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 |
Armyluix/darkstar | scripts/zones/Western_Altepa_Desert/Zone.lua | 27 | 4592 | -----------------------------------
--
-- Zone: Western_Altepa_Desert (125)
--
-----------------------------------
package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require("scripts/zones/Western_Al... | gpl-3.0 |
obelisk21/prosody-modules | mod_limit_auth/mod_limit_auth.lua | 31 | 1377 | -- mod_limit_auth
local st = require"util.stanza";
local new_throttle = require "util.throttle".create;
local period = math.max(module:get_option_number(module.name.."_period", 30), 0);
local max = math.max(module:get_option_number(module.name.."_max", 5), 1);
local tarpit_delay = module:get_option_number(module.nam... | mit |
abriasffxi/darkstar | scripts/globals/weaponskills/geirskogul.lua | 19 | 1848 | -----------------------------------
-- Geirskogul
-- Polearm weapon skill
-- Skill Level: N/A
-- Gae Assail/Gungnir: Shock Spikes.
-- This weapon skill is only available with the stage 5 relic Polearm Gungnir, within Dynamis with the stage 4 Gae Assail, or by activating the latent effect on the Skogul Lance.
-- Aligned... | gpl-3.0 |
parsagachkardev/AutoBot2 | plugins/time.lua | 771 | 2865 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
Francesco149/lainbot | plugins/time.lua | 771 | 2865 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
abriasffxi/darkstar | scripts/zones/Pashhow_Marshlands/npcs/Souun_IM.lua | 14 | 3340 | -----------------------------------
-- Area: Pashhow Marshlands
-- NPC: Souun, I.M.
-- Type: Outpost Conquest Guards
-- @pos 470.843 23.465 415.520 109
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/con... | gpl-3.0 |
obelisk21/prosody-modules | mod_storage_gdbm/mod_storage_gdbm.lua | 15 | 4272 | -- mod_storage_gdbm
-- Copyright (C) 2014-2015 Kim Alvefur
--
-- This file is MIT/X11 licensed.
--
-- Depends on lgdbm:
-- http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/#lgdbm
--
-- luacheck: globals open purge
local gdbm = require"gdbm";
local path = require"util.paths";
local lfs = require"lfs";
local st = requ... | mit |
Armyluix/darkstar | scripts/zones/Abyssea-Konschtat/npcs/Atma_Fabricant.lua | 32 | 1104 | -----------------------------------
-- Zone: Abyssea - Konschtat
-- NPC: Atma Fabricant
--
-----------------------------------
package.loaded["scripts/zones/Abyssea-Konschtat/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/abyssea");
require... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Bastok_Markets_[S]/npcs/Jagaris.lua | 16 | 4324 | -----------------------------------
-- Area: Bastok Markets [S]
-- NPC: Jagaris
-- Armor Storage NPC
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/armorstorage");
requ... | gpl-3.0 |
abriasffxi/darkstar | scripts/commands/zone.lua | 23 | 13403 | ---------------------------------------------------------------------------------------------------
-- func: zone
-- desc: Teleports a player to the given zone.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "s"
};
... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Metalworks/npcs/Pius.lua | 14 | 1976 | -----------------------------------
-- Area: Metalworks
-- NPC: Pius
-- Involved In Mission: Journey Abroad
-- @pos 99 -21 -12 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zon... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/items/plate_of_mushroom_paella_+1.lua | 18 | 1378 | -----------------------------------------
-- ID: 5971
-- Item: Plate of Mushroom Paella +1
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- HP 43
-- Mind 6
-- Magic Accuracy 6
-- Undead Killer 6
-----------------------------------------
require("scripts/globals/status");
-----------------... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/spells/gravity.lua | 18 | 1083 | -----------------------------------------
-- Spell: Gravity
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,spel... | gpl-3.0 |
ElectroDuk/QuackWars | garrysmod/gamemodes/Basewars/entities(maybe_outdated)/weapons/weapon_smokegrenade/shared.lua | 2 | 1261 | // Variables that are used on both client and server
SWEP.Base = "cse_eq_flashbang"
SWEP.ViewModelFlip = true
SWEP.ViewModel = "models/weapons/v_eq_smokegrenade.mdl"
SWEP.WorldModel = "models/weapons/w_eq_smokegrenade.mdl"
SWEP.Spawnable = true
SWEP.AdminSpawnable = false
SWEP.Primary.Recoil = 5
SWEP... | mit |
abriasffxi/darkstar | scripts/globals/mobskills/Equalizer.lua | 35 | 1146 | ---------------------------------------------------
-- Equalizer
-- AoE damage (~600-800),
--
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
funct... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Windurst_Waters/npcs/Ohbiru-Dohbiru.lua | 28 | 12066 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Ohbiru-Dohbiru
-- Involved in quest: Food For Thought, Say It with Flowers
-- Starts and finishes quest: Toraimarai Turmoil
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("scripts/globa... | gpl-3.0 |
urueedi/luci | applications/luci-app-ddns/luasrc/model/cbi/ddns/overview.lua | 3 | 8380 | -- Copyright 2014 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed to the public under the Apache License 2.0.
local NXFS = require "nixio.fs"
local DISP = require "luci.dispatcher"
local HTTP = require "luci.http"
local SYS = require "luci.sys"
local CTRL = require "luci.controller.ddns... | apache-2.0 |
Armyluix/darkstar | scripts/zones/Port_Bastok/npcs/Rosswald.lua | 36 | 1683 | -----------------------------------
-- Area: Port Bastok
-- NPC: Rosswald
-- Only sells when Bastok controlls Zulkheim Region
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Port_Bastok... | gpl-3.0 |
jebenexer/kong | spec/01-unit/004-utils_spec.lua | 4 | 23150 | local utils = require "kong.tools.utils"
describe("Utils", function()
describe("get_hostname()", function()
it("should retrieve the hostname", function()
assert.is_string(utils.get_hostname())
end)
end)
describe("get_system_infos()", function()
it("retrieves various host infos", function()
... | apache-2.0 |
abriasffxi/darkstar | scripts/zones/Windurst_Woods/npcs/Mokop-Sankop.lua | 14 | 1056 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Mokop-Sankop
-- Type: Conquest Troupe
-- @zone 241
-- @pos 11.542 1.05 -53.217
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
--------... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Bastok_Mines/npcs/Azima.lua | 29 | 1886 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Azima
-- Alchemy Adv. Synthesis Image Support
-- @pos 123.5 2 1 234
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/items/plate_of_piscators_paella.lua | 18 | 1482 | -----------------------------------------
-- ID: 5969
-- Item: Plate of Piscator's Paella
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- HP 45
-- Dexterity 6
-- Accuracy % 16 (cap 85)
-- Undead Killer 6
-----------------------------------------
require("scripts/globals/status");
-------... | gpl-3.0 |
ennorehling/tolua | src/bin/lua/declaration.lua | 13 | 12335 | -- tolua: declaration class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: declaration.lua,v 1.5 2011/01/13 13:43:46 fabraham Exp $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligatio... | mit |
girvo/textadept-config | themes/base16-chalk-dark.lua | 1 | 4151 | -- Chalk theme for Textadept
-- Theme author: Chris Kempson (http://chriskempson.com)
-- Base16 (https://github.com/chriskempson/base16)
-- Build with Base16 Builder (https://github.com/chriskempson/base16-builder)
-- Repository: https://github.com/rgieseke/ta-themes
local buffer = buffer
local property, property_int ... | mit |
Armyluix/darkstar | scripts/globals/items/bowl_of_vegetable_broth.lua | 35 | 1399 | -----------------------------------------
-- ID: 4323
-- Item: bowl_of_vegetable_broth
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- Vitality -1
-- Agility 5
-- Ranged Accuracy 6
-- HP Recovered While Healing 3
-----------------------------------------
require("scripts/globals... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Bastok-Jeuno_Airship/TextIDs.lua | 22 | 1080 | -- 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 |
Armyluix/darkstar | scripts/zones/Kazham/npcs/Ghemi_Sinterilo.lua | 37 | 1391 | -----------------------------------
-- Area: Kazham
-- NPC: Ghemi Senterilo
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onT... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Abyssea-Altepa/Zone.lua | 33 | 1470 | -----------------------------------
--
-- Zone: Abyssea - Altepa
--
-----------------------------------
package.loaded["scripts/zones/Abyssea-Altepa/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/zones/Abyssea-Altepa/TextIDs... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/San_dOria-Jeuno_Airship/npcs/Nigel.lua | 30 | 2316 | -----------------------------------
-- Area: San d'Oria-Jeuno Airship
-- NPC: Nigel
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/San_dOria-Jeuno_Airship/TextIDs"] = nil;
require("scripts/zones/San_dOria-Jeuno_Airship/TextIDs");
-----------------------------------
-- onTrade... | gpl-3.0 |
ElectroDuk/QuackWars | garrysmod/gamemodes/Basewars(Broken}/entities(maybe_outdated)/entities/ent_mad_c4/shared.lua | 2 | 1310 | ENT.Type = "anim"
ENT.PrintName = "Explosive C4"
ENT.Author = "Worshipper"
ENT.Contact = "Josephcadieux@hotmail.com"
ENT.Purpose = ""
ENT.Instructions = ""
/*---------------------------------------------------------
Name: ENT:SetupDataTables()
Desc: Setup the data tables.
-----------------------------------... | mit |
abriasffxi/darkstar | scripts/zones/Upper_Jeuno/npcs/Finnela.lua | 14 | 1040 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Finnela
-- Type: Standard NPC
-- @zone 244
-- @pos -51.880 -1 106.486
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
------------------------... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Port_San_dOria/npcs/Prietta.lua | 13 | 1435 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Prietta
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
require("scripts/zones/Port_San_dOria/TextIDs");
-----------------------------------
-- onTrade Action
--------... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/mobskills/Spike_Flail.lua | 33 | 1247 | ---------------------------------------------------
-- Spike Flail
-- Deals extreme damage in a threefold attack to targets behind the user.
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
----------... | gpl-3.0 |
ElectroDuk/QuackWars | garrysmod/addons/ulx/lua/ulx/xgui/settings/server.lua | 2 | 32896 | --Server settings module for ULX GUI -- by Stickly Man!
--A settings module for modifying server and ULX based settings. Also has the base code for loading the server settings modules.
local server = xlib.makepanel{ parent=xgui.null }
--------------------------GMOD Settings--------------------------
xlib.makecheckbox... | mit |
ElectroDuk/QuackWars | garrysmod/addons/ulib/lua/ulib/client/draw.lua | 3 | 1235 | --[[
Title: Draw
Our client-side draw functions
]]
--[[
Function: csayDraw
Draws a csay text on the screen.
Parameters:
msg - The message to draw.
color - *(Optional, defaults to 255, 255, 255, 255)* The color of the text
duration - *(Optional, defaults to 5)* The length of the text
fade - *(Optional,... | mit |
uspgamedev/backdoor | game/domain/behaviors/helpers/listcardplays.lua | 1 | 4303 |
local DIR = require 'domain.definitions.dir'
local ACTIONDEFS = require 'domain.definitions.action'
local ACTION = require 'domain.action'
local CHOOSE_TARGET = require 'domain.inputs.choose_target'
local TILE = require 'common.tile'
local _PLAY_CARD = ACTIONDEFS.PLAY_CARD
local function... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/West_Ronfaure/npcs/Harvetour.lua | 14 | 1917 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Harvetour
-- Type: Outpost Vendor
-- @pos -448 -19 -214 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/... | gpl-3.0 |
ElectroDuk/QuackWars | garrysmod/gamemodes/Basewars/entities(maybe_outdated)/entities/sign/init.lua | 2 | 1890 | /* ======================================
sign
A sign that has text drawn in the air,
or something.
====================================== */
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
function ENT:SpawnFunction( ply, tr )
if ( !tr.Hit ) then return end
local... | mit |
abriasffxi/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Ratonne.lua | 16 | 4324 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Ratonne
-- Armor Storage NPC
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/armorstorage");
requ... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/Field_Manual.lua | 29 | 1067 | -----------------------------------
-- Field Manual
-- Area: Eastern Altepa Desert
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/fieldsofvalor");
-----------------------------------
-- onTrigger Action
----------------------------... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Chamber_of_Oracles/Zone.lua | 30 | 1741 | -----------------------------------
--
-- Zone: Chamber_of_Oracles (168)
--
-----------------------------------
package.loaded["scripts/zones/Chamber_of_Oracles/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Chamber_of_Oracles/TextIDs");
--------------... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/spells/bluemagic/regurgitation.lua | 18 | 2057 | -----------------------------------------
-- Spell: Regurgitation
-- Deals Water damage to an enemy. Additional Effect: Bind
-- Spell cost: 69 MP
-- Monster Type: Lizards
-- Spell Type: Magical (Water)
-- Blue Magic Points: 1
-- Stat Bonus: INT+1 MND+1 MP+3
-- Level: 68
-- Casting Time: 5 seconds
-- Recast Ti... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Windurst_Waters/npcs/Lumomo.lua | 14 | 3048 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Lumomo
-- Type: Standard NPC
-- @zone 238
-- @pos -55.770 -5.499 18.914
-- 0x027e 0x0332 0x0334 0x0336 0x0337
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurs... | gpl-3.0 |
obelisk21/prosody-modules | mod_benchmark_storage/mod_benchmark_storage.lua | 10 | 5752 | -- mod_benchmark_storage
-- Copyright (C) 2015 Kim Alvefur
--
-- Prime numbers are pretty cool
local gettime = require"socket".gettime;
local sm = require"core.storagemanager";
local um = require"core.usermanager";
local mm = require"core.modulemanager";
local test_data, test_users;
function module.command(arg)
lo... | mit |
bravnsgaard/premake-core | src/base/os.lua | 1 | 15793 | --
-- os.lua
-- Additions to the OS namespace.
-- Copyright (c) 2002-2014 Jason Perkins and the Premake project
--
---
-- Extend Lua's built-in os.execute() with token expansion and
-- path normalization.
--
premake.override(os, "execute", function(base, cmd)
cmd = os.translateCommands(cmd)
return... | bsd-3-clause |
davek44/Basset | src/basset_predict.lua | 1 | 2859 | #!/usr/bin/env th
require 'hdf5'
require 'postprocess'
----------------------------------------------------------------
-- parse arguments
----------------------------------------------------------------
cmd = torch.CmdLine()
cmd:text()
cmd:text('DNA ConvNet testing')
cmd:text()
cmd:text('Arguments')
cmd:argument('m... | mit |
mortezamosavy999/telegrambot | plugins/minecraft.lua | 624 | 2605 | local usage = {
"!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565",
"!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.",
}
local ltn12 = require "ltn12"
local function mineSearch(ip, port, receiver) --25565
local responseText = ""
l... | gpl-2.0 |
abriasffxi/darkstar | scripts/zones/Beaucedine_Glacier_[S]/npcs/Moana_CA.lua | 14 | 1077 | -----------------------------------
-- Area: Beaucedine Glacier (S)
-- NPC: Moana, C.A.
-- Type: Campaign Arbiter
-- @zone 136
-- @pos -27.237 -60.888 -48.111
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier_[S]/Text... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Western_Adoulin/npcs/Mastan.lua | 14 | 2128 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Virsaint
-- Type: Standard NPC and Quest NPC
-- Involved with Quests: 'Order Up'
-- 'The Curious Case of Melvien'
-- @zone 256
-- @pos -9 0 67
-----------------------------------
package.loaded["scripts/zones/Western_Adoul... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/mobskills/Cryo_Jet.lua | 18 | 1243 | ---------------------------------------------------
-- Cryo_Jet
-- Description:
-- Type: Magical
-- additional effect : Paralyze
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
----------------... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/spells/dia_ii.lua | 18 | 2295 | -----------------------------------------
-- Spell: Dia II
-- Lowers an enemy's defense and gradually deals light elemental damage.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------... | gpl-3.0 |
ElectroDuk/QuackWars | garrysmod/gamemodes/Basewars/gamemode/Guis working on this right now/simpleHud.lua | 3 | 4312 | function myhud()
local client = LocalPlayer()
if !client:Alive() then return end
if(client:GetActiveWeapon() == NULL or client:GetActiveWeapon() == "Camera") then return end
local mag_left = client:GetActiveWeapon():Clip1()
local mag_extra = client:GetAmmoCount(client:GetActiveWeapon():GetPrima... | mit |
Armyluix/darkstar | scripts/zones/Cape_Teriggan/npcs/HomePoint#1.lua | 19 | 1196 | -----------------------------------
-- Area: Cape Teriggan
-- NPC: HomePoint#1
-- @pos -303 -8 526 113
-----------------------------------
package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Cape_Teriggan/TextIDs");
require("scripts/globals/homepo... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/Telepoint.lua | 17 | 1643 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: Telepoint
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Eastern_Altepa_Desert/Te... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Geltpix.lua | 14 | 1142 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Geltpix
-- @zone 80
-- @pos 154 -2 103
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
-----------------------------------
-- onTr... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/RongeloutsNDistaud.lua | 17 | 1622 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Rongelouts N Distaud
-- @zone 80
-- @pos 0.067 2 -22
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
require("scripts/glob... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Windurst_Waters/npcs/Rukuku.lua | 36 | 1417 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Rukuku
-- Involved in Quest: Making the Grade
-- Working 100%
-- @zone = 238
-- @pos = 130 -6 160
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
r... | gpl-3.0 |
CryTek-Team/CryTek | plugins/inrealm.lua | 3 | 36470 | data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin1(msg) then
local group_creator = msg.from.print_name
create_group_chat (group_creator, group_name,... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/mobskills/PW_Groundburst.lua | 25 | 1068 | ---------------------------------------------
-- Groundburst
--
-- Description: Expels a fireball on targets in an area of effect.
-- Type: Physical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: Unknown radial
-- Notes: Only used by notorious monsters, and from any Mamool Ja in besieged.
-------------------... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Southern_San_dOria/npcs/Thadiene.lua | 17 | 2118 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Thadiene
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop");
requ... | gpl-3.0 |
urueedi/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/sensors.lua | 30 | 2974 | -- Copyright 2015 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require "luci.sys"
local m, s, o
local sensor_types = {
["12v"] = "voltage",
["2.0v"] = "voltage",
["2.5v"] = "voltage",
["3.3v"] = "voltage",
["5.0v"] = "voltage",
["5v"] = "voltage",
["ain1"] = "voltag... | apache-2.0 |
jonese1234/PokeBotBad | BizHawk-1.11.6/Lua/NES/SMB2U.lua | 7 | 6148 | -- Super Mario Bros. 2 USA - Grids & Contents (Unfinished)
-- Super Mario Bros. 2 (U) (PRG0) [!].nes
-- Written by QFox
-- 31 July 2008
-- shows (proper!) grid and contents. disable grid by setting variable to false
-- shows any non-air grid's tile-id
-- Slow! Will be heavy on lighter systems
local angrybirdo = fal... | mit |
abriasffxi/darkstar | scripts/zones/Lower_Jeuno/npcs/Parike-Poranke.lua | 14 | 1121 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Parike-Poranke
-- Type: Adventurer's Assistant
-- @zone 245
-- @pos -33.161 -1 -61.303
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-------... | gpl-3.0 |
milani/luvem | luvem/resource.lua | 1 | 1819 | --[[
Copyright 2014-2016 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | apache-2.0 |
cyberix3d/Cyberix3D | Source/ThirdParty/toluapp/src/bin/lua/basic.lua | 24 | 9103 | -- tolua: basic utility functions
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- Last update: Apr 2003
-- $Id: $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance... | gpl-3.0 |
ElectroDuk/QuackWars | garrysmod/gamemodes/Basewars14/entities/weapons/weapon_bigbomb/cl_init.lua | 1 | 1240 | include('shared.lua')
SWEP.PrintName = "Bigbomb" // 'Nice' Weapon name (Shown on HUD)
SWEP.Slot = 1 // Slot in the weapon selection menu
SWEP.SlotPos = 8 // Position in the slot
SWEP.Ghost = NULL
/*---------------------------------------------------------
Name: SWEP:Think()
Desc: Ca... | mit |
abriasffxi/darkstar | scripts/zones/Attohwa_Chasm/npcs/Jakaka.lua | 9 | 2447 | -----------------------------------
-- Area: Attohwa Chasm
-- NPC: Jakaka
-- Type: ENM
-- @pos -144.711 6.246 -250.309 7
-----------------------------------
package.loaded["scripts/zones/Attohwa_Chasm/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Attohwa_Chasm/TextIDs");
require("scri... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/items/cup_of_healing_tea.lua | 17 | 1358 | -----------------------------------------
-- ID: 4286
-- Item: cup_of_healing_tea
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Magic 10
-- Vitality -1
-- Charisma 3
-- Magic Regen While Healing 2
-----------------------------------------
require("scripts/globals/status");
-----------... | gpl-3.0 |
ElectroDuk/QuackWars | garrysmod/gamemodes/Basewars(Broken}/entities(maybe_outdated)/entities/superpowerplant/init.lua | 2 | 5256 | -- ============================================
-- = =
-- = Crate SENT by Mahalis =
-- = =
-- ============================================
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include('shared.lua')
f... | mit |
ElectroDuk/QuackWars | garrysmod/gamemodes/Basewars/entities(maybe_outdated)/entities/superpowerplant/init.lua | 2 | 5256 | -- ============================================
-- = =
-- = Crate SENT by Mahalis =
-- = =
-- ============================================
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include('shared.lua')
f... | mit |
mbmahdiiii/mm | plugins/banhammer.lua | 6 | 12758 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('درحال بررسی شخص اینوایت شده '..user_id)
local b... | gpl-2.0 |
Armyluix/darkstar | scripts/globals/items/slice_of_buffalo_meat.lua | 18 | 1424 | -----------------------------------------
-- ID: 5152
-- Item: slice_of_buffalo_meat
-- Food Effect: 5Min, Galka only
-----------------------------------------
-- Strength 4
-- Agility -5
-- Intelligence -7
-----------------------------------------
require("scripts/globals/status");
----------------------... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/items/orange_kuchen.lua | 18 | 1209 | -----------------------------------------
-- ID: 4393
-- Item: orange_kuchen
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Magic % 13
-- Magic Cap 75
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Moh_Gates/Zone.lua | 17 | 1206 | -----------------------------------
--
-- Zone: Moh Gates
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Moh_Gates/TextIDs"] = nil;
require("scripts/zones/Moh_Gates/TextIDs");
-----------------------------------
-- onInitialize
----------------------------... | gpl-3.0 |
bravnsgaard/premake-core | tests/base/test_filename.lua | 32 | 1690 | --
-- tests/base/test_filename.lua
-- Verify generation of project/workspace/rule filenames.
-- Copyright (c) 2008-2014 Jason Perkins and the Premake project
--
local suite = test.declare("project_filename")
local p = premake
--
-- Setup
--
local wks
function suite.setup()
wks = test.createWorkspace()
end... | bsd-3-clause |
abriasffxi/darkstar | scripts/zones/Norg/npcs/_700.lua | 14 | 2994 | -----------------------------------
-- Area: Norg
-- NPC: Oaken door (Gilgamesh's room)
-- @pos 97 -7 -12 252
-----------------------------------
require("scripts/globals/missions");
require("scripts/globals/settings")
-----------------------------------
-- onTrade Action
-----------------------------------
functio... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Windurst_Woods/npcs/Kuzah_Hpirohpon.lua | 27 | 1199 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Kuzah Hpirohpon
-- Guild Merchant NPC: Clothcrafting Guild
-- @pos -80.068 -3.25 -127.686 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globa... | gpl-3.0 |
bravnsgaard/premake-core | tests/tools/test_snc.lua | 16 | 3491 | --
-- tests/test_snc.lua
-- Automated test suite for the SNC toolset interface.
-- Copyright (c) 2012-2013 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("tools_snc")
local snc = p.tools.snc
--
-- Setup/teardown
--
local wks, prj, cfg
function suite.setup()
wks, prj =... | bsd-3-clause |
chenhaowen01/gdut-drcom-for-openwrt | files/usr/lib/lua/luci/model/cbi/gdut-drcom.lua | 1 | 1924 | --[[
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
]]--
require("... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Buburimu_Peninsula/npcs/Signpost.lua | 19 | 1356 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Signpost
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Buburimu_Peninsula/TextIDs");
-----------------------------------
-- onTrad... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/spells/diaga_ii.lua | 18 | 1869 | -----------------------------------------
-- Spell: Diaga II
-- Lowers an enemy's defense and gradually deals light elemental damage.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
---------------------------... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/items/army_biscuit.lua | 35 | 1254 | -----------------------------------------
-- ID: 5657
-- Item: army_biscuit
-- Food Effect: 5Min?, All Races
-----------------------------------------
-- HP Recovered While Healing 3
-- MP Recovered While Healing 3
-----------------------------------------
require("scripts/globals/status");
---------------... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/mining.lua | 2 | 16935 | ------------------------------------------------------------------------------------------
-- Mining 2.0
-- Note: When implementing new zones, ensure there are more mining point locations
-- than there are mining points for the zone.
-----------------------------------------------------------------------------------... | gpl-3.0 |
bravnsgaard/premake-core | tests/actions/vstudio/vc2010/test_config_props.lua | 1 | 7699 | --
-- tests/actions/vstudio/vc2010/test_config_props.lua
-- Validate generation of the configuration property group.
-- Copyright (c) 2011-2013 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vstudio_vs2010_config_props")
local vc2010 = p.vstudio.vc2010
local project = p.proj... | bsd-3-clause |
JKGDevs/JediKnightGalaxies | JKGalaxies/glua/maps/jkg_imperialbasectf/npcs.lua | 2 | 2248 | --[[ ------------------------------------------------
Jedi Knight Galaxies Lua Code
JKG ImperialBaseCTF backend: npcs
Written by Futuza
--------------------------------------------------]]
-- Here we'll spawn all the npcs that belong to the map
local npctable = {
-- The vendors @ imperial
{
NPCType ... | gpl-2.0 |
abriasffxi/darkstar | scripts/zones/Windurst_Waters_[S]/Zone.lua | 1 | 1354 | -----------------------------------
--
-- Zone: Windurst_Waters_[S] (94)
--
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Windurst_Waters_[S]/TextIDs");
------------... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Al_Zahbi/npcs/Taten-Bilten.lua | 14 | 1178 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Taten-Bilten
-- Guild Merchant NPC: Clothcraft Guild
-- @pos 71.598 -6.000 -56.930 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
req... | gpl-3.0 |
v3n/ProDBG | bin/win32/scripts/tundra/syntax/files.lua | 20 | 1437 | module(..., package.seeall)
local decl = require "tundra.decl"
local depgraph = require "tundra.depgraph"
local common_blueprint = {
Source = {
Required = true,
Help = "Source filename",
Type = "string",
},
Target = {
Required = true,
Help = "Target filename",
Type = "string",
},
}... | mit |
dani-sj/baba | plugins/info.lua | 9 | 8956 | do
local Arian = 122662162 --put your id here(BOT OWNER ID)
local function setrank(msg, name, value) -- setrank function
local hash = nil
if msg.to.type == 'chat' then
hash = 'rank:'..msg.to.id..':variables'
end
if hash then
redis:hset(hash, name, value)
return send_msg('chat#id'..msg.to.id, 'مقام کار... | gpl-2.0 |
abriasffxi/darkstar | scripts/zones/Hall_of_the_Gods/npcs/Shimmering_Circle.lua | 14 | 1814 | -----------------------------------
-- Area: Hall of the Gods
-- NPC: Shimmering Circle
-- Lifts players up to the sky!
-- @pos 0 -20 147 251
-----------------------------------
package.loaded["scripts/zones/Hall_of_the_Gods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
req... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.