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 |
|---|---|---|---|---|---|
fengshao0907/Atlas-1 | lib/admin-sql.lua | 40 | 8858 | --[[ $%BEGINLICENSE%$
Copyright (c) 2008, 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 distribut... | gpl-2.0 |
dschoeffm/MoonGen | rfc2544/master.lua | 9 | 7915 | package.path = package.path .. "rfc2544/?.lua;../rfc2544/?.lua;"
if master == nil then
master = "dummy"
end
local dpdk = require "dpdk"
local device = require "device"
local arp = require "proto.arp"
local throughput = require "benchmarks.throughput"
local latency = require "be... | mit |
dicebox/minetest-france | minetest/builtin/mainmenu/tab_server.lua | 1 | 6540 | --Minetest
--Copyright (C) 2014 sapier
--
--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 2.1 of the License, or
--(at your option) any later version.
--
--This program is ... | gpl-3.0 |
NSAKEY/prosody-modules | mod_vjud/vcard.lib.lua | 32 | 9198 | -- Copyright (C) 2011-2012 Kim Alvefur
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-- TODO
-- Fix folding.
local st = require "util.stanza";
local t_insert, t_concat = table.insert, table.concat;
local type = type;
local next, pairs, ipairs = n... | mit |
tianxiawuzhei/cocos-quick-lua | quick/framework/cc/ui/UIPushButton.lua | 2 | 4731 |
--[[
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 |
mqmaker/witi-openwrt | package/ramips/ui/luci-mtk/src/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins6.lua | 32 | 7312 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2009 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://w... | gpl-2.0 |
hleuwer/luayats | examples/rstp-test-play-pathcost.lua | 1 | 3403 | require "yats.rstp.play"
linkToBreak = tonumber(os.getenv("TK_LINK")) or 3
--linkToBreak = 1
NumberOfBridges = 7
-- Setting test non nil provides additional output.
--test = true
test = nil
-- Init the yats random generator.
yats.log:info("Init random generator.")
yats.sim:SetRand(10)
yats.sim:setSlotLength(1e-3)
--... | gpl-2.0 |
bigdogmat/wire | lua/wire/client/cl_wire_map_interface.lua | 17 | 2510 | -- The client part of the wire map interface.
-- It's for the clientside wire ports adding and removing, also for the rendering stuff.
-- It's in in this folder, because point entities are serverside only.
-- Removing wire stuff and other changes that were done.
local OverRiddenEnts = {}
local function RemoveWire(Enti... | apache-2.0 |
FrisKAY/MineOS_Server | Applications/reload.lua | 1 | 1428 | local seri = require("serialization")
local fs = require("filesystem")
local github = require("github")
local args = {...}
---------------------------------------------------------------------------------------
local function printUsage()
print(" ")
print(" Использование:")
print(" reload <путь к файлу> - пере... | gpl-3.0 |
cshore/luci | applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev.lua | 39 | 3926 | -- Copyright 2015 Jian Chang <aa65535@live.com>
-- Licensed to the public under the Apache License 2.0.
local m, s, o, e, a
if luci.sys.call("pidof ss-redir >/dev/null") == 0 then
m = Map("shadowsocks-libev", translate("ShadowSocks-libev"), translate("ShadowSocks-libev is running"))
else
m = Map("shadowsocks-libev"... | apache-2.0 |
boundary/boundary-nagios-plugins | metric_job_test.lua | 1 | 1145 | -- Copyright 2014 Boundary,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... | apache-2.0 |
dicebox/minetest-france | mods/farming/cocoa.lua | 3 | 4343 |
local S = farming.intllib
-- place cocoa
function place_cocoa(itemstack, placer, pointed_thing, plantname)
local pt = pointed_thing
-- check if pointing at a node
if not pt or pt.type ~= "node" then
return
end
local under = minetest.get_node(pt.under)
-- return if any of the nodes are not registered
if n... | gpl-3.0 |
pkulchenko/ZeroBraneEduPack | moai-samples/live-coding-simple/main.lua | 2 | 1032 | if not initialized then
MOAISim.openWindow("Live coding", 320, 480)
local viewport = MOAIViewport.new()
viewport:setSize(320, 480)
viewport:setScale(320, 480)
local gfxQuad = MOAIGfxQuad2D.new()
gfxQuad:setTexture("zbstudio.png")
gfxQuad:setRect(-32, -32, 32, 32)
prop1 = MOAIProp2D.new()
... | mit |
arventwei/WioEngine | Tools/jamplus/src/luaplus/Src/Modules/luasec/src/ssl.lua | 1 | 4470 | ------------------------------------------------------------------------------
-- LuaSec 0.5
-- Copyright (C) 2006-2014 Bruno Silvestre
--
------------------------------------------------------------------------------
local _M = {}
local core = require("ssl.core")
local context = require("ssl.context")
local x509 ... | mit |
facebook/fbcunn | fbcunn/init.lua | 1 | 3029 | require 'nn'
require 'fbnn'
require 'cunn'
require 'libfbcunn'
require 'fbcunn.cuda_ext'
include('AbstractParallel.lua')
include('BatchNormalization.lua')
include('CuBLASWrapper.lua')
include('DataParallel.lua')
include('FeatureLPPooling.lua')
include('FFTWrapper.lua')
include('HalfPrecision.lua')
include('LookupTable... | bsd-3-clause |
nyov/luakit | lib/lousy/widget/tablist.lua | 8 | 3277 | -------------------------------------------------------------
-- @author Mason Larobina <mason.larobina@gmail.com> --
-- @copyright 2010 Mason Larobina --
-------------------------------------------------------------
-- Grab environment we need
local assert = assert
local setmetatable = ... | gpl-3.0 |
rickvanbodegraven/nodemcu-firmware | lua_modules/ds3231/ds3231.lua | 56 | 1905 | --------------------------------------------------------------------------------
-- DS3231 I2C module for NODEMCU
-- NODEMCU TEAM
-- LICENCE: http://opensource.org/licenses/MIT
-- Tobie Booth <tbooth@hindbra.in>
--------------------------------------------------------------------------------
local moduleName = ...
loc... | mit |
4w/xtend | xindustrial/molded_mese_crystals.lua | 2 | 3614 | local molds_output = _xtend.get_option('mese_molds_output')
local powder_output = _xtend.get_option('mese_powder_output')
local crystals_output = _xtend.get_option('molded_mese_crystal_output')
local loosed_cobble_output = _xtend.get_option('loosed_cobblestone_output')
local powder_output = _xtend.get_option('impured_m... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c512000101.lua | 2 | 1479 | --Rescuer from the Grave
function c512000101.initial_effect(c)
--negate attack and end battle phase
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetRange(LOCATION_GRAVE)
e1:SetCondition(c512000101.con)
e1:SetCost(c512000101.cost)
e1:SetOp... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c11271.lua | 2 | 4234 | --Stymphal Garuda
function c11271.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x2BF2),aux.NonTuner(nil),1)
c:EnableReviveLimit()
--atk change
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(11271,0))
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetTy... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c87002903.lua | 2 | 2814 | --May-Raias Deep Behemoth
function c87002903.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(87002903,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_PHASE+PHASE_BATTLE)
e1:SetRange(LOCATION_MZONE)
... | gpl-3.0 |
db260179/openwrt-bpi-r1-luci | contrib/luasrcdiet/lua/optlex.lua | 125 | 31588 | --[[--------------------------------------------------------------------
optlex.lua: does lexer-based optimizations
This file is part of LuaSrcDiet.
Copyright (c) 2008 Kein-Hong Man <khman@users.sf.net>
The COPYRIGHT file describes the conditions
under which this software may be distributed.
See the Chan... | apache-2.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c43811018.lua | 2 | 5368 | --Phantasm Death Colossus
function c43811018.initial_effect(c)
--Special Limit
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(c43811018.splimit)
c:RegisterEffect(e1)
--Unaffected
... | gpl-3.0 |
waytim/darkstar | scripts/globals/mobskills/Vorpal_Wheel.lua | 37 | 1063 | ---------------------------------------------
-- Vorpal Wheel
--
-- Description: Throws a slicing wheel at a single target.
-- Type: Physical
-- Utsusemi/Blink absorb: No
-- Range: Unknown
-- Notes: Only used by Gulool Ja Ja, and will use it as a counterattack to any spells cast on him. Damage increases as his he... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Windurst_Woods/npcs/Gioh_Ajihri.lua | 6 | 2709 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Gioh Ajihri
-- Starts & Finishes Repeatable Quest: Twinstone Bonding
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scri... | gpl-3.0 |
wanmaple/MWFrameworkForCocosLua | asset/src/cocos/cocos2d/OpenglConstants.lua | 100 | 27127 |
if not gl then return end
gl.GCCSO_SHADER_BINARY_FJ = 0x9260
gl._3DC_XY_AMD = 0x87fa
gl._3DC_X_AMD = 0x87f9
gl.ACTIVE_ATTRIBUTES = 0x8b89
gl.ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8b8a
gl.ACTIVE_PROGRAM_EXT = 0x8259
gl.ACTIVE_TEXTURE = 0x84e0
gl.ACTIVE_UNIFORMS = 0x8b86
gl.ACTIVE_UNIFORM_MAX_LENGTH = 0x8b87... | apache-2.0 |
waytim/darkstar | scripts/globals/items/soft-boiled_egg.lua | 18 | 1174 | -----------------------------------------
-- ID: 4532
-- Item: soft-boiled_egg
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 20
-- Magic 20
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----... | gpl-3.0 |
Em30-tm-lua/Emc | .luarocks/share/lua/5.2/luarocks/path_cmd.lua | 18 | 2345 |
--- @module luarocks.path_cmd
-- Driver for the `luarocks path` command.
local path_cmd = {}
local util = require("luarocks.util")
local deps = require("luarocks.deps")
local cfg = require("luarocks.cfg")
path_cmd.help_summary = "Return the currently configured package path."
path_cmd.help_arguments = ""
path_cmd.he... | gpl-2.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/items/serving_of_beaugreen_sautee.lua | 3 | 1304 | -----------------------------------------
-- ID: 4572
-- Item: serving_of_beaugreen_sautee
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Agility 1
-- Vitality -1
-- Ranged ATT % 7
-- Ranged ATT Cap 15
-----------------------------------------
require("scripts/globals/status");
-------... | gpl-3.0 |
waytim/darkstar | scripts/zones/Leujaoam_Sanctum/instances/leujaoam_cleansing.lua | 28 | 2422 | -----------------------------------
--
-- Assault: Leujaoam Cleansing
--
-----------------------------------
require("scripts/globals/instance")
local Leujaoam = require("scripts/zones/Leujaoam_Sanctum/IDs");
-----------------------------------
-- afterInstanceRegister
-----------------------------------
function ... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/weaponskills/uriel_blade.lua | 2 | 1391 | -----------------------------------
-- Uriel Blade
-- Sword weapon skill
-- Skill Level: NA
-- Delivers and area attack that deals light elemental damage. Damage varies with TP. Additional effect Flash.
-- Only avaliable durring Campaign Battle while weilding a Griffinclaw
-- Aligned with the Thunder Gorget & Breeze Go... | gpl-3.0 |
waytim/darkstar | scripts/zones/East_Sarutabaruta/npcs/Signpost.lua | 13 | 2116 | -----------------------------------
-- Area: East Sarutabaruta
-- NPC: Signpost
-----------------------------------
package.loaded["scripts/zones/East_Sarutabaruta/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/East_Sarutabaruta/TextIDs");
-----------------------------------
-- onTrade A... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c1143291.lua | 2 | 5278 | --ANTI-MATTER Dark Being, Zoohgtf
function c1143291.initial_effect(c)
--self destruct
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetOperation(c1143291.effop)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EVENT_SPSUMMON_SUCCESS)... | gpl-3.0 |
waytim/darkstar | scripts/zones/Bastok_Markets/npcs/Sinon.lua | 14 | 4321 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Sinon
-- Armor Storage NPC
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/armorstorage");
require("scrip... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c888000008.lua | 2 | 1595 | --Evil HERO Swamp Demon
function c888000008.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcCode2(c,79979666,84327329,true,true)
--spsummon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:Set... | gpl-3.0 |
wanmaple/MWFrameworkForCocosLua | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Widget.lua | 5 | 17791 |
--------------------------------
-- @module Widget
-- @extend ProtectedNode,LayoutParameterProtocol
-- @parent_module ccui
--------------------------------
-- Changes the percent that is widget's percent size<br>
-- param percent that is widget's percent size
-- @function [parent=#Widget] setSizePercent
-- @param se... | apache-2.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Sea_Serpent_Grotto/npcs/_4w5.lua | 4 | 2598 | -----------------------------------
-- Area: Sea Serpent Grotto
-- NPC: Silver Beastcoin Door
-- @zone 176
-- @pos 280 18.549 -100
-----------------------------------
package.loaded["scripts/zones/Sea_Serpent_Grotto/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scr... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Metalworks/npcs/Raibaht.lua | 2 | 2648 | -----------------------------------
-- Area: Metalworks
-- NPC: Raibaht
-- Starts and Finishes Quest: Dark Legacy
-- Involved in Quest: The Usual, Riding on the Clouds
-- @zone 237
-- @pos -27 -10 -1
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-------------------------... | gpl-3.0 |
waytim/darkstar | scripts/zones/LaLoff_Amphitheater/npcs/qm1_5.lua | 13 | 2440 | -----------------------------------
-- Area: LaLoff_Amphitheater
-- NPC: Shimmering Circle (BCNM Entrances)
-------------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
package.loaded["scripts/globals/bcnm"] = nil;
-------------------------------------
require("scripts/glob... | gpl-3.0 |
db260179/openwrt-bpi-r1-luci | applications/luci-app-ddns/luasrc/model/cbi/ddns/overview.lua | 3 | 9548 | -- Copyright 2014-2017 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed to the public under the Apache License 2.0.
local NXFS = require "nixio.fs"
local CTRL = require "luci.controller.ddns" -- this application's controller
local DISP = require "luci.dispatcher"
local HTTP = require "luc... | apache-2.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Port_San_dOria/npcs/Bonarpant.lua | 6 | 1318 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Bonarpant
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Port_San_dOria/TextIDs");
... | gpl-3.0 |
waytim/darkstar | scripts/globals/mobskills/Wanion.lua | 43 | 1329 | ---------------------------------------------------
-- Wanion
-- AoE of all status ailments it has.
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------... | gpl-3.0 |
waytim/darkstar | scripts/globals/abilities/pets/flaming_crush.lua | 29 | 1356 | ---------------------------------------------------
-- Flaming Crush M=10, 2, 2? (STILL don't know)
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/summon");
require("scripts/globals/magic");
require("scripts/globals/m... | gpl-3.0 |
grit-engine/grit-engine | engine/tests/engine/gfx_ranged_instances/test.lua | 2 | 1557 | gfx_colour_grade(`neutral.lut.png`)
gfx_fade_dither_map `stipple.png`
gfx_register_shader(`Money`, {
tex = {
uniformKind = "TEXTURE2D",
},
vertexCode = [[
var normal_ws = rotate_to_world(vert.normal.xyz);
]],
dangsCode = [[
out.diffuse = sample(mat.tex, vert.coord0.xy).rgb;... | mit |
TheOnePharaoh/YGOPro-Custom-Cards | script/c66666611.lua | 2 | 2359 | --Aetherial Counterforce
function c66666611.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY+CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_CHAINING)
e1:SetCountLimit(1,66666611)
e1:SetCondition(c66666611.condition)
e1:SetCost(c666666... | gpl-3.0 |
waytim/darkstar | scripts/zones/Xarcabard/npcs/qm7.lua | 12 | 1491 | -----------------------------------
-- Area: Xarcabard
-- NPC: qm7 (???)
-- Involved in Quests: RNG AF3 quest - Unbridled Passion
-- @pos -295.065 -25.054 151.250 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globa... | gpl-3.0 |
waytim/darkstar | scripts/zones/Abyssea-Tahrongi/npcs/qm14.lua | 17 | 1888 | -----------------------------------
-- Zone: Abyssea-Tahrongi
-- NPC: ???
-- Spawns: Glavoid
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/keyitems");
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(play... | gpl-3.0 |
waytim/darkstar | scripts/zones/Selbina/npcs/Tilala.lua | 13 | 1151 | -----------------------------------
-- Area: Selbina
-- NPC: Tilala
-- Guild Merchant NPC: Clothcrafting Guild
-- @pos 14.344 -7.912 10.276 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Port_Bastok/npcs/Oggbi.lua | 4 | 3115 | -----------------------------------
-- Area: Port Bastok
-- NPC: Oggbi
-- Starts and Finishes: Ghosts of the Past, The First Meeting
-- @zone 236
-- @pos -159 -7 5
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/global... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Windurst_Waters/npcs/Leepe-Hoppe.lua | 2 | 7656 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Leepe-Hoppe
-- Involved in Mission 1-3
-- @pos 13 -9 -197 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("script... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/The_Eldieme_Necropolis/npcs/_5fo.lua | 2 | 2330 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: North Plate
-- @zone 195
-- @pos 174 -32 50
-- 17576327
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------... | gpl-3.0 |
jixianliang/DBProxy | lib/rw-splitting.lua | 4 | 28990 | --[[ $%BEGINLICENSE%$
Copyright (c) 2007, 2009, 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 |
waytim/darkstar | scripts/zones/Lower_Jeuno/npcs/Creepstix.lua | 12 | 1561 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Creepstix
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
-----------------------------------
-- onTra... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c20912320.lua | 2 | 19695 | --Action Field - The Sacred Sword's Pedestal
function c20912320.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABLE)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PREDRAW)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Lufaise_Meadows/npcs/Ghost_Talker_IM.lua | 4 | 2902 | -----------------------------------
-- Area: Lufaise Meadows
-- NPC: Ghost Talker, I.M.
-- Border Conquest Guards
-- @pos 414.659 0.905 -52.417 24
-----------------------------------
package.loaded["scripts/zones/Lufaise_Meadows/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");... | gpl-3.0 |
gfgtdf/wesnoth-old | data/ai/micro_ais/cas/ca_recruit_random.lua | 4 | 4694 | local H = wesnoth.require "helper"
local AH = wesnoth.require("ai/lua/ai_helper.lua")
local LS = wesnoth.require "location_set"
local recruit_type
local ca_recruit_random = {}
function ca_recruit_random:evaluation(cfg)
-- Random recruiting from all the units the side has
-- Check if leader is on keep
lo... | gpl-2.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Heavens_Tower/npcs/Foo_Beibo.lua | 4 | 1036 | -----------------------------------
-- Area: Heavens Tower
-- NPC: Foo Beibo
-- Type: Standard NPC
-- @zone: 242
-- @pos: 10.717 -46 -28.629
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Heavens_Tower/TextIDs"] = nil;
-------------... | gpl-3.0 |
waytim/darkstar | scripts/globals/abilities/wind_maneuver.lua | 19 | 1605 | -----------------------------------
-- Ability: Wind Maneuver
-- Enhances the effect of wind attachments. Must have animator equipped.
-- Obtained: Puppetmaster level 1
-- Recast Time: 10 seconds (shared with all maneuvers)
-- Duration: 1 minute
-----------------------------------
require("scripts/globals/status");
re... | gpl-3.0 |
waytim/darkstar | scripts/zones/Rabao/npcs/Dancing_Wolf.lua | 13 | 1654 | -----------------------------------
-- Area: Rabao
-- NPC: Dancing Wolf
-- Type: Standard NPC
-- @zone: 247
-- @pos 7.619 7 81.209
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
-------------------------------... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c83030016.lua | 2 | 1532 | --Carefree Gate
function c83030016.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,83030016+EFFECT_COUNT_CODE_OATH)
e1:SetCost(c83030016.cost)
e1:SetTarget(c83030016.targ... | gpl-3.0 |
waytim/darkstar | scripts/zones/Bastok_Markets/npcs/Raghd.lua | 16 | 1292 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Raghd
-- Standard Merchant NPC
--
-- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("scripts/zon... | gpl-3.0 |
waytim/darkstar | scripts/zones/Apollyon/mobs/Barometz.lua | 4 | 1272 | -----------------------------------
-- Area: Apollyon NE
-- NPC: Barometz
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
---------------------------------... | gpl-3.0 |
Shayan123456/botttttt | plugins/inpm.lua | 243 | 3007 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c90000078.lua | 2 | 5444 | --Black Flag Artificer
function c90000078.initial_effect(c)
--Pendulum Summon
aux.EnablePendulumAttribute(c)
--Pendulum Limit
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CANNOT_NEGATE)
e1:SetCode(EFFECT_CANNOT_SPECI... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/items/pot_of_san_dorian_tea.lua | 3 | 1100 | -----------------------------------------
-- ID: 4494
-- Item: pot_of_san_dorian_tea
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Vitality -2
-- Charisma 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItem... | gpl-3.0 |
waytim/darkstar | scripts/zones/Windurst_Walls/npcs/Shinchai-Tocchai.lua | 13 | 1066 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Shinchai-Tocchai
-- Type: Moghouse Renter
-- @zone: 239
-- @pos -220.551 -0.001 -116.916
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil... | gpl-3.0 |
gfgtdf/wesnoth-old | data/campaigns/World_Conquest/lua/map/generator/savannah.lua | 4 | 2031 |
local function generate(length, villages, castle, iterations, size, players, island)
local res = wct_generator_settings_arguments( length, villages, castle, iterations, size, players, island)
res.max_lakes=10
res.min_lake_height=150
res.lake_size=125
res.river_frequency=100
res.temperature_size=8
res.roads=12
... | gpl-2.0 |
galek/crown | 3rdparty/bx/scripts/genie.lua | 22 | 1993 | --
-- Copyright 2010-2021 Branimir Karadzic. All rights reserved.
-- License: https://github.com/bkaradzic/bx#license-bsd-2-clause
--
newoption {
trigger = "with-amalgamated",
description = "Enable amalgamated build.",
}
newoption {
trigger = "with-crtnone",
description = "Enable build without CRT.",
}
solution ... | mit |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Windurst_Waters_[S]/npcs/Ampiro-Mapiro.lua | 4 | 1054 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Ampiro-Mapiro
-- Type: Standard NPC
-- @zone: 94
-- @pos: 131.380 -6.75 174.169
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = ... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Norg/npcs/Colleraie.lua | 4 | 1029 | -----------------------------------
-- Area: Norg
-- NPC: Colleraie
-- Type: Event Scene Replayer
-- @zone: 252
-- @pos: -24.684 0.097 -39.409
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
--------------------... | gpl-3.0 |
gfgtdf/wesnoth-old | data/campaigns/World_Conquest/lua/map/tools/filter_converter.lua | 4 | 5022 |
----------------------------------------------------------
---- A helper tool, that works (mostly) indpendently ----
---- of the rest to convert location filter wml to ----
---- the filter syntax used in this addon ----
---- (map:get_locations) ----
------------------------... | gpl-2.0 |
Kefta/gs_lib | lua/code_gs/lib/cl_render.lua | 1 | 6785 | -- FIXME: Add GetTexture and GetMaterial?
local gs_lib_clearpixelbuffer = CreateConVar("gs_lib_clearpixelbuffer", "0", FCVAR_ARCHIVE, "Clears the pixel buffer before rendering starts, preventing tearing when looking at a leak")
hook.Add("PreRender", "gs_lib", function()
if (gs_lib_clearpixelbuffer:GetBool()) then
... | mit |
TheOnePharaoh/YGOPro-Custom-Cards | script/c99990141.lua | 2 | 3600 | --SAO - Asuna ALO
function c99990141.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure2(c,nil,aux.NonTuner(Card.IsSetCard,9999))
c:EnableReviveLimit()
--500 ATK
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCod... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/items/steamed_catfish.lua | 3 | 1384 | -----------------------------------------
-- ID: 4557
-- Item: steamed_catfish
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 30
-- Magic % 1
-- Vitality 3
-- Intelligence 1
-- Mind -3
-- Earth Res 10
-----------------------------------------
require("scripts/globals/status");
-... | gpl-3.0 |
waytim/darkstar | scripts/zones/Giddeus/npcs/Harvesting_Point.lua | 13 | 1059 | -----------------------------------
-- Area: Giddeus
-- NPC: Harvesting Point
-----------------------------------
package.loaded["scripts/zones/Giddeus/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/harvesting");
require("scripts/zones/Giddeus/TextIDs");
---------------------------... | gpl-3.0 |
chrox/koreader | frontend/ui/screensaver.lua | 4 | 5094 | local DocumentRegistry = require("document/documentregistry")
local UIManager = require("ui/uimanager")
local Screen = require("device").screen
local DocSettings = require("docsettings")
local DEBUG = require("dbg")
local _ = require("gettext")
local Screensaver = {
}
function Screensaver:getCoverImage(file)
loca... | agpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Moh_Gates/Zone.lua | 3 | 1050 | -----------------------------------
--
-- Zone: Moh Gates
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Moh_Gates/TextIDs"] = nil;
require("scripts/zones/Moh_Gates/TextIDs");
-----------------------------------
-- onInitialize
----------------------------... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/spells/banishga_iii.lua | 2 | 1062 | -----------------------------------------
-- Spell: Banishga 3
-- Deals light damage to an enemy.
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function ... | gpl-3.0 |
waytim/darkstar | scripts/globals/items/loach_slop.lua | 18 | 1515 | -----------------------------------------
-- 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)
-----------------------------------------
require("sc... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/effects/shock.lua | 2 | 1139 | -----------------------------------
--
-- EFFECT_SHOCK
--
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c160002427.lua | 2 | 2655 | --Bio-Dragun of Gust Vine
function c160002427.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(160002427,0))
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCountLimit(1,160002427)
e1:SetTarget(c160002427.target)
e1:Se... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c59821140.lua | 2 | 8794 | --Samuel, The Darkness of Aetheria
function c59821140.initial_effect(c)
c:EnableReviveLimit()
--pendulum summon
aux.EnablePendulumAttribute(c)
--spsummon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFEC... | gpl-3.0 |
TheEggi/FTCCustom | extensions/Nightblade.lua | 1 | 2716 | -- Watch for FTC initialization
CALLBACK_MANAGER:RegisterCallback( "FTC_Ready" , function() InitializeNightblade() end )
-- Register the callback to fire whenever a spell is cast
function InitializeNightblade()
if ( FTC.Player.class == "Nightblade" ) then
-- Shadow Barrier
FTC.Nightblade = { ["stealth"] = Get... | apache-2.0 |
waytim/darkstar | scripts/globals/mobskills/Pinning_Shot.lua | 33 | 1044 | ---------------------------------------------
-- Pinning Shot
--
-- Description: Delivers a threefold ranged attack to targets in an area of effect. Additional effect: Bind
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: Unknown
-- Notes: Used only by Medusa.
------------------------------------... | gpl-3.0 |
CaptainPRICE/wire | lua/entities/gmod_wire_egp/lib/init.lua | 18 | 1289 | EGP = {}
--------------------------------------------------------
-- Include all other files
--------------------------------------------------------
function EGP:Initialize()
local Folder = "entities/gmod_wire_egp/lib/egplib/"
local entries = file.Find( Folder .. "*.lua", "LUA")
for _, entry in ipairs( entries ) ... | apache-2.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/items/hedgehog_pie.lua | 3 | 1831 | -----------------------------------------
-- ID: 5146
-- Item: hedgehog_pie
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 55
-- Strength 6
-- Vitality 2
-- Intelligence -3
-- Mind 3
-- Magic Regen While Healing 2
-- Attack % 18
-- Attack Cap 90
-- Accuracy 5
-- Ranged ATT % 18
--... | gpl-3.0 |
LuaDist2/prosody | plugins/mod_groups.lua | 3 | 3761 | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local groups;
local members;
local groups_file;
local jid, datamanager = require "util.jid", require "u... | mit |
dmccuskey/dmc-sockets | examples/dmc-sockets-basic/dmc_corona/lib/dmc_lua/lua_class.lua | 16 | 14025 | --====================================================================--
-- dmc_lua/lua_class.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2015 David McCuskey
Permission is hereby granted, fr... | mit |
waytim/darkstar | scripts/globals/items/m&p_doner_kabob.lua | 18 | 1159 | -----------------------------------------
-- ID: 5717
-- Item: M&P Doner Kabob
-- Food Effect: 5Min, All Races
-----------------------------------------
-- HP 5%
-- MP 5%
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------------... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Port_Windurst/npcs/Kuroido-Moido.lua | 3 | 3324 | -----------------------------------
-- Area: Port Windurst
-- NPC: Kuriodo-Moido
-- Involved In Quest: Making Amends, Wonder Wands
-- Starts and Finishes: Making Amens!
-- Working 100%
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------... | gpl-3.0 |
gfgtdf/wesnoth-old | data/lua/feeding.lua | 8 | 1383 |
local _ = wesnoth.textdomain 'wesnoth-help'
local T = wml.tag
local on_event = wesnoth.require("on_event")
-- The feeding event code
on_event("die", function()
local ec = wesnoth.current.event_context
if not ec.x1 or not ec.y1 or not ec.x2 or not ec.y2 then
return
end
local u_killer = wesnoth.units.get(ec.x2,... | gpl-2.0 |
waytim/darkstar | scripts/zones/Jugner_Forest/npcs/Pure_Heart_IM.lua | 13 | 3323 | -----------------------------------
-- Area: Jugner Forest
-- NPC: Pure Heart, I.M.
-- Type: Border Conquest Guards
-- @pos 570.732 -2.637 553.508 104
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest"... | gpl-3.0 |
GPUOpen-LibrariesAndSDKs/SilhouetteTessellation11 | amd_sdk/premake/premake5_minimal.lua | 8 | 1336 | dofile ("../../premake/amd_premake_util.lua")
workspace "AMD_SDK_Minimal"
configurations { "Debug", "Release" }
platforms { "x64" }
location "../build"
filename ("AMD_SDK_Minimal" .. _AMD_VS_SUFFIX)
startproject "AMD_SDK_Minimal"
filter "platforms:x64"
system "Windows"
architecture "x64"... | mit |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Upper_Jeuno/npcs/Ajithaam.lua | 2 | 4071 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Ajithaam
-- @zone 244
-- @pos -82 0 160 244
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/globals/missions");
require... | gpl-3.0 |
neuralartgui/neuralartgui | _CombinedContainer/data/neuralart/main.lua | 1 | 8681 | --
-- An implementation of the method described in 'A Neural Algorithm of Artistic
-- Style' by Leon Gatys, Alexander Ecker, and Matthias Bethge.
--
-- http://arxiv.org/abs/1508.06576
--
require 'torch'
require 'nn'
require 'image'
require 'paths'
require 'optim'
local pl = require('pl.import_into')()
local printf = p... | mit |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Aht_Urhgan_Whitegate/npcs/Yahsra.lua | 2 | 1058 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Yahsra
-- Type: Assault Mission Giver
-- @zone: 50
-- @pos: 120.967 0.161 -44.002
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"... | gpl-3.0 |
waytim/darkstar | scripts/zones/Abyssea-Attohwa/npcs/qm19.lua | 17 | 1523 | -----------------------------------
-- Zone: Abyssea-Attohwa
-- NPC: ???
-- Spawns: Ulhuadshi
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/keyitems");
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(pla... | gpl-3.0 |
waytim/darkstar | scripts/zones/Apollyon/bcnms/NW_Apollyon.lua | 35 | 1116 | -----------------------------------
-- Area: Appolyon
-- Name:
-----------------------------------
require("scripts/globals/limbus");
require("scripts/globals/keyitems");
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[NW_Apollyon]UniqueI... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/items/porcupine_pie.lua | 3 | 1811 | -----------------------------------------
-- ID: 5156
-- Item: porcupine_pie
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP 55
-- Strength 6
-- Vitality 2
-- Intelligence -3
-- Mind 3
-- MP recovered while healing 2
-- Accuracy 5
-- Attack % 18 (cap 95)
-- Ranged Attack % 18 (cap 95)
-... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c77662914.lua | 2 | 8994 | --Vocalist Alternation Hakaine Maiko
function c77662914.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_MACHINE),7,2)
c:EnableReviveLimit()
--pendulum summon
aux.EnablePendulumAttribute(c)
--xyz summon success
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Str... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.