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/Northern_San_dOria/npcs/HomePoint#2.lua | 17 | 1262 | -----------------------------------
-- Area: Northern San dOria
-- NPC: HomePoint#2
-- @pos 10 -0.2 95 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Northern_San_dOria/TextIDs");
require(... | gpl-3.0 |
nasomi/darkstar | scripts/globals/items/flame_claymore.lua | 42 | 1072 | -----------------------------------------
-- ID: 16588
-- Item: Flame Claymore
-- Additional Effect: Fire Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-----------------------------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Mhaura/npcs/Numi_Adaligo.lua | 17 | 1404 | -----------------------------------
-- Area: Mhaura
-- NPC: Numi Adaligo
-- Involved In Quest: RYCHARDE_THE_CHEF
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mhaura/TextIDs");
require("scripts/globals/set... | gpl-3.0 |
nasomi/darkstar | scripts/globals/items/bretzel.lua | 35 | 1302 | -----------------------------------------
-- ID: 4391
-- Item: Bretzel
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Magic % 8
-- Magic Cap 55
-- Vitality 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Dagger.lua | 16 | 1481 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Animated Dagger
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
functi... | gpl-3.0 |
iuser99/BoL | Common/SidasAutoCarryPlugin - Mordekaiser.lua | 2 | 1834 | --[[
SAC Mordekaiser
Credits to eXtragoZ for pet management
Version 1.2
- Converted to iFoundation_v2
LAST TESTED 1.2 ON 8.11 WORKING PERFECT
--]]
require "iFoundation_v2"
local SkillQ = Caster(_Q, 200, SPELL_SELF)
local SkillW = Caster(_W, 750, SPELL_TARGETED_FRIENDLY)
local SkillE = Caster(_E, 700, SPEL... | gpl-2.0 |
nasomi/darkstar | scripts/globals/abilities/alacrity.lua | 28 | 1151 | -----------------------------------
-- Ability: Alacrity
-- Reduces the casting and the recast time of your next black magic spell by 50%.
-- Obtained: Scholar Level 25
-- Recast Time: Stratagem Charge
-- Duration: 1 black magic spell or 60 seconds, whichever occurs first.
--
-- Level |Charges |Recharge Time p... | gpl-3.0 |
iuser99/BoL | Common/SidasAutoCarryPlugin - Vladimir.lua | 2 | 1609 | --[[
SAC Vladimir plugin
Features
- Basic combo
- Q > E > W > R
Version 1.0
- Initial release
Version 1.2
- Converted to iFoundation_v2
--]]
require "iFoundation_v2"
local SkillQ = Caster(_Q, 600, SPELL_TARGETED)
local SkillW = Caster(_W, math.huge, SPELL_SELF)
local SkillE = Caster(_E, 600, SPELL_SE... | gpl-2.0 |
thesabbir/luci | applications/luci-app-multiwan/luasrc/controller/multiwan.lua | 62 | 1929 | module("luci.controller.multiwan", package.seeall)
function index()
local fs = require "nixio.fs"
if not fs.access("/etc/config/multiwan") then
return
end
local page
page = entry({"admin", "network", "multiwan"}, cbi("multiwan/multiwan"), _("Multi-WAN"))
page.dependent = true
entry({"admin", "network", "m... | apache-2.0 |
iassael/learning-to-communicate | code/module/rmsprop.lua | 1 | 1911 | --[[ An implementation of RMSprop
ARGS:
- 'opfunc' : a function that takes a single input (X), the point
of a evaluation, and returns f(X) and df/dX
- 'x' : the initial point
- 'config` : a table with configuration parameters for the optimizer
- 'config.learningRate' : learning rate
- 'config.a... | apache-2.0 |
nasomi/darkstar | scripts/zones/Bastok_Markets_[S]/TextIDs.lua | 9 | 1074 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 11199; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6384; -- Obtained: <item>
GIL_OBTAINED = 6385; -- Obtained <number> gil
KEYITEM_OBTAINED = 6387; -- Obtai... | gpl-3.0 |
nasomi/darkstar | scripts/globals/abilities/pets/grand_fall.lua | 25 | 1294 | ---------------------------------------------------
-- Geocrush
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/globals/magic");
--------------------------------------------... | gpl-3.0 |
shangjiyu/luci-with-extra | libs/luci-lib-nixio/docsrc/nixio.File.lua | 173 | 4457 | --- Large File Object.
-- Large file operations are supported up to 52 bits if the Lua number type is
-- double (default).
-- @cstyle instance
module "nixio.File"
--- Write to the file descriptor.
-- @class function
-- @name File.write
-- @usage <strong>Warning:</strong> It is not guaranteed that all data
-- in the bu... | apache-2.0 |
nasomi/darkstar | scripts/globals/items/sleepshroom.lua | 35 | 1191 | -----------------------------------------
-- ID: 4374
-- Item: sleepshroom
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Strength -3
-- Mind 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChec... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Selbina/npcs/Porter_Moogle.lua | 41 | 1520 | -----------------------------------
-- Area: Selbina
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- @zone 248
-- @pos TODO
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
require("scri... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Kazham/npcs/Ronta-Onta.lua | 19 | 4061 | -----------------------------------
-- Area: Kazham
-- NPC: Ronta-Onta
-- Starts and Finishes Quest: Trial by Fire
-- @pos 100 -15 -97 250
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Lufaise_Meadows/npcs/Chilaumme_RK.lua | 30 | 3055 | -----------------------------------
-- Area: Lufaise Meadows
-- NPC: Chilaumme, R.K.
-- Border Conquest Guards
-- @pos 414.659 0.905 -52.417 24
-----------------------------------
package.loaded["scripts/zones/Lufaise_Meadows/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
re... | gpl-3.0 |
nicholas-leonard/nn | SpatialAdaptiveMaxPooling.lua | 9 | 1199 | local SpatialAdaptiveMaxPooling, parent = torch.class('nn.SpatialAdaptiveMaxPooling', 'nn.Module')
function SpatialAdaptiveMaxPooling:__init(W, H)
parent.__init(self)
self.W = W
self.H = H
end
function SpatialAdaptiveMaxPooling:updateOutput(input)
self.indices = self.indices or torch.LongTensor()
if t... | bsd-3-clause |
nasomi/darkstar | scripts/zones/Crawlers_Nest/npcs/Treasure_Chest.lua | 17 | 3197 | -----------------------------------
-- Area: Crawler Nest
-- NPC: Treasure Chest
-- Involved In Quest: Enveloped in Darkness
-- @pos 41 0.1 -314 197
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/se... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Apollyon/mobs/Grave_Digger.lua | 33 | 1024 | -----------------------------------
-- Area: Apollyon SE
-- NPC: Grave_Digger
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Apollyon/TextIDs");
-----------------------------------
-- onMobSpawn Action... | gpl-3.0 |
icplus/OP-SDK | package/ramips/ui/luci-mtk/src/applications/luci-asterisk/luasrc/model/cbi/asterisk/trunk_sip.lua | 80 | 2561 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 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
$Id$
]]--
l... | gpl-2.0 |
cristiandonosoc/unexperiments | dotaoh/main.lua | 1 | 1796 | -- WE IMPORT THE HELPER LIBRARIES
Vector = require "lib.hump.vector"
Camera = require "lib.hump.camera"
Timer = require "lib.hump.timer"
Class = require "lib.hump.class"
Gamestate = require "lib.hump.gamestate"
Shapes = require "lib.hardon_collider.shapes"
ATL = {}
ATL.Loader = require "lib.advanced_tile_loader.Loader"... | mit |
appaquet/torch-android | src/pkg/torch/torchcwrap.lua | 54 | 15111 | local wrap = require 'cwrap'
local types = wrap.types
types.Tensor = {
helpname = function(arg)
if arg.dim then
return string.format("Tensor~%dD", arg.dim)
else
return "Tensor"
end
end,
declare = function(arg... | bsd-3-clause |
MatthewDwyer/botman | mudlet/profiles/newbot/scripts/startup_bot.lua | 1 | 10022 | --[[
Botman - A collection of scripts for managing 7 Days to Die servers
Copyright (C) 2020 Matthew Dwyer
This copyright applies to the Lua source code in this Mudlet profile.
Email smegzor@gmail.com
URL http://botman.nz
Source https://bitbucket.org/mhdwyer/botman
--]]
debu... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Wyatt.lua | 17 | 1982 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Wyatt
-- @zone 80
-- @pos 124 0 84
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Lower_Jeuno/npcs/Gurdern.lua | 34 | 1374 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Gurdern
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Lower_Jeuno/TextIDs");
require("scripts/globals/quests");
-... | gpl-3.0 |
icplus/OP-SDK | package/ramips/ui/luci-mtk/src/modules/admin-full/luasrc/model/cbi/admin_system/fstab/swap.lua | 84 | 1922 | --[[
LuCI - Lua Configuration Interface
Copyright 2010 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
$Id$
]]--
lo... | gpl-2.0 |
nasomi/darkstar | scripts/globals/items/plate_of_tuna_sushi.lua | 35 | 1526 | -----------------------------------------
-- ID: 5150
-- Item: plate_of_tuna_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 20
-- Dexterity 3
-- Charisma 5
-- Accuracy % 15
-- Ranged ACC % 15
-- Sleep Resist 5
-----------------------------------------
require("s... | gpl-3.0 |
nikolauska/NCP | Info.lua | 1 | 1235 | -- Info.lua
-- Implements the g_PluginInfo standard plugin description
g_PluginInfo =
{
Name = "NCP",
Version = "0.1",
Description = [[Nikolauska Command Pack]],
Commands =
{
["/delhome"] =
{
Permission = "es.home",
HelpString = "Delete a home.",
Handler = HandleDeleteHomeCommand,
ParameterCombin... | mit |
luanorlandi/SwiftSpaceBattle | src/interface/game/gameInterface.lua | 2 | 2345 | require "interface/game/gameText"
require "interface/game/lives"
require "interface/game/borderHp"
require "interface/game/scoreText"
require "interface/game/gameOver"
require "interface/game/buttons"
GameInterface = {}
GameInterface.__index = GameInterface
function GameInterface:new(lives)
local G = {}
setmetatabl... | gpl-3.0 |
kenyh0926/DBProxy | examples/tutorial-tokenize.lua | 4 | 1591 | --[[ $%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 |
jungomi/dotfiles | .config/nvim/lua/autocommands.lua | 1 | 4160 | -- lightbulb might not be installed yet, so make sure it doesn't fail
local _, lightbulb = pcall(require, "nvim-lightbulb")
local _, osc52 = pcall(require, "osc52")
local autocmd_utils = require("utils.autocmd")
local file_utils = require("utils.file")
autocmd_utils.create_augroups({
config_filetype = {
-- Disab... | mit |
icplus/OP-SDK | package/ramips/ui/luci-mtk/src/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua | 54 | 7297 | --[[
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 |
nicholas-leonard/nn | L1Penalty.lua | 16 | 1128 | local L1Penalty, parent = torch.class('nn.L1Penalty','nn.Module')
--This module acts as an L1 latent state regularizer, adding the
--[gradOutput] to the gradient of the L1 loss. The [input] is copied to
--the [output].
function L1Penalty:__init(l1weight, sizeAverage, provideOutput)
parent.__init(self)
self... | bsd-3-clause |
nasomi/darkstar | scripts/zones/Balgas_Dais/npcs/Burning_Circle.lua | 17 | 2294 | -----------------------------------
-- Area: Balga's Dais
-- NPC: Burning Circle
-- Balga's Dais Burning Circle
-- @pos 299 -123 345 146
-------------------------------------
package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/keyitems");
... | gpl-3.0 |
nasomi/darkstar | scripts/globals/items/plate_of_barnacle_paella.lua | 36 | 1576 | -----------------------------------------
-- ID: 5974
-- Item: Plate of Barnacle Paella
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- HP 40
-- Vitality 5
-- Mind -1
-- Charisma -1
-- Defense % 25 Cap 150
-- Undead Killer 5
-----------------------------------------
require("scripts/globa... | gpl-3.0 |
RhenaudTheLukark/CreateYourFrisk | Assets/Mods/Examples 2/Lua/Monsters/posette.lua | 1 | 2026 | comments = {"Smells like stars and platinum.", "Posette is standing there quietly.", "Posette is flexing."}
commands = {"Pose", "Stand", "Insult"}
randomdialogue = {"Gimme\na\nbreak.", "...", "Ora\nOra\nOra\nOra"}
sprite = "posette" --Always PNG. Extension is added automatically.
name = "Posette"
hp = 60
atk = 4
def =... | gpl-3.0 |
nasomi/darkstar | scripts/commands/addmission.lua | 25 | 1173 | ---------------------------------------------------------------------------------------------------
-- func: @addmission <logID> <missionID> <player>
-- desc: Adds a mission to the GM or target players log.
---------------------------------------------------------------------------------------------------
cmdprop... | gpl-3.0 |
nasomi/darkstar | scripts/globals/weaponskills/wildfire.lua | 29 | 1550 | -----------------------------------
-- Skill Level: N/A
-- Description: Deals fire elemental damage. Enmity generation varies with TP. Armageddon: Aftermath.
-- Acquired permanently by completing the appropriate Walk of Echoes Weapon Skill Trials.
-- Can also be used by equipping Armageddon (85)/(90)/(95)/(99) or Bedla... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Port_San_dOria/npcs/Ilgusin.lua | 38 | 1038 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Ilgusin
-- Type: Standard NPC
-- @zone: 232
-- @pos -68.313 -6.5 -36.985
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------... | gpl-3.0 |
nasomi/darkstar | scripts/globals/spells/cure.lua | 18 | 3963 | -----------------------------------------
-- Spell: Cure
-- Restores target's HP.
-- Shamelessly stolen from http://members.shaw.ca/pizza_steve/cure/Cure_Calculator.html
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/ma... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Bastok_Mines/npcs/Aulavia.lua | 30 | 1603 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Aulavia
-- Regional Marchant NPC
-- Only sells when Bastok controls Vollbow.
-----------------------------------
require("scripts/globals/events/harvest_festivals");
require("scripts/globals/shop");
require("scripts/globals/conquest");
package... | gpl-3.0 |
znek/xupnpd | src/profiles/samsung.lua | 2 | 1521 | sec_dlna_org_extras_none='*;DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000'
profiles['Samsung-AllShare']=
{
['desc']='Samsung AllShare uPnP/DLNA',
-- SEC_HHP_[TV]UE32ES6757/1.0 DLNADOC/1.50
['match']=function(user_agent) if string.find(user_agent,'DLNADOC/1.50',1,true) or st... | gpl-2.0 |
Etehadmarg/margbot | 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 |
nasomi/darkstar | scripts/zones/Qufim_Island/npcs/Pitoire_RK.lua | 30 | 3053 | -----------------------------------
-- Area: Qufim Island
-- NPC: Pitoire, R.K.
-- Type: Outpost Conquest Guards
-- @pos -245.366 -20.344 299.502 126
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");... | gpl-3.0 |
nasomi/darkstar | scripts/globals/weaponskills/frostbite.lua | 30 | 1231 | -----------------------------------
-- Frostbite
-- Great Sword weapon skill
-- Skill Level: 70
-- Delivers an ice elemental attack. Damage varies with TP.
-- Aligned with the Snow Gorget.
-- Aligned with the Snow Belt.
-- Element: Ice
-- Modifiers: STR:20% ; INT:20%
-- 100%TP 200%TP 300%TP
-- 1.00 ... | gpl-3.0 |
Maliv/SecretBot | plugins/inpm.lua | 1114 | 3008 | 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 |
nasomi/darkstar | scripts/globals/items/coeurl_sub.lua | 35 | 1832 | -----------------------------------------
-- ID: 5166
-- Item: coeurl_sub
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Magic 10
-- Strength 5
-- Agility 1
-- Intelligence -2
-- Health Regen While Healing 1
-- Attack % 20
-- Attack Cap 75
-- Ranged ATT % 20
-- Ranged ATT Cap... | gpl-3.0 |
aqasaeed/zeus | plugins/inpm.lua | 1114 | 3008 | 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 |
nasomi/darkstar | scripts/zones/Northern_San_dOria/npcs/Taulenne.lua | 34 | 4855 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Taulenne
-- Armor Storage NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
package.loaded["scripts/globals/armorstorage"] = nil;
-----------------------------------
require("script... | gpl-3.0 |
EricssonResearch/scott-eu | simulation-ros/src/turtlebot2i/turtlebot2i_description/v-rep_model/warehouse_scene/vrep_scripts/ShelfBody.lua | 1 | 8978 |
-- DO NOT WRITE CODE OUTSIDE OF THE if-then-end SECTIONS BELOW!! (unless the code is a function definition)
-- Shelf functions
-- http://www.coppeliarobotics.com/helpFiles/en/accessingGeneralObjects.htm
-- List all products on this shelf
getObjectName = function(intArg, fltArg, strArg, byteArg)
objectHandle = i... | apache-2.0 |
ngeiswei/ardour | share/scripts/_pong.lua | 4 | 7075 | ardour {
["type"] = "dsp",
name = "Pong",
category = "Toy",
license = "MIT",
author = "Ardour Team",
description = [[A console classic for your console]]
}
-- return possible i/o configurations
function dsp_ioconfig ()
-- -1, -1 = any number of channels as long as input and output count ma... | gpl-2.0 |
renyaoxiang/QSanguosha-For-Hegemony | extension-doc/18-Beta.lua | 15 | 3217 | --[[ 本文档用于介绍在 beta 版中引入的更新
本文档针对的 beta 版本为 20120203(V0.7 Beta 1)
本文档假定阅读者已经有一定的编写 AI 的基础,仅作十分简略的介绍。
新的函数与表使得 AI 的可扩展性大大增强。
* sgs.ai_slash_prohibit:表,由 SmartAI.slashProhibit 载入
% 元素名称:技能名
% 元素:function(self, to, card)
%% self: SmartAI
%% to: ServerPlayer*,拥有元素名称所描述的技能
%% card: Card*
%% 返回值:布尔值,true表明在策略上不宜对 to 使用【杀】 ca... | gpl-3.0 |
minaevmike/rspamd | test/lua/unit/html.lua | 3 | 1472 | context("HTML processing", function()
local rspamd_util = require("rspamd_util")
local logger = require("rspamd_logger")
test("Extract text from HTML", function()
local cases = {
{[[
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>title</title>
<link rel="stylesheet"... | apache-2.0 |
appaquet/torch-android | src/3rdparty/nn/TemporalSubSampling.lua | 44 | 1378 | local TemporalSubSampling, parent = torch.class('nn.TemporalSubSampling', 'nn.Module')
function TemporalSubSampling:__init(inputFrameSize, kW, dW)
parent.__init(self)
dW = dW or 1
self.inputFrameSize = inputFrameSize
self.kW = kW
self.dW = dW
self.weight = torch.Tensor(inputFrameSize)
self.bias... | bsd-3-clause |
icplus/OP-SDK | package/ramips/ui/luci-mtk/src/applications/luci-openvpn/luasrc/model/cbi/openvpn.lua | 65 | 3316 | --[[
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/globals/weaponskills/hard_slash.lua | 25 | 1564 | -----------------------------------
-- Hard Slash
-- Great Sword weapon skill
-- Skill level: 5
-- Delivers a single-hit attack. Damage varies with TP.
-- Modifiers: STR:30%
-- 100%TP 200%TP 300%TP
-- 1.5 1.75 2.0
-----------------------------------
require("scripts/globals/settings");
require("scripts/g... | gpl-3.0 |
TeamHypersomnia/Augmentations | hypersomnia/content/official/gfx/kek9_magazine.meta.lua | 2 | 2066 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 120,
light_colors = {
"0 255 255 255",
"81 1 161 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
},
generate_desaturation =... | agpl-3.0 |
EnjoyHacking/nn | VolumetricConvolution.lua | 39 | 1702 | local VolumetricConvolution, parent = torch.class('nn.VolumetricConvolution', 'nn.Module')
function VolumetricConvolution:__init(nInputPlane, nOutputPlane, kT, kW, kH, dT, dW, dH)
parent.__init(self)
dT = dT or 1
dW = dW or 1
dH = dH or 1
self.nInputPlane = nInputPlane
self.nOutputPlane = nOutputPl... | bsd-3-clause |
ZuoGuocai/Atlas | lib/active-queries.lua | 40 | 3780 | --[[ $%BEGINLICENSE%$
Copyright (c) 2007, 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 dis... | gpl-2.0 |
nasomi/darkstar | scripts/zones/Metalworks/npcs/Lucius.lua | 19 | 1882 | -----------------------------------
-- Area: Metalworks
-- NPC: Lucius
-- Involved in Mission: Bastok 3-3
-- Involved in Quest: Riding on the Clouds
-- @pos 59.959 -17.39 -42.321 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
requi... | gpl-3.0 |
appaquet/torch-android | src/3rdparty/nn/Reshape.lua | 42 | 1801 | local Reshape, parent = torch.class('nn.Reshape', 'nn.Module')
function Reshape:__init(...)
parent.__init(self)
local arg = {...}
self.size = torch.LongStorage()
self.batchsize = torch.LongStorage()
if torch.type(arg[#arg]) == 'boolean' then
self.batchMode = arg[#arg]
table.remove(arg, #arg... | bsd-3-clause |
nasomi/darkstar | scripts/zones/Chateau_dOraguille/npcs/_6h4.lua | 17 | 3614 | -----------------------------------
-- Area: Chateau d'Oraguille
-- Door: Great Hall
-- Involved in Missions: 3-3, 5-2, 6-1, 8-2, 9-1
-- @pos 0 -1 13 233
-----------------------------------
package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil;
package.loaded["scripts/globals/missions"] = nil;
------... | gpl-3.0 |
Hello23-Ygopro/ygopro-ds | expansions/script/c27004165.lua | 1 | 1024 | --EX03-13 Son Goku
local ds=require "expansions.utility_dbscg"
local scard,sid=ds.GetID()
function scard.initial_effect(c)
ds.EnableLeaderAttribute(c)
ds.AddSetcode(c,CHARACTER_SON_GOKU,SPECIAL_TRAIT_SAIYAN,SPECIAL_TRAIT_UNIVERSE_7,CHARACTER_INCLUDES_SON_GOKU,SPECIAL_TRAIT_INCLUDES_UNIVERSE)
--warrior of universe 7
... | gpl-3.0 |
sugao516/gltron-code | levels/movie.lua | 1 | 1310 | directions = { random = -1, up = 2, down = 0, right = 1, left = 3 }
level = {
version = 71,
-- scale the level after loading by
scale_factor = 1,
-- spawn points
-- (they don't have to be sorted, they will be randomized anyway)
spawn_is_relative = 1, -- relative to bounding box
spawn = {
{ x = .25,... | gpl-2.0 |
nasomi/darkstar | scripts/globals/weaponskills/dancing_edge.lua | 30 | 1413 | -----------------------------------
-- Dancing Edge
-- Dagger weapon skill
-- Skill level: 200
-- Delivers a fivefold attack. params.accuracy varies with TP.
-- Will stack with Sneak Attack.
-- Will stack with Trick Attack.
-- Aligned with the Breeze Gorget & Soil Gorget.
-- Aligned with the Breeze Belt & Soil ... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Horlais_Peak/bcnms/rank_2_mission.lua | 17 | 2321 | -----------------------------------
-- Area: Horlais Peak
-- Name: Mission Rank 2
-- @pos -509 158 -211 139
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
requi... | gpl-3.0 |
phcosta29/rstats | lib/socket/tp.lua | 51 | 3766 | -----------------------------------------------------------------------------
-- Unified SMTP/FTP subsystem
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- Declare... | gpl-3.0 |
nasomi/darkstar | scripts/globals/items/pogaca.lua | 35 | 1247 | -----------------------------------------
-- ID: 5637
-- Item: pogaca
-- Food Effect: 5Min, All Races
-----------------------------------------
-- HP Recovered While Healing 4
-- MP Recovered While Healing 4
-----------------------------------------
require("scripts/globals/status");
----------------------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Gustav_Tunnel/mobs/Goblin_Mercenary.lua | 23 | 1026 | ----------------------------------
-- Area: Gustav Tunnel
-- MOB: Goblin Mercenary
-- Note: Place holder Wyvernpoacher Drachlox
-----------------------------------
require("scripts/zones/Gustav_Tunnel/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
functio... | gpl-3.0 |
Wouterz90/SuperSmashDota | Game/scripts/vscripts/abilities/batrider.lua | 1 | 12202 | batrider_special_side = class({})
function batrider_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_Batrider.Flamebreak")
StartAnimation(self:GetCaster(),... | mit |
cesarmarinhorj/cgit | filters/gentoo-ldap-authentication.lua | 5 | 7507 | -- This script may be used with the auth-filter. Be sure to configure it as you wish.
--
-- Requirements:
-- luacrypto >= 0.3
-- <http://mkottman.github.io/luacrypto/>
-- lualdap >= 1.2
-- <http://git.zx2c4.com/lualdap/about/>
--
--
--
-- Configure these variables for your settings.
--
--
-- A list of password p... | gpl-2.0 |
nasomi/darkstar | scripts/zones/Port_Bastok/npcs/_6k9.lua | 34 | 1073 | -----------------------------------
-- Area: Port Bastok
-- NPC: Door: Arrivals Entrance
-- @pos -80 1 -26 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Port_Ba... | gpl-3.0 |
Hello23-Ygopro/ygopro-ds | expansions/script/c27004178.lua | 1 | 1550 | --EX03-24 Clownish Destruction Belmod
local ds=require "expansions.utility_dbscg"
local scard,sid=ds.GetID()
function scard.initial_effect(c)
ds.EnableBattleAttribute(c)
ds.AddSetcode(c,SPECIAL_TRAIT_GOD,SPECIAL_TRAIT_UNIVERSE_11,SPECIAL_TRAIT_INCLUDES_UNIVERSE)
ds.AddPlayProcedure(c,COLOR_YELLOW,2,2)
--barrier
ds... | gpl-3.0 |
nasomi/darkstar | scripts/globals/items/salmon_croute.lua | 35 | 1351 | -----------------------------------------
-- ID: 4551
-- Item: salmon_croute
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP 8
-- MP 8
-- Dexterity 2
-- MP recovered while healing 1
-----------------------------------------
require("scripts/globals/status");
-------------... | gpl-3.0 |
thesabbir/luci | protocols/luci-proto-relay/luasrc/model/cbi/admin_network/proto_relay.lua | 70 | 1945 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local ipaddr, network
local forward_bcast, forward_dhcp, gateway, expiry, retry, table
ipaddr = section:taboption("general", Value, "ipaddr",
translate("Local IPv4 address"),
t... | apache-2.0 |
MatthewDwyer/botman | mudlet/profiles/newbot/scripts/timers/reconnect_timer.lua | 1 | 5357 | --[[
Botman - A collection of scripts for managing 7 Days to Die servers
Copyright (C) 2020 Matthew Dwyer
This copyright applies to the Lua source code in this Mudlet profile.
Email smegzor@gmail.com
URL http://botman.nz
Source https://bitbucket.org/mhdwyer/botman
--]]
fun... | gpl-3.0 |
sayakbiswas/CloudLang | CloudLangNeuralNets/Parsing/neural_net_model.lua | 1 | 11292 | require('torch')
require('util')
require('nn')
require('math')
require('optim')
local PowConstant, parent = torch.class('nn.PowConstant', 'nn.Module')
function PowConstant:__init(constant_scalar)
parent.__init(self)
assert(type(constant_scalar) == 'number', 'Power needs to be scalar')
assert(constant_... | mit |
anthillsocial/bicrophonic1 | lib/random.lua | 2 | 1528 | -- Swamp Bike Opera embedded system for Kaffe Matthews
-- Copyright (C) 2012 Wolfgang Hauptfleisch, Dave Griffiths
--
-- 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 ... | gpl-2.0 |
icplus/OP-SDK | package/ramips/ui/luci-mtk/src/applications/luci-statistics/luasrc/model/cbi/luci_statistics/ping.lua | 80 | 1397 | --[[
Luci configuration model for statistics - collectd ping 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 License ... | gpl-2.0 |
nasomi/darkstar | scripts/zones/Davoi/npcs/_45j.lua | 19 | 2049 | -----------------------------------
-- Area: Davoi
-- NPC: Screaming Pond
-- Used In Quest: Whence Blows the Wind
-- @pos -219 0.1 -101 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts... | gpl-3.0 |
haka-security/haka | lib/haka/lua/lua/list.lua | 5 | 5137 | -- 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/.
local module = {}
local class = require('class')
local check = require('check')
local color = require('color')
loca... | mpl-2.0 |
nasomi/darkstar | scripts/zones/Northern_San_dOria/npcs/Gilipese.lua | 38 | 1026 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Gilipese
-- Type: Standard Dialogue NPC
-- @zone: 231
-- @pos -155.088 0.000 120.300
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs")... | gpl-3.0 |
Wouterz90/SuperSmashDota | Game/scripts/vscripts/examples/playground.lua | 7 | 20225 | --[[
This file is an example scenario showing a number of ways to make use of the containers.lua library.
It works based on the "playground" map provided with barebones.
This code creates several containers:
1) A backpack container for every hero in the game. This container has an item within their normal ... | mit |
nasomi/darkstar | scripts/zones/Garlaige_Citadel/Zone.lua | 17 | 3962 | -----------------------------------
--
-- Zone: Garlaige_Citadel (200)
--
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Garlai... | gpl-3.0 |
fegimanam/zus | plugins/inrealm.lua | 11 | 24925 | -- 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 |
nicholas-leonard/nn | SpatialConvolutionLocal.lua | 9 | 6746 | local SpatialConvolutionLocal, parent = torch.class('nn.SpatialConvolutionLocal', 'nn.Module')
function SpatialConvolutionLocal:__init(nInputPlane, nOutputPlane, iW, iH ,kW, kH, dW, dH, padW, padH)
parent.__init(self)
dW = dW or 1
dH = dH or 1
self.nInputPlane = nInputPlane
self.nOutputPlane = nOutput... | bsd-3-clause |
nasomi/darkstar | scripts/zones/Monastic_Cavern/npcs/Altar.lua | 27 | 1815 | -----------------------------------
-- Area: Monastic Cavern
-- NPC: Altar
-- Involved in Quests: The Circle of Time
-- @pos 109 -3 -145 150
-----------------------------------
package.loaded["scripts/zones/Monastic_Cavern/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require... | gpl-3.0 |
Falcon-peregrinus/moreanimals | init.lua | 1 | 2635 | --Add Chicken
moreanimals = {}
function moreanimals:register_egg(modname, mobname, mobdesc)
minetest.register_craftitem(modname..":egg_"..mobname, {
description = mobdesc.." egg",
inventory_image = modname.."_egg_"..mobname..".png",
on_place = function(itemstack, placer, pointed_thing)
if pointed_thing.type ... | unlicense |
nasomi/darkstar | scripts/zones/Port_San_dOria/npcs/HomePoint#1.lua | 17 | 1263 | -----------------------------------
-- Area: Port San dOria
-- NPC: HomePoint#1
-- @pos -67.963 -4.000 -105.023 232
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Port_San_dOria/TextIDs");
require... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Waughroon_Shrine/bcnms/on_my_way.lua | 19 | 1883 | -----------------------------------
-- Area: Waughroon Shrine
-- Name: Mission Rank 7-2 (Bastok)
-- @pos -345 104 -260 144
-----------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/global... | gpl-3.0 |
nasomi/darkstar | scripts/zones/QuBia_Arena/mobs/Rallbrog_of_Clan_Death.lua | 36 | 2534 | -----------------------------------
-- Area: QuBia_Arena
-- Mission 9-2 SANDO
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/missions");
require("scripts/zones/QuBia_Arena/TextIDs");
-----------------------------------
-- onMobSpawn A... | gpl-3.0 |
shangjiyu/luci-with-extra | applications/luci-app-upnp/luasrc/controller/upnp.lua | 20 | 1886 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.upnp", package.seeall)
function index()
if not nixio.fs.access("/etc/config/upnpd") then
return
end
local page
page = entry({"... | apache-2.0 |
nasomi/darkstar | scripts/zones/Manaclipper/Zone.lua | 28 | 1617 | -----------------------------------
--
-- Zone: Manaclipper
--
-----------------------------------
package.loaded["scripts/zones/Manaclipper/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Manaclipper/TextIDs");
------------------------------... | gpl-3.0 |
nicholas-leonard/nn | JoinTable.lua | 11 | 2075 | local JoinTable, parent = torch.class('nn.JoinTable', 'nn.Module')
function JoinTable:__init(dimension, nInputDims)
parent.__init(self)
self.size = torch.LongStorage()
self.dimension = dimension
self.gradInput = {}
self.nInputDims = nInputDims
end
function JoinTable:_getPositiveDimension(input)
loca... | bsd-3-clause |
nasomi/darkstar | scripts/zones/RuLude_Gardens/npcs/HomePoint#3.lua | 17 | 1250 | -----------------------------------
-- Area: RuLude_Gardens
-- NPC: HomePoint#3
-- @pos -67 6 -25 243
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/RuLude_Gardens/TextIDs");
require("scripts/glob... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Morangeart.lua | 38 | 1057 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Morangeart
-- Type: ENM Quest Activator
-- @zone: 26
-- @pos -74.308 -24.782 -28.475
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"]... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Metalworks/npcs/Mythily.lua | 17 | 2013 | -----------------------------------
-- Area: Metalworks
-- NPC: Mythily
-- Type: Immigration NPC
-- @pos 94 -20 -8 237
-----------------------------------
require("scripts/globals/conquest");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(play... | gpl-3.0 |
dani-sj/danibot01 | plugins/google.lua | 336 | 1323 | do
local function googlethat(query)
local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&'
local parameters = 'q='..(URL.escape(query) or '')
-- Do the request
local res, code = https.request(url..parameters)
if code ~=200 then return nil end
loca... | gpl-2.0 |
dromozoa/dromozoa-image | dromozoa/image/pnm_reader.lua | 3 | 4876 | -- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com>
--
-- This file is part of dromozoa-image.
--
-- dromozoa-image 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... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.