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 |
|---|---|---|---|---|---|
CrazyEddieTK/Zero-K | lups/ParticleClasses/OverdriveParticles.lua | 5 | 11148 | -- $Id: OverdriveParticles.lua 3345 2008-12-02 00:03:50Z jk $
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
local OverdriveParticles = {}... | gpl-2.0 |
czfshine/Don-t-Starve | data/DLC0001/scripts/prefabs/cavespiders.lua | 1 | 13067 | require "brains/spiderbrain"
require "stategraphs/SGspider"
local hiderassets =
{
Asset("ANIM", "anim/ds_spider_basic.zip"),
Asset("ANIM", "anim/ds_spider_caves.zip"),
Asset("SOUND", "sound/spider.fsb"),
}
local spitterassets =
{
Asset("ANIM", "anim/ds_spider_basic.zip"),
Asset("ANIM", "anim/ds_spider2_caves.zip... | gpl-2.0 |
alexgrist/NutScript | gamemode/core/derma/cl_character.lua | 1 | 13938 |
local gradient = surface.GetTextureID("vgui/gradient-d")
local audioFadeInTime = 2
local animationTime = 0.5
local matrixZScale = Vector(1, 1, 0.0001)
-- character menu panel
DEFINE_BASECLASS("ixSubpanelParent")
local PANEL = {}
function PANEL:Init()
self:SetSize(self:GetParent():GetSize())
self:SetPos... | mit |
blueyed/awesome | tests/test-awful-widget-button.lua | 5 | 3006 | local runner = require( "_runner" )
local wibox = require( "wibox" )
local awful = require( "awful" )
local beautiful = require( "beautiful" )
local gtable = require("gears.table")
local steps = {}
local w
local img
local button
-- Also check recursive signals from events
local layout
local g... | gpl-2.0 |
CrazyEddieTK/Zero-K | units/commsupport1.lua | 5 | 5827 | unitDef = {
unitname = [[commsupport1]],
name = [[Support Commander]],
description = [[Econ/Support Commander, Builds at 12 m/s]],
acceleration = 0.25,
activateWhenBuilt = true,
autoHeal = 5,
brakeRate = 0.45,
buildCostMetal = 1200,
... | gpl-2.0 |
starkos/premake-core | modules/gmake2/tests/test_gmake2_makefile.lua | 12 | 1686 | --
-- test_gmake2_makefile.lua
-- Validate the makefile projects.
-- (c) 2016-2017 Jason Perkins, Blizzard Entertainment and the Premake project
--
local p = premake
local suite = test.declare("gmake2_makefile")
local p = premake
local gmake2 = p.modules.gmake2
local project = p.project
--
-- Setup
--
... | bsd-3-clause |
czfshine/Don-t-Starve | data/DLC0001/scripts/components/combat.lua | 1 | 28206 |
local Combat = Class(function(self, inst)
self.inst = inst
self.nextbattlecrytime = nil
self.attackrange = 3
self.hitrange = 3
self.areahitrange = nil
self.areahitdamagepercent = nil
self.defaultdamage = 0
self.playerdamagepercent = 1
self.min_attack_period = 4
self.onhitfn = ni... | gpl-2.0 |
victorperin/tibia-server | data/npc/scripts/Gregor.lua | 1 | 5051 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHan... | apache-2.0 |
iranddos/yagop | plugins/bugzilla.lua | 611 | 3983 | do
local BASE_URL = "https://bugzilla.mozilla.org/rest/"
local function bugzilla_login()
local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password
print("accessing " .. url)
local res,code = https.request( url )
local data = json:decode(res)
return data
... | gpl-2.0 |
nimaghorbani/dozdi9 | plugins/bugzilla.lua | 611 | 3983 | do
local BASE_URL = "https://bugzilla.mozilla.org/rest/"
local function bugzilla_login()
local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password
print("accessing " .. url)
local res,code = https.request( url )
local data = json:decode(res)
return data
... | gpl-2.0 |
omidtarh/fire | plugins/bugzilla.lua | 611 | 3983 | do
local BASE_URL = "https://bugzilla.mozilla.org/rest/"
local function bugzilla_login()
local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password
print("accessing " .. url)
local res,code = https.request( url )
local data = json:decode(res)
return data
... | gpl-2.0 |
AmirFieBeR/Amir_FieBeR | plugins/bugzilla.lua | 611 | 3983 | do
local BASE_URL = "https://bugzilla.mozilla.org/rest/"
local function bugzilla_login()
local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password
print("accessing " .. url)
local res,code = https.request( url )
local data = json:decode(res)
return data
... | gpl-2.0 |
AmirFieBeR/Amir_FieBeR | bot/bot.lua | 1 | 6651 | 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")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This function is ... | gpl-2.0 |
czfshine/Don-t-Starve | data/DLC0001/scripts/speech_wathgrithr.lua | 1 | 40405 | return {
ACTIONFAIL =
{
SHAVE =
{
AWAKEBEEFALO = "Let him sleep. Then I'll prune him.",
GENERIC = "Unshaveworthy.",
NOBITS = "But there's nothing to trim!",
},
STORE =
{
GENERIC = "It's packed full.",
NOTALLOWED = "That's not a good spot for this.",
},
},
ACTIONFAIL_GENERIC = "It can't be... | gpl-2.0 |
czfshine/Don-t-Starve | data/scripts/debugsounds.lua | 1 | 5986 | require("class")
require("util")
--tweakable parameters
local maxRecentSounds = 30 --max number of recent sounds to list in the debug output
local maxDistance = 30 --max distance to show
local playsound = SoundEmitter.PlaySound
local killsound = SoundEmitter.KillSound
local killallsounds = SoundEmitter.KillAl... | gpl-2.0 |
liamgh/liamgreenhughes-sl4a-tf101 | lua/luasocket/src/socket.lua | 146 | 4061 | -----------------------------------------------------------------------------
-- LuaSocket helper module
-- Author: Diego Nehab
-- RCS ID: $Id: socket.lua,v 1.22 2005/11/22 08:33:29 diego Exp $
-----------------------------------------------------------------------------
-----------------------------------------------... | apache-2.0 |
nimaghorbani/nimabotv2 | plugins/banhammer.lua | 214 | 11956 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
timroes/awesome | lib/beautiful/theme_assets.lua | 2 | 8063 | ----------------------------------------------------------------------------
--- Generate vector assets using current colors.
--
-- @author Yauhen Kirylau <yawghen@gmail.com>
-- @copyright 2015 Yauhen Kirylau
-- @module beautiful.theme_assets
-----------------------------------------------------------------------... | gpl-2.0 |
victorperin/tibia-server | data/npc/scripts/A Dead Bureaucrat2.lua | 1 | 1605 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)... | apache-2.0 |
CrazyEddieTK/Zero-K | LuaUI/Widgets/gui_selectkeys.lua | 2 | 6526 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Select Keys",
desc = "v0.035 Common SelectKey Hotkeys for EPIC Menu.",
author = "CarRep... | gpl-2.0 |
libnano/primer3-py | primer3/src/libprimer3/klib/lua/klib.lua | 42 | 20155 | --[[
The MIT License
Copyright (c) 2011, Attractive Chaos <attractor@live.co.uk>
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 th... | gpl-2.0 |
alobaidy98/ahmed.Dev | plugins/stats.lua | 4 | 4013 | do
-- Returns a table with `name` and `msgs`
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_prin... | gpl-3.0 |
czfshine/Don-t-Starve | data/scripts/prefabs/farm_decor.lua | 1 | 1355 |
local function makeassetlist(bankname, buildname)
return {
Asset("ANIM", "anim/"..buildname..".zip"),
Asset("ANIM", "anim/"..bankname..".zip"),
}
end
local function makefn(bankname, buildname, animname)
local function fn(Sim)
local inst = CreateEntity()
local trans = inst.e... | gpl-2.0 |
Metastruct/gmod-csweapons | lua/weapons/weapon_fiveseven.lua | 1 | 3040 | AddCSLuaFile()
DEFINE_BASECLASS( "weapon_csbasegun" )
CSParseWeaponInfo( SWEP , [[WeaponData
{
"MaxPlayerSpeed" "250"
"WeaponType" "Pistol"
"FullAuto" 0
"WeaponPrice" "750"
"WeaponArmorRatio" "1.5"
"CrosshairMinDistance" "8"
"CrosshairDeltaDistance" "3"
"Team" "CT"
"BuiltRightHanded" "0"
"Playe... | unlicense |
Mysticla/Electrostasis | lib/bump.lua | 4 | 21395 | local bump = {
_VERSION = 'bump v3.1.3',
_URL = 'https://github.com/kikito/bump.lua',
_DESCRIPTION = 'A collision detection library for Lua',
_LICENSE = [[
MIT LICENSE
Copyright (c) 2014 Enrique García Cota
Permission is hereby granted, free of charge, to any person obtaining a
... | mit |
v3n/altertum | ext/luajit/dynasm/dasm_ppc.lua | 39 | 57489 | ------------------------------------------------------------------------------
-- DynASM PPC/PPC64 module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
--
-- Support for various extensions contributed by Caio Souza Oliveira.
---------------------------------... | mit |
victorperin/tibia-server | data/actions/scripts/inquisition quest/inquisitionQuestHolyWater.lua | 1 | 3068 | local pos = {x=32260,y=32791,z =7}
local time = 10
local function OpenDoor()
return (doTransformItem(getTileItemById( pos,8696 ).uid, 8697))
end
local function transformBack1()
return (doTransformItem(getTileItemById( {x=33115,y=31702,z =12},8754).uid, 8755))
end
local function transformBack2()
return (doTransfo... | apache-2.0 |
CrazyEddieTK/Zero-K | effects/nuke_150.lua | 25 | 15829 | -- nuke_150_seacloud
-- nuke_150_landcloud_ring
-- nuke_150_landcloud
-- nuke_150_landcloud_topcap
-- nuke_150_landcloud_cap
-- nuke_150_seacloud_topcap
-- nuke_150_seacloud_ring
-- nuke_150
-- nuke_150_seacloud_cap
-- nuke_150_seacloud_pillar
-- nuke_150_landcloud_pillar
return {
["nuke_150_seacloud"] = {
usede... | gpl-2.0 |
CrazyEddieTK/Zero-K | gamedata/modularcomms/weapons/shockrifle.lua | 5 | 1078 | local name = "commweapon_shockrifle"
local weaponDef = {
name = [[Shock Rifle]],
areaOfEffect = 16,
colormap = [[0 0 0 0 0 0 0.2 0.2 0 0 0.5 0.5 0 0 0.7 0.7 0 0 1 1 0 0 1 1]],
craterBoost = 0,
craterMult = 0,
customParams ... | gpl-2.0 |
Evengard/UniMod | lua/funcs.lua | 1 | 3287 | mapMode=function()
local gf=gameFlags()
gf=bitAnd(gf, 0x00001FF0)
if bitAnd(gf, 0x100)>0 then
return "arena"
elseif bitAnd(gf, 0x400)>0 then
return "elimination"
elseif bitAnd(gf, 0x20)>0 then
return "ctf"
elseif bitAnd(gf,0... | lgpl-3.0 |
timroes/awesome | lib/awful/layout/suit/max.lua | 3 | 1410 | ---------------------------------------------------------------------------
--- Maximized and fullscreen layouts module for awful
--
-- @author Julien Danjou <julien@danjou.info>
-- @copyright 2008 Julien Danjou
-- @module awful.layout
---------------------------------------------------------------------------
-... | gpl-2.0 |
minetest-games/Minetest_TNG | mods/default/lua/nodes/glass.lua | 2 | 1225 | -- mods/default/lua/nodes/glass.lua
-- ================================
-- See README.txt for licensing and other information.
default.register_node("default:glass", {
description = "Glass",
drawtype = "glasslike_framed_optional",
tiles = {"default_glass.png", "default_glass_detail.png"},
inventory_image = minetes... | gpl-3.0 |
czfshine/Don-t-Starve | data/scripts/map/rooms/terrain_mazes.lua | 1 | 1148 |
AddRoom("LabyrinthGuarden", {
colour={r=0.3,g=0.2,b=0.1,a=0.3},
value = GROUND.BRICK,
tags = {"LabyrinthEntrance"},
contents = {
countstaticlayouts =
{
["WalledGarden"] = 1,
},
},
})
AddRoom("BGLabyrinth", {
colour={r=0.3,g=... | gpl-2.0 |
CrazyEddieTK/Zero-K | units/droneheavyslow.lua | 5 | 3367 | unitDef = {
unitname = [[droneheavyslow]],
name = [[Viper]],
description = [[Advanced Battle Drone]],
acceleration = 0.3,
airHoverFactor = 4,
brakeRate = 0.24,
buildCostMetal = 35,
builder = false,
buildPic = [[dronehe... | gpl-2.0 |
czfshine/Don-t-Starve | data/scripts/prefabs/hound.lua | 1 | 8976 | require "brains/houndbrain"
require "stategraphs/SGhound"
local trace = function() end
local assets=
{
Asset("ANIM", "anim/hound_basic.zip"),
Asset("ANIM", "anim/hound.zip"),
Asset("ANIM", "anim/hound_red.zip"),
Asset("ANIM", "anim/hound_ice.zip"),
Asset("SOUND", "sound/hound.fsb"),
}
local prefabs =
{
"hounds... | gpl-2.0 |
AllAboutEE/nodemcu-firmware | lua_modules/ds3231/ds3231-web.lua | 84 | 1338 | require('ds3231')
port = 80
-- ESP-01 GPIO Mapping
gpio0, gpio2 = 3, 4
days = {
[1] = "Sunday",
[2] = "Monday",
[3] = "Tuesday",
[4] = "Wednesday",
[5] = "Thursday",
[6] = "Friday",
[7] = "Saturday"
}
months = {
[1] = "January",
[2] = "Febuary",
[3] = "March",
[4] = "Apri... | mit |
willthames/photodeck.lrdevplugin | PhotoDeckAPIXSLT.lua | 1 | 7029 | local LrXml = import 'LrXml'
local logger = import 'LrLogger'( 'PhotoDeckPublishLightroomPlugin' )
logger:enable('logfile')
local xsltheader = [====[
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template match="/reply/*"/>
]====]
local xsltfo... | mit |
czfshine/Don-t-Starve | mods/Cretaceous/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 |
CrazyEddieTK/Zero-K | units/dynassault1.lua | 5 | 2658 | unitDef = {
unitname = [[dynassault1]],
name = [[Guardian Commander]],
description = [[Heavy Combat Commander]],
acceleration = 0.18,
activateWhenBuilt = true,
brakeRate = 0.375,
buildCostMetal = 1200,
buildDistance = 144,
builder ... | gpl-2.0 |
CrazyEddieTK/Zero-K | LuaRules/Gadgets/game_over.lua | 3 | 21832 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
starkos/premake-core | modules/d/tests/test_ldc.lua | 7 | 2223 | ---
-- d/tests/test_dmd.lua
-- Automated test suite for dmd.
-- Copyright (c) 2011-2015 Manu Evans and the Premake project
---
local suite = test.declare("d_ldc")
local p = premake
local m = p.modules.d
local make = p.make
local project = p.project
--------------------------------------------------------------... | bsd-3-clause |
CrazyEddieTK/Zero-K | LuaUI/Widgets/gfx_lups_units_on_fire.lua | 5 | 3025 | -- $Id: gfx_lups_units_on_fire.lua 3171 2008-11-06 09:06:29Z det $
function widget:GetInfo()
return {
name = "Units on Fire",
desc = "Graphical effect for burning units",
author = "jK/quantum",
date = "Sep, 2008",
license = "GNU GPL, v2 or later",
layer = 10,
enabl... | gpl-2.0 |
blueyed/awesome | tests/test-awful-rules.lua | 3 | 7371 | local awful = require("awful")
local gears = require("gears")
local beautiful = require("beautiful")
local test_client = require("_client")
local unpack = unpack or table.unpack -- luacheck: globals unpack (compatibility with Lua 5.1)
local callback_called = false
-- Magic table to store tests
local tests = {}
local... | gpl-2.0 |
minetest-games/Minetest_TNG | mods/tnt/init.lua | 2 | 10690 | tnt = {}
-- Default to enabled in singleplayer and disabled in multiplayer
local singleplayer = minetest.is_singleplayer()
local setting = minetest.setting_getbool("enable_tnt")
if (not singleplayer and setting ~= true) or
(singleplayer and setting == false) then
return
end
-- loss probabilities array (one in X wil... | gpl-3.0 |
TimSimpson/Macaroni | Main/App/Source/test/lua/Macaroni/Model/ReasonTests.lua | 2 | 2257 | --------------------------------------------------------------------------------
-- Copyright 2011 Tim Simpson
--
-- 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.a... | apache-2.0 |
unusualcrow/redead_reloaded | entities/entities/sent_heliflare/init.lua | 1 | 1124 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
ENT.Rotor = Sound("NPC_AttackHelicopter.RotorsLoud")
ENT.Explode = Sound("weapons/flashbang/flashbang_explode1.wav")
function ENT:Initialize()
self:SetModel(Model("models/props_c17/trappropeller_lever.mdl"))
self:PhysicsInit(SOLID_VPHYSICS)... | mit |
czfshine/Don-t-Starve | data/DLC0001/scripts/components/edible.lua | 1 | 3916 | local Edible = Class(function(self, inst)
self.inst = inst
self.healthvalue = 10
self.hungervalue = 10
self.sanityvalue = 0
self.foodtype = "GENERIC"
self.oneaten = nil
self.degrades_with_spoilage = true
self.temperaturedelta = 0
self.temperatureduration = 0
self.inst:AddTag("ed... | gpl-2.0 |
matthewhesketh/mattata | plugins/currency.lua | 2 | 1799 | --[[
Based on a plugin by topkecleon. Licensed under GNU AGPLv3
https://github.com/topkecleon/otouto/blob/master/LICENSE.
Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com>
This code is licensed under the MIT. See LICENSE for details.
]]
local currency = {}
local mattata = require('mattata')
l... | mit |
czfshine/Don-t-Starve | data/scripts/map/levels/survival.lua | 1 | 7960 | require("map/level")
----------------------------------
-- Survival levels
----------------------------------
AddLevel(LEVELTYPE.SURVIVAL, {
id="SURVIVAL_DEFAULT",
name=STRINGS.UI.CUSTOMIZATIONSCREEN.PRESETLEVELS[1],
desc=STRINGS.UI.CUSTOMIZATIONSCREEN.PRESETLEVELDESC[1],
overrides={
{"start_setpeice", ... | gpl-2.0 |
Mossop/500pxPublisher.lrplugin | 500pxAPI.lua | 1 | 16793 | --[[ Some Handy Constants ]]--
local CONSUMER_KEY = "";
local CONSUMER_SECRET = ""
local SALT = ""
local LrDate = import "LrDate"
local LrErrors = import "LrErrors"
local LrHttp = import "LrHttp"
local LrMD5 = import "LrMD5"
local LrPathUtils = import "LrPathUtils"
local LrStringUtils = import "LrStringUtils"
local Lr... | gpl-3.0 |
mohammad8/test1 | 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 |
CrazyEddieTK/Zero-K | LuaUI/Widgets/gui_chili_facbar.lua | 5 | 19680 | -------------------------------------------------------------------------------
local version = "v0.053"
function widget:GetInfo()
return {
name = "Chili FactoryBar",
desc = version .. " - Chili buildmenu for factories.",
author = "CarRepairer (converted from jK's Buildbar)",
date ... | gpl-2.0 |
starkos/premake-core | modules/self-test/test_helpers.lua | 15 | 1665 | ---
-- test_helpers.lua
--
-- Helper functions for setting up workspaces and projects, etc.
--
-- Author Jason Perkins
-- Copyright (c) 2008-2016 Jason Perkins and the Premake project.
---
local p = premake
local m = p.modules.self_test
function m.createWorkspace()
local wks = workspace("MyWorkspace")
confi... | bsd-3-clause |
rzh/mongocraft | world/Plugins/Core/time.lua | 6 | 5541 | -- Implements time related commands and console commands
local PlayerTimeAddCommandUsage = "Usage: /time add <value> [world]"
local PlayerTimeSetCommandUsage = "Usage: /time set <day|night|value> [world]"
local ConsoleSetTimeCommandUsage = "Usage: time set <day|night|value> [world]"
local ConsoleAddTimeCommandUsage =... | apache-2.0 |
matthewhesketh/mattata | plugins/newchat.lua | 2 | 2128 | --[[
Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com>
This code is licensed under the MIT. See LICENSE for details.
]]
local newchat = {}
local mattata = require('mattata')
local redis = require('libs.redis')
local json = require('dkjson')
function newchat:init()
newchat.commands = mattata.comm... | mit |
czfshine/Don-t-Starve | data/scripts/prefabs/pigman.lua | 1 | 18133 | require "brains/pigbrain"
require "brains/pigguardbrain"
require "brains/werepigbrain"
require "stategraphs/SGpig"
require "stategraphs/SGwerepig"
local assets =
{
Asset("ANIM", "anim/ds_pig_basic.zip"),
Asset("ANIM", "anim/ds_pig_actions.zip"),
Asset("ANIM", "anim/ds_pig_attacks.zip"),
Asset("ANIM", "anim/pig_bui... | gpl-2.0 |
czfshine/Don-t-Starve | data/DLC0001/scripts/prefabs/pigman.lua | 1 | 20165 | require "brains/pigbrain"
require "brains/pigguardbrain"
require "brains/werepigbrain"
require "stategraphs/SGpig"
require "stategraphs/SGwerepig"
local assets =
{
Asset("ANIM", "anim/ds_pig_basic.zip"),
Asset("ANIM", "anim/ds_pig_actions.zip"),
Asset("ANIM", "anim/ds_pig_attacks.zip"),
Asset("ANIM", "anim/pig_bui... | gpl-2.0 |
CrazyEddieTK/Zero-K | LuaRules/Gadgets/cmd_factory_stop_production.lua | 4 | 2841 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "Factory Stop Production",
desc = "Adds a command to clear the factory queue",
author = "Google... | gpl-2.0 |
czfshine/Don-t-Starve | ZeroBraneStudio/api/lua/moai.lua | 2 | 622957 | -- Documentation for Moai SDK 1.5 revision 1 (interim version by MoaiEdition) (http://getmoai.com/)
-- Generated on 2014-04-01 by DocExport v2.1.
-- DocExport is part of MoaiUtils (https://github.com/DanielSWolf/MoaiUtils).
return {
b2ContactListener = {
type = "class",
inherits = "MOAILuaObject",
... | gpl-2.0 |
czfshine/Don-t-Starve | data/scripts/map/static_layouts/skeleton_construction.lua | 1 | 4030 | return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 12,
height = 12,
tilewidth = 16,
tileheight = 16,
properties = {},
tilesets = {
{
name = "tiles",
firstgid = 1,
tilewidth = 64,
tileheight = 64,
spacing = 0,
margin = 0,
imag... | gpl-2.0 |
unusualcrow/redead_reloaded | entities/weapons/rad_g3/shared.lua | 1 | 1428 | if SERVER then
AddCSLuaFile("shared.lua")
end
if CLIENT then
SWEP.ViewModelFlip = true
SWEP.PrintName = "G3 SG1"
SWEP.IconLetter = "i"
SWEP.Slot = 4
SWEP.Slotpos = 3
end
SWEP.HoldType = "ar2"
SWEP.Base = "rad_base"
SWEP.ViewModel = "models/weapons/v_snip_g3sg1.mdl"
SWEP.WorldModel = "models/weapons/w_snip_g3sg1... | mit |
czfshine/Don-t-Starve | ZeroBraneStudio/src/editor/autocomplete.lua | 1 | 19592 | -- Copyright 2011-15 Paul Kulchenko, ZeroBrane LLC
-- authors: Luxinia Dev (Eike Decker & Christoph Kubisch)
---------------------------------------------------------
local ide = ide
local statusBar = ide.frame.statusBar
local q = EscapeMagic
-- api loading depends on Lua interpreter
-- and loaded specs
-----------... | gpl-2.0 |
czfshine/Don-t-Starve | data/scripts/map/static_layouts/maxwell_6.lua | 1 | 6280 | return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 36,
height = 36,
tilewidth = 16,
tileheight = 16,
properties = {},
tilesets = {
{
name = "tiles",
firstgid = 1,
tilewidth = 64,
tileheight = 64,
spacing = 0,
margin = 0,
imag... | gpl-2.0 |
liamgh/liamgreenhughes-sl4a-tf101 | lua/json4lua/json/json.lua | 20 | 15751 | -----------------------------------------------------------------------------
-- JSON4Lua: JSON encoding / decoding support for the Lua language.
-- json Module.
-- Author: Craig Mason-Jones
-- Homepage: http://json.luaforge.net/
-- Version: 0.9.20
-- This module is released under the The GNU General Public Licen... | apache-2.0 |
vmcraft/RemotePrinter | 3rdparty/thrift-0.9.2/lib/lua/TSocket.lua | 113 | 2996 | ---- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you may... | apache-2.0 |
vadrak/ArenaLive | PlayerButton.lua | 1 | 1871 | local addonName, L = ...;
ArenaLivePlayerButton = {};
local PlayerButton = ArenaLivePlayerButton;
local onDragStart, onClick; -- private functions
--[[**
* Initializes the player button btn.
*
* btn (Button) reference to an UI button that is going to be
* initialized as a player button.
]]
function PlayerButto... | mit |
CrazyEddieTK/Zero-K | LuaUI/Configs/nubtron_config.lua | 5 | 8962 | --[[
INSTRUCTIONS
Choose names for the unitClass table and use those names in conditions.
For example if you use "Con" then you must use "ConSelected" not "conSelected":
local unitClasses = {
Con = { 'cloakcon' },
}
local steps = {
selectCon = {
image = unitClasses.Con[1] ..'.png',
passIfAny = { 'ConSelecte... | gpl-2.0 |
czfshine/Don-t-Starve | mods/Cretaceous/wicker/utils/time.lua | 6 | 1831 | --[[
Copyright (C) 2013 simplex
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that ... | gpl-2.0 |
czfshine/Don-t-Starve | data/scripts/prefabs/forest.lua | 1 | 2881 | local assets =
{
Asset("IMAGE", "images/colour_cubes/day05_cc.tex"),
Asset("IMAGE", "images/colour_cubes/dusk03_cc.tex"),
Asset("IMAGE", "images/colour_cubes/night03_cc.tex"),
Asset("IMAGE", "images/colour_cubes/snow_cc.tex"),
Asset("IMAGE", "images/colour_cubes/snowdusk_cc.tex"),
Asset("IMAGE", "images/colour_cu... | gpl-2.0 |
DipColor/ajab3 | plugins/plugins.lua | 325 | 6164 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
starkos/premake-core | modules/vstudio/tests/vc200x/test_project_refs.lua | 16 | 1831 | --
-- tests/actions/vstudio/vc200x/test_project_refs.lua
-- Validate project references in Visual Studio 200x C/C++ projects.
-- Copyright (c) 2011-2012 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vstudio_vs200x_project_refs")
local vc200x = p.vstudio.vc200x
--
-- Setup
... | bsd-3-clause |
CrazyEddieTK/Zero-K | LuaUI/Widgets/unit_cloakfirestate2.lua | 5 | 3429 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Cloak Fire State 2",
desc = "Sets units to Hold Fire when cloaked, reverts to original state when d... | gpl-2.0 |
minetest-games/Minetest_TNG | mods/default/lua/nodes/ores.lua | 2 | 7246 | -- mods/default/lua/nodes/ores.lua
-- ===============================
-- See README.txt for licensing and other information.
-- Minerals
local stones = {
{"stone"},
{"sandstone"},
{"desert_stone"}
}
for _,stone in pairs(stones) do
stone = stone[1]
default.register_node("default:" .. stone .. "_with_coal", {
d... | gpl-3.0 |
victorperin/tibia-server | data/npc/scripts/Palomino.lua | 1 | 3295 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local Aluguel_mounts = {
["brown rented horse"] = {price = 500, days = 1, mountid = 22, level = 10, premium = false, storage = 50561},
["grey rented horse"] = {price = 500, days = 1, mo... | apache-2.0 |
czfshine/Don-t-Starve | data/scripts/prefabs/plant_normal.lua | 1 | 1453 | local assets =
{
Asset("ANIM", "anim/plant_normal.zip"),
-- products for buildswap
Asset("ANIM", "anim/durian.zip"),
Asset("ANIM", "anim/eggplant.zip"),
Asset("ANIM", "anim/dragonfruit.zip"),
Asset("ANIM", "anim/pomegranate.zip"),
Asset("ANIM", "anim/corn.zip"),
Asset("ANIM", "anim/pumpkin.zi... | gpl-2.0 |
CrazyEddieTK/Zero-K | LuaRules/Configs/StartBoxes/Melt_V2.lua | 17 | 2902 | return {
[0] = {
startpoints = {
{6796, 3900},
{6828, 6819},
{6729, 976},
{6744, 5419},
{7393, 2418},
},
boxes = {
{
{6375, 3672},
{6226, 3864},
{6262, 4098},
{6163, 4157},
{6202, 4308},
{6364, 4360},
{6379, 4361},
{6551, 4322},
{6764, 4428},
{6775, 4426}... | gpl-2.0 |
rzh/mongocraft | world/Plugins/Core/regen.lua | 6 | 1937 |
-- regen.lua
-- Implements the in-game and console commands for chunk regeneration
function HandleRegenCommand(a_Split, a_Player)
-- Check the params:
local numParams = #a_Split
if (numParams == 2) or (numParams > 3) then
SendMessage(a_Player, "Usage: '" .. a_Split[1] .. "' or '" .. a_Split[1] .. " <chunk x... | apache-2.0 |
czfshine/Don-t-Starve | ZeroBraneStudio/lualibs/coxpcall/coxpcall.lua | 4 | 2272 | -------------------------------------------------------------------------------
-- Coroutine safe xpcall and pcall versions
--
-- Encapsulates the protected calls with a coroutine based loop, so errors can
-- be dealed without the usual Lua 5.x pcall/xpcall issues with coroutines
-- yielding inside the call to pcall or... | gpl-2.0 |
nvoron23/tarantool | test/box/access_misc.test.lua | 9 | 5391 | session = box.session
--
-- Check a double create space
--
s = box.schema.space.create('test')
s = box.schema.space.create('test')
--
-- Check a double drop space
--
s:drop()
s:drop()
--
-- Check double create user
--
box.schema.user.create('testus')
box.schema.user.create('testus')
s = box.schema.space.create('admin_... | bsd-2-clause |
Ameeralasdee/FROLA | 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-3.0 |
rzh/mongocraft | world/Plugins/APIDump/Hooks/OnHopperPullingItem.lua | 44 | 1336 | return
{
HOOK_HOPPER_PULLING_ITEM =
{
CalledWhen = "A hopper is pulling an item from another block entity.",
DefaultFnName = "OnHopperPullingItem", -- also used as pagename
Desc = [[
This callback is called whenever a {{cHopperEntity|hopper}} transfers an {{cItem|item}} from another
block entity into its... | apache-2.0 |
czfshine/Don-t-Starve | data/scripts/screens/bigpopupdialog.lua | 1 | 2615 | local Screen = require "widgets/screen"
local Button = require "widgets/button"
local AnimButton = require "widgets/animbutton"
local ImageButton = require "widgets/imagebutton"
local Text = require "widgets/text"
local Image = require "widgets/image"
local Widget = require "widgets/widget"
local Menu = require "widget... | gpl-2.0 |
CrazyEddieTK/Zero-K | LuaRules/Gadgets/weapon_shield_merge.lua | 3 | 11540 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
czfshine/Don-t-Starve | data/scripts/components/pollinator.lua | 1 | 1292 | local Pollinator = Class(function(self, inst)
self.inst = inst
self.flowers = {}
self.distance = 5
self.maxdensity = 4
self.collectcount = 5
self.target = nil
self.inst:AddTag("pollinator")
end)
function Pollinator:GetDebugString()
return string.format("flowers: %d, cancreate: %s", #sel... | gpl-2.0 |
czfshine/Don-t-Starve | data/scripts/map/static_layouts/wasphive_grass_easy.lua | 1 | 12735 | return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 12,
height = 12,
tilewidth = 16,
tileheight = 16,
properties = {},
tilesets = {
{
name = "tiles",
firstgid = 1,
tilewidth = 64,
tileheight = 64,
spacing = 0,
margin = 0,
imag... | gpl-2.0 |
starkos/premake-core | modules/android/vsandroid_vcxproj.lua | 4 | 17615 | --
-- android/vsandroid_vcxproj.lua
-- vs-android integration for vstudio.
-- Copyright (c) 2012-2015 Manu Evans and the Premake project
--
local p = premake
p.modules.vsandroid = { }
local android = p.modules.android
local vsandroid = p.modules.vsandroid
local vc2010 = p.vstudio.vc2010
local vstudio = p.vstud... | bsd-3-clause |
ho3einkj/bot | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
mohammad8/test1 | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
aliadddd/ssbot | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
czfshine/Don-t-Starve | data/DLC0001/scripts/prefabs/thulecite_pieces.lua | 1 | 1089 | local assets =
{
Asset("ANIM", "anim/thulecite_pieces.zip"),
}
local function fn(Sim)
local inst = CreateEntity()
inst.entity:AddTransform()
inst.entity:AddAnimState()
MakeInventoryPhysics(inst)
inst.AnimState:SetBank("thulecite_pieces")
inst.AnimState:SetBuild("thulecite_pieces")
inst.AnimState:P... | gpl-2.0 |
nimaghorbani/dozdi9 | libs/redis.lua | 566 | 1214 | local Redis = require 'redis'
local FakeRedis = require 'fakeredis'
local params = {
host = os.getenv('REDIS_HOST') or '127.0.0.1',
port = tonumber(os.getenv('REDIS_PORT') or 6379)
}
local database = os.getenv('REDIS_DB')
local password = os.getenv('REDIS_PASSWORD')
-- Overwrite HGETALL
Redis.commands.hgetall = ... | gpl-2.0 |
mercury233/ygopro-scripts | c38723936.lua | 2 | 1605 | --クイズ
function c38723936.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c38723936.cost)
e1:SetTarget(c38723936.target)
e1:SetOperation(c38723936.activate)
c:RegisterEff... | gpl-2.0 |
linushsao/marsu_game-linus-v0.2 | mods/technical/mesecons/mesecons/internal.lua | 3 | 18746 | -- Internal.lua - The core of mesecons
--
-- For more practical developer resources see http://mesecons.net/developers.php
--
-- Function overview
-- mesecon.get_effector(nodename) --> Returns the mesecons.effector -specifictation in the nodedef by the nodename
-- mesecon.get_receptor(nodename) --> Returns the mesecons... | gpl-3.0 |
mercury233/ygopro-scripts | c32305461.lua | 3 | 2128 | --占い魔女 エンちゃん
function c32305461.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(32305461,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetCode(EVENT_DRAW)
e1:SetCountLi... | gpl-2.0 |
mercury233/ygopro-scripts | c28692962.lua | 2 | 3859 | --紫宵の機界騎士
function c28692962.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,28692962+EFFECT_COUNT_CODE_OATH)
e1:SetCondition(c28692962.hspcon)
... | gpl-2.0 |
qq779089973/my_openwrt_mod | luci/libs/lucid-rpc/luasrc/lucid/rpc/server.lua | 52 | 8197 | --[[
LuCI - Lua Development Framework
Copyright 2009 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]
local ip... | mit |
mercury233/ygopro-scripts | c975299.lua | 2 | 3704 | --巨大要塞ゼロス
function c975299.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetOperation(c975299.activate)
c:RegisterEffect(e1)
--atk/def up
local e2=Effect.CreateEffect(c)
e2:SetType(E... | gpl-2.0 |
linushsao/marsu_game-linus-v0.2 | mods/technical/mesecons/mesecons_blinkyplant/init.lua | 8 | 1381 | -- The BLINKY_PLANT
local toggle_timer = function (pos)
local timer = minetest.get_node_timer(pos)
if timer:is_started() then
timer:stop()
else
timer:start(mesecon.setting("blinky_plant_interval", 3))
end
end
local on_timer = function (pos)
local node = minetest.get_node(pos)
if(mesecon.flipstate(pos, node)... | gpl-3.0 |
terminar/lua-handlers | perf/zmq/local_lat.lua | 2 | 1863 | -- Copyright (c) 2010 by Robert G. Jakabosky <bobby@neoawareness.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 ... | mit |
qq779089973/my_openwrt_mod | luci/applications/luci-statistics/luasrc/statistics/rrdtool.lua | 69 | 15320 | --[[
Luci statistics - rrdtool interface library / diagram model interpreter
(c) 2008 Freifunk Leipzig / 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
... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.