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 |
|---|---|---|---|---|---|
felipeprov/premake-core | src/base/workspace.lua | 1 | 2990 | ---
-- workspace.lua
-- Work with the list of workspaces loaded from the script.
-- Copyright (c) 2002-2015 Jason Perkins and the Premake project
---
local p = premake
p.solution = p.api.container("solution", p.global)
---
-- Begin the switch from solution() to workspace()
---
p.workspace = p.solution
local wor... | bsd-3-clause |
felipeprov/premake-core | src/actions/make/make_csharp.lua | 11 | 7710 | --
-- make_csharp.lua
-- Generate a C# project makefile.
-- Copyright (c) 2002-2013 Jason Perkins and the Premake project
--
premake.make.cs = {}
local make = premake.make
local cs = premake.make.cs
local project = premake.project
local config = premake.config
local fileconfig = premake.fileconfig
--
-- Add na... | bsd-3-clause |
b03605079/darkstar | scripts/globals/items/plate_of_flapanos_paella.lua | 36 | 1435 | -----------------------------------------
-- ID: 5975
-- Item: Plate of Flapano's Paella
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- HP 45
-- Vitality 6
-- Defense % 26 Cap 155
-- Undead Killer 6
-----------------------------------------
require("scripts/globals/status");
-----------... | gpl-3.0 |
arychen/GlobalCall | feeds/packages/net/prosody/files/prosody.cfg.lua | 147 | 7257 | -- Prosody Example Configuration File
--
-- Information on configuring Prosody can be found on our
-- website at http://prosody.im/doc/configure
--
-- Tip: You can check that the syntax of this file is correct
-- when you have finished by running: luac -p prosody.cfg.lua
-- If there are any errors, it will let you know... | gpl-2.0 |
Aquanim/Zero-K | effects/gundam_kampferimpact.lua | 25 | 7159 | -- kampferimpact
return {
["kampferimpact"] = {
dirta = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
properties = {
airdrag = 0.7,
alwaysvisible = true,
colormap = [[0.1 0.1 0.1 1.0 0... | gpl-2.0 |
pelevesque/math_functions | trigonometry.lua | 3 | 2198 | --[[
Title: gamemath - trigonometry
Version: 1.0
Author: Pierre-Emmanuel Lévesque
Email: pierre.e.levesque@gmail.com
Created: October 14th, 2013
Copyright: Copyright 2013, Pierre-Emmanuel Lévesque
License: MIT license - @see LICENSE.md
--]]
--[[
Gets the polar coordinate pole (P point) from theta and... | mit |
b03605079/darkstar | scripts/zones/Lower_Jeuno/npcs/Miladi-Nildi.lua | 38 | 1034 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Miladi-Nildi
-- Type: Standard NPC
-- @zone: 245
-- @pos 39.898 -5.999 77.190
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
---------------... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Meriphataud_Mountains_[S]/npcs/Cavernous_Maw.lua | 29 | 1505 | -----------------------------------
-- Area: Meriphataud Mountains [S]
-- NPC: Cavernous Maw
-- @pos 597 -32 279 97
-- Teleports Players to Meriphataud Mountains
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains_[S]/TextIDs"] = nil;
-----------------------------------
re... | gpl-3.0 |
b03605079/darkstar | scripts/globals/items/plate_of_patlican_salata_+1.lua | 35 | 1224 | -----------------------------------------
-- ID: 5583
-- Item: plate_of_patlican_salata_+1
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- Agility 4
-- Vitality -1
-----------------------------------------
require("scripts/globals/status");
-------------------------------------... | gpl-3.0 |
roccof/groink | selib/ouidb.lua | 2 | 2524 | -- Copyright (c) Denatured Ethyl Crew
--
-- This file is part of GroinK.
--
-- GroinK is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version... | gpl-3.0 |
felipeprov/premake-core | src/base/container.lua | 1 | 8049 | ---
-- 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 |
witgo/nn | Container.lua | 9 | 1842 | -- This is code common to container modules, which are collections of
-- smaller constituent modules like Parallel, Sequential, etc.
local Container, parent = torch.class('nn.Container', 'nn.Module')
function Container:__init(...)
parent.__init(self, ...)
self.modules = {}
end
function Container:add(module)
... | bsd-3-clause |
PicassoCT/Journeywar | gamedata/explosions/chopperdirt.lua | 1 | 1029 | -- dirt
return {
["chopperdirt"] = {
chos = {
air = false,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
properties = {
airdrag = 0.7,
alwaysvisible = true,
colormap ... | gpl-3.0 |
MPCTeam/SpiderBot | libs/lua-redis.lua | 580 | 35599 | local redis = {
_VERSION = 'redis-lua 2.0.4',
_DESCRIPTION = 'A Lua client library for the redis key value storage system.',
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri',
}
-- The following line is used for backwards compatibility in order to keep the `Redis`
-- global module name. Using... | agpl-3.0 |
immibis/wiremod | lua/wire/beam_netvars.lua | 9 | 11729 | -- this is all crap D:
///////////////////////////////////////////////
// ===BeamNetVars=== //
// Custom Networked Vars Module //
// Based off Garry's Networked Vars Module //
// Modification by: TAD2020 //
///////////////////////////////////////////////
// How to use: //
// Just like NetVars, ent:SetN... | apache-2.0 |
b03605079/darkstar | scripts/zones/Alzadaal_Undersea_Ruins/npcs/qm2.lua | 15 | 1216 | -----------------------------------
-- Area: Alzadaal Undersea Ruins
-- NPC: ??? (Spawn Cheese Hoarder Gigiroon(ZNM T1))
-- @pos -184 -8 24 72
-----------------------------------
package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Alzadaal_... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Northern_San_dOria/npcs/Prerivon.lua | 38 | 1025 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Prerivon
-- Type: Standard Dialogue NPC
-- @zone: 231
-- @pos 142.324 0.000 132.515
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs");... | gpl-3.0 |
b03605079/darkstar | scripts/zones/West_Ronfaure/npcs/Adalefont.lua | 19 | 1064 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Adalefont
-- @pos -176.000 -61.999 377.460 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/West_Ronfa... | gpl-3.0 |
Aquanim/Zero-K | units/bomberdisarm.lua | 2 | 4863 | return { bomberdisarm = {
unitname = [[bomberdisarm]],
name = [[Thunderbird]],
description = [[Disarming Lightning Bomber]],
brakerate = 0.4,
buildCostMetal = 550,
buildPic = [[bomberdisarm.png]],
canFly = true,
canMove ... | gpl-2.0 |
Aquanim/Zero-K | units/staticradar.lua | 2 | 2601 | return { staticradar = {
unitname = [[staticradar]],
name = [[Radar Tower]],
description = [[Early Warning System]],
activateWhenBuilt = true,
buildCostMetal = 55,
builder = false,
buildingGrou... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Windurst_Woods/npcs/HomePoint#1.lua | 12 | 1262 | -----------------------------------
-- Area: Windurst Woods
-- NPC: HomePoint#1
-- @pos -98.588 0.001 -183.416 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Windurst_Woods/TextIDs");
require(... | gpl-3.0 |
TahaLord/Guardian | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
MOSAVI17/Mosavi3 | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
mbmahdi/mb_bot | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
just-another-one-timmy/wireshark | test/lua/tvb.lua | 32 | 30608 | ----------------------------------------
-- script-name: tvb.lua
-- This tests the Tvb/TvbRange and proto_add_XXX_item API.
----------------------------------------
------------- general test helper funcs ------------
local FRAME = "frame"
local OTHER = "other"
local total_tests = 0
local function getTotal()
retu... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Kazham/npcs/Toji_Mumosulah.lua | 37 | 1558 | -----------------------------------
-- Area: Kazham
-- NPC: Toji Mumosulah
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTr... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Lufaise_Meadows/mobs/Splinterspine_Grukjuk.lua | 37 | 1181 | -----------------------------------
-- Area: Lufaise Meadows (24)
-- Mob: Splinterspine_Grukjuk
-----------------------------------
package.loaded["scripts/zones/Lufaise_Meadows/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scri... | gpl-3.0 |
Aquanim/Zero-K | effects/trail_explosions.lua | 25 | 1063 | -- trail_huge0
return {
["trail_huge0"] = {
fireball1 = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
underwater = 1,
useairlos = true,
water = true,
pro... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Mount_Zhayolm/npcs/_1p6.lua | 23 | 1050 | -----------------------------------
-- Area: Mount Zhayolm
-- NPC: Engraved Tablet
-- @pos 320 -15.35 -379 61
-----------------------------------
require("scripts/globals/keyitems");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
--... | gpl-3.0 |
PicassoCT/Journeywar | gamedata/explosions/missiletrail1.lua | 1 | 3281 | -- missiletrail1
return {
["missiletrail1"] = {
dirtw1 = {
class = [[CSimpleParticleSystem]],
count = 1,
water = true,
properties = {
airdrag = 0.9,
alwaysvisible = true,
colormap = [[0.9 0.9 0.9 1.0 ... | gpl-3.0 |
larsnorbergofficial/DiabolicUI | modules/unitframes/elements/cast.lua | 2 | 14432 | local _, Engine = ...
local L = Engine:GetLocale()
local Handler = Engine:GetHandler("UnitFrame")
-- Lua API
local _G = _G
local math_floor = math.floor
local setmetatable = setmetatable
local tonumber = tonumber
local unpack = unpack
-- WoW API
local CreateFrame = _G.CreateFrame
local GetNetStats = _G.GetNetStats
lo... | mit |
Aquanim/Zero-K | units/jumpbomb.lua | 2 | 3285 | return { jumpbomb = {
unitname = [[jumpbomb]],
name = [[Skuttle]],
description = [[Cloaked Jumping Anti-Heavy Bomb]],
acceleration = 0.54,
brakeRate = 3.24,
buildCostMetal = 550,
builder = false,
buildPic ... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Valkurm_Dunes/npcs/Tsunashige_IM.lua | 8 | 2935 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: Tsunashige, I.M.
-- Outpost Conquest Guards
-- @pos 139.394 -7.885 100.384 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
re... | gpl-3.0 |
Sakura-Winkey/LuCI | modules/luci-mod-admin-full/luasrc/model/cbi/admin_status/processes.lua | 75 | 1236 | -- 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.
f = SimpleForm("processes", translate("Processes"), translate("This list gives an overview over currently running system processes and their status."))
f.reset... | apache-2.0 |
bakpakin/heroku-buildpack-moonmint | heroku/share/lua/5.1/luarocks/fetch/sscm.lua | 10 | 1840 |
--- Fetch back-end for retrieving sources from Surround SCM Server
local sscm = {}
local fs = require("luarocks.fs")
local dir = require("luarocks.dir")
--- Download sources via Surround SCM Server for building a rock.
-- @param rockspec table: The rockspec table
-- @param extract boolean: Unused in this module (req... | mit |
PicassoCT/Journeywar | LuaUI/widgets/chili/skins/Robocracy/skin.lua | 2 | 5807 | --//=============================================================================
--// Skin
local skin = {
info = {
name = "Robocracy",
version = "0.3",
author = "jK",
}
}
--//=============================================================================
--//
skin.general = {
focusColor = {1.0,... | gpl-3.0 |
immibis/wiremod | lua/entities/gmod_wire_expression2/core/gametick.lua | 10 | 1258 | /******************************************************************************\
Game tick callback support
\******************************************************************************/
local registered_chips = {}
local tickrun = 0
registerCallback("destruct",function(self)
registered_chips[self.entity] = nil
e... | apache-2.0 |
b03605079/darkstar | scripts/zones/Abyssea-Attohwa/Zone.lua | 32 | 1548 | -----------------------------------
--
-- Zone: Abyssea - Attohwa
--
-----------------------------------
package.loaded["scripts/zones/Abyssea-Attohwa/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/zones/Abyssea-... | gpl-3.0 |
node-wot/node-wot | lua_examples/send_text_message.lua | 75 | 3151 | --[[
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, distribute,
sublicense, and/or sell copies... | mit |
b03605079/darkstar | scripts/globals/weaponskills/iron_tempest.lua | 30 | 1350 | -----------------------------------
-- Iron Tempest
-- Great Axe weapon skill
-- Skill Level: 40
-- Delivers a single-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Soil Gorget.
-- Aligned with the Soil Belt.
-- Element: None
-- Modifiers: STR:30%
-- 100%TP 200%TP ... | gpl-3.0 |
b03605079/darkstar | scripts/globals/items/san_dorian_carrot.lua | 35 | 1200 | -----------------------------------------
-- ID: 4389
-- Item: san_dorian_carrot
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility 2
-- Vitality -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- O... | gpl-3.0 |
latach/desktop | vicious/widgets/bat_freebsd.lua | 4 | 2168 | -- {{{ Grab environment
local setmetatable = setmetatable
local tonumber = tonumber
local io = { popen = io.popen }
local math = { floor = math.floor }
local helpers = require("vicious.helpers")
local string = {
gmatch = string.gmatch,
match = string.match,
format = string.format
}
-- }}}
local bat_freebsd... | gpl-2.0 |
immibis/wiremod | lua/entities/gmod_wire_dual_input.lua | 10 | 2505 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Dual Input"
ENT.WireDebugName = "Dual Input"
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self.Output... | apache-2.0 |
Aquanim/Zero-K | LuaUI/Widgets/dbg_ballisticcalculator.lua | 8 | 19293 | function widget:GetInfo()
return {
name = "Ballistic Calculator",
desc = "Simulate and plot weapon's ballistic range & calculate Spring's weapon range modification. For weapon setting testing. \n\nInstruction: select any unit, press attack (trajectory will be drawn), follow on-screen helptext, BLUE ... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Giddeus/npcs/Treasure_Chest.lua | 12 | 2757 | -----------------------------------
-- Area: Giddeus
-- NPC: Treasure Chest
--
-- @pos -158.563 0.999 -226.058 145
-----------------------------------
package.loaded["scripts/zones/Giddeus/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/key... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Southern_San_dOria/npcs/Carautia.lua | 36 | 2067 | -----------------------------------
-- Area: Carautia
-- NPC: Southern San d'Oria
-- Standard Merchant NPC
-- @zone 230
-- @pos 70 0 39
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings"... | gpl-3.0 |
stars2014/quick-ng | quick/framework/cocos2dx/OpenglConstants.lua | 78 | 27074 | --Encapsulate opengl constants.
gl = gl or {}
gl.GCCSO_SHADER_BINARY_FJ = 0x9260
gl._3DC_XY_AMD = 0x87fa
gl._3DC_X_AMD = 0x87f9
gl.ACTIVE_ATTRIBUTES = 0x8b89
gl.ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8b8a
gl.ACTIVE_PROGRAM_EXT = 0x8259
gl.ACTIVE_TEXTURE = 0x84e0
gl.ACTIVE_UNIFORMS = 0x8b86
gl.ACTIVE_UNIFORM_M... | mit |
b03605079/darkstar | scripts/zones/La_Theine_Plateau/npcs/Shattered_Telepoint.lua | 9 | 1770 | -----------------------------------
-- Area: La_Theine Plateau
-- NPC: Shattered Telepoint
-- @pos 334 19 -60 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zone... | gpl-3.0 |
PicassoCT/Journeywar | units/journey/jDevourerEgg.lua | 1 | 1324 | local unitName = "jdevoureregg"
local unitDef = {
name = "Devourer Egg",
Description = "Devours a nearby Corpse to grow a Skinfantry-Eggball <Recycle Unit>",
objectName = "jDevourerEgg.s3o",
script = "jdevourereggscript.lua",
buildPic = "jdevoureregg.png",
RadarDistance = 0,
SightDistance = 400,
Upright = 1,... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Buburimu_Peninsula/npcs/Signpost.lua | 13 | 1351 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Signpost
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Buburimu_Peninsula/TextIDs");
-----------------------------------
-- onTrad... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Sealions_Den/npcs/Airship_Door.lua | 21 | 1823 | -----------------------------------
-- Area:
-- NPC: Airship_Door
-----------------------------------
package.loaded["scripts/zones/Sealions_Den/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/missions");
require("scripts/zones/Sealions_Den/TextIDs");
... | gpl-3.0 |
krattai/noo-ebs | ref_code/lzmq/test/test_threads_sync.lua | 12 | 1090 | local TEST_FFI = ("ffi" == os.getenv("LZMQ"))
local LZMQ = "lzmq" .. (TEST_FFI and ".ffi" or "")
local zmq = require (LZMQ)
local zthreads = require (LZMQ .. ".threads" )
local ctx = zmq:context()
local thread, skt = zthreads.fork(ctx, string.dump(function(skt)
local ztimer = require "lzmq.timer"
local... | bsd-2-clause |
PicassoCT/Journeywar | gamedata/explosions/fuelexplode.lua | 1 | 4181 | -- fuelexplode
return {
["fuelexplode"] = {
dirt = {
count = 4,
ground = true,
properties = {
alphafalloff = 2,
color = [[0.2, 0.1, 0.05]],
pos = [[r-10 r10, 0, r-10 r10]],
size = 22,
... | gpl-3.0 |
PicassoCT/Journeywar | units/journey/jTree49.lua | 1 | 1474 | local unitName = "jtree49"
local unitDef = {
name = "Accid Tree ",
Description = " stores and returns Matter. Corrodes Units nearby. <Energy Storage>",
objectName = "jgigtree.s3o",
script = "jLtreescript.lua",
buildPic = "jtree4.png",
--cost
buildCostMetal = 100,
buildCostEnergy = 50,
buildTime =1,
--Health
... | gpl-3.0 |
b03605079/darkstar | scripts/globals/weaponskills/tachi_yukikaze.lua | 30 | 1722 | -----------------------------------
-- Tachi Yukikaze
-- Great Katana weapon skill
-- Skill Level: 200 (Samurai only.)
-- Blinds target. Damage varies with TP.
-- Blind effect duration is 60 seconds when unresisted.
-- Will stack with Sneak Attack.
-- Tachi: Yukikaze appears to have an attack bonus of 50%. http:... | gpl-3.0 |
lyn0328/FrameSynchro | Trunk/Client/src/app/protobuf/containers.lua | 15 | 2284 | --
--------------------------------------------------------------------------------
-- FILE: containers.lua
-- DESCRIPTION: protoc-gen-lua
-- Google's Protocol Buffers project, ported to lua.
-- https://code.google.com/p/protoc-gen-lua/
--
-- Copyright (c) 2010 , 林卓毅 (Zhuoyi Lin) netsnail@gmail.com
-... | gpl-3.0 |
zeebok/Polycode | Examples/Lua/2D_Physics/2DPhysics_CollisionOnly/Scripts/2DPhysics_CollisionOnly.lua | 10 | 1323 |
scene = PhysicsScene2D(0.1, 60)
checkShape = ScenePrimitive(ScenePrimitive.TYPE_VPLANE, 0.2,0.03)
scene:addCollisionChild(checkShape, PhysicsScene2DEntity.ENTITY_RECT)
for i=0,50 do
shape = ScenePrimitive(ScenePrimitive.TYPE_VPLANE, 0.1,0.02)
shape:setRoll(random(360))
shape:setPosition(-0.5 + random(), -0.5 + ra... | mit |
b03605079/darkstar | scripts/globals/items/serving_of_mille_feuille.lua | 36 | 1426 | -----------------------------------------
-- ID: 5559
-- Item: Serving of Mille Feuille
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +8
-- MP +15
-- Intelligence +1
-- HP Recoverd while healing 1
-- MP Recovered while healing 1
----------------------------------... | gpl-3.0 |
Sakura-Winkey/LuCI | applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-codec.lua | 68 | 1959 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
cbimap = Map("asterisk", "asterisk", "")
module = cbimap:section(TypedSection, "module", "Modules", "")
module.anonymous = true
codec_a_mu = module:option(Li... | apache-2.0 |
Aquanim/Zero-K | LuaUI/Widgets/unit_selectionblurryhalo.lua | 6 | 17502 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Selection BlurryHalo",
desc = "Shows a halo for selected, hovered ally-selected units.",
a... | gpl-2.0 |
adib1380/spamproof | plugins/multipurpose/eightball.lua | 8 | 1250 | --from https://github.com/topkecleon/otouto/blob/26c1299374af130bbf8457af904cb4ea450caa51/plugins/eightball.lua
local ball_answers = {
"It is certain.",
"It is decidedly so.",
"Without a doubt.",
"Yes, definitely.",
"You may rely on it.",
"As I see it, yes.",
"Most likely.",
"Outlook: good.",
"Yes.",
"Signs ... | gpl-2.0 |
b03605079/darkstar | scripts/globals/spells/rasp.lua | 2 | 1641 | -----------------------------------------
-- Spell: Rasp
-- Deals earth damage that lowers an enemy's dexterity and gradually reduces its HP.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
------------------... | gpl-3.0 |
Wingless-Archangel/haka | lib/haka/test/grammar-try.lua | 5 | 1834 | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
TestGrammarTry = {}
function TestGrammarTry:test_try_compile()
-- Given
-- nothing
-- When
local gr = haka.gra... | mpl-2.0 |
b03605079/darkstar | scripts/globals/spells/dia_ii.lua | 8 | 2061 | -----------------------------------------
-- 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 |
Aquanim/Zero-K | scripts/amphraid.lua | 2 | 8487 | --linear constant 65536
include "constants.lua"
local base, torso, head = piece('base', 'torso', 'head')
local rthigh, rshin, rfoot, lthigh, lshin, lfoot = piece('rthigh', 'rshin', 'rfoot', 'lthigh', 'lshin', 'lfoot')
local lturret, rturret, lflare, rflare = piece('lturret', 'rturret', 'lflare', 'rflare')
local fire... | gpl-2.0 |
Sakura-Winkey/LuCI | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/df.lua | 73 | 1370 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("DF Plugin Configuration"),
translate(
"The df plugin collects statistics about the disk space " ..
"usage on different devices, mount points or file... | apache-2.0 |
FlightControl-Master/MOOSE_MISSIONS | AID - AI Dispatching/AID-A2A - AI A2A Dispatching/AID-A2A-210 - GCICAP Demonstration/TAC_NTTR_V.2A_GCICAP_SCRIPT.lua | 1 | 63697 | --[[
Copyright (c) 2016 Snafu, Stonehouse, Rivvern, Chameleon Silk, lukrop.
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 us... | gpl-3.0 |
Aquanim/Zero-K | LuaUI/Widgets/cmd_guard_remove.lua | 1 | 2121 |
function widget:GetInfo()
return {
name = "Guard Remove",
desc = "Removes non-terminating orders when they seem to have been used accidentally.",
author = "Google Frog",
date = "13 July 2017",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true
}
end
include("keysym.l... | gpl-2.0 |
samijon/online | bot/seedbot.lua | 2 | 10071 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '1.0'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
retu... | gpl-2.0 |
immibis/wiremod | lua/wire/stools/lamp.lua | 9 | 4708 | WireToolSetup.setCategory( "Visuals/Lights" )
WireToolSetup.open( "lamp", "Lamp", "gmod_wire_lamp", nil, "Lamps" )
if CLIENT then
language.Add( "tool.wire_lamp.name", "Wire Lamps" )
language.Add( "tool.wire_lamp.desc", "Spawns a lamp for use with the wire system." )
language.Add( "tool.wire_lamp.0", "Primary: Creat... | apache-2.0 |
PicassoCT/Journeywar | LuaUI/widgets/cmd_layout_handler.lua | 1 | 5698 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Layout Handler",
desc = "Handles Custom Commands",
author = "GoogleFrog",
date = "8 Nov... | gpl-3.0 |
Aquanim/Zero-K | gamedata/sounds.lua | 3 | 3947 | -- see http://springrts.com/wiki/Sounds.lua for help
local Sounds = {
SoundItems = {
default = {
},
IncomingChat = {
--file = "sounds/talk.wav",
file = nil,
},
--MultiSelect = {
-- file = "sounds/button9.wav",
--},
MapPoint = {
file = "sounds/beep4_decrackled.wav",
maxconcurrent = 3,
},... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Northern_San_dOria/npcs/Ulycille.lua | 12 | 1894 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Ulycille
-- Type: Woodworking Adv. Synthesis Image Support
-- @pos -183.320 9.999 269.651 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("... | gpl-3.0 |
b03605079/darkstar | scripts/globals/items/balik_sandvici.lua | 35 | 1435 | -----------------------------------------
-- ID: 5590
-- Item: Balik Sandvici
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 3
-- Agility 1
-- Intelligence 3
-- Mind -2
-- Ranged ACC 5
-----------------------------------------
require("scripts/globals/status");
-... | gpl-3.0 |
node-wot/node-wot | lua_examples/adc_rgb.lua | 73 | 1163 | --
-- Light sensor on ADC(0), RGB LED connected to gpio12(6) Green, gpio13(7) Blue & gpio15(8) Red.
-- This works out of the box on the typical ESP8266 evaluation boards with Battery Holder
--
-- It uses the input from the sensor to drive a "rainbow" effect on the RGB LED
-- Includes a very "pseudoSin" function
--
f... | mit |
b03605079/darkstar | scripts/zones/Balgas_Dais/npcs/Armoury_Crate.lua | 36 | 1024 | -----------------------------------
-- Area: Balgas Dais
-- NPC: Armoury Crate
-- Balgas Dais Burning Cicrcle Armoury Crate
-----------------------------------
package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/titles");
require("scripts/... | gpl-3.0 |
Aquanim/Zero-K | LuaRules/Gadgets/unit_control_gunship_stafe_range.lua | 13 | 1439 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
starius/wordpress-lapis | src/wordpress/model.lua | 1 | 8499 | local schema = require("lapis.db.schema")
local Model = require("lapis.db.model").Model
local config = require("lapis.config").get()
local model = {}
local PREFIX = "wp_"
function model.create_schema()
local types = {
text = schema.types.varchar,
varchar = schema.types.varchar,
integer = ... | mit |
xpol/luarocks | spec/pack_spec.lua | 7 | 2102 | local test_env = require("test/test_environment")
local lfs = require("lfs")
local run = test_env.run
local testing_paths = test_env.testing_paths
test_env.unload_luarocks()
local extra_rocks = {
"/luasec-0.6-1.rockspec",
"/luassert-1.7.0-1.src.rock",
"/luasocket-3.0rc1-2.src.rock",
"/luasocket-3.0rc1-2.r... | mit |
b03605079/darkstar | scripts/zones/Norg/npcs/Parlemaille.lua | 34 | 1924 | -----------------------------------
-- Area: Norg
-- NPC: Parlemaille
-- Standard Info NPC
-----------------------------------
require("scripts/globals/pathfind");
local path = {
-20.369047, 1.097733, -24.847025,
-20.327482, 1.097733, -25.914215,
-20.272402, 1.097733, -27.108938,
-20.094927, 1.097733, -26... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Rolanberry_Fields_[S]/npcs/Cavernous_Maw.lua | 13 | 1434 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: Cavernous Maw
-- @pos -198 8 360 91
-- Teleports Players to Rolanberry Fields
-----------------------------------
package.loaded["scripts/zones/Rolanberry_Fields_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
pnorman/osm2pgsql | flex-config/simple.lua | 2 | 5337 |
-- This is a very simple Lua config for the Flex Backend not intended for
-- real-world use. Use it do understand the basic principles of the
-- configuration. After reading and understanding this, have a look at
-- "geometries.lua".
-- For debugging
inspect = require('inspect')
-- The global variable "osm2pgsql" is... | gpl-2.0 |
Aquanim/Zero-K | LuaUI/Widgets/api_mexspot_fetcher.lua | 8 | 1345 |
function widget:GetInfo()
return {
name = "Mexspot Fetcher",
desc = "Fetches metal spot data from synced.",
author = "Google Frog", --
date = "22 April 2012",
license = "GNU GPL, v2 or later",
layer = -30000,
enabled = true, -- loaded by default?
alwaysStar... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Mhaura/npcs/Phoochuchu.lua | 19 | 1441 | -----------------------------------
-- Area: Mhaura
-- NPC: Phoochuchu
-- Involved in Quest: A Thief in Norg!?
-- @pos -4 -4 69 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Mh... | gpl-3.0 |
Aquanim/Zero-K | units/assaultcruiser.lua | 2 | 7478 | return { assaultcruiser = {
unitname = [[assaultcruiser]],
name = [[Vanquisher]],
description = [[Heavy Cruiser (Assault)]],
acceleration = 0.384,
activateWhenBuilt = true,
brakeRate = 0.42,
buildCostMetal = 1600,
builder ... | gpl-2.0 |
thesrinivas/rakshak | rakshak-probe/userspace/elasticsearch-lua/tests/endpoints/MPercolateTest.lua | 2 | 1370 | -- Importing modules
local MPercolate = require "elasticsearch.endpoints.MPercolate"
local parser = require "elasticsearch.parser"
local MockTransport = require "lib.MockTransport"
local getmetatable = getmetatable
-- Setting up environment
local _ENV = lunit.TEST_CASE "tests.endpoints.MPercolateTest"
-- Declaring lo... | gpl-2.0 |
b03605079/darkstar | scripts/globals/spells/horde_lullaby.lua | 2 | 1281 | -----------------------------------------
-- Spell: Horde Lullaby
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caste... | gpl-3.0 |
Aquanim/Zero-K | units/turretgauss.lua | 2 | 4366 | return { turretgauss = {
unitname = [[turretgauss]],
name = [[Gauss]],
description = [[Popup gauss turret, regenerates when closed (Anti-Sub)]],
buildCostMetal = 400,
builder = false,
buildingGroundDecalDeca... | gpl-2.0 |
Sakura-Winkey/LuCI | applications/luci-app-samba/luasrc/model/cbi/samba.lua | 1 | 2471 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
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
h... | apache-2.0 |
PicassoCT/Journeywar | scripts/cRazorScript.lua | 1 | 4583 | LIFETIME = 45000
--Define the wheel pieces
local boolSecondAiming = false
--define other pieces
local SIG_WALK = 1 --signal for the walk animation thread
local SIG_AIM = 2 --signal for the weapon aiming thread
local SIG_IDLE = 4
local SIG_AIM2 = 8
local SIG_LRESET = 16
local SIG_RRESET = 32
local SIG_FIGHTCLUB = 64
... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Northern_San_dOria/npcs/Pulloie.lua | 36 | 1055 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Pulloie
-- Quest NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs");
-----------------------------------
-- onTrade Action
----... | gpl-3.0 |
sailorproject/sailor_website | controllers/docs.lua | 2 | 2207 | local docs = {}
local lfs = require "lfs"
local current_version = '0.5'
local sailor = require 'sailor'
local function render_doc_md(page,file_name,last_update)
local version = page.GET.v or current_version
local path = 'docs/'..version..'/'..file_name..'.md'
local f=io.open(sailor.path.."/"..path,"r")
if f~=... | mit |
PicassoCT/Journeywar | weapons/cArtDM.lua | 1 | 1212 | local weaponName = "cartdarkmat"
local weaponDef = {
name = "cartdarkmat",
weaponType = [[StarburstLauncher]],
vlaunch = 1,
--Physic/flight path
range = 2000,
reloadtime = 9,
weaponVelocity = 750,
startVelocity = 500,
weaponAcceleration = 200,
flightTime = 15.5,
cameraShake... | gpl-3.0 |
b03605079/darkstar | scripts/globals/items/serving_of_emperor_roe.lua | 35 | 1354 | -----------------------------------------
-- ID: 4275
-- Item: serving_of_emperor_roe
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 8
-- Magic 8
-- Dexterity 4
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
------------------... | gpl-3.0 |
DI3HARD139/dcb-everamzah- | mods/mailbox/init.lua | 1 | 5239 | --[[ Old mailbox.lua from kilbith's excellent X-Decor mod
https://github.com/minetest-mods/xdecor
GPL3 ]]
local mailbox = {}
screwdriver = screwdriver or {}
function mailbox.get_formspec(pos, owner, fs_type)
local selected = "false"
if minetest.get_node(pos).name == "mailbox:letterbox" then
selected = ... | gpl-3.0 |
eugwne/pllj | src/pllj/pg/type_info.lua | 1 | 2057 | local ffi = require('ffi')
local C = ffi.C
local NULL = ffi.NULL
local table_new = require('table.new')
local syscache = require('pllj.pg.syscache')
local macro = require('pllj.pg.macro')
local function get_oid_from_name(sptr)
local typeId = ffi.new("Oid[?]", 1)
local typmod = ffi.new("int32[?]", 1)
C.pa... | mit |
Aquanim/Zero-K | LuaRules/Configs/StartBoxes/Oktogon v3.lua | 7 | 1759 | local rings = { -- could also get them from map VFS but this way various infrastructure can also in theory access it
{ -- grass (middle)
{ 3389, 9071},
{ 3355, 3466},
{ 8765, 3235},
{ 8910, 8835},
}, { -- outer 1
{ 955, 7866},
{ 4324, 992},
{11148, 4376},
{ 7317, 11477},
}, { -- outer 2
{ ... | gpl-2.0 |
linfredriksson/Brokkr | src/dependencies/Net.lua | 3 | 12955 | --[[ LICENSE
Copyright (c) 2015-2018 Nicholas Scott
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... | gpl-2.0 |
linfredriksson/Brokkr | server/Net.lua | 3 | 12955 | --[[ LICENSE
Copyright (c) 2015-2018 Nicholas Scott
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... | gpl-2.0 |
cosmy1/Urho3D | Source/ThirdParty/toluapp/src/bin/lua/define.lua | 43 | 1317 | -- tolua: define class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: define.lua,v 1.2 1999/07/28 22:21:08 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 provide ... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.