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 |
|---|---|---|---|---|---|
Illarion-eV/Illarion-Content | npc/base/talk.lua | 1 | 6199 | --[[
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/id_3109_open_pell.lua | 1 | 25829 | --[[
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/luasec/samples/wantwrite/client.lua | 1 | 1026 | --
-- Public domain
--
require("socket")
require("ssl")
local params = {
mode = "client",
protocol = "sslv3",
key = "../certs/clientAkey.pem",
certificate = "../certs/clientA.pem",
cafile = "../certs/rootA.pem",
verify = {"peer", "fail_if_no_peer_cert"},
options = {"all", "no_sslv2"},... | lgpl-3.0 |
shingenko/darkstar | scripts/zones/Sealions_Den/npcs/Jovial_Rat.lua | 38 | 1034 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Jovial Rat
-- Type: Past Event Watcher
-- @zone: 32
-- @pos
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
---------------... | gpl-3.0 |
Illarion-eV/Illarion-Content | triggerfield/northernislands_air_661.lua | 4 | 1249 | --[[
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 |
fzimmermann89/texlive.js | texlive/texmf-dist/tex/luatex/luaotfload/fontloader-font-otc.lua | 2 | 31802 | if not modules then modules = { } end modules ['font-otc'] = {
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"
}
local insert, sortedkey... | gpl-2.0 |
ioiasff/aer | plugins/twitter_send.lua | 627 | 1555 | do
local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local client = OAuth.new(consumer_key, consumer_secret, {
RequestToken = "https://api.twitter.com/oauth/request_token",
AuthorizeUser = {"https://api.twitter.com/oauth/autho... | gpl-2.0 |
openwayne/chaos_theory | mods/bushes_classic/nodes.lua | 2 | 5984 | local S = biome_lib.intllib
plantlife_bushes = {}
-- TODO: add support for nodebreakers? those dig like mese picks
plantlife_bushes.after_dig_node = function(pos, oldnode, oldmetadata, digger)
if not (digger and pos and oldnode) then
return
end
-- find out which bush type we are dealing with
local bush_name ... | lgpl-2.1 |
jsat97/sysdig | userspace/sysdig/chisels/v_errors.lua | 1 | 2029 | --[[
Copyright (C) 2013-2015 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... | gpl-2.0 |
wagonrepairer/Zero-K | effects/gundam_xamelimpact.lua | 18 | 12632 | -- xamelimpact
-- smallxamelimpact
return {
["xamelimpact"] = {
dirta = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
properties = {
airdrag = 0.7,
alwaysvisible = true,
colormap = [[0... | gpl-2.0 |
nicholas-leonard/dpnn | TotalDropout.lua | 4 | 1217 | ------------------------------------------------------------------------
--[[ TotalDropout ]]--
-- Like vanilla Dropout, but on the entire inputs.
-- So either the input is entirely forwarded or entirely zeroed.
------------------------------------------------------------------------
local TotalDropout, parent = torch.... | bsd-3-clause |
mmusial/prosody-modules | mod_mam/mamprefsxml.lib.lua | 36 | 1467 | -- XEP-0313: Message Archive Management for Prosody
-- Copyright (C) 2011-2013 Kim Alvefur
--
-- This file is MIT/X11 licensed.
local st = require"util.stanza";
local xmlns_mam = "urn:xmpp:mam:0";
local global_default_policy = module:get_option("default_archive_policy", false);
local default_attrs = {
always = true... | mit |
shingenko/darkstar | scripts/globals/items/caedarva_frog.lua | 18 | 1400 | -----------------------------------------
-- ID: 5465
-- Item: Caedarva Frog
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Agility 2
-- Mind -4
-- Evasion 5
-----------------------------------------
require("scripts/globals/status");
------------------------------------... | gpl-3.0 |
jyggen/lua-parser | tests/Fixtures/da/4e/1f/c7a3496bc3af067919a4bd6de239a36fe44687f76dc46d6706958377ea.lua | 1 | 1540 |
AmrDb = {
["Talents"] = {
"0000000", -- [1]
},
["LastCharacterImportDate"] = "",
["SendSettings"] = {
["SendTo"] = "",
["SendGems"] = true,
["SendEnchants"] = true,
["SendEnchantMaterials"] = true,
["SendToType"] = "a friend",
},
["CharacterName"] = "Bütterbeard",
["Race"] = "Dwarf",
["ActiveSpec"]... | mit |
shingenko/darkstar | scripts/globals/items/plate_of_royal_sautee.lua | 35 | 1749 | -----------------------------------------
-- ID: 4295
-- Item: plate_of_royal_sautee
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Strength 5
-- Agility 1
-- Intelligence -2
-- Attack % 20
-- Attack Cap 80
-- Ranged ATT % 20
-- Ranged ATT Cap 80
-- Stun Resist 5
-----------... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Jugner_Forest/npcs/Alexius.lua | 17 | 1617 | -----------------------------------
-- Area: Jugner Forest
-- NPC: Alexius
-- Involved in Quest: A purchase of Arms & Sin Hunting
-- @pos 105 1 382 104
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
kveratis/GameCode4 | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/penlight/examples/test-symbols.lua | 8 | 1288 | require 'pl'
-- force us to look in the script's directory when requiring...
app.require_here()
require 'symbols'
local MT = getmetatable(_1)
add = MT.__add
mul = MT.__mul
pow = MT.__pow
function testeq (e1,e2)
if not equals(e1,e2) then
print ('Not equal',repr(e1),repr(e2))
end
end
... | lgpl-3.0 |
shingenko/darkstar | scripts/globals/mobskills/Prishe_Item_2.lua | 53 | 1486 | ---------------------------------------------
-- Prishe Item 2
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/zones/Empyreal_Paradox/TextIDs");
--------------------------------------------... | gpl-3.0 |
apaszke/nn | Linear.lua | 3 | 3693 | local Linear, parent = torch.class('nn.Linear', 'nn.Module')
function Linear:__init(inputSize, outputSize, bias)
parent.__init(self)
local bias = ((bias == nil) and true) or bias
self.weight = torch.Tensor(outputSize, inputSize)
self.gradWeight = torch.Tensor(outputSize, inputSize)
if bias then
se... | bsd-3-clause |
shingenko/darkstar | scripts/zones/Port_Bastok/npcs/Ronan.lua | 17 | 2570 | -----------------------------------
-- Area: Port Bastok
-- NPC: Ronan
-- Start & Finishes Quest: Out of One's Shell
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/... | gpl-3.0 |
wagonrepairer/Zero-K | LuaUI/Widgets/api_shared_functions.lua | 2 | 6905 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Shared Functions",
desc = "Declares global functions or constants",
author = "Licho",
... | gpl-2.0 |
shingenko/darkstar | scripts/zones/LaLoff_Amphitheater/mobs/Ark_Angel_EV.lua | 27 | 1471 | -----------------------------------
-- Area: LaLoff Amphitheater
-- NPC: Ark Angel EV
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
function onMobInitialize(mob)
mob:addMod(MOD_REGAIN, 50);
end;
--------------------------... | gpl-3.0 |
jsat97/sysdig | userspace/sysdig/chisels/spectrogram.lua | 6 | 4133 | --[[
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 |
shingenko/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5f7.lua | 34 | 1110 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Leviathan's Gate
-- @pos 249 -34 100 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextI... | gpl-3.0 |
HajiMokh/hmhaji | plugins/short.lua | 2 | 1658 | local function run(msg, matches)
local yon = http.request('http://api.yon.ir/?url='..URL.escape(matches[1]))
local jdat = json:decode(yon)
local bitly = https.request('https://api-ssl.bitly.com/v3/shorten?access_token=f2d0b4eabb524aaaf22fbc51ca620ae0fa16753d&longUrl='..URL.escape(matches[1]))
local data = json:... | agpl-3.0 |
wagonrepairer/Zero-K | LuaRules/Gadgets/astar.lua | 25 | 7226 | ---------------------------------------------------------------------
--[[
author: quantum
GPL v2 or later
http://www.policyalmanac.org/games/aStarTutorial.htm
http://en.wikipedia.org/wiki/A*_search_algorithm
use: override IsBlocked, GetDistance, etc and run aStar.GetPath
-- example -----------------------------... | gpl-2.0 |
wagonrepairer/Zero-K | LuaRules/Gadgets/game_disable_take.lua | 7 | 1601 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
Illarion-eV/Illarion-Content | monster/race_58_dog/base.lua | 5 | 1050 | --[[
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/East_Sarutabaruta/Zone.lua | 17 | 5606 | -----------------------------------
--
-- Zone: East_Sarutabaruta (116)
--
-----------------------------------
package.loaded[ "scripts/zones/East_Sarutabaruta/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
re... | gpl-3.0 |
Illarion-eV/Illarion-Content | scheduled/glyph_automatics.lua | 1 | 3326 | --[[
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/LaLoff_Amphitheater/npcs/qm0_4.lua | 35 | 1154 | -----------------------------------
-- Area: LaLoff_Amphitheater
-- NPC: qm0 (warp player outside after they win fight)
-------------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
... | gpl-3.0 |
shingenko/darkstar | scripts/globals/weaponskills/upheaval.lua | 30 | 1538 | -----------------------------------
-- Upheaval
-- Great Axe weapon skill
-- Skill Level: 357
-- Delivers a four-hit attack. Damage varies with TP.
-- In order to obtain Upheaval, the quest Martial Mastery must be completed.
-- Aligned with Flame Gorget, Light Gorget & Shadow Gorget.
-- Aligned with Flame Belt, ... | gpl-3.0 |
fingon/hnet-core | mst_cache.lua | 1 | 4149 | #!/usr/bin/env lua
-- -*-lua-*-
--
-- $Id: mst_cache.lua $
--
-- Author: Markus Stenberg <markus stenberg@iki.fi>
--
-- Copyright (c) 2013 cisco Systems, Inc.
--
-- Created: Wed May 8 15:54:21 2013 mstenber
-- Last modified: Wed May 8 16:52:39 2013 mstenber
-- Edit time: 36 min
--
local mst = require 'mst'... | gpl-2.0 |
openwayne/chaos_theory | mods/glooptest/parts_module/init.lua | 1 | 5832 | glooptest.parts_module = {}
glooptest.debug("MESSAGE","Loading Parts Module Now!")
minetest.register_craftitem("glooptest:chainlink", {
description = "Chainlink",
inventory_image = "glooptest_chainlink.png"
})
minetest.register_craft({
output = "glooptest:chainlink 8",
recipe = {
{"", "default:steel_ingot", ""}... | lgpl-2.1 |
shingenko/darkstar | scripts/zones/Fort_Karugo-Narugo_[S]/npcs/Mortimer.lua | 35 | 1055 | ----------------------------------
-- Area: Fort Karugo Narugo [S]
-- NPC: Mortimer
-- Type: Item Deliverer
-- @zone: 96
-- @pos -24.08 -68.508 93.88
--
-----------------------------------
package.loaded["scripts/zones/Fort_Karugo-Narugo_[S]/TextIDs"] = nil;
require("scripts/zones/Fort_Karugo-Narugo_[S]/TextIDs")... | gpl-3.0 |
ld-test/dromozoa-commons | dromozoa/commons/murmur_hash3.lua | 1 | 2801 | -- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com>
--
-- This file is part of dromozoa-commons.
--
-- dromozoa-commons 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... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Valley_of_Sorrows/npcs/qm1.lua | 16 | 1925 | -----------------------------------
-- Area: Valley of Sorrows
-- NPC: qm1 (???)
-- Note: Used to spawn Adamantoise and Aspidochelone
-- @pos 0 0 -37 59
-----------------------------------
package.loaded["scripts/zones/Valley_of_Sorrows/TextIDs"] = nil;
-----------------------------------
require("scripts/zo... | gpl-3.0 |
shingenko/darkstar | scripts/globals/items/dish_of_spaghetti_boscaiola_+1.lua | 35 | 1724 | -----------------------------------------
-- ID: 5201
-- Item: dish_of_spaghetti_boscaiola_+1
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health % 18
-- Health Cap 125
-- Magic 40
-- Strength -5
-- Dexterity -2
-- Vitality 2
-- Mind 4
-- Magic Regen While Healing 1
-------... | gpl-3.0 |
wagonrepairer/Zero-K | LuaUI/Widgets/camera_recorder.lua | 17 | 8831 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "CameraRecorder",
desc = "v0.011 Record positions of the camera to a file and repath those posi... | gpl-2.0 |
ioiasff/aer | plugins/danbooru.lua | 616 | 1750 | do
local URL = "http://danbooru.donmai.us"
local URL_NEW = "/posts.json"
local URL_POP = "/explore/posts/popular.json"
local scale_day = "?scale=day"
local scale_week = "?scale=week"
local scale_month = "?scale=month"
local function get_post(url)
local b, c, h = http.request(url)
if c ~= 200 then return nil end
... | gpl-2.0 |
kveratis/GameCode4 | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/luacom/demo/wmi/test_wmi.lua | 1 | 1673 | -- debugging
require("luacom")
luacom.config.abort_on_API_error = true
luacom.config.abort_on_error = false
function GetNetworkInterface ()
print("GetNetworkInterface")
local item,BpsSent,BpsRec,BpsTot,bpsBandwidth
BpsSent,BpsRec,BpsTot,bpsBandwidth = 0,0,0,0
objNetworkRefresher:Refresh ()
Netw... | lgpl-3.0 |
sirinsidiator/ESO-AetheriusBadgeFilter | src/data/ArsNecandi.lua | 1 | 4199 | AetheriusBadgeFilter:RegisterGuild(AetheriusBadgeFilter.SERVER_EU, "Ars Necandi", {
{
name = "PvE-Gruppenspiel",
description = "Welche Rolle ihr innerhalb einer Gruppe erfüllen könnt. Um eine zu bekommen, bitte Gildenleitung kontaktieren.",
badges = {
{
name = "Ta... | artistic-2.0 |
wagonrepairer/Zero-K | LuaUI/Widgets/gui_replace_cloak_con_order.lua | 12 | 2136 |
function widget:GetInfo()
return {
name = "Replace Cloak Con Orders",
desc = "Prevents constructor accidental decloak in enemy territory by replacing Repair, Reclaim and Rez with Move. .\n\nNOTE:Use command menu or command hotkeys to override.",
author = "GoogleFrog",
date = "13 Au... | gpl-2.0 |
AleksCore/Mr.Green-MTA-Resources | resources/[race]/race/modes/shooter.lua | 1 | 26735 | Shooter = setmetatable({}, RaceMode)
Shooter.__index = Shooter
Shooter:register('Shooter')
local shooterMode = "shooter"
function getShooterMode()
return shooterMode
end
function Shooter:isApplicable()
return not self.checkpointsExist() --and self.getMapOption('respawn') == 'none'
end
Shooter.playerRanks = {}
fu... | mit |
profburke/ios-icons | oldstuff/tiger_blood/7gramrocks/matrix.lua | 4 | 2387 | local ios = require "ios-icons.tiger-blood"
-- did not really end up to the quality I'd hoped ;(
hrows = {
"-- 30251748 13786369 73696104 52356961 38031921",
"-- 76325578 65434141 33000112 58204857 16561275",
"-- 62062590 68525 ________________ 0792891 95158195",
"-- 47... | mit |
shingenko/darkstar | scripts/zones/RuAun_Gardens/npcs/HomePoint#5.lua | 17 | 1250 | -----------------------------------
-- Area: RuAun_Gardens
-- NPC: HomePoint#5
-- @pos 305 -42 -427 130
-----------------------------------
package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/RuAun_Gardens/TextIDs");
require("scripts/glob... | gpl-3.0 |
wagonrepairer/Zero-K | scripts/mahlazor.lua | 6 | 5101 | include "constants.lua"
local base = piece 'base'
local imma_chargin = piece 'imma_chargin'
local mah_lazer = piece 'mah_lazer'
local downbeam = piece 'downbeam'
local shoop_da_woop = piece 'shoop_da_woop'
local flashpoint = piece 'flashpoint'
local beam1 = piece 'beam1'
local on = false
local awake = false;
l... | gpl-2.0 |
openwayne/chaos_theory | mods/technic/technic/machines/switching_station.lua | 1 | 17368 | -- SWITCHING STATION
-- The switching station is the center of all power distribution on an electric network.
--
-- The station collects power from sources (PR), distributes it to sinks (RE),
-- and uses the excess/shortfall to charge and discharge batteries (BA).
--
-- For now, all supply and demand values are express... | lgpl-2.1 |
shingenko/darkstar | scripts/globals/spells/dokumori_ichi.lua | 18 | 1202 | -----------------------------------------
-- Spell: Dokumori: Ichi
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,targ... | gpl-3.0 |
BSpike/MOOSE | Moose Development/Moose/AI/AI_CAS.lua | 1 | 26057 | --- **AI** -- **Provide Close Air Support to friendly ground troops.**
--
-- 
--
-- ===
--
-- AI CAS classes makes AI Controllables execute a Close Air Support.
--
-- There are the following types of CAS classes defined:
--
-- * @{#AI_CAS_ZONE}: Perform a CAS in a ... | gpl-3.0 |
kveratis/GameCode4 | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/LuaMacro/tests/list.lua | 1 | 2017 | local M = require 'macro'
List = require 'pl.List'
local list_check
-- list <var-list> [ = <init-list> ]
-- acts as a 'macro factory', making locally-scoped macros for the variables,
-- and emitting code to initialize plain variables.
M.define ('list',function(get)
get() -- skip space
-- 'list' acts... | lgpl-3.0 |
shingenko/darkstar | scripts/zones/La_Theine_Plateau/npcs/Deaufrain.lua | 17 | 2313 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Deaufrain
-- Involved in Mission: The Rescue Drill
-- @pos -304 28 339 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/m... | gpl-3.0 |
fzimmermann89/texlive.js | texlive/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/doc/ogdf/energybased/multilevelmixer/CirclePlacer.lua | 1 | 1398 | -- Copyright 2013 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 key = require 'pgf.gd.doc'.key
loc... | gpl-2.0 |
HajiMokh/hmhaji | plugins/abjad.lua | 2 | 4009 | local numbers = {}
numbers['ا'] = 1
numbers['ب'] = 2
numbers['ج'] = 3
numbers['د'] = 4
numbers['ه'] = 5
numbers['و'] = 6
numbers['ز'] = 7
numbers['ح'] = 8
numbers['ط'] = 9
numbers['ی'] = 10
numbers['ک'] = 20
numbers['ل'] = 30
numbers['م'] = 40
numbers['ن'] = 50
numbers['س'] = 60
numbers['ع'] = 70
numbers['ف'] = 80
numb... | agpl-3.0 |
fengshao0907/SOHU-DBProxy | tests/suite/base/t/select_affected_rows.lua | 4 | 1321 | --[[ $%BEGINLICENSE%$
Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
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; version 2 of the
License.
This program is dis... | gpl-2.0 |
LuaDist2/lua-coat | src/Coat/Types.lua | 2 | 4589 | --
-- lua-Coat : <http://fperrad.github.io/lua-Coat/>
--
local setmetatable = setmetatable
local pairs = pairs
local _G = _G
local table = require 'table'
local Coat = require 'Coat'
local checktype = Coat.checktype
local does = Coat.does
local error = Coat.error
local isa = Coat.isa
_ENV = nil
local _M = {}
local ... | mit |
diz-vara/nn | WeightedMSECriterion.lua | 22 | 1259 | local WeightedMSECriterion, parent = torch.class('nn.WeightedMSECriterion','nn.MSECriterion')
function WeightedMSECriterion:__init(w)
parent.__init(self)
self.weight = w:clone()
end
function WeightedMSECriterion:updateOutput(input,target)
self.buffer = self.buffer or input.new()
self.buffer:resizeAs(input... | bsd-3-clause |
ArcherSys/ArcherSys | Lua/examples/luagl/nehe_01.lua | 1 | 1764 | require("iuplua")
require("iupluagl")
require("luagl")
require("luaglu")
iup.key_open()
cnv = iup.glcanvas{buffer="DOUBLE", rastersize = "640x480"}
function cnv:resize_cb(width, height)
iup.GLMakeCurrent(self)
gl.Viewport(0, 0, width, height)
gl.MatrixMode('PROJECTION') -- Select The Projection Matrix
gl.... | mit |
shingenko/darkstar | scripts/globals/spells/bluemagic/feather_storm.lua | 18 | 2042 | -----------------------------------------
-- Spell: Feather Storm
-- Additional effect: Poison. Chance of effect varies with TP
-- Spell cost: 12 MP
-- Monster Type: Beastmen
-- Spell Type: Physical (Piercing)
-- Blue Magic Points: 3
-- Stat Bonus: CHR+2, HP+5
-- Level: 12
-- Casting Time: 0.5 seconds
-- Reca... | gpl-3.0 |
bartvm/nn | SpatialFullConvolution.lua | 42 | 1589 | local SpatialFullConvolution, parent = torch.class('nn.SpatialFullConvolution','nn.Module')
function SpatialFullConvolution:__init(nInputPlane, nOutputPlane, kW, kH, dW, dH)
parent.__init(self)
dW = dW or 1
dH = dH or 1
self.nInputPlane = nInputPlane
self.nOutputPlane = nOutputPlane
self.kW = kW
... | bsd-3-clause |
shingenko/darkstar | scripts/globals/pets.lua | 37 | 36137 | -----------------------------------
--
-- PETS ID
--
-----------------------------------
-----------------------------------
-- PETTYPE
-----------------------------------
PETTYPE_AVATAR = 0;
PETTYPE_WYVERN = 1;
PETTYPE_JUGPET = 2;
PETTYPE_CHARMED_MOB = 3;
PETTYPE... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Bastok_Markets/npcs/Shamarhaan.lua | 38 | 1856 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Shamarhaan
-- Type: Quest Starter
-- Involved in quest: No Strings Attached
-- @zone: 235
-- @pos -285.382 -13.021 -84.743
--
-- Auto-Script: Requires Verification. Verified standard dialog - thrydwolf 12/8/2011
--------------------------------... | gpl-3.0 |
shingenko/darkstar | scripts/globals/items/serving_of_cilbir.lua | 35 | 1562 | -----------------------------------------
-- ID: 5642
-- Item: serving_of_cilbir
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- HP % 5
-- MP % 5
-- HP recovered while healing 3
-- MP recovered while healing 3
-----------------------------------------
require("scripts/globals/st... | gpl-3.0 |
wagonrepairer/Zero-K | LuaUI/Widgets/gui_chili_nuke_warning.lua | 2 | 4771 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Chili Nuke Warning",
desc = "Displays a warning to players whenever a nuke is launched.",
... | gpl-2.0 |
shingenko/darkstar | scripts/zones/Port_Bastok/npcs/Kagetora.lua | 17 | 1726 | -----------------------------------
-- Area: Port Bastok
-- NPC: Kagetora
-- Involved in Quest: Ayame and Kaede, 20 in Pirate Years
-- @zone 236
-- @pos -96 -2 29
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scrip... | gpl-3.0 |
srdgame/kylin | app/admin/controller/login.lua | 1 | 1026 |
return {
index = function() return {} end,
submit = function()
local password = nil
if req.method == 'GET' then
local query = req.query
password = query.password
else
password = req.post.password
end
if password and auth.login(password) then
print('login sucessfully!!!, password:', password)
... | gpl-2.0 |
shingenko/darkstar | scripts/zones/RuAun_Gardens/npcs/HomePoint#4.lua | 17 | 1249 | -----------------------------------
-- Area: RuAun_Gardens
-- NPC: HomePoint#4
-- @pos 500 -42 158 130
-----------------------------------
package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/RuAun_Gardens/TextIDs");
require("scripts/globa... | gpl-3.0 |
shingenko/darkstar | scripts/globals/items/bastore_sardine.lua | 18 | 1337 | -----------------------------------------
-- ID: 5792
-- Item: Bastore Sardine
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 1
-- Mind -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnI... | gpl-3.0 |
wagonrepairer/Zero-K | LuaUI/Widgets/chili/Controls/textbox.lua | 12 | 2553 | TextBox = Control:Inherit{
classname = "textbox",
padding = {0,0,0,0},
text = "line1\nline2",
autoHeight = true, --// sets height to text size, useful for embedding in scrollboxes
autoObeyLineHeight = true, --// (needs autoHeight) if true, autoHeight will obey the lineHeight (-> texts with the same li... | gpl-2.0 |
shingenko/darkstar | scripts/zones/The_Garden_of_RuHmet/mobs/Jailer_of_Faith.lua | 24 | 1296 | -----------------------------------
-- Area: The Garden of Ru'Hmet
-- NPC: Jailer_of_Faith
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
-- Give it two hour
mob:setMod(MOBMOD_MAIN_2HOUR, 1);
-- Change anima... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Ezura-Romazura.lua | 34 | 1541 | -----------------------------------
-- Area: Windurst Waters [S]
-- NPC: Ezura-Romazura
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Wi... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Zwinam.lua | 34 | 1031 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Zwinam
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
-----------... | gpl-3.0 |
wagonrepairer/Zero-K | effects/gundam_factory_explosion.lua | 25 | 3751 | -- factory_explosion
return {
["factory_explosion"] = {
groundflash = {
air = true,
alwaysvisible = true,
circlealpha = 0.6,
circlegrowth = 6,
flashalpha = 0.9,
flashsize = 256,
ground = true,
ttl ... | gpl-2.0 |
AleksCore/Mr.Green-MTA-Resources | resources/[gameplay]/achievements/unlocking_mix.lua | 2 | 8993 | local g_Players = {}
achievementListMix = {
-- { achText, achID (unique!!!!), reward, max }
{ s = "CTF: Capture two flags in one map", id = 1, reward = 50 },
{ s = "CTF: Capture three flags in one map", id = 12, reward = 100 },
{ s = "CTF: Capture the winning flag", id = 2, reward = 25 },
{... | mit |
TVRimava/Tally-Light-ESP8266 | tally-lua/web-daemon.lua | 1 | 1313 | srv=net.createServer(net.TCP);
srv:listen(80,function(conn)
conn:on("receive", function(client,request)
local buf = "";
local _, _, method, path, vars = string.find(request, "([A-Z]+) (.+)?(.+) HTTP");
if(method == nil)then
_, _, method, path = string.find(request, "([A-Z]+) (.+)... | mit |
shingenko/darkstar | scripts/zones/Misareaux_Coast/npcs/Logging_Point.lua | 29 | 1107 | -----------------------------------
-- Area: Misareaux Coast
-- NPC: Logging Point
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/logging");
require("scripts/zones/Misareaux_Coast/TextIDs");
... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Sea_Serpent_Grotto/npcs/Grounds_Tome.lua | 34 | 1151 | -----------------------------------
-- Area: Sea Serpent Grotto
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTr... | gpl-3.0 |
TheAncientGoat/GodheadLips | data/godhead/scripts/client/widgets/menu.lua | 1 | 1756 | require "system/widgets/frame"
Widgets.Menu = Class(Widget)
Widgets.Menu.new = function(clss, args)
local self = Widget.new(clss, {cols = 1, rows = 2, spacings = {0,0}})
self.title = Widgets.Title{text = args and args.text,
back = function() Gui.menus:back() end,
close = function() Client:set_mode("game") end,
... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Port_Bastok/npcs/Bagnobrok.lua | 36 | 1585 | -----------------------------------
-- Area: Port Bastok
-- NPC: Bagnobrok
-- Only sells when Bastok controls Movalpolos
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Port_Bastok/Tex... | gpl-3.0 |
ArcherSys/ArcherSys | Lua/examples/quickluatour.lua | 1 | 9545 | -- QuickLuaTour.lua
--
-- A quick tour of the Lua Scripting Language.
--
-- Created: May 21, 2008,
-- Updated: Sept 4th, 2008 Fix typos, minor changes, better formatting.
-- Author: AGR Wilson
-- Some more updates and fixes by Dirk Feytons.
--
-- To add later? - serialize table, self-executing code, closures, co-routin... | mit |
dr0n3/WHCCalendar | Lib/LibJSON/LibJSON-2.5.lua | 13 | 18391 | --[==[
David Kolf's JSON module for Lua 5.1/5.2
Version 2.5
For the documentation see the corresponding readme.txt or visit
<http://dkolf.de/src/dkjson-lua.fsl/>.
You can contact the author by sending an e-mail to 'david' at the
domain 'dkolf.de'.
Copyright (C) 2010-2013 David Heiko Kolf
Permission is hereby gr... | mit |
openwayne/chaos_theory | mods/homedecor/misc-nodes.lua | 1 | 17597 |
local S = homedecor_i18n.gettext
local function N_(x) return x end
homedecor.register("ceiling_paint", {
description = S("Textured Ceiling Paint"),
drawtype = 'signlike',
tiles = { 'homedecor_ceiling_paint.png' },
inventory_image = 'homedecor_ceiling_paint_roller.png',
wield_image = 'homedecor_ceiling_paint_rol... | lgpl-2.1 |
Illarion-eV/Illarion-Content | item/id_339_barrel.lua | 1 | 1749 | --[[
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/loop/lua/loop/multiple.lua | 1 | 4499 | --------------------------------------------------------------------------------
---------------------- ## ##### ##### ###### -----------------------
---------------------- ## ## ## ## ## ## ## -----------------------
---------------------- ## ## ## ## ## ###### -----------------... | lgpl-3.0 |
openwayne/chaos_theory | mods/mobf_core/mobf/init.lua | 1 | 11107 | -------------------------------------------------------------------------------
-- 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 allowed to pretend you have written it.
--
--! @file init.lua
--! @brief main module... | lgpl-2.1 |
Illarion-eV/Illarion-Content | lte/damagefield_icefield.lua | 4 | 2454 | --[[
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/Tavnazian_Safehold/npcs/Hieroglyphics.lua | 17 | 2356 | -----------------------------------
-- Area: Tavnazian_Safehold
-- NPC: Hieroglyphics
-- Notes: Dynamis Tavnazia Enter
-- @pos 3.674 -7.278 -27.856 26
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
imzyxwvu/objective-and-sync | src/Haml.lua | 1 | 4817 | --
-- This file binds github.com/norman/lua-haml to
-- Object.lua Lua class system.
-- You need a lua-haml installed in your Lua
-- package searching directories.
--
local ext = require "haml.ext"
package.preload["haml.renderer"] = function()
local _G = _G
local assert = assert
local concat ... | mit |
centreon/centreon-broker | simu/docker/lua/neb/instance_status.lua | 1 | 2208 | local _instance_status = {}
local function build(id)
local now = os.time()
if not _instance_status.start then
_instance_status.start = now
_instance_status.finish = now
end
if now > _instance_status.finish then
_instance_status.finish = now
end
local retval = {
category = 1,
element = ... | apache-2.0 |
AleksCore/Mr.Green-MTA-Resources | resources/[maps]/Puma-Markers/Puma-Markers.lua | 4 | 23818 | gMe = getLocalPlayer()
gRoot = getRootElement()
screenWidth, screenHeight = guiGetScreenSize()
-- setTimer(function() StartRes() end,100,1)
function StartRes()
oldHittedCollShape = nil
MarkerTypes = {"Teleport","TeleportD","SlowDown","SpeedUp","Stop","Fire","BlowUp","Jump","Flip","Reverse","Rotate","CarsFly","CarsSw... | mit |
openwayne/chaos_theory | mods/ropes/doc.lua | 1 | 4677 | ropes.doc = {}
if not minetest.get_modpath("doc") then
return
end
-- internationalization boilerplate
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
ropes.doc.ropesegment_longdesc = S("Rope segments are bundles of fibre twisted into robust cables.")
ropes.do... | lgpl-2.1 |
veden/Rampant | prototypes/utils/AttackFlame.lua | 1 | 5275 | -- 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 in the... | gpl-3.0 |
wagonrepairer/Zero-K | LuaRules/Configs/StartBoxes/Deserted Third v4.lua | 11 | 4722 | return {
[0] = {
boxes = {
{
{1758, 395},
{1748, 391},
{1737, 392},
{1727, 394},
{1716, 396},
{1688, 401},
{1637, 409},
{1614, 412},
{1590, 412},
{1554, 408},
{1527, 407},
{1499, 413},
{1454, 424},
{1415, 439},
{1350, 468},
{1321, 486},
{1305, 50... | gpl-2.0 |
shingenko/darkstar | scripts/globals/weaponskills/dragon_kick.lua | 30 | 1693 | -----------------------------------
-- Dragon Kick
-- Hand-to-Hand weapon skill
-- Skill Level: 225
-- Damage varies with TP.
-- Despite the name, Dragon Kick damage is not affected by Kick Attacks or equipment that enhances kick attacks such as Dune Boots. http://www.bluegartr.com/threads/121610-Rehauled-Weapon-S... | gpl-3.0 |
openwayne/chaos_theory | mods/digilines/lcd.lua | 1 | 5796 | --* parts are currently not possible because you cannot set the pitch of an entity from lua
-- Font: 04.jp.org
-- load characters map
local chars_file = io.open(minetest.get_modpath("digilines").."/characters", "r")
local charmap = {}
local max_chars = 12
if not chars_file then
print("[digilines] E: LCD: character m... | lgpl-2.1 |
shingenko/darkstar | scripts/zones/Southern_San_dOria/npcs/Leuveret.lua | 13 | 1539 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Leuveret
-- General Info NPC
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Souther... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/qm3.lua | 34 | 1033 | -----------------------------------
-- Area: Phomiuna Aqueducts
-- NPC: qm3 (???)
-- Notes: Opens north door @ J-9
-- @pos 116.743 -24.636 27.518 27
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,tra... | gpl-3.0 |
QuetzalQatl/RustPluginManual | SnapshotAllPlugins/m-DisappearingCorpses.lua | 1 | 9467 |
-- -----------------------------------------------------------------------------------
-- Disappearing Corpses Version 1.0.3
-- -----------------------------------------------------------------------------------
-- Filename: m-DisappearingCorpses.lua
-- Last M... | gpl-2.0 |
jyggen/lua-parser | tests/Fixtures/aa/06/09/b75643226747d3209632ef54ff1d55fcc6b36561ff6dfbe6cca7c84b2d.lua | 1 | 43858 |
BagSyncDB = {
["Draenor"] = {
["Jyggen"] = {
["bag"] = {
{
"118332", -- [1]
"118331", -- [2]
"118099,16", -- [3]
"116020", -- [4]
"141195", -- [5]
[13] = "135558,3",
}, -- [1]
{
"127115,2", -- [1]
"113478,2", -- [2]
"113328,5", -- [3]
... | mit |
shingenko/darkstar | scripts/zones/Palborough_Mines/npcs/qm1.lua | 17 | 1291 | -----------------------------------
-- Area: Palborough Mines
-- NPC: ???
-- Involved In Quest: The Talekeeper's Truth
-- @zone 143
-- @pos 15 -31 -94
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.