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
renyaoxiang/QSanguosha-For-Hegemony
lua/ai/basara-ai.lua
2
10937
--[[******************************************************************** 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
thesabbir/luci
applications/luci-app-siitwizard/luasrc/model/cbi/siitwizard.lua
68
9836
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008-2015 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local uci = require "luci.model.uci".cursor() local bit = require "nixio".bit local ip = require "luci.ip" -------------------- Init -------------------...
apache-2.0
nasomi/darkstar
scripts/zones/Buburimu_Peninsula/npcs/Logging_Point.lua
29
1116
----------------------------------- -- Area: Buburimu Peninsula -- NPC: Logging Point ----------------------------------- package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil; ------------------------------------- require("scripts/globals/logging"); require("scripts/zones/Buburimu_Peninsula/Text...
gpl-3.0
nasomi/darkstar
scripts/zones/Bastok_Markets_[S]/npcs/Silke.lua
34
1243
----------------------------------- -- Area: Bastok Markets (S) -- NPC: Silke -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bastok_Markets_[S]/TextIDs"); require("scripts...
gpl-3.0
thesabbir/luci
modules/luci-base/luasrc/http/protocol/conditionals.lua
68
3024
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. -- This class provides basic ETag handling and implements most of the -- conditional HTTP/1.1 headers specified in RFC2616 Sct. 14.24 - 14.28 . module("luci.http.protocol.conditionals", packag...
apache-2.0
znek/xupnpd
src/plugins/xupnpd_youtube.lua
2
20373
-- Copyright (C) 2011-2013 Anton Burdinuk -- clark15b@gmail.com -- https://tsdemuxer.googlecode.com/svn/trunk/xupnpd -- sysmer add support api v3 (need install curl with ssl) -- 20150524 AnLeAl changes: -- in url fetch, added docs section -- 20150527 AnLeAl changes: -- fixed for video get when less than 50 -- return...
gpl-2.0
nasomi/darkstar
scripts/zones/Grand_Palace_of_HuXzoi/mobs/Eo_zdei.lua
18
2695
----------------------------------- -- Area: Grand Palace of Hu'Xzoi -- MOB: Eo'Zdei -- Animation Sub 0 Pot Form -- Animation Sub 1 Pot Form (reverse eye position) -- Animation Sub 2 Bar Form -- Animation Sub 3 Ring Form ----------------------------------- require("scripts/zones/Grand_Palace_of_HuXzoi/MobIDs"); requi...
gpl-3.0
nasomi/darkstar
scripts/globals/items/keen_zaghnal.lua
37
1120
----------------------------------------- -- ID: 18067 -- Equip: Keen Zaghnal -- Enchantment: Accuracy +3 -- Enchantment will wear off if weapon is unequipped. -- Effect lasts for 30 minutes ----------------------------------------- require("scripts/globals/status"); --------------------------------------...
gpl-3.0
shangjiyu/luci-with-extra
applications/luci-app-ocserv/luasrc/model/cbi/ocserv/main.lua
22
6871
-- Copyright 2014 Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" local has_ipv6 = fs.access("/proc/net/ipv6_route") m = Map("ocserv", translate("OpenConnect VPN")) s = m:section(TypedSection, "ocserv", "OpenConnect") s.ano...
apache-2.0
nasomi/darkstar
scripts/zones/Bastok_Mines/npcs/Roh_Latteh.lua
34
2602
----------------------------------- -- Area: Bastok Markets -- NPC: Roh Latteh -- Involved in Quest: Mom, The Adventurer? -- Finishes Quest: The Signpost Marks the Spot ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require...
gpl-3.0
actboy168/YDWE
Development/Component/script/ydwe/plugin.lua
2
2956
local uni = require 'ffi.unicode' plugin = {} plugin.loaders = {} plugin.blacklist = { 'YDTileLimitBreaker', 'YDCustomObjectId', 'YDWeHelper' } local getdevpath if fs.ydwe_path() == fs.ydwe_devpath() then function getdevpath(path) return path end else function getdevpath(path) return fs.ab...
gpl-3.0
nasomi/darkstar
scripts/zones/Behemoths_Dominion/npcs/qm1.lua
17
1434
----------------------------------- -- Area: Behemoth's Dominion -- NPC: ??? -- Involved In Quest: The Talekeeper's Gift -- @pos 211 4 -79 127 ----------------------------------- package.loaded["scripts/zones/Behemoths_Dominion/TextIDs"] = nil; ----------------------------------- require("scripts/globals/set...
gpl-3.0
nasomi/darkstar
scripts/globals/spells/katon_san.lua
17
1616
----------------------------------------- -- Spell: Katon: San -- Deals fire damage to an enemy and lowers its resistance against water. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ---...
gpl-3.0
nasomi/darkstar
scripts/zones/Monarch_Linn/mobs/Mammet-19_Epsilon.lua
27
2679
----------------------------------- -- Area: Monarch Linn -- NPC: Mammet-19 Epsilon ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onMobSpawn Action ----------------------------------- function onMobSpawn(mob) mob:SetMagicCastingEnabled(...
gpl-3.0
amirhacker135/mmkingtm1
plugins/lock_eng.lua
14
3154
local function run(msg, matches) if msg.to.type == 'chat' then if is_momod(msg) then return end local data = load_data(_config.moderation.data) if data[tostring(msg.to.id)] then if data[tostring(msg.to.id)]['settings'] then if data[tostring(msg.to.id)]['settings']['lock_eng'...
gpl-2.0
Etehadmarg/margbot
plugins/trivia.lua
647
6784
do -- Trivia plugin developed by Guy Spronck -- Returns the chat hash for storing information local function get_hash(msg) local hash = nil if msg.to.type == 'chat' then hash = 'chat:'..msg.to.id..':trivia' end if msg.to.type == 'user' then hash = 'user:'..msg.from.id..':trivia' end return hash en...
gpl-2.0
nasomi/darkstar
scripts/globals/items/dish_of_spaghetti_melanzane.lua
35
1401
----------------------------------------- -- ID: 5213 -- Item: dish_of_spaghetti_melanzane -- Food Effect: 30Min, All Races ----------------------------------------- -- Health % 25 -- Health Cap 100 -- Vitality 2 -- Store TP 4 ----------------------------------------- require("scripts/globals/status"); -...
gpl-3.0
nasomi/darkstar
scripts/globals/items/dark_bass.lua
18
1331
----------------------------------------- -- ID: 4428 -- Item: dark_bass -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Mind -4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemChe...
gpl-3.0
nasomi/darkstar
scripts/zones/Qufim_Island/npcs/Singing_Blade_IM.lua
30
3053
----------------------------------- -- Area: Qufim Island -- NPC: Singing Blade, I.M. -- Type: Border Conquest Guards -- @pos 179.093 -21.575 -15.282 126 ----------------------------------- package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conques...
gpl-3.0
nasomi/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Halbeeya.lua
34
1033
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Halbeeya -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); ---------...
gpl-3.0
Hello23-Ygopro/ygopro-ds
expansions/script/c27002122.lua
1
2100
--BT2-108 The Infinite Force Meta-Cooler Core local ds=require "expansions.utility_dbscg" local scard,sid=ds.GetID() function scard.initial_effect(c) ds.EnableBattleAttribute(c) ds.AddSetcode(c,SPECIAL_TRAIT_FRIEZA_CLAN,CHARACTER_METACOOLER_CORE) ds.AddPlayProcedure(c,COLOR_YELLOW,2,5) --power up ds.AddActivateBat...
gpl-3.0
appaquet/torch-android
src/3rdparty/nn/Add.lua
61
1699
local Add, parent = torch.class('nn.Add', 'nn.Module') function Add:__init(inputSize,scalar) parent.__init(self) local size = inputSize if scalar then size=1 end self.scalar = scalar self.bias = torch.Tensor(size) self.gradBias = torch.Tensor(size) self._ones = torch.Tensor{1} self:rese...
bsd-3-clause
nasomi/darkstar
scripts/zones/Dynamis-Valkurm/bcnms/dynamis_Valkurm.lua
16
1855
----------------------------------- -- Area: dynamis_Valkurm -- Name: dynamis_Valkurm ----------------------------------- -- After registering the BCNM via bcnmRegister(bcnmid) function onBcnmRegister(player,instance) SetServerVariable("[DynaValkurm]UniqueID",player:getDynamisUniqueID(1286)); SetServerVariable("...
gpl-3.0
EricssonResearch/scott-eu
simulated-enviroment/logistics_multiple_robots_ShelfBody.lua
1
7779
--************************** -- Actions for the YouBot Kuka Robot -- @author Klaus Raizer -- @date 08-02-2017 -- -- Description: Controls information comming from -- This script calls a lua script located at the same folder. --************************** if (sim_call_type==sim_childscriptcall_initialization) then s...
apache-2.0
nasomi/darkstar
scripts/zones/Port_San_dOria/npcs/Bricorsant.lua
36
1376
----------------------------------- -- Area: Port San d'Oria -- NPC: Bricorsant -- 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
thesabbir/luci
modules/luci-mod-freifunk/luasrc/controller/freifunk/freifunk.lua
59
5943
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.freifunk.freifunk", package.seeall) function index() local uci = require "luci.model.uci".cursor() local page -- Frontend page = node() page.lock = true page.target ...
apache-2.0
nasomi/darkstar
scripts/zones/Abyssea-Tahrongi/npcs/Cavernous_Maw.lua
17
1236
----------------------------------- -- Area: Abyssea - Tahrongi -- NPC: Cavernous Maw -- @pos -31.000, 47.000, -681.000 45 -- Teleports Players to Tahrongi Canyon ----------------------------------- package.loaded["scripts/zones/Abyssea-Tahrongi/TextIDs"] = nil; ----------------------------------- require("s...
gpl-3.0
amirhoseinhastam1/1
plugins/anti_spam.lua
923
3750
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds local data = load_data(_config.moderation.data) -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id =...
gpl-2.0
nasomi/darkstar
scripts/zones/Upper_Jeuno/npcs/Mejuone.lua
37
1157
----------------------------------- -- Area: Upper Jeuno -- NPC: Mejuone -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; require("scripts/zones/Upper_Jeuno/TextIDs"); ----------------------------------- ...
gpl-3.0
renyaoxiang/QSanguosha-For-Hegemony
extension-doc/11-Fundamentals.lua
15
9150
--[[ 大家好我是 William915。 从这个文件开始讲解AI的编写方法。 三国杀的 AI 由太阳神上与 hypercross 共同编写。 之后经过他们及 donle,宇文天启和本人的发展。 本文档针对的 AI 稳定版本为 V0.7 Patch 2(20120201,c11f5ace8)。 在论坛上可以看到反馈 AI 的问题的帖子远比反映程序的问题的帖子要多得多,这表明了 AI 的复杂性。 熟悉 AI 发展历史的朋友一定知道有那么一段时间 AI 常常会改好了这个又坏了那个, 这是因为影响 AI 表现的因素太多。 一言以蔽之,AI 编写与修改是牵一发而动全身的。 目前的 AI 架构还不完善,随着架构的逐步完善文档也会逐步的调...
gpl-3.0
nasomi/darkstar
scripts/zones/Davoi/npcs/Lootblox.lua
19
7228
----------------------------------- -- Area: Davoi -- NPC: Lootblox -- Type: Standard NPC -- @pos 218.073 -0.982 -20.746 149 ----------------------------------- package.loaded["scripts/zones/Davoi/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Davoi/TextIDs"); require("scripts/globals...
gpl-3.0
icplus/OP-SDK
package/ramips/ui/luci-mtk/src/modules/base/luasrc/ip.lua
86
18154
--[[ LuCI ip calculation libarary (c) 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> (c) 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.a...
gpl-2.0
nasomi/darkstar
scripts/zones/Temenos/mobs/Goblin_Theurgist.lua
16
1151
----------------------------------- -- Area: Temenos N T -- NPC: Goblin_Theurgist ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); ---------------------...
gpl-3.0
RhenaudTheLukark/CreateYourFrisk
Assets/Mods/Examples/Lua/Waves/COMBINED.lua
2
2204
-- The bouncing bullets attack from the documentation example. -- Sets a bullet's color as a string, then checks it in OnHit to achieve different types of bullet effects in one wave. spawntimer = 0 bullets = {} colors = {"regular", "cyan", "orange", "green"} function Update() spawntimer = spawntimer + 1 if spa...
gpl-3.0
nasomi/darkstar
scripts/zones/Qulun_Dome/mobs/Za_Dha_Adamantking.lua
27
1182
----------------------------------- -- Area: Qulun Dome -- NM: Za Dha Adamantking ----------------------------------- require("scripts/globals/titles"); require("scripts/zones/Qulun_Dome/TextIDs"); ----------------------------------- -- onMobSpawn Action ----------------------------------- function onM...
gpl-3.0
nasomi/darkstar
scripts/zones/The_Eldieme_Necropolis_[S]/npcs/Turbulent_Storm.lua
21
1898
----------------------------------- -- Area: The Eldieme Necropolis [S] -- NPC: Turbulent Storm -- Note: Starts Quest "The Fighting Fourth" -- @pos 422.461 -48.000 175 ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Necropolis_[S]/TextIDs"] = nil; ---------------------------------...
gpl-3.0
bmddota/barebones
game/dota_addons/barebones/scripts/vscripts/libraries/selection.lua
10
6644
SELECTION_VERSION = "1.00" --[[ Lua-controlled Selection Library by Noya Installation: - "require" this file inside your code in order to add the new API functions to the PlayerResource global - Additionally, ensure your game scripts custom_net_tables.txt has a "selection" entry - Finally, ens...
apache-2.0
nasomi/darkstar
scripts/globals/spells/valor_minuet_ii.lua
18
1591
----------------------------------------- -- Spell: Valor Minuet II -- Grants Attack bonus to all allies. ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingC...
gpl-3.0
shakfu/start-vm
config/artful/awesome/vicious/contrib/batpmu_linux.lua
4
2402
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Adrian C. <anrxc@sysphere.org> --------------------------------------------------- -- {{{ Grab environment local tonumber = tonumber local io = { open = io.open } local setmetatable = setmetatable lo...
mit
blankoworld/quinoa
bin/parser.lua
1
1367
#!/usr/bin/env lua --[[ LICENSE Makefly, a static weblog engine using a BSD Makefile Copyright (C) 2012 DOSSMANN Olivier This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of t...
agpl-3.0
nasomi/darkstar
scripts/zones/Southern_San_dOria_[S]/npcs/Rasdinice.lua
36
1113
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Rasdinice -- @zone 80 -- @pos -8 1 35 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil; require("scripts/zones/Southern_San_dOria_[S]/TextIDs"); --------------------------------...
gpl-3.0
nasomi/darkstar
scripts/globals/items/rolanberry_pie.lua
35
1274
----------------------------------------- -- ID: 4414 -- Item: rolanberry_pie -- Food Effect: 30Min, All Races ----------------------------------------- -- Magic 50 -- Agility -1 -- Intelligence 2 ----------------------------------------- require("scripts/globals/status"); --------------------------------...
gpl-3.0
nasomi/darkstar
scripts/zones/Selbina/npcs/Elfriede.lua
17
1956
----------------------------------- -- Area: Selbina -- NPC: Elfriede -- Involved In Quest: The Tenshodo Showdown -- @pos 61 -15 10 248 ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Selbina/TextIDs"); req...
gpl-3.0
coolflyreg/gs
common/lualib/EventHandler.lua
1
1089
EventHandler = class("EventHandler") EventHandler.__index = EventHandler EventHandler.handlers = {} function EventHandler:add(func) if (func == nil or type(func) ~= "function") then return false end if (self:indexOfHandler(func) > 0) then return false end local list = self.handlers list[#l...
gpl-2.0
moodlIMyIl/WASLTSHAKE
bot.lua
16
5685
package.path = package.path..';.luarocks/share/lua/5.2/?.lua;.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath..';.luarocks/lib/lua/5.2/?.so' http = require('socket.http') https = require('ssl.https') url = require('socket.url') json = require('dkjson') require("config") require("extra") function bot_r...
apache-2.0
nasomi/darkstar
scripts/zones/Northern_San_dOria/npcs/Emeige_AMAN.lua
65
1182
----------------------------------- -- Area: Northern San d'Oria -- NPC: Emeige A.M.A.N. -- Type: Mentor Recruiter ----------------------------------- ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; ----------------------------------- ...
gpl-3.0
nasomi/darkstar
scripts/zones/PsoXja/npcs/_09h.lua
17
1223
----------------------------------- -- Area: Pso'Xja -- NPC: Avatars Gate ----------------------------------- package.loaded["scripts/zones/PsoXja/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zones/PsoXja/TextIDs"); require("scripts/globals/keyite...
gpl-3.0
TeamHypersomnia/Augmentations
hypersomnia/content/official/gfx/bomb_armed_1.meta.lua
22
2111
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 1, amplification = 60, light_colors = { "96 225 1 255", "171 205 228 255", "147 232 58 255", "255 0 0 255", "223 64 38 255" }, radius = { x = 80, y = ...
agpl-3.0
sugao516/gltron-code
levels/4squares.lua
1
5477
directions = { random = -1, up = 2, down = 0, right = 1, left = 3 } level = { version = 71, -- the sizes in the level are all in the [0,1] range and can be -- scaled to the appropriate arena size scalable = 1, -- collision detection takes place against these lines boundary = { { { x = 0, y = 1 }, { ...
gpl-2.0
shangjiyu/luci-with-extra
applications/luci-app-ddns/luasrc/model/cbi/ddns/detail.lua
11
54059
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Copyright 2013 Manuel Munz <freifunk at somakoma dot de> -- Copyright 2014-2016 Christian Schoenebeck <christian dot schoenebeck at gmail dot com> -- Licensed to the public under the Apache License 2.0. local NX ...
apache-2.0
nasomi/darkstar
scripts/zones/Lebros_Cavern/instances/wamoura_farm_raid.lua
37
3946
----------------------------------- -- -- Assault: Wamoura Farm Raid -- ----------------------------------- require("scripts/zones/Lebros_Cavern/IDs"); ----------------------------------- -- afterInstanceRegister ----------------------------------- function afterInstanceRegister(player) local instance = player...
gpl-3.0
nasomi/darkstar
scripts/zones/Port_Jeuno/npcs/_6ua.lua
17
1388
----------------------------------- -- Area: Port Jeuno -- NPC: Door: Departures Exit (for Bastok) -- @zone 246 -- @pos -61 7 -54 ----------------------------------- package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("sc...
gpl-3.0
nasomi/darkstar
scripts/zones/Selbina/npcs/Jimaida.lua
17
1301
----------------------------------- -- Area: Selbina -- NPC: Jimaida -- Involved in Quests: Under the sea -- @pos -15 -2 -16 248 ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Selbina/TextIDs"); require("sc...
gpl-3.0
Ingenious-Gaming/Starfall
lua/starfall/libs_sh/angles.lua
3
3630
SF.Angles = {} --- Angle Type -- @shared local ang_methods, ang_metamethods = SF.Typedef( "Angle" ) local wrap, unwrap = SF.CreateWrapper( ang_metamethods, true, false, debug.getregistry().Angle ) SF.DefaultEnvironment.Angle = function ( ... ) return wrap( Angle( ... ) ) end SF.Angles.Wrap = wrap SF.Angles.Unwrap =...
bsd-3-clause
EricssonResearch/scott-eu
simulation-ros/src/turtlebot2i/turtlebot2i_description/v-rep_model/warehouse_scene/vrep_scripts/Scene_Builder_test1.lua
1
4528
--************************** -- Scene builder -- @author Klaus Raizer -- @date 2019-01-30 -- PROGRAMATICALLY ADD COMPONENTS TO YOUR SCENE --************************** function sysCall_init() -- Initialization ------------------------ --sim.setBoolParameter(sim.boolparam_display_enabled,false)-- Disables rende...
apache-2.0
haka-security/haka
modules/protocol/http/test/uri-split.lua
5
3224
-- 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 http = require('protocol/http') local function count_table(tab) local index = 0 for k, _ in pairs(tab) do ...
mpl-2.0
nasomi/darkstar
scripts/zones/Bastok_Markets/npcs/Fatimah.lua
53
2085
----------------------------------- -- Area: Bastok Markets -- NPC: Fatimah -- Type: Goldsmithing Adv. Synthesis Image Support -- @pos -193.849 -7.824 -56.372 235 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scripts/glob...
gpl-3.0
kaustubhcs/torch-toolbox
Adversarial/adversarial-fast.lua
2
1247
require('nn') -- "Explaining and harnessing adversarial examples" -- Ian Goodfellow, 2015 local function adversarial_fast(model, loss, x, y, std, intensity) assert(loss.__typename == 'nn.ClassNLLCriterion') local intensity = intensity or 1 -- consider x as batch local batch = false if x:dim() == 3 then...
bsd-3-clause
ldrumm/chronos
update_rockspec.lua
1
2873
#!/usr/bin/env lua print("enter a new version:") version = string.match(io.read(), "v?([%d]+.[%d]+-[%d]+)") assert(version ~= nil) rockspec = { package = "chronos", version = version, source = { url = "https://github.com/ldrumm/chronos/archive/v" .. version .. ".zip", dir= "chronos-" .. ver...
mit
nasomi/darkstar
scripts/zones/Windurst_Waters/npcs/Upih_Khachla.lua
30
2226
----------------------------------- -- Area: Windurst Waters -- NPC: Upih Khachla -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/events/harvest_festivals") require("scripts/globals/shop"); require("scripts/globals/conquest"); packag...
gpl-3.0
nasomi/darkstar
scripts/globals/spells/gravity_ii.lua
18
1087
----------------------------------------- -- Spell: Gravity II ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target,s...
gpl-3.0
nasomi/darkstar
scripts/globals/items/serving_of_newt_flambe.lua
35
1565
----------------------------------------- -- ID: 4329 -- Item: serving_of_newt_flambe -- Food Effect: 240Min, All Races ----------------------------------------- -- Dexterity 4 -- Mind -3 -- Attack % 18 -- Attack Cap 65 -- Virus Resist 5 -- Curse Resist 5 ----------------------------------------- require(...
gpl-3.0
actboy168/YDWE
Development/Component/compiler/script/jasshelper.lua
2
2531
fs = require 'bee.filesystem' local stormlib = require 'ffi.stormlib' local jasshelper = {} jasshelper.path = fs.ydwe_path() / "compiler" / "jasshelper" local config = [[ [jasscompiler] %q "%s$COMMONJ $BLIZZARDJ $WAR3MAPJ" ]] function jasshelper:prepare_common_j(map_path, version) if fs.exists(map_path / 'commo...
gpl-3.0
nasomi/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/HomePoint#1.lua
17
1280
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: HomePoint#1 -- @pos -21.129 0.001 -20.944 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Aht_Urhgan_Whitegate/Tex...
gpl-3.0
irboy/000LOGIN000
plugins/plugins.lua
1
7876
do -- #Begin plugins.lua by @Y0BINARI -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins fol...
gpl-3.0
mbsg/openwrt-extra
luci/applications/luci-app-xware3/luasrc/model/cbi/xware3.lua
2
2856
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...
gpl-2.0
shangjiyu/luci-with-extra
applications/luci-app-pbx/luasrc/model/cbi/pbx-calls.lua
117
18881
--[[ Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com> This file is part of luci-pbx. luci-pbx 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 ...
apache-2.0
nasomi/darkstar
scripts/zones/Castle_Oztroja/npcs/_47u.lua
17
1256
----------------------------------- -- Area: Castle Oztroja -- NPC: _47u (Handle) -- Notes: Opens door _474 from behind -- @pos -60 24 -77 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Castle_...
gpl-3.0
nasomi/darkstar
scripts/globals/items/cup_of_windurstian_tea.lua
35
1210
----------------------------------------- -- ID: 4493 -- Item: cup_of_windurstian_tea -- Food Effect: 180Min, All Races ----------------------------------------- -- Vitality -2 -- Charisma 1 ----------------------------------------- require("scripts/globals/status"); ---------------------------------------...
gpl-3.0
nicholas-leonard/nn
VolumetricMaxPooling.lua
9
2555
local VolumetricMaxPooling, parent = torch.class('nn.VolumetricMaxPooling', 'nn.Module') VolumetricMaxPooling.__version = 2 function VolumetricMaxPooling:__init(kT, kW, kH, dT, dW, dH, padT, padW, padH) parent.__init(self) dT = dT or kT dW = dW or kW dH = dH or kH self.kT = kT self.kH = kH self...
bsd-3-clause
EnjoyHacking/nn
MixtureTable.lua
23
5638
local MixtureTable, parent = torch.class('nn.MixtureTable', 'nn.Module') function MixtureTable:__init(dim) parent.__init(self) self.dim = dim self.size = torch.LongStorage() self.batchSize = 0 self.size2 = torch.LongStorage() self.backwardSetup = false self.gradInput = {} end function MixtureTabl...
bsd-3-clause
nasomi/darkstar
scripts/zones/Southern_San_dOria/npcs/Valderotaux.lua
17
1752
----------------------------------- -- Area: Southern San d'Oria -- NPC: Valderotaux -- General Info NPC -- @pos 97 0.1 113 230 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); req...
gpl-3.0
nasomi/darkstar
scripts/zones/Port_San_dOria/npcs/Maunadolace.lua
38
1043
----------------------------------- -- Area: Port San d'Oria -- NPC: Maunadolace -- Type: Standard NPC -- @zone: 232 -- @pos -22.800 -9.3 -148.645 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ------...
gpl-3.0
shangjiyu/luci-with-extra
applications/luci-app-adblock/luasrc/controller/adblock.lua
1
2165
-- Copyright 2016 Hannu Nyman -- Copyright 2017 Dirk Brenken (dev@brenken.org) -- This is free software, licensed under the Apache License, Version 2.0 module("luci.controller.adblock", package.seeall) local fs = require("nixio.fs") local util = require("luci.util") local template = require("luci.template") local i18...
apache-2.0
nasomi/darkstar
scripts/zones/Northern_San_dOria/npcs/Telmoda.lua
17
1622
----------------------------------- -- Area: Northern San d'Oria -- NPC: Telmoda -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quests"...
gpl-3.0
shangjiyu/luci-with-extra
modules/luci-base/luasrc/sys/zoneinfo/tzoffset.lua
6
3332
-- Licensed to the public under the Apache License 2.0. module "luci.sys.zoneinfo.tzoffset" OFFSET = { gmt = 0, -- GMT eat = 10800, -- EAT cet = 3600, -- CET wat = 3600, -- WAT cat = 7200, -- CAT eet = 7200, -- EET wet = 0, -- WET sast = 7200, -- SAST hst = -36000, -- HS...
apache-2.0
amirhoseinhastam1/1
libs/dkjson.lua
3282
26558
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
gpl-2.0
MZ597/Mz597
libs/dkjson.lua
3282
26558
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
agpl-3.0
dageq/Dage-Aliraqi
libs/dkjson.lua
3282
26558
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
gpl-2.0
nasomi/darkstar
scripts/zones/Grand_Palace_of_HuXzoi/npcs/qm1.lua
17
2760
----------------------------------- -- Area: Grand Palace of Hu'Xzoi -- NPC: ??? (Ix'Aern - MNK) -- @pos 460 0 540 -- ID: 16916819 ----------------------------------- package.loaded["scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Grand_Palace_of_...
gpl-3.0
thesabbir/luci
modules/luci-base/luasrc/sys/zoneinfo/tzoffset.lua
15
4023
-- Licensed to the public under the Apache License 2.0. module "luci.sys.zoneinfo.tzoffset" OFFSET = { gmt = 0, -- GMT eat = 10800, -- EAT cet = 3600, -- CET wat = 3600, -- WAT cat = 7200, -- CAT eet = 7200, -- EET wet = 0, -- WET sast = 7200, -- SAST hst = -36000, -- HS...
apache-2.0
nicholas-leonard/nn
Copy.lua
20
1174
local Copy, parent = torch.class('nn.Copy', 'nn.Module') function Copy:__init(intype, outtype, forceCopy, dontCast) intype = intype or torch.Tensor.__typename outtype = outtype or torch.Tensor.__typename self.dontCast = dontCast parent.__init(self) self.gradInput = torch.getmetatable(intype).new() ...
bsd-3-clause
Maxsteam/99998888
bot/bot.lua
1
6882
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") local f = assert(io.popen('/usr/bin/git describe --tags', 'r')) VERSION = assert(f:read('*a')) f:close() -- This function is ...
gpl-2.0
Hello23-Ygopro/ygopro-ds
expansions/script/c2700102.lua
1
1908
--P-069 Miracle Strike Gogeta local ds=require "expansions.utility_dbscg" local scard,sid=ds.GetID() function scard.initial_effect(c) ds.EnableLeaderAttribute(c) ds.AddSetcode(c,CHARACTER_GOGETA,SPECIAL_TRAIT_SAIYAN) --draw ds.AddSingleAutoAttack(c,0,nil,ds.hinttg,ds.DrawOperation(PLAYER_PLAYER,1)) --negate skill ...
gpl-3.0
PolyCement/dotfiles
awesome/keybinds/global.lua
1
11358
-- global keybinds local gears = require("gears") local awful = require("awful") local menu = require("menu") local hotkeys_widget = require("widgets.hotkeys") modkey = "Mod4" local globalkeys = gears.table.join( -- meta stuff awful.key( { modkey }, "s", hotkeys_widget.show_help, { des...
mit
nasomi/darkstar
scripts/zones/Abyssea-La_Theine/mobs/Lusion.lua
19
1542
----------------------------------- -- Area: Abyssea - La Theine -- NPC: Luison ----------------------------------- ----------------------------------- -- onMobSpawn Action ----------------------------------- function onMobSpawn(mob) setLocalVar("transformTime", os.time()) end; ----------------------------------- -...
gpl-3.0
nasomi/darkstar
scripts/zones/Mount_Zhayolm/mobs/Brass_Borer.lua
16
1589
----------------------------------- -- Area: Mount Zhayolm -- MOB: Brass Borer ----------------------------------- require("scripts/globals/status"); -- TODO: Damage resistances in streched and curled stances. Halting movement during stance change. ----------------------------------- -- OnMobSpawn Action -...
gpl-3.0
nasomi/darkstar
scripts/globals/items/clump_of_beaugreens.lua
35
1214
----------------------------------------- -- ID: 4571 -- Item: clump_of_beaugreens -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility 2 -- Vitality -4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- --...
gpl-3.0
DarkSupremo/Multiplier
Workshop/base/game/dota_addons/power_multiplier/scripts/vscripts/addon_game_mode.lua
1
43194
--[[ Dota Power Multiplier game mode ]] -- Load Stat collection (statcollection should be available from any script scope) --require('lib.statcollection') -- Load the options module (GDSOptions should now be available from the global scope) --require('lib.optionsmodule') require ( 'util' ) require ( 'skill_handler...
gpl-3.0
Etehadmarg/margbot
plugins/banhammer.lua
175
5896
local function is_user_whitelisted(id) local hash = 'whitelist:user#id'..id local white = redis:get(hash) or false return white end local function is_chat_whitelisted(id) local hash = 'whitelist:chat#id'..id local white = redis:get(hash) or false return white end local function kick_user(user_id, chat_id)...
gpl-2.0
parsaghx/king
plugins/font1.lua
2
4245
--Shared & Opened by @anti_spam_group --#Dinn08 local function run(msg, matches) if #matches < 2 then return "بعد از این دستور، با قید یک فاصله کلمه یا جمله ی مورد نظر را جهت زیبا نویسی وارد کنید" end if string.len(matches[2]) > 20 then return "حداکثر حروف مجاز 20 کاراکتر انگلیسی و عدد است" end local font_bas...
gpl-2.0
mrfoxirani/mehran
plugins/torrent_search.lua
223
1059
local https = require ('ssl.https') local ltn12 = require ("ltn12") local function search_kickass(query) local url = 'https://kat.cr/json.php?q='..URL.escape(query) local resp = {} local b,c = https.request { url = url, protocol = "tlsv1", sink = ltn12.sink.table(resp) } resp = table.concat(...
gpl-2.0
nasomi/darkstar
scripts/zones/Pashhow_Marshlands/npcs/Ioupie_RK.lua
30
3064
----------------------------------- -- Area: Pashhow Marshlands -- NPC: Ioupie, R.K. -- Type: Border Conquest Guards -- @pos 536.291 23.517 694.063 109 ----------------------------------- package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil; ----------------------------------- require("scripts/globals/con...
gpl-3.0
nasomi/darkstar
scripts/zones/Southern_San_dOria/npcs/Estiliphire.lua
29
1068
----------------------------------- -- Area: Southern Sandoria -- NPC: Estiliphire -- Type: Event Sideshow NPC -- @zone: 230 -- @pos -41.550 1.999 -2.845 -- ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- ------------------...
gpl-3.0
icplus/OP-SDK
package/ramips/ui/luci-mtk/src/libs/nixio/axTLS/www/lua/test_main.lua
176
1139
cgilua.htmlheader() cgilua.put[[ <html> <head><title>Script Lua Test</title></head> <body> cgi = { ]] for i,v in pairs (cgi) do if type(v) == "table" then local vv = "{" for a,b in pairs(v) do vv = string.format ("%s%s = %s<br>\n", vv, a, tostring(b)) end v = vv.."}" end cgilua.put (string.format ("%s =...
gpl-2.0
actboy168/YDWE
Development/Component/script/ydwe/ydwe_on_save.lua
2
4187
local compiler = require "compiler" local map_packer = require 'w3x2lni.map_packer' local dev = fs.ydwe_devpath() local function backup_map(map_path) local ydwe_path = fs.ydwe_path() fs.create_directories(ydwe_path / 'backups') local buf = io.load(ydwe_path / 'backups' / 'backupsdata.txt') local char ...
gpl-3.0
nasomi/darkstar
scripts/zones/Lower_Jeuno/Zone.lua
17
3845
----------------------------------- -- -- Zone: Lower_Jeuno (245) -- ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Lower_Jeuno/TextIDs"); require("scripts/globals/settings"); require("scripts/globals/m...
gpl-3.0
nasomi/darkstar
scripts/zones/Lower_Jeuno/npcs/Sutarara.lua
17
1651
----------------------------------- -- Area: Lower Jeuno -- NPC: Sutarara -- Involved in Quests: Tenshodo Menbership (before accepting) -- @pos 30 0.1 -2 245 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/glo...
gpl-3.0
nasomi/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Uricca-Koricca.lua
38
1051
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Uricca-Koricca -- Type: Standard NPC -- @zone: 94 -- @pos -102.221 -3 48.791 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil...
gpl-3.0
nasomi/darkstar
scripts/zones/Uleguerand_Range/npcs/HomePoint#5.lua
19
1189
----------------------------------- -- Area: Uleguerand_Range -- NPC: HomePoint#5 -- @pos ----------------------------------- package.loaded["scripts/zones/Uleguerand_Range/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Uleguerand_Range/TextIDs"); require("scripts/globals/homepoint"); ...
gpl-3.0