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 |
|---|---|---|---|---|---|
actboy168/YDWE | Development/Component/plugin/w3x2lni/script/core/optimizer/confuser.lua | 3 | 1761 | local mt = {}
mt.__index = mt
local function find_char(self, current, is_head, is_tail)
if not current then
current = 0
end
for i = current + 1, #self.char_list do
local char = self.char_list[i]
if (is_head or is_tail) and char == '_' then
goto CONTINUE
end
... | gpl-3.0 |
dromozoa/dromozoa-image | test/print.lua | 3 | 1346 | -- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com>
--
-- This file is part of dromozoa-image.
--
-- dromozoa-image is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Hajawaa.lua | 36 | 4458 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Hajawaa
-- Armor Storage NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/armorst... | gpl-3.0 |
TeamHypersomnia/Augmentations | hypersomnia/content/official/gfx/resistance_torso_knife_walk_3.meta.lua | 2 | 2786 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 0.40000000596046448,
amplification = 100,
light_colors = {
"223 113 38 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
},
generate_desaturation = fals... | agpl-3.0 |
icplus/OP-SDK | package/ramips/ui/luci-mtk/src/applications/luci-firewall/luasrc/model/cbi/firewall/forwards.lua | 85 | 3942 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010-2012 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
htt... | gpl-2.0 |
nasomi/darkstar | scripts/zones/Maze_of_Shakhrami/npcs/Fossil_Rock.lua | 17 | 5028 | -----------------------------------
-- Area: Maze of Shakhrami
-- NPC: Fossil Rock
-- Used in Mission: Windurst Mission 2-1
-- @pos 17 18 184 198 + <many pos>
-----------------------------------
package.loaded["scripts/zones/Maze_of_Shakhrami/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
nasomi/darkstar | scripts/globals/spells/bluemagic/enervation.lua | 18 | 2037 | -----------------------------------------
-- Spell: Enervation
-- Lowers the defense and magical defense of enemies within range
-- Spell cost: 48 MP
-- Monster Type: Beastmen
-- Spell Type: Magical (Dark)
-- Blue Magic Points: 5
-- Stat Bonus: HP-5, MP+5
-- Level: 67
-- Casting Time: 6 seconds
-- Recast Time... | gpl-3.0 |
thesabbir/luci | applications/luci-app-radvd/luasrc/model/cbi/radvd/prefix.lua | 61 | 3557 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local sid = arg[1]
local utl = require "luci.util"
m = Map("radvd", translatef("Radvd - Prefix"),
translate("Radvd is a router advertisement daemon for IPv6. " ..
"It listens to router solicitations and send... | apache-2.0 |
thesabbir/luci | build/luadoc/luadoc/util.lua | 46 | 5858 | -------------------------------------------------------------------------------
-- General utilities.
-- @release $Id: util.lua,v 1.16 2008/02/17 06:42:51 jasonsantos Exp $
-------------------------------------------------------------------------------
local posix = require "nixio.fs"
local type, table, string, io, as... | apache-2.0 |
nasomi/darkstar | scripts/globals/weaponskills/vorpal_thrust.lua | 30 | 1397 | -----------------------------------
-- Vorpal Thrust
-- Polearm weapon skill
-- Skill Level: 175
-- Delivers a single-hit attack. Chance of params.critical varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Aqua Gorget & Light Gorget.
-- Aligned with the Aqua Belt & Light Belt.
-- Element: Non... | gpl-3.0 |
dageq/Dage-Aliraqi | libs/serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
lo... | gpl-2.0 |
C60Project/C60-PRODUCT | languages.lua | 1 | 360948 | return {
en = {
status = {
kicked = '&&&1 is banned from this group',
left = '&&&1 left the group or has been kicked and unbanned',
administrator = '&&&1 is an Admin',
creator = '&&&1 is the group creator',
unknown = 'This user has nothing to do wi... | gpl-2.0 |
nasomi/darkstar | scripts/zones/Konschtat_Highlands/npcs/Signpost3.lua | 34 | 1034 | -----------------------------------
-- Area: Konschtat Highlands
-- NPC: Signpost
-- @pos -221 17 139 108
-----------------------------------
package.loaded["scripts/zones/Konschtat_Highlands/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Konschtat_Highlands/TextIDs");
--------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/West_Sarutabaruta/npcs/Roshina-Kuleshuna_WW.lua | 30 | 3078 | -----------------------------------
-- Area: West Sarutabaruta
-- NPC: Roshina-Kuleshuna, W.W.
-- Type: Outpost Conquest Guards
-- @pos -11.322 -13.459 317.696 115
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta/TextIDs"] = nil;
-----------------------------------
require("scripts/... | gpl-3.0 |
mbsg/openwrt-extra | luci/applications/luci-app-shadowsocks/luasrc/model/cbi/shadowsocks.lua | 1 | 3699 | --[[
RA-MOD
]]--
local fs = require "nixio.fs"
local sslocal =(luci.sys.call("pidof ss-local > /dev/null") == 0)
local ssredir =(luci.sys.call("pidof ss-redir > /dev/null") == 0)
if sslocal or ssredir then
m = Map("shadowsocks", translate("shadowsocks"), translate("shadowsocks is running"))
else
m = Map("shadowsoc... | gpl-2.0 |
nasomi/darkstar | scripts/globals/weaponskills/double_thrust.lua | 30 | 1320 | -----------------------------------
-- Double Thrust
-- Polearm weapon skill
-- Skill Level: 5
-- Delivers a two-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Light Gorget.
-- Aligned with the Light Belt.
-- Element: None
-- Modifiers: STR:30%
-- 100%TP 200%TP 3... | gpl-3.0 |
nasomi/darkstar | scripts/globals/items/bunny_ball.lua | 35 | 1739 | -----------------------------------------
-- ID: 4349
-- Item: Bunny Ball
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Health 10
-- Strength 2
-- Vitality 2
-- Intelligence -1
-- Attack % 30
-- Attack Cap 25
-- Ranged ATT % 30
-- Ranged ATT Cap 25
-------------------------... | gpl-3.0 |
jotson/1gam-jan2013 | zoetrope/ui/textinput.lua | 4 | 4397 | -- Class: TextInput
-- This is like a <Text> object, only it listens to user input and
-- adjusts its text property accordingly.
--
-- Extends:
-- <Text>
--
-- Events:
-- onChange - Occurs when the input's text has changed, either by a
-- user's input or programmtically.
-- onType - Occurs when the i... | mit |
nasomi/darkstar | scripts/zones/Selbina/npcs/Melyon.lua | 17 | 3585 | -----------------------------------
-- Area: Selbina
-- NPC: Melyon
-- Starts and Finishes Quest: Only the Best (R)
-- Involved in Quest: Riding on the Clouds
-- @pos 25 -6 6 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
package.loaded["scripts/globals/settings"... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Bastok_Markets/npcs/Brunhilde.lua | 36 | 1636 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Brunhilde
-- Standard Merchant NPC
--
-- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
requir... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Quartermaster.lua | 38 | 1051 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Quartermaster
-- Type: Standard NPC
-- @zone: 94
-- @pos -60.200 -4.7 32.500
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Castle_Oztroja/npcs/_47y.lua | 17 | 1385 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _47y (Torch Stand)
-- Notes: Opens door _474
-- @pos -57.575 24.218 -67.651 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Ca... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Northern_San_dOria/npcs/Greubaque.lua | 53 | 1967 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Greubaque
-- Type: Smithing Adv. Synthesis Image Support
-- @pos -179.400 10.999 150.000 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scrip... | gpl-3.0 |
jeffreyling/seq2seq-hard | SparseMax.lua | 1 | 2753 | require 'nn'
-- Implementation of Sparsemax function from:
-- "From Softmax to Sparsemax: A Sparse Model of Attention and Multi-Label Classification"
-- André F. T. Martins, Ramón Fernandez Astudillo (http://arxiv.org/abs/1602.02068)
local SparseMax = torch.class('nn.SparseMax', 'nn.Module')
function SparseMax:updat... | mit |
akornatskyy/lucid | spec/security/crypto/cipher_spec.lua | 1 | 2277 | local cipher = require 'security.crypto.cipher'
local encoding = require 'core.encoding'
local describe, it, assert, next = describe, it, assert, next
describe('security.crypto.cipher', function()
describe('new', function()
it('raises an error if no arguments passed', function()
assert.error(ci... | mit |
nicholas-leonard/nn | VolumetricMaxUnpooling.lua | 17 | 1804 | local VolumetricMaxUnpooling, parent = torch.class('nn.VolumetricMaxUnpooling', 'nn.Module')
function VolumetricMaxUnpooling:__init(poolingModule)
parent.__init(self)
assert(torch.type(poolingModule)=='nn.VolumetricMaxPooling', 'Argument must be a nn.VolumetricMaxPooling module')
assert(poolingModule.kT==pooling... | bsd-3-clause |
coolflyreg/gs | server/service/main.lua | 1 | 1618 | require("framework")
local skynet = require "skynet"
local sprotoloader = require "sprotoloader"
local cachedata = require "cachedata"
local databases = require "db.databases"
local databaseConfig = require("config.database")
skynet.start(function()
--local console = skynet.newservice("console")
skynet.newser... | gpl-2.0 |
4talesa/rethinkdb | external/v8_3.30.33.16/tools/gcmole/gccause.lua | 157 | 2313 | -- Copyright 2011 the V8 project authors. 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, this list of ... | agpl-3.0 |
dageq/Dage-Aliraqi | libs/lua-redis.lua | 580 | 35599 | local redis = {
_VERSION = 'redis-lua 2.0.4',
_DESCRIPTION = 'A Lua client library for the redis key value storage system.',
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri',
}
-- The following line is used for backwards compatibility in order to keep the `Redis`
-- global module name. Using... | gpl-2.0 |
exitunlimited/Exit-Unlimited | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
EricssonResearch/scott-eu | simulation-ros/src/turtlebot2i/turtlebot2i_description/v-rep_model/warehouse_scene/vrep_scripts/ShelfBodySimple.lua | 1 | 8987 |
-- DO NOT WRITE CODE OUTSIDE OF THE if-then-end SECTIONS BELOW!! (unless the code is a function definition)
-- Shelf functions
-- http://www.coppeliarobotics.com/helpFiles/en/accessingGeneralObjects.htm
-- List all products on this shelf
getObjectName = function(intArg, fltArg, strArg, byteArg)
objectHandle = i... | apache-2.0 |
nasomi/darkstar | scripts/zones/Lufaise_Meadows/mobs/Splinterspine_Grukjuk.lua | 37 | 1181 | -----------------------------------
-- Area: Lufaise Meadows (24)
-- Mob: Splinterspine_Grukjuk
-----------------------------------
package.loaded["scripts/zones/Lufaise_Meadows/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scri... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Port_Bastok/npcs/Steel_Bones.lua | 36 | 1727 | -----------------------------------
-- Area: Port Bastok
-- NPC: Steel Bones
-- Standard Info NPC
-- Involved in Quest: Guest of Hauteur
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requir... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Behemoths_Dominion/npcs/Cermet_Headstone.lua | 17 | 2940 | -----------------------------------
-- Area: Behemoth's Dominion
-- NPC: Cermet Headstone
-- Involved in Mission: ZM5 Headstone Pilgrimage (Lightning Headstone)
-- @pos -74 -4 -87 127
-----------------------------------
package.loaded["scripts/zones/Behemoths_Dominion/TextIDs"] = nil;
--------------------------... | gpl-3.0 |
nicholas-leonard/nn | Parallel.lua | 10 | 3954 | local Parallel, parent = torch.class('nn.Parallel', 'nn.Container')
function Parallel:__init(inputDimension,outputDimension)
parent.__init(self)
self.modules = {}
self.inputDimension = inputDimension
self.outputDimension = outputDimension
end
function Parallel:updateOutput(input)
local nModule=input:si... | bsd-3-clause |
nasomi/darkstar | scripts/zones/Northern_San_dOria/npcs/HomePoint#1.lua | 17 | 1273 | -----------------------------------
-- Area: Northern San dOria
-- NPC: HomePoint#1
-- @pos -178.101 4.000 71.279 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Northern_San_dOria/TextIDs")... | gpl-3.0 |
nicholas-leonard/nn | VolumetricFullConvolution.lua | 6 | 7478 | local THNN = require 'nn.THNN'
local VolumetricFullConvolution, parent = torch.class('nn.VolumetricFullConvolution','nn.Module')
function VolumetricFullConvolution:__init(nInputPlane, nOutputPlane,
kT, kW, kH, -- kernel size
dT... | bsd-3-clause |
nasomi/darkstar | scripts/globals/weaponskills/omniscience.lua | 18 | 4697 | -----------------------------------
-- Omniscience
-- Staff weapon skill
-- Skill Level: N/A
-- Lowers target's magic attack. Duration of effect varies with TP. Tupsimati: Aftermath effect varies with TP.
-- Reduces enemy's magic attack by -10.
-- Available only after completing the Unlocking a Myth (Scholar) que... | gpl-3.0 |
nasomi/darkstar | scripts/zones/West_Ronfaure/npcs/Vilatroire.lua | 17 | 1586 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Vilatroire
-- Involved in Quests: "Introduction To Teamwork", "Intermediate Teamwork",
-- "Advanced Teamwork"
-- @pos -260.361 -70.999 423.420 100
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/... | gpl-3.0 |
sjthespian/dotfiles | hammerspoon/misc_functions.lua | 1 | 2527 | --
-- Misc. functions
--
-- Auto-reload configuration on change
function reloadConfig(files)
local doReload = false
for _,file in pairs(files) do
if file:sub(-4) == ".lua" then
doReload = true
end
end
if doReload then
hs.fnutils.each(hsm, stopModule)
hs.reload()
hs.alert.show("Config ... | mit |
Hello23-Ygopro/ygopro-ds | expansions/script/c27001020.lua | 1 | 1641 | --BT1-017 Evolution Premonition Frost
local ds=require "expansions.utility_dbscg"
local scard,sid=ds.GetID()
function scard.initial_effect(c)
ds.EnableBattleAttribute(c)
ds.AddSetcode(c,SPECIAL_TRAIT_ALIEN,CHARACTER_FROST,SPECIAL_TRAIT_FRIEZA_CLAN)
ds.AddPlayProcedure(c,COLOR_RED,1,0)
--evolve
ds.AddActivateMainSk... | gpl-3.0 |
nasomi/darkstar | scripts/globals/items/kitron.lua | 36 | 1151 | -----------------------------------------
-- ID: 4273
-- Item: Kitron
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -6
-- Intelligence 4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
--------... | gpl-3.0 |
emlyn/chdk | CHDK/SCRIPTS/EXAM/tv_uni_e.lua | 9 | 3188 | --[[
@title Tv mode universal
@param a integer value [Tv]
@default a 0
@param b key delay [ms]
@default b 80
@param c shoot delay [s]
@default c 0
]]
function print_Tv()
tv_output = {"64s","50s","40s","32s","25s","20s","15s","13s","10s","8s","6s",
"5s","4s","3.2s","2.5s","2s","1.6s","1.3s","1s","0.8s","0.6s","0.5s... | gpl-2.0 |
Hello23-Ygopro/ygopro-ds | expansions/script/c2700041.lua | 1 | 1136 | --P-029 Increasing Evil Masked Saiyan
local ds=require "expansions.utility_dbscg"
local scard,sid=ds.GetID()
function scard.initial_effect(c)
ds.EnableBattleAttribute(c)
ds.AddSetcode(c,SPECIAL_TRAIT_SAIYAN,CHARACTER_MASKED_SAIYAN)
ds.AddPlayProcedure(c,COLOR_COLORLESS,0,4)
--over realm
ds.EnableOverRealm(c,4,1)
... | gpl-3.0 |
nasomi/darkstar | scripts/zones/FeiYin/TextIDs.lua | 9 | 2354 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6558; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6563; -- Obtained: <item>
GIL_OBTAINED = 6564; -- Obtained <number> gil
KEYITEM_OBTAINED = 6566; -- Obtain... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Port_San_dOria/npcs/Answald.lua | 5 | 1527 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Answald
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
require("scripts/zones/Port_San_dOria/TextIDs");
-----------------------------------
-- onTrade Action
--------... | gpl-3.0 |
actboy168/YDWE | Development/Component/compiler/script/slk.lua | 2 | 1896 | local w3x2lni = require 'compiler.w3x2lni.init'
local slk_lib = require 'compiler.w3x2lni.slk_lib'
local event = require 'ev'
local map_path = __map_path__
local type_map = {
['war3map.w3u'] = 0,
['war3map.w3t'] = 1,
['war3map.w3b'] = 2,
['war3map.w3d'] = 3,
['war3map.w3a'] = 4,
['war3map.w3h']... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Metalworks/npcs/Iron_Eater.lua | 16 | 3890 | -----------------------------------
-- Area: Metalworks
-- NPC: Iron Eater
-- Involved in Missions
-- @pos 92.936 -19.532 1.814 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("... | gpl-3.0 |
rdococ/rmod | digiconveyor.lua | 1 | 5933 | local rmod_conveyor_top_animated = {
name = "rmod_conveyor_top_animated.png",
backface_culling = true,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 1/8, -- it takes 1 second to move 16 pixels, thus 1/16 seconds to move one pixel. but this animation is two pixel... | unlicense |
amirhacker135/mmkingtm1 | plugins/stats.lua | 12 | 6289 | -- Saves the number of messages from a user
-- Can check the number of messages with !stats
do
local NUM_MSG_MAX = 5
local TIME_CHECK = 4 -- seconds
local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name.... | gpl-2.0 |
ZuoGuocai/Atlas | examples/tutorial-states.lua | 40 | 2935 | --[[ $%BEGINLICENSE%$
Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; version 2 of the
License.
This program is dis... | gpl-2.0 |
EnjoyHacking/nn | NarrowTable.lua | 38 | 1151 | local NarrowTable, parent = torch.class('nn.NarrowTable', 'nn.Module')
function NarrowTable:__init(offset, length)
parent.__init(self)
self.offset = offset
self.length = length or 1
if not offset then
error('nn.NarrowTable(offset, length)')
end
self.output = {}
self.gradInput = {}
end
f... | bsd-3-clause |
nasomi/darkstar | scripts/globals/items/forest_carp.lua | 18 | 1335 | -----------------------------------------
-- ID: 4289
-- Item: forest_carp
-- Food Effect: 30Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItem... | gpl-3.0 |
srush/OpenNMT | preprocess.lua | 2 | 9415 | require('onmt.init')
local tds = require('tds')
local path = require('pl.path')
local cmd = torch.CmdLine()
cmd:text("")
cmd:text("preprocess.lua")
cmd:text("")
cmd:text("**Preprocess Options**")
cmd:text("")
cmd:text("")
cmd:option('-config', '', [[Read options from this file]])
cmd:option('-train_src', '', [[Path... | mit |
nasomi/darkstar | scripts/globals/items/istakoz.lua | 18 | 1338 | -----------------------------------------
-- ID: 5453
-- Item: Istakoz
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity -5
-- Vitality 3
-- Defense +15.4%
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- O... | gpl-3.0 |
1Feng/pdns | modules/luabackend/test2/pdns-luabackend.lua | 2 | 6430 | -- test script for luabackend
-- the test 'database'
local info = {}
info["example.com."] = {
id = 11,
zone = "example.com.",
serial = '2005092501',
kind = "NATIVE",
}
info["example.org."] = {
id = 22,
zone = "example.org.",
serial = '2016020516',
kind = "NATIVE",
}
local keys = {}
keys['example.org.'] = {
... | gpl-2.0 |
nasomi/darkstar | scripts/zones/Castle_Oztroja/npcs/Treasure_Chest.lua | 17 | 3300 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: Treasure Chest
-- Involved In Quest: Scattered into Shadow
-- @pos 7.378 -16.293 -193.590 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
bmddota/barebones | game/dota_addons/barebones/scripts/vscripts/libraries/attachments.lua | 8 | 21434 | ATTACHMENTS_VERSION = "1.00"
--[[
Lua-controlled Frankenstein Attachments Library by BMD
Installation
-"require" this file inside your code in order to gain access to the Attachments global table.
-Optionally require "libraries/notifications" before this file so that the Attachment Configuration GUI can displ... | apache-2.0 |
sjthespian/dotfiles | hammerspoon/Spoons/Zoom.spoon/statemachine.lua | 1 | 3749 | local machine = {}
machine.__index = machine
local NONE = "none"
local ASYNC = "async"
local function call_handler(handler, params)
if handler then
return handler(unpack(params))
end
end
local function create_transition(name)
local can, to, from, params
local function transition(self, ...)
if self.a... | mit |
nasomi/darkstar | scripts/globals/weaponskills/death_blossom.lua | 18 | 5447 | -----------------------------------
-- Death Blossom
-- Sword weapon skill (RDM main only)
-- Description: Delivers a threefold attack that lowers target's magic evasion. Chance of lowering target's magic evasion varies with TP. Murgleis: Aftermath effect varies with TP.
-- Lowers magic evasion by up to 10.
-- Eff... | gpl-3.0 |
icplus/OP-SDK | package/ramips/ui/luci-mtk/src/protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua | 59 | 3798 | --[[
LuCI - Lua Configuration Interface
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
local ma... | gpl-2.0 |
mrfoxirani/mehran | plugins/search_youtube.lua | 674 | 1270 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
akornatskyy/lucid | src/http/middleware/websocket.lua | 1 | 1365 | local websocket = require 'resty.websocket.server'
local Server = {}
function Server:on(cmd, handler)
self.handlers[cmd] = handler
end
function Server:close()
self.closed = true
end
function Server:loop()
local ws = self.ws
local handlers = self.handlers
while not self.closed do
local data, cmd, err =... | mit |
nasomi/darkstar | scripts/globals/spells/shock.lua | 18 | 1590 | -----------------------------------------
-- Spell: Shock
-- Deals lightning damage that lowers an enemy's mind and gradually reduces its HP.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-------------------... | gpl-3.0 |
renyaoxiang/QSanguosha-For-Hegemony | extension-doc/17-Example.lua | 15 | 4626 | -- 下面以倚天包中义舍的技能代码为例,说明如何综合运用前面介绍的内容来编写完整的技能 AI
-- 这段代码位于 yitian-ai.lua 第 449 至 514 行
local yishe_skill={name="yishe"}
table.insert(sgs.ai_skills,yishe_skill) -- 注册义舍技能
yishe_skill.getTurnUseCard = function(self) -- getTurnUseCard 见 15-Activate.lua
return sgs.Card_Parse("@YisheCard=.") -- 义舍技能卡,未指定子卡
end
sgs.ai_skill_... | gpl-3.0 |
Wouterz90/SuperSmashDota | Game/scripts/vscripts/abilities/kunkka.lua | 1 | 9290 | kunkka_special_side = class({})
function kunkka_special_side:OnAbilityPhaseStart()
if not self:GetCaster():CanCast(self) then return false end
if not self:IsCooldownReady() then return false end
local caster = self:GetCaster()
EmitSoundOnLocationForAllies(caster:GetAbsOrigin(),"Ability.pre.Torrent",caster)
... | mit |
nasomi/darkstar | scripts/zones/Windurst_Woods/npcs/Spare_Five.lua | 17 | 1507 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Spare Five
-- Working 100%
-- Involved in quest: A Greeting Cardian
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/globals/quests"] = nil;
require("scripts/globals/quests");
package.loaded[... | gpl-3.0 |
iuser99/BoL | Common/SidasAutoCarryPlugin - Shen.lua | 2 | 1336 | --[[
SAC Shen Plugin
Features
- Smart combo
- Q > W > E
- Smart R monitoring for maximum ally coverage
Version 1.0
- Initial release
Version 1.2
- Converted to iFoundation_v2
--]]
require "iFoundation_v2"
local SkillQ = Caster(_Q, 475, SPELL_TARGETED)
local SkillE = Caster(_E, 1000, SPELL_LINEAR_CO... | gpl-2.0 |
nasomi/darkstar | scripts/zones/Northern_San_dOria/npcs/Heruze-Moruze.lua | 19 | 1783 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Heruze-Moruze
-- Involved in Mission: 2-3 Windurst
-- @pos -56 -3 36 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems"... | gpl-3.0 |
shakfu/start-vm | config/base/awesome/vicious/contrib/pulse.lua | 3 | 3236 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2010, MrMagne <mr.magne@yahoo.fr>
-- * (c) 2010, Mic92 <jthalheim@gmail.com>
---------------------------------------------------
-- {{{ Grab environment
local type = type
local tonumber = tonumber
local i... | mit |
nasomi/darkstar | scripts/globals/weaponskills/spirits_within.lua | 30 | 1518 | -----------------------------------
-- Spirits Within
-- Sword weapon skill
-- Spirits Within Sword Weapon Skill
-- TrolandAdded by Troland
-- Skill Level: 175
-- Delivers an unavoidable attack. Damage varies with HP and TP.
-- Not aligned with any "elemental gorgets" or "elemental belts" due to it's absence of ... | gpl-3.0 |
TeamHypersomnia/Augmentations | hypersomnia/content/official/gfx/resistance_torso_heavy_shot_4.meta.lua | 2 | 2755 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 0.40000000596046448,
amplification = 100,
light_colors = {
"223 113 38 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
},
generate_desaturation = fals... | agpl-3.0 |
nasomi/darkstar | scripts/zones/Xarcabard/npcs/Trail_Markings.lua | 17 | 2473 | -----------------------------------
-- Area: Xarcabard
-- NPC: Trail Markings
-- Dynamis-Xarcabard Enter
-- @pos 570 0 -272 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scrip... | gpl-3.0 |
nasomi/darkstar | scripts/globals/items/cone_of_seraphs_kiss.lua | 35 | 1399 | -----------------------------------------
-- ID: 5556
-- Item: cone_of_seraphs_kiss
-- Food Effect: 1Hr, All Races
-----------------------------------------
-- HP 15
-- MP % 16 (cap 85)
-- MP Recovered While Healing 2
-----------------------------------------
require("scripts/globals/status");
-----------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Meriphataud_Mountains/npcs/Muzeze.lua | 38 | 1035 | -----------------------------------
-- Area: Meriphataud Mountains
-- NPC: Muzeze
-- Type: Armor Storer
-- @pos -6.782 -18.428 208.185 119
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Meriphataud... | gpl-3.0 |
nasomi/darkstar | scripts/globals/items/bowl_of_riverfin_soup.lua | 36 | 1822 | -----------------------------------------
-- ID: 6069
-- Item: Bowl of Riverfin Soup
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- Accuracy % 14 Cap 90
-- Ranged Accuracy % 14 Cap 90
-- Attack % 18 Cap 80
-- Ranged Attack % 18 Cap 80
-- Amorph Killer 5
-----------------------------------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Windurst_Woods/npcs/Sariale.lua | 28 | 2050 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Sariale
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/chocobo");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/globals/status");
-------------------------... | gpl-3.0 |
actboy168/YDWE | Development/Component/script/ydwe/w3x2lni/lniloader.lua | 2 | 4613 | local w3x2lni = require 'compiler.w3x2lni.init'
local stormlib = require 'ffi.stormlib'
local storm = require 'virtual_storm'
local root = fs.ydwe_path()
local ignore = {}
for _, name in ipairs {'.git', '.svn', '.vscode', '.gitignore'} do
ignore[name] = true
end
local function is_lni(path)
if path:filename():... | gpl-3.0 |
nasomi/darkstar | scripts/globals/items/serving_of_menemen.lua | 35 | 1537 | -----------------------------------------
-- ID: 5586
-- Item: serving_of_menemen
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- HP 30
-- MP 30
-- Agility 1
-- Intelligence -1
-- HP recovered while healing 1
-- MP recovered while healing 1
---------------------------------------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Mhaura/npcs/Vera.lua | 17 | 2861 | -----------------------------------
-- Area: Mhaura
-- NPC: Vera
-- Finishes Quest: The Old Lady
-- @pos -49 -5 20 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/qu... | gpl-3.0 |
nasomi/darkstar | scripts/globals/items/bowl_of_emerald_soup.lua | 35 | 1393 | -----------------------------------------
-- ID: 4327
-- Item: Bowl of Emerald Soup
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Agility 2
-- Vitality -1
-- Health Regen While Healing 3
-- Ranged ACC 6
-----------------------------------------
require("scripts/globals/statu... | gpl-3.0 |
Hello23-Ygopro/ygopro-ds | expansions/script/c27002093.lua | 1 | 2060 | --BT2-083 Martial Expert Tien Shinhan
local ds=require "expansions.utility_dbscg"
local scard,sid=ds.GetID()
function scard.initial_effect(c)
ds.EnableBattleAttribute(c)
ds.AddSetcode(c,CHARACTER_TIEN_SHINHAN,SPECIAL_TRAIT_EARTHLING)
ds.AddPlayProcedure(c,COLOR_GREEN,2,1)
--play
ds.AddSingleAutoComboEnd(c,0,nil,sc... | gpl-3.0 |
sourabh0207/sipml5 | asterisk/etc/extensions.lua | 317 | 5827 |
CONSOLE = "Console/dsp" -- Console interface for demo
--CONSOLE = "DAHDI/1"
--CONSOLE = "Phone/phone0"
IAXINFO = "guest" -- IAXtel username/password
--IAXINFO = "myuser:mypass"
TRUNK = "DAHDI/G2"
TRUNKMSD = 1
-- TRUNK = "IAX2/user:pass@provider"
--
-- Extensions are expected to be defined in a global table ... | bsd-3-clause |
shangjiyu/luci-with-extra | modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/backupfiles.lua | 75 | 2451 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
if luci.http.formvalue("cbid.luci.1._list") then
luci.http.redirect(luci.dispatcher.build_url("admin/system/flashops/backupfiles") .. "?display=list")
elseif ... | apache-2.0 |
nasomi/darkstar | scripts/zones/Kazham/npcs/Tatapp.lua | 15 | 11872 | -----------------------------------
-- Area: Kazham
-- NPC: Tatapp
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
require("scripts/globals/pathfind");
local path = {
15.005042, -8.000000, -104.34995... | gpl-3.0 |
nasomi/darkstar | scripts/globals/items/plate_of_coeurl_sautee.lua | 35 | 1762 | -----------------------------------------
-- ID: 4548
-- Item: plate_of_coeurl_sautee
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Strength 5
-- Agility 1
-- Intelligence -2
-- Attack % 20
-- Attack Cap 75
-- Ranged ATT % 20
-- Ranged ATT Cap 75
-- Stun Resist 5
----------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Throne_Room/Zone.lua | 32 | 1638 | -----------------------------------
--
-- Zone: Throne_Room (165)
--
-----------------------------------
package.loaded["scripts/zones/Throne_Room/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Throne_Room/TextIDs");
------------------------... | gpl-3.0 |
amirhacker135/mmkingtm1 | plugins/dl.lua | 13 | 2345 | local function run(msg, matches)
if matches[1] == "dl" then
local file = matches[2]
if is_sudo(msg) then -- sudo only
local receiver = get_receiver(msg)
send_document(receiver, "./data/files/"..file, ok_cb, false)
end
end
end
return {
patterns = {
"^[!/](dl) (.*)$"
},
run = run
}
... | gpl-2.0 |
EricssonResearch/scott-eu | simulated-enviroment/logistics_multiple_robots_youBotStartConfiguration.lua | 1 | 12879 | --**************************
-- Path following script for the mobile robot
-- @author Klaus Raizer
-- @date 23-01-2017
--
moveStatusTube=simTubeOpen(1, 'moveStatus'..simGetNameSuffix(nil), 1)
visualizePath=function(path)
if not _lineContainer then
_lineContainer=simAddDrawingObject(sim_drawing_lines,3,0,-... | apache-2.0 |
nasomi/darkstar | scripts/zones/Metalworks/npcs/Ghemp.lua | 24 | 2139 | -----------------------------------
-- Area: Metalworks
-- NPC: Ghemp
-- Type: Smithing Guild Master
-- @pos -109 2 27 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/glo... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Dynamis-Qufim/mobs/Goblin_Replica.lua | 4 | 1185 | -----------------------------------
-- Area: Dynamis qufim
-- NPC: Goblin Replica
-----------------------------------
package.loaded["scripts/zones/Dynamis-Qufim/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Qufim/TextIDs");
------... | gpl-3.0 |
codeacula/achaea-neko | neko.lua | 1 | 3643 | Neko = {}
-- Are we blocking commands from going out?
Neko.blockCommands = false
-- The lowest priority possible
Neko.maxPriority = 25
-- Has the system been halted?
Neko.paused = false
-- What appears before to let the user know it's Neko
Neko.sayPreamble = Text.new(Text.colors.nekoOrange, Text.colors.black, "[Nek... | mit |
iuser99/BoL | Common/SidasAutoCarryPlugin - Sivir.lua | 2 | 1171 | --[[
SAC Nasus plugin
Features
- Basic combo
- Q > E > W > R
Version 1.0
- Initial release
Version 1.2
- Converted to iFoundation_v2
--]]
require "iFoundation_v2"
local SkillQ = Caster(_Q, 1200, SPELL_LINEAR, 300, 0.200, 100, true)
local SkillW = Caster(_W, math.huge, SPELL_SELF)
local SkillE = Caste... | gpl-2.0 |
nasomi/darkstar | scripts/globals/spells/cura_iii.lua | 36 | 4123 | -----------------------------------------
-- Spell: Cura III
-- Restores hp in area of effect. Self target only
-- From what I understand, Cura III's base potency is the same as Cure III's.
-- With Afflatus Misery Bonus, it can be as potent as a Curaga IV
-- Modeled after our cure_iii.lua, which was modeled after the b... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Misareaux_Coast/npcs/_0p2.lua | 28 | 1874 | -----------------------------------
-- Area: Misareaux Coast
-- NPC: Dilapidated Gate
-- Entrance to Riverne Site #B01
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/z... | gpl-3.0 |
Hello23-Ygopro/ygopro-ds | expansions/script/c27004043.lua | 1 | 1140 | --BT4-039 Oath's Power, Tapion
local ds=require "expansions.utility_dbscg"
local scard,sid=ds.GetID()
function scard.initial_effect(c)
ds.EnableBattleAttribute(c)
ds.AddSetcode(c,CHARACTER_TAPION)
ds.AddPlayProcedure(c,COLOR_BLUE,2,1)
--to deck
ds.AddSingleAutoPlay(c,0,nil,scard.tdtg,scard.tdop,DS_EFFECT_FLAG_CARD... | gpl-3.0 |
EnjoyHacking/nn | Sequential.lua | 33 | 3921 | local Sequential, _ = torch.class('nn.Sequential', 'nn.Container')
function Sequential:__len()
return #self.modules
end
function Sequential:add(module)
if #self.modules == 0 then
self.gradInput = module.gradInput
end
table.insert(self.modules, module)
self.output = module.output
return self
en... | bsd-3-clause |
nasomi/darkstar | scripts/globals/items/felicifruit.lua | 36 | 1158 | -----------------------------------------
-- ID: 5964
-- Item: Felicifruit
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -7
-- Intelligence 5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
---... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Misareaux_Coast/npcs/_0p0.lua | 25 | 2664 | -----------------------------------
-- Area: Misareaux Coast
-- NPC: Dilapidated Gate
-- @pos 260 9 -435 25
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Misare... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Mhaura/Zone.lua | 17 | 2912 | -----------------------------------
--
-- Zone: Mhaura (249)
--
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/zone");
require("scripts/zones/Mhaura/TextIDs");
require... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.