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 |
|---|---|---|---|---|---|
mtroyka/Zero-K | units/empiricaldpser.lua | 3 | 1230 | unitDef = {
unitname = [[empiricaldpser]],
name = [[Empirical DPS thing]],
description = [[Shoot at it for science.]],
acceleration = 0,
buildCostEnergy = 30000000,
buildCostMetal = 30000000,
builder = false,
build... | gpl-2.0 |
thedraked/darkstar | scripts/globals/items/loaf_of_homemade_bread.lua | 18 | 1107 | -----------------------------------------
-- ID: 5228
-- Item: loaf_of_homemade_bread
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Agility 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
----------... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Tahrongi_Canyon/npcs/Stone_Monument.lua | 14 | 1295 | -----------------------------------
-- Area: Tahrongi Canyon
-- NPC: Stone Monument
-- Involved in quest "An Explorer's Footsteps"
-- @pos -499.189 12.600 373.592 117
-----------------------------------
package.loaded["scripts/zones/Tahrongi_Canyon/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Western_Adoulin/npcs/Virsaint.lua | 14 | 1308 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Virsaint
-- Type: Standard NPC and Quest NPC
-- Involved with Quests: 'A Certain Substitute Patrolman'
-- @zone 256
-- @pos 32 0 -5
-----------------------------------
require("scripts/globals/quests");
-----------------------------------
-- onT... | gpl-3.0 |
SnabbCo/snabbswitch | src/lib/yang/binary.lua | 3 | 23753 | -- Use of this source code is governed by the Apache 2.0 license; see
-- COPYING.
module(..., package.seeall)
local S = require("syscall")
local ffi = require("ffi")
local lib = require("core.lib")
local shm = require("core.shm")
local file = require("lib.stream.file")
local schema = require("lib.yang.schema")
local u... | apache-2.0 |
latenitefilms/hammerspoon | extensions/eventtap/eventtap.lua | 4 | 13785 | --- === hs.eventtap ===
---
--- Tap into input events (mouse, keyboard, trackpad) for observation and possibly overriding them
--- It also provides convenience wrappers for sending mouse and keyboard events. If you need to construct finely controlled mouse/keyboard events, see hs.eventtap.event
---
--- This module is b... | mit |
thedraked/darkstar | scripts/zones/Beadeaux/npcs/The_Mute.lua | 14 | 1296 | -----------------------------------
-- Area: Beadeaux
-- NPC: ???
-- @pos -166.230 -1 -73.685 147
-----------------------------------
package.loaded["scripts/zones/Beadeaux/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Beadeaux/TextIDs");
require("scripts/globals/quests");
require("scrip... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Sajaaya.lua | 59 | 1060 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Sajaaya
-- Type: Weather Reporter
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Aht_Urhgan_... | gpl-3.0 |
NPLPackages/main | script/ide/System/Database/Collection.lua | 1 | 11512 | --[[
Title: Collection
Author(s): LiXizhi,
Date: 2016/5/11
Desc: Collection is like a sql table in standard database.
A database contains many collections.
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/ide/System/Database/Collection.lua");
local Collection = commonlib.g... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Sacrificial_Chamber/npcs/_4j4.lua | 14 | 1440 | -----------------------------------
-- Area: Sacrificial Chamber
-- NPC: Mahogany Door
-- @pos 300 30 -324 163
-------------------------------------
package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/missio... | gpl-3.0 |
X-Coder/wire | lua/entities/gmod_wire_dataport.lua | 10 | 1402 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Data Port"
ENT.WireDebugName = "DataPort"
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsInit(SOLID_VPHYSICS)
self:SetMoveType(MOVETYPE_VPHYSICS)
self:SetSolid(SOLID_VPHYSICS)
self:SetUseType(SIMPLE_USE... | gpl-3.0 |
mtroyka/Zero-K | LuaRules/Configs/StartBoxes/Lonely Oasis v1.lua | 19 | 5097 | local boxes = {
[0] = {
boxes = {
{
{5486, 2151},
{5537, 2426},
{5583, 2551},
{5648, 2630},
{5748, 2676},
{5924, 2680},
{6078, 2669},
{6165, 2687},
{6272, 2746},
{6420, 2777},
{6541, 2769},
{6668, 2694},
{6734, 2594},
{6765, 2447},
{6757, 2289},
{671... | gpl-2.0 |
Ali-2h/losebot | 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 |
mtroyka/Zero-K | scripts/spideranarchid.lua | 16 | 4496 | include "constants.lua"
include "spider_walking.lua"
--------------------------------------------------------------------------------
-- pieces
--------------------------------------------------------------------------------
local body = piece 'body'
local turret = piece 'turret'
local gun = piece 'gun'
local flare... | gpl-2.0 |
gowadbd/gowad | plugins/me.lua | 2 | 2919 | --[[
_____ ____ ____ ___ _____
|_ _| _ \ | __ ) / _ \_ _|
| | | |_) | | _ \| | | || |
| | | __/ | |_) | |_| || |
|_| |_| |____/ \___/ |_|
KASPER TP (BY @kasper_dev)
_ __ _ ____ ____ _____ ____ _____ ____
| |/ / / \ / ___|| _ \| ... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Temenos/bcnms/Temenos_Western_Tower.lua | 35 | 1096 | -----------------------------------
-- Area: Temenos
-- Name:
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[Temenos_W_Tower]UniqueID",GenerateLimbusKey());
HideArmouryCrates(GetInstanceRegion(1298),... | gpl-3.0 |
ukoloff/rufus-lua-win | vendor/lua/lib/lua/luarocks/make.lua | 2 | 2654 |
--- Module implementing the LuaRocks "make" command.
-- Builds sources in the current directory, but unlike "build",
-- it does not fetch sources, etc., assuming everything is
-- available in the current directory.
module("luarocks.make", package.seeall)
local build = require("luarocks.build")
local fs = require("lu... | mit |
thedraked/darkstar | scripts/globals/weaponskills/guillotine.lua | 18 | 1964 | -----------------------------------
-- Guillotine
-- Scythe weapon skill
-- Skill level: 200
-- Delivers a four-hit attack. Duration varies with TP.
-- Modifiers: STR:25% ; MND:25%
-- 100%TP 200%TP 300%TP
-- 0.875 0.875 0.875
-----------------------------------
require("scripts/globals/status");
require("... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Cape_Teriggan/npcs/Cermet_Headstone.lua | 14 | 4139 | -----------------------------------
-- Area: Cape Teriggan
-- NPC: Cermet Headstone
-- Involved in Mission: ZM5 Headstone Pilgrimage (Wind Headstone)
-- @pos -107 -8 450 113
-----------------------------------
package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil;
-----------------------------------
require("sc... | gpl-3.0 |
lyzardiar/RETools | PublicTools/bin/tools/bin/win32/lua/jit/bcsave.lua | 1 | 18928 | ----------------------------------------------------------------------------
-- LuaJIT module to save/list bytecode.
--
-- Copyright (C) 2005-2016 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
--------------------------------------------------------------------... | mit |
thedraked/darkstar | scripts/zones/Nashmau/npcs/Awaheen.lua | 17 | 1921 | -----------------------------------
-- Area: Nashmau
-- NPC: Awaheen
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
-----------------------------------
-- onTrade Action
-----... | gpl-3.0 |
thedraked/darkstar | scripts/globals/abilities/curing_waltz.lua | 19 | 2259 | -----------------------------------
-- Ability: Curing Waltz
-- Heals HP to target player.
-- Obtained: Dancer Level 15
-- TP Required: 20%
-- Recast Time: 00:06
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- onAbilit... | gpl-3.0 |
thedraked/darkstar | scripts/globals/items/bowl_of_vegetable_broth.lua | 18 | 1384 | -----------------------------------------
-- 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/status");
... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Windurst_Walls/npcs/Hiwon-Biwon.lua | 17 | 3908 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Hiwon-Biwon
-- Involved In Quest: Making Headlines, Curses, Foiled...Again!?
-- Working 100%
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-----------------------------------
require("scripts/globa... | gpl-3.0 |
thedraked/darkstar | scripts/zones/The_Shrine_of_RuAvitau/mobs/Kirin_s_Avatar.lua | 22 | 2284 | -----------------------------------
-- Area: The Shrine of Ru'Avitau
-- MOB: Kirin's Avatar
-----------------------------------
package.loaded["scripts/zones/The_Shrine_of_RuAvitau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Shrine_of_RuAvitau/TextIDs");
require("scripts/globals/sta... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Giddeus/npcs/Ghoo_Pakya.lua | 14 | 2161 | -----------------------------------
-- Area: Giddeus
-- NPC: Ghoo Pakya
-- Involved in Mission 1-3
-- @pos -139 0 147 145
-----------------------------------
package.loaded["scripts/zones/Giddeus/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/mission... | gpl-3.0 |
thedraked/darkstar | scripts/globals/items/serving_of_salmon_eggs.lua | 18 | 1325 | -----------------------------------------
-- ID: 5217
-- Item: serving_of_salmon_eggs
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Health 6
-- Magic 6
-- Dexterity 2
-- Mind -3
-----------------------------------------
require("scripts/globals/status");
--------------------------------... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Arrapago_Reef/mobs/Medusa.lua | 20 | 1467 | -----------------------------------
-- Area: Arrapago Reef
-- MOB: Medusa
-- @pos -458 -20 458
-- TODO: resists, attack/def boosts
-----------------------------------
require("scripts/globals/titles");
require("scripts/zones/Arrapago_Reef/TextIDs");
-----------------------------------
-- onMobSpawn Action
----------... | gpl-3.0 |
Jg99/SCgemamod | gemamod_opensource.lua | 1 | 29614 | PLUGIN_NAME = "SilverCloudGemaMod OpenSource version"
PLUGIN_AUTHOR = "Jg99" -- Jg99
PLUGIN_VERSION = "4.2.2" -- SilverCloud Gema mod
dofile("lua/scripts/functions/functions.lua")
-- common
include("ac_server")
config =
{
gema_mode_autodetecting = true;
gema_mode_is_turned_on = true
}
cached_gtop = nil
new... | gpl-2.0 |
thedraked/darkstar | scripts/globals/mobskills/Stormwind.lua | 30 | 2237 | ---------------------------------------------
-- Stormwind
--
-- Description: Creates a whirlwind that deals Wind damage to targets in an area of effect.
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: Unknown radial
-- Notes:
---------------------------------------------
require("scripts/glob... | gpl-3.0 |
mtroyka/Zero-K | LuaUI/Widgets/gui_lups_stats.lua | 19 | 4434 | -- $Id: gui_lups_stats.lua 3171 2008-11-06 09:06:29Z det $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- orig-file: gui_clock.lua
-- orig-file: gui_lups_stats.lua
-- brief: displays the c... | gpl-2.0 |
128technology/protobuf_dissector | modules/ast/factory.lua | 1 | 5483 | ----------------------------------------
--
-- Copyright (c) 2015, 128 Technology, Inc.
--
-- author: Hadriel Kaplan <hadriel@128technology.com>
--
-- This code is licensed under the MIT license.
--
-- Version: 1.0
--
------------------------------------------
-- prevent wireshark loading this file as a plugin
if not ... | mit |
thedraked/darkstar | scripts/zones/Norg/npcs/Achika.lua | 14 | 1299 | -----------------------------------
-- Area: Norg
-- NPC: Achika
-- Type: Tenshodo Merchant
-- @pos 1.300 0.000 19.259 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop");... | gpl-3.0 |
mtroyka/Zero-K | LuaUI/Widgets/gui_darkening.lua | 18 | 3324 | -- $Id: gui_darkening.lua 3171 2008-11-06 09:06:29Z det $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Darkening",
desc = "Adds a new '/lua... | gpl-2.0 |
josh-perry/VNEngine | conf.lua | 1 | 4580 | -- function love.conf(t)
-- t.title = "Empty project" -- The title of the window the game is in (string)
-- t.author = "Josh Perry" -- The author of the game (string)
-- t.identity = nil -- The name of the save directory (string)
-- t.version = "0.8.0" -- The L�VE versio... | mit |
NPLPackages/main | script/ide/Debugger/HTTPDebugger.lua | 1 | 5126 | --[[
Title: HTTP debugger
Author(s): LiXizhi, inspired by RemDebug 1.0
Date: 2016/4/13
Desc:
HTTP debugger is used by NPL extensions for visual studio code and the NPL code wiki for debugging purposes.
For more information, please see IPCDebugger
# How to start debugger
One can either start programmatically, or simp... | gpl-2.0 |
SnabbCo/snabbswitch | lib/luajit/testsuite/test/misc/tonumber_scan.lua | 6 | 11397 | local ffi = require("ffi")
local bit = require("bit")
ffi.cdef[[
double strtod(const char *, char **);
]]
local t = {
-- errors
false, "",
false, " ",
false, "+",
false, "z",
false, ".",
false, ".z",
false, "0.z",
false, ".0z",
false, "0xz",
false, "0x.z",
false, "0x0.z",
false, "0x.0z",
f... | apache-2.0 |
thedraked/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Rohn_Ehlbalna.lua | 14 | 1064 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Rohn Ehlbalna
-- Type: Standard NPC
-- @zone 94
-- @pos -43.473 -4.5 46.496
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
... | gpl-3.0 |
mtroyka/Zero-K | gamedata/explosions_post.lua | 17 | 1247 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- Load CA's effects from ./effects and not ./gamedata/explosions
--
local luaFiles = VFS.DirList('effects', '*.lua', '*.tdf')
--couldn't be arsed to con... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Yhoator_Jungle/npcs/qm3.lua | 14 | 1845 | -----------------------------------
-- Area: Davoi
-- NPC: ??? (qm3)
-- Involved in Quest: True will
-- @pos 203 0.1 82 124
-----------------------------------
package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/global... | gpl-3.0 |
thedraked/darkstar | scripts/globals/weaponskills/cataclysm.lua | 23 | 1521 | -----------------------------------
-- Cataclysm
-- Skill level: 290
-- Delivers light elemental damage. Additional effect: Flash. Chance of effect varies with TP.
-- Generates a significant amount of Enmity.
-- Does not stack with Sneak Attack
-- Aligned with Aqua Gorget.
-- Aligned with Aqua Belt.
-- Properties:
-- E... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Metalworks/npcs/Lorena.lua | 8 | 2540 | -----------------------------------
-- Area: Metalworks
-- NPC: Lorena
-- Type: Blacksmithing Guildworker's Union Representative
-- @zone 237
-- @pos -104.990 1 30.995
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
require("scripts/zones/Metalworks/TextIDs");
require("... | gpl-3.0 |
peteches/configs | awesome/themes/zenburn/theme.lua | 6 | 5400 | -------------------------------
-- "Zenburn" awesome theme --
-- By Adrian C. (anrxc) --
-------------------------------
-- Alternative icon sets and widget icons:
-- * http://awesome.naquadah.org/wiki/Nice_Icons
-- {{{ Main
theme = {}
theme.wallpaper_cmd = { "awsetbg /usr/share/awesome/themes/zenburn/zenburn... | mit |
mtroyka/Zero-K | units/jumpblackhole.lua | 2 | 4474 | unitDef = {
unitname = [[jumpblackhole]],
name = [[Placeholder]],
description = [[Black Hole Launcher]],
acceleration = 0.4,
brakeRate = 1.2,
buildCostEnergy = 250,
buildCostMetal = 250,
builder = false,
buildPic ... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Ragyaya.lua | 14 | 1056 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Ragyaya
-- Type: Standard NPC
-- @zone 94
-- @pos -95.376 -3 60.795
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
--------... | gpl-3.0 |
fhedberg/ardupilot | libraries/AP_Scripting/examples/MotorMatrix_fault_tolerant_hex.lua | 4 | 1485 | -- This script is an example setting up a custom motor matrix mix
-- this is the config for hexacopter with the motor rotations configured for improved fault tolerance
-- see: https://arxiv.org/pdf/1403.5986.pdf
-- duplicate the #defines from AP_Motors
local AP_MOTORS_MATRIX_YAW_FACTOR_CW = -1
local AP_MOTORS_MATRIX_... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Windurst_Walls/npcs/Juvillie.lua | 14 | 1054 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Juvillie
-- Type: Event Replayer
-- @zone 239
-- @pos -180.731 -3.451 143.138
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
----------... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Jugner_Forest_[S]/mobs/Lobison.lua | 17 | 1817 | -----------------------------------
-- Area: Jugner Forest (S)
-- NPC: Lobison
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
mob:setLocalVar("transformTime", os.time())
end;
-----------------------------... | gpl-3.0 |
GitoriousLispBackup/praxis | prods/wtf-atabimp/poly.lua | 2 | 3926 | -- Name: poly.lua
--poly = {}
t = 0
t_spd = 0.02
-- polyline = {}
-- polyline[1] = { x = 0, y = 0 }
-- polyline[2] = { x = 10, y = 40 }
-- polyline[3] = { x = 0, y = 80 }
-- polyline[4] = { x = 40, y = 70 }
-- polyline[5] = { x = 80, y = 80 }
-- polyline[6] = { x = 100, y = 50 }
-- polyline[7] = { x = 110, y = 10 }... | mit |
filug/nodemcu-firmware | app/cjson/lua/cjson/util.lua | 170 | 6837 | local json = require "cjson"
-- Various common routines used by the Lua CJSON package
--
-- Mark Pulford <mark@kyne.com.au>
-- Determine with a Lua table can be treated as an array.
-- Explicitly returns "not an array" for very sparse arrays.
-- Returns:
-- -1 Not an array
-- 0 Empty table
-- >0 Highest index ... | mit |
mason-larobina/luakit | doc/luadoc/soup.lua | 4 | 1339 | --- URI parsing utilities.
--
-- DOCMACRO(available:ui)
--
-- The soup API provides some utilities for parsing and converting URIs, written
-- in C. For historical reasons, it also provides some other miscellaneous APIs.
--
-- @module soup
-- @author Mason Larobina
-- @copyright 2012 Mason Larobina <mason.larobina@gmai... | gpl-3.0 |
thedraked/darkstar | scripts/globals/items/holy_bolt.lua | 26 | 1227 | -----------------------------------------
-- ID: 18153
-- Item: Holy Bolt
-- Additional Effect: Light Damage
-- Bolt dmg is affected by light/dark staves and Chatoyant
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- o... | gpl-3.0 |
X-Coder/wire | lua/entities/info_wiremapinterface/output.lua | 17 | 2147 | -- Copied from the gmod base entity, it's changed to work with wire map interface.
-- It's only changed for this entity.
-- This function is used to store an output.
function ENT:StoreOutput(name, info)
local rawData = string.Explode(",", info)
local Output = {}
Output.entities = rawData[1] or ""
Output.input = r... | gpl-3.0 |
kaustavha/luvit | deps/stream/stream_observable.lua | 6 | 1512 | --[[
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 |
pevers/OpenRA | lua/stacktraceplus.lua | 59 | 12006 | -- tables
local _G = _G
local string, io, debug, coroutine = string, io, debug, coroutine
-- functions
local tostring, print, require = tostring, print, require
local next, assert = next, assert
local pcall, type, pairs, ipairs = pcall, type, pairs, ipairs
local error = error
assert(debug, "debug table must be availa... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Bhaflau_Thickets/mobs/Sea_Puk.lua | 12 | 1367 | -----------------------------------
-- Area: Bhaflau Thickets
-- MOB: Sea Puk
-- Note: Place holder Nis Puk
-----------------------------------
require("scripts/zones/Bhaflau_Thickets/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob, player, isK... | gpl-3.0 |
thedraked/darkstar | scripts/zones/RoMaeve/Zone.lua | 4 | 3579 | -----------------------------------
--
-- Zone: RoMaeve (122)
--
-----------------------------------
package.loaded["scripts/zones/RoMaeve/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/RoMaeve/TextIDs");
require("scripts/globals/zone");
--------------... | gpl-3.0 |
jefferai/vlcfix | share/lua/playlist/vimeo.lua | 65 | 3213 | --[[
$Id$
Copyright © 2009-2013 the VideoLAN team
Authors: Konstantin Pavlov (thresh@videolan.org)
François Revol (revol@free.fr)
Pierre Ynard
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 S... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Port_Windurst/npcs/Pherchabalet.lua | 14 | 1052 | -----------------------------------
-- Area: Port Windurst
-- NPC: Pherchabalet
-- Type: Standard NPC
-- @zone 240
-- @pos 34.683 -5.999 137.447
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
------------... | gpl-3.0 |
MonkeyFirst/Urho3D | bin/Data/LuaScripts/38_SceneAndUILoad.lua | 26 | 5306 | -- Scene & UI load example.
-- This sample demonstrates:
-- - Loading a scene from a file and showing it
-- - Loading a UI layout from a file and showing it
-- - Subscribing to the UI layout's events
require "LuaScripts/Utilities/Sample"
function Start()
-- Execute the common startup for samples
... | mit |
Ali-2h/losebot | plugins/face.lua | 641 | 3073 | local https = require("ssl.https")
local ltn12 = require "ltn12"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function request(imageUrl)
local api_key = mashape.api_key
if api_key:isempt... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Windurst_Woods/npcs/Ponono.lua | 44 | 2111 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Ponono
-- Type: Clothcraft Guild Master
-- @pos -38.243 -2.25 -120.954 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requir... | gpl-3.0 |
moomoomoo309/FamiliarFaces | src/pl/Date.lua | 1 | 18179 | --- Date and Date Format classes.
-- See @{05-dates.md|the Guide}.
--
-- Dependencies: `pl.class`, `pl.stringx`, `pl.utils`
-- @classmod pl.Date
-- @pragma nostrip
local class = require 'pl.class'
local os_time, os_date = os.time, os.date
local stringx = require 'pl.stringx'
local utils = require 'pl.utils'
local ass... | mit |
thedraked/darkstar | scripts/globals/items/blackened_newt.lua | 18 | 1560 | -----------------------------------------
-- ID: 4581
-- Item: Blackened Newt
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Dexterity 4
-- Mind -3
-- Attack % 18
-- Attack Cap 60
-- Virus Resist 5
-- Charm Resist 5
-----------------------------------------
require("scripts/globals/stat... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Northern_San_dOria/npcs/Aurege.lua | 13 | 1981 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Aurege
-- Type: Quest Giver NPC
-- Starts Quest: Exit the Gambler
-- @zone 231
-- @pos -156.253 11.999 253.691
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/keyitems");
require("scripts/globals... | gpl-3.0 |
thedraked/darkstar | scripts/globals/effects/transcendency.lua | 35 | 1814 | -----------------------------------
require("scripts/globals/status");
-----------------------------------
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_HP, 9000);
target:addMod(MOD_MP, 9000);
target:ad... | gpl-3.0 |
thedraked/darkstar | scripts/globals/items/bowl_of_zoni_broth.lua | 18 | 1686 | -----------------------------------------
-- ID: 5618
-- Item: bowl_of_zoni_broth
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- HP 10
-- MP 10
-- Strength 1
-- Dexterity 1
-- Vitality 1
-- Agility 1
-- HP Recovered While Healing 1
-- MP Recovered While Healing 1
--------------------------... | gpl-3.0 |
NPLPackages/main | script/kids/3DMapSystemApp/mcml/pe_editor.lua | 1 | 68092 | --[[
Title: all controls for editor display controls.
Author(s): LiXizhi
Date: 2008/2/15
Desc: pe:editor,pe:container(alignment="_ctt") pe:editor-divider, pe:editor-buttonset, pe:editor-button(DefaultButton=true), pe:editor-custom, form
---++ Button or input tag
| *Property* | *Descriptions* |
| type | "submit",... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Norg/npcs/Mamaulabion.lua | 17 | 8832 | -----------------------------------
-- Area: Norg
-- NPC: Mamaulabion
-- Starts and finishes Quest: Mama Mia
-- @zone 252
-- @pos -57 -9 68 (88)
--CSIDs for Mamaulabion
--0x005D / 93 = Standard
--0x00BF / 191 = start quest
--0x00C0 / 192 = quest accepted
--0x00C1 / 193 = given an item
--0x00C2 / 194 = given an item yo... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Port_Jeuno/npcs/Sugandhi.lua | 17 | 1570 | -----------------------------------
-- Area: Port Bastok
-- NPC: Sugandhi
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/zones/Port_Bastok/TextIDs");
-----------------------------------
-- onTrad... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Ekki-Mokki.lua | 14 | 1061 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Ekki-Mokki
-- Type: Standard NPC
-- @zone 94
-- @pos -26.558 -4.5 62.930
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
---... | gpl-3.0 |
pexcn/openwrt | luci-1-master/applications/luci-app-cpulimit/luasrc/model/cbi/cpulimit.lua | 20 | 1274 |
m = Map("cpulimit", translate("cpulimit"),translate("Use cpulimit to limit app's cpu using."))
s = m:section(TypedSection, "list", translate("Settings"))
s.template = "cbi/tblsection"
s.anonymous = true
s.addremove = true
enable = s:option(Flag, "enabled", translate("enable", "enable"))
enable.optional = false
enable... | gpl-2.0 |
mason-larobina/luakit | lib/history_chrome.lua | 3 | 11838 | --- Save history in sqlite3 database - chrome page.
--
-- This module provides the luakit://history/ chrome page - a user interface for
-- searching the web browsing history.
--
-- @module history_chrome
-- @copyright 2010-2011 Mason Larobina <mason.larobina@gmail.com>
-- Grab the luakit environment we need
local hist... | gpl-3.0 |
mtroyka/Zero-K | LuaUI/i18nlib/i18n/variants.lua | 36 | 1195 | local variants = {}
local function reverse(arr, length)
local result = {}
for i=1, length do result[i] = arr[length-i+1] end
return result, length
end
local function concat(arr1, len1, arr2, len2)
for i = 1, len2 do
arr1[len1 + i] = arr2[i]
end
return arr1, len1 + len2
end
function variants.ancestry(... | gpl-2.0 |
dmolina/my-config | awesome/.config/awesome/awesome_copycats/lain/layout/termfair.lua | 6 | 4710 |
--[[
Licensed under GNU General Public License v2
* (c) 2014, projektile
* (c) 2013, Luke Bonham
* (c) 2010-2012, Peter Hofmann
--]]
lo... | gpl-3.0 |
thedraked/darkstar | scripts/zones/AlTaieu/Zone.lua | 32 | 2324 | -----------------------------------
--
-- Zone: AlTaieu (33)
--
-----------------------------------
package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/AlTaieu/TextIDs");
require("scripts/globals/titles");
require("scrip... | gpl-3.0 |
mtroyka/Zero-K | LuaRules/Gadgets/lockunits_modoption.lua | 6 | 2583 | if (not gadgetHandler:IsSyncedCode()) then
return
end
function gadget:GetInfo()
return {
name = "LockOptions",
desc = "Modoption for locking units. 90% Copypasted from game_perks.lua",
author = "Storage, GoogleFrog",
license = "Public Domain",
layer = -1,
enabled = true,
}
end
local disabledunitsstring... | gpl-2.0 |
X-Coder/wire | lua/wire/stools/damage_detector.lua | 9 | 1260 | WireToolSetup.setCategory( "Detection" )
WireToolSetup.open( "damage_detector", "Damage Detector", "gmod_wire_damage_detector", nil, "Damage Detectors" )
if CLIENT then
language.Add( "Tool.wire_damage_detector.name", "Damage Detector Tool (Wire)" )
language.Add( "Tool.wire_damage_detector.desc", "Spawns a damage det... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Ship_bound_for_Mhaura/npcs/Lokhong.lua | 14 | 1204 | -----------------------------------
-- Area: Ship bound for Mhaura
-- NPC: Lokhong
-- Type: Guild Merchant: Fishing Guild
-- @pos 1.841 -2.101 -9.000 221
-----------------------------------
package.loaded["scripts/zones/Ship_bound_for_Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globa... | gpl-3.0 |
JackYoustra/gm_SCIWS | lua/entities/ciws.lua | 1 | 2577 |
AddCSLuaFile()
include('shared.lua')
function ENT:SpawnFunction( ply, tr, ClassName )
if ( !tr.Hit ) then return end
local SpawnPos = tr.HitPos + tr.HitNormal * 16
local ent = ents.Create( ClassName )
ent:SetPos( SpawnPos )
ent:Spawn()
ent:Activate()
ent:OnSpawn(ent)
return ent
end
function ENT:Draw()
... | gpl-2.0 |
mtroyka/Zero-K | scripts/corshad.lua | 4 | 7452 | local base = piece 'base'
local fuselage = piece 'fuselage'
local wingl1 = piece 'wingl1'
local wingr1 = piece 'wingr1'
local wingl2 = piece 'wingl2'
local wingr2 = piece 'wingr2'
local engines = piece 'engines'
local fins = piece 'fins'
local rflap = piece 'rflap'
local lflap = piece 'lflap'
local predrop = p... | gpl-2.0 |
X-Coder/wire | lua/entities/gmod_wire_textentry.lua | 9 | 7253 | -- Author: mitterdoo (with help from Divran)
AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Text Entry (Wire)"
ENT.WireDebugName = "Text Entry"
function ENT:SetupDataTables()
self:NetworkVar("Float",0,"Hold")
self:NetworkVar("Bool",0,"DisableUse")
end
if CLIENT then
local panel
-------... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Port_San_dOria/npcs/Eddy.lua | 14 | 1051 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Eddy
-- Type: NPC Quest Giver
-- @zone 232
-- @pos -5.209 -8.999 39.833
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-------------... | gpl-3.0 |
mtroyka/Zero-K | LuaRules/Configs/cai/strategies.lua | 20 | 7579 | --[[
example buildTasksMods
buildTasksMods = function(buildConfig)
buildConfig.robots.factoryByDefId[UnitDefNames['factorycloak'].id].importance = 0
buildConfig.robots.factoryByDefId[UnitDefNames['factoryshield'].id].importance = 1
buildConfig.robots.factoryByDefId[UnitDefNames['factoryveh'].id].importance =... | gpl-2.0 |
X-Coder/wire | lua/entities/gmod_wire_egp/lib/objects/poly.lua | 9 | 1712 | -- Author: Divran
local Obj = EGP:NewObject( "Poly" )
Obj.w = nil
Obj.h = nil
Obj.x = nil
Obj.y = nil
Obj.vertices = {}
Obj.verticesindex = "vertices"
Obj.HasUV = true
-- Returns whether c is to the left of the line from a to b.
local function counterclockwise( a, b, c )
local area = (a.x - c.x) * (b.y - c.y) - (b.x ... | gpl-3.0 |
thedraked/darkstar | scripts/globals/abilities/manifestation.lua | 27 | 1202 | -----------------------------------
-- Ability: Manifestation
-- Extends the effect of your next enfeebling1 black magic spell to targets within range. MP cost and casting time2 are doubled.
-- Obtained: Scholar Level 40
-- Recast Time: Stratagem Charge
-- Duration: 1 compatible black magic spell or 60 seconds, whichev... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Port_Bastok/npcs/Evi.lua | 17 | 2244 | -----------------------------------
-- Area: Port Bastok
-- NPC: Evi
-- Starts Quests: Past Perfect (100%)
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require(... | gpl-3.0 |
NPLPackages/main | script/ide/Animation/ObjectAnimationUsingKeyFrames.lua | 1 | 3801 | --[[
Title: ObjectAnimationUsingKeyFrames
Author(s): Leio Zhang
Date: 2008/7/24
Desc:
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/ide/Animation/ObjectAnimationUsingKeyFrames.lua");
------------------------------------------------------------
--]]
NPL.load("(gl)script... | gpl-2.0 |
thedraked/darkstar | scripts/globals/items/tortilla_bueno.lua | 18 | 1172 | -----------------------------------------
-- ID: 5181
-- Item: tortilla_bueno
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 8
-- Vitality 4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----... | gpl-3.0 |
moomoomoo309/FamiliarFaces | src/pl/input.lua | 6 | 5156 | --- Iterators for extracting words or numbers from an input source.
--
-- require 'pl'
-- local total,n = seq.sum(input.numbers())
-- print('average',total/n)
--
-- _source_ is defined as a string or a file-like object (i.e. has a read() method which returns the next line)
--
-- See @{06-data.md.Reading_Unstru... | mit |
nicholas-leonard/slides | nvidiagtc/solution/train-rnnlm.lua | 1 | 9300 | require 'paths'
require 'rnn'
local dl = require 'dataload'
--[[ command line arguments ]]--
cmd = torch.CmdLine()
cmd:text()
cmd:text('Train a Language Model on PennTreeBank dataset using RNN or LSTM or GRU')
cmd:text('Example:')
cmd:text("th train-rnnlm.lua -progress -cuda -lstm -seqlen 20 -hiddensize '{200,200}' -b... | bsd-3-clause |
Devul/DarkRP | entities/weapons/ls_sniper/shared.lua | 7 | 2644 | AddCSLuaFile()
if SERVER then
AddCSLuaFile("cl_init.lua")
end
if CLIENT then
SWEP.PrintName = "Silenced Sniper"
SWEP.Author = "DarkRP Developers"
SWEP.Slot = 0
SWEP.SlotPos = 0
SWEP.IconLetter = "n"
killicon.AddFont("ls_sniper", "CSKillIcons", SWEP.IconLetter, Color(200, 200, 200, 255))
e... | mit |
X-Coder/wire | lua/entities/gmod_wire_expression2/base/compiler.lua | 8 | 25316 | --[[
Expression 2 Compiler for Garry's Mod
Andreas "Syranide" Svensson, me@syranide.com
]]
AddCSLuaFile()
Compiler = {}
Compiler.__index = Compiler
function Compiler.Execute(...)
-- instantiate Compiler
local instance = setmetatable({}, Compiler)
-- and pcall the new instance's Process method.
return pcall(... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Southern_San_dOria/npcs/Blendare.lua | 14 | 1949 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Blendare
-- Type: Standard NPC
-- @zone 230
-- @pos 33.033 0.999 -30.119
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-------... | gpl-3.0 |
Devul/DarkRP | gamemode/modules/fadmin/fadmin/playeractions/noclip/sv_init.lua | 7 | 3121 | local sbox_noclip = GetConVar("sbox_noclip")
local function SetNoclip(ply, cmd, args)
if not FAdmin.Access.PlayerHasPrivilege(ply, "SetNoclip") then FAdmin.Messages.SendMessage(ply, 5, "No access!") return false end
if not args[1] then return false end
local targets = FAdmin.FindPlayer(args[1])
if not... | mit |
thedraked/darkstar | scripts/zones/Windurst_Waters/npcs/Taajiji.lua | 17 | 1798 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Taajiji
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("scripts/zones/Windurst_Waters/TextIDs"... | gpl-3.0 |
thedraked/darkstar | scripts/globals/weaponskills/raging_fists.lua | 26 | 1437 | -----------------------------------
-- Raging Fists
-- Hand-to-Hand weapon skill
-- Skill Level: 125
-- Delivers a fivefold attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Thunder Gorget.
-- Aligned with the Thunder Belt.
-- Element: None
-- Modifiers: STR:30% ; DEX:30%
-- 100%TP ... | gpl-3.0 |
SnabbCo/snabbswitch | src/apps/lwaftr/binding_table.lua | 2 | 14193 | -- AFTR Binding Table
--
-- A binding table is a collection of softwires (tunnels). One endpoint
-- of the softwire is in the AFTR and the other is in the B4. A
-- softwire provisions an IPv4 address (or a part of an IPv4 address) to
-- a customer behind a B4. The B4 arranges for all IPv4 traffic to be
-- encapsulat... | apache-2.0 |
thedraked/darkstar | scripts/zones/Tavnazian_Safehold/TextIDs.lua | 7 | 2111 | -- 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; -- Ob... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Castle_Oztroja/npcs/_47k.lua | 14 | 1624 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _47k (Torch Stand)
-- Notes: Opens door _472 near password #1
-- @pos -57.412 -1.864 -30.627 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.