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 |
|---|---|---|---|---|---|
nasomi/darkstar | scripts/zones/Mamook/mobs/Colibri.lua | 58 | 1615 | -----------------------------------
-- Area: Mamook
-- MOB: Colibri
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onMobFight Action
-----------------------------------
function onMobFight(mob, target)
local delay =... | gpl-3.0 |
TeamHypersomnia/Augmentations | hypersomnia/content/official/gfx/spell_electric_triad_icon.meta.lua | 14 | 1866 | return {
extra_loadables = {
disabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 60,
light_colors = {},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
},
generate_desaturation = true
},
offsets = {
gun = {
bullet_spawn... | agpl-3.0 |
Nelarius/wren | test/benchmark/map_string.lua | 9 | 5150 | local adverbs = {
"moderately", "really", "slightly", "very"
}
local adjectives = {
"abandoned", "able", "absolute", "academic", "acceptable", "acclaimed",
"accomplished", "accurate", "aching", "acidic", "acrobatic", "active",
"actual", "adept", "admirable", "admired", "adolescent", "adorable", "adored",
"ad... | mit |
nasomi/darkstar | scripts/zones/Port_Bastok/npcs/Denvihr.lua | 36 | 1563 | -----------------------------------
-- Area: Port Bastok
-- NPC: Denvihr
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/zones/Port_Bastok/TextIDs");
... | gpl-3.0 |
telergybot/kelidestan5454 | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
Hello23-Ygopro/ygopro-ds | expansions/script/c27002014.lua | 1 | 1195 | --BT2-012 Repeated Force Vegito
local ds=require "expansions.utility_dbscg"
local scard,sid=ds.GetID()
function scard.initial_effect(c)
ds.EnableBattleAttribute(c)
ds.AddSetcode(c,CHARACTER_VEGITO,SPECIAL_TRAIT_SAIYAN)
ds.AddPlayProcedure(c,COLOR_RED,1,6)
--union-potara
ds.EnableUnionPotara(c,scard.unipfilter1,sca... | gpl-3.0 |
mkjanke/Focus-Points | focuspoints.lrdevplugin/AppleDelegates.lua | 5 | 2121 | --[[
Copyright 2016 Whizzbang Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | apache-2.0 |
nasomi/darkstar | scripts/zones/Port_Windurst/npcs/Boronene.lua | 38 | 1036 | -----------------------------------
-- Area: Port Windurst
-- NPC: Boronene
-- Type: Moghouse Renter
-- @zone: 240
-- @pos 201.651 -13 229.584
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-------------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Kazham-Jeuno_Airship/npcs/Joosef.lua | 19 | 2039 | -----------------------------------
-- Area: Kazham-Jeuno Airship
-- NPC: Joosef
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham-Jeuno_Airship/TextIDs"] = nil;
require("scripts/zones/Kazham-Jeuno_Airship/TextIDs");
-----------------------------------
-- onTrade Action
-... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Outer_Horutoto_Ruins/npcs/_ne4.lua | 19 | 2631 | -----------------------------------
-- Area: Outer Horutoto Ruins
-- NPC: Strange Apparatus
-- @pos: -574 0 739 194
-----------------------------------
package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil;
require("scripts/zones/Outer_Horutoto_Ruins/TextIDs");
require("scripts/globals/strangeapparatus")... | gpl-3.0 |
icplus/OP-SDK | package/ramips/ui/luci-mtk/src/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua | 37 | 8552 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
loc... | gpl-2.0 |
nasomi/darkstar | scripts/zones/Metalworks/npcs/Ayame.lua | 17 | 2816 | -----------------------------------
-- Area: Metalworks
-- NPC: Ayame
-- Involved in Missions
-- Starts and Finishes Quest: True Strength
-- @pos 133 -19 34 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/... | gpl-3.0 |
telmomenezes/lablove | basic_command_line.lua | 1 | 1540 | parameterString = ""
function getNumberParameter(paramName, paramDefault, shortName)
param = getCommandLineParameter(paramName)
paramOut = 0.0
if param == "" then
paramOut = paramDefault
else
paramOut = tonumber(param)
end
if ((shortName ~= nil) and (paramOut ~= 0)) then
... | gpl-2.0 |
Wouterz90/SuperSmashDota | Game/scripts/vscripts/abilities/centaur.lua | 1 | 8117 | centaur_special_side = class({})
function centaur_special_side:OnAbilityPhaseStart()
if not self:GetCaster():CanCast(self) then return false end
if not self:IsCooldownReady() then return false end
local caster = self:GetCaster()
--caster:EmitSound("Hero_Centaur.HoofStomp")
StartAnimation(caster, {duration=s... | mit |
nasomi/darkstar | scripts/zones/Nashmau/npcs/Tsutsuroon.lua | 38 | 1260 | -----------------------------------
-- Area: Nashmau
-- NPC: Tsutsuroon
-- Type: Tenshodo Merchant
-- @pos -15.193 0.000 31.356 53
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/global... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Giddeus/npcs/Laa_Mozi.lua | 17 | 1983 | -----------------------------------
-- Area: Giddeus
-- NPC: Laa Mozi
-- Involved in Mission 1-3
-- @pos -22 0 148 145
-----------------------------------
package.loaded["scripts/zones/Giddeus/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/... | gpl-3.0 |
nicholas-leonard/nn | Max.lua | 8 | 1917 | local Max, parent = torch.class('nn.Max', 'nn.Module')
function Max:__init(dimension, nInputDims)
parent.__init(self)
dimension = dimension or 1
self.dimension = dimension
-- do not assign default value to nInputDims or it will break backward compatibility
self.nInputDims = nInputDims
end
function Max:... | bsd-3-clause |
nasomi/darkstar | scripts/zones/Northern_San_dOria/npcs/Charmealaut.lua | 38 | 1045 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Charmealaut
-- Type: Merchant
-- @zone: 231
-- @pos 0.000 -0.501 29.303
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
----... | gpl-3.0 |
icplus/OP-SDK | package/ramips/ui/luci-mtk/src/protocols/ppp/luasrc/model/cbi/admin_network/proto_ppp.lua | 59 | 3761 | --[[
LuCI - Lua Configuration Interface
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
local ma... | gpl-2.0 |
thesabbir/luci | applications/luci-app-diag-devinfo/luasrc/model/cbi/luci_diag/mactodevinfo.lua | 61 | 1058 | -- Copyright 2009 Daniel Dickinson
-- Licensed to the public under the Apache License 2.0.
m = Map("mactodevinfo", luci.i18n.translate("MAC Device Info Overrides"), translate("Override the information returned by the MAC to Device Info Script (mac-to-devinfo) for a specified range of MAC Addresses"))
s = m:section(Ty... | apache-2.0 |
nasomi/darkstar | scripts/globals/items/marinara_pizza_+1.lua | 14 | 1646 | -----------------------------------------
-- ID: 5744
-- Item: marinara_pizza +1
-- Food Effect: 4hours, All Races
-----------------------------------------
-- Health Points 25
-- Attack +21% (cap 55)
-- Accuracy +11% (cap 58)
-- Undead Killer
-----------------------------------------
require("scripts/globa... | gpl-3.0 |
nasomi/darkstar | scripts/globals/abilities/tranquility.lua | 28 | 1191 | -----------------------------------
-- Ability: Tranquility
-- Your next white magic spell will generate less enmity.
-- Obtained: Scholar Level 75 Tier 2 Merit Points
-- Recast Time: Stratagem Charge
-- Duration: 1 white magic spell or 60 seconds, whichever occurs first
--
-- Level |Charges |Recharge Time per... | gpl-3.0 |
Ingenious-Gaming/Starfall | lua/starfall/sfderma.lua | 1 | 22972 | -- Starfall Derma
-- This is for easily creating derma ui in the style of the Starfall Editor
-- Any derma added should not have anything to do with SF.Editor table apart from design elements e.g. colours, icons
-- Starfall Frame
PANEL = {}
PANEL.windows = {}
function PANEL:Init ()
self.windows[ #self.win... | bsd-3-clause |
nasomi/darkstar | scripts/zones/Windurst_Waters/npcs/Fuepepe.lua | 17 | 3657 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Fuepepe
-- Starts and Finishes Quest: Teacher's Pet
-- Involved in Quest: Making the grade, Class Reunion
-- @zone = 238
-- @pos = 161 -2 161
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Windurst_Woods/npcs/Jack_of_Spades.lua | 33 | 1329 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Jack of Spades
-- Adventurer's Assistant
-- Working 100%
-------------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
require("scripts/zones/Windurst_Woods/TextIDs");... | gpl-3.0 |
nasomi/darkstar | scripts/globals/items/bowl_of_eyeball_soup.lua | 35 | 1403 | -----------------------------------------
-- ID: 4453
-- Item: Bowl of Eyeball Soup
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Charisma -10
-- Health Regen While Healing 4
-- Accuracy 12
-- Ranged ACC 12
-----------------------------------------
require("scripts/globals/s... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Port_Windurst/npcs/Ohruru.lua | 17 | 4679 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Ohruru
-- Starts & Finishes Repeatable Quest: Catch me if you can
-- Working 90%
-- Involved in Quest: Wonder Wands
-- Note: Animation for his "Cure" is not functioning. Unable to capture option 1, so if the user says no, he heals them anyway... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Selbina/npcs/Humilitie.lua | 39 | 1459 | -----------------------------------
-- Area: Selbina
-- NPC: Humilitie
-- Reports the time remaining before boat arrival.
-- @pos 17.979 -2.39 -58.800 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextI... | gpl-3.0 |
nasomi/darkstar | scripts/zones/RuLude_Gardens/npcs/Crooked_Arrow.lua | 34 | 1393 | -----------------------------------
-- Area: Ru'Lud Gardens
-- NPC: Crooked Arrow
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/RuLude_Gardens/TextIDs");
require("scripts/global... | gpl-3.0 |
vavrusa/luajit-libuv | test/http_test.lua | 2 | 3259 | require 'uv/util/strict'
local loop = require 'uv.loop'
local http = require 'uv.http'
local join = require 'uv/util/join'
local expect = require 'uv/util/expect'
--------------------------------------------------------------------------------
-- basic server
-----------------------------------------------------------... | mit |
nasomi/darkstar | scripts/zones/Castle_Oztroja/MobIDs.lua | 65 | 1606 | -----------------------------------
-- Area: Castle Oztroja (151)
-- Comments: -- posX, posY, posZ
-- (Taken from 'mob_spawn_points' table)
-----------------------------------
-- Mee_Deggi_the_Punisher
Mee_Deggi_the_Punisher=17395800;
Mee_Deggi_the_Punisher_PH={
[17395798] = '1', -- -207.840, -0.498, 109.939
... | gpl-3.0 |
sbx320/lua_utils | ooplib.lua | 1 | 2776 | local __CLASSNAME__
local __BASECLASSES__
local __CLASSES__ = {}
local __MEMBERS__
local __IS_STATIC = false
function static_class(name)
__IS_STATIC = true
return class(name)
end
function maybeExtends(name)
if name == extends then
return extends
else
return buildClass(name)
end
end
... | mit |
nasomi/darkstar | scripts/globals/items/bowl_of_mushroom_stew.lua | 35 | 1464 | -----------------------------------------
-- ID: 4544
-- Item: mushroom_stew
-- Food Effect: 3hours, All Races
-----------------------------------------
-- Magic Points 40
-- Strength -1
-- Mind 4
-- MP Recovered While Healing 4
-- Enmity -4
-----------------------------------------
require("scripts/global... | gpl-3.0 |
coolflyreg/gs | common/protocols/validator.lua | 1 | 1855 | local errorcode = require("protocols.errorcode")
validator = validator or {
checkLegalCharacters = function(str, legalCharacters) -- return true for legal, false for illegal
local i = 1
local j = 1
local byte_str = 0
local byte_chars = 0
local contains = false
for i ... | gpl-2.0 |
cristiandonosoc/unexperiments | 03-Point Of No Return/lib/advanced_tile_loader/external/numberlua.lua | 16 | 2633 | -- dmlib.bit
-- Bitwise operations implemented entirely in Lua.
-- Represents bit arrays as non-negative Lua numbers.[1]
-- Can represent 32-bit bit arrays, when Lua is compiled
-- with lua_Number being double-precision IEEE 754 floating point.
--
-- Based partly on Roberto Ierusalimschy's post
-- in http://lua-users.o... | mit |
mlem/wesnoth | data/ai/micro_ais/cas/ca_herding_dog_move.lua | 26 | 1767 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local LS = wesnoth.require "lua/location_set.lua"
local function get_dog(cfg)
local dogs = AH.get_units_with_moves {
side = wesnoth.current.side,
{ "and", cfg.filter },
{ "not", { { "filter_adjacent... | gpl-2.0 |
nasomi/darkstar | scripts/globals/abilities/stutter_step.lua | 28 | 8023 | -----------------------------------
-- Ability: Stutter Step
-- Applies Weakened Daze. Lowers the targets magic resistance. If successful, you will earn two Finishing Moves.
-- Obtained: Dancer Level 40
-- TP Required: 10%
-- Recast Time: 00:05
-- Duration: First Step lasts 1 minute, each following Step extends i... | gpl-3.0 |
nasomi/darkstar | scripts/globals/weaponskills/aeolian_edge.lua | 30 | 1342 | -- Aeolian Edge
-- Dagger weapon skill
-- Delivers an area attack that deals wind elemental damage. Damage varies with TP.
-- Skill Level: 290
-- Aligned with the Breeze Gorget, Soil Gorget & Thunder Gorget.
-- Aligned with the Breeze Belt, Soil Belt & Thunder Belt.
-- Element: Wind
-- Skillchain Properties: Imp... | gpl-3.0 |
Maxsteam/99998888 | plugins/isup.lua | 741 | 3095 | do
local socket = require("socket")
local cronned = load_from_file('data/isup.lua')
local function save_cron(msg, url, delete)
local origin = get_receiver(msg)
if not cronned[origin] then
cronned[origin] = {}
end
if not delete then
table.insert(cronned[origin], url)
else
for k,v in pairs(cronned[... | gpl-2.0 |
anthillsocial/bicrophonic1 | lib/json.lua | 14 | 15828 | -----------------------------------------------------------------------------
-- JSON4Lua: JSON encoding / decoding support for the Lua language.
-- json Module.
-- Author: Craig Mason-Jones
-- Homepage: http://json.luaforge.net/
-- Version: 0.9.40
-- This module is released under the MIT License (MIT).
-- Pleas... | gpl-2.0 |
Hello23-Ygopro/ygopro-ds | expansions/script/c27001007.lua | 1 | 1113 | --BT1-005 Furthering Destruction Champa
local ds=require "expansions.utility_dbscg"
local scard,sid=ds.GetID()
function scard.initial_effect(c)
ds.EnableBattleAttribute(c)
ds.AddSetcode(c,CHARACTER_CHAMPA,SPECIAL_TRAIT_GOD)
ds.AddPlayProcedure(c,COLOR_RED,2,1)
--give skill
ds.AddSingleAutoCombo(c,0,nil,scard.sktg,... | gpl-3.0 |
thesabbir/luci | applications/luci-app-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua | 61 | 5427 | -- Copyright 2009 Daniel Dickinson
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.luci_diag.devinfo_common", package.seeall)
require("luci.i18n")
require("luci.util")
require("luci.sys")
require("luci.cbi")
require("luci.model.uci")
local translate = luci.i18n.translate
local DummyVa... | apache-2.0 |
nasomi/darkstar | scripts/globals/items/loach_slop.lua | 35 | 1529 | -----------------------------------------
-- ID: 5669
-- Item: loach_slop
-- Food Effect: 3Hour,Group Food, All Races
-----------------------------------------
-- Accuracy % 7
-- Accuracy Cap 15
-- HP % 7
-- HP Cap 15
-- Evasion 3
-- (Did Not Add Group Food Effect)
-----------------------------------------
... | gpl-3.0 |
nasomi/darkstar | scripts/globals/chocobo.lua | 32 | 4958 | -------------------------------------------------
-- Chocobo functions
-- Info from:
-- http://wiki.ffxiclopedia.org/wiki/Chocobo_Renter
-- http://ffxi.allakhazam.com/wiki/Traveling_in_Vana'diel
-------------------------------------------------
require("scripts/globals/settings");
--[[--------------------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Yhoator_Jungle/npcs/Emila_RK.lua | 30 | 3051 | -----------------------------------
-- Area: Yhoator Jungle
-- NPC: Emila, R.K.
-- Border Conquest Guards
-- @pos -84.113 -0.449 224.902 124
-----------------------------------
package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
requir... | gpl-3.0 |
Hello23-Ygopro/ygopro-ds | expansions/script/c27001005.lua | 1 | 1578 | --BT1-003 Assassin Hit
local ds=require "expansions.utility_dbscg"
local scard,sid=ds.GetID()
function scard.initial_effect(c)
ds.EnableLeaderAttribute(c)
ds.AddSetcode(c,SPECIAL_TRAIT_ALIEN,CHARACTER_HIT)
--draw
ds.AddSingleAutoAttack(c,0,nil,ds.hinttg,scard.drop)
--negate skill
local e1=Effect.CreateEffect(c)
... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Sorrowful_Sage.lua | 29 | 2456 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Sorrowful Sage
-- Type: Assault Mission Giver
-- @pos 134.096 0.161 -30.401 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Lower_Delkfutts_Tower/npcs/Cermet_Door.lua | 17 | 1161 | -----------------------------------
-- Area: Lower Delkfutt's Tower
-- NPC: Cermet Door
-- Notes: Leads to Upper Delkfutt's Tower.
-- @pos 524 16 20 184
-----------------------------------
require("scripts/globals/settings");
-----------------------------------
-- onTrade Action
------------------------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Boneyard_Gully/bcnms/head_wind.lua | 17 | 1705 | -----------------------------------
-- Area: Boneyard_Gully
-- Name: head_wind
-- BCNM: 672
-----------------------------------
package.loaded["scripts/zones/Boneyard_Gully/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Boneyard_Gully/TextIDs"... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Windurst_Waters/npcs/Maqu_Molpih.lua | 30 | 1701 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Maqu Molpih
-- Only sells when Windurst controlls Aragoneu Region
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/events/harvest_festivals")
require("scripts/globals/shop");
require("scripts... | gpl-3.0 |
EnjoyHacking/nn | SpatialZeroPadding.lua | 44 | 5655 | local SpatialZeroPadding, parent = torch.class('nn.SpatialZeroPadding', 'nn.Module')
function SpatialZeroPadding:__init(pad_l, pad_r, pad_t, pad_b)
parent.__init(self)
self.pad_l = pad_l
self.pad_r = pad_r or self.pad_l
self.pad_t = pad_t or self.pad_l
self.pad_b = pad_b or self.pad_l
end
function Spat... | bsd-3-clause |
icplus/OP-SDK | package/ramips/ui/luci-mtk/src/applications/luci-statistics/luasrc/model/cbi/luci_statistics/unixsock.lua | 80 | 1455 | --[[
Luci configuration model for statistics - collectd unixsock plugin configuration
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the Lice... | gpl-2.0 |
haka-security/haka | modules/protocol/tcp/test/create.lua | 2 | 1191 | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
-- Test that will duplicate a tcp connection
local ipv4 = require("protocol/ipv4")
require("protocol/tcp")
require("... | mpl-2.0 |
jkeywo/KFactorioMods | k-ruins_0.1.1/stdlib/log/logger.lua | 8 | 4009 | --- Logger module
-- @module Logger
Logger = {}
--- Creates a new logger object.<p>
-- In debug mode, the logger writes immediately. Otherwise the loggers buffers lines.
-- The logger flushes after 60 seconds has elapsed since the last message.
-- <p>
-- When loggers are created, a table of options may be specified. ... | mit |
KlonZK/Zero-K | units/cremcom1.lua | 2 | 8158 | unitDef = {
unitname = [[cremcom1]],
name = [[Knight Commander]],
description = [[Mobile Assault Commander, Builds at 10 m/s]],
acceleration = 0.18,
activateWhenBuilt = true,
amphibious = [[1]],
autoHeal = 5,
brakeRate ... | gpl-2.0 |
KlonZK/Zero-K | LuaUI/Widgets/chili_new/controls/control.lua | 8 | 38837 | --//=============================================================================
--- Control module
--- Control fields.
-- Inherits from Object.
-- @see object.Object
-- @table Control
-- @tparam {left,top,right,bottom} padding table of padding, (default {5,5,5,5})
-- @number[opt=1.5] borderThickness border thicknes... | gpl-2.0 |
chuanli11/CNNMRF | transfer_CNNMRF_wrapper.lua | 1 | 22761 | require 'torch'
require 'nn'
require 'image'
require 'paths'
require 'loadcaffe'
paths.dofile('mylib/myoptimizer.lua')
paths.dofile('mylib/tv.lua')
paths.dofile('mylib/mrf.lua')
paths.dofile('mylib/helper.lua')
paths.dofile('mylib/content.lua')
torch.setdefaulttensortype('torch.FloatTensor') -- float as default tenso... | mit |
KlonZK/Zero-K | scripts/benzcom.lua | 4 | 9320 | include "constants.lua"
local spSetUnitShieldState = Spring.SetUnitShieldState
--------------------------------------------------------------------------------
-- pieces
--------------------------------------------------------------------------------
local pieceMap = Spring.GetUnitPieceMap(unitID)
local HAS_GATTLING ... | gpl-2.0 |
meisme/ProjectPorcupine | Assets/StreamingAssets/LUA/Overlay.lua | 10 | 2025 | -- Example of overlay function
-- Input: tile, the current tile for which the
-- overlay wants to display the data
-- Input: world, world class
-- Return: an integer (by default should be scaled between 0 and 255)
function oxygenValueAt(tile)
if tile == nil then
return 0
end
room = tile.room
if ... | gpl-3.0 |
KlonZK/Zero-K | LuaRules/Configs/MetalSpots/Altored_Arctic.lua | 17 | 3564 | return {
spots = {
{x = 7832, z = 3208, metal = 1.1840000152588},
{x = 6152, z = 3816, metal = 1.9776002168655},
{x = 1128, z = 6520, metal = 1.1296001672745},
{x = 1928, z = 6312, metal = 1.8752002716064},
{x = 7256, z = 2984, metal = 1.4048000574112},
{x = 6296, z = 6936, metal = 1.1055999994278},
{x = 3256, ... | gpl-2.0 |
KlonZK/Zero-K | LuaRules/Gadgets/unit_transport_ai_buttons.lua | 10 | 9075 | -- $Id: unit_transport_ai_buttons.lua 3986 2009-02-22 01:56:11Z licho $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "TransportAIbuttons",
desc ... | gpl-2.0 |
brimworks/luv | tests/test-process.lua | 3 | 2465 | return require('lib/tap')(function (test)
test("test disable_stdio_inheritance", function (print, p, expect, uv)
uv.disable_stdio_inheritance()
end)
test("process stdout", function (print, p, expect, uv)
local stdout = uv.new_pipe(false)
local handle, pid
handle, pid = uv.spawn(uv.exepath(), {
... | apache-2.0 |
iamgreaser/seabase | pkg/base/obj/floor.lua | 1 | 1419 | --[[
Copyright (C) 2013 Ben "GreaseMonkey" Russell & contributors
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpo... | gpl-2.0 |
KlonZK/Zero-K | LuaRules/Gadgets/91_unit_nanoframe_death.lua | 4 | 5097 | -- $Id: unit_terraform.lua 3299 2008-11-25 07:25:57Z google frog $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "Nano Frame Death Handeling_91",
desc ... | gpl-2.0 |
fivejjs/treelstm | models/BinaryTreeLSTM.lua | 10 | 5977 | --[[
A Binary Tree-LSTM with input at the leaf nodes.
--]]
local BinaryTreeLSTM, parent = torch.class('treelstm.BinaryTreeLSTM', 'treelstm.TreeLSTM')
function BinaryTreeLSTM:__init(config)
parent.__init(self, config)
self.gate_output = config.gate_output
if self.gate_output == nil then self.gate_output = tr... | gpl-2.0 |
parsaalemi/antispambot | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
dajhorn/openwrt-packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/interfaceconfig.lua | 74 | 7228 | -- ------ extra functions ------ --
function interfaceCheck()
metricValue = ut.trim(sys.exec("uci -p /var/state get network." .. arg[1] .. ".metric"))
if metricValue == "" then -- no metric
errorNoMetric = 1
else -- if metric exists create list of interface metrics to compare against for duplicates
uci.cursor()... | gpl-2.0 |
KlonZK/Zero-K | LuaRules/Gadgets/dbg_animator.lua | 7 | 6670 | ------------------------
function gadget:GetInfo()
return {
name = "Animator",
desc = "v0.002 Moves and turns pieces.",
author = "CarRepairer & knorke",
date = "2010-03-05",
license = "raubkopierer sind verbrecher",
layer = 0,
enabled = false,
}
end
local fu... | gpl-2.0 |
complynx/nodemcu-IoT | lua_modules/yeelink/yeelink_lib.lua | 73 | 3136 |
-- ***************************************************************************
-- Yeelink Updata Libiary Version 0.1.2 r1
--
-- Written by Martin
-- but based on a script of zhouxu_o from bbs.nodemcu.com
--
-- MIT license, http://opensource.org/licenses/MIT
-- **********************************************************... | mit |
annulen/premake-dev-rgeary | tests/config/test_fileconfig.lua | 1 | 2521 | --
-- tests/config/test_fileconfig.lua
-- Test the config object's file configuration accessor.
-- Copyright (c) 2012 Jason Perkins and the Premake project
--
T.config_fileconfig = { }
local suite = T.config_fileconfig
local project = premake5.project
local config = premake5.config
--
-- Setup and teardown
--
... | bsd-3-clause |
thuehn/Minstrel-Blues | measurement/minstrel-measurement/tests/config.lua | 2 | 2204 | config = require ('Config')
require ('misc')
pprint = require ('pprint')
assert ( Config.load_config ( "tests/config_file.lua" ) )
assert ( ctrl == "A" )
assert ( table_size ( connections ) == 2 )
assert ( table_size ( nodes ) == 6 )
local a = Config.find_node ( "A", nodes )
local b = Config.find_node ( "B", nodes ... | gpl-2.0 |
KlonZK/Zero-K | units/armstiletto_laser.lua | 2 | 5945 | unitDef = {
unitname = [[armstiletto_laser]],
name = [[Thunderbird]],
description = [[Disarming Lightning Bomber]],
amphibious = true,
buildCostEnergy = 550,
buildCostMetal = 550,
buildPic = [[armstiletto_laser.png]],
buildTime = 5... | gpl-2.0 |
zcsteele/turbo | turbo/socket_ffi.lua | 7 | 15050 | --- Turbo.lua Socket Module
--
-- Copyright 2013 John Abrahamsen
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by ... | apache-2.0 |
ids1024/naev | dat/factions/spawn/proteron.lua | 1 | 3427 | include("dat/factions/spawn/common.lua")
-- @brief Spawns a small patrol fleet.
function spawn_patrol ()
local pilots = {}
local r = rnd.rnd()
if r < 0.5 then
scom.addPilot( pilots, "Proteron Derivative", 20 );
elseif r < 0.8 then
scom.addPilot( pilots, "Proteron Derivative", 20 );
... | gpl-3.0 |
sdgdsffdsfff/Luawa | request.lua | 2 | 3356 | -- Luawa
-- File: request.lua
-- Desc: holds/prepares request data (gets & posts)
local setmetatable = setmetatable
local ngx = ngx
local luawa = require('luawa.core')
local request = {}
-- Init
function request:_init()
self.session = luawa.session
self.utils = luawa.utils
end
-- Start
function request:_... | mit |
KlonZK/Zero-K | scripts/shipraider.lua | 4 | 3353 | 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 = ... | gpl-2.0 |
mbattersby/LiteMount | UI/MountsFilter.lua | 1 | 9473 | --[[----------------------------------------------------------------------------
LiteMount/UI/MountsFilter.lua
Options frame for the mount list.
Copyright 2011-2021 Mike Battersby
----------------------------------------------------------------------------]]--
local _, LM = ...
local L = LM.Localize
local ... | gpl-2.0 |
twoscomplement/tundra | scripts/tundra/tools/msvc-winsdk.lua | 28 | 4318 | -- msvc-winsdk.lua - Use Microsoft Windows SDK 7.1 or later to build.
module(..., package.seeall)
local native = require "tundra.native"
local os = require "os"
if native.host_platform ~= "windows" then
error("the msvc toolset only works on windows hosts")
end
local function get_host_arch()
local snative = nati... | gpl-3.0 |
focusworld/focus_asp | plugins/boobs.lua | 150 | 1613 | 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 |
LordZamy/pokemon-love | src/player/controller.lua | 1 | 2053 | PlayerController = {}
local player
function PlayerController:init(playerObject)
-- set local copy of player to reference passed in object
player = playerObject
-- load sprite sheet
player:sheet("assets/spritesheets/player_animations.png")
-- set up grid
-- basic player animations are 16x22 p... | mit |
KlonZK/Zero-K | effects/emg.lua | 25 | 12010 | -- emg_shells_m
-- emg_hit
-- flashplosion
-- flashmuzzle1
-- emg_hit_he
-- brawlimpacts
-- brawlermuzzle
-- emg_shells_l
-- emg_hit_water
return {
["emg_shells_m"] = {
usedefaultexplosions = false,
shells = {
air = true,
class = [[CSimpleParticleSystem]],
count ... | gpl-2.0 |
ld-test/pdh | examples/monitor_by_name.lua | 2 | 2037 |
local PROCESS_NAME = arg[1] or "notepad"
local COUNTER_NAME = arg[2] or "% Processor Time"
local pdh = require "pdh"
local T = pdh.translate_path
local assert = function(...) if not ... then return assert(..., tostring((select(2, ...)))) end return ... end
local query = pdh.query()
local counterPid = assert(query:... | mit |
mohammadclashclash/telefree | plugins/all.lua | 264 | 4202 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
caa-dev-apps/libcef_v2 | LuaJIT-2.0.0-beta8/dynasm/dasm_arm.lua | 2 | 29255 | ------------------------------------------------------------------------------
-- DynASM ARM module.
--
-- Copyright (C) 2005-2011 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _in... | mit |
annulen/premake-dev-rgeary | tests/actions/codeblocks/codeblocks_files.lua | 21 | 1664 | --
-- tests/actions/codeblocks/codeblocks_files.lua
-- Validate generation of files block in CodeLite C/C++ projects.
-- Copyright (c) 2011 Jason Perkins and the Premake project
--
T.codeblocks_files = { }
local suite = T.codeblocks_files
local codeblocks = premake.codeblocks
--
-- Setup
--
local sln, prj
f... | bsd-3-clause |
aqasaeed/megazeus | bot/utils.lua | 239 | 13499 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
http.TIMEOUT = 10
funct... | gpl-2.0 |
KlonZK/Zero-K | units/dante.lua | 3 | 11238 | unitDef = {
unitname = [[dante]],
name = [[Dante]],
description = [[Assault/Riot Strider]],
acceleration = 0.0984,
brakeRate = 0.2392,
buildCostEnergy = 3500,
buildCostMetal = 3500,
builder = false,
buildPic = [[dante.p... | gpl-2.0 |
KlonZK/Zero-K | LuaUI/i18nlib/spec/i18n_variants_spec.lua | 21 | 2057 | require 'spec.assert_same'
local variants = require 'i18n.variants'
describe("i18n.variants", function()
it("is a table", function()
assert_equal('table', type(variants))
end)
describe(".ancestry", function()
it("returns just the locale for simple locales", function()
assert_same(variants.ancestry... | gpl-2.0 |
zzzaidddddd/zzaiddd | plugins/map.lua | 1 | 1873 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ (@zzaiddd) : المطور ▀▄ ▄▀
▀▄ ▄▀ (@zzzaiddd) : قناة ▀▄ ▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄▀▀▄▄... | gpl-2.0 |
caricatura/Healbot | HealBot/HealBot_Skins.lua | 1 | 131598 | local LSM = HealBot_Libs_LSM() --LibStub("LibSharedMedia-3.0")
--local vResetSkinPrevSkin=""
local frameScale = 1
local bheight= 20
local bWidth = 120
local pWidth = 120
local EnemyTargetBarSize=40
local bOutline = 1
local btextheight,btextheight2=10,10
local btextoutline,btextoutline2=1,1
local b,bar,icon,txt,pIcon,ex... | gpl-2.0 |
lawnight/skynet | service/launcher.lua | 24 | 3372 | local skynet = require "skynet"
local core = require "skynet.core"
require "skynet.manager" -- import manager apis
local string = string
local services = {}
local command = {}
local instance = {} -- for confirm (function command.LAUNCH / command.ERROR / command.LAUNCHOK)
local function handle_to_address(handle)
retu... | mit |
KlonZK/Zero-K | effects/yellow_lightning.lua | 8 | 19026 | -- yellow_lightning_bomb
-- yellow_lightning_bluebolts
-- yellow_lightning_groundflash
-- yellow_lightning_bomb_yellowbolts
-- yellow_lightning_muzzle
-- yellow_lightning_yellowbolts
-- yellow_lightning_bomb_bluebolts
-- yellow_lightningplosion
-- yellow_lightning_stormbolt
return {
["mixed_white_lightning_bomb_smal... | gpl-2.0 |
hacker44-h44/original | plugins/GroupManager.lua | 39 | 11325 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if not is_admin(msg) then
return "This service is private for SUDO (@shayansoft)"
end
local group_creator = msg.from.print_name
... | gpl-2.0 |
alimashmamali/fff | plugins/google.lua | 722 | 1037 | local function googlethat(query)
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&"
local parameters = "q=".. (URL.escape(query) or "")
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
local r... | gpl-2.0 |
dani-sj/mahdii | plugins/google.lua | 722 | 1037 | local function googlethat(query)
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&"
local parameters = "q=".. (URL.escape(query) or "")
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
local r... | gpl-2.0 |
Wiladams/REMOTE | tflremote/bmpcodec.lua | 1 | 2572 | -- BmpCodec.lua
-- Write out a Drawing Context into a
-- stream as a BMP encoded image
local MemoryStream = require("tflremote.memorystream");
local BinaryStream = require("tflremote.binarystream");
local ImageBitCount = 32;
local PixelOffset = 54;
local BI_RGB = 0;
-- params.CapturedStream = MemoryStream(strea... | mit |
KlonZK/Zero-K | LuaUI/utility_two.lua | 17 | 1410 | -- Utility function for ZK
-- Will try to read LUA content from target file and create BACKUP if have a successful read (in user's Spring folder) OR DELETE them if have a failure read
-- This prevent corrupted file from being used.
-- Note: currently only a "table" is considered a valid file
function CheckLUAFileAndBa... | gpl-2.0 |
omid1212/sss | bot/seedbot.lua | 1 | 8637 | 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 = '1.0'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
retu... | gpl-2.0 |
tunneff/tef | deps/luasocket/etc/forward.lua | 43 | 2066 | -- load our favourite library
local dispatch = require("dispatch")
local handler = dispatch.newhandler()
-- make sure the user knows how to invoke us
if #arg < 1 then
print("Usage")
print(" lua forward.lua <iport:ohost:oport> ...")
os.exit(1)
end
-- function to move data from one socket to the other
lo... | lgpl-3.0 |
jkeywo/KFactorioMods | k-nineworlds_0.0.0/control.lua | 1 | 1950 | -- factorio libs
require "util"
require "config"
-- std libs
require("stdlib.area.area")
require("stdlib.area.position")
require("stdlib.area.chunk")
require("stdlib.entity.entity")
require("stdlib.event.event")
require("stdlib.table")
-- config
DEBUG = true
-- nw libs
require("lib.core")
Scheduler = require("lib.sc... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.