repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
shingenko/darkstar | scripts/globals/items/sazanbaligi.lua | 18 | 1260 | -----------------------------------------
-- ID: 5459
-- Item: Sazanbaligi
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 4
-- Mind -6
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------... | gpl-3.0 |
Illarion-eV/Illarion-Content | item/doors.lua | 1 | 1960 | --[[
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/tachi_fudo.lua | 30 | 1566 | -----------------------------------
-- Tachi: Fudo
-- Great Katana weapon skill
-- Skill Level: N/A
-- Deals double damage. Damage varies with TP. Masamune: Aftermath.
-- Available only when equipped with Masamune (85), Masamune (90), Masamune (95), Hiradennotachi +1 or Hiradennotachi +2.
-- Aligned with Light Go... | gpl-3.0 |
openwayne/chaos_theory | mods/farming/corn.lua | 1 | 3074 |
--[[
Original textures from GeMinecraft
http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/wip-mods/1440575-1-2-5-generation-minecraft-beta-1-2-farming-and
]]
local S = farming.intllib
-- corn
minetest.register_craftitem("farming:corn", {
description = S("Corn"),
inventory_image = "farming_c... | lgpl-2.1 |
shingenko/darkstar | scripts/zones/QuBia_Arena/mobs/Trion.lua | 25 | 1162 | -----------------------------------
-- Area: qubia arena
-- NPC: Trion
-- the heir to the light sando 9-2
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/zones/QuBia_Arena/TextIDs");
function onMobInitialize(mob)
mob:addMod(MOD_REGAIN, 30)... | gpl-3.0 |
ld-test/busted.ryanplusplus | busted/languages/nl.lua | 15 | 1285 | local s = require('say')
s:set_namespace('nl')
-- 'Pending: test.lua @ 12 \n description
s:set('output.pending', 'Hangend')
s:set('output.failure', 'Mislukt')
s:set('output.success', 'Succes')
s:set('output.pending_plural', 'hangenden')
s:set('output.failure_plural', 'mislukkingen')
s:set('output.success_plural', 's... | mit |
wagonrepairer/Zero-K | LuaUI/Widgets/chili/Controls/button.lua | 17 | 1147 | --//=============================================================================
Button = Control:Inherit{
classname= "button",
caption = 'button',
defaultWidth = 70,
defaultHeight = 20,
}
local this = Button
local inherited = this.inherited
--//============================================================... | gpl-2.0 |
BSpike/MOOSE | Moose Development/Moose/Functional/Designate.lua | 1 | 50423 | --- **Functional** -- Management of target **Designation**. Lase, smoke and illuminate targets.
--
-- --
--
-- ===
--
-- DESIGNATE is orchestrating the designation of potential targets executed by a Recce group,
-- and communicates these to a dedicated attacking grou... | gpl-3.0 |
Kefta/GSWeapons | gs_weapons_css/lua/code_gs/weapons_css/weapons/weapon_ump45.lua | 1 | 1455 | SWEP.Base = "weapon_csbase_smg"
SWEP.Spawnable = true
SWEP.ViewModel = "models/weapons/v_smg_ump45.mdl"
SWEP.CModel = "models/weapons/cstrike/c_smg_ump45.mdl"
SWEP.WorldModel = "models/weapons/w_smg_ump45.mdl"
SWEP.Sounds = {
shoot = "Weapon_UMP45.Single"
}
SWEP.Primary.Ammo = "45acp"
SWEP.Primary.ClipSize = 25
SW... | mit |
shingenko/darkstar | scripts/globals/effects/addendum_black.lua | 74 | 1952 | -----------------------------------
--
--
--
-----------------------------------
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:recalculateAbilitiesTable();
local bonus = effect:getPower();
local helix = effect... | gpl-3.0 |
wagonrepairer/Zero-K | lups/ParticleClasses/NanoLasersNoShader.lua | 14 | 8740 | -- $Id: NanoLasersNoShader.lua 3171 2008-11-06 09:06:29Z det $
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
local NanoLasersNoShader = {... | gpl-2.0 |
fzimmermann89/texlive.js | texlive/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/force/jedi/initialpositioning/CircularInitialPositioning.lua | 1 | 1944 | -- Copyright 2014 by Ida Bruhns
--
-- This file may be distributed and/or modified
--
-- 1. under the LaTeX Project Public License and/or
-- 2. under the GNU Public License
--
-- See the file doc/generic/pgf/licenses/LICENSE for more information
--- This class implements an initial position algorithm for graph drawing... | gpl-2.0 |
shingenko/darkstar | scripts/globals/items/scream_fungus.lua | 35 | 1193 | -----------------------------------------
-- ID: 4447
-- Item: scream_fungus
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Strength -4
-- Mind 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCh... | gpl-3.0 |
shingenko/darkstar | scripts/globals/items/plate_of_shrimp_sushi.lua | 35 | 1552 | -----------------------------------------
-- ID: 5691
-- Item: plate_of_shrimp_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Vitality 1
-- Defense 5
-- Accuracy % 11
-- Store TP 2
-- Triple Attack 1
-----------------------------------------
require("scripts/globals/sta... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Ampiro-Mapiro.lua | 38 | 1053 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Ampiro-Mapiro
-- Type: Standard NPC
-- @zone: 94
-- @pos 131.380 -6.75 174.169
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = n... | gpl-3.0 |
kveratis/GameCode4 | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/penlight/lua/pl/strict.lua | 1 | 1602 | --- checks uses of undeclared global variables.
-- All global variables must be 'declared' through a regular assignment
-- (even assigning nil will do) in a main chunk before being used
-- anywhere or assigned to inside a function.
-- @class module
-- @name pl.strict
require 'debug'
local getinfo, error, rawse... | lgpl-3.0 |
TheAncientGoat/GodheadLips | data/godhead/scripts/client/views/book.lua | 1 | 3231 | Views.Book = Class(Widgets.Frame)
Views.Book.class_name = "Views.Book"
--- Initializes the book UI.
-- @param self Book view class.
-- @return Book view.
Views.Book.new = function(clss)
local self = Widgets.Frame.new(clss, {cols = 2, rows = 4, style = {
width = 800, height = 600, margins = {65,65,40,40}, spacings =... | gpl-3.0 |
Illarion-eV/Illarion-Content | handler/warptopos.lua | 1 | 1130 | --[[
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 |
Clavus/Conclavus | engine/lib/loveframes/objects/internal/treenodebutton.lua | 14 | 3255 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- get the current require path
local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.treenodebutt... | mit |
Illarion-eV/Illarion-Content | base/glyphs.lua | 1 | 12502 | --[[
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 |
Illarion-eV/Illarion-Content | item/seeds.lua | 2 | 6083 | --[[
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 |
Krisis2254/zUI | zUI/Mouse.lua | 1 | 1089 | local Vec2 = require("zUI/Vec2")
local Mouse = {}
Mouse.__index = Mouse
setmetatable(Mouse, { __call = function(_,...) return Mouse.new(...) end })
function Mouse.new(continuous)
return setmetatable( { pos = Vec2(0, 0), b = -1, c = continuous or false, clicked = false }, Mouse)
end
--Functions
function... | mit |
ioiasff/aer | plugins/meme.lua | 637 | 5791 | local helpers = require "OAuth.helpers"
local _file_memes = './data/memes.lua'
local _cache = {}
local function post_petition(url, arguments)
local response_body = {}
local request_constructor = {
url = url,
method = "POST",
sink = ltn12.sink.table(response_body),
headers = {},
red... | gpl-2.0 |
ashkanpj/uzzfire | plugins/search_youtube.lua | 674 | 1270 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
shingenko/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/Laimeve_RK.lua | 30 | 3067 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: Laimeve, R.K.
-- Border Conquest Guards
-- @pos 226.493 -12.231 260.194 114
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/c... | gpl-3.0 |
QuetzalQatl/RustPluginManual | SnapshotAllPlugins/metabolismcontrol.lua | 1 | 5462 | PLUGIN.Title = "Metabolism Control"
PLUGIN.Description = "Allows control of player metabolism stats and rates."
PLUGIN.Author = "Wulfspider"
PLUGIN.Version = V(1, 1, 1)
PLUGIN.ResourceId = 680
PLUGIN.HasConfig = true
local lastCalories = 1000
local lastHydration = 1000
local lastHealth = 1
function PLUGIN:Init()
... | gpl-2.0 |
openwayne/chaos_theory | mods/mobf_core/mobf/fighting.lua | 2 | 46359 | -------------------------------------------------------------------------------
-- Mob Framework Mod by Sapier
--
-- You may copy, use, modify or do nearly anything except removing this
-- copyright notice.
-- And of course you are NOT allow to pretend you have written it.
--
--! @file fighting.lua
--! @brief component... | lgpl-2.1 |
shingenko/darkstar | scripts/zones/Cloister_of_Storms/Zone.lua | 32 | 1660 | -----------------------------------
--
-- Zone: Cloister_of_Storms (202)
--
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Storms/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Cloister_of_Storms/TextIDs");
---... | gpl-3.0 |
fzimmermann89/texlive.js | texlive/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/control/ComponentDistance.lua | 1 | 4285 | -- Copyright 2012 by Till Tantau
--
-- This file may be distributed an/or modified
--
-- 1. under the LaTeX Project Public License and/or
-- 2. under the GNU Public License
--
-- See the file doc/generic/pgf/licenses/LICENSE for more information
-- @release $Header$
local declare = require "pgf.gd.interface.In... | gpl-2.0 |
AleksCore/Mr.Green-MTA-Resources | resources/[web]/performancebrowser/targetManager.lua | 5 | 2578 | --
-- targetmanager.lua
--
---------------------------------------------------------------------------
--
-- Target manager
--
--
--
---------------------------------------------------------------------------
targetList = {}
addEvent('onNotifyTargetEnabled', true)
addEventHandler('onNotifyTargetEnabled', resourceRoo... | mit |
MinecraftPackageManager/ccapi | src/ccapi.lua | 1 | 4640 | --[[
This file is part of CCAPI.
Copyright (C) 2014 MCPM Team and Contributors
CCAPI 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 3 of the License, or
(at your op... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Port_Bastok/npcs/Powhatan.lua | 36 | 3269 | -----------------------------------
-- Area: Port Bastok
-- NPC: Powhatan
-- Starts & Ends Quest: Welcome to Bastok, Guest of Hauteur
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require... | gpl-3.0 |
dmccuskey/dmc-files | examples/dmc-files-readconfig/dmc_corona/lib/dmc_lua/json.lua | 49 | 2030 | --====================================================================--
-- dmc_lua/json.lua
--
-- consistent method which which to load json on various systems
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Cop... | mit |
wagonrepairer/Zero-K | LuaUI/Widgets/chili_new/handlers/debughandler.lua | 8 | 12947 | --//=============================================================================
--// Chili DebugHandler
--//=============================================================================
--// todo:
--// * use the custom errorhandler for any widget->chili interaction,
--// atm if a widget calls mybutton:SetCaption()... | gpl-2.0 |
openwayne/chaos_theory | mods/technic/technic/machines/register/cables.lua | 1 | 7533 |
local S = technic.getter
local cable_tier = {}
function technic.is_tier_cable(name, tier)
return cable_tier[name] == tier
end
function technic.get_cable_tier(name)
return cable_tier[name]
end
local function check_connections(pos)
-- Build a table of all machines
local machines = {}
for tier,list in pairs(tech... | lgpl-2.1 |
ioiasff/aer | plugins/boobs.lua | 731 | 1601 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
fingon/hnet-core | thirdparty/sha1.lua | 1 | 110180 | --
-- SHA-1 secure hash computation, and HMAC-SHA1 signature computation,
-- in pure Lua (tested on Lua 5.1)
--
-- Latest version always at: http://regex.info/blog/lua/sha1
--
-- Copyright 2009 Jeffrey Friedl
-- jfriedl@yahoo.com
-- http://regex.info/blog/
--
--
-- Version 1 [May 28, 2009]
--
--
-- Lua is a pathetic,... | gpl-2.0 |
shingenko/darkstar | scripts/zones/RuLude_Gardens/npcs/Maat.lua | 17 | 9450 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Maat
-- Starts and Finishes Quest: Limit Break Quest 1-5
-- Involved in Quests: Beat Around the Bushin
-- @zone 243
-- @pos 8 3 118
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
package.loa... | gpl-3.0 |
medoo313m/bmo-bot2 | plugins/invite.lua | 1 | 1334 | do
local function callbackres(extra, success, result)
--vardump(result)
local user = 'user#id'..result.peer_id
local chat = 'chat#id'..extra.chatid
local channel = 'channel#id'..extra.chatid
if is_banned(result.id, extra.chatid) then
send_large_msg(chat, 'User is banned.')
send_large_msg(c... | gpl-2.0 |
hmybmny/luammd.org | utils/index_util.lua | 1 | 1401 | local header = require "includes.header"
local index = require "includes.index"
local footer = require "includes.footer"
local path_util = require "utils.path_util"
local post_util = require "utils.post_util"
local markdown_util = require "utils.markdown_util"
local exports = {}
local function create_index_html(posts... | mit |
shingenko/darkstar | scripts/globals/items/shiranui.lua | 15 | 1256 | -----------------------------------------
-- ID: 17774
-- Item: Shiranui
-- Additional Effect: Light Damage (night time only)
-----------------------------------------
require("scripts/globals/status");
-----------------------------------
-- onAdditionalEffect Action
-----------------------------------
funct... | gpl-3.0 |
fzimmermann89/texlive.js | texlive/texmf-dist/tex/luatex/luaotfload/fontloader-font-otl.lua | 2 | 32862 | if not modules then modules = { } end modules ['font-otl'] = {
version = 1.001,
comment = "companion to font-ini.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files",
}
-- After some experime... | gpl-2.0 |
wagonrepairer/Zero-K | effects/ataalaser.lua | 8 | 4970 | return {
["ataalaser"] = {
groundsmoke = {
class = [[CSimpleParticleSystem]],
count = 1,
ground = 0,
unit = 1,
properties = {
airdrag = 0.8,
colormap = [[0.2 0 0.25 1 0.4 0 0.7 1 0 0 0 0]],
dir... | gpl-2.0 |
hfjgjfg/mehdi5 | plugins/add_bot.lua | 189 | 1492 | --[[
Bot can join into a group by replying a message contain an invite link or by
typing !add [invite link].
URL.parse cannot parsing complicated message. So, this plugin only works for
single [invite link] in a post.
[invite link] may be preceeded but must not followed by another characters.
--]]
do
local function... | gpl-2.0 |
ahmedjabbar1/TeamTop | plugins/arlockm.lua | 5 | 2522 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ كتم الوسائط ▀▄ ▄▀
... | agpl-3.0 |
shingenko/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Vanguard_Eye.lua | 12 | 3533 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Vanguard_Eye
-- Map Position: http://images.wikia.com/ffxi/images/c/cc/Xar.jpg
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/dynamis");
-----------------------------------
-- onMobInitia... | gpl-3.0 |
obsy/luci | libs/luci-lib-nixio/axTLS/www/lua/download.lua | 180 | 1550 | #!/usr/local/bin/lua
require"luasocket"
function receive (connection)
connection:settimeout(0)
local s, status = connection:receive (2^10)
if status == "timeout" then
coroutine.yield (connection)
end
return s, status
end
function download (host, file, outfile)
--local f = assert (io.open (outfile, "w"))
loc... | apache-2.0 |
lixiantai/barrier_breaker | feeds/luci/libs/nixio/axTLS/www/lua/download.lua | 180 | 1550 | #!/usr/local/bin/lua
require"luasocket"
function receive (connection)
connection:settimeout(0)
local s, status = connection:receive (2^10)
if status == "timeout" then
coroutine.yield (connection)
end
return s, status
end
function download (host, file, outfile)
--local f = assert (io.open (outfile, "w"))
loc... | gpl-2.0 |
Illarion-eV/Illarion-Content | item/magicgems.lua | 1 | 2753 | --[[
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 |
openwayne/chaos_theory | mods/xban2/gui.lua | 3 | 3755 |
local FORMNAME = "xban2:main"
local MAXLISTSIZE = 100
local strfind, format = string.find, string.format
local ESC = minetest.formspec_escape
local function make_list(filter)
filter = filter or ""
local list, n, dropped = { }, 0, false
for k in pairs(minetest.auth_table) do
if strfind(k, filter, 1, true) then
... | lgpl-2.1 |
shingenko/darkstar | scripts/zones/Temenos/mobs/Cryptonberry_Skulker.lua | 16 | 1141 | -----------------------------------
-- Area: Temenos N T
-- NPC: Cryptonberry_Skulker
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------------... | gpl-3.0 |
AleksCore/Mr.Green-MTA-Resources | resources/[editor]/msgbox/script.lua | 3 | 5455 | --[[-----------DOCUMENTATION---------------
SYNTAX:
guibutton,guibutton,guibutton = guiShowMessageBox ( string message, string boxType, string title [, string button1, string button2, stringbutton3] )
REQUIRED ARGUMENTS
* message - The message you want in the message box
* boxType - Either "warning","question","error"... | mit |
Suprcheese/Satellite-Uplink-Station | stdlib/event/time.lua | 8 | 3085 | --- Time Event module
-- @module Event.Time
require 'stdlib/event/event'
require 'stdlib/time'
Event.Time = {}
Event.Time._last_change = {}
--All times are offset by 0.5
--This is because both EvoGUI and MoWeather already apply that offset.
--Following the precedent to remain consistent.
--Actually, this little snip... | mit |
shingenko/darkstar | scripts/globals/spells/bluemagic/zephyr_mantle.lua | 18 | 1329 | -----------------------------------------
-- Spell: Zephyr Mantle
-- Creates shadow images that each absorb a single attack directed at you
-- Spell cost: 31 MP
-- Monster Type: Dragons
-- Spell Type: Magical (Wind)
-- Blue Magic Points: 2
-- Stat Bonus: AGI+2
-- Level: 65
-- Casting Time: 7 seconds
-- Recast... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Bastok_Mines/npcs/Deidogg.lua | 19 | 4762 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Deidogg
-- Starts and Finishes Quest: The Talekeeper's Truth, The Talekeeper's Gift (start)
-- @pos -13 7 29 234
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
TheAncientGoat/GodheadLips | data/godhead/scripts/common/sectors.lua | 1 | 5373 | Sectors = Class()
--- Initializes the serializer.
-- @param clss Serialize class.
-- @param args Arguments.<ul>
-- <li>database: Database.</li>
-- <li>save_objects: False to disable saving of objects.</li>
-- <li>save_terrain: False to disable saving of terrain.</li>
-- <li>unload_time: Number of seconds it ta... | gpl-3.0 |
xcyan/nips16_PTN | utils/data_test.lua | 1 | 2556 | -- code adapted from https://github.com/soumith/dcgan.torch.git
local Threads = require 'threads'
Threads.serialization('threads.sharedserialize')
local data = {}
local result = {}
local unpack = unpack and unpack or table.unpack
function data.new(n, dataset_name, opt_)
opt_ = opt_ or {}
local self = {}
for k,... | mit |
AleksCore/Mr.Green-MTA-Resources | resources/[gameplay]/gcshop/items/trials/gctrials_c.lua | 3 | 9251 | -- Credit to http://community.multitheftauto.com/index.php?p=resources&s=details&id=430
local minus = false
local plus = false
local bikes = { ['NRG-500']=true, ['PCJ-600']=true, ['FCR-900']=true, ['BF-400']=true, ['Sanchez']=true }
-------------
-- Loading --
-------------
function loadGCTrials( bool, settings )
... | mit |
shingenko/darkstar | scripts/globals/regimeinfo.lua | 12 | 97619 | -------------------------------------------------
--
-- Regime Info Database
--
-- Stores details on the number of monsters to kill
-- as well as the suggested level range.
-- n1,n2,n3,n4 = Number of monsters needed
-- sl = Start Level range
-- s2 = End Level range
--
-- Example:
-- n1=6, n2=0, n3=0, n4=0, s... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Shajaf.lua | 34 | 1031 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Shajaf
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
-----------... | gpl-3.0 |
ArcherSys/ArcherSys | Lua/examples/luasql/mysql.lua | 6 | 1078 | ---------------------------------------------------------------------
-- MySQL specific tests and configurations.
-- $Id: mysql.lua,v 1.4 2006/01/25 20:28:30 tomas Exp $
---------------------------------------------------------------------
QUERYING_STRING_TYPE_NAME = "binary(65535)"
table.insert (CUR_METHODS, "numrow... | mit |
openwayne/chaos_theory | mods/asphaltstairs/init.lua | 1 | 11018 | --[[
StreetsMod: Asphalt stairs
]]
if not rawget(_G, "register_stair_slab_panel_micro")
or type(register_stair_slab_panel_micro) ~= "function" then return end
-- Asphalt solid line
-- Stair
minetest.register_node(":streets:asphalt_solid_line_stair",{
description = streets.S("Asphalt stair"),
tiles = {"stre... | lgpl-2.1 |
shingenko/darkstar | scripts/globals/spells/bluemagic/amplification.lua | 17 | 1987 | -----------------------------------------
-- Spell: Amplification
-- Enhances magic attack and magic defense
-- Spell cost: 48 MP
-- Monster Type: Amorphs
-- Spell Type: Magical (Water)
-- Blue Magic Points: 3
-- Stat Bonus: HP-5, MP+5
-- Level: 70
-- Casting Time: 7 seconds
-- Recast Time: 120 seconds
-- Du... | gpl-3.0 |
AleksCore/Mr.Green-MTA-Resources | resources/[gameplay]/gcshop/maps/maps_client.lua | 2 | 13702 | PRICE = 1000
lastWinnerPrice = 350
local main_window
local tab_panel
local tab = {}
local aGamemodeMapTable = {}
function createNextmapWindow(tabPanel)
tab = {}
tab.mainBuyPanel = guiCreateTab('Maps-Center', tabPanel)
tab_panel = guiCreateTabPanel ( 0.01, 0.05, 0.98, 0.95, true, tab.mainBuyPanel )
ta... | mit |
wagonrepairer/Zero-K | LuaRules/Gadgets/unit_icongenerator.lua | 9 | 34719 | -- $Id: unit_icongenerator.lua 3909 2009-02-05 22:49:55Z jk $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: unit_icongenerator.lua
-- brief:
-- author: jK
--
-- Copyright (C) 2007.
... | gpl-2.0 |
Illarion-eV/Illarion-Content | item/id_313_glassmeltoven.lua | 4 | 1704 | --[[
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 |
Illarion-eV/Illarion-Content | monster/race_26_transparent_spider/base.lua | 4 | 1196 | --[[
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/Misareaux_Coast/npcs/_0p0.lua | 25 | 2664 | -----------------------------------
-- Area: Misareaux Coast
-- NPC: Dilapidated Gate
-- @pos 260 9 -435 25
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Misare... | gpl-3.0 |
obsy/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/interface.lua | 68 | 1060 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.sys")
m = Map("luci_statistics",
translate("Interface Plugin Configuration"),
translate(
"The interface plugin collects traffic statistics on " ..
"selected interfaces."
... | apache-2.0 |
kveratis/GameCode4 | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/penlight/tests/test-pylib.lua | 1 | 1601 | -- test-pylib.lua
local list = require 'pl.list'
require 'pl.stringx'.import()
local text = require ('pl.text')
local Template = text.Template
local List = list.List
l = List{10,20,30,40,50}
s = List{1,2,3,4,5}
-- test using: lua pylist.lua
local lst = List:new()
lst:append(10)
lst:extend{20,30,40,50}
a... | lgpl-3.0 |
shingenko/darkstar | scripts/globals/mobskills/Fanatic_Dance.lua | 45 | 1037 | ---------------------------------------------------
-- Fanatic Dance
-- Family: Orc
-- Description: Charms all targets in an area of effect.
-- Type: Enfeebling
-- Utsusemi/Blink absorb: N/A
-- Range: AoE around user
-- Notes: Dynamis NM Orcs only
---------------------------------------------------
require("scri... | gpl-3.0 |
openwayne/chaos_theory | mods/boost_cart/detector.lua | 3 | 1958 | local mesecons_rules = mesecon.rules.flat
function boost_cart:turnoff_detector_rail(pos)
local node = minetest.get_node(pos)
if minetest.get_item_group(node.name, "detector_rail") == 1 then
if node.name == "boost_cart:detectorrail_on" then --has not been dug
minetest.swap_node(pos, {name = "boost_cart:detectorr... | lgpl-2.1 |
shingenko/darkstar | scripts/globals/items/zebra_eel.lua | 18 | 1391 | -----------------------------------------
-- ID: 4288
-- Item: Zebra Eel
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-- Evasion 5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------... | gpl-3.0 |
AleksCore/Mr.Green-MTA-Resources | resources/[race]/race_toptimes/util_tt_server.lua | 4 | 4103 | --
-- util_tt_server.lua
--
g_Root = getRootElement()
g_ResRoot = getResourceRootElement(getThisResource())
function clientCall(player, fnName, ...)
triggerClientEvent(onlyJoined(player), 'onClientCall_tt', player, fnName, ...)
end
function onlyJoined(player)
return player
end
g_AllowedRPCFunctions = {}
functio... | mit |
openwayne/chaos_theory | mods/castle_gates/gate_slots.lua | 1 | 4625 | -- internationalization boilerplate
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
-- copied from castle_masonry in case that mod is not loaded
local get_material_properties = function(material)
local composition_def
local burn_time
if material.composition_m... | lgpl-2.1 |
shingenko/darkstar | scripts/zones/Rabao/npcs/Shupah_Mujuuk.lua | 17 | 3540 | -----------------------------------
-- Area: Rabao
-- NPC: Shupah Mujuuk
-- Title Change NPC
-- @pos 12 8 20 247
-----------------------------------
require("scripts/globals/titles");
local title2 = { THE_IMMORTAL_FISHER_LU_SHANG , INDOMITABLE_FISHER , KUFTAL_TOURIST , ACQUIRER_OF_ANCIENT_ARCANUM , DESERT_HU... | gpl-3.0 |
shingenko/darkstar | scripts/globals/items/chunk_of_smelling_salts.lua | 18 | 1202 | -----------------------------------------
-- ID: 5320
-- Item: Chunk of Smelling Salts
-- Item Effect: Recover Pets from Sleep
-- Duration: 180 Secs Medicated
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------------------------... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Caedarva_Mire/npcs/HomePoint#1.lua | 17 | 1181 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: HomePoint#1
-- @pos
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Caedarva_Mire/TextIDs");
require("scripts/globals/homepoint");
-------... | gpl-3.0 |
shingenko/darkstar | scripts/globals/items/m&p_dumpling.lua | 36 | 1210 | -----------------------------------------
-- ID: 5641
-- Item: M&P Dumpling
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Intelligence 5
-- Agility -5
-- MP 30
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIte... | gpl-3.0 |
ArcherSys/ArcherSys | Lua/lua/oil/corba/services/event/ConsumerAdmin.lua | 7 | 1584 | local oil = require "oil"
local oo = require "oil.oo"
local assert = require "oil.assert"
local UnorderedArraySet = require "loop.collection.UnorderedArraySet"
local ProxyPushSupplier = require "oil.corba.services.event.ProxyPushSupplier"
module("oil.corba.services.event.Consume... | mit |
shingenko/darkstar | scripts/globals/weaponskills/shell_crusher.lua | 18 | 1620 | -----------------------------------
-- Shell Crusher
-- Staff weapon skill
-- Skill Level: 175
-- Lowers target's defense. Duration of effect varies with TP.
-- If unresisted, lowers target defense by 25%.
-- Will stack with Sneak Attack.
-- Aligned with the Breeze Gorget.
-- Aligned with the Breeze Belt.
-- E... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Lower_Jeuno/npcs/Caruvinda.lua | 37 | 4526 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Caruvinda
-- Armor Storage NPC
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
package.loaded["scripts/globals/armorstorage"] = nil;
-----------------------------------
require("scripts/globals/sett... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Beadeaux/npcs/_43b.lua | 17 | 1739 | -----------------------------------
-- Area: Beadeaux
-- NPC: Jail Door
-- Involved in Quests: The Rescue
-- @pos 56 0.1 -23 147
-----------------------------------
package.loaded["scripts/zones/Beadeaux/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scrip... | gpl-3.0 |
wagonrepairer/Zero-K | effects/nota_otaplas.lua | 50 | 48727 | -- miniotaplas_fireball11
-- otaplas_fireball3
-- otaplas_fireball16
-- otaplas_fireball14
-- ota_plas
-- miniotaplas_fireball17
-- otaplas_fireball18
-- otaplas_fireball1
-- otaplas_fireball11
-- miniotaplas_fireball13
-- otaplas_fireball10
-- miniotaplas_fireball16
-- otaplas_fireball13
-- miniotaplas_fireball2
-- ot... | gpl-2.0 |
shingenko/darkstar | scripts/zones/Al_Zahbi/npcs/Gidappa.lua | 53 | 2317 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Gidappa
-- Type: Clothcraft Normal/Adv. Image Support
-- @pos 70.228 -7 -54.089 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("s... | gpl-3.0 |
hacker44-h44/hacker44-bot | bot/bot.lua | 1 | 7107 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '0.14.6'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
r... | gpl-2.0 |
shingenko/darkstar | scripts/globals/spells/bluemagic/hydro_shot.lua | 27 | 1796 | -----------------------------------------
-- Spell: Hydro Shot
-- Additional effect: Enmity Down. Chance of effect varies with TP
-- Spell cost: 55 MP
-- Monster Type: Beastmen
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 3
-- Stat Bonus: MND+2
-- Level: 63
-- Casting Time: 0.5 seconds
-- Recast Time... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Quicksand_Caves/TextIDs.lua | 9 | 1486 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6384; -- Obtained: <item>
GIL_OBTAINED = 6385; -- Obtained <number> gil
KEYITEM_OBTAINED = 6387; -- Obtain... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Heavens_Tower/npcs/_6q2.lua | 17 | 3449 | -----------------------------------
-- Area: Heaven's Tower
-- NPC: Vestal Chamber (chamber of the Star Sibyl)
-- @pos 0.1 -49 37 242
-----------------------------------
package.loaded["scripts/zones/Heavens_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require... | gpl-3.0 |
mmusial/prosody-modules | mod_limit_auth/mod_limit_auth.lua | 31 | 1377 | -- mod_limit_auth
local st = require"util.stanza";
local new_throttle = require "util.throttle".create;
local period = math.max(module:get_option_number(module.name.."_period", 30), 0);
local max = math.max(module:get_option_number(module.name.."_max", 5), 1);
local tarpit_delay = module:get_option_number(module.nam... | mit |
openwayne/chaos_theory | mods/caverealms/falling_ice.lua | 1 | 5761 | -- CaveRealms: falling icicles
-- borrowed from base MineTest game's falling.lua
--
-- Falling ice
--
minetest.register_entity("caverealms:falling_ice", {
initial_properties = {
physical = true,
collide_with_objects = false,
collisionbox = {-0.5,-0.5,-0.5, 0.5,0.5,0.5},
visual = "wielditem",
textures = {},... | lgpl-2.1 |
shingenko/darkstar | scripts/zones/Windurst_Waters/npcs/Machitata.lua | 36 | 1704 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Machitata
-- Involved in Quest: Hat in Hand
-- Working 100%
-- @zone = 238
-- @pos = 163 0 -22
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
requir... | gpl-3.0 |
hfjgjfg/mehdi5 | plugins/webshot.lua | 919 | 1473 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
shingenko/darkstar | scripts/zones/Xarcabard/npcs/qm4.lua | 17 | 1634 | -----------------------------------
-- Area: Xarcabard
-- NPC: qm4 (???)
-- Involved in Quests: Atop the Highest Mountains
-- @pos -21 -25 -490 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/setting... | gpl-3.0 |
fzimmermann89/texlive.js | texlive/texmf-dist/tex/luatex/luaotfload/fontloader-font-osd.lua | 2 | 107959 | if not modules then modules = { } end modules ['font-osd'] = { -- script devanagari
version = 1.001,
comment = "companion to font-ini.mkiv",
author = "Kai Eigner, TAT Zetwerk / Hans Hagen, PRAGMA ADE",
copyright = "TAT Zetwerk / PRAGMA ADE / ConTeXt Development Team",
license = "see context... | gpl-2.0 |
aTastyCookie/telegram-bot | plugins/time.lua | 771 | 2865 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
shingenko/darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/_5cc.lua | 34 | 1074 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: _5cc (Gate of Ice)
-- @pos -228 0 99 192
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Inner_Horutoto_Ruins/TextIDs");... | gpl-3.0 |
mmusial/prosody-modules | mod_storage_gdbm/mod_storage_gdbm.lua | 15 | 4272 | -- mod_storage_gdbm
-- Copyright (C) 2014-2015 Kim Alvefur
--
-- This file is MIT/X11 licensed.
--
-- Depends on lgdbm:
-- http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/#lgdbm
--
-- luacheck: globals open purge
local gdbm = require"gdbm";
local path = require"util.paths";
local lfs = require"lfs";
local st = requ... | mit |
openwayne/chaos_theory | mods/nssm/mobs/daddy_long_legs.lua | 1 | 1123 | mobs:register_mob("nssm:daddy_long_legs", {
type = "monster",
hp_max = 22,
hp_min = 16,
collisionbox = {-0.4, 0.00, -0.4, 0.4, 0.6, 0.4},
visual = "mesh",
mesh = "daddy_long_legs.x",
textures = {{"daddy_long_legs.png"}},
visual_size = {x=8, y=8},
makes_footstep_sound = true,
view_range = 12,
walk_velocity = ... | lgpl-2.1 |
Clavus/Conclavus | engine/classes/entity/wall.lua | 2 | 1764 | ------------------------
-- Wall class.
-- A static wall in your environment.
--
-- Derived from @{Entity}.
-- @cl Wall
--- @type Wall
local Wall = class("Wall", Entity)
Wall:include(PhysicsBody)
function Wall:initialize( world )
Entity.initialize(self)
PhysicsBody.initialize(self, world, "static" )
end
function ... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.