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 |
|---|---|---|---|---|---|
openwayne/chaos_theory | mods/homedecor/gastronomy.lua | 2 | 6654 |
local S = homedecor_i18n.gettext
local cutlery_cbox = {
type = "fixed",
fixed = {
{ -5/16, -8/16, -6/16, 5/16, -7/16, 2/16 },
{ -2/16, -8/16, 2/16, 2/16, -4/16, 6/16 }
}
}
homedecor.register("cutlery_set", {
drawtype = "mesh",
mesh = "homedecor_cutlery_set.obj",
tiles = { "homedecor_cutlery_set.png" },
i... | lgpl-2.1 |
obsy/luci | applications/luci-app-freifunk-diagnostics/luasrc/controller/freifunk/diag.lua | 62 | 1809 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2013 Manuel Munz <freifunk@somakoma.de>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.freifunk.diag", package.seeall)
function index()
local uci = require("luci.model... | apache-2.0 |
Pd2VoidTeam/VoidUI | lua/hud/HudAssaultCorner.lua | 1 | 61203 | if VoidUI.options.enable_assault then
if RequiredScript == "lib/managers/hud/hudassaultcorner" then
local init = HUDAssaultCorner.init
function HUDAssaultCorner:init(hud, full_hud, tweak_hud)
init(self, hud, full_hud, tweak_hud)
hud.panel:child("assault_panel"):set_alpha(0)
hud.panel:child("hostages_panel... | gpl-3.0 |
shingenko/darkstar | scripts/globals/weaponskills/split_shot.lua | 30 | 1554 | -----------------------------------
-- Split Shot
-- Marksmanship weapon skill
-- Skill Level: 40
-- Ignores enemy's defense. Amount ignored varies with TP.
-- The amount of defense ignored is 0% @ 100TP, 35% @ 200TP and 50% @ 300TP.
-- Aligned with the Aqua Gorget & Light Gorget.
-- Aligned with the Aqua Belt &... | gpl-3.0 |
openwayne/chaos_theory | mods/farming/grapes.lua | 2 | 4862 |
local S = farming.intllib
-- grapes
minetest.register_craftitem("farming:grapes", {
description = S("Grapes"),
inventory_image = "farming_grapes.png",
on_use = minetest.item_eat(2),
on_place = function(itemstack, placer, pointed_thing)
if minetest.is_protected(pointed_thing.under, placer:get_player_name()) th... | lgpl-2.1 |
hoelzro/queqiao | plugin/queqiao/functions.lua | 1 | 2828 | -- Copyright (c) 2011 Rob Hoelz
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy of
-- this software and associated documentation files (the "Software"), to deal in the
-- Software without restriction, including without limitation the rights to use, copy,
-- modify, merge, publish, dis... | mit |
medoo313m/bmo-bot2 | plugins/antismail.lua | 1 | 4392 | -- By Mohamed_devt { @Omar_Real }
-- how to use inside telegram --
-- if you want to see fuck use this command /fuck lock
-- if you want to disable the protection use this command /fuck unlock
-- if you want to check the protection use this command /link ?
-- a function that i make to cut the command and the / from ... | gpl-2.0 |
shingenko/darkstar | scripts/zones/The_Garden_of_RuHmet/bcnms/when_angels_fall.lua | 17 | 2249 | -----------------------------------
-- Area: The_Garden_of_RuHmet
-- Name: when_angels_fall
-----------------------------------
package.loaded["scripts/zones/The_Garden_of_RuHmet/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/keyitems");
requir... | gpl-3.0 |
obsy/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk/voicemail.lua | 68 | 1475 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local ast = require "luci.asterisk"
cbimap = Map("asterisk", "Voicemail - Mailboxes")
voicemail = cbimap:section(TypedSection, "voicemail", "Voicemail Boxes")
voicemail.addremove = true
voicemail.anonymous = t... | apache-2.0 |
PhilMo6/Lua_pi_pan | Mail.lua | 1 | 3084 |
--[[
Mail module for sending and reciving email/sms messages.
Set up for gmail but could be configered for any imap supported email provider.
Iv found that reciving messages witht the current setup can be incredably slow and blocks
the rest of the program so im going to work on fixing that.
Note:when reciving a ... | mit |
shingenko/darkstar | scripts/zones/Northern_San_dOria/npcs/Charlaimagnat.lua | 17 | 2826 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Charlaimagnat
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/q... | gpl-3.0 |
jsat97/sysdig | userspace/sysdig/chisels/tracers_2_statsd.lua | 6 | 1986 | --[[
Copyright (C) 2013-2014 Draios inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without e... | gpl-2.0 |
obsy/luci | applications/luci-app-firewall/luasrc/model/cbi/firewall/forwards.lua | 66 | 3741 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2010-2012 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local ds = require "luci.dispatcher"
local ft = require "luci.tools.firewall"
m = Map("firewall", translate("Firewall - Port Forwards"),
translate("Port... | apache-2.0 |
shingenko/darkstar | scripts/globals/weaponskills/avalanche_axe.lua | 30 | 1353 | -----------------------------------
-- Avalanche Axe
-- Axe weapon skill
-- Skill level: 100
-- Delivers a single-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Soil Gorget & Thunder Gorget.
-- Aligned with the Soil Belt & Thunder Belt.
-- Element: None
-- Modifiers: ST... | gpl-3.0 |
Illarion-eV/Illarion-Content | content/_gods/gods_common.lua | 1 | 11168 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
kveratis/GameCode4 | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/lexers/c.lua | 1 | 6560 | --[[ Copyright (c) 2009 Peter "Corsix" Cawley
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, publi... | lgpl-3.0 |
mmusial/prosody-modules | mod_auth_ha1/mod_auth_ha1.lua | 32 | 3019 | -- Prosody IM
-- Copyright (C) 2014 Matthew Wild
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local usermanager = require "core.usermanager";
local new_sasl = require "util.sasl".new;
local nodeprep = require "util.encodings".stringprep.nodeprep... | mit |
shingenko/darkstar | scripts/globals/items/pepperoni_pizza.lua | 35 | 1643 | -----------------------------------------
-- ID: 5697
-- Item: pepperoni_pizza
-- Food Effect: 3hours, All Races
-----------------------------------------
-- Health Points 30
-- Strength 1
-- Accuracy 5% (caps @ 10) **wiki doesnt have information on %, so guessed it to be 5%
-- Attack 10% (caps @ 25)
---------... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Southern_San_dOria/npcs/Guilboire.lua | 36 | 1435 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Guilboire
-- General Info NPC
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/ques... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Bhaflau_Thickets/TextIDs.lua | 9 | 1158 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6384; -- Obtained: <item>.
GIL_OBTAINED = 6385; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6387; -- Obtained... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Nashmau/npcs/Nomad_Moogle.lua | 34 | 1104 | -----------------------------------
--
-- Nomad Moogle
--
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/settings");
-----------------------------------
-- on... | gpl-3.0 |
dotNetDR/docker_images | sysbench/sysbench-0.5/sysbench/tests/db/select_random_ranges.lua | 13 | 4098 | -- This test is designed for testing MariaDB's key_cache_segments for MyISAM,
-- and should work with other storage engines as well.
--
-- For details about key_cache_segments please refer to:
-- http://kb.askmonty.org/v/segmented-key-cache
--
function prepare()
local query
local i
set_vars()
db_connect()... | gpl-2.0 |
shingenko/darkstar | scripts/globals/weaponskills/shark_bite.lua | 30 | 1459 | -----------------------------------
-- Shark Bite
-- Dagger weapon skill
-- Skill level: 225
-- Delivers a twofold attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Will stack with Trick Attack.
-- Aligned with the Breeze Gorget & Thunder Gorget.
-- Aligned with the Breeze Belt & Thunder Belt.
... | gpl-3.0 |
shingenko/darkstar | scripts/globals/spells/bluemagic/jettatura.lua | 18 | 1520 | -----------------------------------------
-- Spell: Jettatura
-- Enemies within a fan-shaped area originating from the caster are frozen with fear
-- Spell cost: 37 MP
-- Monster Type: Birds
-- Spell Type: Magical (Dark)
-- Blue Magic Points: 4
-- Stat Bonus: MP+15
-- Level: 48
-- Casting Time: 0.5 seconds
--... | gpl-3.0 |
psychon/awesome | tests/examples/text/awful/keygrabber/alttab.lua | 2 | 1766 | --DOC_HEADER --DOC_NO_USAGE
local was_called = {} --DOC_HIDE
local awful = {keygrabber = require("awful.keygrabber"), --DOC_HIDE
client={focus={history={--DOC_HIDE
disable_tracking = function() was_called[1] = true end, --DOC_HIDE
enable_tracking = function() was_called[2] = true end, --DOC_HIDE
... | gpl-2.0 |
obsy/luci | applications/luci-app-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo_config_mini.lua | 61 | 1063 | -- Copyright 2009 Daniel Dickinson
-- Licensed to the public under the Apache License 2.0.
require("luci.controller.luci_diag.devinfo_common")
m = Map("luci_devinfo", translate("Phone Scanning Configuration"), translate("Configure scanning for supported SIP devices on specified networks. Decreasing \'Timeout\', \'Rep... | apache-2.0 |
fir3element/downgrade | data/npc/lib/npcsystem/npcsystem.lua | 49 | 5571 | -- Advanced NPC System by Jiddo
shop_amount = {}
shop_cost = {}
shop_rlname = {}
shop_itemid = {}
shop_container = {}
shop_npcuid = {}
shop_eventtype = {}
shop_subtype = {}
shop_destination = {}
shop_premium = {}
npcs_loaded_shop = {}
npcs_loaded_travel = {}
if NpcSystem == nil then
-- Loads the underlying classes ... | gpl-2.0 |
AleksCore/Mr.Green-MTA-Resources | resources/[race]/race_huntbot/hunt_s.lua | 4 | 9169 | --made by Wojak aka Wojak[PL] aka [2RT]Wojak[PL]
--if you want to edit something here dont upload yours version
local core = createObject(1155,0,0,100)
local coreveh = createVehicle(425,0,0,100)
attachElements(coreveh,core,0,1,0,0,0,0)
setVehicleDamageProof(coreveh,true)
local coreped = createPed(252,0,0,0)
warpP... | mit |
shingenko/darkstar | scripts/zones/Attohwa_Chasm/mobs/Tiamat.lua | 13 | 3075 | -----------------------------------
-- Area: Attohwa Chasm
-- NPC: Tiamat
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(m... | gpl-3.0 |
ArcherSys/ArcherSys | Jawa/luaj/test/lua/perf/nbody.lua | 6 | 3494 | -- The Great Computer Language Shootout
-- http://shootout.alioth.debian.org/
-- contributed by Isaac Gouy, tuned by Mike Pall
local sqrt = math.sqrt
local PI = 3.141592653589793
local SOLAR_MASS = 4 * PI * PI
local DAYS_PER_YEAR = 365.24
local Jupiter = {
x = 4.84143144246472090e+00
,y = -1.16032004402742839e+... | mit |
LuaDist2/lrexlib-posix | test/pcre_sets.lua | 5 | 6834 | -- See Copyright Notice in the file LICENSE
local luatest = require "luatest"
local N = luatest.NT
local function norm(a) return a==nil and N or a end
local function fill (n, m)
local t = {}
for i = n, m, -1 do table.insert (t, i) end
return t
end
local function set_named_subpatterns (lib, flg)
return {
... | mit |
shingenko/darkstar | scripts/zones/Norg/npcs/Jirokichi.lua | 19 | 1260 | -----------------------------------
-- Area: Norg
-- NPC: Jirokichi
-- Type: Tenshodo Merchant
-- @pos -1.463 0.000 18.846 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/s... | gpl-3.0 |
amirarta1/self | plugins/groupmanager.lua | 24 | 7646 | do
local function add_by_reply(extra, success, result)
result = backward_msg_format(result)
local msg = result
local chat = msg.to.id
local user = msg.from.id
if msg.to.type == 'chat' then
chat_add_user('chat#id'..chat, 'user#id'..user, ok_cb, false)
elseif msg.to.type == 'channel' then... | gpl-2.0 |
shingenko/darkstar | scripts/globals/items/loaf_of_hobgoblin_bread.lua | 35 | 1378 | -----------------------------------------
-- ID: 4328
-- Item: loaf_of_hobgoblin_bread
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 10
-- Vitality 3
-- Charisma -7
-- Health Regen While Healing 2
-----------------------------------------
require("scripts/globals/statu... | gpl-3.0 |
Illarion-eV/Illarion-Content | quest/zerarisa_71_galmair.lua | 4 | 4749 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
jyggen/lua-parser | tests/Fixtures/4a/10/3a/e9af7b667ee760a65ca03e29af870d8875327612dfe1dc22707f36e5d9.lua | 1 | 8337 |
LoremasterDB = {
["Achievements"] = {
{
{
"|cffffffffAshenvale Quests|cff778899 (0 / 70)", -- [1]
4925, -- [2]
false, -- [3]
}, -- [1]
{
"|cff778899Bloodmyst Isle Quests|cff778899 (60 / 60)", -- [1]
4926, -- [2]
true, -- [3]
}, -- [2]
{
"|cff778899Darkshore ... | mit |
openwayne/chaos_theory | mods/animals_modpack/animal_vombie/init.lua | 1 | 7766 | local version = "0.2.2"
minetest.log("action","MOD: loading animal_vombie ... ")
local vombie_groups = {
not_in_creative_inventory=1
}
local selectionbox_vombie = {-0.3, -1.0, -0.3, 0.3, 0.7, 0.3}
local modpath = minetest.get_modpath("animal_vombie")
dofile (modpath .. "/flame.lua")
function vombie_dro... | lgpl-2.1 |
openwayne/chaos_theory | mods/digilines/wire_std.lua | 1 | 3313 | -- naming scheme: wire:(xp)(zp)(xm)(zm)_on/off
-- The conditions in brackets define whether there is a digiline at that place or not
-- 1 = there is one; 0 = there is none
-- y always means y+
local box_center = {-1/16, -.5, -1/16, 1/16, -.5+1/16, 1/16}
local box_bump1 = { -2/16, -8/16, -2/16, 2/16, -13/32, 2/16 }
l... | lgpl-2.1 |
shingenko/darkstar | scripts/zones/South_Gustaberg/mobs/Rock_Lizard.lua | 23 | 1402 | -----------------------------------
-- Area: South Gustaberg
-- MOB: Rock Lizard
-- Note: Place holder Leaping Lizzy
-----------------------------------
require("scripts/zones/South_Gustaberg/MobIDs");
require("scripts/globals/fieldsofvalor");
-----------------------------------
-- onMobDeath
----... | gpl-3.0 |
jsat97/sysdig | userspace/sysdig/chisels/statsd.lua | 6 | 4234 | -- Statsd client
--
-- For statsd protocol info: https://github.com/b/statsd_spec
local math = require "math"
local os = require "os"
math.randomseed(os.time())
local function send_to_socket(self, string)
return sysdig.udp_send(string)
end
local function make_statsd_message(self, stat, delta, kind, sample_rate)
... | gpl-2.0 |
shingenko/darkstar | scripts/zones/Crawlers_Nest_[S]/npcs/Chodopopo.lua | 38 | 1047 | ----------------------------------
-- Area: Crawlers' Nest [S]
-- NPC: Chodopopo
-- Type: Item Deliverer
-- @zone: 171
-- @pos 100.528 -32.272 -58.739
--
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest_[S]/TextIDs"] = nil;
require("scripts/zones/Crawlers_Nest_[S]/TextIDs");
-----... | gpl-3.0 |
shingenko/darkstar | scripts/globals/items/serving_of_herb_quus.lua | 35 | 1398 | -----------------------------------------
-- ID: 4559
-- Item: serving_of_herb_quus
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Dexterity 1
-- Mind -1
-- Ranged ACC % 7
-- Ranged ACC Cap 10
-----------------------------------------
require("scripts/globals/status");
---... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Dangruf_Wadi/npcs/qm2.lua | 29 | 1455 | -----------------------------------
-- Area: Dangruf Wadi
-- NPC: ??? (QM2)
-- Type: Item Giver
-- @pos -120.041 2.621 415.989 191
-- Starts and Finishes: Breaking Stones, An Empty Vessel
-- Only spawns if the weather is SUNNY or CLEAR
-----------------------------------
package.loaded["scripts/zones/Dan... | gpl-3.0 |
aboskroop/smilev2 | libs/url.lua | 567 | 9183 | --[[
Copyright 2004-2007 Diego Nehab.
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,... | gpl-3.0 |
AleksCore/Mr.Green-MTA-Resources | resources/[gameplay]/sc-musicplayer/gui.lua | 4 | 44662 | --GUI
SearchResultTEXT = {}
Results_Add = {}
postGUI = false
addEventHandler("onClientResourceStart", resourceRoot,
function()
local screenW, screenH = guiGetScreenSize()
guiSetInputMode("no_binds_when_editing")
theAlpha = 255
MainWindow = guiCreateStaticImage((screenW - 624) / 2, (scre... | mit |
jyggen/lua-parser | tests/Fixtures/30/df/2b/1f1f4bcaf38673b82e74218b1fd3d5a60daef3bab741fe14aca473dab2.lua | 1 | 12176 |
Overachiever_CharVars = {
["Version"] = "0.83",
}
Overachiever_CharVars_Consumed = {
["PandaEats2"] = {
[74649] = 0,
[74651] = 0,
[74653] = 0,
[74655] = 0,
[86069] = 0,
[75037] = 0,
[74636] = 0,
[74642] = 0,
[74644] = 0,
[74646] = 0,
[74648] = 0,
[74650] = 0,
[74652] = 0,
[75026] = 0,
[... | mit |
kveratis/GameCode4 | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/socket/etc/tftp.lua | 1 | 4873 | -----------------------------------------------------------------------------
-- TFTP support for the Lua language
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: tftp.lua,v 1.16 2005/11/22 08:33:29 diego Exp $
-----------------------------------------------------------------------------
----------... | lgpl-3.0 |
shingenko/darkstar | scripts/globals/items/meatloaf_+1.lua | 39 | 1388 | -----------------------------------------
-- ID: 5690
-- Item: Meatloaf +1
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Needs verification
-- Strength 6
-- Agility 2
-- Intelligence -2
-- Attack 25% Cap 85
-----------------------------------------
require("scripts/globals/status"... | gpl-3.0 |
AleksCore/Mr.Green-MTA-Resources | resources/[gameplay]/achievements/gui_client.lua | 3 | 4824 | bGuiOpen = false
addEvent("sb_showAchievements")
function toggleAchievementGUI(key, keyState)
if keyState ~= "down" then if keyState then return end end
if bGuiOpen == false then
bGuiOpen = true
triggerServerEvent("onAchievementsBoxLoad", resourceRoot)
elseif isElement(window) then
destroyElement(window)
bGu... | mit |
matgoebl/nodemcu-wifimusicledclock | melody.lua | 1 | 2509 | local M={}
local tones={
BV= 246,
C = 261,
XC = 277,
D = 294,
XD = 311,
E = 329,
F = 349,
XF = 369,
G = 391,
XG = 415,
A = 440,
XA = 466,
B = 493,
c = 523,
xc = 554,
d = 587,
xd = 622,
e = 659,
f = 698,
xf = 740,
g = 784,
xg = 830,
a = 880,
xa = 932,
b = 987,
z = 0
}
local pr... | mit |
TheAncientGoat/GodheadLips | data/godhead/scripts/client/views/host.lua | 1 | 4048 | Views.Host = Class(Widgets.Background)
Views.Host.new = function(clss)
local self = Widgets.Background.new(clss, {cols = 1, rows = 2, behind = true, fullscreen = true, image = "mainmenu1"})
self.text = Widgets.Label()
-- Save slot settings.
self.combo_file = Widgets.ComboBox({
{"Save #1", function() self:set_slo... | gpl-3.0 |
ashkanpj/uzzfire | plugins/tweet.lua | 634 | 7120 | local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local twitter_url = "https://api.twitter.com/1.1/statuses/user_timeline.json"
local client = OAuth.new(consumer_key,
consumer_secret,
... | gpl-2.0 |
apaszke/nn | SpatialCrossMapLRN.lua | 9 | 4558 | local SpatialCrossMapLRN, parent = torch.class('nn.SpatialCrossMapLRN', 'nn.Module')
function SpatialCrossMapLRN:__init(size, alpha, beta, k)
parent.__init(self)
self.size = size
self.alpha = alpha or 0.0001
self.beta = beta or 0.75
self.k = k or 1
end
function SpatialCrossMapLRN:updateOutput(input)
asse... | bsd-3-clause |
jamesward/pubnub-api | lua-corona/example-uuid/pubnub.lua | 12 | 8186 | -- www.pubnub.com - PubNub realtime push service in the cloud.
-- https://github.com/pubnub/pubnub-api/tree/master/lua-corona - lua-Corona Push API
-- PubNub Real Time Push APIs and Notifications Framework
-- Copyright (c) 2010 Stephen Blum
-- http://www.pubnub.com/
-- -----------------------------------
-- PubNub 3.... | mit |
psychon/awesome | tests/test-maximize.lua | 4 | 7064 | --- Tests maximize and fullscreen
local runner = require("_runner")
local awful = require("awful")
local test_client = require("_client")
local lgi = require("lgi")
local gears = require("gears")
local function geo_to_str(g)
return "pos=" .. g.x .. "," .. g.y ..
";size=" .. g.width .. "x" .. g.height
end
... | gpl-2.0 |
shingenko/darkstar | scripts/zones/Bastok_Markets/npcs/Arawn.lua | 34 | 2642 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Arawn
-- Starts & Finishes Quest: Stamp Hunt
-- @pos -121.492 -4.000 -123.923 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
Illarion-eV/Illarion-Content | quest/ehrom_goldhammer_72_wilderness.lua | 1 | 4027 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
shingenko/darkstar | scripts/zones/Windurst_Waters/npcs/Angelica.lua | 36 | 5295 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Angelica
-- Starts and Finished Quest: A Pose By Any Other Name
-- Working 100%
-- @zone = 238
-- @pos = -70 -10 -6
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-------------------------... | gpl-3.0 |
MasterQ32/Scripts | Software_Engineering/PERT-Chart/translate.lua | 1 | 4613 |
local records = { }
-- Parse records
local f = io.open("raw-graph.csv", "r")
while true do
local line = f:read("*line")
if line == nil then
break
end
local raw = { }
for part in line:gmatch("%w+") do
table.insert(raw, part)
end
local record = {
id = raw[1],
optimistic = tonumber(raw[2]),
normal =... | mit |
shingenko/darkstar | scripts/globals/weaponskills/slug_shot.lua | 30 | 1533 | -----------------------------------
-- Slug Shot
-- Marksmanship weapon skill
-- Skill Level: 175
-- Delivers an inparams.accurate attack that deals quintuple damage. params.accuracy varies with TP.
-- Despite the lack of a STR weaponskill mod, STR is still the most potent stat for increasing this weaponskill's da... | gpl-3.0 |
xFleury/crawl-0.13.0-fairplay | source/dat/dlua/userbase.lua | 1 | 3209 | ---------------------------------------------------------------------------
-- userbase.lua:
-- Base Lua definitions that other Lua scripts rely on (auto-loaded).
---------------------------------------------------------------------------
-- Lua global data
chk_interrupt_macro = { }
chk_interrupt_activity = { }
c... | gpl-2.0 |
beasterio/FireRays_SDK | Tools/deploy/OpenCLSearch.lua | 10 | 4619 | if os.is("windows") then
local amdopenclpath = os.getenv("AMDAPPSDKROOT")
if( amdopenclpath ) then
amdopenclpath = string.gsub(amdopenclpath, "\\", "/");
local clIncludePath = string.format("%s/include",amdopenclpath);
local clLibPath = string.format("%s/lib/x86",... | mit |
TheAncientGoat/GodheadLips | data/godhead/scripts/common/regionspec.lua | 1 | 1037 | require "common/spec"
Regionspec = Class(Spec)
Regionspec.type = "region"
Regionspec.dict_id = {}
Regionspec.dict_cat = {}
Regionspec.dict_name = {}
--- Creates a new region specification.
-- @param clss Regionspec class.
-- @param args Arguments.<ul>
-- <li>links: Array of names of connected regions.</li>
-- <li... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Port_Windurst/npcs/Goltata.lua | 17 | 1425 | -----------------------------------
-- Area: Port Windurst
-- NPC: Goltata
-- Involved in Quests: Wonder Wands
-- Working 100%
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scr... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Mishhar.lua | 34 | 1032 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Mishhar
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
----------... | gpl-3.0 |
dr0n3/WHCCalendar | WHCCalendar.lua | 2 | 6664 | -----------------------------------------------------------------------------------------------
-- Client Lua Script for WHCCalendar
-- Copyright (c) NCsoft. All rights reserved
-----------------------------------------------------------------------------------------------
require "Window"
require "ICComm"
require "I... | mit |
wagonrepairer/Zero-K | effects/rocko.lua | 25 | 1900 | -- rockomuzzle
return {
["rockomuzzle"] = {
smoke = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties = {
airdrag = 0.8,
colormap ... | gpl-2.0 |
shingenko/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Khoi_Gamduhla.lua | 34 | 1038 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Khoi Gamduhla
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
----... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Kuftal_Tunnel/npcs/qm1.lua | 16 | 1116 | -----------------------------------
-- Area: Kuftal Tunnel
-- NPC: ??? (qm1)
-- Note: Used to spawn Phantom Worm
-- @pos 75.943 29.916 118.854 174
-----------------------------------
package.loaded["scripts/zones/Kuftal_Tunnel/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Kuftal... | gpl-3.0 |
Illarion-eV/Illarion-Content | monster/base/spells/damage.lua | 1 | 11302 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
shingenko/darkstar | scripts/globals/weaponskills/quietus.lua | 30 | 1643 | -----------------------------------
-- Quietus
-- Scythe weapon skill
-- Skill Level: N/A
-- Delivers a triple damage attack that ignores target's defense. Amount ignored varies with TP. Redemption: Aftermath.
-- Available only when equipped with Redemption (85)/(90)/(95)/(99) or Penitence +1/+2/+3/Umiliati.
-- A... | gpl-3.0 |
shingenko/darkstar | scripts/globals/spells/bluemagic/cursed_sphere.lua | 27 | 1516 | -----------------------------------------
-- Spell: Cursed Sphere
-- Deals water damage to enemies within area of effect
-- Spell cost: 36 MP
-- Monster Type: Vermin
-- Spell Type: Magical (Water)
-- Blue Magic Points: 2
-- Stat Bonus: MND+1
-- Level: 18
-- Casting Time: 3 seconds
-- Recast Time: 19.5 seconds... | gpl-3.0 |
shingenko/darkstar | scripts/zones/San_dOria-Jeuno_Airship/npcs/Nigel.lua | 19 | 2055 | -----------------------------------
-- Area: San d'Oria-Jeuno Airship
-- NPC: Nigel
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/San_dOria-Jeuno_Airship/TextIDs"] = nil;
require("scripts/zones/San_dOria-Jeuno_Airship/TextIDs");
-----------------------------------
-- onTrade... | gpl-3.0 |
fzimmermann89/texlive.js | texlive/texmf-dist/tex/luatex/lualibs/lualibs-trac-inf.lua | 2 | 9904 | if not modules then modules = { } end modules ['trac-inf'] = {
version = 1.001,
comment = "companion to trac-inf.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
-- As we want to protec... | gpl-2.0 |
shingenko/darkstar | scripts/zones/Palborough_Mines/npcs/Old_Toolbox.lua | 17 | 1410 | -----------------------------------
-- Area: Palborough Mines
-- NPC: Old Toolbox
-- Continues Quest: The Eleventh's Hour
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("script... | gpl-3.0 |
psychon/awesome | lib/awful/widget/launcher.lua | 6 | 1375 | ---------------------------------------------------------------------------
-- @author Julien Danjou <julien@danjou.info>
-- @copyright 2008-2009 Julien Danjou
-- @classmod awful.widget.launcher
---------------------------------------------------------------------------
local setmetatable = setmetatable
local gt... | gpl-2.0 |
shingenko/darkstar | scripts/zones/Moh_Gates/Zone.lua | 34 | 1230 | -----------------------------------
--
-- Zone: Moh Gates
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Moh_Gates/TextIDs"] = nil;
require("scripts/zones/Moh_Gates/TextIDs");
-----------------------------------
-- onInitialize
----------------... | gpl-3.0 |
FiveM-Scripts/fs_freemode | ext/carsteal.lua | 1 | 9942 | --[[
fs_freemode - game mode for FiveM.
Copyright (C) 2018 FiveM-Scripts
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License... | agpl-3.0 |
yogome/HeroesSaludables | scenes/game/infoscreen.lua | 1 | 28304 | local director = require( "libs.helpers.director" )
local colors = require( "libs.helpers.colors" )
local scenePath = ...
local buttonList = require("data.buttonlist")
local widget = require("widget")
local textbox = require("libs.helpers.textbox")
local settings = require("settings")
local music = require("libs.helper... | agpl-3.0 |
shingenko/darkstar | scripts/zones/East_Ronfaure/npcs/Croteillard.lua | 38 | 1029 | -----------------------------------
-- Area: East Ronfaure
-- NPC: Croteillard
-- Type: Gate Guard
-- @pos 87.426 -62.999 266.709 101
-----------------------------------
package.loaded["scripts/zones/East_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/East_Ronfaure/TextIDs");... | gpl-3.0 |
wahern/cqueues | regress/30-starttls-completion.lua | 5 | 1482 | #!/bin/sh
_=[[
. "${0%%/*}/regress.sh"
exec runlua "$0" "$@"
]]
--
-- Originally socket:starttls did not poll waiting for handshake completion,
-- but instead simply placed the socket into TLS handshake mode and
-- immediately returned. As part of a larger refactoring to improve the
-- consistency of timeouts across ... | mit |
azukiapp/lua-zmq | examples/subscriber.lua | 2 | 1407 | -- Copyright (c) 2010 Aleksey Yeschenko <aleksey@yeschenko.com>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, c... | mit |
imzyxwvu/objective-and-sync | deps/haml/parser.lua | 1 | 7131 | local ext = require "haml.ext"
local lpeg = require "lpeg"
local concat = table.concat
local error = error
local insert = table.insert
local ipairs = ipairs
local match = lpeg.match
local next = next
local pairs = pairs
local rawset = rawset
local remove = table.remove
local tostring = ... | mit |
kveratis/GameCode4 | Assets/Scripts/TeapotBrains.lua | 44 | 2897 | --========================================================================
-- TeapotBrains.lua : Base class for teapot brains
--
-- Part of the GameCode4 Application
--
-- GameCode4 is the sample application that encapsulates much of the source code
-- discussed in "Game Coding Complete - 4th Edition" by Mike McS... | lgpl-3.0 |
wagonrepairer/Zero-K | LuaRules/Gadgets/unit_bomber_dive.lua | 5 | 8230 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
veden/Rampant | libs/SquadDefense.lua | 1 | 5944 | -- Copyright (C) 2022 veden
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
-- This program is distributed... | gpl-3.0 |
shingenko/darkstar | scripts/globals/items/plate_of_ikra_gunkan.lua | 35 | 1730 | -----------------------------------------
-- ID: 5219
-- Item: plate_of_ikra_gunkan
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 30
-- Magic 10
-- Dexterity 3
-- Mind -2
-- Accuracy % 17
-- Accuracy Cap 28
-- Ranged ACC % 17
-- Ranged ACC Cap 28
---------------------... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Port_Bastok/npcs/Melloa.lua | 36 | 1613 | -----------------------------------
-- Area: Port Bastok
-- NPC: Melloa
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/zones/Port_Bastok/TextIDs");
... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Windurst_Walls/npcs/Esmeralda.lua | 38 | 1038 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Esmeralda
-- Type: Consul. Rep.
-- @zone: 239
-- @pos 128.629 -12.5 139.387
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-----------... | gpl-3.0 |
shadobaker/TeleBeyond | plugins/stats.lua | 7 | 3991 | 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-2.0 |
AleksCore/Mr.Green-MTA-Resources | resources/[maps]/map-RandomMarkers/utils/textlib.lua | 4 | 12263 | dxText = {}
dxText_mt = { __index = dxText }
local idAssign,idPrefix = 0,"c"
local g_screenX,g_screenY = guiGetScreenSize()
local visibleText = {}
------
local defaults = {
fX = 0.5,
fY = 0.5,
... | mit |
shingenko/darkstar | scripts/zones/Windurst_Waters/npcs/Honoi-Gomoi.lua | 17 | 4227 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Honoi-Gumoi
-- Involved In Quest: Crying Over Onions, Hat in Hand
-- @zone = 238
-- @pos = -195 -11 -120
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
... | gpl-3.0 |
fridolin2/morethings_modpack | morethings_nodes/resources_crafting.lua | 1 | 11299 |
---Crafting Resource Blocks
minetest.register_craft({
output = "default:glass",
recipe = {
{"morethings_items:ingot_glass", "morethings_items:ingot_glass", "morethings_items:ingot_glass"},
{"morethings_items:ingot_glass", "morethings_items:ingot_glass", "morethings_items:ingot_glass"},
{"morethings_items:ing... | gpl-3.0 |
ds84182/LuaVM | luavm/decompiler3/decompiler/block_identifier.lua | 1 | 4291 | --[[
Block identifier: Identifies what blocks are based on their structure.
Block types:
Alias: A block that only jumps to another block after itself.
Loop: A block that exits to a previous block or itself.
Simple: A block that falls through to the next block.
Conditional: A block that executes one block or the other... | mit |
shingenko/darkstar | scripts/globals/weaponskills/kings_justice.lua | 18 | 4651 | -----------------------------------
-- Kings Justice
-- Great Axe weapon skill
-- Skill Level: N/A
-- Delivers a threefold attack. Damage varies with TP. Conqueror: Aftermath effect varies with TP.
-- Available only after completing the Unlocking a Myth (Warrior) quest.
-- Aligned with the Breeze Gorget, Thunder ... | gpl-3.0 |
obsy/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/dhcp.lua | 6 | 8601 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local ipc = require "luci.ip"
m = Map("dhcp", translate("DHCP and DNS"),
translate("Dnsmasq is a combined <abbr title=\"Dynamic Host Configuration Protocol" ..
"\">DHCP</abbr>-Server and <abbr title=\"Domain... | apache-2.0 |
shingenko/darkstar | scripts/zones/Port_Bastok/TextIDs.lua | 8 | 5249 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 6383; -- You cannot obtain the item (item>. Try trading again after sorting your inventory.
... | gpl-3.0 |
wagonrepairer/Zero-K | units/amphaa.lua | 2 | 4921 | unitDef = {
unitname = [[amphaa]],
name = [[Angler]],
description = [[Amphibious Anti-Air Bot]],
acceleration = 0.18,
activateWhenBuilt = true,
brakeRate = 0.375,
buildCostEnergy = 180,
buildCostMetal = 180,
buildop... | gpl-2.0 |
wagonrepairer/Zero-K | LuaUI/Widgets/chili/Controls/scale.lua | 17 | 2504 |
Scale = Control:Inherit{
classname = "scale",
min = -50,
max = 50,
step = 10,
logBase = 1.5,
defaultWidth = 90,
defaultHeight = 12,
fontsize = 8,
scaleFunction = nil,--- function that can be used to rescale graph - takes 0-1 and must return 0-1
color = {0,0,0,1},
}
local this = Scale
-... | gpl-2.0 |
PhilMo6/Lua_pi_pan | ext/table.lua | 1 | 2795 |
function table.savetoString(t)
local function prepString(st)
st = string.gsub(st,'(\n)','\\n')
return st
end
local txt = "{"
local start = nil
for i,v in pairs(t) do
if start then txt = ([[%s,]]):format(txt) else start = true end
local t1 = type(i)
if t1 == "string" then
txt = ([[%s["%s"]=]]):format(... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.