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
Scavenge/darkstar
scripts/zones/Sealions_Den/Zone.lua
30
2133
----------------------------------- -- -- Zone: Sealions_Den (32) -- ----------------------------------- package.loaded["scripts/zones/Sealions_Den/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Sealions_Den/TextIDs"); ---------------------------------...
gpl-3.0
Scavenge/darkstar
scripts/globals/items/plate_of_bream_sushi_+1.lua
12
1670
----------------------------------------- -- ID: 5177 -- Item: plate_of_bream_sushi_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Dexterity 6 -- Vitality 5 -- Accuracy % 17 (cap 80) -- Ranged ACC % 17 (cap 80) -- Sleep Resist 2 ----------------------------------------- require("scrip...
gpl-3.0
Lsty/ygopro-scripts
c87798440.lua
3
4285
--アーマー・ブレイカー function c87798440.initial_effect(c) --equip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(87798440,0)) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetTarget(c87798440.eqtg) e1:Set...
gpl-2.0
zhaozg/lit
deps/http-codec.lua
2
9383
--[[ Copyright 2014-2015 The Luvit Authors. All Rights Reserved. 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 o...
apache-2.0
Lsty/ygopro-scripts
c16708652.lua
3
1832
--カラクリ粉 function c16708652.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(TIMING_DAMAGE_STEP) e1:SetC...
gpl-2.0
colesbury/cudnn.torch
SpatialConvolution.lua
1
9718
local SpatialConvolution, parent = torch.class('cudnn.SpatialConvolution', 'nn.SpatialConvolution') local ffi = require 'ffi' local errcheck = cudnn.errcheck function SpatialConvolution:__init(nInputPlane, nOutputPlane, kW, kH, dW, dH, padW, padH, groups) parent.__init(self, nInputPla...
bsd-2-clause
Mike325/.vim
lua/plugins/snippets/lua.lua
1
8393
local load_module = require('utils.helpers').load_module local ls = load_module 'luasnip' if not ls then return false end local s = ls.snippet local sn = ls.snippet_node local t = ls.text_node -- local isn = ls.indent_snippet_node local i = ls.insert_node local f = ls.function_node local c = ls.choice_node local d...
mit
Lsty/ygopro-scripts
c53408006.lua
3
1672
--ジェム・マーチャント function c53408006.initial_effect(c) --atk,def up local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetDescription(aux.Stringid(53408006,0)) e1:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(TIMING_DAMAGE_STEP) e1:SetRange(LOCATION_...
gpl-2.0
mikhail-angelov/vlc
share/lua/playlist/france2.lua
113
2115
--[[ $Id$ Copyright © 2008 the VideoLAN team Authors: Antoine Cellerier <dionoea at videolan dot org> 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 2 of the License, or (at ...
gpl-2.0
Lsty/ygopro-scripts
c31786629.lua
3
1154
--サンダー・ドラゴン function c31786629.initial_effect(c) --search local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(31786629,0)) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCost(c31786629.cost) e1:SetTarget(c31786629.target) e1:SetOpera...
gpl-2.0
Lsty/ygopro-scripts
c33725002.lua
3
4208
--Vサラマンダー function c33725002.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(33725002,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetTarget...
gpl-2.0
MalRD/darkstar
scripts/globals/weaponskills/heavy_shot.lua
10
1373
----------------------------------- -- Heavy Shot -- Marksmanship weapon skill -- Skill Level: 225 -- Delivers a single-hit attack. Chance of params.critical varies with TP. -- Aligned with the Flame Gorget & Light Gorget. -- Aligned with the Flame Belt & Light Belt. -- Element: None -- Modifiers: AGI:30% -- 100%TP ...
gpl-3.0
Frenzie/koreader
plugins/newsdownloader.koplugin/main.lua
1
39830
local BD = require("ui/bidi") local DataStorage = require("datastorage") --local DownloadBackend = require("internaldownloadbackend") --local DownloadBackend = require("luahttpdownloadbackend") local DownloadBackend = require("epubdownloadbackend") local ReadHistory = require("readhistory") local FFIUtil = require("ffi...
agpl-3.0
ThingMesh/openwrt-luci
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/olsrd.lua
85
3643
--[[ Luci statistics - olsrd plugin diagram definition Copyright 2011 Manuel Munz <freifunk at somakoma dot de> 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/licen...
apache-2.0
MalRD/darkstar
scripts/globals/items/yilanbaligi.lua
11
1131
----------------------------------------- -- ID: 5458 -- Item: Yilanbaligi -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Mind -4 -- Evasion 5 ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") -----------------------...
gpl-3.0
gallenmu/MoonGen
libmoon/deps/luajit/src/jit/dis_mips.lua
59
13773
---------------------------------------------------------------------------- -- LuaJIT MIPS disassembler module. -- -- Copyright (C) 2005-2017 Mike Pall. All rights reserved. -- Released under the MIT/X license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------...
mit
MalRD/darkstar
scripts/globals/weaponskills/starburst.lua
10
1329
----------------------------------- -- Starburst -- Staff weapon skill -- Skill Level: 100 -- Deals light or darkness elemental damage. Damage varies with TP. -- Aligned with the Shadow Gorget & Aqua Gorget. -- Aligned with the Shadow Belt & Aqua Belt. -- Element: Light/Dark (Random) -- Modifiers: : STR:40% MND:40% ...
gpl-3.0
MalRD/darkstar
scripts/zones/Apollyon/mobs/Water_Elemental.lua
9
2117
----------------------------------- -- Area: Apollyon SW -- Mob: Water Elemental ----------------------------------- require("scripts/globals/limbus"); ----------------------------------- function onMobDeath(mob, player, isKiller) end; function onMobDespawn(mob) local mobID = mob:getID(); -- print(mobID); lo...
gpl-3.0
Lsty/ygopro-scripts
c93751476.lua
3
2659
--猛炎星-テンレイ function c93751476.initial_effect(c) --to grave local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EVENT_TO_GRAVE) e1:SetOperation(c93751476.regop) c:RegisterEffect(e1) --set local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(93751476,0)) e2...
gpl-2.0
Lsty/ygopro-scripts
c48686504.lua
5
1467
--ローンファイア・ブロッサム function c48686504.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(48686504,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1) e1:SetCost(c48686504.cost) e1:SetTarget(c48686504....
gpl-2.0
Lsty/ygopro-scripts
c15270885.lua
3
2702
--トゥーン・ゴブリン突撃部隊 function c15270885.initial_effect(c) --cannot attack local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetOperation(c15270885.atklimit) c:RegisterEffect(e1) local e2=e1:Clone() e2:SetCode(EVENT_SPSUMMON_SUCCESS) c:RegisterE...
gpl-2.0
neverlose1/sickmind
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
Frenzie/koreader
frontend/util.lua
4
58514
--[[-- This module contains miscellaneous helper functions for the KOReader frontend. ]] local BaseUtil = require("ffi/util") local Utf8Proc = require("ffi/utf8proc") local lfs = require("libs/libkoreader-lfs") local _ = require("gettext") local C_ = _.pgettext local T = BaseUtil.template local lshift = bit.lshift lo...
agpl-3.0
tarulas/luadch
scripts/cmd_redirect.lua
1
6610
--[[ cmd_redirect.lua by pulsar usage: [+!#]redirect <NICK> <URL> v0.5: - added additional ucmd entry to redirect user to default url - changes in "onbmsg" function v0.4: - removed send_report() function, using report import functionality n...
gpl-3.0
MalRD/darkstar
scripts/zones/Horlais_Peak/npcs/Armoury_Crate.lua
9
32887
----------------------------------- -- Area: Horlais Peak -- NPC: Armoury Crate ------------------------------------- require("scripts/globals/battlefield") require("scripts/globals/bcnm") ------------------------------------- local loot = { -- BCNM Tails of Woe [1] = { { {itemid = 135...
gpl-3.0
MalRD/darkstar
scripts/zones/Davoi/npcs/_45i.lua
9
1850
----------------------------------- -- Area: Davoi -- NPC: Wailing Pond -- Used In Quest: Whence Blows the Wind -- !pos 380 0.1 -181 149 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); local ID = require("scripts/zones/Davoi/IDs"); -------------------------...
gpl-3.0
Lsty/ygopro-scripts
c64319467.lua
3
2409
--ダブルフィン・シャーク function c64319467.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(64319467,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetCo...
gpl-2.0
openwrt/luci
libs/luci-lib-nixio/axTLS/samples/lua/axssl.lua
176
19286
#!/usr/local/bin/lua -- -- Copyright (c) 2007, Cameron Rich -- -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain the above copyright notice, -...
apache-2.0
weshoke/DSL
test/test.lust.json.lua
1
1663
LuaAV.addmodulepath(script.path.."/..") LuaAV.addmodulepath(script.path.."/../../Lust") local DSL = require"DSL" local utils = require"DSL.utilities" local Lust = require"Lust" local dsl = DSL{ tokens = [=[ NUMBER = float+integer STRING = string TRUE = P"true" FALSE = P"false" NULL = P"null" ]=], rules = ...
mit
Lsty/ygopro-scripts
c96099959.lua
7
1342
--X-セイバー パロムロ function c96099959.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(96099959,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetRange(LOCATION_GRAVE) e1:SetCode(EVENT_BATTLE_DESTROYED) e1:SetConditi...
gpl-2.0
wzb56/lua-resty-kafka
lib/resty/kafka/ringbuffer.lua
2
1476
-- Copyright (C) Dejiang Zhu(doujiang24) local setmetatable = setmetatable local ngx_null = ngx.null local ok, new_tab = pcall(require, "table.new") if not ok then new_tab = function (narr, nrec) return {} end end local _M = { _VERSION = "0.01" } local mt = { __index = _M } function _M.new(self, batch_num, ma...
bsd-3-clause
SJoshua/Project-Small-R
src/commands/flight.lua
1
3140
local utils = require("utils") local flight = { func = function(msg) local fnum = msg.text:match("/flight%s*(%a+%d+)"):upper() local page = utils.wget("http://m.baidu.com/s?word=" .. fnum) if not page then return bot.sendMessage(msg.chat.id, "Sorry, network error.") end...
apache-2.0
adan830/luacheck
src/luacheck/stds.lua
3
3735
local utils = require "luacheck.utils" local stds = {} stds.busted = { "describe", "insulate", "expose", "it", "pending", "before_each", "after_each", "lazy_setup", "lazy_teardown", "strict_setup", "strict_teardown", "setup", "teardown", "context", "spec", "test", "assert", "spy", "mock", "stub", "finally"} ...
mit
Lsty/ygopro-scripts
c45215453.lua
3
1388
--ヴァイロン・デルタ function c45215453.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,nil,aux.NonTuner(Card.IsAttribute,ATTRIBUTE_LIGHT),1) c:EnableReviveLimit() --search local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(45215453,0)) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(...
gpl-2.0
Lsty/ygopro-scripts
c13438207.lua
9
1134
--ブロッサム・ボンバー function c13438207.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DAMAGE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetCode(EVENT_BATTLE_DESTROYING) e1:SetCondition(c13438207.condition) e1:SetTarget(c13438207.target) e1:SetO...
gpl-2.0
Mkalo/forgottenserver
data/lib/core/player.lua
14
2590
local foodCondition = Condition(CONDITION_REGENERATION, CONDITIONID_DEFAULT) function Player.feed(self, food) local condition = self:getCondition(CONDITION_REGENERATION, CONDITIONID_DEFAULT) if condition then condition:setTicks(condition:getTicks() + (food * 1000)) else local vocation = self:getVocation() if ...
gpl-2.0
MalRD/darkstar
scripts/zones/Xarcabard/mobs/Boreal_Hound.lua
9
1030
----------------------------------- -- Area: Xarcabard -- NM: Boreal Hound -- Involved in Quests: Atop the Highest Mountains -- !pos -21 -25 -490 112 ----------------------------------- local ID = require("scripts/zones/Xarcabard/IDs") require("scripts/globals/keyitems") require("scripts/globals/settings") require("s...
gpl-3.0
MalRD/darkstar
scripts/globals/items/bowl_of_optical_soup.lua
11
1268
----------------------------------------- -- ID: 4340 -- Item: bowl_of_optical_soup -- Food Effect: 4Hrs, All Races ----------------------------------------- -- HP % 6 (cap 75) -- Charisma -15 -- HP Recovered While Healing 5 -- Accuracy 15 -- Ranged Accuracy 15 ----------------------------------------- require("scripts...
gpl-3.0
MalRD/darkstar
scripts/zones/Konschtat_Highlands/npcs/Cavernous_Maw.lua
10
1400
----------------------------------- -- Area: Konschtat Highlands -- NPC: Cavernous Maw -- !pos 96.344, -69.080, -580.008 108 -- Teleports Players to Abyssea - Konschtat ----------------------------------- local ID = require("scripts/zones/Konschtat_Highlands/IDs") require("scripts/globals/keyitems") require("scripts/g...
gpl-3.0
Lsty/ygopro-scripts
c25090294.lua
6
1379
--ブルーメンブラット function c25090294.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCost(c25090294.cost) e1:SetTarget(c25090294.target) e1:SetOperation(c25090294.activate) c:RegisterEffect(e1) en...
gpl-2.0
MalRD/darkstar
scripts/zones/Cloister_of_Tides/bcnms/trial_by_water.lua
9
1506
----------------------------------- -- Area: Cloister of Tides -- BCNM: Trial by Water ----------------------------------- local ID = require("scripts/zones/Cloister_of_Tides/IDs") require("scripts/globals/battlefield") require("scripts/globals/keyitems") require("scripts/globals/quests") require("scripts/globals/title...
gpl-3.0
Lsty/ygopro-scripts
c12181376.lua
5
1950
--トライアングル・X・スパーク function c12181376.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c12181376.target) e1:SetOperation(c12181376.activate) c:RegisterEffect(e1) end function c12181376.filter(...
gpl-2.0
openwrt/luci
build/luadoc/luadoc/lp.lua
175
4389
---------------------------------------------------------------------------- -- Lua Pages Template Preprocessor. -- -- @release $Id: lp.lua,v 1.7 2007/04/18 14:28:39 tomas Exp $ ---------------------------------------------------------------------------- local assert, error, getfenv, loadstring, setfenv = assert, erro...
apache-2.0
maxrio/luci981213
build/luadoc/luadoc/lp.lua
175
4389
---------------------------------------------------------------------------- -- Lua Pages Template Preprocessor. -- -- @release $Id: lp.lua,v 1.7 2007/04/18 14:28:39 tomas Exp $ ---------------------------------------------------------------------------- local assert, error, getfenv, loadstring, setfenv = assert, erro...
apache-2.0
Lsty/ygopro-scripts
c4756629.lua
5
3865
--ヴェルズ・ケルキオン function c4756629.initial_effect(c) --salvage local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOHAND) e1:SetDescription(aux.Stringid(4756629,0)) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCountLimit(1,4756629) e1:SetCost(c4756...
gpl-2.0
Lsty/ygopro-scripts
c39980304.lua
3
2277
--チェーン・マテリアル function c39980304.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCost(c39980304.cost) e1:SetOperation(c39980304.activate) c:RegisterEffect(e1) end function c39980304.cost(e,t...
gpl-2.0
MalRD/darkstar
scripts/zones/Nyzul_Isle/mobs/Amnaf_BLU.lua
9
3898
----------------------------------- -- Area: Nyzul Isle (Path of Darkness) -- Mob: Amnaf BLU ----------------------------------- local ID = require("scripts/zones/Nyzul_Isle/IDs") require("scripts/globals/status"); ----------------------------------- function onMobSpawn(mob) local instance = mob:getInstance(); ...
gpl-3.0
Lsty/ygopro-scripts
c13504844.lua
3
1625
--ガトムズの緊急指令 function c13504844.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMING_END_PHASE) e1:SetCondition(c13504844.condition) e1:...
gpl-2.0
MalRD/darkstar
scripts/zones/Ghelsba_Outpost/bcnms/toadal_recall.lua
9
1062
----------------------------------- -- Toadal Recall -- Ghelsba Outpost BCNM30, Sky Orb -- !additem 1552 ----------------------------------- require("scripts/globals/battlefield") ----------------------------------- function onBattlefieldInitialise(battlefield) battlefield:setLocalVar("loot", 1) end function onBa...
gpl-3.0
Lsty/ygopro-scripts
c44397496.lua
7
1164
--レッドアイズ・スピリッツ function c44397496.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c44397496.target) e1:SetOperation(c44397496.activate) c:Regis...
gpl-2.0
MalRD/darkstar
scripts/globals/keyitems.lua
11
156259
--------------------------------------------- -- -- KEYITEMS IDS -- --------------------------------------------- dsp = dsp or {} dsp.keyItem = { ZERUHN_REPORT = 1, PALBOROUGH_MINES_LOGS = 2, BLUE_ACIDITY_TESTER = 3, RED_ACIDITY_TESTER...
gpl-3.0
thebracket/bgame
world_defs/items_food.lua
1
16605
-- This file defines items that one can eat or drink. ----------------------------------------------------------------------------------------------------------------- items["tiny_marshmallow"] = { name = "Tiny Marshmallow", description = "A tiny lump of congealed sugar", itemtype = {"food-prepared"}, ...
gpl-3.0
rotmanmi/nn
MulConstant.lua
11
1119
local MulConstant, parent = torch.class('nn.MulConstant', 'nn.Module') function MulConstant:__init(constant_scalar,ip) parent.__init(self) assert(type(constant_scalar) == 'number', 'input is not scalar!') self.constant_scalar = constant_scalar -- default for inplace is false self.inplace = ip or false i...
bsd-3-clause
Frenzie/koreader
frontend/device/pocketbook/powerd.lua
4
2300
local BasePowerD = require("device/generic/powerd") local ffi = require("ffi") local inkview = ffi.load("inkview") local PocketBookPowerD = BasePowerD:new{ is_charging = nil, fl_min = 0, fl_max = 100, fl_warmth_min = 0, fl_warmth_max = 100, } function PocketBookPowerD:frontlightIntensityHW() ...
agpl-3.0
moody2020/TH3_BOSS
plugins/TH3BOSS7.lua
3
1723
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ dev : dev ...
gpl-2.0
MalRD/darkstar
scripts/globals/weaponskills/hot_shot.lua
10
1522
----------------------------------- -- Hot Shot -- Marksmanship weapon skill -- Skill Level: 5 -- Deals fire elemental damage to enemy. -- Aligned with the Flame Gorget & Light Gorget. -- Aligned with the Flame Belt & Light Belt. -- Element: Fire -- Modifiers: AGI:30% -- 100%TP 200%TP 300%TP -- 0.50 0.75 ...
gpl-3.0
MalRD/darkstar
scripts/zones/Port_San_dOria/npcs/Anton.lua
11
1299
----------------------------------- -- Area: Port San d'Oria -- NPC: Anton -- !pos -19 -8 27 232 ----------------------------------- local ID = require("scripts/zones/Port_San_dOria/IDs"); require("scripts/globals/settings"); require("scripts/globals/keyitems"); require("scripts/globals/quests"); ---------------------...
gpl-3.0
Lsty/ygopro-scripts
c59718521.lua
3
2137
--ブローニング・パワー function c59718521.initial_effect(c) --Activate(summon) local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DISABLE_SUMMON+CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_SUMMON) e1:SetCondition(c59718521.condition1) e1:SetCost(c59718521.cost) e1:SetTarget(c59718521.target1)...
gpl-2.0
Lsty/ygopro-scripts
c49398568.lua
7
1315
--連続魔法 function c49398568.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_CHAINING) e1:SetCondition(c49398568.condition) e1:SetCost(c49398568.cost) e1:SetTarget(c49398568.target) e1:SetOperation(c49398568.activate) c:RegisterEffect(e1) end function...
gpl-2.0
Lsty/ygopro-scripts
c68144350.lua
9
1962
--BK スイッチヒッター function c68144350.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(68144350,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1...
gpl-2.0
Lsty/ygopro-scripts
c52558805.lua
5
2192
--太鼓魔人テンテンテンポ function c52558805.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,nil,3,2) c:EnableReviveLimit() --atkchange local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(52558805,0)) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e1:SetT...
gpl-2.0
Lsty/ygopro-scripts
c48009503.lua
9
1249
--H-C ガーンデーヴァ function c48009503.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_WARRIOR),4,2) c:EnableReviveLimit() --destroy local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(48009503,0)) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_FIELD+EF...
gpl-2.0
MalRD/darkstar
scripts/zones/Grand_Palace_of_HuXzoi/globals.lua
12
1104
-- Zone: Grand Palace of Hu'Xzoi (34) -- Desc: this file contains functions that are shared by multiple luas in this zone's directory ----------------------------------- local ID = require("scripts/zones/Grand_Palace_of_HuXzoi/IDs"); require("scripts/globals/status"); ----------------------------------- GRAND_PALACE_O...
gpl-3.0
Lsty/ygopro-scripts
c76589815.lua
3
2676
--BK チート・コミッショナー function c76589815.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,nil,3,2) c:EnableReviveLimit() --must attack local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetRange(LOCATION_MZONE) e1:SetTargetRange(0,LOCATION_MZONE) e1:SetCode(EFFECT_MUST_ATTACK) c:RegisterEffect(e1...
gpl-2.0
robertbrook/Penlight
lua/pl/func.lua
14
10456
--- Functional helpers like composition, binding and placeholder expressions. -- Placeholder expressions are useful for short anonymous functions, and were -- inspired by the Boost Lambda library. -- -- > utils.import 'pl.func' -- > ls = List{10,20,30} -- > = ls:map(_1+1) -- {11,21,31} -- -- They can also b...
mit
Lsty/ygopro-scripts
c8632967.lua
7
1175
--進化の宿命 function c8632967.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --act limit local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetRange(LOCATION_SZONE) e2:SetCode(EVEN...
gpl-2.0
openwrt/luci
applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua
3
3316
--[[ LuCI - Lua Configuration Interface Copyright 2019 lisaac <https://github.com/lisaac/luci-app-dockerman> ]]-- local docker = require "luci.model.docker" local m, s, o function byte_format(byte) local suff = {"B", "KB", "MB", "GB", "TB"} for i=1, 5 do if byte > 1024 and i < 5 then byte = byte / 1024 else...
apache-2.0
Lsty/ygopro-scripts
c75252099.lua
3
1452
--ローズ・バード function c75252099.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(75252099,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_BATTLE_DESTROYED) e1:SetCondition(c75252099.spcon) e1:SetTarge...
gpl-2.0
MalRD/darkstar
scripts/zones/Southern_San_dOria/npcs/Femitte.lua
9
2758
----------------------------------- -- Area: Southern San d'Oria -- NPC: Femitte -- Involved in Quest: Lure of the Wildcat (San d'Oria), Distant Loyalties -- !pos -17 2 10 230 ------------------------------------- require("scripts/globals/quests"); require("scripts/globals/keyitems"); local ID = require("scripts/zones...
gpl-3.0
MalRD/darkstar
scripts/zones/Quicksand_Caves/Zone.lua
8
4217
----------------------------------- -- -- Zone: Quicksand_Caves (208) -- ----------------------------------- local ID = require("scripts/zones/Quicksand_Caves/IDs") require("scripts/globals/conquest") require("scripts/globals/keyitems") require("scripts/globals/npc_util") require("scripts/globals/settings") require("sc...
gpl-3.0
mamadkiller2/anti-spam
libs/dkjson.lua
31
19917
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' -- global dependencies: local pairs, type, tostring, tonumber, getmetatable, setmetatable, rawset = pairs, type, tostring, tonumber, getmetatable, setmetatable, raws...
gpl-3.0
MalRD/darkstar
scripts/globals/mobskills/sledgehammer.lua
11
1041
--------------------------------------------- -- Sledgehammer -- Description: Delivers a sledgehammer blow to all targets in front. Additional effect: Petrification -- Type: Physical -- Utsusemi/Blink absorb: 3 shadows -- Range: Front cone -- Notes: Only used by Gurfurlur the Menacing. ---------------------------...
gpl-3.0
Distrotech/vlc
share/lua/modules/common.lua
48
4964
--[[ This code is public domain (since it really isn't very interesting) ]]-- module("common",package.seeall) -- Iterate over a table in the keys' alphabetical order function pairs_sorted(t) local s = {} for k,_ in pairs(t) do table.insert(s,k) end table.sort(s) local i = 0 return function () i = ...
gpl-2.0
openwrt/luci
modules/luci-mod-rpc/luasrc/jsonrpc.lua
3
1973
-- 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.jsonrpc", package.seeall) require "luci.json" function resolve(mod, method) local path = luci.util.split(method, ".") for j=1, #path-1 do if...
apache-2.0
MalRD/darkstar
scripts/globals/items/elshimo_frog.lua
11
1212
----------------------------------------- -- ID: 4290 -- Item: elshimo_frog -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Agility 2 -- Mind -4 -- Evasion 5 ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ---------...
gpl-3.0
MalRD/darkstar
scripts/zones/Horlais_Peak/bcnms/tails_of_woe.lua
9
1059
----------------------------------- -- Tails of Woe -- Horlais Peak BCNM40, Star Orb -- !additem 1131 ----------------------------------- require("scripts/globals/battlefield") ----------------------------------- function onBattlefieldInitialise(battlefield) battlefield:setLocalVar("loot", 1) end function onBattl...
gpl-3.0
MalRD/darkstar
scripts/globals/abilities/wizards_roll.lua
12
2988
----------------------------------- -- Ability: Wizard's Roll -- Enhances magic attack for party members within area of effect -- Optimal Job: Black Mage -- Lucky Number: 5 -- Unlucky Number: 9 -- Level 58 -- Phantom Roll +1 Value: 2 -- -- Die Roll |No BLM |With BLM -- -------- -------- ----------- -- 1 ...
gpl-3.0
Lsty/ygopro-scripts
c74153887.lua
9
2130
--黒蠍-棘のミーネ function c74153887.initial_effect(c) local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(74153887,0)) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_BATTLE_DAMAGE) e1:SetCondition(c74153887.condition) e1:SetTarget(c74153...
gpl-2.0
MalRD/darkstar
scripts/globals/mobskills/chaos_blade.lua
11
1088
--------------------------------------------- -- Chaos Blade -- -- Description: Deals Dark damage to enemies within a fan-shaped area. Additional effect: Curse -- Type: Magical -- Utsusemi/Blink absorb: Ignores Shadows -- Range: Melee -- Notes: --------------------------------------------- require("scripts/global...
gpl-3.0
gallenmu/MoonGen
libmoon/lua/proto/dns.lua
4
17416
------------------------------------------------------------------------ --- @file dns.lua --- @brief (dns) utility. --- Utility functions for the dns_header structs --- - dns constants --- - dns header utility --- - Definition of dns packets --- --- Copyright (c) Santiago R.R. <santiago.ruano-rincon@telecom-bretagne....
mit
takaaptech/nightmaretris
3rdparty/underscore.lua
22
9838
-- Copyright (c) 2009 Marcus Irven -- -- 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, publ...
gpl-3.0
ASDF482/TeleTak
plugins/welcome.lua
1
3620
local add_user_cfg = load_from_file('data/add_user_cfg.lua') local function template_add_user(base, to_username, from_username, chat_name, chat_id) base = base or '' to_username = '@' .. (to_username or '') from_username = '@' .. (from_username or '') chat_name = string.gsub(chat_name, '_', ' ') or '...
gpl-2.0
MalRD/darkstar
scripts/globals/items/roll_of_sylvan_excursion.lua
11
1300
----------------------------------------- -- ID: 5551 -- Item: Roll of Sylvan Excursion -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +10 -- MP +3% Cap 15 -- Intelligence +3 -- HP Recovered while healing +2 -- MP Recovered while healing +5 -----------------------...
gpl-3.0
Lsty/ygopro-scripts
c48653261.lua
3
1412
--ガードペナルティ function c48653261.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c48653261.target) e1:SetOperation(c48653261.activate) c:RegisterEffect(e1) end function c48653261.target(e...
gpl-2.0
gallenmu/MoonGen
interface/devmgr.lua
4
1348
local device = require "device" local devicesClass = {} function devicesClass:reserveTx(tx) self[tx].txq = self[tx].txq + 1 end function devicesClass:reserveRx(rx) self[rx].rxq = self[rx].rxq + 1 end function devicesClass:reserveRss(rss) self[rss].rxq = self[rss].rxq + 1 self[rss].rsq = self[rss].rsq + 1 end l...
mit
MalRD/darkstar
scripts/zones/Waughroon_Shrine/bcnms/up_in_arms.lua
9
1061
----------------------------------- -- Up in Arms -- Waughroon Shrine BCNM60, Moon Orb -- !additem 1130 ----------------------------------- require("scripts/globals/battlefield") ----------------------------------- function onBattlefieldInitialise(battlefield) battlefield:setLocalVar("loot", 1) end function onBat...
gpl-3.0
Lsty/ygopro-scripts
c63422098.lua
3
1031
--鬼岩城 function c63422098.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1) c:EnableReviveLimit() -- local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetRange(LOCATION_MZONE) e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetVal...
gpl-2.0
Lsty/ygopro-scripts
c78734254.lua
7
1821
--N・マリン・ドルフィン function c78734254.initial_effect(c) c:EnableReviveLimit() --cannot special summon local e1=Effect.CreateEffect(c) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_SPSUMMON_CONDITION) c:RegisterEffect(e1) --Activate local e2=Effect...
gpl-2.0
MalRD/darkstar
scripts/zones/Southern_San_dOria/npcs/Daggao.lua
9
1489
----------------------------------- -- Area: Southern San d'Oria -- NPC: Daggao -- Involved in Quest: Peace for the Spirit, Lure of the Wildcat (San d'Oria) -- !pos 89 0 119 230 ----------------------------------- require("scripts/globals/quests"); local ID = require("scripts/zones/Southern_San_dOria/IDs"); ----------...
gpl-3.0
Frenzie/koreader
frontend/document/canvascontext.lua
4
3273
--[[ CanvasContext is introduced to abstract out screen hardware code from document render module. This abstraction makes it possible to use core document module in headless mode. You can think of canvas as a virtual screen. It provides render related settings like canvas dimension and DPI. User of document module nee...
agpl-3.0
nmabhi/Webface
training/util.lua
8
2973
-- Source: https://github.com/soumith/imagenet-multiGPU.torch/blob/master/util.lua local ffi=require 'ffi' ------ Some FFI stuff used to pass storages between threads ------------------ ffi.cdef[[ void THFloatStorage_free(THFloatStorage *self); void THLongStorage_free(THLongStorage *self); ]] local function setFloatS...
apache-2.0
Lsty/ygopro-scripts
c60634565.lua
3
1258
--レプティレス・ラミア function c60634565.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x3c),aux.NonTuner(nil),1) c:EnableReviveLimit() --destroy local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(60634565,0)) e1:SetCategory(CATEGORY_DESTROY+CATEGORY_DRAW) ...
gpl-2.0
Lsty/ygopro-scripts
c32646477.lua
5
1420
--ダーク・ダイブ・ボンバー function c32646477.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1) c:EnableReviveLimit() --damage local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(32646477,0)) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetCategory(CATEGORY_DAMAGE) e1:SetType...
gpl-2.0
Lsty/ygopro-scripts
c981540.lua
3
1428
--ハーフ・アンブレイク function c981540.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetTarget(c981540.target) e1:SetOperation(c981540.activate) c:RegisterEffect(e1) end function c981540.target(e,tp,eg...
gpl-2.0
MalRD/darkstar
scripts/zones/Selbina/npcs/Melyon.lua
9
2810
----------------------------------- -- Area: Selbina -- NPC: Melyon -- Starts and Finishes Quest: Only the Best (R) -- Involved in Quest: Riding on the Clouds -- !pos 25 -6 6 248 ----------------------------------- local ID = require("scripts/zones/Selbina/IDs") require("scripts/globals/keyitems") require("scripts/glo...
gpl-3.0
Lsty/ygopro-scripts
c57827484.lua
5
1431
--シャドウ・ダイバー function c57827484.initial_effect(c) aux.EnableDualAttribute(c) local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(57827484,0)) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCountLimit(1) e1:SetRange(LOCATION_MZONE) e1:SetCondition(c57827484.condition) e...
gpl-2.0
Lsty/ygopro-scripts
c34026662.lua
3
1271
--進化の奇跡 function c34026662.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c34026662.target) e1:SetOperation(c34026662.activate) c:RegisterEffect(e1) end function c34026662.filter(c) ...
gpl-2.0
MalRD/darkstar
scripts/zones/Crawlers_Nest/mobs/Aqrabuamelu.lua
11
1468
----------------------------------- -- Area: Crawlers' Nest -- NM: Aqrabuamelu ----------------------------------- require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") ----------------------------------- function onMobInitialize(mob) mob:setMobMod(dsp.mobMod.AUTO_SPIK...
gpl-3.0
MalRD/darkstar
scripts/zones/Northern_San_dOria/npcs/Maloquedil.lua
9
3283
----------------------------------- -- Area: Northern San d'Oria -- NPC: Maloquedil -- Involved in Quest : Warding Vampires, Riding on the Clouds, Lure of the Wildcat (San d'Oria) -- !pos 35 0.1 60 231 ----------------------------------- local ID = require("scripts/zones/Northern_San_dOria/IDs"); require("scripts/glob...
gpl-3.0
patixx/bostg
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0