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
mlem/wesnoth
data/ai/micro_ais/cas/ca_stationed_guardian.lua
24
4530
local H = wesnoth.require "lua/helper.lua" local AH = wesnoth.require "ai/lua/ai_helper.lua" local function get_guardian(cfg) local filter = cfg.filter or { id = cfg.id } local guardian = AH.get_units_with_moves { side = wesnoth.current.side, { "and", filter } }[1] return guardian end ...
gpl-2.0
nasomi/darkstar
scripts/globals/items/dolphin_staff.lua
41
1077
----------------------------------------- -- ID: 17134 -- Item: Dolphin Staff -- Additional Effect: Water Damage ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onAdditionalEffect Action -----------------------------...
gpl-3.0
nasomi/darkstar
scripts/zones/Mamook/npcs/qm2.lua
16
1163
----------------------------------- -- Area: Mamook -- NPC: ??? (Spawn Iriri Samariri(ZNM T2)) -- @pos -118 7 -80 65 ----------------------------------- package.loaded["scripts/zones/Mamook/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Mamook/TextIDs"); --------------------------------...
gpl-3.0
mkjanke/Focus-Points
focuspoints.lrdevplugin/NikonDuplicates.lua
3
1050
--[[ Copyright 2016 Whizzbang Inc Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
apache-2.0
nasomi/darkstar
scripts/globals/spells/absorb-dex.lua
18
1300
-------------------------------------- -- Spell: Absorb-DEX -- Steals an enemy's dexterity. -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------...
gpl-3.0
mpeterv/ltq
src/ltq/builtins.lua
1
4566
-- Builtins are represented by functions taking compilation environment, varible name and arguments -- and returning nested arrays of strings representing statement and expression parts of result. local builtins = {} -- Returns a builtin for a prefix unary opator. local function unop(op) return function(env, var, a...
mit
thesabbir/luci
applications/luci-app-splash/luasrc/controller/splash/splash.lua
40
4649
module("luci.controller.splash.splash", package.seeall) local uci = luci.model.uci.cursor() local util = require "luci.util" function index() entry({"admin", "services", "splash"}, cbi("splash/splash"), _("Client-Splash"), 90) entry({"admin", "services", "splash", "splashtext" }, form("splash/splashtext"), _("Splas...
apache-2.0
nasomi/darkstar
scripts/zones/The_Sanctuary_of_ZiTah/TextIDs.lua
9
1760
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory. FULL_INVENTORY_AFTER_TRADE = 6383; -- You cannot obtain the <item>. Try trading again after sorting your inventory. ITEM_OBTAINED = 6384; ...
gpl-3.0
nasomi/darkstar
scripts/globals/items/bataquiche_+1.lua
35
1474
----------------------------------------- -- ID: 5169 -- Item: Bataquiche +1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Magic 10 -- Agility 1 -- Vitality -1 -- Ranged ATT % 7 -- Ranged ATT Cap 20 ----------------------------------------- require("scripts/globals/status");...
gpl-3.0
nasomi/darkstar
scripts/zones/Leujaoam_Sanctum/IDs.lua
33
3149
Leujaoam = { text = { -- General Texts ITEM_CANNOT_BE_OBTAINED = 6378, -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6381, -- Obtained: <item> GIL_OBTAINED = 6384, -- Obtained <number> gil KEYITEM_OBTAINED = 6384, -- Obtain...
gpl-3.0
nasomi/darkstar
scripts/zones/Vunkerl_Inlet_[S]/Zone.lua
34
1337
----------------------------------- -- -- Zone: Vunkerl_Inlet_[S] (83) -- ----------------------------------- package.loaded["scripts/zones/Vunkerl_Inlet_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Vunkerl_Inlet_[S]/TextIDs"); -------...
gpl-3.0
nasomi/darkstar
scripts/zones/LaLoff_Amphitheater/npcs/qm2.lua
17
2200
----------------------------------- -- Area: LaLoff_Amphitheater -- NPC: Shimmering Circle (BCNM Exits) ------------------------------------- package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil; ------------------------------------- require("scripts/globals/bcnm"); require("scripts/globals/title...
gpl-3.0
nasomi/darkstar
scripts/zones/Southern_San_dOria/npcs/HomePoint#3.lua
17
1262
----------------------------------- -- Area: Southern San dOria -- NPC: HomePoint#3 -- @pos 140 -2 123 230 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Southern_San_dOria/TextIDs"); require(...
gpl-3.0
shangjiyu/luci-with-extra
build/luadoc/luadoc/doclet/debug.lua
175
1048
----------------------------------------------------------------- -- LuaDoc debugging facilities. -- @release $Id: debug.lua,v 1.3 2007/04/18 14:28:39 tomas Exp $ ----------------------------------------------------------------- module "luadoc.doclet.debug" function printline() print(string.rep('-', 79)) end ------...
apache-2.0
nasomi/darkstar
scripts/zones/Port_San_dOria/npcs/Noquerelle.lua
36
1376
----------------------------------- -- Area: Port San d'Oria -- NPC: Noquerelle -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/zones/Port_San_dOria/Te...
gpl-3.0
nasomi/darkstar
scripts/zones/Temenos/mobs/Enhanced_Beetle.lua
16
1046
----------------------------------- -- Area: Temenos W T -- NPC: Enhanced_Beetle ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); ----------------------...
gpl-3.0
nicholas-leonard/nn
Decorator.lua
5
1585
local Decorator, parent = torch.class("nn.Decorator", "nn.Container") function Decorator:__init(module) parent.__init(self) -- so that it can be handled like a Container self.modules[1] = module end function Decorator:updateOutput(input) self.output = self.modules[1]:updateOutput(input) return self.out...
bsd-3-clause
nasomi/darkstar
scripts/globals/spells/bluemagic/death_ray.lua
18
1602
----------------------------------------- -- Spell: Death Ray -- Deals dark damage to an enemy -- Spell cost: 49 MP -- Monster Type: Amorphs -- Spell Type: Magical (Dark) -- Blue Magic Points: 2 -- Stat Bonus: HP-5, MP+5 -- Level: 34 -- Casting Time: 4.5 seconds -- Recast Time: 29.25 seconds -- Magic Bursts ...
gpl-3.0
nasomi/darkstar
scripts/zones/Northern_San_dOria/npcs/Morunaude.lua
36
1428
----------------------------------- -- Area: Northern San d'Oria -- NPC: Morunaude -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quest...
gpl-3.0
kaustubhcs/torch-toolbox
Convert-MM/convertLinearmodelConvMM.lua
3
1857
--[[Author: Aysegul Dundar (adundar@purdue.edu) -- This file converts Linear layers in the network to ConvolutionMM -- so in the demo, you can step in the image. -- Please update the input size based on your network. -- ]] require 'nnx' if not arg[1] then print "Network unspecified (type it after the program's name...
bsd-3-clause
nasomi/darkstar
scripts/globals/items/buttered_nebimonite.lua
35
1401
----------------------------------------- -- ID: 4267 -- Item: Buttered Nebimonite -- Food Effect: 60Min, All Races ----------------------------------------- -- Dexterity 1 -- Vitality 2 -- defense % 25 -- defense Cap 75 ----------------------------------------- require("scripts/globals/status"); -------...
gpl-3.0
kerr-huang/SL4A
lua/luasocket/etc/qp.lua
59
1025
----------------------------------------------------------------------------- -- Little program to convert to and from Quoted-Printable -- LuaSocket sample files -- Author: Diego Nehab -- RCS ID: $Id: qp.lua,v 1.5 2004/06/17 21:46:22 diego Exp $ --------------------------------------------------------------------------...
apache-2.0
mlem/wesnoth
data/ai/lua/battle_calcs.lua
28
74789
local H = wesnoth.require "lua/helper.lua" local AH = wesnoth.require "ai/lua/ai_helper.lua" local LS = wesnoth.require "lua/location_set.lua" -- This is a collection of Lua functions used for custom AI development. -- Note that this is still work in progress with significant changes occurring -- frequently. Backward ...
gpl-2.0
nasomi/darkstar
scripts/zones/Wajaom_Woodlands/npcs/Harvesting_Point.lua
29
1175
----------------------------------- -- Area: Wajaom Woodlands -- NPC: Harvesting Point ----------------------------------- package.loaded["scripts/zones/Wajaom_Woodlands/TextIDs"] = nil; package.loaded["scripts/globals/harvesting"] = nil; ------------------------------------- require("scripts/globals/harves...
gpl-3.0
icplus/OP-SDK
package/ramips/ui/luci-mtk/src/applications/luci-statistics/luasrc/model/cbi/luci_statistics/df.lua
78
1628
--[[ Luci configuration model for statistics - collectd df 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 at...
gpl-2.0
lamefun/colosseum-xp
lua/common/json.lua
1
15832
<< ----------------------------------------------------------------------------- -- JSON4Lua: JSON encoding / decoding support for the Lua language. -- json Module. -- Author: Craig Mason-Jones -- Homepage: http://json.luaforge.net/ -- Version: 0.9.40 -- This module is released under the MIT License (MIT). --...
gpl-2.0
nasomi/darkstar
scripts/globals/items/red_terrapin.lua
18
1322
----------------------------------------- -- ID: 4402 -- Item: red_terrapin -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 3 -- Mind -5 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItem...
gpl-3.0
nasomi/darkstar
scripts/zones/Northern_San_dOria/npcs/Coullene.lua
5
1527
----------------------------------- -- Area: Northern San d'Oria -- NPC: Coullene -- Type: Involved in Quest (Flyers for Regine) -- @zone: 231 -- @pos 146.420 0.000 127.601 -- ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; require("scripts/zones/Northern_San_...
gpl-3.0
nasomi/darkstar
scripts/zones/Castle_Oztroja/npcs/_47x.lua
17
1247
----------------------------------- -- Area: Castle Oztroja -- NPC: _47x (Handle) -- Notes: Opens door _477 -- @pos -99 -71 -41 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Castle_Oztroja/TextI...
gpl-3.0
nasomi/darkstar
scripts/globals/mobskills/Dread_Dive.lua
25
1043
--------------------------------------------- -- Dread Dive -- -- Description: Dives into a single target. Additional effect: Knockback + Stun -- Type: Physical -- Utsusemi/Blink absorb: 1 shadow -- Range: Melee -- Notes: Used instead of Gliding Spike by certain notorious monsters. -----------------------...
gpl-3.0
nasomi/darkstar
scripts/globals/items/serving_of_elysian_eclair.lua
36
1430
----------------------------------------- -- ID: 5560 -- Item: Serving of Elysian Eclair -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +10 -- MP +15 -- Intelligence +2 -- HP Recoverd while healing 2 -- MP Recovered while healing 2 --------------------------------...
gpl-3.0
Nelarius/wren
test/benchmark/fannkuch.lua
13
1363
-- The Computer Language Benchmarks Game -- http://benchmarksgame.alioth.debian.org/ -- contributed by Mike Pall local function fannkuch(n) local p, q, s, sign, maxflips, sum = {}, {}, {}, 1, 0, 0 for i=1,n do p[i] = i; q[i] = i; s[i] = i end repeat -- Copy and flip. local q1 = p[1] -- Cache 1st el...
mit
nasomi/darkstar
scripts/globals/spells/poisonga_ii.lua
18
1099
----------------------------------------- -- Spell: Poisonga II ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target...
gpl-3.0
icplus/OP-SDK
package/ramips/ui/luci-mtk/src/modules/base/luasrc/template.lua
68
3061
--[[ LuCI - Template Parser Description: A template parser supporting includes, translations, Lua code blocks and more. It can be used either as a compiler or as an interpreter. FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you...
gpl-2.0
nasomi/darkstar
scripts/zones/Attohwa_Chasm/npcs/Jakaka.lua
19
2419
----------------------------------- -- Area: Attohwa Chasm -- NPC: Jakaka -- Type: ENM -- @pos -144.711 6.246 -250.309 7 ----------------------------------- package.loaded["scripts/zones/Attohwa_Chasm/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Attohwa_Chasm/TextIDs"); require("scr...
gpl-3.0
nasomi/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Kelsha-Melansha.lua
34
1040
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Kelsha-Melansha -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); --...
gpl-3.0
nasomi/darkstar
scripts/zones/Maze_of_Shakhrami/npcs/Grounds_Tome.lua
34
1148
----------------------------------- -- Area: Maze of Shakhrami -- NPC: Grounds Tome ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/groundsofvalor"); ----------------------------------- -- onTrade Action ----------------------------------- function onTra...
gpl-3.0
shangjiyu/luci-with-extra
applications/luci-app-vsftpd/luasrc/model/cbi/vsftpd/general.lua
10
4043
--[[ LuCI - Lua Configuration Interface Copyright 2016 Weijie Gao <hackpascal@gmail.com> 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$ ]]-- m =...
apache-2.0
nasomi/darkstar
scripts/zones/Apollyon/mobs/Proto-Omega.lua
16
3073
----------------------------------- -- Area: Apollyon Centrale -- NPC: Proto-Omega ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Apollyon/TextIDs"); require("scripts/glo...
gpl-3.0
nasomi/darkstar
scripts/globals/mobskills/Wire_Cutter.lua
17
1077
--------------------------------------------------- -- Wire_Cutter -- Single-target damage (~500-1500), absorbed by 2 Utsusemi shadows. -- --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); -...
gpl-3.0
nasomi/darkstar
scripts/zones/Cloister_of_Frost/bcnms/trial_by_ice.lua
19
1842
----------------------------------- -- Area: Cloister of Frost -- BCNM: Trial by Ice -- @pos 558 0.1 596 203 ----------------------------------- package.loaded["scripts/zones/Cloister_of_Frost/TextIDs"] = nil; ------------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/quests");...
gpl-3.0
nasomi/darkstar
scripts/zones/Bastok_Markets/npcs/Umberto.lua
38
1073
----------------------------------- -- Area: Bastok Markets -- NPC: Umberto -- Type: Quest NPC -- @zone: 235 -- @pos -56.896 -5 -134.267 -- -- Auto-Script: Requires Verification. Verified standard dialog - thrydwolf 12/18/2011 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextID...
gpl-3.0
actboy168/YDWE
Development/Component/plugin/w3x2lni/script/core/slk/frontend_w3i.lua
2
10516
local lang = require 'lang' local select = select local w2l local function unpack_flag(flag) local tbl = {} for i = 0, 64 do local n = 1 << i if n > flag then break end if flag & n ~= 0 then tbl[#tbl+1] = i + 1 end end return tbl end loc...
gpl-3.0
nasomi/darkstar
scripts/zones/North_Gustaberg_[S]/Zone.lua
16
1740
----------------------------------- -- -- Zone: North_Gustaberg_[S] (88) -- ----------------------------------- package.loaded["scripts/zones/North_Gustaberg_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/North_Gustaberg_[S]/TextIDs"); -...
gpl-3.0
appaquet/torch-android
android-demo-cifar/modelPrepare/test-only.lua
4
7607
---------------------------------------------------------------------- -- This script test Cifar-10 test data set with pre-trained network. -- -- This script is based on file from below address. -- -- https://github.com/torch/demos/blob/master/train-on-cifar/train-on-cifar.lua -- -- Training code are removed. -- This...
bsd-3-clause
nasomi/darkstar
scripts/globals/items/apple_pie.lua
34
1279
----------------------------------------- -- ID: 4413 -- Item: Apple Pie -- Food Effect: 30Min, All Races ----------------------------------------- -- Magic 25 -- Agility -1 -- Intelligence 3 ----------------------------------------- require("scripts/globals/status"); -------------------------------------...
gpl-3.0
mkjanke/Focus-Points
focuspoints.lrdevplugin/ExifUtils.lua
3
4542
--[[ Copyright 2016 Whizzbang Inc Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
apache-2.0
shangjiyu/luci-with-extra
applications/luci-app-ntpc/luasrc/model/cbi/ntpc/ntpc.lua
78
1289
-- 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. m = Map("ntpclient", translate("Time Synchronisation"), translate("Synchronizes the system time")) s = m:section(TypedSection, "ntpclient", translate("General...
apache-2.0
mahdi1378/FBI
plugins/owners.lua
1467
12478
local function lock_group_namemod(msg, data, target) local group_name_set = data[tostring(target)]['settings']['set_name'] local group_name_lock = data[tostring(target)]['settings']['lock_name'] if group_name_lock == 'yes' then return 'Group name is already locked' else data[tostring(target)]['setting...
gpl-2.0
Maliv/SecretBot
plugins/owners.lua
1467
12478
local function lock_group_namemod(msg, data, target) local group_name_set = data[tostring(target)]['settings']['set_name'] local group_name_lock = data[tostring(target)]['settings']['lock_name'] if group_name_lock == 'yes' then return 'Group name is already locked' else data[tostring(target)]['setting...
gpl-2.0
amirhoseinhastam1/1
plugins/owners.lua
1467
12478
local function lock_group_namemod(msg, data, target) local group_name_set = data[tostring(target)]['settings']['set_name'] local group_name_lock = data[tostring(target)]['settings']['lock_name'] if group_name_lock == 'yes' then return 'Group name is already locked' else data[tostring(target)]['setting...
gpl-2.0
nasomi/darkstar
scripts/globals/spells/paralyga.lua
18
1691
----------------------------------------- -- Spell: Paralyze -- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and MND. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpell...
gpl-3.0
dageq/Dage-Aliraqi
plugins/ar-Dage_Aliraqi3.lua
1
1088
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY Dage Aliraqi ▀▄ ▄▀ ▀▄ ▄▀ BY Dage Aliraqi (@dageq) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY Dage Aliraqi ▀▄ ▄▀ ▀▄ ▄▀ dev1 : dev ▀▄ ▄▀ ▀▄▀...
gpl-2.0
mkjanke/Focus-Points
focuspoints.lrdevplugin/PentaxDelegates.lua
5
7426
--[[ Copyright 2016 Whizzbang Inc Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
apache-2.0
nasomi/darkstar
scripts/zones/The_Eldieme_Necropolis/npcs/Grounds_Tome.lua
34
1155
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: Grounds Tome ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/groundsofvalor"); ----------------------------------- -- onTrade Action ----------------------------------- function ...
gpl-3.0
nasomi/darkstar
scripts/zones/Southern_San_dOria/npcs/HomePoint#2.lua
17
1260
----------------------------------- -- Area: Southern San dOria -- NPC: HomePoint#2 -- @pos 45 2 -35 230 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Southern_San_dOria/TextIDs"); require("s...
gpl-3.0
ngeiswei/ardour
share/scripts/voice_activate.lua
3
1681
ardour { ["type"] = "dsp", name = "Voice/Level Activate", category = "Utility", author = "Ardour Team", license = "MIT", description = [[Roll the transport when the signal level on the plugin's input exceeds a given threshold.]] } function dsp_ioconfig () return { -- support all in/out ...
gpl-2.0
shangjiyu/luci-with-extra
applications/luci-app-xware3/luasrc/model/cbi/xware3.lua
4
3692
local fs = require "nixio.fs" local util = require "nixio.util" local running=(luci.sys.call("pidof etm_xware > /dev/null") == 0) local button="" local xunleiinfo="" local tblXLInfo={} local detailInfo = "迅雷远程下载尚未运行。" if running then xunleiinfo = luci.sys.exec("wget http://localhost:19000/getsysinfo -qO-") b...
apache-2.0
akornatskyy/lucid
spec/core/pretty_spec.lua
1
1731
local pretty = require 'core.pretty' describe('core.pretty', function() local dump = pretty.dump it('dump nil', function() assert.equals('nil', dump()) end) it('dump default', function() local cases = { ['1'] = 1, ['"a"'] = 'a', ['true'] = true, ...
mit
shangjiyu/luci-with-extra
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/email.lua
73
1673
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. m = Map("luci_statistics", translate("E-Mail Plugin Configuration"), translate( "The email plugin creates a unix socket which can be used " .. "to transmit email-statistics to a running ...
apache-2.0
mrfoxirani/mehran
plugins/translate.lua
674
1637
--[[ -- Translate text using Google Translate. -- http://translate.google.com/translate_a/single?client=t&ie=UTF-8&oe=UTF-8&hl=en&dt=t&tl=en&sl=auto&text=hello --]] do function translate(source_lang, target_lang, text) local path = "http://translate.google.com/translate_a/single" -- URL query parameters local p...
gpl-2.0
nasomi/darkstar
scripts/zones/Norg/Zone.lua
17
2315
----------------------------------- -- -- Zone: Norg (252) -- ----------------------------------- package.loaded["scripts/zones/Norg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require("scripts/globals/missions"); require("sc...
gpl-3.0
thesabbir/luci
applications/luci-app-asterisk/luasrc/model/cbi/asterisk/dialzones.lua
68
3276
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local ast = require("luci.asterisk") local uci = require("luci.model.uci").cursor() --[[ Dialzone overview table ]] if not arg[1] then zonemap = Map("asterisk", "Dial Zones", [[ Dial zones hold patterns of...
apache-2.0
Honsal/hszs_deathstreak
lua/zs_deathstreak/init.lua
1
12676
local DS_DMGUP = "dsDmgUp" local DS_ARMORUP = "dsArmorUp" local DS_SPEEDUP = "dsSpeedUp" local DS_ATK_SPEEDUP = "dsAtkSpeedUp" local DS_HEALTHUP = "dsHealthUp" local DS_LIMIT_BARRICADEDAMAGE = 300 local DS_LIMIT_DAMAGE = 120 -- local DS_LIMIT_DISTANCE = 3600 ZombieClassTable = ZombieClassTable or {} local DeathStrea...
apache-2.0
vavrusa/luajit-libuv
test/timer_test.lua
2
1041
require 'uv/util/strict' local loop = require 'uv.loop' local timer = require 'uv.timer' do local s = '' timer.set(5, function() s = s .. 'e' end) timer.set(3, function() s = s .. 'c' end) timer.set(1, function() s = s .. 'a' end) timer.set(2, function() s = s .. 'b' end) timer.set(4, function() s = s .. '...
mit
EricssonResearch/scott-eu
simulation-ros/src/turtlebot2i/turtlebot2i_description/v-rep_model/warehouse_scene/vrep_scripts/lidar.lua
1
5233
-- This is a ROS enabled Hokuyo_04LX_UG01 model (although it can be used as a generic -- ROS enabled laser scanner), based on the existing Hokuyo model. It performs instantaneous -- scans and publishes ROS Laserscan msgs, along with the sensor's tf. -- This script was modified to support the Hokuyo_04LX_UG01_Fast sens...
apache-2.0
nasomi/darkstar
scripts/zones/Castle_Oztroja/npcs/Treasure_Coffer.lua
17
3634
----------------------------------- -- Area: Castle Oztroja -- NPC: Treasure Coffer -- @zone 151 -- @pos ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyite...
gpl-3.0
nasomi/darkstar
scripts/zones/Bibiki_Bay/npcs/Toh_Zonikki.lua
19
4706
----------------------------------- -- Area: Bibiki Bay -- NPC: Toh Zonikki -- Type: Clamming NPC -- @pos -371 -1 -421 4 ----------------------------------- package.loaded["scripts/zones/Bibiki_Bay/TextIDs"] = nil; require("scripts/zones/Bibiki_Bay/TextIDs"); require("scripts/globals/keyitems"); -------------------...
gpl-3.0
ngeiswei/ardour
share/scripts/s_thin_automation.lua
2
1340
ardour { ["type"] = "Snippet", name = "Thin Fader Automation" } -- --TODO-- -- For a fully fledged EditorAction this script should -- offer a dropdown to select automation of all parameters -- (not just the fader) -- see scripts/midi_cc_to_automation.lua and -- scripts/mixer_settings_store.lua -- Thinning Area should ...
gpl-2.0
renyaoxiang/QSanguosha-For-Hegemony
lang/zh_CN/Package/StandardQunGeneral.lua
2
8495
--[[******************************************************************** Copyright (c) 2013-2015 Mogara This file is part of QSanguosha-Hegemony. This game 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...
gpl-3.0
TeamHypersomnia/Augmentations
hypersomnia/content/official/gfx/assault_rattle_2.meta.lua
6
3344
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 1, amplification = 60, light_colors = { "95 205 228 255", "223 113 38 255", "182 229 239 255" }, radius = { x = 80, y = 80 }, standard_deviation = 6 }...
agpl-3.0
phcosta29/rstats
lib/vstruct/test/error.lua
7
6118
-- tests for error conditions -- checks that vstruct properly raises an error (and raises the *correct* error) -- when things go wrong local test = require "vstruct.test.common" local vstruct = require "vstruct" local E = test.errortest test.group "error conditions" -- utility functions gone horribly wrong E("missi...
gpl-3.0
actboy168/YDWE
Development/Component/plugin/w3x2lni/script/backend/cli/mpq.lua
2
7057
fs = require 'bee.filesystem' require 'utility' local stormlib = require 'ffi.stormlib' local sleep = require 'ffi.sleep' local makefile = require 'prebuilt.makefile' local maketemplate = require 'prebuilt.maketemplate' local prebuilt_metadata = require 'prebuilt.metadata' local prebuilt_keydata = require 'prebuilt.key...
gpl-3.0
coolflyreg/gs
3rd/skynet-mingw/lualib/md5.lua
62
1054
---------------------------------------------------------------------------- -- Modify version from https://github.com/keplerproject/md5 ---------------------------------------------------------------------------- local core = require "md5.core" ------------------------------------------------------------------------...
gpl-2.0
pallab-gain/janus-gateway
plugins/lua/echotest.lua
2
8023
-- This is a simple example of an echo test application built in Lua, -- and conceived to be used in conjunction with the janus_lua.c plugin -- -- Note: this example depends on lua-json to do JSON processing -- (http://luaforge.net/projects/luajson/) json = require('json') -- We also import our own SDP helper utilities...
gpl-3.0
iuser99/BoL
Common/SidasAutoCarryPlugin - Lissandra.lua
2
1949
--[[ SAC Lissandra plugin Version 1.0 - Initial release Version 1.1 - Herp-Derp skillshot fixes Version 1.2 - Converted to iFoundation_v2 --]] require "iFoundation_v2" local SkillQ = Caster(_Q, 700, SPELL_LINEAR, 2250, 0.250, 100, true) local SkillW = Caster(_W, 450, SPELL_SELF) local SkillE = Caster(_E...
gpl-2.0
nasomi/darkstar
scripts/globals/items/divine_sword_+1.lua
42
1080
----------------------------------------- -- ID: 16826 -- Item: Divine Sword +1 -- Additional Effect: Light Damage ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onAdditionalEffect Action ---------------------------...
gpl-3.0
shangjiyu/luci-with-extra
applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua
15
3780
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" local sys = require "luci.sys" local uci = require "luci.model.uci".cursor() local testfullps = luci.sys.exec("ps --help 2>&1 | grep BusyBox") --check which ps do we have local pss...
apache-2.0
nasomi/darkstar
scripts/zones/Metalworks/npcs/Naji.lua
17
4914
----------------------------------- -- Area: Metalworks -- NPC: Naji -- Involved in Quests: The doorman (finish), Riding on the Clouds -- Involved in Mission: Bastok 6-2 -- @pos 64 -14 -4 237 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; package.loaded["scripts/...
gpl-3.0
mkjanke/Focus-Points
focuspoints.lrdevplugin/SonyRX10M4Delegates.lua
3
3826
--[[ Copyright 2016 Whizzbang Inc Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
apache-2.0
nasomi/darkstar
scripts/zones/Caedarva_Mire/npcs/qm3.lua
16
1188
----------------------------------- -- Area: Caedarva Mire -- NPC: ??? (Spawn Mahjlaef the Paintorn(ZNM T3)) -- @pos 695 -7 527 79 ----------------------------------- package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Caedarva_Mire/TextIDs"); -----...
gpl-3.0
nasomi/darkstar
scripts/zones/Yughott_Grotto/npcs/Mining_Point.lua
29
1099
----------------------------------- -- Area: Yughott Grotto -- NPC: Mining Point ----------------------------------- package.loaded["scripts/zones/Yughott_Grotto/TextIDs"] = nil; ------------------------------------- require("scripts/globals/mining"); require("scripts/zones/Yughott_Grotto/TextIDs"); ----...
gpl-3.0
nasomi/darkstar
scripts/globals/items/coral_butterfly.lua
18
1264
----------------------------------------- -- ID: 4580 -- Item: Coral Butterfly -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Mind -4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ---...
gpl-3.0
dageq/Dage-Aliraqi
plugins/ar-onservice.lua
1
1359
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY Dage Aliraqi ▀▄ ▄▀ ▀▄ ▄▀ BY Dage Aliraqi (@dageq) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY Dage Aliraqi ▀▄ ▄▀ ▀▄ ▄▀ Kick bot : طرد بوت ▀▄ ▄▀ ▀▄▀...
gpl-2.0
nasomi/darkstar
scripts/zones/Mhaura/npcs/Bihoro-Guhoro.lua
17
1509
----------------------------------- -- Area: Mhaura -- NPC: Bihoro-Guhoro -- Involved in Quest: Riding on the Clouds -- @pos -28 -8 41 249 ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); requir...
gpl-3.0
minaevmike/rspamd
rules/http_headers.lua
1
5753
--[[ Copyright (c) 2015, Vsevolod Stakhov <vsevolod@highsecure.ru> 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 ...
apache-2.0
kbridgers/VOLTE4GFAX
package/feeds/ltq_gpon_onu/gpon-luci/files/tools/gpon.lua
1
1448
-- module("luci.tools.gpon", package.seeall) require("luci.util") --- Trim a string. -- @return Trimmed string function trim(s) return (string.gsub(s, "^%s*(.-)%s*$", "%1")) end function trim2(s) return (string.gsub(s, "^\"(.-)\"$", "%1")) end --- Retrieves the output of the onu command. -- @return String contain...
gpl-2.0
TeamHypersomnia/Augmentations
hypersomnia/content/official/gfx/have_a_pleasant.meta.lua
7
1899
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 1, amplification = 60, light_colors = { "255 255 255 255" }, radius = { x = 80, y = 80 }, standard_deviation = 6 }, generate_desaturation = false }, offsets =...
agpl-3.0
nasomi/darkstar
scripts/globals/abilities/altruism.lua
28
1176
----------------------------------- -- Ability: Altruism -- Increases the accuracy of your next White Magic spell. -- Obtained: Scholar Level 75 Tier 2 Merit Points -- Recast Time: Stratagem Charge -- Duration: 1 white magic spell or 60 seconds, whichever occurs first -- -- Level |Charges |Recharge Time per Ch...
gpl-3.0
nasomi/darkstar
scripts/globals/effects/voidstorm.lua
37
1334
----------------------------------- -- -- -- ----------------------------------- ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) target:addMod(MOD_STR,math.floor(effect:getPower()/2)); target:addMod(MOD_DEX,math.floor(ef...
gpl-3.0
nasomi/darkstar
scripts/zones/Castle_Oztroja/npcs/_47w.lua
17
1266
----------------------------------- -- Area: Castle Oztroja -- NPC: _47w (Handle) -- Notes: Opens door _473 from behind -- @pos -41.377 -17.084 17.036 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require("scripts/z...
gpl-3.0
Hello23-Ygopro/ygopro-ds
expansions/script/c2700055.lua
1
1946
--P-037 Increasing Evil Frieza local ds=require "expansions.utility_dbscg" local scard,sid=ds.GetID() function scard.initial_effect(c) ds.EnableBattleAttribute(c) ds.AddPlayProcedure(c,COLOR_COLORLESS,0,6) ds.AddSetcode(c,SPECIAL_TRAIT_FRIEZAS_ARMY,CHARACTER_FRIEZA,SPECIAL_TRAIT_FRIEZA_CLAN) --xeno-evolve ds.Enabl...
gpl-3.0
thesabbir/luci
modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/leds.lua
52
3065
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. m = Map("system", translate("<abbr title=\"Light Emitting Diode\">LED</abbr> Configuration"), translate("Customizes the behaviour of the device <abbr title=\"Light Emitting Diode\">LED</abbr>s if possible.")) l...
apache-2.0
nasomi/darkstar
scripts/commands/givexp.lua
27
1213
--------------------------------------------------------------------------------------------------- -- func: @givexp <amount> <player> -- desc: Gives the GM or target player experience points. --------------------------------------------------------------------------------------------------- cmdprops = { pe...
gpl-3.0
nasomi/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Galzweesh.lua
34
1034
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Galzweesh -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); --------...
gpl-3.0
nasomi/darkstar
scripts/zones/Metalworks/npcs/Unlucky_Rat.lua
34
2137
----------------------------------- -- Area: Metalworks -- NPC: Unlucky Rat -- Starts & Finishes Quest: Mean Machine ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/se...
gpl-3.0
appaquet/torch-android
src/3rdparty/nnx/SpatialUpSampling.lua
6
2520
local SpatialUpSampling, parent = torch.class('nn.SpatialUpSampling', 'nn.Module') local help_desc = [[ Applies a 2D up-sampling over an input image composed of several input planes. The input tensor in forward(input) is expected to be a 3D tensor (nInputPlane x width x height). The number of output planes will be the...
bsd-3-clause
haka-security/haka
modules/protocol/http/test/request-modif.lua
2
1128
-- 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/. require("protocol/http") haka.rule { on = haka.dissectors.http.events.request, eval = function (http, request) p...
mpl-2.0
nicholas-leonard/nn
StochasticGradient.lua
65
1921
local StochasticGradient = torch.class('nn.StochasticGradient') function StochasticGradient:__init(module, criterion) self.learningRate = 0.01 self.learningRateDecay = 0 self.maxIteration = 25 self.shuffleIndices = true self.module = module self.criterion = criterion self.verbose = true end funct...
bsd-3-clause
nasomi/darkstar
scripts/zones/Port_Bastok/npcs/Numa.lua
36
1824
----------------------------------- -- Area: Port Bastok -- NPC: Numa -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; require("scripts/zones/Port_Bastok/TextIDs"); -...
gpl-3.0