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 |
|---|---|---|---|---|---|
carloseduardosx/sky-force-infinite | src/objects/laser.lua | 1 | 1695 | local sprite = require( "src.images.sprite" )
local Laser = {}
function Laser.fire( application, physics )
audio.play( application.soundTable.shotSound, { channel=2 } )
local newLaser = display.newImageRect( application.mainGroup, sprite.objectSheet, 5, 14, 40 )
table.insert( application.lasersTable, newL... | apache-2.0 |
cleytonk/globalfull | data/actions/scripts/other/bed_modification_kits.lua | 12 | 1580 | local BEDS = {
[7904] = {{7811, 7812}, {7813, 7814}}, -- green kit
[7905] = {{7819, 7820}, {7821, 7822}}, -- yellow kit
[7906] = {{7815, 7816}, {7817, 7818}}, -- red kit
[7907] = {{1754, 1755}, {1760, 1761}}, -- removal kit
[20252] = {{20197, 20198}, {20199, 20200}} -- canopy kit
}
local function internalBedTran... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Temple_of_Uggalepih/npcs/_4fx.lua | 9 | 1492 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: Granite Door
-- !pos 340 0.1 329 159
-----------------------------------
local ID = require("scripts/zones/Temple_of_Uggalepih/IDs")
require("scripts/globals/keyitems")
require("scripts/globals/missions")
require("scripts/globals/npc_util")
-----... | gpl-3.0 |
Lsty/ygopro-scripts | c86868952.lua | 3 | 1948 | --武神器-ヤツカ
function c86868952.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(86868952,0))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCondition(c86868952.condition)
e1:SetCost(c86868952.cost)
e1:SetTarget(... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Cloister_of_Flames/bcnms/trial-size_trial_by_fire.lua | 3 | 1848 | -----------------------------------
-- Area: Cloister of Flames
-- BCNM: Trial-size Trial by Fire
-----------------------------------
local ID = require("scripts/zones/Cloister_of_Flames/IDs")
require("scripts/globals/battlefield")
require("scripts/globals/quests")
-----------------------------------
function onBattle... | gpl-3.0 |
mortezamosavy999/zetaindex | plugins/google.lua | 336 | 1323 | do
local function googlethat(query)
local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&'
local parameters = 'q='..(URL.escape(query) or '')
-- Do the request
local res, code = https.request(url..parameters)
if code ~=200 then return nil end
loca... | gpl-2.0 |
peterkohaut/scummvm | devtools/create_ultima/files/ultima6/scripts/se/ending.lua | 19 | 1680 | local lua_file = nil
lua_file = nuvie_load("common/intro_common.lua"); lua_file();
function play()
local g_img_tbl = image_load_all("endgame.lzc")
-- 0,0 Party
-- 0,1 Lord British
-- 0,2 Aiela
-- 0,3 Tristia
-- 0,4 Leaving Savage Empire
local bg = sprite_new(g_img_tbl[0][0], 0, 0, true)
canva... | gpl-3.0 |
MalRD/darkstar | scripts/globals/weaponskills/realmrazer.lua | 10 | 1499 | -----------------------------------
-- Realmrazer
-- Club weapon skill
-- Skill Level: 357
-- Delivers a seven-hit attack. params.accuracy varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Shadow Gorget & Soil Gorget.
-- Aligned with the Shadow Belt & Soil Belt.
-- Element: None
-- Modifiers: MND:73~... | gpl-3.0 |
Lsty/ygopro-scripts | c82263578.lua | 9 | 1263 | --戦火の残滓
function c82263578.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(c82263578.condition)
e1:SetTarget(c82263578.target)
e1:SetOperation(c8226... | gpl-2.0 |
bforbis/thrift | lib/lua/TTransport.lua | 115 | 2800 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | apache-2.0 |
moody2020/TH3_BOSS | plugins/owners.lua | 55 | 23720 | 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)]['settings'... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Apollyon/npcs/Sentinel_Column.lua | 10 | 1134 | -----------------------------------
-- Area: Appolyon
-- NPC: Sentinel_Column
-- !pos 643 0 -609 38
-----------------------------------
require("scripts/globals/limbus");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
---------------... | gpl-3.0 |
MalRD/darkstar | scripts/globals/mobskills/murk.lua | 12 | 1086 | ---------------------------------------------
-- Murk
--
-- Description: Slow and Weight Area of Effect (10.0')
-- Type: Enfeebling
-- Utsusemi/Blink absorb: Ignores shadows
---------------------------------------------
require("scripts/globals/monstertpmoves")
require("scripts/globals/settings")
require("scripts/globa... | gpl-3.0 |
LuaDist2/tethys | tethys2/util/LDAP.lua | 2 | 1067 | local base = _G
local lualdap = require("lualdap")
local oo = require "loop.simple"
local table = require "table"
local config = require "config"
local string = require "string"
module(...)
LDAP = oo.class({})
new = LDAP
class = LDAP
function LDAP:__init(t)
local obj = {}
obj.ld = lualdap.open_simple(t.host, t.use... | gpl-3.0 |
Lsty/ygopro-scripts | c16366944.lua | 9 | 1313 | --月光蝶
function c16366944.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(16366944,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetCondition(... | gpl-2.0 |
GRSSR/yum-server | yumServer.lua | 1 | 3538 | os.loadAPI("api/redString")
os.loadAPI("api/sovietProtocol")
PROTOCOL_CHANNEL = 137
local yum = sovietProtocol.Protocol:new("yum", PROTOCOL_CHANNEL, PROTOCOL_CHANNEL)
sovietProtocol.setDebugLevel(0)
function getIndex(package)
local index = fs.combine(fs.combine("packages", package), "index")
if fs.exists(index) th... | gpl-2.0 |
gallenmu/MoonGen | libmoon/lua/lib/turbo/spec/structs_spec.lua | 4 | 6640 | --- Turbo.lua Unit test
--
-- Copyright 2013 John Abrahamsen
--
-- 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 appl... | mit |
Lsty/ygopro-scripts | c16051717.lua | 3 | 2386 | --A BF-驟雨のライキリ
function c16051717.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1)
c:EnableReviveLimit()
--add type
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(c16051717.tncon)
e1:S... | gpl-2.0 |
Lsty/ygopro-scripts | c21051146.lua | 3 | 2083 | --ブラッド・マジシャン-煉獄の魔術師-
function c21051146.initial_effect(c)
c:EnableCounterPermit(0x3001)
--add counter
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e0:SetCode(EVENT_CHAINING)
e0:SetRange(LOCATION_MZONE)
e0:SetOperation(aux.chainre... | gpl-2.0 |
Mike325/.vim | lua/completions/init.lua | 1 | 1760 | local function general_completion(arglead, _, _, options)
local split_components = require('utils.strings').split_components
local pattern = table.concat(split_components(arglead, '.'), '.*')
pattern = pattern:lower()
return vim.tbl_filter(function(opt)
return opt:lower():match(pattern) ~= nil
... | mit |
MalRD/darkstar | scripts/zones/Arrapago_Reef/npcs/Cutter.lua | 9 | 3104 | -----------------------------------
-- Area: Arrapago Reef
-- NPC: Cutter
-- The ship for The Black Coffin Battle (TOAU-15)
-- !pos -462 -2 -394 54
-----------------------------------
local ID = require("scripts/zones/Arrapago_Reef/IDs")
require("scripts/globals/keyitems")
require("scripts/globals/missions")
---------... | gpl-3.0 |
MalRD/darkstar | scripts/globals/spells/bluemagic/cocoon.lua | 12 | 1218 | -----------------------------------------
-- Spell: Cocoon
-- Enhances defense
-- Spell cost: 10 MP
-- Monster Type: Vermin
-- Spell Type: Magical (Earth)
-- Blue Magic Points: 1
-- Stat Bonus: VIT+3
-- Level: 8
-- Casting Time: 1.75 seconds
-- Recast Time: 60 seconds
-- Duration: 90 seconds
--
-- Combos: None
--------... | gpl-3.0 |
TheSAguy/Natural-Evolution | prototypes/Vanilla_Changes/New_Spitter_Units.lua | 1 | 14776 | require "prototypes.Vanilla_Changes.Settings"
require "prototypes.Vanilla_Changes.Functions"
require "prototypes.Vanilla_Changes.Projectiles"
smallspitterscale = 0.5
smallspittertint = {r=0.68, g=0.4, b=0, a=1}
smallspitterMk2scale = 0.55
smallspitterMk2tint = {r=0.68, g=0.4, b=0.5, a=1}
smallspitterMk3scale = 0.6... | mit |
Lsty/ygopro-scripts | c18865703.lua | 3 | 3191 | --ZW-玄武絶対聖盾
function c18865703.initial_effect(c)
c:SetUniqueOnField(1,0,18865703)
--equip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(18865703,0))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetRange(LOCATION_MZONE)
e1:SetConditi... | gpl-2.0 |
MalRD/darkstar | scripts/globals/items/coral_butterfly.lua | 11 | 1054 | -----------------------------------------
-- ID: 4580
-- Item: Coral Butterfly
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
--------------------------------... | gpl-3.0 |
Lsty/ygopro-scripts | c47121070.lua | 3 | 1674 | --宝玉の双璧
function c47121070.initial_effect(c)
--to field
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_BATTLE_DESTROYED)
e1:SetCondition(c47121070.tfcon)
e1:SetTarget(c47121070.tftg)
e1:SetOperation(c47121070.tfop)
c:RegisterEffect(e1)
end
function c47121070.filter(c,tp)
retu... | gpl-2.0 |
MalRD/darkstar | scripts/globals/weaponskills/wheeling_thrust.lua | 10 | 1610 | -----------------------------------
-- Wheeling Thrust
-- Polearm weapon skill
-- Skill Level: 225
-- Ignores enemy's defense. Amount ignored varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Flame Gorget & Light Gorget.
-- Aligned with the Flame Belt & Light Belt.
-- Element: None
-- Modifiers: STR:... | gpl-3.0 |
MalRD/darkstar | scripts/globals/spells/cura_iii.lua | 12 | 4172 | -----------------------------------------
-- 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 |
Lsty/ygopro-scripts | c32933942.lua | 3 | 1563 | --宝玉獣 アメジスト・キャット
function c32933942.initial_effect(c)
--send replace
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_TO_GRAVE_REDIRECT_CB)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetCondition(c32933942.repcon)
e1:SetOperation(c32933942.repop)
c:RegisterEffect(e1)
--direct att... | gpl-2.0 |
MalRD/darkstar | scripts/globals/items/serving_of_green_curry.lua | 11 | 1582 | -----------------------------------------
-- ID: 4296
-- Item: serving_of_green_curry
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Agility 2
-- Vitality 1
-- Health Regen While Healing 2
-- Magic Regen While Healing 1
-- Defense +9% (cap 160)
-- Ranged ACC +5% (cap 25)
-- Sleep Resist ... | gpl-3.0 |
Frenzie/koreader | frontend/ui/widget/buttonprogresswidget.lua | 4 | 10346 | local Blitbuffer = require("ffi/blitbuffer")
local Button = require("ui/widget/button")
local Device = require("device")
local FocusManager = require("ui/widget/focusmanager")
local Geom = require("ui/geometry")
local HorizontalGroup = require("ui/widget/horizontalgroup")
local HorizontalSpan = require("ui/widget/horiz... | agpl-3.0 |
morfeo642/mta_plr_server | module/util/groupids.lua | 1 | 6817 | --[[!
\file
\brief Es un módulo que permite crear grupos de ids y comprobar si una id
está en alguno de estos grupos. Los grupos pueden agruparse paara formar grupos
más complejos, con operadores de negación y or.
]]
loadModule("util/class");
loadModule("util/math/range");
loadModule("util/assertutils");
loadModu... | mit |
tofurama3000/The-Obscurity-Project | cocos2d/plugin/luabindings/auto/api/AgentManager.lua | 146 | 1798 |
--------------------------------
-- @module AgentManager
-- @parent_module plugin
--------------------------------
--
-- @function [parent=#AgentManager] getSocialPlugin
-- @param self
-- @return plugin::ProtocolSocial#plugin::ProtocolSocial ret (return value: cc.plugin::ProtocolSocial)
-------------------... | mit |
ThingMesh/openwrt-luci | applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua | 11 | 17421 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://w... | apache-2.0 |
cshore-firmware/openwrt-luci | applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev.lua | 39 | 3926 | -- Copyright 2015 Jian Chang <aa65535@live.com>
-- Licensed to the public under the Apache License 2.0.
local m, s, o, e, a
if luci.sys.call("pidof ss-redir >/dev/null") == 0 then
m = Map("shadowsocks-libev", translate("ShadowSocks-libev"), translate("ShadowSocks-libev is running"))
else
m = Map("shadowsocks-libev"... | apache-2.0 |
MalRD/darkstar | scripts/zones/Windurst_Walls/Zone.lua | 9 | 2709 | -----------------------------------
--
-- Zone: Windurst_Walls (239)
--
-----------------------------------
local ID = require("scripts/zones/Windurst_Walls/IDs")
require("scripts/globals/conquest")
require("scripts/globals/settings")
require("scripts/globals/keyitems")
require("scripts/globals/missions")
require("scri... | gpl-3.0 |
ThingMesh/openwrt-luci | modules/admin-full/luasrc/model/cbi/admin_system/system.lua | 39 | 5650 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
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://w... | apache-2.0 |
MalRD/darkstar | scripts/globals/items/serving_of_cibarious_cilbir.lua | 11 | 1304 | -----------------------------------------
-- ID: 5643
-- Item: serving_of_cibarious_cilbir
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- HP % 6 (cap 150)
-- MP % 6 (cap 100)
-- HP recovered while healing 3
-- MP recovered while healing 4
-----------------------------------------
require("... | gpl-3.0 |
peterkohaut/scummvm | devtools/create_ultima/files/ultima6/scripts/u6/ending.lua | 18 | 12340 | local g_img_tbl = {}
local START_YEAR = 161
local START_MONTH = 7
local START_DAY = 4
local function wait_for_input()
local input = nil
while input == nil do
canvas_update()
input = input_poll()
if input ~= nil then
break
end
end
return input
end
local g_pal_counter = 0
local star_field = nil
local ... | gpl-3.0 |
Lsty/ygopro-scripts | c37195861.lua | 6 | 1316 | --E・HERO オーシャン
function c37195861.initial_effect(c)
--to hand
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(37195861,0))
e1:SetCategory(CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EVENT_PHASE... | gpl-2.0 |
ThingMesh/openwrt-luci | libs/web/luasrc/http/protocol/date.lua | 88 | 2760 | --[[
HTTP protocol implementation for LuCI - date handling
(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
http://www.... | apache-2.0 |
MalRD/darkstar | scripts/zones/Norg/npcs/Magephaud.lua | 9 | 2026 | -----------------------------------
-- Area: Norg
-- NPC: Magephaud
-- Standard Info NPC
-----------------------------------
local ID = require("scripts/zones/Norg/IDs")
require("scripts/globals/keyitems")
require("scripts/globals/quests")
require("scripts/globals/titles")
-----------------------------------
function... | gpl-3.0 |
MalRD/darkstar | scripts/globals/items/blind_bolt.lua | 12 | 1045 | -----------------------------------------
-- ID: 18150
-- Item: Blind Bolt
-- Additional Effect: Blindness
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------
function onAdditionalEffect(player,t... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Dagger.lua | 9 | 1177 | -----------------------------------
-- Area: Dynamis - Xarcabard
-- Mob: Animated Dagger
-----------------------------------
require("scripts/globals/status");
local ID = require("scripts/zones/Dynamis-Xarcabard/IDs");
-----------------------------------
function onMobEngaged(mob,target)
if (mob:AnimationSub() =... | gpl-3.0 |
ThingMesh/openwrt-luci | applications/luci-olsr/luasrc/model/cbi/olsr/olsrdiface.lua | 49 | 6797 | --[[
LuCI - Lua Configuration Interface
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
l... | apache-2.0 |
Lsty/ygopro-scripts | c95816395.lua | 3 | 1542 | --どぐう
function c95816395.initial_effect(c)
--to grave
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetOperation(c95816395.regop)
c:RegisterEffect(e1)
end
function c95816395.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if rp~=tp and c:... | gpl-2.0 |
MalRD/darkstar | scripts/globals/effects/last_resort.lua | 12 | 1102 | -----------------------------------
--
-- dsp.effect.LAST_RESORT
--
-----------------------------------
require("scripts/globals/status")
-----------------------------------
function onEffectGain(target, effect)
target:addMod(dsp.mod.ATTP, 25 + target:getMerit(dsp.merit.LAST_RESORT_EFFECT))
target:addMod(d... | gpl-3.0 |
starius/kodomoquiz | fbb.lua | 1 | 8212 | local module = {}
module.as_list = {
'tuser',
'aba',
'dendik',
'dendik2',
'grisha',
'artemov',
'manyashka',
'illusionoflife',
'thewatcher',
'davtyan.a',
'stepadenisov',
's.denisov',
'udavdasha',
'dasg',
'ase',
'feniouk',
'mgelfand',
'golovin',
'aegor',
'den',
'grishin',
'prep',
'julia_50291',
'bylino',
'hovhannd',
'Mk... | mit |
keyidadi/luci | applications/luci-statistics/luasrc/model/cbi/luci_statistics/netlink.lua | 78 | 2765 | --[[
Luci configuration model for statistics - collectd netlink 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 Licen... | apache-2.0 |
eagle14/Snippy-robot | plugins/groupmanager.lua | 136 | 11323 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if not is_admin(msg) then
return "You're not admin!"
end
local group_creator = msg.from.print_name
create_group_chat (group_cr... | gpl-2.0 |
Oliveryo/Interface | AddOns/Cartographer/Modules/Foglight.lua | 1 | 37023 | local revision = tonumber(string.sub("$Revision: 18625 $", 12, -3))
if revision > Cartographer.revision then
Cartographer.version = "r" .. revision
Cartographer.revision = revision
Cartographer.date = string.sub("$Date: 2006-12-02 16:13:35 +0300 (Сб, 02 дек 2006) $", 8, 17)
end
-- if you want to add data to the def... | gpl-3.0 |
Telewildv4/Telewildv4bot | plugins/google.lua | 336 | 1323 | do
local function googlethat(query)
local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&'
local parameters = 'q='..(URL.escape(query) or '')
-- Do the request
local res, code = https.request(url..parameters)
if code ~=200 then return nil end
loca... | gpl-2.0 |
EvilHero90/forgottenserver | data/scripts/monsters/cobra_flask.lua | 5 | 1162 | local cobras = {"cobra scout", "cobra vizier", "cobra assassin"}
local ev = EventCallback
function ev.onSpawn(monster, position, startup, artificial)
if table.contains(cobras, monster:getName():lower()) then
local storage = Game.getStorageValue(GlobalStorageKeys.cobraBastionFlask)
if storage then
if storage >... | gpl-2.0 |
ahnqirage/thrift | lib/lua/TTransport.lua | 115 | 2800 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | apache-2.0 |
Oliveryo/Interface | AddOns/VanillaGuide/GuideTables/Alliance/002_ElwynnForest.lua | 1 | 15073 | --[[--------------------------------------------------
002_ElwynnForest.lua
Authors: mrmr
Version: 1.04.2
------------------------------------------------------
Description: Guide Serie - 001 Elwynn Forest
1.04.1
-- First Release
Human Elwynn Forest's Guide
from level 1 to lever 12
... | gpl-3.0 |
Flexibity/luci | modules/admin-core/luasrc/tools/status.lua | 8 | 3115 | --[[
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
$Id$
]]--
mo... | apache-2.0 |
mcastron/TinyBRL | scripts/lua_scripts/makeInit.lua | 3 | 2837 |
local agents = require "data.agents"
local gridComputing = require "data.gridComputing"
local formulaSets = require "data.formula_sets"
local experiments_accurate = require "data.experiments_accurate"
local experiments_inaccurate = require "data.experiments_inaccurate"
local experiments_options = requir... | gpl-2.0 |
Spring-SpringBoard/SpringBoard-Core | scen_edit/command/terrain_change_texture_command.lua | 1 | 1107 | TerrainChangeTextureCommand = Command:extends{}
TerrainChangeTextureCommand.className = "TerrainChangeTextureCommand"
function TerrainChangeTextureCommand:init(opts)
self.opts = opts
self.mergeCommand = "TerrainChangeTextureMergedCommand"
end
function TerrainChangeTextureCommand:execute()
local cmd = Widg... | mit |
Oliveryo/Interface | AddOns/enemyFrames/globals/settings/optionals.lua | 1 | 2651 | -------------------------------------------------------------------------------
local settings = _G['enemyFramesSettings']
local container = CreateFrame('Frame', 'enemyFramesSettingsoptionalsContainer', settings)
container:SetWidth(settings:GetWidth()) container:SetHeight(settings:GetHeight())
container:SetPoint... | gpl-3.0 |
weirdouncle/QSanguosha-For-Hegemony | lua/ai/chat-ai.lua | 1 | 21506 | --[[********************************************************************
Copyright (c) 2013-2014 - QSanguosha-Rara
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... | gpl-3.0 |
NerdWalletOSS/Q | RUNTIME/test/test_gen3.lua | 1 | 1188 | local plfile = require 'pl.file'
local plpath = require 'pl.path'
local Vector = require 'libvec'
local Scalar = require 'libsclr'
local cmem = require 'libcmem'
local lVector = require 'Q/RUNTIME/lua/lVector'
require 'Q/UTILS/lua/strict'
local qconsts = require 'Q/UTILS/lua/q_consts'
local qc = requi... | mit |
Oliveryo/Interface | AddOns/BigWigs/Plugins/RaidOfficer.lua | 1 | 2836 | --[[
by LYQ(Virose / MOUZU)
https://github.com/MOUZU/BigWigs
This small plugin simply allows to move players in the raidgroup
from one subgroup to another, if the player using this version
is a RaidAssistant.
Previously this was possible in blizzards API but not implemented.
--]]
---------... | gpl-3.0 |
Oliveryo/Interface | AddOns/BigWigs/Libs/Babble-Zone-2.2/Babble-Zone-2.2.lua | 3 | 34659 | --[[
Name: Babble-Zone-2.2
Revision: $Rev: 17779 $
Author(s): ckknight (ckknight@gmail.com)
Website: http://ckknight.wowinterface.com/
Documentation: http://wiki.wowace.com/index.php/Babble-Zone-2.2
SVN: http://svn.wowace.com/root/trunk/Babble-2.2/Babble-Zone-2.2
Description: A library to provide localizations for zon... | gpl-3.0 |
iranianhacker40/ARCHON-TEAM | plugins/lock_badword.lua | 13 | 3182 | 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_badw'... | gpl-2.0 |
NerdWalletOSS/Q | OPERATORS/LOAD_CSV/test/performance_testing/gen_csv_metadata_file.lua | 1 | 6967 | --require 'Q/UTILS/lua/globals'
local qconsts = require 'Q/UTILS/lua/q_consts'
-- table for random functions
local random_func = {}
local fns = {}
--to convert row (table) into comma separated line
local to_csv = function (tt)
local s = ""
for _,p in ipairs(tt) do
s = s .. "," .. p
end
return(string.... | mit |
codergreen/ValyriaTear | dat/config/fonts.lua | 6 | 1468 | -- The fonts table is used to load the available fonts in game.
-- One and one only font should be set as default.
-- If no valid font is defined or if the default one is invalid, the game won't start
-- and log why.
fonts = {
-- Text style internal name = { "font file path", font size }
-- TODO: Rename the ... | gpl-2.0 |
vgire/nn | SpatialDropout.lua | 33 | 1453 | local SpatialDropout, Parent = torch.class('nn.SpatialDropout', 'nn.Module')
function SpatialDropout:__init(p)
Parent.__init(self)
self.p = p or 0.5
self.train = true
self.noise = torch.Tensor()
end
function SpatialDropout:updateOutput(input)
self.output:resizeAs(input):copy(input)
if self.train the... | bsd-3-clause |
TheAnswer/FirstTest | bin/scripts/items/objects/clothing/dresses/dress34.lua | 1 | 2280 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/naboo/npcs/gungan/mordranGunganExile.lua | 1 | 4573 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/skills/creatureSkills/corellia/creatures/sandPantherAttacks.lua | 1 | 3718 | sandPantherAttack1 = {
attackname = "sandPantherAttack1",
animation = "creature_attack_light",
requiredWeaponType = NONE,
range = 7,
damageRatio = 1.2,
speedRatio = 4,
arearange = 7,
accuracyBonus = 0,
k... | lgpl-3.0 |
Hammerspoon/hammerspoon | extensions/application/test_application.lua | 4 | 7507 | hs.application = require("hs.application")
hs.dockicon = require("hs.dockicon")
menuTestValue = nil
function testInitWithPidFailures()
assertIsNil(hs.application.applicationForPID(1))
return success()
end
function testInitWithPid()
local apps = hs.application.runningApplications()
for _,app in pairs(apps) do... | mit |
Mohammadrezar/telediamond | plugins/stats.lua | 1 | 4030 | do
-- Returns a table with `name` and `msgs`
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_prin... | agpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/npcs/rebel/rebelLieutenantGeneral.lua | 1 | 4785 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/component/food/objects.lua | 1 | 10156 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
meysamx0/Crazy | plugins/banhammer.lua | 1 | 17030 |
local function pre_process(msg)
local data = load_data(_config.moderation.data)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Che... | agpl-3.0 |
shahabsaf1/test | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/deed.lua | 1 | 2147 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versi... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/armorsmith/personalArmorIChitin/chitinArmorBoots.lua | 1 | 5205 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/armor/composite/composite_bracer_l.lua | 1 | 2428 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
thkhxm/TGame | Assets/StreamingAssets/lua/misc/utf8.lua | 15 | 8353 | local utf8 = {}
--byte index of the next char after the char at byte index i, followed by a valid flag for the char at byte index i.
--nil if not found. invalid characters are iterated as 1-byte chars.
function utf8.next_raw(s, i)
if not i then
if #s == 0 then return nil end
return 1, true --fake flag (doesn't ma... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/object/universe/base/objects.lua | 1 | 3920 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/creature/npc/general/objects.lua | 1 | 3333 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
B1GAPTEAM/B1GAPBOT | plugins/lock_chat.lua | 13 | 2802 |
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_chat... | gpl-2.0 |
Lunovox/minetest_nibirus_game | mods/add/lunoshooters/api.lua | 1 | 10975 |
lunoshooters = {
time = 0,
objects = {},
rounds = {},
shots = {},
}
SHOOTER_EXPLOSION_TEXTURE = "shooter_hit.png"
SHOOTER_ALLOW_NODES = false
SHOOTER_ALLOW_ENTITIES = true
SHOOTER_ALLOW_PLAYERS = true -- "unprotected" / true / false
SHOOTER_OBJECT_RELOAD_TIME = 1
SHOOTER_OBJECT_UPDATE_TIME = 0.25
SHOOTER_ROUNDS_U... | agpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/corellia/npcs/selonian/selonianScout.lua | 1 | 4511 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/entities/entities/prop_ammo_drop/init.lua | 1 | 4455 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
--Duby: I need to heavily clean up this file! But I simply don't have the time at the moment.. It works for now..
include("shared.lua")
local function RefreshCrateOwners(pl)
for _, ent in pairs(ents.FindByClass("prop_ammo_drop")) do
if ent:IsValid() and ent:Get... | gpl-2.0 |
thehyve/quisper-configuration-public | qsp/3scale.lua | 1 | 5911 | --
-- Created by IntelliJ IDEA.
-- User: robert
-- Date: 7/10/14
-- Time: 2:26 PM
-- To change this template use File | Settings | File Templates.
--
--
-- This module contains the methods needed to handle
-- authentication and logging using 3scale
--
local threescale = {}
--
-- Builds a URL query string from a give... | agpl-3.0 |
PAPAGENO-devels/papageno | test/benchmarks/Lua/700k.lua | 1 | 712684 | CheckFirstTime("tu.lua")
dofile("ma_operate_bolt.lua")
dofile("brennis_fix_idle.lua")
dofile("brennis_on_fire.lua")
dofile("tu_fans.lua")
dofile("tu_switcher_door.lua")
dofile("tu_deadbolt.lua")
dofile("tu_switcher.lua")
dofile("tu_canister.lua")
dofile("tu_fire.lua")
dofile("ma_tube_action.lua")
tu = Set:create("tu.se... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/clothing/twilekHats/twilekHat5.lua | 1 | 2297 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/tatooine/npcs/mosTaike/mosTaikeGuardYoung.lua | 1 | 4563 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/armorsmith/personalArmorIvPadded/ithorianDefenderChestPlate.lua | 1 | 5192 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
schaeftide/factorio-teams | stdlib/area/area.lua | 1 | 6856 | --- Area module
-- @module area
require 'stdlib/core'
require 'stdlib/area/position'
Area = {}
--- Returns the size of the space contained in the 2d area
-- @param area the area
-- @return size of the area
function Area.area(area)
fail_if_missing(area, "missing area value")
area = Area.to_table(area)
lo... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/objects/npcs/imperial/imperialStormtrooperDarkTrooperNovatrooper.lua | 1 | 4681 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
bartvm/Penlight | lua/pl/app.lua | 26 | 5794 | --- Application support functions.
-- See @{01-introduction.md.Application_Support|the Guide}
--
-- Dependencies: `pl.utils`, `pl.path`
-- @module pl.app
local io,package,require = _G.io, _G.package, _G.require
local utils = require 'pl.utils'
local path = require 'pl.path'
local app = {}
local function check_script... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/objects/npcs/flail/flailKiller.lua | 1 | 4547 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
OpenMusicKontrollers/chimaerad | app/httpd.lua | 1 | 2875 | --[[
* Copyright (c) 2015 Hanspeter Portner (dev@open-music-kontrollers.ch)
*
* This is free software: you can redistribute it and/or modify
* it under the terms of the Artistic License 2.0 as published by
* The Perl Foundation.
*
* This source is distributed in the hope that it will be useful,
* but WITHOUT AN... | artistic-2.0 |
Modified-MW-DF/modified-MDF | MWDF Project/Dwarf Fortress/hack/scripts/teleport.lua | 2 | 1803 | -- teleports a unit to a location
-- author Putnam
-- edited by expwnent
--[====[
teleport
========
Teleports a unit to given coordinates. Examples:
:teleport -showunitid: prints ID of unit beneath cursor
:teleport -showpos: prints coordinates beneath cursor
:teleport -unit 1234 -x 56 -y 115 -z 26:
... | mit |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/entities/weapons/weapon_zs_basemelee/shared.lua | 1 | 9463 | if SERVER then
AddCSLuaFile("shared.lua")
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("animations.lua")
end
SWEP.ViewModel = "models/weapons/v_axe/v_axe.mdl"
SWEP.WorldModel = "models/weapons/w_axe.mdl"
SWEP.Primary.ClipSize = -1
SWEP.Primary.DefaultClip = -1
SWEP.Primary.Automatic = true
SWEP.Primary.Ammo = "none"
S... | gpl-2.0 |
devilrap97/alirap97 | plugins/ar-plugins.lua | 13 | 7118 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ plugins : تفعيل الملفات ▀▄ ▄▀
▀▄▀... | gpl-2.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/entities/entities/prop_ffemitter/init.lua | 1 | 1714 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
ENT.m_Health = 150
function ENT:Initialize()
self:SetModel("models/props_lab/lab_flourescentlight002b.mdl")
self:PhysicsInit(SOLID_VPHYSICS)
self:SetUseType(SIMPLE_USE)
local phys = self:GetPhysicsObject()
if phys:IsValid... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.