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 |
|---|---|---|---|---|---|
FishFilletsNG/fillets-data | script/floppy/demo_dialogs_ru.lua | 1 | 2678 | -- FIXME.asm
dialogId("dlg-x-poster1", "font_orange", "THE GREATEST EARTHQUAKE SINCE 1990")
dialogStr("")
dialogId("dlg-x-poster2", "font_orange", "when Dragon’s Lair was issued, Rules for beginners, version 1.0.")
dialogStr("когда Dragon's Lair был опубликован, Правила для начинающих, версия 1.0")
dialogId("dlg-x... | gpl-2.0 |
zielmicha/freeciv-mirror | dependencies/tolua-5.1/src/bin/lua/module.lua | 5 | 1440 | -- tolua: module class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance, support, updates,
-- enhancements,... | gpl-2.0 |
AnySDK/Sample_Lua | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ActionInterval.lua | 10 | 1441 |
--------------------------------
-- @module ActionInterval
-- @extend FiniteTimeAction
-- @parent_module cc
--------------------------------
--
-- @function [parent=#ActionInterval] getAmplitudeRate
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
--
-- @fun... | mit |
unigent/openwrt-3.10.14 | package/ramips/ui/luci-mtk/src/applications/luci-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua | 76 | 5638 | --[[
Luci diag - Diagnostics controller module
(c) 2009 Daniel Dickinson
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
]]--
module("luci.cont... | gpl-2.0 |
FishFilletsNG/fillets-data | script/cave/dialogs_ru.lua | 1 | 4206 | dialogId("jes-m-netopyr", "font_small", "That bat must be terribly strong.")
dialogStr("Эта летучая мышь, должно быть, ужасно сильная.")
dialogId("jes-v-tojo", "font_big", "Well, yes.")
dialogStr("Пожалуй, да.")
dialogId("jes-m-tvor", "font_small", "That red creature is a little bit strange.")
dialogStr("Это красное ... | gpl-2.0 |
gedadsbranch/Darkstar-Mission | scripts/globals/mobskills/Impale.lua | 6 | 1213 | ---------------------------------------------
-- Impale
--
-- Description: Deals damage to a single target. Additional effect: Paralysis
-- Type: Physical
-- Utsusemi/Blink absorb: 1 shadow
-- Range: Melee
-- Notes:
---------------------------------------------
require("/scripts/globals/settings");
requ... | gpl-3.0 |
hooksta4/darkstar | scripts/globals/items/marron_glace.lua | 35 | 1337 | -----------------------------------------
-- ID: 4502
-- Item: Marron Glace
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Magic % 13
-- Magic Cap 85
-- Magic Regen While Healing 1
-----------------------------------------
require("scripts/globals/status");
----------------... | gpl-3.0 |
skwerlman/ccsquish | debug/minichunkspy.lua | 3 | 7418 | -- Minichunkspy: Disassemble and reassemble chunks.
-- Copyright M Joonas Pihlaja 2009
-- MIT license
--
-- minichunkspy = require"minichunkspy"
--
-- chunk = string.dump(loadfile"blabla.lua")
-- disassembled_chunk = minichunkspy.disassemble(chunk)
-- chunk = minichunkspy.assemble(disassembled_chunk)
-- assert(minichun... | mit |
gedadsbranch/Darkstar-Mission | scripts/zones/Windurst_Woods/npcs/Cayu_Pensharhumi.lua | 38 | 1416 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Cayu Pensharhumi
-- Type: Standard NPC
-- @pos 39.437 -0.91 -40.808 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
requi... | gpl-3.0 |
Moodstocks/nn | Padding.lua | 32 | 1429 | local Padding, parent = torch.class('nn.Padding', 'nn.Module')
-- pad can be positive (right) negative (left)
function Padding:__init(dim, pad, nInputDim, value)
self.dim = dim
self.pad = pad
self.nInputDim = nInputDim
self.value = value or 0
self.outputSize = torch.LongStorage()
parent.__init(self)
... | bsd-3-clause |
syhunt/community | src/SyHybrid/dynamic/dynamic.lua | 1 | 15447 | SyhuntDynamic = {}
SyhuntDynamic.waitlogin = false
function dynamictargetchanged(t)
--if app.ask_yn('Do you wish to scan logged URL: '..t.url..'?') == true then
if SyhuntDynamic.waitlogin == true then
SyhuntDynamic.waitlogin = false
browser.options.showbottombar = false
SyhuntDynamic:SetURLCo... | bsd-3-clause |
gedadsbranch/Darkstar-Mission | scripts/zones/Bibiki_Bay/npcs/Fheli_Lapatzuo.lua | 12 | 4792 | -----------------------------------
-- Area: Bibiki Bay
-- NPC: Fheli Lapatzuo
-- Type: Manaclipper
-- @pos 488.793 -4.003 709.473 4
-----------------------------------
package.loaded["scripts/zones/Bibiki_Bay/TextIDs"] = nil;
require("scripts/zones/Bibiki_Bay/TextIDs");
-----------------------------------
-- o... | gpl-3.0 |
hooksta4/darkstar | scripts/globals/abilities/dark_maneuver.lua | 54 | 1332 | -----------------------------------
-- Ability: Dark Maneuver
-- Enhances the effect of dark attachments. Must have animator equipped.
-- Obtained: Puppetmaster level 1
-- Recast Time: 10 seconds (shared with all maneuvers)
-- Duration: 1 minute
-----------------------------------
require("scripts/globals/status");
re... | gpl-3.0 |
dermoumi/m2n | extlibs/src/LuaJIT/src/jit/bc.lua | 1 | 5316 | ------------------
-- LuaJIT bytecode listing module.
--
-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
------------------
--
-- This module lists the bytecode of a Lua function. If it's loaded by -jbc
-- it hooks into the parser and lists ... | unlicense |
gedadsbranch/Darkstar-Mission | scripts/zones/North_Gustaberg/npcs/qm1.lua | 34 | 3485 | -----------------------------------
-- Area: North Gustaberg
-- NPC: qm1 (???)
-- Involved in Quest "The Siren's Tear"
-- @pos 309.600, 2.600, 324.000 106 | DB start position
-- @pos 290.000, 0.600, 332.100 106 | alternative start position
-----------------------------------
package.loaded["scripts/zones/North_G... | gpl-3.0 |
hooksta4/darkstar | scripts/zones/zones/Qufim_Island/npcs/Trodden_Snow.lua | 19 | 4780 | -----------------------------------
-- Area: Qufim Island
-- NPC: Trodden Snow
-- Mission: ASA - THAT_WHICH_CURDLES_BLOOD
-- Mission: ASA - SUGAR_COATED_DIRECTIVE
-- @zone 126
-- @pos -19 -17 104
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
----------------------------... | gpl-3.0 |
gedadsbranch/Darkstar-Mission | scripts/zones/Kazham/npcs/Kobhi_Sarhigamya.lua | 34 | 1061 | ----------------------------------
-- Area: Kazham
-- NPC: Kobhi Sarhigamya
-- Type: Item Deliverer
-- @zone: 250
-- @pos -115.29 -11 -22.609
--
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-------------------------... | gpl-3.0 |
gedadsbranch/Darkstar-Mission | scripts/zones/Lower_Jeuno/npcs/Navisse.lua | 34 | 4871 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Navisse
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
require("scripts/globals/pathfind");
local path = {
-- -59.562683, 6.000... | gpl-3.0 |
hooksta4/darkstar | scripts/zones/zones/Labyrinth_of_Onzozo/Zone.lua | 2 | 1836 | -----------------------------------
--
-- Zone: Labyrinth_of_Onzozo (213)
--
-----------------------------------
package.loaded["scripts/zones/Labyrinth_of_Onzozo/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Labyrinth_... | gpl-3.0 |
legonia/mr.robot | 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 |
hooksta4/darkstar | scripts/zones/Lower_Jeuno/npcs/Tuh_Almobankha.lua | 2 | 3751 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Tuh Almobankha
-- Title Change NPC
-- @pos -14 0 -61 245
-----------------------------------
require("scripts/globals/titles");
local title2 = { BROWN_MAGE_GUINEA_PIG , BROWN_MAGIC_BYPRODUCT , RESEARCHER_OF_CLASSICS , TORCHBEARER , FORTUNETELLER_IN_TRAI... | gpl-3.0 |
hooksta4/darkstar | scripts/zones/zones/Selbina/npcs/Nomad_Moogle.lua | 4 | 1055 | -----------------------------------
--
-- Nomad Moogle
--
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
require("scripts/globals/settings");
-----------------------------------
-- onTrade Action... | gpl-3.0 |
gedadsbranch/Darkstar-Mission | scripts/zones/Castle_Zvahl_Baileys/npcs/Treasure_Chest.lua | 12 | 3200 | -----------------------------------
-- Area: Castle Zvahl Baileys
-- NPC: Treasure Chest
-- @zone 161
-----------------------------------
package.loaded["scripts/zones/Castle_Zvahl_Baileys/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
re... | gpl-3.0 |
hooksta4/darkstar | scripts/globals/spells/slow.lua | 18 | 1498 | -----------------------------------------
-- Spell: Slow
-- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and MND.
-- Slow's potency is calculated with the formula (150 + dMND*2)/1024, and caps at 300/1024 (~29.3%).
-- And MND of 75 is neccessary to reach the hardcap of Slow.
--... | gpl-3.0 |
gedadsbranch/Darkstar-Mission | scripts/globals/items/chunk_of_homemade_cheese.lua | 35 | 1208 | -----------------------------------------
-- ID: 5225
-- Item: chunk_of_homemade_cheese
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 10
-- Defense 40
-----------------------------------------
require("scripts/globals/status");
----------------------------------------... | gpl-3.0 |
lohool/OLA | Ola/wax/stdlib/helpers/cache.lua | 1 | 2065 | wax.cache = {}
setmetatable(wax.cache, wax.cache)
-- Returns contents of cache keys
-- key: string # value for cache
-- maxAge: number (optional) # max age of file in seconds
function wax.cache.get(key, maxAge)
local path = wax.cache.pathFor(key)
if not wax.filesystem.isFile(path) then return nil e... | mit |
snabbco/snabb | lib/pflua/src/pf/regalloc.lua | 4 | 16429 | -- Implements register allocation for pflua's native backend
--
-- Follows the algorithm described in:
-- "Linear scan register allocation"
-- Poletto and Sarkar
-- https://dl.acm.org/citation.cfm?id=330250
--
-- The result of register allocation is a table that describes
-- the register allocated for the give... | apache-2.0 |
AnySDK/Sample_Lua | src/AdTracking.lua | 1 | 2268 | require "ClassBase"
local adtracking_plugin = nil
AdTracking = class()
function AdTracking:ctor()
adtracking_plugin = AgentManager:getInstance():getAdTrackingPlugin()
end
function AdTracking:onRegister()
if adtracking_plugin ~= nil then
adtracking_plugin:onRegister("userid")
end
end
function AdTracking:onLo... | mit |
hooksta4/darkstar | scripts/zones/zones/Sacrarium/npcs/Large_Keyhole.lua | 2 | 1419 | -----------------------------------
-- Area: Sacrarium
-- NPC: Large Keyhole
-- Notes: Used to open R. Gate
-- @pos 100.231 -1.414 51.700 28
-----------------------------------
package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Sacrarium/TextIDs");
... | gpl-3.0 |
gedadsbranch/Darkstar-Mission | scripts/zones/Kazham/npcs/HomePoint#1.lua | 12 | 1238 | -----------------------------------
-- Area: Kazham
-- NPC: HomePoint#1
-- @pos 77.654 -13.000 -94.457 250
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Kazham/TextIDs");
require("scripts/globals/homepoi... | gpl-3.0 |
prosody-modules/import2 | mod_incidents_handling/incidents_handling/incidents_handling.lib.lua | 32 | 16333 | -- This contains the auxiliary functions for the Incidents Handling module.
-- (C) 2012-2013, Marco Cirillo (LW.Org)
local pairs, ipairs, os_date, string, table, tonumber = pairs, ipairs, os.date, string, table, tonumber
local dataforms_new = require "util.dataforms".new
local st = require "util.stanza"
local xmlns_... | mit |
hooksta4/darkstar | scripts/zones/zones/The_Colosseum/npcs/Cooking.lua | 2 | 4295 | -----------------------------------
-- Area: The Colosseum
-- NPC: Cooking
-- Guild Merchant NPC: Woodworking Guild
-- @pos 0 0 0 0 zone 71
-----------------------------------
package.loaded["scripts/zones/The_Colosseum/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require(... | gpl-3.0 |
gedadsbranch/Darkstar-Mission | scripts/globals/weaponskills/tachi_rana.lua | 12 | 4581 | -----------------------------------
-- Tachi Rana
-- Great Katana weapon skill
-- Skill Level: N/A
-- Delivers a three-fold attack. params.accuracy varies with TP. Aftermath effect varies with TP. See Kogarasumaru.
-- In order to obtain Tachi: Rana, the Unlocking a Myth (Samurai) quest must be completed.
-- Will ... | gpl-3.0 |
dermoumi/m2n | bin/assets/scripts/audio/flangerfilter.lua | 1 | 1817 | --[[
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdi... | unlicense |
FishFilletsNG/fillets-data | script/captain/dialogs_sv.lua | 1 | 2088 |
dialogId("vl-m-hara", "font_small", "There is a lot of garbage here!")
dialogStr("Här är det mycket skräp!")
dialogId("vl-v-kaj1", "font_big", "This was surely a captain’s cabin.")
dialogStr("Det här var tydligen kaptens hytt.")
dialogId("vl-v-kaj2", "font_big", "What would you expect after so many years?")
dialog... | gpl-2.0 |
gedadsbranch/Darkstar-Mission | scripts/zones/Aht_Urhgan_Whitegate/npcs/Tafeesa.lua | 34 | 1032 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Tafeesa
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
----------... | gpl-3.0 |
henu/Urho3D | bin/Data/LuaScripts/38_SceneAndUILoad.lua | 26 | 5306 | -- Scene & UI load example.
-- This sample demonstrates:
-- - Loading a scene from a file and showing it
-- - Loading a UI layout from a file and showing it
-- - Subscribing to the UI layout's events
require "LuaScripts/Utilities/Sample"
function Start()
-- Execute the common startup for samples
... | mit |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/forceThrow1.lua | 2 | 2552 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | agpl-3.0 |
MobinRanjbar/hue | tools/wrk-scripts/lib/equal-5bb8dbf.lua | 22 | 1818 | -- The MIT License (MIT)
--
-- Copyright (c) 2014, Cyril David <cyx@cyx.is>
--
-- 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 right... | apache-2.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/requestCraftingSession.lua | 4 | 2159 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | agpl-3.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/lair/npc_theater/global_imperial_colonel_camp_imperial_medium_theater.lua | 2 | 1043 | global_imperial_colonel_camp_imperial_medium_theater = Lair:new {
mobiles = {
{"imperial_colonel",1},
{"imperial_major",1},
{"imperial_first_lieutenant",2},
{"imperial_sergeant",3}
},
spawnLimit = 12,
buildingsVeryEasy = {"object/building/poi/lok_imperial_medium4.iff","object/building/poi/lok_imperial_mediu... | agpl-3.0 |
jchuang1977/my_packages | net/luci-app-ocserv/files/usr/lib/lua/luci/model/cbi/ocserv/user-config.lua | 30 | 4979 | --[[
LuCI - Lua Configuration Interface
Copyright 2014 Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
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/LICEN... | gpl-2.0 |
jchuang1977/my_packages | net/luci-app-ocserv/files/usr/lib/lua/luci/model/cbi/ocserv/main.lua | 30 | 4979 | --[[
LuCI - Lua Configuration Interface
Copyright 2014 Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
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/LICEN... | gpl-2.0 |
bellinat0r/Epiar | Resources/Scripts/fleet.lua | 2 | 8686 | -- Fleet class to guide AI behavior (e.g. imitate leader's travel route, accept orders as a group,
-- don't attack fellow escorts, etc.). The idea is that this should eventually be a cleaner way
-- of controlling AIs than tampering directly with AIData from outside.
--
-- Note: This is distinct from the Alliances in th... | gpl-2.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/loot/items/geonosian_lab/rifle_tenloss_dxr6_disruptor.lua | 3 | 1052 | --Automatically generated by SWGEmu Spawn Tool v0.12 loot editor.
rifle_tenloss_dxr6_disruptor = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/weapon/ranged/rifle/rifle_tenloss_dxr6_disruptor_loot.iff",
craftingValues = {
{"mindamage",40,150,0},
{"maxdamage",80,... | agpl-3.0 |
szagoruyko/nn | SpatialContrastiveNormalization.lua | 63 | 1444 | local SpatialContrastiveNormalization, parent = torch.class('nn.SpatialContrastiveNormalization','nn.Module')
function SpatialContrastiveNormalization:__init(nInputPlane, kernel, threshold, thresval)
parent.__init(self)
-- get args
self.nInputPlane = nInputPlane or 1
self.kernel = kernel or torch.Tensor(9... | bsd-3-clause |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/loot/groups/wearables/wearables_scarce.lua | 4 | 6202 | wearables_scarce = {
description = "",
minimumLevel = 0,
maximumLevel = 0,
lootItems = {
{itemTemplate = "apron_chef_s01", weight = 120481}, -- Chef's Apron
{itemTemplate = "belt_s03", weight = 120481}, -- Cartridge Belt
{itemTemplate = "belt_s05", weight = 120481}, -- Grenadier's Belt
{itemTemplate = "belt... | agpl-3.0 |
henu/Urho3D | bin/Data/LuaScripts/47_Typography.lua | 11 | 6615 | -- Text rendering example.
-- Displays text at various sizes, with checkboxes to change the rendering parameters.
require "LuaScripts/Utilities/Sample"
-- Tag used to find all Text elements
local TEXT_TAG = "Typography_text_tag"
-- Top-level container for this sample's UI
local uielement = nil
function S... | mit |
ozhanf/ozhan | 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 |
helling34/skynet | lualib/snax/gateserver.lua | 5 | 3250 | local skynet = require "skynet"
local netpack = require "netpack"
local socketdriver = require "socketdriver"
local gateserver = {}
local socket -- listen socket
local queue -- message queue
local maxclient -- max client
local client_number = 0
local CMD = setmetatable({}, { __gc = function() netpack.clear(queue) en... | mit |
tfagit/telegram-bot | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
xztraz/domoticz | dzVents/runtime/device-adapters/Adapters.lua | 2 | 4207 | local genericAdapter = require('generic_device')
local deviceAdapters = {
'airquality_device',
'alert_device',
'ampere_1_phase_device',
'ampere_3_phase_device',
'barometer_device',
'counter_device',
'custom_sensor_device',
'distance_device',
'electric_usage_device',
'evohome_device',
'gas_device',
'group_d... | gpl-3.0 |
garoose/eecs494.p2 | dev/premake/premake/src/actions/make/make_csharp.lua | 18 | 8352 | --
-- make_csharp.lua
-- Generate a C# project makefile.
-- Copyright (c) 2002-2009 Jason Perkins and the Premake project
--
--
-- Given a .resx resource file, builds the path to corresponding .resource
-- file, matching the behavior and naming of Visual Studio.
--
local function getresourcefilename(cfg, fname)
... | mit |
MikeMcShaffry/gamecode3 | Dev/Source/3rdParty/LuaPlus/Src/Modules/socket/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 $
-----------------------------------------------------------------------------
-----------------------------------------------... | lgpl-2.1 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/saber2hHit1.lua | 2 | 2377 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | agpl-3.0 |
thiolliere/ultimate-warfare | src/weapon1.lua | 1 | 2154 | weapon[1]={}
weapon[1].impulse=200
weapon[1].recul=weapon[1].impulse
weapon[1].bulletnumber=0
weapon[1].bulletnumbermax=10
weapon[1].reloadingmagazinetime=70
weapon[1].reloadingbullettime=10
weapon[1].density=0.7
weapon[1].width=0.5*meter
weapon[1].height=0.3*meter
weapon[1].magazine=5
weapon[1].bullet={}
weapon[1].... | mit |
LomoX-Offical/nginx-openresty-windows | src/lua-resty-core-0.1.12/lib/resty/core/regex.lua | 1 | 24048 | -- Copyright (C) Yichun Zhang (agentzh)
local ffi = require 'ffi'
local base = require "resty.core.base"
local bit = require "bit"
require "resty.core.time" -- for ngx.now used by resty.lrucache
local lrucache = require "resty.lrucache"
local lrucache_get = lrucache.get
local lrucache_set = lrucache.set
local ffi_s... | bsd-2-clause |
LeMagnesium/minetest-minetestforfun-server | mods/mesecons/mesecons_delayer/init.lua | 13 | 5674 | -- Function that get the input/output rules of the delayer
local delayer_get_output_rules = function(node)
local rules = {{x = 0, y = 0, z = 1}}
for i = 0, node.param2 do
rules = mesecon.rotate_rules_left(rules)
end
return rules
end
local delayer_get_input_rules = function(node)
local rules = {{x = 0, y = 0, z ... | unlicense |
warriorhero/black-wolf | 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 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/saber2hBodyHit2.lua | 2 | 2393 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | agpl-3.0 |
MonkeyZZZZ/platform_external_skia | tools/lua/scrape_dashing.lua | 160 | 2495 | function tostr(t)
local str = ""
for k, v in next, t do
if #str > 0 then
str = str .. ", "
end
if type(k) == "number" then
str = str .. "[" .. k .. "] = "
else
str = str .. tostring(k) .. " = "
end
if type(v) == "table" then
... | bsd-3-clause |
garoose/eecs494.p2 | dev/premake/premake/tests/base/test_path.lua | 52 | 6597 | --
-- tests/base/test_path.lua
-- Automated test suite for the action list.
-- Copyright (c) 2008-2010 Jason Perkins and the Premake project
--
T.path = { }
local suite = T.path
--
-- path.getabsolute() tests
--
function suite.getabsolute_ReturnsCorrectPath_OnMissingSubdir()
local expected = path.translate(os.... | mit |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/healActionWoundSelf1.lua | 3 | 2153 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | agpl-3.0 |
LeMagnesium/minetest-minetestforfun-server | mods/pipeworks/init.lua | 8 | 3709 | -- Pipeworks mod by Vanessa Ezekowitz - 2013-07-13
--
-- This mod supplies various steel pipes and plastic pneumatic tubes
-- and devices that they can connect to.
--
-- License: WTFPL
--
pipeworks = {}
local DEBUG = false
pipeworks.worldpath = minetest.get_worldpath()
pipeworks.modpath = minetest.get_modpath("pipew... | unlicense |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/dathomir/nightsister_outcast.lua | 2 | 1489 | nightsister_outcast = Creature:new {
objectName = "@mob/creature_names:nightsister_outcast",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "nightsister",
faction = "nightsister",
level = 81,
chanceHit = 0.75,
damageMin = 555,
damageMax = 820,
baseXp = 7761,
baseHAM = 12000,
baseHAMmax = 15000,
armor = 1,... | agpl-3.0 |
StephenZhuang/qdkpv2 | QDKP_V2/QDKP2_Config/Libs/AceGUI-3.0/widgets/AceGUIWidget-Label.lua | 9 | 4607 | --[[-----------------------------------------------------------------------------
Label Widget
Displays text and optionally an icon.
-------------------------------------------------------------------------------]]
local Type, Version = "Label", 23
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not Ace... | gpl-3.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/faction/imperial/imperial_inquisitor.lua | 2 | 1461 | imperial_inquisitor = Creature:new {
objectName = "@mob/creature_names:imperial_inquisitor",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "imperial",
faction = "imperial",
level = 120,
chanceHit = 4.000000,
damageMin = 745,
damageMax = 1200,
baseXp = 11296,
baseHAM = 44000,
baseHAMmax = 54000,
armor = 0... | agpl-3.0 |
iranddos/maxtor | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
aqasaeed/bot | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
aqasaeed/farzad | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
Inquiryel/HPW_Rewrite-SBS | lua/effects/EffectHpwRewriteSparks.lua | 2 | 2567 | AddCSLuaFile()
function EFFECT:Init(data)
self.Hide = HpwRewrite.CVars.HideSparks:GetBool()
if self.Hide then return end
local ply = data:GetEntity()
local col = data:GetStart()
local dieTime = data:GetScale()
self.OldPos = vector_origin
self.Vel = vector_origin
self.Color = Color(col.x, col.y, col.z)
self... | mit |
SharpWoW/BodyguardHealth | options.lua | 1 | 25793 | --[[
Copyright (c) 2014 by Adam Hellberg.
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, mer... | mit |
keplerproject/copas | tests/tcptimeout.lua | 1 | 4457 | -- Tests Copas socket timeouts
--
-- Run the test file, it should exit successfully without hanging.
-- make sure we are pointing to the local copas first
package.path = string.format("../src/?.lua;%s", package.path)
local platform = "unix"
if package.config:sub(1,1) == "\\" then
platform = "windows"
elseif io.pope... | mit |
amirhoseinkarimi2233/uzzbot | plugins/media.lua | 376 | 1679 | 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 |
githabbot/Quick-V2.7 | plugins/media.lua | 376 | 1679 | 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 |
DeepeshC/pubnub | lua-corona/example-chat/main.lua | 2 | 2512 | --
-- INIT CHAT:
-- This initializes the pubnub networking layer.
--
require "pubnub"
chat = pubnub.new({
publish_key = "demo",
subscribe_key = "demo",
secret_key = nil,
ssl = nil,
origin = "pubsub.pubnub.com"
})
--
-- CHAT CHANNEL DEFINED HERE
--
CHAT_CHANNEL = 'PubNub-Chat... | mit |
bluegr/scummvm | devtools/create_ultima/files/ultima6/scripts/common/common.lua | 18 | 9350 | --note nuvie direction values aren't the same as the original it uses the following scheme
--701
--6 2
--543
DIR_NORTH = 0
DIR_EAST = 1
DIR_SOUTH = 2
DIR_WEST = 3
DIR_NORTHEAST = 4
DIR_SOUTHEAST = 5
DIR_SOUTHWEST = 6
DIR_NORTHWEST = 7
DIR_NONE = 8
UI_STYLE_ORIG = 0
UI_STYLE_NEW = 1
UI_STYLE_O... | gpl-3.0 |
NYRDS/pixel-dungeon-remix | RemixedDungeon/src/main/assets/scripts/lib/mob.lua | 1 | 3076 | --
-- User: mike
-- Date: 23.11.2017
-- Time: 21:00
-- This file is part of Remixed Pixel Dungeon.
--
local RPD = require "scripts/lib/commonClasses"
local quest = require"scripts/lib/quest"
local serpent = require "scripts/lib/serpent"
local mob = {}
local knownMobs = {}
setmetatable(knownMobs, { __mode = 'vk' })... | gpl-3.0 |
adixcompany/ad2 | plugins/ingroup.lua | 371 | 44212 | do
-- Check Member
local function check_member_autorealm(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostr... | agpl-3.0 |
keplerproject/copas | tests/largetransfer.lua | 1 | 3226 | -- tests large transmissions, sending and receiving
-- uses `receive` and `receivePartial`
-- Does send the same string twice simultaneously
--
-- Test should;
-- * show timer output, once per second, and actual time should be 1 second increments
-- * both transmissions should take appr. equal time, then they we're n... | mit |
nobe4/dotfiles | nvim/lua/nobe4/mappings.lua | 1 | 4362 | local options = { noremap = true, silent = false }
local map = vim.keymap.set
-- Space is the Leader key
map("", "<Space>" , "<Nop>", options)
vim.g.mapleader = " "
vim.g.maplocalleader = " "
map("n", "zf", "zM100zozz", options) -- Fold to current level
-- Move vertically
map("n", "j", "gj", options)
map("n", "k", "... | mit |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/loot/groups/junk.lua | 1 | 1945 | --Automatically generated by SWGEmu Spawn Tool v0.12 loot editor.
junk = {
description = "",
minimumLevel = 0,
maximumLevel = 0,
lootItems = {
{itemTemplate = "broken_binoculars_s1", weight = 300000},
{itemTemplate = "broken_binoculars_s2", weight = 300000},
{itemTemplate = "broken_decryptor", weight = 30000... | agpl-3.0 |
LeMagnesium/minetest-minetestforfun-server | mods/homedecor_modpack/homedecor/foyer.lua | 12 | 1879 | local S = homedecor.gettext
homedecor.register("coatrack_wallmount", {
tiles = { homedecor.plain_wood },
inventory_image = "homedecor_coatrack_wallmount_inv.png",
description = "Coatrack (wallmounted)",
groups = {snappy=3},
sounds = default.node_sound_wood_defaults(),
node_box = {
type = "fixed",
fixed = {
... | unlicense |
sbouchex/domoticz | dzVents/runtime/integration-tests/stage1.lua | 6 | 44267 | local log
local dz
local err = function(msg)
log(msg, dz.LOG_ERROR)
end
local tstMsg = function(msg, res)
print('Stage: 1, ' .. msg .. ': ' .. tostring(res and 'OK' or 'FAILED'))
end
local expectEql = function (attr, test, marker)
if (attr ~= test) then
local msg = tostring(attr) .. '~=' .. tostring(test)
if ... | gpl-3.0 |
sbouchex/domoticz | dzVents/runtime/dzVents.lua | 6 | 2455 | local TESTMODE = false
globalvariables['testmode'] = false
-- globalvariables['dzVents_log_level'] = 4 --debug
if (_G.TESTMODE) then
TESTMODE = false
globalvariables['testmode'] = false
end
local scriptPath = globalvariables['script_path'] -- should be ${szUserDataFolder}/scripts/dzVents/
local runtimePath = global... | gpl-3.0 |
NYRDS/pixel-dungeon-remix | RemixedDungeon/src/main/assets/scripts/spells/HideInGrass.lua | 1 | 1147 | ---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by mike.
--- DateTime: 1/26/21 10:02 PM
---
local RPD = require "scripts/lib/commonClasses"
local spell = require "scripts/lib/spell"
return spell.init{
desc = function ()
return {
image = 2,
imageFile ... | gpl-3.0 |
arvindr21/esp8266-devkit | Espressif/examples/nodemcu-firmware/lua_modules/bmp085/bmp085.lua | 69 | 5037 | --------------------------------------------------------------------------------
-- BMP085 I2C module for NODEMCU
-- NODEMCU TEAM
-- LICENCE: http://opensource.org/licenses/MIT
-- Christee <Christee@nodemcu.com>
--------------------------------------------------------------------------------
local moduleName = ... ... | gpl-3.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/endor/beguiling_donkuwah_scout.lua | 2 | 1037 | beguiling_donkuwah_scout = Creature:new {
objectName = "@mob/creature_names:beguiling_donkuwah_scout",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "donkuwah_tribe",
faction = "donkuwah_tribe",
level = 18,
chanceHit = 0.32,
damageMin = 180,
damageMax = 190,
baseXp = 1426,
baseHAM = 4100,
baseHAMmax = 500... | agpl-3.0 |
braydondavis/Nerd-Gaming-Public | resources/[no_ng_tag]/realdriveby/exports_client.lua | 2 | 2410 | local validDrivebyWeapons = { [22]=true,[23]=true,[24]=true,[25]=true,
[26]=true,[27]=true,[28]=true,[29]=true,[32]=true,[30]=true,[31]=true,
[32]=true,[33]=true,[38]=true }
function setDriverDrivebyAbility ( ... )
local newTable = {...}
for key,weaponID in ipairs(newTable) do
if not validDrivebyWeapons[weaponID... | mit |
excessive/obtuse-tanuki | libs/quickie/group.lua | 15 | 4523 | --[[
Copyright (c) 2012 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, distribu... | mit |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/dungeon/corellian_corvette/rebel/novatrooper_commander.lua | 2 | 1525 | novatrooper_commander = Creature:new {
objectName = "@mob/creature_names:stormtrooper_novatrooper_commander",
randomNameType = NAME_STORMTROOPER_TAG,
socialGroup = "imperial",
faction = "imperial",
level = 182,
chanceHit = 13,
damageMin = 1045,
damageMax = 1800,
baseXp = 17274,
baseHAM = 126000,
baseHAMmax =... | agpl-3.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/dathomir/grovo.lua | 2 | 1116 | grovo = Creature:new {
objectName = "@monster_name:grovo",
socialGroup = "nightsister",
faction = "nightsister",
level = 75,
chanceHit = 0.7,
damageMin = 520,
damageMax = 750,
baseXp = 7207,
baseHAM = 12000,
baseHAMmax = 15000,
armor = 1,
resists = {25,160,25,200,200,200,25,25,-1},
meatType = "meat_carnivo... | agpl-3.0 |
TheLazar42/Reign-of-Darkness | builtin/misc.lua | 1 | 3146 | -- Minetest: builtin/misc.lua
--
-- Misc. API functions
--
minetest.timers_to_add = {}
minetest.timers = {}
minetest.register_globalstep(function(dtime)
for _, timer in ipairs(minetest.timers_to_add) do
table.insert(minetest.timers, timer)
end
minetest.timers_to_add = {}
for index, timer in ipairs(minetest.time... | lgpl-2.1 |
alinofel/zooz11 | plugins/hello.lua | 2 | 2461 | -- Made By @MAXDEVD
-- Made By @Omar_Real
do
local function run(msg,matches)
if matches[1] == "chat_add_user" then
local text = 'نورت😍💋مح'..'\n'..'\n'
..'المعلومات 📋 الخاصة بك 🔷'..'\n'
..'📌 اسمك : '..msg.action.user.print_name..'\n'
..'📌 معرفك : @'..(msg.action.user.username or "لا... | gpl-2.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/conversations.lua | 1 | 7274 | includeFile("conversation.lua")
-- ** THEMEPARKS **
-- Tutorial
includeFile("conversations/themepark/tutorial/imperial_officer_1_conv.lua")
includeFile("conversations/themepark/tutorial/imperial_officer_2_conv.lua")
includeFile("conversations/themepark/tutorial/imperial_officer_3_conv.lua")
includeFile("conversations... | agpl-3.0 |
fegimanam/tele | 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 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/planetwarp.lua | 4 | 2123 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | agpl-3.0 |
Blizzard/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 |
kidaa/Algorithm-Implementations | Hamming_Weight/Lua/Yonaba/numberlua.lua | 115 | 13399 | --[[
LUA MODULE
bit.numberlua - Bitwise operations implemented in pure Lua as numbers,
with Lua 5.2 'bit32' and (LuaJIT) LuaBitOp 'bit' compatibility interfaces.
SYNOPSIS
local bit = require 'bit.numberlua'
print(bit.band(0xff00ff00, 0x00ff00ff)) --> 0xffffffff
-- Interface providing strong Lua 5.2 '... | mit |
braydondavis/Nerd-Gaming-Public | resources/[no_ng_tag]/admin/server/admin_serverjoiner.lua | 7 | 3211 | --
--
-- admin_serverjoiner.lua
--
-- Delays triggerClientEvent until the client is ready.
-- Based on _triggequeue.lua from amx.
-- Should be high up in meta.xml.
--
---------------------------------------------------------------------------
--
-- Variables
--
--------------------------------------------------------... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.