repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
mtroyka/Zero-K | LuaRules/Configs/cloak_shield_defs.lua | 16 | 1373 | -- Cloak Levels
--
-- 0: disabled
-- 1: conditionally enabled, uses energy
-- 2: conditionally enabled, does no use energy
-- 3: enabled, unless stunned
-- 4: always enabled
local uncloakables = {}
for k, v in pairs(UnitDefNames) do
if (v.customParams.cannotcloak) then
uncloakables[k] = true
end
end
l... | gpl-2.0 |
zzh442856860/mproto | benchmark/json2pb.lua | 1 | 1962 | local parser = require("sprotoparser")
local core = require("sproto.core")
local json = require("cjson")
local lfs = require("lfs")
local function trans(filename, filepath)
local file = io.open(filepath .. ".json", "r")
assert(file)
local data = file:read("*a")
local input = json.decode(data)
loca... | mit |
thedraked/darkstar | scripts/zones/Kazham/npcs/Tahn_Posbei.lua | 17 | 1580 | -----------------------------------
-- Area: Kazham
-- NPC: Tahn Posbei
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
---... | gpl-3.0 |
X-Coder/wire | lua/entities/gmod_wire_dual_input.lua | 10 | 2505 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Dual Input"
ENT.WireDebugName = "Dual Input"
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self.Output... | gpl-3.0 |
thedraked/darkstar | scripts/globals/weaponskills/tornado_kick.lua | 20 | 2045 | -------------------------------
-- Skill: Tornado Kick
-- Class: H2H Weapon Skill
-- Level: 225
-- Mods : STR:37.5% VIT:30%
-- 100%TP 200%TP 300%TP
-- 2.0x 2.75x 3.5x
-- Delivers a twofold attack. Damage varies with TP.
-----------------------------------
require("scripts/globals/status");
require("sc... | gpl-3.0 |
thedraked/darkstar | scripts/globals/spells/bio.lua | 26 | 2084 | -----------------------------------------
-- Spell: Bio
-- Deals dark damage that weakens an enemy's attacks and gradually reduces its HP.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/magic");
require("scripts/globals/status");
-------------------------------... | gpl-3.0 |
mamaddeveloper/7894 | plugins/filemanag.lua | 1 | 6480 | local BASE_FOLDER = "/home/super/Hmd/"
local function callback(extra, success, result)
if success then
send_large_msg('chat#id' .. extra, lang_text('fileDownloadedTo') .. result)
send_large_msg('channel#id' .. extra, lang_text('fileDownloadedTo') .. result)
else
send_large_msg('c... | gpl-2.0 |
pevers/OpenRA | mods/ra/maps/allies-05a/AI.lua | 34 | 6702 |
IdlingUnits = { }
AttackGroupSize = 6
Barracks = { Barracks2, Barracks3 }
Rallypoints = { VehicleRallypoint1, VehicleRallypoint2, VehicleRallypoint3, VehicleRallypoint4, VehicleRallypoint5 }
WaterLZs = { WaterLZ1, WaterLZ2 }
Airfields = { Airfield1, Airfield2 }
Yaks = { }
SovietInfantryTypes = { "e1", "e1", "e2", ... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Valkurm_Dunes/npcs/qm2.lua | 14 | 1328 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: qm2 (???)
-- Involved In Quest: Messenger from Beyond
-- @pos -716 -10 66 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
req... | gpl-3.0 |
keharriso/rogue-with-friends | Player.lua | 1 | 3083 | -- Rogue with Friends - a 2D, real-time, multiplayer roguelike
-- ---------------------------------------------------------------
-- Released under the GNU AGPLv3 or later. See README.md for info.
-- A Player object is used by the Server to manage a Connection and its
-- associated player-specific information, such as... | agpl-3.0 |
Abollfazl2/Robocop | plugins/meme.lua | 637 | 5791 | local helpers = require "OAuth.helpers"
local _file_memes = './data/memes.lua'
local _cache = {}
local function post_petition(url, arguments)
local response_body = {}
local request_constructor = {
url = url,
method = "POST",
sink = ltn12.sink.table(response_body),
headers = {},
red... | gpl-2.0 |
SK83RJOSH/jc2mp-c4 | shared/c4.lua | 1 | 4114 | class "C4"
C4.__type = "C4"
C4.FlashDelay = 1
function C4:__init(WNO)
self.WNO = WNO
self.events = {}
-- table.insert(self.events, Events:Subscribe("PreTick", self, self.PreTick))
table.insert(self.events, Events:Subscribe("PreTick", function()
self:PreTick()
end))
if Client then
self.entities = {}
self... | mit |
Abollfazl2/Robocop | 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 |
thedraked/darkstar | scripts/zones/Mount_Zhayolm/npcs/qm3.lua | 30 | 1334 | -----------------------------------
-- Area: Mount Zhayolm
-- NPC: ??? (Spawn Anantaboga(ZNM T2))
-- @pos -368 -13 366 61
-----------------------------------
package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mount_Zhayolm/TextIDs");
require("scripts... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Abyssea-Attohwa/npcs/Cavernous_Maw.lua | 29 | 1199 | -----------------------------------
-- Area: Abyssea - Attohwa
-- NPC: Cavernous Maw
-- @pos -133.197 20.242 -181.658 215
-- Notes: Teleports Players to Buburimu Peninsula
-----------------------------------
package.loaded["scripts/zones/Abyssea-Attohwa/TextIDs"] = nil;
-----------------------------------
require("sc... | gpl-3.0 |
NPLPackages/main | script/ide/STL/RingBuffer.lua | 1 | 1525 | --[[
Title: ring buffer
Author(s): LiXizhi
Date: 2015/4/21
Desc:
Use Lib:
-------------------------------------------------------
NPL.load("(gl)script/ide/STL/RingBuffer.lua");
local ring = commonlib.RingBuffer:new();
ring:add(10);
ring:add(20);
echo({ring, ring:next(), ring:next(), ring:next()});
-------------------... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Mamool_Ja_Training_Grounds/Zone.lua | 17 | 1133 | -----------------------------------
--
-- Zone: Mamool_Ja_Training_Grounds
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Mamool_Ja_Training_Grounds/TextIDs"] = nil;
require("scripts/zones/Mamool_Ja_Training_Grounds/TextIDs");
------------------------------... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Lower_Jeuno/npcs/Zalsuhm.lua | 18 | 4645 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Zalsuhm
-- Standard Info NPC
-----------------------------------
require("scripts/globals/equipment");
require("scripts/globals/quests");
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
function g... | gpl-3.0 |
thedraked/darkstar | scripts/zones/PsoXja/npcs/_i99.lua | 17 | 3621 | -----------------------------------
-- Area: Pso'Xja
-- NPC: Stone Gate
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/PsoXja/TextIDs");
require("scripts/globals/keyitems");
----... | gpl-3.0 |
mtroyka/Zero-K | LuaUI/Widgets/unit_cloakfirestate2.lua | 3 | 3216 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Cloak Fire State 2",
desc = "Sets units to Hold Fire when cloaked, reverts to original state w... | gpl-2.0 |
zzh442856860/mproto | benchmark/sprotoparser.lua | 1 | 9298 | local lpeg = require "lpeg"
local table = require "table"
local bit = require "bit"
local P = lpeg.P
local S = lpeg.S
local R = lpeg.R
local C = lpeg.C
local Ct = lpeg.Ct
local Cg = lpeg.Cg
local Cc = lpeg.Cc
local V = lpeg.V
local function count_lines(_,pos, parser_state)
if parser_state.pos < pos then
parser_sta... | mit |
thedraked/darkstar | scripts/zones/Norg/npcs/Quntsu-Nointsu.lua | 27 | 2965 | -----------------------------------
-- Area: Norg
-- NPC: Quntsu-Nointsu
-- Title Change NPC
-- @pos -67 -1 34 252
-----------------------------------
require("scripts/globals/titles");
local title2 = { HONORARY_DOCTORATE_MAJORING_IN_TONBERRIES , BUSHIDO_BLADE , BLACK_MARKETEER , CRACKER_OF_THE_SECRET_CODE ,
... | gpl-3.0 |
128technology/protobuf_dissector | modules/front_end/lexer.lua | 1 | 10754 | ----------------------------------------
--
-- Copyright (c) 2015, 128 Technology, Inc.
--
-- author: Hadriel Kaplan <hadriel@128technology.com>
--
-- This code is licensed under the MIT license.
--
-- Version: 1.0
--
------------------------------------------
--[[
This script is a Lua module (not stand-alone) for... | mit |
brimworks/zile | src/lisp.lua | 1 | 8261 | -- Zile Lisp interpreter
--
-- Copyright (c) 2009-2011 Free Software Foundation, Inc.
--
-- This file is part of GNU Zile.
--
-- GNU Zile 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, or ... | gpl-3.0 |
dmccuskey/dmc-utils | dmc_corona/lib/dmc_lua/json.lua | 49 | 2030 | --====================================================================--
-- dmc_lua/json.lua
--
-- consistent method which which to load json on various systems
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Cop... | mit |
thedraked/darkstar | scripts/zones/Labyrinth_of_Onzozo/npcs/Treasure_Chest.lua | 17 | 4123 | -----------------------------------
-- Area: Labyrinth of Onzozo
-- NPC: Treasure Chest
-- @zone 213
-----------------------------------
package.loaded["scripts/zones/Labyrinth_of_Onzozo/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
requ... | gpl-3.0 |
thedraked/darkstar | scripts/zones/The_Shrine_of_RuAvitau/mobs/Mother_Globe.lua | 22 | 2655 | -----------------------------------
-- Area: The Shrine of Ru'Avitau
-- NM: Mother Globe
-- TODO: Looked like pets had an additional effect: stun with an unknown proc rate
-- TODO: "Links with Slave Globes, and Slave Globes link with Defenders. Defenders do not link with Slave Globes or Mother Globe."
---------------... | gpl-3.0 |
thedraked/darkstar | scripts/globals/spells/foe_requiem_vi.lua | 26 | 1736 | -----------------------------------------
-- Spell: Foe Requiem VI
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target... | gpl-3.0 |
mtroyka/Zero-K | scripts/aimPosTerraform.lua | 8 | 1244 | function SetupAimPosTerraform(defaultMid, defaultAim, minAimOffset, maxAimOffset, cliffPeek, searchRange)
local baseX,_,baseZ = Spring.GetUnitPosition(unitID)
baseHeight = Spring.GetGroundHeight(baseX, baseZ)
if baseHeight < 0 and UnitDefs[unitDefID].floatOnWater then
baseHeight = 0
end
local updateTime = 1000... | gpl-2.0 |
thedraked/darkstar | scripts/commands/takegil.lua | 13 | 1139 | ---------------------------------------------------------------------------------------------------
-- func: takegil <amount> <player>
-- desc: Removes the amount of gil from the given player.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permissio... | gpl-3.0 |
NPLPackages/main | script/ide/Storyboard/Storyboard.lua | 1 | 5193 | --[[
Title: Storyboard
Author(s): Leio Zhang
Date: 2009/3/26
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/ide/Storyboard/Storyboard.lua");
local storyboard = CommonCtrl.Storyboard.Storyboard:new();
storyboard:SetDuration(50);
storyboard.OnPlay = function(s)
end
storyboa... | gpl-2.0 |
thedraked/darkstar | scripts/globals/weaponskills/ruinator.lua | 22 | 1675 | -----------------------------------
-- Ruinator
-- Axe weapon skill
-- Skill level: 357
-- Description: Delivers a four-hit attack. params.accuracy varies with TP
-- In order to obtain Ruinator, the quest Martial Mastery must be completed.
-- This Weapon Skill's first hit params.ftp is duplicated for all additional hit... | gpl-3.0 |
aminaleahmad/DrAgoN | plugins/feedback.lua | 8 | 1032 | do
function run(msg, matches)
local fuse = '#feedback \n\n🌐آیدی : `' .. msg.from.id .. '`\n\n🅿یوزر نیم: @' .. msg.from.username .. '\n️\nⓂ️اسم : `' .. msg.from.print_name ..'`\n\n🔰متن پیام :\n\n\n' .. matches[1]
local fuses = '!printf user#id' .. msg.from.id
local text = matches[1]
bannedidone = string.fin... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Southern_San_dOria/npcs/Hinaree.lua | 14 | 1983 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Hinaree
-- Type: Standard NPC
-- @zone 230
-- @pos -301.535 -10.199 97.698
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
--... | gpl-3.0 |
X-Coder/wire | lua/wire/client/hlzasm/hc_tokenizer.lua | 6 | 18676 | --------------------------------------------------------------------------------
-- HCOMP / HL-ZASM compiler
--
-- Tokenizer
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- All symbols (tokens) recog... | gpl-3.0 |
Shayan123456/ahvaz | plugins/add_bot.lua | 189 | 1492 | --[[
Bot can join into a group by replying a message contain an invite link or by
typing !add [invite link].
URL.parse cannot parsing complicated message. So, this plugin only works for
single [invite link] in a post.
[invite link] may be preceeded but must not followed by another characters.
--]]
do
local function... | gpl-2.0 |
xinmingyao/skynet | lualib/socket.lua | 6 | 7174 | local driver = require "socketdriver"
local skynet = require "skynet"
local assert = assert
local socket = {} -- api
local buffer_pool = {} -- store all message buffer object
local socket_pool = setmetatable( -- store all socket object
{},
{ __gc = function(p)
for id,v in pairs(p) do
driver.close(id)
-- don'... | mit |
vatanambib/yagop | plugins/get.lua | 613 | 1067 | local function get_variables_hash(msg)
if msg.to.type == 'chat' then
return 'chat:'..msg.to.id..':variables'
end
if msg.to.type == 'user' then
return 'user:'..msg.from.id..':variables'
end
end
local function list_variables(msg)
local hash = get_variables_hash(msg)
if hash then
local names =... | gpl-2.0 |
alalazo/wesnoth | data/ai/micro_ais/cas/ca_zone_guardian.lua | 2 | 5190 | local H = wesnoth.require "helper"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local LS = wesnoth.require "location_set"
local M = wesnoth.map
local function get_guardian(cfg)
local filter = H.get_child(cfg, "filter") or { id = cfg.id }
local guardian = AH.get_units_with_moves {
side = wesnoth.cu... | gpl-2.0 |
cjp39/naev | scripts/pilot/pirate.lua | 1 | 8619 | include("scripts/pilot/generic.lua")
include("ai/equip/helper.lua")
include("ai/equip/outfits.lua")
--[[
-- @brief Creates a mighty pirate of epic proportions.
--
-- @param pirate_create If nil or true actually creates a pirate with a
-- random name and all, otherwise it'll give ship type and outfits.
--... | gpl-3.0 |
mika6020/pgotpro | plugins/tr.lua | 2 | 1536 | do
function translate(source_lang, target_lang, text)
local path = "http://translate.google.com/translate_a/single"
-- URL query parameters
local params = {
client = "gtx",
ie = "UTF-8",
oe = "UTF-8",
hl = "en",
dt = "t",
tl = target_lang or "en",
sl = source_lang or "auto",
q = U... | agpl-3.0 |
josh-perry/VNEngine | kikito-middleclass-extras/Branchy.lua | 1 | 4913 | -----------------------------------------------------------------------------------
-- Branchy.lua
-- Enrique García ( enrique.garcia.cota [AT] gmail [DOT] com ) - 24 Oct 2010
-- Allows a class to act like a tree - getting children, ancestors, etc.
-----------------------------------------------------------------------... | mit |
SnabbCo/snabbswitch | src/apps/lwaftr/lwaftr.lua | 2 | 47217 | module(..., package.seeall)
local bt = require("apps.lwaftr.binding_table")
local constants = require("apps.lwaftr.constants")
local lwdebug = require("apps.lwaftr.lwdebug")
local lwutil = require("apps.lwaftr.lwutil")
local checksum = require("lib.checksum")
local datagram = require("lib.protocol.datagram")
local et... | apache-2.0 |
thedraked/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Fubruhn.lua | 17 | 5863 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Fubruhn
-- Mog Locker NPC
--
-- Event IDs:
-- 0x0258 = Not a mercenary + mog locker options
-- 1st arg = Amount of time left on lease, as seconds past 2001/12/31 15:00:00.
-- If this is 0, it shows the not a mecenary message instead.
-- ... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Jugner_Forest/npcs/Mionie.lua | 14 | 1907 | -----------------------------------
-- Area: Jugner Forest
-- NPC: Mionie
-- Type: Outpost Vendor
-- @pos 54 0 -11 104
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest... | gpl-3.0 |
thedraked/darkstar | scripts/globals/items/slice_of_cockatrice_meat.lua | 18 | 1349 | -----------------------------------------
-- ID: 4435
-- Item: slice_of_cockatrice_meat
-- Food Effect: 5Min, Galka only
-----------------------------------------
-- Strength 4
-- Intelligence -6
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- ... | gpl-3.0 |
Xkeeper0/emu-lua | legacy/gbx/boom-plus.lua | 1 | 3696 | -- NES Braidulator VERSION 1
--(C) Antony Lavelle 2009 got_wot@hotmail.com http://www.the-exp.net
-- A Lua script that allows 'Braid' style time reversal for Nes games being run in FCEUX
--'Braid' is copyright Jonathan Blow, who is not affiliated with this script, but you should all buy his game because it's... | mit |
NPLPackages/main | script/ide/headon_speech.lua | 1 | 20385 | --[[
Title: displaying head on speech on character
Author(s): LiXizhi
Date: 2006/9/5
Desc: global AI related functions.
Use Lib: For displaying head on speech on character,
-------------------------------------------------------
NPL.load("(gl)script/ide/headon_speech.lua");
headon_speech.Speek("<player>", "Hello World"... | gpl-2.0 |
X-Coder/wire | lua/entities/gmod_wire_expression2/core/matrix.lua | 10 | 44774 | /******************************************************************************\
Matrix support
\******************************************************************************/
local delta = wire_expression2_delta
local function clone(a)
local b = {}
for k,v in ipairs(a) do
b[k] = v
end
return b
end
/*****... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Abyssea-Altepa/npcs/qm4.lua | 14 | 1386 | -----------------------------------
-- Zone: Abyssea-Altepa
-- NPC: qm4 (???)
-- Spawns Emperor de Altepa
-- @pos ? ? ? 218
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trad... | gpl-3.0 |
SnabbCo/snabbswitch | src/lib/lpm/ip6.lua | 9 | 3597 | module(..., package.seeall)
local ffi = require("ffi")
local C = ffi.C
local lib = require("core.lib")
local htons = lib.htons
local ntohs = lib.ntohs
IP6 = {}
ip6_t = ffi.typeof([[
union {
uint64_t u64[2];
uint16_t u16[8];
uint8_t u8[16];
}
]])
local function colons (str)
local i = 0
for _ in string.g... | apache-2.0 |
thedraked/darkstar | scripts/globals/abilities/pets/heavenly_strike.lua | 28 | 1332 | ---------------------------------------------------
-- Geocrush
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/globals/magic");
---------------------------------------------------
... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Abyssea-Attohwa/npcs/qm4.lua | 9 | 1341 | -----------------------------------
-- Zone: Abyssea-Attohwa
-- NPC: qm4 (???)
-- Spawns Kharon
-- @pos ? ? ? 215
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
--[[
... | gpl-3.0 |
thedraked/darkstar | scripts/globals/weaponskills/scourge.lua | 19 | 2229 | -----------------------------------
-- Scourge
-- Great Sword weapon skill
-- Skill level: N/A
-- Additional effect: temporarily improves params.critical hit rate.
-- params.critical hit rate boost duration is based on TP when the weapon skill is used. 100% TP will give 20 seconds of params.critical hit rate boost; thi... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Metalworks/npcs/Lucius.lua | 14 | 2015 | -----------------------------------
-- Area: Metalworks
-- NPC: Lucius
-- Involved in Mission: Bastok 3-3
-- Involved in Quest: Riding on the Clouds
-- @pos 59.959 -17.39 -42.321 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
requi... | gpl-3.0 |
OpenNMT/OpenNMT | tools/detokenize.lua | 4 | 2580 | require('torch')
require('onmt.init')
local threads = require 'threads'
local cmd = onmt.utils.ExtendedCmdLine.new('detokenize.lua')
local separators = require('tools.utils.separators')
cmd:text("")
cmd:text("**detokenize.lua**")
cmd:text("")
cmd:option('-case_feature', false, [[First feature is case feature]])
cm... | mit |
mtroyka/Zero-K | LuaRules/Configs/StartBoxes/Fairyland v1.0.lua | 11 | 3218 | return {
[0] = {
boxes = {
{
{548.91485595703, 4537.50390625},
{615.93908691406, 4015.4694824219},
{663.70477294922, 4012.3491210938},
{706.501953125, 4020.7900390625},
{738.37896728516, 4029.4035644531},
{788.1708984375, 4060.970703125},
{825.615234375, 4095.5969238281},
{876.4416... | gpl-2.0 |
thedraked/darkstar | scripts/globals/spells/kaustra.lua | 27 | 1401 | --------------------------------------
-- Spell: Kaustra
-- Consumes 20% of your maximum MP. Relentless
-- dark damage slowly devours an enemy.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------... | gpl-3.0 |
NPLPackages/main | script/ide/Transitions/TweenLite.lua | 1 | 11752 | --[[
Title: TweenLite
Author(s): Leio Zhang
Date: 2009/9/1
Desc: Based on Flash Tweener Actionscript library
use the lib:
------------------------------------------------------------
-----------------------2d test
local instance_id = "test";
local c = ParaUI.CreateUIObject("container",instance_id,"_lt",100,100,100,10... | gpl-2.0 |
Devul/DarkRP | gamemode/modules/f4menu/cl_frame.lua | 3 | 5042 | --[[---------------------------------------------------------------------------
F4 tab
---------------------------------------------------------------------------]]
local PANEL = {}
function PANEL:Init()
self.BaseClass.Init(self)
end
local gray = Color(110, 110, 110, 255)
function PANEL:Paint(w, h)
local draw... | mit |
thedraked/darkstar | scripts/zones/Quicksand_Caves/npcs/_5s3.lua | 14 | 1275 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Ornate Door
-- Door blocked by Weight system
-- @pos -694 0 -420 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Caves/TextID... | gpl-3.0 |
telergybot/1984joorge | plugins/ingroup.lua | 202 | 31524 | do
local function check_member(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostring(msg.to.id)] = {
... | gpl-2.0 |
SnabbCo/snabbswitch | lib/ljsyscall/syscall/linux/fcntl.lua | 5 | 1430 | -- fcntl is one of those bits of the Unix API that is a bit random, so give it its own file
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawse... | apache-2.0 |
thedraked/darkstar | scripts/zones/Northern_San_dOria/npcs/Antonian.lua | 17 | 2157 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Antonian
-- Regional Marchant NPC
-- Only sells when San d'Oria controlls Aragoneu.
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/No... | gpl-3.0 |
thedraked/darkstar | scripts/globals/items/pearlscale.lua | 18 | 1330 | -----------------------------------------
-- ID: 5714
-- Item: Pearlscale
-- Food Effect: 5 Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Abyssea-Vunkerl/npcs/qm13.lua | 14 | 1753 | -----------------------------------
-- Zone: Abyssea-Vunkerl
-- NPC: qm13 (???)
-- Spawns Bukhis
-- @pos ? ? ? 217
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/status");
-----------------------------------
-- onTrigger Action
-----------------------------------
fu... | gpl-3.0 |
thedraked/darkstar | scripts/globals/spells/armys_paeon.lua | 27 | 1361 | -----------------------------------------
-- Spell: Army's Paeon
-- Gradually restores target's HP.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,targe... | gpl-3.0 |
thedraked/darkstar | scripts/zones/South_Gustaberg/mobs/Tococo.lua | 16 | 1203 | -----------------------------------
-- Area: South Gustaberg
-- NM: Tococo
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-----------------------------------
-- onMobInitialize
-----------------------------------
function onMobInitialize(mob)
mob:setM... | gpl-3.0 |
thedraked/darkstar | scripts/globals/items/coeurl_sub.lua | 18 | 1832 | -----------------------------------------
-- ID: 5166
-- Item: coeurl_sub
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Magic 10
-- Strength 5
-- Agility 1
-- Intelligence -2
-- Health Regen While Healing 1
-- Attack % 20
-- Attack Cap 75
-- Ranged ATT % 20
-- Ranged ATT Cap 75
---------... | gpl-3.0 |
hamed9898/max4bot | plugins/chatter.lua | 6 | 1586 | -- Put this absolutely at the end, even after greetings.lua.
local triggers = {
'',
'^' .. bot.first_name .. ',',
'^@' .. bot.username .. ','
}
local action = function(msg)
-- This is awkward, but if you have a better way, please share.
if msg.text_lower:match('^' .. bot.first_name .. ',') then
elseif msg.tex... | gpl-2.0 |
pengsun/lstm-char-cnn | evaluate.lua | 2 | 4773 | --[[
Evaluates a trained model
Much of the code is borrowed from the following implementations
https://github.com/karpathy/char-rnn
https://github.com/wojzaremba/lstm
]]--
require 'torch'
require 'nn'
require 'nngraph'
require 'optim'
require 'lfs'
require 'util.Squeeze'
require 'util.misc'
require 'util.HLogSoftMax'... | mit |
thedraked/darkstar | scripts/zones/Vunkerl_Inlet_[S]/npcs/Leafy_Patch.lua | 45 | 1646 | -----------------------------------
-- Area: Vunkerl Inlet (S) (F-5)
-- NPC: Leafy Patch
-- Involved in Quests
-- @pos -418 -33 576
-----------------------------------
package.loaded["scripts/zones/Vunkerl_Inlet_[S]/TextIDs"] = nil;
package.loaded["scripts/globals/quests"] = nil;
-----------------------------------
re... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Castle_Oztroja/Zone.lua | 19 | 1745 | -----------------------------------
--
-- Zone: Castle_Oztroja (151)
--
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Castle_Oztroja/TextI... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Al_Zahbi/npcs/Gidappa.lua | 53 | 2317 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Gidappa
-- Type: Clothcraft Normal/Adv. Image Support
-- @pos 70.228 -7 -54.089 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("s... | gpl-3.0 |
X-Coder/wire | lua/entities/info_wiremapinterface/entityoverride.lua | 17 | 4526 | -- Stuff that the entity gets for its wire stuff.
local WIREENT = {}
-- Trigger wire input
function WIREENT:TriggerInput(name, value, ...)
if (!name or (name == "") or !value) then return end
local Entity = self._WireMapInterfaceEnt
if (!IsValid(Entity)) then return end
if (!Entity.TriggerWireInput) then return e... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Southern_San_dOria/npcs/Varchet.lua | 14 | 2847 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Varchet
-- Type: NPC
-- @pos 116.484 -1 91.554 230
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/z... | gpl-3.0 |
dani-sj/evilbot01 | plugins/webshot.lua | 919 | 1473 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
Abollfazl2/Robocop | plugins/webshot.lua | 919 | 1473 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Pashhow_Marshlands/npcs/Souun_IM.lua | 14 | 3340 | -----------------------------------
-- Area: Pashhow Marshlands
-- NPC: Souun, I.M.
-- Type: Outpost Conquest Guards
-- @pos 470.843 23.465 415.520 109
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/con... | gpl-3.0 |
X-Coder/wire | lua/entities/gmod_wire_fx_emitter.lua | 10 | 3723 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire FX Emitter"
ENT.WireDebugName = "FX Emitter"
function ENT:SetupDataTables()
self:NetworkVar( "Bool", 0, "On" )
self:NetworkVar( "Int", 0, "Effect" )
self:NetworkVar( "Float", 0, "Delay" )
self:NetworkVar( "Vector", 0, "FXDir" )
end
... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Port_San_dOria/npcs/Dabbio.lua | 14 | 1049 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Dabbio
-- Type: Standard NPC
-- @zone 232
-- @pos -7.819 -15 -106.990
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
---------------... | gpl-3.0 |
kaustavha/luvit | deps/require.lua | 9 | 9219 | --[[
Copyright 2014-2015 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | apache-2.0 |
thedraked/darkstar | scripts/zones/Windurst_Waters/npcs/Ohbiru-Dohbiru.lua | 28 | 12066 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Ohbiru-Dohbiru
-- Involved in quest: Food For Thought, Say It with Flowers
-- Starts and finishes quest: Toraimarai Turmoil
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("scripts/globa... | gpl-3.0 |
MessiahAndrw/Stereoscopic-VLC | share/lua/intf/modules/common.lua | 2 | 4334 | --[[ This code is public domain (since it really isn't very interesting) ]]--
module("common",package.seeall)
-- Iterate over a table in the keys' alphabetical order
function pairs_sorted(t)
local s = {}
for k,_ in pairs(t) do table.insert(s,k) end
table.sort(s)
local i = 0
return function () i = ... | gpl-2.0 |
rjeli/luvit | examples/broken/test-http-ugly.lua | 15 | 3065 | --[[
Copyright 2012 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | apache-2.0 |
alirezanj1/AntiSpam | plugins/stats.lua | 866 | 4001 | 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... | gpl-2.0 |
jhjin/nn | TemporalConvolution.lua | 14 | 2040 | local TemporalConvolution, parent = torch.class('nn.TemporalConvolution', 'nn.Module')
function TemporalConvolution:__init(inputFrameSize, outputFrameSize, kW, dW)
parent.__init(self)
dW = dW or 1
self.inputFrameSize = inputFrameSize
self.outputFrameSize = outputFrameSize
self.kW = kW
self.dW = dW
... | bsd-3-clause |
Devul/DarkRP | entities/entities/darkrp_billboard/shared.lua | 7 | 2771 | ENT.Type = "anim"
ENT.Base = "base_gmodentity"
ENT.PrintName = "DarkRP billboard"
ENT.Instructions = "Shows advertisements."
ENT.Author = "FPtje"
ENT.Spawnable = false
ENT.Editable = true
ENT.IsDarkRPBillboard = true
cleanup.Register("advert_billboards")
function ENT:SetupDataTables()
self:NetworkVar("String", 0... | mit |
thedraked/darkstar | scripts/zones/Boneyard_Gully/mobs/Race_Runner.lua | 13 | 1477 | -----------------------------------
-- Area: Boneyard_Gully
-- Name: Race Runner
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
local path = {
-539, 0, -481,
-556, 0, -478,
-581, 0, -475,
-579, -3, -460,
-572, 2, -433,
-545, 1, -440,
... | gpl-3.0 |
mtroyka/Zero-K | gamedata/planetwars/pw_structuredefs.lua | 11 | 23927 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- note name and description are obtained from server and modified at runtime
ALLOW_SERVER_OVERRIDE_UNIT_TEXT = true
structureConfig = {
generic_tech = fun... | gpl-2.0 |
NPLPackages/main | script/ide/Animation/Motion/MovieClipBase.lua | 1 | 12644 | --[[
Title: MovieClipBase
Author(s): Leio Zhang
Date: 2008/10/15
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/ide/Animation/Motion/MovieClipBase.lua");
------------------------------------------------------------
--]]
local MovieClipBase = {
_animator = nil,
_parent =... | gpl-2.0 |
gmorishere/lolsh | plugins/groupmanagerr.lua | 5 | 11273 | -- 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 |
mtroyka/Zero-K | LuaUI/Widgets/gui_attrition_counter.lua | 4 | 17504 | local version = 2.131
function widget:GetInfo()
return {
name = "Attrition Counter",
desc = "Shows a counter that keeps track of player/team kills/losses",
author = "Anarchid, Klon",
date = "Dec 2012, Aug 2015",
license = "GPL",
layer = -10,
enabled = false -- l... | gpl-2.0 |
mtroyka/Zero-K | units/chicken_pigeon.lua | 3 | 4695 | unitDef = {
unitname = [[chicken_pigeon]],
name = [[Pigeon]],
description = [[Flying Spore Scout]],
acceleration = 0.8,
brakeRate = 0.32,
buildCostEnergy = 0,
buildCostMetal = 0,
builder = false,
buildPic = [[chicken_pi... | gpl-2.0 |
thedraked/darkstar | scripts/globals/spells/geohelix.lua | 26 | 1688 | --------------------------------------
-- Spell: Geohelix
-- Deals earth damage that gradually reduces
-- a target's HP. Damage dealt is greatly affected by the weather.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/mag... | gpl-3.0 |
Ali-2h/losebot | plugins/id.lua | 355 | 2795 | 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..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
local function returnids(cb_extra, success, resu... | gpl-2.0 |
X-Coder/wire | lua/entities/gmod_wire_expression2/core/custom/wiring.lua | 5 | 4368 | -- Originally by Jeremydeath, updated by Nebual + Natrim's wirelink
E2Lib.RegisterExtension("wiring", false)
__e2setcost(30)
--- Creates an invisible wire between the input <inputname> of <this> and the output <outputname> of <ent2>
e2function number entity:createWire(entity ent2, string inputname, string outputname... | gpl-3.0 |
mtroyka/Zero-K | LuaRules/Configs/StartBoxes/OnyxCauldron1.6.lua | 11 | 6342 | return {
[0] = {
boxes = {
{
{6863.8203125, 6965.1958007813},
{6289.3608398438, 6844.1010742188},
{6662.59765625, 6382.8154296875},
{6700.3759765625, 6373.1455078125},
{6723.0004882813, 6373.0263671875},
{6760.7124023438, 6384.935546875},
{6792.8911132813, 6397.5922851563},
{6839.2... | gpl-2.0 |
OpenNMT/OpenNMT | onmt/utils/Dict.lua | 1 | 6961 | local Dict = torch.class("Dict")
local separators = require('tools.utils.separators')
function Dict:__init(data)
self.idxToLabel = {}
self.labelToIdx = {}
self.frequencies = {}
self.freqTensor = nil
-- Special entries will not be pruned.
self.special = {}
if data ~= nil then
if type(data) == "strin... | mit |
thedraked/darkstar | scripts/zones/Abyssea-Altepa/mobs/Rani.lua | 17 | 1277 | -----------------------------------
-- Area: Abyssea - Altepa
-- Mob: Rani
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/titles");
-----------------------------------
-- onMobInitialize
-----------------------------------
function onMobInitialize(mob)
end;
---------... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.