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 |
|---|---|---|---|---|---|
Warboss-rus/wargameengine | WargameEngine/WargameEngine/WargameEngine/Killteam/main.lua | 1 | 10189 | Player1Roster = {}
Player2Roster = {}
Player1Army = nil
Player2Army = nil
races = {}
function getKeysSorted(tbl, func)
local keys = {}
for key in pairs(tbl) do
table.insert(keys, key)
end
table.sort(keys, func)
return keys
end
function GetUnits(army, list)
local unitList = getKeysSo... | gpl-3.0 |
CaptainCN/QCEditor | cocos2d/cocos/scripting/lua-bindings/auto/api/ProgressTo.lua | 8 | 2076 |
--------------------------------
-- @module ProgressTo
-- @extend ActionInterval
-- @parent_module cc
--------------------------------
-- brief Initializes with a duration and destination percentage. <br>
-- param duration Specify the duration of the ProgressTo action. It's a value in seconds.<br>
-- param percent Sp... | mit |
hakelimopu/CoronaSDKDev | WidgetSandbox/tab1.lua | 1 | 5807 | --*********************************************************************************************
--
-- ====================================================================
-- Corona SDK "Widget" Sample Code
-- ====================================================================
--
-- File: main.lua
--
-- Version 2.0
--
... | gpl-2.0 |
nekrozar/ygopro-scripts | c62694833.lua | 1 | 2865 | --Brotherhood of the Fire Fist - Ram
function c62694833.initial_effect(c)
--set
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(62694833,0))
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetCountLimit(1,62694833)
e... | gpl-2.0 |
nekrozar/ygopro-scripts | c52675689.lua | 3 | 1336 | --暗黒の眠りを誘うルシファー
function c52675689.initial_effect(c)
--atklimit
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(52675689,0))
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetTarget(c52675689.target)
e1:SetOperation... | gpl-2.0 |
nekrozar/ygopro-scripts | c1249315.lua | 4 | 1562 | --聖光の宣告者
function c1249315.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,2,2)
c:EnableReviveLimit()
--to hand
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(1249315,0))
e2:SetCategory(CATEGORY_TOHAND)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRan... | gpl-2.0 |
nekrozar/ygopro-scripts | c99162753.lua | 1 | 2741 | --セクステット・サモン
function c99162753.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_REMOVE+CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,99162753+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c99162753.target)
e1:SetOperation(c9... | gpl-2.0 |
rfarley3/CodeXt-ugly | CodeXt/conf-CodeXt.lua | 2 | 6262 | -- RJF
-- config file for S2E (using lua)
-- 25 Mar 2014 name change from DasosPreproc to CodeXt
-- 11 Feb 2014 allows you to specify marking certain bytes as symbolic, which byte to monitor for taint, tuning for early termination, multipath bool, multisysc bool
s2e = {
kleeArgs = {
"--use-dfs-search=true",... | gpl-2.0 |
nekrozar/ygopro-scripts | c6556178.lua | 1 | 3409 | --ヴァレル・リロード
function c6556178.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,6556178)
e1:SetTarget(c6556178.target)
e1:SetOperation(c655... | gpl-2.0 |
Domderon/spice-minions | switcheroo/music.lua | 1 | 1399 | local tracks
local masterVolume = 0.4
local trackData = {
}
local function load()
tracks = {}
for _, filename in ipairs(trackData) do
local track = love.audio.newSource("music/" .. filename, "static")
track:setVolume(0.0)
track:setPitch(1.0) -- (0.5 = one octave lower)
track:se... | mit |
modhunter/NerdPack | rotations/priest/shadow.lua | 1 | 5523 | local Keybinds = {
{'%pause', 'keybind(alt)'},
{'Mass Dispell', 'keybind(lalt)', 'mouseover.ground'},
}
local Interrupts = {
--Silence selected target.
{'Silence'},
--Arcane Torrent Blood Elf racial if within 8 yard range of selected target when Silence is on cooldown. -- Credit to Xeer
{'Arcane Torrent', 'targe... | mit |
nekrozar/ygopro-scripts | c340002.lua | 4 | 1755 | --EMハンマーマンモ
function c340002.initial_effect(c)
--summon with no tribute
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(340002,0))
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SUMMON_PROC)
e1:SetCondition(c340002.ntcon)
c:RegisterEffect(e1)
--atklimit
... | gpl-2.0 |
nekrozar/ygopro-scripts | c48049769.lua | 4 | 1879 | --サンダー・シーホース
function c48049769.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(48049769,0))
e1:SetCategory(CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,48049769)
e1:SetCost(c48049769.cost)
e1:SetTarget(c48049769.tar... | gpl-2.0 |
vlc-mirror/vlc-2.1 | share/lua/sd/jamendo.lua | 58 | 6732 | --[[
$Id$
Copyright © 2010 VideoLAN and AUTHORS
Authors: Fabio Ritrovato <sephiroth87 at videolan dot org>
Rémi Duraffort <ivoire at videolan dot org>
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 So... | lgpl-2.1 |
finalsliver/supervillain-ui | SVUI_UnitFrames/libs/Plugins/oUF_Necromancy/oUF_Necromancy.lua | 2 | 2888 | if select(2, UnitClass("player")) ~= "DEATHKNIGHT" then return end
local parent, ns = ...
local oUF = ns.oUF
local floor = math.floor
local runeColors = {
{0.75, 0, 0}, -- blood
{0, 0.75, 1}, -- frost
{0.1, 0.75, 0}, -- unholy
{0.75, 0, 1}, -- death
}
local runemap = { 1, 2, 5, 6, 3, 4 }
local BLOOD_OF_THE... | mit |
nekrozar/ygopro-scripts | c74657662.lua | 7 | 2662 | --ヴァイロン・マテリアル
function c74657662.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c74657662.target)
e1:SetOperation(c74657662.operation)
c:RegisterEffect... | gpl-2.0 |
nekrozar/ygopro-scripts | c5969957.lua | 1 | 2980 | --ヴァレット・リチャージャー
function c5969957.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(5969957,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetRange(LOCATION_HAND+LOCATION_MZONE)
e1:SetCode(EVENT_DESTROYED)
e1:Set... | gpl-2.0 |
Pandafuchs/iLife | client/Classes/Vehicle/cAttach.lua | 2 | 2818 | --
-- Created by IntelliJ IDEA.
-- User: Noneatme
-- Date: 29.01.2015
-- Time: 16:34
-- To change this template use File | Settings | File Templates.
--
cAttach = {};
--[[
]]
-- ///////////////////////////////
-- ///// New //////
-- ///// Returns: Object //////
-- ///////////////////////////////
function cAtta... | mit |
nekrozar/ygopro-scripts | c34961968.lua | 4 | 1539 | --幻獣サンダーペガス
function c34961968.initial_effect(c)
--indes
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(34961968,0))
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetRange(LOCATION_GRAVE)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetCondition(c34961968.condition)
e1:SetC... | gpl-2.0 |
venkatarajasekhar/bee | third_party/luajit/src/jit/dis_x86.lua | 89 | 29330 | ----------------------------------------------------------------------------
-- LuaJIT x86/x64 disassembler module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
--------------------------------------------------------------------------... | bsd-2-clause |
nekrozar/ygopro-scripts | c46448938.lua | 4 | 2968 | --魔導書の神判
function c46448938.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,46448938+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c46448938.target)
e1:SetOperation(c46448... | gpl-2.0 |
vlc-mirror/vlc-2.1 | share/lua/meta/art/00_musicbrainz.lua | 11 | 3106 | --[[
Gets an artwork from the Cover Art Archive or Amazon
$Id$
Copyright © 2007-2010 the VideoLAN team
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; either version 2 of the License, or
(at ... | lgpl-2.1 |
nekrozar/ygopro-scripts | c73899015.lua | 4 | 1593 | --ヴェノム・スネーク
function c73899015.initial_effect(c)
--add counter
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(73899015,0))
e1:SetCategory(CATEGORY_COUNTER)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(c738990... | gpl-2.0 |
nekrozar/ygopro-scripts | c98585345.lua | 3 | 1875 | --ハネクリボー LV10
function c98585345.initial_effect(c)
c:EnableReviveLimit()
--cannot special summon
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(aux.FALSE)
c:RegisterEffect(e1)
--d... | gpl-2.0 |
andreaskoepf/nn | Linear.lua | 3 | 3278 | local Linear, parent = torch.class('nn.Linear', 'nn.Module')
function Linear:__init(inputSize, outputSize, bias)
parent.__init(self)
local bias = ((bias == nil) and true) or bias
self.weight = torch.Tensor(outputSize, inputSize)
self.gradWeight = torch.Tensor(outputSize, inputSize)
if bias then
se... | bsd-3-clause |
MNoya/DotaCraft | game/dota_addons/dotacraft/scripts/vscripts/libraries/buildinghelper.lua | 1 | 109957 | BH_VERSION = "1.2.9"
--[[
For installation, usage and implementation examples check the wiki:
https://github.com/MNoya/BuildingHelper/wiki
]]
require('libraries/timers')
require('libraries/selection')
require('libraries/keyvalues')
if not BuildingHelper then
BuildingHelper = class({})
end
-- Loads K... | gpl-3.0 |
nekrozar/ygopro-scripts | c39531794.lua | 7 | 2201 | --ブレインハザード
function c39531794.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_END_PHASE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c39531794.target)
e1:SetOper... | gpl-2.0 |
nekrozar/ygopro-scripts | c48659020.lua | 4 | 1243 | --魂を呼ぶ者
function c48659020.initial_effect(c)
--flip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(48659020,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e1:SetTarget(c486... | gpl-2.0 |
mihailim/koreader | frontend/ui/data/dictionaries.lua | 6 | 52775 | local _ = require("gettext")
-- largely thanks to https://tuxor1337.github.io/firedict/dictionaries.html
local dictionaries = {
{
name = "CIA World Factbook 2014",
lang_in = "English",
lang_out = "English",
entries = 2577,
license = _("Public Domain"),
url = "http://... | agpl-3.0 |
nekrozar/ygopro-scripts | c25716180.lua | 9 | 1042 | --ゼンマイニャンコ
function c25716180.initial_effect(c)
--to hand
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(25716180,0))
e1:SetCategory(CATEGORY_TOHAND)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_NO_TURN_RESET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)... | gpl-2.0 |
bencvt/FixGroups | libs/AceGUI-3.0/widgets/AceGUIContainer-TabGroup.lua | 50 | 10384 | --[[-----------------------------------------------------------------------------
TabGroup Container
Container that uses tabs on top to switch between groups.
-------------------------------------------------------------------------------]]
local Type, Version = "TabGroup", 35
local AceGUI = LibStub and LibStub("AceGUI... | mit |
Pandafuchs/iLife | server/Classes/Jobs/cLineJob.lua | 2 | 2971 | addEvent("onClientLineJobStart", true)
addEvent("onClientLineJobFinish", true)
addEvent("onClientLineJobStep", true)
CLineJob = {}
function CLineJob:constructor()
self.Marker = createMarker(2653.622070,-1458.5361328125, 30.5509, "corona", 2, 255, 0, 0, 255, getRootElement())
addEventHandler("onMarkerHit", self.M... | mit |
Zhen-hao/lstm | base.lua | 13 | 1965 | --
-- Copyright (c) 2014, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the Apache 2 license found in the
-- LICENSE file in the root directory of this source tree.
--
function g_disable_dropout(node)
if type(node) == "table" and node.__typename == nil then
for i = 1, #node... | apache-2.0 |
qwertzdenek/elevator-music-generator | sample.lua | 1 | 2453 | -- sample.lua
-- Zdeněk Janeček, 2016 (ycdmdj@gmail.com)
--
-- University of West Bohemia
require 'load_midi'
require 'rbm'
require 'nn'
require 'rnn'
require 'gnuplot'
MIDI=require 'MIDI'
cmd = torch.CmdLine()
cmd:text()
cmd:text('Sample from the NN-RBM music generator model')
cmd:text()
cmd:text('Options')
-- data... | gpl-3.0 |
NoriSilverrage/Revamped-Factorio-Machines | RFM-war_0.8.5/prototypes/large-ammo.lua | 1 | 7164 | data.raw.ammo["firearm-magazine"].ammo_type.action[1].action_delivery[1].target_effects = {{type = "damage", damage = { amount = 3 , type = "physical"}}}
data.raw.ammo["firearm-magazine"].magazine_size = 20
data.raw.ammo["piercing-rounds-magazine"].magazine_size = 20
data:extend(
{
{
type = "item-subgroup",
... | mit |
Nether-Machine/NetherMachine | NetherMachine_MrTheSoulz/rotations/warrior/prot.lua | 1 | 4374 | --[[ ///---INFO---////
// Warrior Fury //
Thank You For Using My ProFiles
I Hope Your Enjoy Them
MTS
]]
local Battle_Print = false
local fetch = NetherMachine.interface.fetchKey
local exeOnLoad = function()
mts.Splash("|cff9482C9[MTS]-|cffFFFFFF"..(select(2, GetSpecializationInfo(GetSpecialization())) or "Error").."... | agpl-3.0 |
Habbie/pdns | pdns/recursordist/contrib/kv-example-script.lua | 6 | 1885 |
--[[
This implements a two-step domain filtering solution where the status of an IP address
and a domain name need to be looked up.
To do so, we use the udpQuestionResponse answers which generically allows us to do asynchronous
lookups via UDP.
Such lookups can be slow, but they won't block PowerDNS while we wait for ... | gpl-2.0 |
tenoriomatheus/StarRise | src/module/settings.lua | 1 | 1026 | require "src/util/color"
require "src/module/file_util"
require "src/module/json_util"
require "src/module/language"
local class = require "lib/middleclass"
local SettingsClass = class("SettingsClass")
function SettingsClass:initialize()
self._filePath = "settings.json"
if FileUtil:exist(self._filePath) then
sel... | mit |
jtg-gg/skia | tools/lua/scrape.lua | 145 | 2246 | function tostr(t)
local str = ""
for k, v in next, t do
if #str > 0 then
str = str .. ", "
end
if type(k) == "number" then
str = str .. "[" .. k .. "] = "
else
str = str .. tostring(k) .. " = "
end
if type(v) == "table" then
... | bsd-3-clause |
antares-me/dotfiles | awesome/.config/awesome/awful/layout/suit/tile.lua | 1 | 5672 | ---------------------------------------------------------------------------
-- @author Donald Ephraim Curtis <dcurtis@cs.uiowa.edu>
-- @author Julien Danjou <julien@danjou.info>
-- @copyright 2009 Donald Ephraim Curtis
-- @copyright 2008 Julien Danjou
-- @release v3.5.6
-------------------------------------... | gpl-2.0 |
MidflightDigital/ddrsn3-theme | DDR SN3/Graphics/MusicWheel highlight/default - Copy.lua | 1 | 4763 | local t = Def.ActorFrame {
LoadActor("Backing");
};
if SCREENMAN:GetTopScreen() ~= "ScreenNetRoom" then
t[#t+1] = Def.ActorFrame{
--P1 Light--
Def.Sprite{
Texture=THEME:GetPathG("MusicWheelItem Song","NormalPart/score");
InitCommand=function(s)
if GAMESTATE:GetNumPlayersEnabled() == 2 then
s:x(-158):zoom... | mit |
sjznxd/lc-20130112 | applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-res.lua | 80 | 3097 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 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
h... | apache-2.0 |
ArmanIr/Telegrambotarman | plugins/id.lua | 7 | 2878 | 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 |
tederis/mta-resources | papi/anomaly_client.lua | 1 | 1716 | local detectors = {
[ "geiger" ] = {
distance = 15,
time = getTickCount ( ),
sound = {
"sounds/geiger_%s.ogg",
1, 8
}
},
[ "da-2" ] = {
distance = 15,
time = getTickCount ( ),
sound = {
"sounds/da-2_beep1.ogg",
1, 1
}
}
}
local _anomalies = {
}
function addAnoma... | gpl-3.0 |
marqueza/syzygy | lib/rotLove/src/rot/map/iceyMaze.lua | 2 | 3324 | --- The Icey Maze Map Generator.
-- See http://www.roguebasin.roguelikedevelopment.org/index.php?title=Simple_maze for explanation
-- @module ROT.Map.IceyMaze
local ROT = require((...):gsub(('.[^./\\]*'):rep(2) .. '$', ''))
local IceyMaze = ROT.Map:extend("IceyMaze")
--- Constructor.
-- Called with ROT.Map.IceyMaze:new... | gpl-3.0 |
MisatoTremor/ForgeUI | ForgeUI_PetFrames/ForgeUI_PetFrames.lua | 2 | 7885 | require "Window"
local ForgeUI_PetFrames = {}
-----------------------------------------------------------------------------------------------
-- Constants
-----------------------------------------------------------------------------------------------
tEngineerStances = {
[0] = "",
[1] = Apollo.GetString("Enginee... | mit |
SherlockMe/basewars.1.1 | gamemode/modules/notify.lua | 2 | 2070 | MODULE.Name = "Notify"
MODULE.Author = "Q2F2 & Ghosty"
MODULE.Realm = 2
local tag = "BaseWars.Notify"
function MODULE:__INIT()
surface.CreateFont(tag, {
font = "Roboto",
size = 16,
weight = 800,
antialias = true
})
end
local HUDNote_c = 0
local HUDNote_i = 1
local HUDNotesm = {}
local Alpha = 1000
f... | apache-2.0 |
Nether-Machine/NetherMachine | NetherMachine_MrTheSoulz/interface/class/shaman/ele.lua | 1 | 3005 | local logo = "|TInterface\\AddOns\\NetherMachine\\NetherMachine_MrTheSoulz\\media\\logo.blp:15:15|t"
mts_configShamanEle = {
key = "mtsconfShamanEle",
profiles = true,
title = logo.."MrTheSoulz Config",
subtitle = "Shaman Elemental Settings",
color = "9482C9",
width = 250,
height = 500,
config = {
{
t... | agpl-3.0 |
Nether-Machine/NetherMachine | rotations/shaman/elemental2.lua | 1 | 33947 | -- NetherMachine Rotation
-- Elemental Shaman Rotation for WoD 6.0.3
-- Updated on Jan 8th 2015
-- PLAYER CONTROLLED SPELLS: Earthgrab Totem, Totemic Projection, Bloodlust
-- SUGGESTED TALENTS: 0001011 Astral Shift, Earthgrab Totem, Totemic Projection, Elemental Mastery, Ancestral Guidance, Unleashed Fury, Elemental F... | agpl-3.0 |
Whit3Tig3R/sbss | plugins/setrank.lua | 40 | 8897 | do
local Dev = 122774063 --put your id here(BOT OWNER ID)
local function setrank(msg, name, value) -- setrank function
local hash = nil
if msg.to.type == 'chat' then
hash = 'rank:'..msg.to.id..':variables'
end
if hash then
redis:hset(hash, name, value)
return send_msg('chat#id'..msg.to.id, 'مقام کاربر... | gpl-2.0 |
VoxelDavid/frostfall | src/App/NevermoreEngineLoader.lua | 1 | 1892 | --- This scripts loads Nevermore from the server.
-- It also replicates the into ReplicatedStorage for internal usage.
-----------------------
-- UTILITY FUNCTIONS --
-----------------------
local TestService = game:GetService('TestService')
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local... | mit |
adib1380/iranian_bot | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile... | gpl-2.0 |
ArmanIr/Telegrambotarman | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile... | gpl-2.0 |
bestofkeeperbot/keeperforyou | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile... | gpl-2.0 |
adib1380/iranian_bot | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
dymx101/skynet | service/cmaster.lua | 78 | 3256 | local skynet = require "skynet"
local socket = require "socket"
--[[
master manage data :
1. all the slaves address : id -> ipaddr:port
2. all the global names : name -> address
master hold connections from slaves .
protocol slave->master :
package size 1 byte
type 1 byte :
'H' : HANDSHAKE, report slav... | mit |
kebo/skynet | service/cmaster.lua | 78 | 3256 | local skynet = require "skynet"
local socket = require "socket"
--[[
master manage data :
1. all the slaves address : id -> ipaddr:port
2. all the global names : name -> address
master hold connections from slaves .
protocol slave->master :
package size 1 byte
type 1 byte :
'H' : HANDSHAKE, report slav... | mit |
tederis/mta-resources | wbo_flowtest_cr/utils/textlib.lua | 1 | 8911 | dxText = {}
dxText_mt = { __index = dxText }
local idAssign,idPrefix = 0,"c"
local g_screenX,g_screenY = guiGetScreenSize()
local visibleText = {}
------
defaults = {
fX = 0.5,
fY = 0.5,
bRelativePosition = true,
strText = "",
bVerticalAlign = "center",
bHorizontalAlign = "c... | gpl-3.0 |
kmul00/nn | hessian.lua | 8 | 16620 | ----------------------------------------------------------------------
-- hessian.lua: this file appends extra methods to modules in nn,
-- to estimate diagonal elements of the Hessian. This is useful
-- to condition learning rates individually.
----------------------------------------------------------------------
nn.... | bsd-3-clause |
Alqohol/GoS | AlqoholicLeeSin/AlqoholicLeeSin.lua | 1 | 14750 | class "AlqoholicLeeSin"
require("DamageLib")
local _inventoryTable = {}
local _wardItems = {}
local _updateTime = 0
function AlqoholicLeeSin:__init()
if myHero.charName ~= "LeeSin" then return end
self:LoadSpells()
self:LoadMenu()
Callback.Add("Tick", function() self:Tick() end)
Callback.Add("Draw", function() ... | gpl-3.0 |
sjznxd/lc-20130112 | applications/luci-statistics/luasrc/statistics/rrdtool.lua | 69 | 15320 | --[[
Luci statistics - rrdtool interface library / diagram model interpreter
(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
... | apache-2.0 |
teleoktan/teleoktan | libs/feedparser.lua | 31 | 12090 | local LOM = assert(require("lxp.lom"), "LuaExpat doesn't seem to be installed. feedparser kind of needs it to work...")
local XMLElement = (loadfile "./libs/XMLElement.lua")()
local dateparser = (loadfile "./libs/dateparser.lua")()
local URL = (loadfile "./libs/url.lua")()
local tinsert, tremove, tconcat = table.insert... | gpl-3.0 |
churay/dmtg | tmpl/tts-global.lua | 1 | 4218 | --[[ global functions ]]--
local mtgfxns = {}
-- utility functions --
function mtgfxns.randomshuffle(list)
local slist = {}
for _, val in ipairs(list) do
table.insert(slist, val)
end
for validx = 1, #list do
local lastidx = #list - validx + 1
local randidx = math.random(lastidx)
slist[randi... | gpl-3.0 |
sjznxd/lc-20130112 | modules/admin-full/luasrc/model/cbi/admin_network/routes.lua | 86 | 2540 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
req... | apache-2.0 |
mattfili/records | redis-3.0.4/deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | mit |
HenrytheSlav/OpenRA | mods/ra/maps/fort-lonestar/fort-lonestar-AI.lua | 8 | 4530 |
AIPlayers = { }
AIBarracks = { }
AIDerricks = { }
AIBaseLocation = { }
IdlingAIActors = { }
IdlingAISupportActors = { }
AIOnDefense = { }
-- It's good to start with 10 rifle man, one medic and 5 rocket soldiers
InitialUnitsToBuild = { "e1", "e1", "e1", "e1", "e1", "medi", "e1", "e1", "e1", "e1", "e1", "e3", "e3", "e3... | gpl-3.0 |
nabeelomer/Guacamole | tests/lua-tests/pm.lua | 1 | 11980 | -- $Id: pm.lua,v 1.47 2016/04/22 16:37:09 roberto Exp roberto $
-- See Copyright Notice in file all.lua
print('testing pattern matching')
local function checkerror (msg, f, ...)
local s, err = pcall(f, ...)
assert(not s and string.find(err, msg))
end
function f(s, p)
local i,e = string.find(s, p)
if i then ... | gpl-3.0 |
tltneon/nutscript_plugins | plugins/bankrobbery/items/sh_drill.lua | 2 | 1364 | ITEM.name = "Walmart Drill"
ITEM.uniqueID = "wdrill"
ITEM.model = Model("models/props_lab/tpplug.mdl")
ITEM.desc = "Slow... Almost seemingly useless.. Where the fuck did we get this piece of shit?!"
ITEM.drillspeed = 360
ITEM.functions = {}
ITEM.functions.Place = {
alias = "Place Drill",
icon = "icon16/tag_blue_edit... | gpl-2.0 |
liliangshuai/skynet | lualib/skynet.lua | 1 | 15471 | local c = require "skynet.core"
local tostring = tostring
local tonumber = tonumber
local coroutine = coroutine
local assert = assert
local pairs = pairs
local pcall = pcall
local profile = require "profile"
coroutine.resume = profile.resume
coroutine.yield = profile.yield
local proto = {}
local skynet = {
-- read ... | mit |
HeavenIsLost/elysium | data/creaturescripts/scripts/playerdeath.lua | 32 | 3253 | local deathListEnabled = true
local maxDeathRecords = 5
function onDeath(player, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified)
local playerId = player:getId()
if nextUseStaminaTime[playerId] ~= nil then
nextUseStaminaTime[playerId] = nil
end
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, ... | gpl-2.0 |
HeavenIsLost/elysium | data/npc/scripts/The Oracle.lua | 21 | 3593 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local vocation = {}
local town = {}
local destination = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) ... | gpl-2.0 |
LuaDist2/dromozoa-commons | dromozoa/commons/dumper_writer.lua | 2 | 4506 | -- Copyright (C) 2017 Tomoyuki Fujimori <moyu@dromozoa.com>
--
-- This file is part of dromozoa-commons.
--
-- dromozoa-commons 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... | gpl-3.0 |
jinks/twinkle | command.lua | 2 | 4396 | local error = error
local table = table
local type = type
local select = select
local pcall = pcall
local unpack = unpack
local assert = assert
local setmetatable = setmetatable
local setfenv = setfenv
local ipairs = ipairs
local format = string.format
module "ircbot"
local bot = _META
local argHandlers = {
string ... | mit |
jeary/sailor | src/web_utils/lp.lua | 10 | 5103 | ----------------------------------------------------------------------------
-- Lua Pages Template Preprocessor.
--
-- @release $Id: lp.lua,v 1.15 2008/12/11 17:40:24 mascarenhas Exp $
----------------------------------------------------------------------------
local assert, error, loadstring = assert, error, loadstri... | mit |
LuaDist2/dromozoa-commons | dromozoa/commons/xml.lua | 3 | 1352 | -- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com>
--
-- This file is part of dromozoa-commons.
--
-- dromozoa-commons 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... | gpl-3.0 |
Nether-Machine/NetherMachine | system/injector/os.lua | 1 | 5799 | -- lua functions (call it from lua addon, or type in chat or macro/console. example: "/run olog()", "/run ohelp()")
-- oexecute(some lua protected code) - wrapper function for protected lua functions
-- UnitWorldClick(unit) - "click" aoe-spell to unit location (like warlock's rain of fire or monk's healing sphere)
-... | agpl-3.0 |
chronolaw/openresty_dev | service/backend/cosocket.lua | 2 | 2343 | -- Copyright (C) 2018 by chrono
-- curl 127.1:81/cosocket
-- curl 127.1:81/cosocket -d "12|34|"
local function msgpack_uint_helper(c)
local tags = {
[0xcc] = 1,
[0xcd] = 2,
[0xce] = 4,
}
local x = string.byte(c)
if x <= 0x7f then
return 0
else
return ta... | bsd-2-clause |
sjznxd/lc-20130112 | libs/web/luasrc/i18n.lua | 77 | 3182 | --[[
LuCI - Internationalisation
Description:
A very minimalistic but yet effective internationalisation module
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You ... | apache-2.0 |
Megaf/more_chests | dropbox.lua | 1 | 3749 | local function has_locked_chest_privilege(meta, player)
if player:get_player_name() ~= meta:get_string("owner") then
return false
end
return true
end
minetest.register_node("more_chests:dropbox", {
description = "Dropbox",
tiles = {"dropbox_top.png", "dropbox_top.png", "dropbox_side.png",
"dropbox_side.png", ... | gpl-2.0 |
tederis/mta-resources | wbo_12/wire/wbo_se_wire.lua | 1 | 8370 | --Events
addEvent ( "onDestroyWBOWire", true )
addEvent ( "onCreateWBOWire", true )
addEvent ( "onButton", true )
------------------------
-- Custom data
------------------------
customData = {
items = { }
}
function customData.setElementData ( element, key, value )
if not customData.items [ element ] then
custo... | gpl-3.0 |
xboi209/pvpgn | lua/quiz/quiz.lua | 5 | 7875 | --[[
Copyright (C) 2014 HarpyWar (harpywar@gmail.com)
This file is a part of the PvPGN Project http://pvpgn.pro
Licensed under the same terms as Lua itself.
]]--
quiz = {} -- object
q_dictionary = {} -- dictionary word=question
q_records_current = { } -- table with current player records
q_records_total = {} -- ... | gpl-2.0 |
bestofkeeperbot/keeperforyou | plugins/rss.lua | 700 | 5434 | local function get_base_redis(id, option, extra)
local ex = ''
if option ~= nil then
ex = ex .. ':' .. option
if extra ~= nil then
ex = ex .. ':' .. extra
end
end
return 'rss:' .. id .. ex
end
local function prot_url(url)
local url, h = string.gsub(url, "http://", "")
local... | gpl-2.0 |
tltneon/nutscript_plugins | plugins/machine/sh_plugin.lua | 2 | 2821 | PLUGIN.name = "Productive Machines"
PLUGIN.author = "Black Tea (NS 1.0), Neon (NS 1.1)"
PLUGIN.desc = "If your server does not have proper economy? install this!"
PLUGIN.generateJunks = true
function PLUGIN:LoadData()
local restored = self:getData()
if (restored) then
for k, v in pairs(restored) do
local positi... | gpl-2.0 |
PotcFdk/AntEater | lua/entities/sent_cleanup_entity_dissolver/init.lua | 1 | 3042 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include('shared.lua')
local Tag="sent_cleanup_entity_dissolver"
-- Used Variables:
-- - ENT.Active
-- - ENT.TargetPlayer
-- - ENT.TargetEntity
function ENT:SetTargetPlayer(ply)
assert(IsValid(ply), "Invalid target player specified!")
self.TargetPlayer = ply
en... | apache-2.0 |
guijun/MCServer | MCServer/Plugins/NetworkTest/NetworkTest.lua | 13 | 15743 |
-- NetworkTest.lua
-- Implements a few tests for the cNetwork API
--- Map of all servers currently open
-- g_Servers[PortNum] = cServerHandle
local g_Servers = {}
--- Map of all UDP endpoints currently open
-- g_UDPEndpoints[PortNum] = cUDPEndpoint
local g_UDPEndpoints = {}
--- List of fortune messages for the... | apache-2.0 |
Nether-Machine/NetherMachine | external/DiesalMenu-1.0/Objects/Menu.lua | 2 | 4846 | -- $Id: Menu.lua 52 2014-04-08 11:52:40Z diesal@reece-tech.com $
local DiesalMenu = LibStub('DiesalMenu-1.0')
-- ~~| Libraries |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
local DiesalGUI = LibStub('DiesalGUI-1.0')
local DiesalTool... | agpl-3.0 |
marqueza/syzygy | core/systems/systems.lua | 1 | 3103 | local lovetoys = require "lib.lovetoys.lovetoys"
local filer = require "data.filer"
if not lovetoys.initialized then lovetoys.initialize({
globals = false,
debug = true
})
end
local systems = {}
local _stackIndex = 0
local _entityStack = {}
function systems.init()
systems.engine = lovetoys.Engine()
fi... | gpl-3.0 |
sogandmusic/sogbot1 | 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 |
suppayami/shoot-la-shoot | data/scripts/class/player.lua | 1 | 4526 | Player = class(Character)
Player.characterUpdate = Player.super.update
Player.characterShootCondition = Player.super.shootCondition
Player.characterUpdateCollide = Player.super.updateCollide
Player.characterInitParams = Player.super.initParams
function Player:initParams()
Player:characterInitParams()
... | mit |
jmackellar/Touhoulike | lib/rotLove/rot/scheduler.lua | 2 | 1849 | --- The Scheduler Prototype
-- @module ROT.Scheduler
local ROT = require((...):gsub(('.[^./\\]*'):rep(1) .. '$', ''))
local Scheduler = ROT.Class:extend("Scheduler")
function Scheduler:init()
self._queue=ROT.EventQueue:new()
self._repeat ={}
self._current=nil
end
--- Get Time.
-- Get time counted since st... | gpl-3.0 |
mero97/Hp_II303II | plugins/setwelcome.lua | 20 | 1696 |
local function run(msg, matches, callback, extra)
local data = load_data(_config.moderation.data)
local group_welcome = data[tostring(msg.to.id)]['group_welcome']
-------------------------- Data Will be save on Moderetion.json
if matches[1] == 'حذف الترحيب' and not matches[2] and is_owner(msg) then
dat... | gpl-2.0 |
Nether-Machine/NetherMachine | system/conditions/states.lua | 1 | 7054 | local LibDispellable = LibStub("LibDispellable-1.0")
NetherMachine.states = { }
NetherMachine.states.status = {}
NetherMachine.states.status.charm = {
"^charmed"
}
NetherMachine.states.status.disarm = {
"disarmed"
}
NetherMachine.states.status.disorient = {
"^disoriented"
}
NetherMachine.states.status.dot ... | agpl-3.0 |
renyidong/milkywayathome_client | mwtao/tests/stripe82_two_stream.lua | 4 | 2216 |
wedge = 82
start = {
background = {
q = 0.456,
r0 = 19.530
},
streams = {
{
epsilon = -0.828,
mu = 31.361,
r = 29.228,
theta = 1.696,
phi = 0.044,
sigma = 2.854
},
{
epsilon = -1.528,
mu ... | gpl-3.0 |
devsaurus/nodemcu-firmware | lua_modules/http/http-example.lua | 1 | 1383 | ------------------------------------------------------------------------------
-- HTTP server Hello world example
--
-- LICENCE: http://opensource.org/licenses/MIT
-- Vladimir Dronnikov <dronnikov@gmail.com>
------------------------------------------------------------------------------
require("httpserver").createServe... | mit |
sorakun/Ai-Game-Engine | libs/loveframes/objects/progressbar.lua | 7 | 8120 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- progressbar object
local newobject = loveframes.NewObject("progressbar", "loveframes_object_progressbar", true)
--[[----... | bsd-2-clause |
Nether-Machine/NetherMachine | external/DiesalGUI-1.0/Objects/Input.lua | 6 | 4337 | -- $Id: Spinner.lua 49 2014-03-24 08:29:17Z diesal@reece-tech.com $
local DiesalGUI = LibStub("DiesalGUI-1.0")
-- ~~| Libraries |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
local DiesalTools = LibStub("DiesalTools-1.0")
l... | agpl-3.0 |
me2beats/reapack | Items/me2beats_Split items with given length_2 (without input box).lua | 1 | 1634 | -- @description Split items with given length_2 (without input box)
-- @version 1.0
-- @author me2beats
-- @changelog
-- + init
wanted_len, silence = 100,50
local r = reaper; local function nothing() end; local function bla() r.defer(nothing) end;
function split_2(old_item,item)
r.SetMediaItemSelected(old_item,0)... | gpl-3.0 |
coder-han/hugula | Client/Assets/Lua/main.lua | 2 | 5538 | ------------------------------------------------
-- Copyright © 2013-2014 Hugula: Arpg game Engine
--
-- author pu
------------------------------------------------
-- require("core.unity3d")
require("core.loader")
json=require("lib/json")
ResVersion = 0
luanet = _G
toluacs = _G
local resourceURL ="http://192.168... | mit |
djkamran021/antispambot | plugins/admin.lua | 230 | 6382 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(rec... | gpl-2.0 |
zaafar/bcc | examples/lua/task_switch.lua | 3 | 1398 | #!/usr/bin/env bcc-lua
--[[
Copyright 2016 GitHub, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.