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 |
|---|---|---|---|---|---|
vejmelkam/optim | adagrad.lua | 10 | 1621 | --[[ ADAGRAD implementation for SGD
ARGS:
- `opfunc` : a function that takes a single input (X), the point of
evaluation, and returns f(X) and df/dX
- `x` : the initial point
- `state` : a table describing the state of the optimizer; after each
call the state is modified
- `state.learningRate` : lear... | bsd-3-clause |
Aquanim/Zero-K | scripts/shipriot.lua | 4 | 3379 | include "constants.lua"
local base = piece 'base'
local hull = piece 'hull'
local gunf = piece 'gunf'
local barrelfl = piece 'barrelfl'
local flarefl = piece 'flarefl'
local barrelfr = piece 'barrelfr'
local flarefr = piece 'flarefr'
local gunb = piece 'gunb'
local barrelbl = piece 'barrelbl'
local flarebl = piece 'fl... | gpl-2.0 |
b03605079/darkstar | scripts/commands/delspell.lua | 3 | 1025 | ---------------------------------------------------------------------------------------------------
-- func: @delspell <spellID> <player>
-- auth: mvd1987, modified by TeoTwawki
-- desc: Removes a spell from the players spell list.
------------------------------------------------------------------------------------... | gpl-3.0 |
b03605079/darkstar | scripts/globals/weaponskills/blade_chi.lua | 30 | 1380 | -----------------------------------
-- Blade Chi
-- Katana weapon skill
-- Skill Level: 150
-- Delivers a two-hit earth elemental attack. Damage varies with TP.
-- Aligned with the Thunder Gorget & Light Gorget.
-- Aligned with the Thunder Belt & Light Belt.
-- Element: Earth
-- Modifiers: STR:30% ; INT:30%
--... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Spire_of_Dem/npcs/_0j2.lua | 36 | 1313 | -----------------------------------
-- Area: Spire_of_Dem
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Dem/TextIDs");
---------------... | gpl-3.0 |
stars2014/quick-ng | quick/samples/tests/src/scenes/MainScene.lua | 8 | 1471 |
local MainScene = class("MainScene", function()
return display.newScene("MainScene")
end)
function MainScene:ctor()
local items = {
"framework.helper",
"framework.native",
"framework.display",
"framework.crypto",
"framework.network",
"framework.luabinding",
... | mit |
immibis/wiremod | lua/wire/stools/egp.lua | 9 | 13008 | -- Wire EGP by Divran
WireToolSetup.setCategory( "Visuals/Screens" )
WireToolSetup.open( "egp", "EGP v3", "gmod_wire_egp", nil, "EGPs" )
TOOL.ClientConVar["model"] = "models/kobilica/wiremonitorbig.mdl"
TOOL.ClientConVar["type"] = 1
TOOL.ClientConVar["createflat"] = 1
TOOL.ClientConVar["weld"] = 0
TOOL.ClientConVar["w... | apache-2.0 |
b03605079/darkstar | scripts/globals/mobskills/Guided_Missile.lua | 6 | 1156 | ---------------------------------------------
-- Guided_Missile
--
-- Description: Targeted 10'(?) AoE ~400-750 physical damage, absorbed by Utsusemi
-- Type: Physical
-- Wipes Shadows
-- Range: 10 yalms
---------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/s... | gpl-3.0 |
Aquanim/Zero-K | effects/gundam_vulcanhit.lua | 26 | 2034 | -- tracerpop
return {
["tracerpop"] = {
groundflash = {
air = true,
alwaysvisible = true,
circlealpha = 0.0,
circlegrowth = 8,
flashalpha = 0.9,
flashsize = 20,
ground = true,
ttl = 10,
... | gpl-2.0 |
DI3HARD139/dcb-everamzah- | mods/mobs/warthog.lua | 1 | 1682 |
-- Warthog by KrupnoPavel
mobs:register_mob("mobs:pumba", {
type = "animal",
passive = false,
attack_type = "dogfight",
group_attack = true,
reach = 2,
damage = 2,
hp_min = 5,
hp_max = 15,
armor = 200,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
visual = "mesh",
mesh = "mobs_pumba.x",
textures = {
... | gpl-3.0 |
stepelu/lua-sci | _cblas_h.lua | 1 | 32612 | --------------------------------------------------------------------------------
-- CBLAS header cdef, converted from the official cblas.h header from:
-- http://www.netlib.org/blas/blast-forum/cblas.tgz
--
-- Copyright (C) 2011-2016 Stefano Peluchetti. All rights reserved.
---------------------------------------------... | mit |
b03605079/darkstar | scripts/zones/Dangruf_Wadi/npcs/qm3.lua | 17 | 1888 | -----------------------------------
-- NPC: ??? (QM3)
-- Type: Saltvix dice roll game part 2
-- @zone: 191
-- Involved in quest "As Thick As Thieves"
-----------------------------------
package.loaded["scripts/zones/Dangruf_Wadi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
b03605079/darkstar | scripts/globals/spells/bluemagic/jet_stream.lua | 3 | 1045 | require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/bluemagic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
function onSpellCast(caster,target,sp... | gpl-3.0 |
immibis/wiremod | lua/entities/gmod_wire_spawner.lua | 10 | 6966 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Prop Spawner"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.WireDebugName = "Prop Spawner"
if CLIENT then return end -- No more client
local wire_spawner_delay = CreateConVar( "wire_spawner_delay", game.SinglePlayer() and 0 or 0.2 )
local Gl... | apache-2.0 |
b03605079/darkstar | scripts/zones/Northern_San_dOria/npcs/Chapal-Afal_WW.lua | 3 | 4600 | -----------------------------------
-- Area: Northern Sand Oria
-- NPC: Chapal-Afal, W.W.
-- @pos -55 -2 31 231
-- X Grant Signet
-- X Recharge Emperor Band, Empress Band, or Chariot Band
-- X Accepts traded Crystals to fill up the Rank bar to open new Missions.
-- X Sells items in exchange for Conquest Points
-- X St... | gpl-3.0 |
Aquanim/Zero-K | units/vehscout.lua | 2 | 4068 | return { vehscout = {
unitname = [[vehscout]],
name = [[Dart]],
description = [[Disruptor Raider/Scout Rover]],
acceleration = 0.84,
brakeRate = 1.866,
buildCostMetal = 40,
builder = false,
buildPic = ... | gpl-2.0 |
Aquanim/Zero-K | LuaRules/Gadgets/CAI/BattlegroupHandler.lua | 8 | 2725 | --[[ Handles grounds of combat units working together as a squad
--]]
local UnitListHandler = VFS.Include("LuaRules/Gadgets/CAI/UnitListHandler.lua")
local HeatmapHandler = VFS.Include("LuaRules/Gadgets/CAI/HeatmapHandler.lua")
local spIsPosInLos = Spring.IsPosInLos
local spGetCommandQueue = Spring.GetCommandQueue
lo... | gpl-2.0 |
b03605079/darkstar | scripts/globals/weaponskills/ukkos_fury.lua | 30 | 1805 | -----------------------------------
-- Ukko's Fury
-- Great Axe Weapon Skill
-- Skill Level: N/A
-- Description: Delivers a twofold attack that slows target. Chance of params.critical hit varies with TP. Ukonvasara: Aftermath.
-- Available only when equipped with Ukonvasara (85), Ukonvasara (90), Ukonvasara (95), ... | gpl-3.0 |
Aquanim/Zero-K | lups/headers/tablebin.lua | 8 | 3185 | -- $Id: tablebin.lua 3171 2008-11-06 09:06:29Z det $
--[[
Binary Search a Table
Binary Insert into Table (faster than table.insert and table.sort combined)
v 0.3
Lua 5.1 compatible
]]--
--[[
table.binsearch( table, value [, compval [, reversed] ] )
Searches the table through BinarySearch for the given value.
... | gpl-2.0 |
lualatex/luaotfload | src/fontloader/misc/fontloader-basics-nod.lua | 2 | 9396 | if not modules then modules = { } end modules ['luatex-fonts-nod'] = {
version = 1.001,
comment = "companion to luatex-fonts.lua",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
if context t... | gpl-2.0 |
Aquanim/Zero-K | effects/slam.lua | 6 | 38258 | -- slam
-- slam_sparks_smokejets
-- slam_flash
-- slam_ray
-- slam_heat_pillar
-- slam_landcloud
-- slam_landcloud_ring
-- slam_landcloud_topcap
-- slam_landcloud_cap
-- slam_landcloud_pillar
-- slam_landcloud_topsuction
-- slam_seacloud
-- slam_seacloud_topcap
-- slam_seacloud_ring
-- slam_seacloud_cap
-- slam_seaclou... | gpl-2.0 |
arychen/GlobalCall | feeds/routing/bird-openwrt/bird4-openwrt/src/model/bgp_proto.lua | 8 | 9954 | --[[
Copyright (C) 2014 - Eloi Carbó Solé (GSoC2014)
BGP/Bird integration with OpenWRT and QMP
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) a... | gpl-2.0 |
Aquanim/Zero-K | LuaRules/Gadgets/unit_capture.lua | 6 | 26113 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "Capture",
desc = "Handles Yuri Style Capture System",
author = "Google Frog",
date = "3... | gpl-2.0 |
stars2014/quick-ng | cocos/scripting/lua-bindings/auto/api/Animation.lua | 7 | 5350 |
--------------------------------
-- @module Animation
-- @extend Ref
-- @parent_module cc
--------------------------------
-- Gets the times the animation is going to loop. 0 means animation is not animated. 1, animation is executed one time, ... <br>
-- return The times the animation is going to loop.
-- @function ... | mit |
b03605079/darkstar | scripts/zones/LaLoff_Amphitheater/bcnms/ark_angels_2.lua | 13 | 3037 | -----------------------------------
-- Area: LaLoff Amphitheater
-- Name: Ark Angels 2 (Tarutaru)
-----------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
require("scripts/globals/mis... | gpl-3.0 |
Aquanim/Zero-K | scripts/staticmissilesilo.lua | 1 | 3974 | --------------------------------------------------------------------------------
-- refer to LuaRules\Gadgets\unit_missilesilo.lua for documentation
--------------------------------------------------------------------------------
include "constants.lua"
----------------------------------------------------------------... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Uleguerand_Range/npcs/HomePoint#1.lua | 12 | 1188 | -----------------------------------
-- Area: Uleguerand_Range
-- NPC: HomePoint#1
-- @pos
-----------------------------------
package.loaded["scripts/zones/Uleguerand_Range/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Uleguerand_Range/TextIDs");
require("scripts/globals/homepoint");
... | gpl-3.0 |
MOSAVI17/outobot | plugins/hackernews.lua | 16 | 1401 | local command = 'hackernews'
local doc = [[```
Returns four (if group) or eight (if private message) top stories from Hacker News.
Alias: /hn
```]]
local triggers = {
'^/hackernews[@'..bot.username..']*',
'^/hn[@'..bot.username..']*'
}
local action = function(msg)
sendChatAction(msg.chat.id, 'typing')
local jst... | gpl-2.0 |
redien/cbind | class_gen/lua.lua | 2 | 8188 |
-- cbind - A library for generating bindings.
-- Written in 2014 by Jesper Oskarsson jesosk@gmail.com
--
-- To the extent possible under law, the author(s) have dedicated all copyright
-- and related and neighboring rights to this software to the public domain worldwide.
-- This software is distributed without a... | cc0-1.0 |
b03605079/darkstar | scripts/zones/Davoi/npcs/_45h.lua | 19 | 2043 | -----------------------------------
-- Area: Davoi
-- NPC: Howling Pond
-- Used In Quest: Whence Blows the Wind
-- @pos 21 0.1 -258 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/glo... | gpl-3.0 |
bakpakin/heroku-buildpack-moonmint | heroku/share/lua/5.1/luarocks/loader.lua | 1 | 8618 |
--- A module which installs a Lua package loader that is LuaRocks-aware.
-- This loader uses dependency information from the LuaRocks tree to load
-- correct versions of modules. It does this by constructing a "context"
-- table in the environment, which records which versions of packages were
-- used to load previous... | mit |
b03605079/darkstar | scripts/zones/Port_Jeuno/npcs/Squintrox_Dryeyes.lua | 18 | 4407 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Squintrox Dryeyes
-- Type: Addon Mission Merchant
-- @pos -100.071 -1 11.869 246
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
re... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Selbina/npcs/Elfriede.lua | 17 | 1951 | -----------------------------------
-- Area: Selbina
-- NPC: Elfriede
-- Involved In Quest: The Tenshodo Showdown
-- @pos 61 -15 10 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
req... | gpl-3.0 |
thesrinivas/rakshak | rakshak-probe.bkup/userspace/sysdig/chisels/v_traces_list.lua | 2 | 2571 | --[[
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 |
geoffleyland/rima | lua/tests/rima/operators/case.lua | 1 | 1252 | -- Copyright (c) 2009-2012 Incremental IP Limited
-- see LICENSE for license information
local case = require("rima.operators.case")
local object = require("rima.lib.object")
local lib = require("rima.lib")
local interface = require("rima.interface")
-----------------------------------------------------------------... | mit |
Astraalivankila/TF416 | game/dota_addons/map_terrain/scripts/vscripts/libraries/timers.lua | 6 | 6434 | TIMERS_VERSION = "1.03"
--[[
-- A timer running every second that starts immediately on the next frame, respects pauses
Timers:CreateTimer(function()
print ("Hello. I'm running immediately and then every second thereafter.")
return 1.0
end
)
-- A timer which calls a function with a table cont... | gpl-2.0 |
FlightControl-Master/MOOSE_MISSIONS | AID - AI Dispatching/AID-A2A - AI A2A Dispatching/AID-A2A-061 - Takeoff From Ship Runway Test/AID-A2A-061 - Takeoff From Ship Runway Test.lua | 1 | 2127 | ---
-- Name: AID-A2A-061 - Takeoff From Ship Runway Test
-- Author: FlightControl
-- Date Created: 21 Sep 2017
-- Define a SET_GROUP object that builds a collection of groups that define the EWR network.
-- Here we build the network with all the groups that have a name starting with DF CCCP AWACS and DF CCCP EWR.
Det... | gpl-3.0 |
stepelu/lua-sci | math.lua | 1 | 11315 | --------------------------------------------------------------------------------
-- Special math functions module.
--
-- Copyright (C) 2011-2016 Stefano Peluchetti. All rights reserved.
--------------------------------------------------------------------------------
local ffi = require "ffi"
local bit = requi... | mit |
b03605079/darkstar | scripts/zones/Windurst_Walls/npcs/Scavnix.lua | 17 | 1226 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Scavnix
-- Standard merchant, though he acts like a guild merchant
-- @pos 17.731 0.106 239.626 239
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-----------------------------------
require(... | gpl-3.0 |
Aquanim/Zero-K | LuaRules/Utilities/base64.lua | 2 | 3250 | -- $Id: api_base64.lua 3171 2008-11-06 09:06:29Z det $
-- Author: Alex Kloss
-- Contact: http://www.it-rfc.de
-- Date: 2006-2008
-- License: LGPL2
-- Public functions:
-- * Spring.Utilities.Base64Encode(string data) -> string
-- * Spring.Utilities.Base64Decode(string data) -> string
-- bitshift functions (<<, >> eq... | gpl-2.0 |
Aquanim/Zero-K | scripts/gunshipheavyskirm.lua | 8 | 4360 | include 'constants.lua'
local base, body, rfjet, lfjet, rffan, lffan, rgun, rbarrel, rflare1, rflare2, lgun, lbarrel, lflare1, lflare2, eye, rthruster, rrjet, rrfanbase, rrfan, lthruster, lrjet, lrfanbase, lrfan = piece('base', 'body', 'rfjet', 'lfjet', 'rffan', 'lffan', 'rgun', 'rbarrel', 'rflare1', 'rflare2', 'lgun'... | gpl-2.0 |
DI3HARD139/dcb-everamzah- | mods/hunger/init.lua | 1 | 2228 | hunger = {}
hunger.food = {}
hunger.players = {}
HUNGER_TICK = 300 -- time in seconds after that 1 hunger point is taken
HUNGER_HEALTH_TICK = 5 -- time in seconds after player gets healed/damaged
HUNGER_MOVE_TICK = 5 -- time in seconds after the movement is checked
HUNGER_EXHAUST_DIG = 0.5 -- exhaustion increased ... | gpl-3.0 |
Aquanim/Zero-K | gamedata/modularcomms/weapons/riotcannon.lua | 5 | 1148 | local name = "commweapon_riotcannon"
local weaponDef = {
name = [[Riot Cannon]],
areaOfEffect = 144,
avoidFeature = true,
avoidFriendly = true,
burnblow = true,
craterBoost = 1,
craterMult = 2,
customParams = ... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_0rr.lua | 17 | 1455 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: Oil lamp
-- @pos -60 -23 60 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Phomiuna... | gpl-3.0 |
b03605079/darkstar | scripts/globals/items/pot_of_san_dorian_tea.lua | 35 | 1209 | -----------------------------------------
-- ID: 4494
-- Item: pot_of_san_dorian_tea
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Vitality -2
-- Charisma 2
-----------------------------------------
require("scripts/globals/status");
----------------------------------------... | gpl-3.0 |
PicassoCT/Journeywar | scripts/cCrabSynthScript.lua | 1 | 34275 | center = piece "center"
include "createCorpse.lua"
include "lib_OS.lua"
include "lib_UnitScript.lua"
include "lib_Animation.lua"
include "lib_Build.lua"
KpiecesTable = getNamePieceNumDict(unitID, piece)
piecesTable = {}
piecesTable[#piecesTable + 1] = piece("center")
piecesTable[#piecesTable + 1] = piece("Body")
--... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/Telepoint.lua | 18 | 1640 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: Telepoint
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Eastern_Altepa_Desert/Te... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Oldton_Movalpolos/npcs/Treasure_Chest.lua | 12 | 3003 | -----------------------------------
-- Area: Oldton Movalpolos
-- NPC: Treasure Chest
-- @zone 11
-----------------------------------
package.loaded["scripts/zones/Oldton_Movalpolos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("... | gpl-3.0 |
hfjgjfg/grt12 | plugins/owners.lua | 284 | 12473 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
miralireza2/gpf23 | 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 |
stars2014/quick-ng | cocos/scripting/lua-bindings/script/framework/extends/UIScrollView.lua | 55 | 2042 |
--[[
Copyright (c) 2011-2014 chukong-inc.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, copy, modify, merge, publish, di... | mit |
b03605079/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5f6.lua | 34 | 1105 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Odin's Gate
-- @pos 260 -34 110 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs");... | gpl-3.0 |
cosmy1/Urho3D | bin/Data/LuaScripts/33_Urho2DSpriterAnimation.lua | 24 | 7416 | -- Urho2D sprite example.
-- This sample demonstrates:
-- - Creating a 2D scene with spriter animation
-- - Displaying the scene using the Renderer subsystem
-- - Handling keyboard to move and zoom 2D camera
require "LuaScripts/Utilities/Sample"
local spriterNode = nil
local spriterAnimationIndex... | mit |
b03605079/darkstar | scripts/zones/King_Ranperres_Tomb/npcs/_5a0.lua | 3 | 2387 | -----------------------------------
-- Area: King Ranperre's Tomb
-- DOOR: _5a0 (Heavy Stone Door)
-- @pos -39.000 4.823 20.000 190
-----------------------------------
package.loaded["scripts/zones/King_Ranperres_Tomb/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
re... | gpl-3.0 |
Aquanim/Zero-K | units/chicken_pigeon.lua | 6 | 4324 | return { chicken_pigeon = {
unitname = [[chicken_pigeon]],
name = [[Pigeon]],
description = [[Flying Spore Scout]],
activateWhenBuilt = true,
acceleration = 0.8,
brakeRate = 0.32,
buildCostEnergy = 0,
buildCostMetal = 0,
builder ... | gpl-2.0 |
aliarshad2000/hunterbot | plugins/invite.lua | 63 | 1107 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) or is_gbanned(result.id) then -- Ignore bans and globall bans
send_large_msg(chat, 'User is banned.')
else
... | gpl-2.0 |
DI3HARD139/dcb-everamzah- | mods/default/init.lua | 15 | 1623 | -- Minetest 0.4 mod: default
-- See README.txt for licensing and other information.
-- The API documentation in here was moved into game_api.txt
-- Definitions made by this mod that other mods can use too
default = {}
default.LIGHT_MAX = 14
-- GUI related stuff
default.gui_bg = "bgcolor[#080808BB;true]"
default.gui... | gpl-3.0 |
b03605079/darkstar | scripts/globals/mobskills/Venom_Spray.lua | 6 | 1047 | ---------------------------------------------
-- Venom
--
-- Description: Deals damage in a fan shaped area. Additional effect: poison
-- Type: Magical Water
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: 10' cone
-- Notes: Additional effect can be removed with Poisona.
--------------------------------------... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Toraimarai_Canal/npcs/Tome_of_Magic.lua | 12 | 1743 | -----------------------------------
-- Area: Toraimarai Canal
-- NPC: Tome of Magic ( Needed for Mission )
-- Involved In Windurst Mission 7-1
-- @zone 169
-- @pos 142 13 -13 169 <many>
-----------------------------------
package.loaded["scripts/zones/Toraimarai_Canal/TextIDs"] = nil;
require("scripts/zones/Toraimarai... | gpl-3.0 |
Azrael1/treelstm | init.lua | 10 | 1340 | require('torch')
require('nn')
require('nngraph')
require('optim')
require('xlua')
require('sys')
require('lfs')
treelstm = {}
include('util/read_data.lua')
include('util/Tree.lua')
include('util/Vocab.lua')
include('layers/CRowAddTable.lua')
include('models/LSTM.lua')
include('models/TreeLSTM.lua')
include('models/C... | gpl-2.0 |
b03605079/darkstar | scripts/globals/items/slice_of_diatryma_meat.lua | 18 | 1290 | -----------------------------------------
-- ID: 5290
-- Item: Slice of Diatryma Meat
-- Effect: 5 Minutes, food effect, Galka Only
-----------------------------------------
-- Strength +3
-- Intelligence -5
-----------------------------------------
require("scripts/globals/status");
---------------------------------... | gpl-3.0 |
Whit3Tig3R/bot-telegram | plugins/get.lua | 613 | 1067 | local function get_variables_hash(msg)
if msg.to.type == 'chat' then
return 'chat:'..msg.to.id..':variables'
end
if msg.to.type == 'user' then
return 'user:'..msg.from.id..':variables'
end
end
local function list_variables(msg)
local hash = get_variables_hash(msg)
if hash then
local names =... | gpl-2.0 |
aureooms/dotfiles | .ipe/ipelets/shortcuts.lua | 1 | 1890 | ----------------------------------------------------------------------
-- Ipe keyboard shortcuts
----------------------------------------------------------------------
--[[
This file is part of the extensible drawing editor Ipe.
Copyright (C) 1993-2016 Otfried Cheong
Ipe is free software; you can redistr... | agpl-3.0 |
DI3HARD139/dcb-everamzah- | mods/maptools/craftitems.lua | 3 | 1368 | --[[
Map Tools: item definitions
Copyright (c) 2012-2017 Hugo Locurcio and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
local S = maptools.intllib
maptools.creative = maptools.config["hide_from_creative_inventory"]
minetest.register_craftitem("maptools:copper_coin", {
de... | gpl-3.0 |
b03605079/darkstar | scripts/globals/items/naval_rice_ball.lua | 14 | 1813 | -----------------------------------------
-- ID: 4605
-- Item: naval_rice_ball
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP +26, Dex +3, Vit +4, hHP +2 (Atk +40, Def +40, Arcana Killer)*enhances rice ball effect
-----------------------------------------
require("scripts/glob... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Crawlers_Nest_[S]/Zone.lua | 6 | 1292 | -----------------------------------
--
-- Zone: Crawlers_Nest_[S] (171)
--
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest_[S]/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Crawlers_Nest_[S]/TextIDs");
-----------------------------------
-- onI... | gpl-3.0 |
b03605079/darkstar | scripts/globals/spells/kurayami_ichi.lua | 2 | 1122 | -----------------------------------------
-- Spell: Kurayami:Ichi
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(c... | gpl-3.0 |
arychen/GlobalCall | feeds/luci/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/backupfiles.lua | 75 | 2451 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
if luci.http.formvalue("cbid.luci.1._list") then
luci.http.redirect(luci.dispatcher.build_url("admin/system/flashops/backupfiles") .. "?display=list")
elseif ... | gpl-2.0 |
PicassoCT/Journeywar | gamedata/explosions/spore3.lua | 1 | 2499 | -- trail_ar2
return {
["spore3"] = {
greenSparks = {
air = true,
class = [[CSimpleParticleSystem]],
count = 3,
ground = true,
water = false,
properties = {
airdrag = 1,
... | gpl-3.0 |
Aquanim/Zero-K | LuaRules/Gadgets/dbg_ceg_spawner.lua | 13 | 1392 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
FlightControl-Master/MOOSE_MISSIONS | MOP-100 - MARKEROPS_BASE/MarkerOps_Base_Demo.lua | 1 | 3350 | -------------------------------------------------------------------------
-- MOP-100 - MARKEROPS_BASE - Basic Demo
-------------------------------------------------------------------------
-- Documentation
--
-- MARKEROPS_BASE: https://flightcontrol-master.github.io/MOOSE_DOCS_DEVELOP/Documentation/Core.MarkerOps... | gpl-3.0 |
bakpakin/heroku-buildpack-moonmint | heroku/share/luajit-2.0.4/jit/dump.lua | 84 | 19509 | ----------------------------------------------------------------------------
-- LuaJIT compiler dump module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
-... | mit |
b03605079/darkstar | scripts/globals/weaponskills/raging_rush.lua | 30 | 1384 | -----------------------------------
-- Raging Rush
-- Great Axe weapon skill
-- Skill level: 200 (Warriors only.)
-- Delivers a three-hit attack. Chance of params.critical hit varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Snow Gorget & Aqua Gorget.
-- Aligned with the Snow Belt & Aqua Belt... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Port_Windurst/npcs/Hohbiba-Mubiba.lua | 36 | 1753 | -----------------------------------
-- Area: Port Windurst
-- NPC: Hohbiba-Mubiba
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/zones/Port_Windurst... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Bastok_Markets/npcs/Ardea.lua | 19 | 2007 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Ardea
-- @zone 235
-- @pos -198 -6 -69
-- Involved in quests: Chasing Quotas, Rock Racketeer
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("scripts/zones/Bast... | gpl-3.0 |
Aquanim/Zero-K | effects/ariel.lua | 25 | 6283 | -- ariel_splosh
-- ariel_gurgle
-- ariel_fizz_bubble
-- ariel_splash
-- ariel_fizz
-- torplosion
return {
["ariel_splosh"] = {
splosh = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water ... | gpl-2.0 |
Xerrass/theMod | theMod/prototypes/inserters/very-fast-inserter.lua | 1 | 3698 | data:extend(
{
{
type = "inserter",
name = "very-fast-inserter",
icon = "__base__/graphics/icons/fast-inserter.png",
flags = {"placeable-neutral", "placeable-player", "player-creation"},
minable =
{
hardness = 0.2,
mining_time = 0.5,
result = "very-fast-inserter"
... | mit |
PicassoCT/Journeywar | weapons/lazarusrocket.lua | 1 | 1135 | local weaponName = "lazarusrocket"
local weaponDef = {
name = "Eject Pod",
weaponType = [[MissileLauncher]],
Accuracy = 1000,
--Physic/flight path
range = 3600,
reloadtime = 3,
weaponVelocity = 250,
startVelocity = 5,
weaponAcceleration = 50,
flightTime = 18.5,
BurnBlow = 0,... | gpl-3.0 |
lyn0328/FrameSynchro | Trunk/Client/src/framework/cc/ui/UIPageViewItem.lua | 3 | 1259 |
--[[
Copyright (c) 2011-2014 chukong-inc.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, copy, modify, merge, publish, di... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Xarcabard/npcs/qm5.lua | 13 | 1343 | -----------------------------------
-- Area: Xarcabard
-- NPC: qm5 (???)
-- Involved in Quests: Breaking Barriers
-- @pos 179 -33 82 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Xarcabard/TextIDs");
require(... | gpl-3.0 |
arychen/GlobalCall | feeds/luci/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/unixsock.lua | 73 | 1191 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("Unixsock Plugin Configuration"),
translate(
"The unixsock plugin creates a unix socket which can be used " ..
"to read collected data from a running... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Southern_San_dOria/npcs/Pourette.lua | 30 | 2210 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Pourette
-- Only sells when San d'Oria controlls Derfland Region
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
PicassoCT/Journeywar | gamedata/explosions/jbeefheremightbedragons.lua | 1 | 1055 |
return {
["jbeefheremightbedragons"] = {
ants2 = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = false,
properties = {
airdrag = 1,
colormap ... | gpl-3.0 |
codedustgames/caress-framework | collection/ArrayList.lua | 1 | 9741 | -- Caress, a small framework for games in lua and love.
-- Copyright (C) 2016 Erivaldo Filho "desadoc@gmail.com"
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU Lesser General Public License as published by
-- the Free Software Foundation, either version 3 of t... | gpl-3.0 |
krattai/noo-ebs | ref_code/lzmq/examples/perf2/thr/remote_thr.lua | 15 | 1894 | local ZMQ_NAME = "lzmq"
local argc = select("#", ...)
local argv = {...}
if (argc < 3) or (argc > 4)then
print("usage: remote_thr <connect-to> <message-size> <message-count> [ffi]");
return 1
end
local connect_to = argv [1]
local message_size = assert(tonumber(argv [2]))
local message_count = assert(tonumber... | bsd-2-clause |
b03605079/darkstar | scripts/globals/items/sprig_of_cibol.lua | 35 | 1209 | -----------------------------------------
-- ID: 5234
-- Item: sprig_of_cibol
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility 1
-- Vitality -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIt... | gpl-3.0 |
PicassoCT/Journeywar | units/gaia/ikTest.lua | 1 | 1092 | local unitName = "iktest"
local unitDef = {
name = "inverse kinematik Testunit ",
Description = "Testing the IK all day long",
objectName = "iktest.s3o",
script = "dbg_iktestscript.lua",
buildPic = "placeholder.png",
--cost
buildCostMetal = 15,
buildCostEnergy = 1,
buildTime = 1,
--Health
maxDamage = 6660,... | gpl-3.0 |
Aquanim/Zero-K | LuaUI/Widgets/gui_hide_interface_action.lua | 6 | 2666 | function widget:GetInfo()
return {
name = "Hide Interface and Mouse Cursor",
desc = "Implements a hide interface action as well as mouse cursor sets.",
author = "CarRepairer",
date = "2012-01-11",
license = "GNU GPL, v2 or later",
layer = -100000,
enabled = true,
... | gpl-2.0 |
b03605079/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 |
PicassoCT/Journeywar | scripts/jconroach.lua | 1 | 3750 | include "lib_OS.lua"
include "lib_UnitScript.lua"
include "lib_Animation.lua"
include "lib_Build.lua"
--unitPieces
local nanopiece = piece "nanopiece"
local conRoach = piece "conRoach"
local boolbuilding = false
local SIG_BUILD = 2
local boolMoving = false
legz = {}
for i = 1, 8, 1 do
legz[i] = {}
temp = "... | gpl-3.0 |
b03605079/darkstar | scripts/globals/abilities/pets/stone_ii.lua | 5 | 1152 | ---------------------------------------------------
-- Stone 2
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
require("/scripts/globals/magic");
-----------------------------------------... | gpl-3.0 |
hamidreza7517/korena | plugins/fun.lua | 1 | 16767 | local function run_bash(str)
local cmd = io.popen(str)
local result = cmd:read('*all')
return result
end
--------------------------------
local api_key = nil
local base_api = "https://maps.googleapis.com/maps/api"
--------------------------------
local function get_latlong(area)
local api = base_api .... | gpl-3.0 |
node-wot/node-wot | lua_examples/ucglib/GT_color_test.lua | 30 | 1027 | local M, module = {}, ...
_G[module] = M
function M.run()
-- make this a volatile module:
package.loaded[module] = nil
print("Running component color_test...")
local mx
local c, x
mx = disp:getWidth() / 2
--my = disp:getHeight() / 2
disp:setColor(0, 0, 0, 0)
disp:drawBox(0, 0, ... | mit |
b03605079/darkstar | scripts/zones/Metalworks/npcs/Mythily.lua | 17 | 2002 | -----------------------------------
-- Area: Metalworks
-- NPC: Mythily
-- Type: Immigration NPC
-- @pos 94 -20 -8 237
-----------------------------------
require("scripts/globals/conquest");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(play... | gpl-3.0 |
raymond-w-ko/vim-lua-indent | tests/nmap/comm.ok.lua | 1 | 10064 | ---
-- Common communication functions for network discovery tasks like
-- banner grabbing and data exchange.
--
-- The functions in this module return values appropriate for use with
-- exception handling via <code>nmap.new_try</code>.
--
-- These functions may be passed a table of options, but it's not required. The
-... | mit |
cjbrigato/kigiv-for-proxmark3 | client/scripts/tnp3clone.lua | 6 | 4338 | local cmds = require('commands')
local getopt = require('getopt')
local lib14a = require('read14a')
local utils = require('utils')
local pre = require('precalc')
local toys = require('default_toys')
local lsh = bit32.lshift
local rsh = bit32.rshift
local bor = bit32.bor
local band = bit32.band
example =[[
script run... | gpl-2.0 |
jsykes/million-tile-engine | src/PerlinNoise.lua | 1 | 21129 | local PerlinNoise = {}
local Map = require("src.Map")
-----------------------------------------------------------
PerlinNoise.perlinNoise = function(params)
local params = params
if not params then
params = {}
end
local width = params.width or Map.map.width
local height = params.height or... | mit |
b03605079/darkstar | scripts/zones/Northern_San_dOria/npcs/Alphollon_C_Meriard.lua | 19 | 3153 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Alphollon C Meriard
-- Type: Purifies cursed items with their corresponding abjurations.
-- @zone: 231
-- @pos 98.108 -1 137.999
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
---------------... | gpl-3.0 |
kiarash14/bumpspm | 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 |
hamidreza7517/korena | plugins/plugins.lua | 1 | 8181 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( n... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.