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 |
|---|---|---|---|---|---|
xdemolish/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/Sarcophagus.lua | 11 | 4269 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Sarcophagus
-- Involved in Quest: The Requiem (BARD AF2)
-- @pos -420 8 500 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
package.loaded["scripts/globals/settings"] = nil;
--------... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Cloister_of_Flames/Zone.lua | 32 | 1663 | -----------------------------------
--
-- Zone: Cloister_of_Flames (207)
--
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Flames/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Cloister_of_Flames/TextIDs");
---... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/AlTaieu/npcs/_0x2.lua | 3 | 2389 | -----------------------------------
-- Area: Al'Taieu
-- NPC: Rubious Crystal (West Tower)
-- @pos -683.709 -6.250 -222.142 33
-----------------------------------
package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/AlTaieu/TextIDs");
require("scripts/g... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Mhaura/npcs/Vera.lua | 17 | 2846 | -----------------------------------
-- Area: Mhaura
-- NPC: Vera
-- Finishes Quest: The Old Lady
-- @pos -49 -5 20 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/qu... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Al_Zahbi/npcs/Ndego.lua | 19 | 1139 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Ndego
-- Guild Merchant NPC: Smithing Guild
-- @pos -37.192 0.000 -33.949 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("s... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Hall_of_the_Gods/Zone.lua | 32 | 1936 | -----------------------------------
--
-- Zone: Hall_of_the_Gods (251)
--
-----------------------------------
package.loaded["scripts/zones/Hall_of_the_Gods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Hall_of_the_Gods/TextIDs");
---------... | gpl-3.0 |
lukego/snabb | lib/ljsyscall/syscall/syscalls.lua | 13 | 33583 | -- choose correct syscalls for OS, plus shared calls
-- note that where functions are identical if present but may be missing they can also go here
-- note that OS specific calls are loaded at the end so they may override generic calls here
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs,... | apache-2.0 |
czfshine/UpAndAway | wicker/kernel_extensions/dst_abstraction/componentactions.lua | 6 | 9531 | --[[
-- IMPORTANT:
-- The modinfo.id is being hacked in place of 'modname' for identification.
--]]
local Lambda = wickerrequire "paradigms.functional"
if IsWorldgen() then
init = Lambda.Nil
return _M
end
local Rest = pkgrequire "restriction"
---
if IsDST() then
require "entityscript"
local SHOULD_FAKE_SERVER... | gpl-2.0 |
nalidixic/OpenRA | mods/cnc/maps/funpark01/scj01ea.lua | 19 | 3521 | RifleReinforcments = { "e1", "e1", "e1", "bike" }
BazookaReinforcments = { "e3", "e3", "e3", "bike" }
BikeReinforcments = { "bike" }
ReinforceWithLandingCraft = function(units, transportStart, transportUnload, rallypoint)
local transport = Actor.Create("oldlst", true, { Owner = nod, Facing = 0, Location = transportS... | gpl-3.0 |
LuaDist2/cqueues | regress/72-fill-hangs.lua | 5 | 1168 | #!/bin/sh
_=[[
. "${0%%/*}/regress.sh"
exec runlua "$0" "$@"
]]
require"regress".export".*"
--
-- lso_fill attempts to read more than requested, and returns EAGAIN even if
-- it fulfilled the request completely. socket:fill is the only API method
-- which triggers this bug because all the others do speculative reads... | mit |
xdemolish/darkstar | scripts/globals/spells/poison_ii.lua | 2 | 1442 | -----------------------------------------
-- Spell: Poison
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,spel... | gpl-3.0 |
londry/nodemcu-firmware | lua_modules/ds3231/ds3231.lua | 16 | 1865 | --------------------------------------------------------------------------------
-- DS3231 I2C module for NODEMCU
-- NODEMCU TEAM
-- LICENCE: http://opensource.org/licenses/MIT
-- Tobie Booth <tbooth@hindbra.in>
--------------------------------------------------------------------------------
local moduleName = ...
loc... | mit |
lytedev/quick-td | lib/hump/vector.lua | 4 | 4887 | --[[
Copyright (c) 2010-2013 Matthias Richter
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, dis... | apache-2.0 |
xdemolish/darkstar | scripts/zones/Spire_of_Dem/npcs/_0j2.lua | 3 | 1319 | -----------------------------------
-- Area: Spire_of_Dem
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Dem/TextIDs");
---------------... | gpl-3.0 |
PlexChat/premake-core | src/base/container.lua | 6 | 8270 | ---
-- container.lua
-- Implementation of configuration containers.
-- Copyright (c) 2014 Jason Perkins and the Premake project
---
local p = premake
p.container = {}
local container = p.container
---
-- Keep a master dictionary of container class, so they can be easily looked
-- up by name (technically you cou... | bsd-3-clause |
OlivierHamel/gHCM | premake5.lua | 1 | 1321 |
local bIsWindows = os.get() == "windows"
-- \todo Add OCL for NV? Then again, they don't give a damn about OCL support so why bother.
local strOclIncDir = bIsWindows and "$(AMDAPPSDKROOT)/include" or "$(HOME)/AMDAPPSDK/include"
local strOclLibDir = bIsWindows and "$(AMDAPPSDKROOT)/lib/x86_64" or "$(HOME)/AM... | bsd-3-clause |
nazrhyn/epgp-tep | LibJSON-1.0.lua | 10 | 21748 | --[[
Name: LibJSON-1.0
Author(s): ckknight (ckknight@gmail.com)
Website: http://www.wowace.com/projects/libjson-1-0/
Description: A library to convert between Lua objects and serialized JSON objects
License: MIT
]]
local LibJSON = LibStub:NewLibrary("LibJSON-1.0", 1)
if not LibJSON then
return
end
LibJSON.NULL =... | bsd-3-clause |
a20251313/wax | lib/stdlib/helpers/frame.lua | 19 | 2670 | -- This is weird code... I'm just playing with an idea
function wax.frame(object)
return wax.dimensions(object, "frame")
end
function wax.bounds(object)
return wax.dimensions(object, "bounds")
end
function wax.dimensions(object, varName)
return setmetatable({
object = object,
center = function(self)
... | mit |
PlexChat/premake-core | tests/testfx.lua | 9 | 10494 | --
-- tests/testfx.lua
-- Automated test framework for Premake.
-- Copyright (c) 2008-2015 Jason Perkins and the Premake project
--
local p = premake
--
-- Define a namespace for the testing functions
--
test = {}
test.suppressed = {}
--
-- Capture stderr for testing.
--
local stderr_capture = nil
local mt... | bsd-3-clause |
xdemolish/darkstar | scripts/zones/Dynamis-Windurst/Zone.lua | 4 | 2260 | -----------------------------------
--
-- Zone: Dynamis-Windurst
--
-----------------------------------
package.loaded["scripts/zones/Dynamis-Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Dynamis-Windurst/TextIDs");
-------------... | gpl-3.0 |
mluds/blockulous | goo/objects/progressbar.lua | 2 | 1582 | -------------------------------------------------------------
------ PROGRESS BAR.
-------------------------------------------------------------
goo.progressbar = class('goo progressbar', goo.object)
function goo.progressbar:initialize( parent )
super.initialize(self,parent)
self.current_progress = 0
self.max_progr... | mit |
lukego/snabb | lib/ljsyscall/test/bsd.lua | 18 | 16048 | -- General BSD tests
local function init(S)
local helpers = require "syscall.helpers"
local types = S.types
local c = S.c
local abi = S.abi
local bit = require "syscall.bit"
local ffi = require "ffi"
local t, pt, s = types.t, types.pt, types.s
local assert = helpers.assert
local function fork_assert(cond, err, ..... | apache-2.0 |
samael65535/quick-ng | quick/framework/luaoc.lua | 20 | 2593 | --[[
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, dis... | mit |
hsiaoyi/Melo | cocos2d/cocos/scripting/lua-bindings/auto/api/MenuItemFont.lua | 11 | 2660 |
--------------------------------
-- @module MenuItemFont
-- @extend MenuItemLabel
-- @parent_module cc
--------------------------------
-- Returns the name of the Font.<br>
-- js getFontNameObj<br>
-- js NA
-- @function [parent=#MenuItemFont] getFontNameObj
-- @param self
-- @return string#string ret (return value:... | apache-2.0 |
czfshine/UpAndAway | code/prefabs/cloud_fruit.lua | 2 | 3308 | BindGlobal()
local CFG = TheMod:GetConfig()
local assets =
{
Asset("ANIM", "anim/cloud_fruit.zip"),
Asset( "ATLAS", inventoryimage_atlas("cloud_fruit") ),
Asset( "IMAGE", inventoryimage_texture("cloud_fruit") ),
Asset( "ATLAS", inventoryimage_atlas("cloud_fruit_cooked") ),
Asset( "IMAGE", inventor... | gpl-2.0 |
lukego/snabb | src/program/firehose/firehose.lua | 6 | 4726 | module(..., package.seeall)
local lib = require("core.lib")
local long_opts = {
help = "h",
example = "e",
["print-header"] = "H",
time = "t",
input = "i",
["ring-size"] = "r",
}
function fatal (reason)
print(reason)
os.exit(1)
end
function run ... | apache-2.0 |
xopxe/Toribio | tasks/bobot_server.lua | 1 | 4829 | local M = {}
local toribio = require 'toribio'
local devices = toribio.devices
local bobot = nil --require('comms/bobot').bobot
local log = require 'lumen.log'
table.pack=table.pack or function (...)
return {n=select('#',...),...}
end
local function split_words(s)
local words={}
for p in string.gmatch(s, "%S+") ... | mit |
mahdib9/ml | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
zeus-ff/adminbot | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
ln-zookeeper/wesnoth | data/ai/micro_ais/cas/ca_hang_out.lua | 2 | 5772 | local H = wesnoth.require "helper"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local LS = wesnoth.require "location_set"
local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua"
local MAISD = wesnoth.require "ai/micro_ais/micro_ai_self_data.lua"
local M = wesnoth.map
local function get_hang_out_u... | gpl-2.0 |
PlexChat/premake-core | src/_premake_main.lua | 5 | 7609 | --
-- _premake_main.lua
-- Script-side entry point for the main program logic.
-- Copyright (c) 2002-2015 Jason Perkins and the Premake project
--
local shorthelp = "Type 'premake5 --help' for help"
local versionhelp = "premake5 (Premake Build Script Generator) %s"
-- Load the collection of core scripts, req... | bsd-3-clause |
chris5560/openwrt-luci | modules/luci-mod-admin-mini/luasrc/model/cbi/mini/luci.lua | 76 | 1122 | -- 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.
require "luci.config"
local fs = require "nixio.fs"
m = Map("luci", translate("Web <abbr title=\"User Interface\">UI</abbr>"), translate("Here you can customi... | apache-2.0 |
xdemolish/darkstar | scripts/globals/items/plate_of_boiled_barnacles_+1.lua | 36 | 1282 | -----------------------------------------
-- ID: 5981
-- Item: Plate of Boiled Barnacles +1
-- Food Effect: 60 Mins, All Races
-----------------------------------------
-- Charisma -2
-- Defense % 26 Cap 135
-----------------------------------------
require("scripts/globals/status");
---------------------------------... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Valkurm_Dunes/npcs/Medicine_Axe.lua | 17 | 1864 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: Medicine Axe
-- Type: Outpost Vendor
-- @pos 144 -7 104 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("script... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Lower_Jeuno/npcs/Chimh_Dlesbah.lua | 38 | 1042 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Chimh Dlesbah
-- Type: Event Scene Replayer
-- @zone: 245
-- @pos -71.995 -1 -115.882
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-------... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/The_Celestial_Nexus/Zone.lua | 32 | 1663 | -----------------------------------
--
-- Zone: The_Celestial_Nexus (181)
--
-----------------------------------
package.loaded["scripts/zones/The_Celestial_Nexus/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/The_Celestial_Nexus/TextIDs");
... | gpl-3.0 |
lukego/snabb | src/program/packetblaster/packetblaster.lua | 5 | 3467 | module(..., package.seeall)
local engine = require("core.app")
local config = require("core.config")
local timer = require("core.timer")
local pci = require("lib.hardware.pci")
local intel10g = require("apps.intel.intel10g")
local intel_app = require("apps.intel.intel_app")
local basic_apps = require(... | apache-2.0 |
xdemolish/darkstar | scripts/zones/Metalworks/npcs/Naji.lua | 17 | 4890 | -----------------------------------
-- Area: Metalworks
-- NPC: Naji
-- Involved in Quests: The doorman (finish), Riding on the Clouds
-- Involved in Mission: Bastok 6-2
-- @pos 64 -14 -4 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
package.loaded["scripts/... | gpl-3.0 |
kissthink/OpenRA | mods/ra/maps/soviet-04a/main.lua | 15 | 4321 |
RunInitialActivities = function()
Harvester.FindResources()
IdlingUnits()
Trigger.AfterDelay(10, function()
BringPatrol1()
BringPatrol2()
BuildBase()
end)
Utils.Do(Map.NamedActors, function(actor)
if actor.Owner == Greece and actor.HasProperty("StartBuildingRepairs") then
Trigger.OnDamaged(actor, func... | gpl-3.0 |
blacknewn/bl | plugins/Rank.lua | 1 | 1173 | --Begin Rank.lua By @MahDiRoO
do
local function run(msg, matches)
if matches[1]=="مقام من" and is_sudo(msg) or matches[1]=="me" and is_sudo(msg) or matches[1]=="Me" and is_sudo(msg) then
return "❤️شما صاحب ربات و سودو میباشید❤️"
elseif matches[1]=="مقام من" and is_admin(msg) or matches[1]=="me" and is_admin(m... | gpl-3.0 |
yangchaogit/ABTestingGateway | lib/abtesting/adapter/runtime.lua | 22 | 3599 | ---
-- @classmod abtesting.adapter.runtime
-- @release 0.0.1
local modulename = "abtestingAdapterRuntime"
local _M = {}
local metatable = {__index = _M}
_M._VERSION = "0.0.1"
local ERRORINFO = require('abtesting.error.errcode').info
---
-- @field fields
-- @warning this is a conf, may other file later
local fi... | mit |
lighter-cd/premake4-mobile | tests/base/test_api.lua | 54 | 11362 | --
-- tests/base/test_api.lua
-- Automated test suite for the project API support functions.
-- Copyright (c) 2008-2011 Jason Perkins and the Premake project
--
T.api = { }
local suite = T.api
local sln
function suite.setup()
sln = solution "MySolution"
end
--
-- premake.getobject() tests
--
function suite... | mit |
hsiaoyi/Melo | cocos2d/cocos/scripting/lua-bindings/auto/api/Text.lua | 3 | 9617 |
--------------------------------
-- @module Text
-- @extend Widget
-- @parent_module ccui
--------------------------------
-- Enable shadow for the label.<br>
-- todo support blur for shadow effect<br>
-- param shadowColor The color of shadow effect.<br>
-- param offset The offset of shadow effect.<br>
-- param blurR... | apache-2.0 |
xdemolish/darkstar | scripts/globals/spells/bluemagic/triumphant_roar.lua | 3 | 1125 | -----------------------------------------
-- Spell: Triumphant Roar
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/bluemagic");
-----------------------------------------
-- OnSpellCast
--------------------------------------... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Windurst_Waters/npcs/Lago-Charago.lua | 38 | 1427 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Lago-Charago
-- Type: Adventurer's Assistant
-- @pos -57.271 -11.75 92.503 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests... | gpl-3.0 |
xopxe/Toribio | tasks/inotifier.lua | 1 | 2266 | local M = {}
local sched=require 'lumen.sched'
local selector = require "lumen.tasks.selector"
local nixio = require 'nixio'
--executes s on the console and returns the output
local run_shell = function (s)
local f = io.popen(s) -- runs command
local l = f:read("*a") -- read output of command
f:close()
return l
e... | mit |
BlackMesaRP/NS-Black-Mesa | plugins/m9k/entities/weapons/m9k_l85/shared.lua | 2 | 3681 | -- Variables that are used on both client and server
SWEP.Gun = ("m9k_l85") -- must be the name of your swep but NO CAPITALS!
SWEP.Category = "M9K Assault Rifles"
SWEP.Author = ""
SWEP.Contact = ""
SWEP.Purpose = ""
SWEP.Instructions = ""
SWEP.MuzzleAttachment = "1" -- Should be "1" for CSS models or ... | gpl-3.0 |
blockplanet/blockplanet | builtin/game/mod_profiling.lua | 4 | 10780 | -- Minetest: builtin/game/mod_profiling.lua
local mod_statistics = {}
mod_statistics.step_total = 0
mod_statistics.data = {}
mod_statistics.stats = {}
mod_statistics.stats["total"] = {
min_us = math.huge,
max_us = 0,
avg_us = 0,
min_per = 100,
max_per = 100,
avg_per = 100
}
local replacement_table = {
"registe... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Rabao/npcs/Shiny_Teeth.lua | 36 | 1675 | -----------------------------------
-- Area: Rabao
-- NPC: Shiny Teeth
-- Standard Merchant NPC
-- @pos -30 8 99 247
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Rabao/Text... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Newton_Movalpolos/npcs/Furnace_Hatch.lua | 13 | 2789 | -----------------------------------
-- Area: Newton Movalpolos
-- NPC: Furnace_Hatch
-----------------------------------
package.loaded["scripts/zones/Newton_Movalpolos/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Newton_Movalpolos/TextIDs");
--------------------------------... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/spells/invisible.lua | 22 | 1187 | -----------------------------------------
-- Spell: Invisible
-- Lessens chance of being detected by sight.
-- Duration is random number between 30 seconds and 5 minutes
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-------------------------... | gpl-3.0 |
sevenbot/sasa | plugins/moderation.lua | 29 | 12162 | do
local function check_member(extra, success, result)
local data = extra.data
for k,v in pairs(result.members) do
if v.id ~= our_id then
data[tostring(extra.msg.to.id)] = {
moderators = {[tostring(v.id)] = '@'..v.username},
settings = {
set_name = string.gsub(ex... | gpl-2.0 |
blockplanet/blockplanet | games/blockplanet/mods/default/items/books.lua | 1 | 2321 | local function book_on_use(itemstack, user, pointed_thing)
local player_name = user:get_player_name()
local data = minetest.deserialize(itemstack:get_metadata())
local title, text, owner = "", "", player_name
if data then
title, text, owner = data.title, data.text, data.owner
end
local formspec
if owner == pla... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/abilities/pets/tail_whip.lua | 6 | 1265 | ---------------------------------------------------
-- Tail Whip M=5
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
require("/scripts/globals/summon");
----------------------------------... | gpl-3.0 |
chris5560/openwrt-luci | protocols/luci-proto-relay/luasrc/model/cbi/admin_network/proto_relay.lua | 70 | 1945 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local ipaddr, network
local forward_bcast, forward_dhcp, gateway, expiry, retry, table
ipaddr = section:taboption("general", Value, "ipaddr",
translate("Local IPv4 address"),
t... | apache-2.0 |
PlexChat/premake-core | tests/oven/test_filtering.lua | 9 | 1712 | --
-- tests/oven/test_filtering.lua
-- Test the project object configuration accessor.
-- Copyright (c) 2011-2014 Jason Perkins and the Premake project
--
local suite = test.declare("oven_filtering")
--
-- Setup
--
local wks, prj
function suite.setup()
wks = test.createWorkspace()
end
local function prepar... | bsd-3-clause |
xdemolish/darkstar | scripts/globals/mobskills/Haymaker.lua | 6 | 1038 | ---------------------------------------------
-- Haymaker
--
-- Description: Punches the daylights out of all targets in front. Additional effect: Amnesia
-- Type: Physical
-- Utsusemi/Blink absorb: Unknown
-- Range: Front cone
-- Notes: Only used by Gurfurlur the Menacing.
-------------------------------... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/items/dish_of_spaghetti_nero_di_seppia.lua | 35 | 1800 | -----------------------------------------
-- ID: 5193
-- Item: dish_of_spaghetti_nero_di_seppia
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP % 17 (cap 130)
-- Dexterity 3
-- Vitality 2
-- Agility -1
-- Mind -2
-- Charisma -1
-- Double Attack 1
-- Store TP 6
-------------... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/RuLude_Gardens/npcs/relic.lua | 41 | 1848 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: <this space intentionally left blank>
-- @pos 0 8 -40 243
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/RuLude_Gardens/TextIDs");
--------... | gpl-3.0 |
hsiaoyi/Melo | cocos2d/plugin/samples/HelloPluginsLua/src/TestFBShareScene.lua | 6 | 13701 | local visibleSize = cc.Director:getInstance():getVisibleSize()
local origin = cc.Director:getInstance():getVisibleOrigin()
local posBR = cc.p(origin.x + visibleSize.width, origin.y)
local TestFBShareScene = class("TestFBShareScene",function()
return cc.Scene:create()
end)
function TestFBShareScene.create()
lo... | apache-2.0 |
nichwall/cuberite | lib/tolua++/src/bin/lua/verbatim.lua | 44 | 1667 | -- tolua: verbatim class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: verbatim.lua,v 1.3 2000/01/24 20:41:16 celes 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 obligation to prov... | apache-2.0 |
xdemolish/darkstar | scripts/zones/Den_of_Rancor/Zone.lua | 2 | 1798 | -----------------------------------
--
-- Zone: Den_of_Rancor (160)
--
-----------------------------------
package.loaded["scripts/zones/Den_of_Rancor/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Den_of_Rancor/TextIDs");
---------------------... | gpl-3.0 |
botfam/botfam | libs/fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-2.0 |
Javaxio/BadRotations | Libs/LibRangeCheck-2.0/LibStub-1.0/tests/test.lua | 86 | 2013 | debugstack = debug.traceback
strmatch = string.match
loadfile("../LibStub.lua")()
local lib, oldMinor = LibStub:NewLibrary("Pants", 1) -- make a new thingy
assert(lib) -- should return the library table
assert(not oldMinor) -- should not return the old minor, since it didn't exist
-- the following is to create data ... | gpl-3.0 |
kissthink/OpenRA | mods/cnc/maps/nod06a/nod06a.lua | 19 | 7647 | NodStartUnitsRight = { 'ltnk', 'bike', 'e1', 'e1', 'e3', 'e3' }
NodStartUnitsLeft = { 'ltnk', 'ltnk', 'bggy', 'e1', 'e1', 'e1', 'e1', 'e3', 'e3', 'e3', 'e3' }
Chn1Units = { 'e1', 'e1', 'e1', 'e1', 'e1' }
Chn2Units = { 'e2', 'e2', 'e2', 'e2', 'e2' }
Obj2Units = { 'ltnk', 'bike', 'e1', 'e1', 'e1' }
Chn3CellTriggerActiva... | gpl-3.0 |
simonswine/chdkptp | lua/ustime.lua | 1 | 2556 | --[[
Copyright (C) 2010-2011 <reyalp (at) gmail dot com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITH... | gpl-2.0 |
xdemolish/darkstar | scripts/zones/Nashmau/npcs/Fhe_Maksojha.lua | 19 | 2153 | -----------------------------------
-- Area: Nashmau
-- NPC: Fhe Maksojha
-- Type: Standard NPC
-- @pos 19.084 -7 71.287 53
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/set... | gpl-3.0 |
samael65535/quick-ng | cocos/scripting/lua-bindings/auto/api/ComAudio.lua | 8 | 6116 |
--------------------------------
-- @module ComAudio
-- @extend Component
-- @parent_module ccs
--------------------------------
--
-- @function [parent=#ComAudio] stopAllEffects
-- @param self
-- @return ComAudio#ComAudio self (return value: ccs.ComAudio)
--------------------------------
--
-- @function ... | mit |
nazrhyn/epgp-tep | libs/AceAddon-3.0/AceAddon-3.0.lua | 66 | 25788 | --- **AceAddon-3.0** provides a template for creating addon objects.
-- It'll provide you with a set of callback functions that allow you to simplify the loading
-- process of your addon.\\
-- Callbacks provided are:\\
-- * **OnInitialize**, which is called directly after the addon is fully loaded.
-- * **OnEnable** wh... | bsd-3-clause |
begeekmyfriend/smithsnmp | mibs/snmptrap.lua | 1 | 3330 | --
-- This file is part of SmithSNMP
-- Copyright (C) 2014, Credo Semiconductor Inc.
-- Copyright (C) 2015, Leo Ma <begeekmyfriend@gmail.com>
--
-- 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 Foundati... | gpl-2.0 |
gutenye/tagen.lua | lib/tagen/stringx.lua | 1 | 8430 | --- Ruby-style extended string library.
--
-- If you want to make these available as string methods, then say
-- `stringx.import()` to bring them into the standard `string` table.
--
-- See @{03-strings.md|the Guide}
--
-- Dependencies: `tagen.core`, `tagen.array`, `tagen.regexp`
-- @module tagen.stringx
local tagen =... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/items/greedie.lua | 17 | 1316 | -----------------------------------------
-- ID: 4500
-- Item: greedie
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 1
-- Mind -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck... | gpl-3.0 |
robotics-erlangen/autoref | autoref/gamecontroller.lua | 1 | 2089 | --[[***********************************************************************
* Copyright 2019 Andreas Wendler *
* Robotics Erlangen e.V. *
* http://www.robotics-erlangen.de/ *
* info@robotic... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/items/black_curry_bun_+1.lua | 35 | 1350 | -----------------------------------------
-- ID: 5764
-- Item: black_curry_bun+1
-- Food Effect: 60 minutes, All Races
-----------------------------------------
-- Intelligence +1
-- Vitality +4
-- Dexterity +2
-- Defense +~16%
require("scripts/globals/status");
-----------------------------------------
... | gpl-3.0 |
mohammad24/unixx | plugins/media.lua | 297 | 1590 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
amheydari/cardpeek | dot_cardpeek_dir/scripts/calypso/c250n502.lua | 17 | 4335 | --
-- This file is part of Cardpeek, the smartcard reader utility.
--
-- Copyright 2009 by 'L1L1' and 2013-2014 by 'kalon33'
--
-- Cardpeek 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... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/items/serving_of_golden_royale.lua | 36 | 1429 | -----------------------------------------
-- ID: 5558
-- Item: Serving of Golden Royale
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10
-- MP +10
-- Intelligence +2
-- HP Recoverd while healing 2
-- MP Recovered while healing 2
---------------------------------... | gpl-3.0 |
PlexChat/premake-core | src/actions/vstudio/vs2005_solution.lua | 2 | 7508 | --
-- vs2005_solution.lua
-- Generate a Visual Studio 2005-2012 solution.
-- Copyright (c) 2009-2015 Jason Perkins and the Premake project
--
premake.vstudio.sln2005 = {}
local p = premake
local vstudio = p.vstudio
local sln2005 = p.vstudio.sln2005
local project = p.project
local tree = p.tree
--
-- Return th... | bsd-3-clause |
xdemolish/darkstar | scripts/zones/The_Shrouded_Maw/bcnms/waking_dreams.lua | 10 | 2480 | -----------------------------------
-- Area: The_Shrouded_Maw
-- Name: waking_dreams
-----------------------------------
package.loaded["scripts/zones/The_Shrouded_Maw/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/keyitems");
require("scripts/globals/q... | gpl-3.0 |
sonicbikes/app-swamp | lib/std.lua | 1 | 2135 | -- Swamp Bike Opera embedded system for Kaffe Matthews
-- Copyright (C) 2012 Wolfgang Hauptfleisch, Dave Griffiths
--
-- 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 ... | gpl-2.0 |
grmss214/SHATELTEAM | plugins/google.lua | 336 | 1323 | do
local function googlethat(query)
local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&'
local parameters = 'q='..(URL.escape(query) or '')
-- Do the request
local res, code = https.request(url..parameters)
if code ~=200 then return nil end
loca... | gpl-2.0 |
xdemolish/darkstar | scripts/zones/Al_Zahbi/npcs/Bornahn.lua | 19 | 1146 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Bornahn
-- Guild Merchant NPC: Goldsmithing Guild
-- @pos 46.011 0.000 -42.713 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
requi... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/items/tavnazian_goby.lua | 18 | 1263 | -----------------------------------------
-- ID: 5130
-- Item: Tavnazian Goby
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 4
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
---... | gpl-3.0 |
kaadmy/pixture | mods/player_skins/init.lua | 1 | 5015 | --
-- Player skins mod
-- By Kaadmy, for Pixture
--
player_skins = {}
-- Array of usable player skins
player_skins.skin_names = {"male", "female"}
if minetest.settings:get("player_skins_names") then
player_skins.skin_names = util.split(minetest.settings:get("player_skins_names"), ",")
end
player_skins.old_skins... | lgpl-2.1 |
emmericp/libmoon | lua/packet.lua | 2 | 33219 | ---------------------------------
--- @file packet.lua
--- @brief Utility functions for packets (rte_mbuf).
--- Includes:
--- - General functions (timestamping, rate control, ...)
--- - Offloading
--- - Create packet types
---------------------------------
local ffi = require "ffi"
require "utils"
local dpdkc = requi... | mit |
chris5560/openwrt-luci | modules/luci-mod-freifunk/luasrc/controller/freifunk/freifunk.lua | 6 | 5893 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.freifunk.freifunk", package.seeall)
function index()
local uci = require "luci.model.uci".cursor()
local page
-- Frontend
page = node()
page.lock = true
page.target ... | apache-2.0 |
xdemolish/darkstar | scripts/zones/Northern_San_dOria/npcs/Chaupire.lua | 17 | 1259 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Chaupire
-- Guild Merchant NPC: Woodworking Guild
-- @pos -174.476 3.999 281.854 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/items/acorn_cookie.lua | 35 | 1338 | -----------------------------------------
-- ID: 4510
-- Item: Acorn Cookie
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Magic Regen While Healing 3
-- Aquan Killer 5
-- Sleep Resist 5
-----------------------------------------
require("scripts/globals/status");
------------... | gpl-3.0 |
gutenye/tagen.lua | tests/test-set.lua | 10 | 3233 | class = require 'pl.class'
M = require 'pl.Map'
S = require 'pl.Set'
List = require 'pl.List'
asserteq = require 'pl.test' . asserteq
asserteq2 = require 'pl.test' . asserteq2
MultiMap = require 'pl.MultiMap'
OrderedMap = require 'pl.OrderedMap'
s1 = S{1,2}
s2 = S{1,2}
-- equality
asserteq(s1,s2)
-- union
asserteq(S{... | gpl-3.0 |
henrythasler/nodemcu | rc-car/src/webserver-websocket.lua | 1 | 4676 | local function encode(opcode, payload)
local len = #payload
local frame = {}
frame[#frame + 1] =
string.char(bit.bor(0x80, opcode), bit.bor((len < 126) and len or ((len < 0x10000) and 126 or 127)))
if len >= 0x10000 then
frame[#frame + 1] =
string.char(0, 0, 0, 0, -- 32 bit l... | mit |
czfshine/UpAndAway | code/prefabs/bee_marshmallow.lua | 2 | 7514 | BindGlobal()
local CFG = TheMod:GetConfig()
local beecommon = require "brains/beecommon"
local workersounds =
{
takeoff = "dontstarve/bee/bee_takeoff",
attack = "dontstarve/bee/bee_attack",
buzz = "dontstarve/bee/bee_fly_LP",
hit = "dontstarve/bee/bee_hurt",
death = "dontstarve/bee/bee_death",
}... | gpl-2.0 |
grmss214/SHATELTEAM | plugins/Map.lua | 2 | 1495 | -- Implement a command !loc [area] which uses
-- the static map API to get a location image
-- Not sure if this is the proper way
-- Intent: get_latlong is in time.lua, we need it here
-- loadfile "time.lua"
-- Globals
-- If you have a google api key for the geocoding/timezone api
do
local api_key = nil
local base_... | gpl-2.0 |
jy723/ardupilot | Tools/CHDK-Scripts/kap_uav.lua | 183 | 28512 | --[[
KAP UAV Exposure Control Script v3.1
-- Released under GPL by waterwingz and wayback/peabody
http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script
@title KAP UAV 3.1
@param i Shot Interval (sec)
@default i 15
@range i 2 120
@param s Total Shots (0=infinite)
@default s 0
@range ... | gpl-3.0 |
hfjgjfg/mohammad | bot/utils.lua | 356 | 14963 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
Andreas-Kreuz/ak-lua-skripte-fuer-eep | lua/LUA/ak/template/crossing-simple.lua | 1 | 4273 | -----------------------------------------------------------------------------------------------------------------------
-- Diese Skript ist eine kleine Vorlage für das Verwenden von Kreuzungen, WENN DU NOCH KEIN LUA IN DER ANLAGE BENUTZT
-- 1) Kopiere dieses Skript in das LUA-Verzeichnis von EEP
-- 2) Benenne die Kopie... | mit |
Javaxio/BadRotations | Rotations/Paladin/Protection/protectionPrettyBoy.lua | 1 | 39498 | local rotationName = "PrettyBoy"
---------------
--- Toggles ---
---------------
local function createToggles()
-- Rotation Button
RotationModes = {
[1] = { mode = "Auto", value = 1 , overlay = "Automatic Rotation", tip = "Swaps between Single and Multiple based on number of targets in range.", highlight = ... | gpl-3.0 |
yylangchen/Sample_Lua | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/CSLoader.lua | 5 | 3599 |
--------------------------------
-- @module CSLoader
-- @parent_module cc
--------------------------------
--
-- @function [parent=#CSLoader] createNodeFromJson
-- @param self
-- @param #string filename
-- @return Node#Node ret (return value: cc.Node)
--------------------------------
--
-- @function [pare... | mit |
omidtarh/o_m_i_dbot | plugins/vote.lua | 615 | 2128 | do
local _file_votes = './data/votes.lua'
function read_file_votes ()
local f = io.open(_file_votes, "r+")
if f == nil then
print ('Created voting file '.._file_votes)
serialize_to_file({}, _file_votes)
else
print ('Values loaded: '.._file_votes)
f:close()
end
return loadfile (_file_votes)()... | gpl-2.0 |
xdemolish/darkstar | scripts/globals/items/love_chocolate.lua | 35 | 1149 | -----------------------------------------
-- ID: 5230
-- Item: love_chocolate
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Magic Regen While Healing 4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- ... | gpl-3.0 |
PlexChat/premake-core | tests/base/test_versions.lua | 12 | 3921 | --
-- tests/base/test_versions.lua
-- Verify the version comparisons.
-- Copyright (c) 2015 Jason Perkins and the Premake project
--
local suite = test.declare("premake_versions")
local p = premake
--
-- If only major version is specified, anything after should pass.
--
function suite.pass_majorOnly_sameMajor()... | bsd-3-clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.