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 |
|---|---|---|---|---|---|
nasomi/darkstar | scripts/globals/items/pot_of_royal_tea.lua | 35 | 1204 | -----------------------------------------
-- ID: 4524
-- Item: pot_of_royal_tea
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Vitality -1
-- Charisma 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
--... | gpl-3.0 |
nasomi/darkstar | scripts/zones/West_Sarutabaruta/npcs/Cavernous_Maw.lua | 29 | 1519 | -----------------------------------
-- Area: West Sarutabaruta
-- NPC: Cavernous Maw
-- Teleports Players to West Sarutabaruta [S]
-- @pos -2.229 0.001 -162.715 115
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
nicholas-leonard/nn | PixelShuffle.lua | 9 | 4210 | local PixelShuffle, parent = torch.class("nn.PixelShuffle", "nn.Module")
-- Shuffles pixels after upscaling with a ESPCNN model
-- Converts a [batch x channel*r^2 x m x p] tensor to [batch x channel x r*m x r*p]
-- tensor, where r is the upscaling factor.
-- @param upscaleFactor - the upscaling factor to use
function ... | bsd-3-clause |
Etehadmarg/margbot | plugins/img_google.lua | 660 | 3196 | do
local mime = require("mime")
local google_config = load_from_file('data/google.lua')
local cache = {}
--[[
local function send_request(url)
local t = {}
local options = {
url = url,
sink = ltn12.sink.table(t),
method = "GET"
}
local a, code, headers, status = http.request(options)
return tabl... | gpl-2.0 |
shangjiyu/luci-with-extra | modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/fstab.lua | 2 | 8233 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.tools.webadmin")
local fs = require "nixio.fs"
local util = require "nixio.util"
local tp = require "luci.template.parser"
local block = io.popen("block info", "r")
local ln, dev, devices = n... | apache-2.0 |
nasomi/darkstar | scripts/globals/items/melon_pie_+1.lua | 35 | 1368 | -----------------------------------------
-- ID: 4523
-- Item: melon_pie_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Magic 30
-- Intelligence 5
-- Magic Regen While Healing 2
-----------------------------------------
require("scripts/globals/status");
-----------------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Quicksand_Caves/TextIDs.lua | 9 | 1486 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6384; -- Obtained: <item>
GIL_OBTAINED = 6385; -- Obtained <number> gil
KEYITEM_OBTAINED = 6387; -- Obtain... | gpl-3.0 |
nasomi/darkstar | scripts/globals/effects/sublimation_activated.lua | 18 | 2071 | -----------------------------------
--
--
--
-----------------------------------
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
end;
-----------------------------------
-- onEffectTick Action
-------------------------... | gpl-3.0 |
amirik22/i4bot | 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 |
nasomi/darkstar | scripts/zones/Quicksand_Caves/npcs/_5s3.lua | 17 | 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_Cav... | gpl-3.0 |
dani-sj/abbasdani | plugins/time.lua | 771 | 2865 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
m13790115/eset | plugins/time.lua | 771 | 2865 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
EnjoyHacking/nn | SpatialDivisiveNormalization.lua | 39 | 5171 | local SpatialDivisiveNormalization, parent = torch.class('nn.SpatialDivisiveNormalization','nn.Module')
function SpatialDivisiveNormalization:__init(nInputPlane, kernel, threshold, thresval)
parent.__init(self)
-- get args
self.nInputPlane = nInputPlane or 1
self.kernel = kernel or torch.Tensor(9,9):fill(... | bsd-3-clause |
caricatura/Healbot | HealBot/HealBot_Text.lua | 1 | 41729 | local hbBarTextLen={[1]=50,[2]=50,[3]=50,[4]=50,[5]=50,[6]=50,[7]=50,[8]=50,[9]=50,[10]=50}
local hbBarHealthTextLen={[1]=50,[2]=50,[3]=50,[4]=50,[5]=50,[6]=50,[7]=50,[8]=50,[9]=50,[10]=50}
local hbFontVal={ ["Accidental Presidency"]=3,
["Alba Super"]=1.4,
["Anime Ace"]=1,
... | gpl-2.0 |
ids1024/naev | dat/factions/equip/empire.lua | 13 | 5297 | -- Generic equipping routines, helper functions and outfit definitions.
include("dat/factions/equip/generic.lua")
--[[
-- @brief Does empire pilot equipping
--
-- @param p Pilot to equip
--]]
function equip( p )
-- Start with an empty ship
p:rmOutfit("all")
p:rmOutfit("cores")
-- Get ship info
local... | gpl-3.0 |
uvbs/Test1 | vendor/lua/src/premake.lua | 38 | 6155 | ----------------------------------------------------
-- The main porpouse of this file is to build linux gcc makefiles.
-- Must have Premake version 3 installed.
-- Original Premake was changed to remove some parameters and add others.
-- Default parameters:
-- premake3s --target gnu --os linux
-- But it can build wi... | gpl-3.0 |
zaphodthegrate/geocache | objects/generic/geocachecommon/geocachecommon.lua | 1 | 2015 |
function init(args)
entity.setInteractive(true);
if not storage.geocache then
--[[local loadedData = entity.configParameter("geocache");
if loadedData then
storage.geocache = loadedData;
entity.setAnimationState("geocacheState", "inactive");
else
entity.setAnimationState("geocacheState", "inactive"... | gpl-2.0 |
KlonZK/Zero-K | units/bomberassault.lua | 4 | 5875 | unitDef = {
unitname = [[bomberassault]],
name = [[Eclipse]],
description = [[Assault Bomber (Anti-Static)]],
amphibious = true,
--autoheal = 25,
buildCostEnergy = 1000,
buildCostMetal = 1000,
builder = false,
buildPic = [[... | gpl-2.0 |
BlurryRoots/lua-range | init.lua | 2 | 1566 | local NUMBER_EPSILON = 0.00000000000001
-- create a table with values :from until :to
local function number_range (from, to, step)
local t = {}
for value = from, to, step do
t[#t + 1] = value
end
return t
end
-- create a table with values char of :from to char of :to
local function string_range (from, to, ste... | mit |
annulen/premake-dev-rgeary | tests/actions/make/cpp/test_make_pch.lua | 1 | 2578 | --
-- tests/actions/make/cpp/test_make_pch.lua
-- Validate the setup for precompiled headers in makefiles.
-- Copyright (c) 2010-2012 Jason Perkins and the Premake project
--
T.make_pch = { }
local suite = T.make_pch
local cpp = premake.make.cpp
local project = premake5.project
--
-- Setup and teardown
--
l... | bsd-3-clause |
EvolSknaht/cqui | Integrations/BTS/UI/tradeoverview.lua | 3 | 86820 | -- ===========================================================================
-- SETTINGS
-- ===========================================================================
local alignTradeYields = true
local showNoBenefitsString = false
local showSortOrdersPermanently = false
local hideTradingPostIcon = false
-- Color... | mit |
KlonZK/Zero-K | scripts/slowmort.lua | 8 | 6437 | local support = piece 'support'
local flare = piece 'flare'
local thigh1 = piece 'thigh1'
local thigh2 = piece 'thigh2'
local torso = piece 'torso'
local barrel = piece 'barrel'
local foot2 = piece 'foot2'
local foot1 = piece 'foot1'
local leg2 = piece 'leg2'
local leg1 = piece 'leg1'
include "constants.lua"... | gpl-2.0 |
KlonZK/Zero-K | units/corcom1.lua | 2 | 7588 | unitDef = {
unitname = [[corcom1]],
name = [[Battle Commander]],
description = [[Heavy Combat Commander, Builds at 10 m/s]],
acceleration = 0.18,
activateWhenBuilt = true,
amphibious = [[1]],
autoHeal = 5,
brakeRate = 0.375,
buil... | gpl-2.0 |
annulen/premake | tests/actions/vstudio/sln2005/test_platforms.lua | 1 | 31358 | --
-- tests/actions/vstudio/sln2005/test_platforms.lua
-- Test the Visual Studio 2005-2010 platform mapping blocks.
-- Copyright (c) 2009-2014 Jason Perkins and the Premake project
--
local suite = test.declare("vstudio_sln2005_platforms")
local sln2005 = premake.vstudio.sln2005
--
-- Setup
--
local sln
functi... | bsd-3-clause |
5620j/ss | plugins/anti_spam.lua | 191 | 5291 | --An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id == our_id then
return msg
end
-- Save... | gpl-2.0 |
5620j/ss | plugins/admin.lua | 95 | 10643 | 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 |
zzzaidddddd/zzaiddd | data/plugins/admin.lua | 95 | 10643 | 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 |
KlonZK/Zero-K | LuaUI/Widgets/snd_text_to_speech.lua | 6 | 1510 |
function widget:GetInfo()
return {
name = "Text To Speech Control",
desc = "Enables or disables text to speech through Zero-K lobby",
author = "Licho",
date = "10.6.2011",
license = "GNU GPL, v2 or later",
layer = math.huge,
enabled = true, -- loaded by default?
alwaysStart = true
}
end
----... | gpl-2.0 |
ids1024/naev | dat/factions/equip/helper.lua | 7 | 7966 |
--[[
-- @brief Handles the ship class by splitting it up into type/size.
--
-- Valid types are:
-- - civilian
-- - merchant
-- - military
-- - robotic
--
-- Valid sizes are:
-- - small
-- - medium
-- - large
--
-- @return Two parameters, first would be type, second would be size.
--]]
function equip_getShip... | gpl-3.0 |
KlonZK/Zero-K | units/chicken_digger_b.lua | 4 | 4894 | unitDef = {
unitname = [[chicken_digger_b]],
name = [[Digger (burrowed)]],
description = [[Burrowing Scout/Raider]],
acceleration = 0.26,
activateWhenBuilt = false,
brakeRate = 0.205,
buildCostEnergy = 0,
buildCostMetal = 0,
builder ... | gpl-2.0 |
fredericjoanis/actimania | extern/lua/base/path.lua | 12 | 6848 | --
-- path.lua
-- Path manipulation functions.
-- Copyright (c) 2002-2010 Jason Perkins and the Premake project
--
--
-- Get the absolute file path from a relative path. The requested
-- file path doesn't actually need to exist.
--
function path.getabsolute(p)
-- normalize the target path
p = path.translate(p,... | mit |
emadni/uzzbot | 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 |
hacker44-h44/original | 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 |
lawnight/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 |
GuilledelaCruz/L-VE | MouseMovement/main.lua | 2 | 1228 | player = {x = 0, y = 0, speed = 100}
positionClicked = {x = 0, y = 0, px = 0, py = 0, alpha = 0}
function love.load(arg)
player.x = love.graphics:getWidth() / 2
player.y = love.graphics:getHeight() / 2
positionClicked.x = love.graphics:getWidth() / 2
positionClicked.y = love.graphics:getHeight() / 2
end
function ... | gpl-2.0 |
WeTransfer/prorate | lib/prorate/rate_limit.lua | 1 | 2845 | -- Single threaded Leaky Bucket implementation.
-- args: key_base, leak_rate, max_bucket_capacity, block_duration, n_tokens
-- returns: an array of two integers, the first of which indicates the remaining block time.
-- if the block time is nonzero, the second integer is always zero. If the block time is zero,
-- the s... | mit |
KlonZK/Zero-K | effects/gundam_beamimpact.lua | 26 | 2553 | -- beamimpact
return {
["beamimpact"] = {
groundflash = {
air = true,
alwaysvisible = true,
circlealpha = 0.2,
circlegrowth = 4,
flashalpha = 0.5,
flashsize = 110,
ground = true,
ttl = 10,... | gpl-2.0 |
KlonZK/Zero-K | LuaUI/Widgets/dbg_ceg_spawner.lua | 6 | 3061 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "CEG Spawner",
desc = "v0.031 Spawn CEGs",
author = "CarRepairer",
date = "2010... | gpl-2.0 |
sunyi00/codis | extern/redis-2.8.21/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 |
ids1024/naev | dat/missions/neutral/kidnapped/traffic_01.lua | 1 | 11566 | --[[
The Ruse
A girl asks you to find his brother but it turns out it is her assassination target.
Creates a ship in one out of 3 listed systems. The system and planet the brother is is chosen randomly.
spawns some mercenaries that were supposed to protect the brother to intercept the player.
Why is it... | gpl-3.0 |
nodepond/LuaCrumbs | luacrumbs/coreformats/Pde.lua | 1 | 9434 | -----------------------------------------------------------------------------
-- LuaCrumbs - pde (Processing) core implementation
-- http://luacrumbs.nodepond.com
--
-- License: MIT/X
--
-- (c) 2012 Nodepond.com / Martin Wisniowski (hello@nodepond.com)
--
-- Work started on this file on 11. June 2012 / THIS IS EXPERIM... | mit |
complynx/nodemcu-IoT | lua_examples/email/read_email_imap.lua | 82 | 4543 | ---
-- Working Example: https://www.youtube.com/watch?v=PDxTR_KJLhc
-- @author Miguel (AllAboutEE.com)
-- @description This example will read the first email in your inbox using IMAP and
-- display it through serial. The email server must provided unecrypted access. The code
-- was tested with an AOL and Time Warner c... | mit |
PProvost/YorsahjHelper | YorsahjHelper.lua | 1 | 4745 | --::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::--
-- Title YorsahjHelper
-- Description A simple addon to help your raid manage Yorsahj kill orders
-- Author Quaiche of Dragonblight
-- Credits Spell IDs from Yorsahj Automatic Raidwarnings by Tom and Gints
-- Li... | mit |
Black-Nine/anti-spbot | plugins/plugins.lua | 35 | 5971 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
tunneff/tef | deps/LuaJIT-2.0.4/dynasm/dasm_mips.lua | 120 | 28080 | ------------------------------------------------------------------------------
-- DynASM MIPS module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _i... | lgpl-3.0 |
annulen/premake | src/base/path.lua | 1 | 4664 | --
-- path.lua
-- Path manipulation functions.
-- Copyright (c) 2002-2014 Jason Perkins and the Premake project
--
--
-- Appends a file extension to the path. Verifies that the extension
-- isn't already present, and adjusts quotes as necessary.
--
function path.appendExtension(p, ext)
-- if the extension is nil ... | bsd-3-clause |
byanahmed/emeebot | libs/serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
lo... | gpl-2.0 |
5620j/ss | libs/serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
lo... | gpl-2.0 |
KlonZK/Zero-K | Objects3d/pw_techlab.lua | 14 | 2513 | pw_techlab = {
pieces = {
base = {
wheel1 = {offset = {0, 24.778, -51.046},},
wheel2 = {offset = {0, 24.778, 51.046},},
slider = {
sliderturret = {},
},
armabase = {
offset = {47.316, 32.656, 30.519},
arma = {
offset = {-8.605, 29.659, 0},
armapick = {
offset = {-26.401, 4.... | gpl-2.0 |
KlonZK/Zero-K | LuaUI/Widgets/unit_blobshadow.lua | 8 | 6008 | -- $Id: unit_blobshadow.lua 3171 2008-11-06 09:06:29Z det $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- author: jK
--
-- Copyright (C) 2007,2009.
-- Licensed under the terms of the GNU GPL, v2... | gpl-2.0 |
aj-kip/generic-runner | editor/Line.lua | 1 | 17015 | -- ----------------------------------------------------------------------------
--
-- Generic Runner Game Copyright (C) 2017 Andrew Janke
--
-- 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, ... | gpl-3.0 |
tunneff/tef | app/mod/debugger.lua | 1 | 128287 | -------------------------------------------------------------------------------
-- Copyright (c) 2011-2012 Sierra Wireless and others.
-- All rights reserved. This program and the accompanying materials
-- are made available under the terms of the Eclipse Public License v1.0
-- which accompanies this distribution, and ... | lgpl-3.0 |
ids1024/naev | dat/missions/sirius/achack/achack04.lua | 1 | 16448 | --[[
-- This is the fourth mission in the Academy Hack minor campaign.
-- This mission is started from a helper event.
--]]
include "fleethelper.lua"
include "proximity.lua"
include "enum.lua"
-- localization stuff, translators would work here
lang = naev.lang()
if lang == "es" then
else -- default english
title1... | gpl-3.0 |
complynx/nodemcu-IoT | lua_examples/email/send_email_smtp.lua | 82 | 4640 | ---
-- Working Example: https://www.youtube.com/watch?v=CcRbFIJ8aeU
-- @description a basic SMTP email example. You must use an account which can provide unencrypted authenticated access.
-- This example was tested with an AOL and Time Warner email accounts. GMail does not offer unecrypted authenticated access.
-- To o... | mit |
KlonZK/Zero-K | LuaUI/Widgets/chili_new/skins/DarkHive/skin.lua | 25 | 4262 | --//=============================================================================
--// Skin
local skin = {
info = {
name = "DarkHive",
version = "0.1",
author = "luckywaldo7",
}
}
--//=============================================================================
--//
skin.general = {
--font ... | gpl-2.0 |
XxMTxX/XxMTxX | plugins/getlink.lua | 3 | 27259 | 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)] = {
moderators = {},
set_owner = membe... | gpl-2.0 |
jkeywo/KFactorioMods | k-nineworlds_0.0.0/worlds/worlds-data.lua | 1 | 1642 | local autoplace_utils = require("autoplace_utils")
function world_autoplace_settings(world, noise_layer, rectangles)
local ret =
{
{
influence = 0.1,
noise_layer = noise_layer,
noise_persistence = 0.7,
octaves_difference = -1
}
}
autoplace_utils.peaks(rectangles, ret)
return... | mit |
annulen/premake-dev-rgeary | tests/actions/vstudio/vc200x/test_files.lua | 1 | 5635 | --
-- tests/actions/vstudio/vc200x/test_files.lua
-- Validate generation of <files/> block in Visual Studio 200x projects.
-- Copyright (c) 2009-2012 Jason Perkins and the Premake project
--
T.vstudio_vs200x_files = { }
local suite = T.vstudio_vs200x_files
local vc200x = premake.vstudio.vc200x
--
-- S... | bsd-3-clause |
rockneurotiko/telegram-bot | plugins/wiki.lua | 5 | 4363 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
KlonZK/Zero-K | LuaRules/Gadgets/91_unit_teleporter.lua | 4 | 24971 |
function gadget:GetInfo()
return {
name = "Teleporter_91",
desc = "Implements mass teleporter",
author = "Google Frog",
date = "29 Feb 2012",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = (Game.version:find('91.0') == 1) -- loaded by default?
}
end
... | gpl-2.0 |
byanahmed/emeebot | libs/lua-redis.lua | 580 | 35599 | local redis = {
_VERSION = 'redis-lua 2.0.4',
_DESCRIPTION = 'A Lua client library for the redis key value storage system.',
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri',
}
-- The following line is used for backwards compatibility in order to keep the `Redis`
-- global module name. Using... | gpl-2.0 |
RezaBlack/RezaTest05 | 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 |
morynicz/pyroshark | test/lua/tvb.lua | 32 | 30608 | ----------------------------------------
-- script-name: tvb.lua
-- This tests the Tvb/TvbRange and proto_add_XXX_item API.
----------------------------------------
------------- general test helper funcs ------------
local FRAME = "frame"
local OTHER = "other"
local total_tests = 0
local function getTotal()
retu... | gpl-2.0 |
pixeldoc2000/chdk | CHDK/SCRIPTS/TEST/romlog.lua | 5 | 1525 | --[[
@title save ROM crash log to ROMLOG.LOG
requires CHDK built with native function call support
@param a remove old files 1=yes, 0=no
@default a 1
--]]
LOG_NAME="A/ROMLOG.LOG"
ERR_NAME="A/RomLogErr.txt"
function printf(...)
print(string.format(...))
end
if (type(call_event_proc) ~= "function") then
error(... | gpl-2.0 |
fredericjoanis/actimania | extern/premake/base/validate.lua | 70 | 2531 | --
-- validate.lua
-- Tests to validate the run-time environment before starting the action.
-- Copyright (c) 2002-2009 Jason Perkins and the Premake project
--
--
-- Performs a sanity check of all of the solutions and projects
-- in the session to be sure they meet some minimum requirements.
--
function premake.c... | mit |
aedansilver/wowlikearcemuold | src/scripts/lua/Lua/Stable Scripts/Outland/Arcatraz/BOSS_Arcatraz_Skyriss.lua | 30 | 1246 | function Skyriss_Red(Unit, event, miscunit, misc)
print "Skyriss_Red"
Unit:FullCastSpellOnTarget(14264,Unit:GetClosestPlayer())
Unit:SendChatMessage(11, 0, "Kill...")
end
function Skyriss_Blue(Unit, event, miscunit, misc)
print "Skyriss Blue"
Unit:FullCastSpellOnTarget(14261,Unit:GetClosestPlayer())
Unit:SendCha... | agpl-3.0 |
aedansilver/wowlikearcemuold | src/scripts/lua/LuaBridge/Stable Scripts/Azeroth/Karazhan/BOSS_Karazhan_Dorothee.lua | 30 | 1308 | -- TODO:Timer (3 seconds before goes into combat) ,enrage when tito is killed,check video when tito is summoned.
function Dorothee_Water_Bolt(Unit, event, miscunit, misc)
Unit:ClearThreatList()
Unit:FullCastSpellOnTarget(31012,Unit:GetRandomPlayer())
end
function Dorothee_Summon_Tito(Unit, event, miscunit, misc)
pr... | agpl-3.0 |
amireh/rgx | dialects/PCRE/bin/rgx-PCRE.lua | 1 | 2614 | #!/usr/bin/env lua
------------------
--
-- This file is part of rgx.
--
-- rgx is free software: you can redistribute it and/or modify
-- it under the terms of the GNU Affero General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later versi... | agpl-3.0 |
Wiladams/REMOTE | testy/reactorapp1.lua | 2 | 1917 | #!/usr/bin/env luajit
package.path = package.path..";../?.lua"
--[[
Test using the GuiReactor concept, whereby the interactor
is a pluggable component, which generates events.
--]]
local gap = require("GuiReactor")
local colors = require("colors")
local bmp = require("bmpcodec")
local FileStream = require("filestr... | mit |
undegroundflows/dot_six | lua/entities/gmod_subway_81-714.6/init.lua | 1 | 20743 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
ENT.BogeyDistance = 650 -- Needed for gm trainspawner
---------------------------------------------------
-- Defined train information
-- Types of wagon(for wagon limit system):
-- 0 = Head or intherim
-- 1 = Only head
-- 2 = Only intherim
... | gpl-2.0 |
ids1024/naev | dat/missions/flf/empa/flf_empa05.lua | 1 | 5108 | --[[
FLF Instability
Copyright (C) 2014-2017 Julie Marchant <onpon4@riseup.net>
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 3 of the License, or
(at your option)... | gpl-3.0 |
alimashmamali/fff | 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 |
KlonZK/Zero-K | LuaUI/Widgets/map_external_grid.lua | 7 | 9297 | --related thread: http://springrts.com/phpbb/viewtopic.php?f=13&t=26732&start=22
function widget:GetInfo()
return {
name = "External VR Grid",
desc = "VR grid around map",
author = "knorke, tweaked by KR",
date = "Sep 2011",
license = "PD",
layer = -3,
enabled = f... | gpl-2.0 |
KlonZK/Zero-K | LuaUI/Widgets/gfx_commands_fx.lua | 6 | 15738 | function widget:GetInfo()
return {
name = "Commands FX",
desc = "Adds glow-pulses wherever commands are queued. Including mapmarks.",
author = "Floris",
date = "14.04.2014",
license = "GNU GPL, v2 or later",
layer = 2,
enabled = true,
}
end
----... | gpl-2.0 |
hfjgjfg/mehdi7614 | plugins/owners.lua | 284 | 12473 |
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)]['setting... | gpl-2.0 |
rockneurotiko/telegram-bot | plugins/boobs.lua | 731 | 1601 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
Kamshak/LibK | lua/libk/3rdparty/glib/servers/playerdisconnectionwatcher.lua | 2 | 1246 | local self = {}
GLib.PlayerDisconnectionWatcher = GLib.MakeConstructor (self)
--[[
Events:
PlayerDisconnected (Player ply, userId)
Fired when a player has disconnected.
]]
function self:ctor ()
self.DisconnectionEvents = {}
GLib.PlayerMonitor:AddEventListener ("PlayerDisconnected", "GLib.PlayerDisconnection... | mit |
taylorking/apigateway | api-gateway-config/scripts/lua/lib/resty/limit/req.lua | 2 | 4950 | -- Copyright (C) 2014 Monkey Zhang (timebug), UPYUN Inc.
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
--
-- Redistributions of source code must retain the above copyright notice,
-- th... | apache-2.0 |
stevenblaster/crapengine | libraries/bullet/Demos3/ImplicitCloth/premake4.lua | 1 | 2023 |
project "App_ImplicitCloth"
language "C++"
kind "ConsoleApp"
targetdir "../../bin"
includedirs {
".",
"../../src",
"../../btgui"
}
initOpenGL()
initGlew()
--links{"gwen"}
files {
"**.cpp",
"**.h",
"../../btgui/OpenGL... | mit |
alimashmamali/fff | plugins/Spammer.lua | 42 | 75166 | local function run(msg)
if msg.text == "[!/]spam" then
return "".. [[
... | gpl-2.0 |
jkeywo/KFactorioMods | k-core_0.1.0/stdlib/event/time.lua | 8 | 3085 | --- Time Event module
-- @module Event.Time
require 'stdlib/event/event'
require 'stdlib/time'
Event.Time = {}
Event.Time._last_change = {}
--All times are offset by 0.5
--This is because both EvoGUI and MoWeather already apply that offset.
--Following the precedent to remain consistent.
--Actually, this little snip... | mit |
jkeywo/KFactorioMods | k-ruins_0.1.1/stdlib/event/time.lua | 8 | 3085 | --- Time Event module
-- @module Event.Time
require 'stdlib/event/event'
require 'stdlib/time'
Event.Time = {}
Event.Time._last_change = {}
--All times are offset by 0.5
--This is because both EvoGUI and MoWeather already apply that offset.
--Following the precedent to remain consistent.
--Actually, this little snip... | mit |
KlonZK/Zero-K | effects/ingeborg.lua | 25 | 15516 | -- ingeborg_2
-- ingeborg_3
-- ingeborg_9
-- ingeborg_7
-- ingeborg_8
-- ingeborg_ani
-- ingeborg_5
-- ingeborg_10
-- ingeborg_6
-- ingeborg
-- ingeborg_1
-- ingeborg_4
return {
["ingeborg_2"] = {
wezels = {
air = true,
class = [[CSimpleParticleSystem]],
count ... | gpl-2.0 |
KlonZK/Zero-K | lups/ParticleClasses/UnitPieceLight.lua | 8 | 10282 | -- $Id: UnitPieceLight.lua 3171 2008-11-06 09:06:29Z det $
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
local UnitPieceLight = {}
UnitPi... | gpl-2.0 |
saadmzed/kenam-bot | libs/fakeredis.lua | 31 | 40538 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-3.0 |
voxelteam/voxel_cli | plugins/stats.lua | 79 | 4014 | 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 |
zcsteele/turbo | examples/static.lua | 12 | 1086 | --- Turbo.lua Static file server example
--
-- 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... | apache-2.0 |
KlonZK/Zero-K | LuaRules/Gadgets/91_lups_cloak_fx.lua | 4 | 10962 | -- $Id: lups_manager.lua 3171 2008-11-06 09:06:29Z det $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- author: jK
--
-- Copyright (C) 2007,2008.
-- Licensed under the terms of the GNU GPL, v2 or... | gpl-2.0 |
aedansilver/wowlikearcemuold | src/scripts/lua/LuaBridge/0Misc/0LCF_Includes/LCF_MapMgr.lua | 13 | 1676 | --[[
* ArcEmu MMORPG Server
* Copyright (C) 2005-2007 Ascent Team <http://www.ascentemu.com/>
* Copyright (C) 2008-2011 <http://www.ArcEmu.org/>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Softwa... | agpl-3.0 |
LuaDist2/heaps | lua/skew_heap.lua | 2 | 4412 | -- Copyright (c) 2008-2011 Incremental IP Limited.
--[[
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, pu... | mit |
KlonZK/Zero-K | scripts/armbrtha.lua | 11 | 1839 | local ground = piece 'ground'
local base = piece 'base'
local flare = piece 'flare'
local muzzle = piece 'muzzle'
local turret = piece 'turret'
local barrel = piece 'barrel'
local barrel_back = piece 'barrel_back'
local sleeve = piece 'sleeve'
include "constants.lua"
include "pieceControl.lua"
local spGetUnit... | gpl-2.0 |
Kamshak/LibK | lua/libk/3rdparty/glib/net/layer5/layer3channel.lua | 2 | 1604 | local self = {}
GLib.Net.Layer5.Layer3Channel = GLib.MakeConstructor (self, GLib.Net.Layer5.Channel)
function GLib.Net.Layer5.Layer3Channel.ctor (channelName, handler, innerChannel)
if type (channelName) ~= "string" then
innerChannel = channelName
channelName = innerChannel:GetName ()
end
innerChannel = inne... | mit |
tim-thompson/love2d-skeleton | lib/sti/plugins/bump.lua | 3 | 5226 | --- Bump.lua plugin for STI
-- @module bump.lua
-- @author David Serrano (BobbyJones|FrenchFryLord)
-- @copyright 2016
-- @license MIT/X11
return {
bump_LICENSE = "MIT/X11",
bump_URL = "https://github.com/karai17/Simple-Tiled-Implementation",
bump_VERSION = "3.1.6.0",
bump_DESCRIPTION ... | mit |
bbbbbhhhhhhh/i4bot | plugins/img_google.lua | 660 | 3196 | do
local mime = require("mime")
local google_config = load_from_file('data/google.lua')
local cache = {}
--[[
local function send_request(url)
local t = {}
local options = {
url = url,
sink = ltn12.sink.table(t),
method = "GET"
}
local a, code, headers, status = http.request(options)
return tabl... | gpl-2.0 |
RezaBlack/RezaTest05 | bot/bot.lua | 1 | 6651 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This function is ... | gpl-2.0 |
jnhwkim/dp | sampler/sampler.lua | 5 | 6432 | ------------------------------------------------------------------------
--[[ Sampler ]]--
-- DataSet iterator
-- Sequentially samples batches from a dataset.
------------------------------------------------------------------------
local Sampler = torch.class("dp.Sampler")
Sampler.isSampler = true
function Sampler:__i... | bsd-3-clause |
bbbbbhhhhhhh/i4bot | 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 |
mbattersby/LiteMount | LM_Spell.lua | 1 | 1211 | --[[----------------------------------------------------------------------------
LiteMount/LM_Spell.lua
A mount summoned directly from a spell with no Mount Journal entry.
Copyright 2011-2021 Mike Battersby
----------------------------------------------------------------------------]]--
local _, LM = ...
--... | gpl-2.0 |
rockneurotiko/telegram-bot | plugins/time.lua | 771 | 2865 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
KlonZK/Zero-K | LuaUI/Widgets/chili/Skins/default/skin.lua | 8 | 17618 | --//=============================================================================
--// default
local skin = {
info = {
name = "default",
version = "0.1",
author = "jK",
}
}
--//=============================================================================
--// Render Helpers
local function _DrawBo... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.