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 |
|---|---|---|---|---|---|
simeneuro/simeneurobot | 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 |
mahdibagheri/aqa-mp3 | 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 |
hexahedronic/basewars | basewars_free/entities/entities/bw_base_generator.lua | 2 | 1628 | AddCSLuaFile()
ENT.Base = "bw_base"
ENT.Type = "anim"
ENT.PrintName = "Base Generator"
ENT.Model = "models/props_wasteland/laundry_washer003.mdl"
ENT.Skin = 0
ENT.IsGenerator = true
ENT.PowerGenerated = 15
ENT.PowerCapacity = 1000
ENT.TransmitRadius = 600
ENT.TransmitRate = 20
function ENT:TransmitPower()
local ... | mit |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/rooms/pit.lua | 1 | 2193 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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) any later ... | gpl-3.0 |
jjimenezg93/ai-behaviours | moai/3rdparty/luasocket-2.0.2/test/testclnt.lua | 50 | 20248 | local socket = require"socket"
host = host or "localhost"
port = port or "8383"
function pass(...)
local s = string.format(unpack(arg))
io.stderr:write(s, "\n")
end
function fail(...)
local s = string.format(unpack(arg))
io.stderr:write("ERROR: ", s, "!\n")
socket.sleep(3)
os.exit()
end
function... | mit |
powernitro/secure | plugins/banhammer.lua | 1 | 38939 | local function pre_process(msg)
if msg.to.type ~= 'pv' then
chat = msg.to.id
user = msg.from.id
local function check_newmember(arg, data)
test = load_data(_config.moderation.data)
lock_bots = test[arg.chat_id]['settings']['lock_bots']
local hash = "gp_lang:"..arg.chat_id
local lang = redis:get(hash)
if data... | gpl-3.0 |
simeneuro/simeneurobot | plugins/rae.lua | 616 | 1312 | do
function getDulcinea( text )
-- Powered by https://github.com/javierhonduco/dulcinea
local api = "http://dulcinea.herokuapp.com/api/?query="
local query_url = api..text
local b, code = http.request(query_url)
if code ~= 200 then
return "Error: HTTP Connection"
end
dulcinea = json:decode(b)
... | gpl-2.0 |
ozhanf/ozhanf---bot | plugins/rae.lua | 616 | 1312 | do
function getDulcinea( text )
-- Powered by https://github.com/javierhonduco/dulcinea
local api = "http://dulcinea.herokuapp.com/api/?query="
local query_url = api..text
local b, code = http.request(query_url)
if code ~= 200 then
return "Error: HTTP Connection"
end
dulcinea = json:decode(b)
... | gpl-2.0 |
mahdibagheri/aqa-mp3 | plugins/rae.lua | 616 | 1312 | do
function getDulcinea( text )
-- Powered by https://github.com/javierhonduco/dulcinea
local api = "http://dulcinea.herokuapp.com/api/?query="
local query_url = api..text
local b, code = http.request(query_url)
if code ~= 200 then
return "Error: HTTP Connection"
end
dulcinea = json:decode(b)
... | gpl-2.0 |
3scale/apicast | spec/policy/routing/routing_operation_spec.lua | 1 | 7301 | local RoutingOperation = require('apicast.policy.routing.routing_operation')
local ngx_variable = require 'apicast.policy.ngx_variable'
describe('RoutingOperation', function()
describe('.evaluate', function()
describe('when the operation involves the path', function()
it('evaluates true conditions correctl... | apache-2.0 |
mrmhxx82/spamer | 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 |
TelegramDev/moon | 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 |
Blackdutchie/Zero-K | LuaRules/Configs/stealth_defs.lua | 4 | 1103 | -- $Id: stealth_defs.lua 3496 2008-12-21 20:33:13Z licho $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local passiveStealth = {
draw = false,
init = false,
energy = 0,
delay = 0,
tie... | gpl-2.0 |
Blackdutchie/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 |
Facerafter/starcitizen-tools | extensions/Scribunto/engines/LuaCommon/lualib/ustring/charsets.lua | 8 | 61782 | -- This file is automatically generated by make-tables.php
local pats = {
[0x61] = {
[0x0000aa] = 1,
[0x0000ba] = 1,
[0x0001bb] = 1,
[0x0001c0] = 1,
[0x0001c1] = 1,
[0x0001c2] = 1,
[0x0001c3] = 1,
[0x0001c5] = 1,
[0x0001c8] = 1,
[0x0001cb] = 1,
[0x0001f2] = 1,
[0x000294] = 1,
[0x0002e0] = 1,
... | gpl-3.0 |
teslamint/luci | libs/luci-lib-nixio/docsrc/nixio.lua | 151 | 15824 | --- General POSIX IO library.
module "nixio"
--- Look up a hostname and service via DNS.
-- @class function
-- @name nixio.getaddrinfo
-- @param host hostname to lookup (optional)
-- @param family address family [<strong>"any"</strong>, "inet", "inet6"]
-- @param service service name or port (optional)
-- @return ... | apache-2.0 |
HandsomeCharming/RPG | Cocos2dx/frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Button.lua | 6 | 4625 |
--------------------------------
-- @module Button
-- @extend Widget
-- @parent_module ccui
--------------------------------
-- @function [parent=#Button] getTitleText
-- @param self
-- @return string#string ret (return value: string)
--------------------------------
-- @function [parent=#Button] setTitleFo... | gpl-2.0 |
froggatt/openwrt-luci | libs/core/luasrc/model/firewall.lua | 84 | 11156 | --[[
LuCI - Firewall model
Copyright 2009 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applica... | apache-2.0 |
mrichards42/xword | puz/premake4.lua | 1 | 1639 | project "puz"
-- --------------------------------------------------------------------
-- General
-- --------------------------------------------------------------------
kind "SharedLib"
language "C++"
files {
"**.hpp", -- ** means all subdirs
"**.cpp",
"**.c",
"**... | gpl-3.0 |
sorblack-x/gold_bot | bot/sbssbot.lua | 1 | 10344 | 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")
VERSION = '2'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
return... | gpl-2.0 |
Samanstar/Learn | 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 |
mrichards42/xword | scripts/libs/pl/func.lua | 8 | 10471 | --- Functional helpers like composition, binding and placeholder expressions.
-- Placeholder expressions are useful for short anonymous functions, and were
-- inspired by the Boost Lambda library.
--
-- > utils.import 'pl.func'
-- > ls = List{10,20,30}
-- > = ls:map(_1+1)
-- {11,21,31}
--
-- They can also b... | gpl-3.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/chats/alchemist-elvala.lua | 1 | 22229 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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) any later ... | gpl-3.0 |
hexahedronic/basewars | basewars_free/entities/weapons/weapon_twitch_p228/shared.lua | 2 | 1228 | SWEP.Base = "weapon_twitch_base"
if SERVER then
AddCSLuaFile ("shared.lua")
SWEP.HoldType = "pistol"
end
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.PrintName = "Twitch P228"
SWEP.Slot = 1
SWEP.IconLetter = "y"
SWEP.ViewModel = "models/weapons/v_pist_p228.mdl"
SWEP.WorldModel =... | mit |
3scale/apicast | script/profiling/profile.lua | 2 | 3687 | -- This program only works in an environment that has installed the Openresty
-- profiling tools using the scripts under /script/install.
local function capture_output(command)
local f = assert(io.popen(command))
local out = {}
for line in f:lines() do
table.insert(out, line)
end
f:close()
return t... | apache-2.0 |
teslamint/luci | modules/luci-mod-admin-mini/luasrc/model/cbi/mini/system.lua | 78 | 2244 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.sys")
require("luci.sys.zoneinfo")
require("luci.tools.webadmin")
require("luci.util")
m = Map("system", translate("System"), translate("Here you can configure the basic aspects of your device li... | apache-2.0 |
kuoruan/lede-luci | protocols/luci-proto-qmi/luasrc/model/cbi/admin_network/proto_qmi.lua | 17 | 1270 | -- Copyright 2016 David Thornley <david.thornley@touchstargroup.com>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local device, apn, pincode, username, password
local auth, ipv6
device = section:taboption("general", Value, "device", translate("Modem device"))
device.rmempty ... | apache-2.0 |
froggatt/openwrt-luci | modules/admin-full/luasrc/model/cbi/admin_system/leds.lua | 83 | 3272 | --[[
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$
]]--
m = ... | apache-2.0 |
mandree/darktable | tools/lua_doc/core.lua | 14 | 22677 | local table = require "table"
local dt = require "darktable"
local debug = require "debug"
local dump = require("darktable.debug").dump
local M={}
local meta_node = {__index = {}}
----------------------------------------
-- INTERNAL : PARSING OF SOURCE TREE --
----------------------------------------
local create_nod... | gpl-3.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/talents/psionic/telekinetic-combat.lua | 1 | 2698 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009, 2010, 2011, 2012, 2013 Nicolas Casalini
--
-- 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 o... | gpl-3.0 |
Blackdutchie/Zero-K | units/geo.lua | 2 | 3909 | unitDef = {
unitname = [[geo]],
name = [[Geothermal Generator]],
description = [[Produces Energy (25)]],
acceleration = 0,
activateWhenBuilt = true,
brakeRate = 0,
buildAngle ... | gpl-2.0 |
protomech/epgp-dkp-reloaded | libs/AceDB-3.0/AceDB-3.0.lua | 16 | 24630 | --- **AceDB-3.0** manages the SavedVariables of your addon.
-- It offers profile management, smart defaults and namespaces for modules.\\
-- Data can be saved in different data-types, depending on its intended usage.
-- The most common data-type is the `profile` type, which allows the user to choose
-- the active profi... | bsd-3-clause |
deficient/volume-control | volume-control.lua | 1 | 7341 | -- Volume Control
local awful = require("awful")
local wibox = require("wibox")
local gears = require("gears")
local naughty = require("naughty")
-- compatibility fallbacks for 3.5:
local timer = gears.timer or timer
local spawn = awful.spawn or awful.util.spawn
local watch = awful.spawn and awful.spawn.with_line_call... | unlicense |
protomech/epgp-dkp-reloaded | modules/whisper.lua | 4 | 3446 | local mod = EPGP:NewModule("whisper", "AceEvent-3.0")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
local senderMap = {}
local SendChatMessage = _G.SendChatMessage
if ChatThrottleLib then
SendChatMessage = function(...)
ChatThrottleLib:SendChatMessage("NORMAL", "EPGP", ...)
... | bsd-3-clause |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/chats/shertul-fortress-gladium-orb.lua | 1 | 1042 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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) any later ... | gpl-3.0 |
khavnu/VLCLIB | share/lua/playlist/canalplus.lua | 113 | 3501 | --[[
$Id: $
Copyright (c) 2007 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 your option) any later version.
This program is distr... | gpl-2.0 |
Cat5TV/tps_skyblock | mods/beds/beds.lua | 18 | 2586 | -- Fancy shaped bed
beds.register_bed("beds:fancy_bed", {
description = "Fancy Bed",
inventory_image = "beds_bed_fancy.png",
wield_image = "beds_bed_fancy.png",
tiles = {
bottom = {
"beds_bed_top1.png",
"default_wood.png",
"beds_bed_side1.png",
"beds_bed_side1.png^[transformFX",
"default_wood.png"... | lgpl-2.1 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/general/events/tombstones.lua | 1 | 2973 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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) any later ... | gpl-3.0 |
mrichards42/xword | lua/luapuz/bind/puz_overrides.lua | 1 | 19956 | overrides = {
-- ===================================================================
-- Puzzle functions
-- ===================================================================
Puzzle_Puzzle = [[
// Puzzle()
// Puzzle(const std::string & filename)
// Puzzle(const std::string & filename, const FileHandlerDesc * ... | gpl-3.0 |
LuaDist2/lua-nucleo | lua-nucleo/suite.lua | 2 | 17172 | --------------------------------------------------------------------------------
--- A simple test suite
-- @module lua-nucleo.suite
-- This file is a part of lua-nucleo library
-- @copyright lua-nucleo authors (see file `COPYRIGHT` for the license)
----------------------------------------------------------------------... | mit |
hexahedronic/basewars | basewars_free/entities/entities/bw_druglab.lua | 2 | 3880 | AddCSLuaFile()
ENT.Base = "bw_base_electronics"
ENT.Type = "anim"
ENT.PrintName = "Drug Lab"
ENT.Model = "models/props_lab/crematorcase.mdl"
ENT.PowerRequired = 10
ENT.PowerCapacity = 5000
ENT.Drain = 15
ENT.Status = "Press e to start cooking!"
if SERVER then
util.AddNetworkString( "BaseWars.DrugLab.Menu" ... | mit |
mikar/awesome34-themes | elric/theme.lua | 1 | 5551 | -- elric, awesome3 theme, by Manuel F. <mfauvell@esdebian.org>
-- licensed under the Creative Commons Attribution-Share (Alike License: http://creativecommons.org/licenses/by-sa/3.0/)
--{{{ Main
local awful = require("awful")
awful.util = require("awful.util")
theme = {}
home = os.getenv("HOME")
config ... | mit |
Blackdutchie/Zero-K | LuaRules/Configs/explosion_spawn_defs.lua | 4 | 1953 | -- $Id: explosion_spawn_defs.lua 4050 2009-03-09 02:56:38Z midknight $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--Lists post-processing weapon names and the units to spawn when they go off
local spa... | gpl-2.0 |
teslamint/luci | modules/luci-base/luasrc/cbi/datatypes.lua | 12 | 7855 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local ip = require "luci.ip"
local math = require "math"
local util = require "luci.util"
local tonumber, tostring, type, unpack, select = tonumber, tostring, type, unpack, select
... | apache-2.0 |
29988122/Fate-Grand-Order_Lua | _support_img_maker.lua | 1 | 2115 | dir = scriptPath()
package.path = package.path .. ";" .. dir .. 'modules/?.lua'
setImagePath(dir)
local ankuluaUtils = require("ankulua-utils")
local scaling = require("scaling")
local game = require("game")
GameRegion = "EN"
GeneralImagePath = "image_" .. GameRegion .. "/"
local IMAGE_WIDTH = 1280
local IMAGE_HEIGH... | mit |
ruleless/CEGUI | cegui/src/ScriptModules/Lua/support/tolua++bin/lua/define.lua | 14 | 1749 | -- tolua: define class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id$
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance, support, updates,
-- enhancements, o... | mit |
feldoth/DST-Etho | scripts/prefabs/etho_knight.lua | 1 | 4077 | local clockwork_common = require"prefabs/ethobot_common"
local assets =
{
Asset("ANIM", "anim/knight.zip"),
Asset("ANIM", "anim/knight_build.zip"),
Asset("ANIM", "anim/knight_nightmare.zip"),
Asset("SOUND", "sound/chess.fsb"),
Asset("SCRIPT", "scripts/prefabs/clockwork_common.lua"),
}
local prefab... | mit |
wilbefast/snowman-ludumdare31 | src/gameobjects/Tree.lua | 1 | 4170 | --[[
(C) Copyright 2014 William Dyce
All rights reserved. This program and the accompanying materials
are made available under the terms of the GNU Lesser General Public License
(LGPL) version 2.1 which accompanies this distribution, and is available at
http://www.gnu.org/licenses/lgpl-2.1.html
This library is distri... | mit |
gmorishere/self | plugins/ctrl.lua | 1 | 1682 | local function is_channel_disabled( receiver )
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable_channel(receiver, to_id)
if not _config.disabled_channels then
_c... | gpl-2.0 |
simeneuro/simeneurobot | plugins/twitter.lua | 2 | 2301 | local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local client = OAuth.new(consumer_key, consumer_secret, {
RequestToken = "https://api.twitter.com/oauth/request_token",
AuthorizeUser = {"https://api.twitter.com/oauth/autho... | gpl-2.0 |
alireza1998/gfx2 | bot/utils.lua | 646 | 23489 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
ladc/lgsl | tests/nlinfit.lua | 1 | 1288 | local matrix = require("lgsl.matrix")
local nlinfit = require("lgsl.nlinfit")
local pi,sin,cos,exp = math.pi,math.sin, math.cos, math.exp
local function n2str(x)
return string.format("%.8g", x)
end
local function vec2str(x)
local t = {}
for i = 1, #x do
t[i] = n2str(x[i])
end
return table.... | gpl-3.0 |
Blackdutchie/Zero-K | effects/gundam_xamelimpact.lua | 18 | 12632 | -- xamelimpact
-- smallxamelimpact
return {
["xamelimpact"] = {
dirta = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
properties = {
airdrag = 0.7,
alwaysvisible = true,
colormap = [[0... | gpl-2.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/general/objects/massive-armors.lua | 1 | 2782 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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) any later ... | gpl-3.0 |
Blackdutchie/Zero-K | units/corcrash.lua | 2 | 5636 | unitDef = {
unitname = [[corcrash]],
name = [[Vandal]],
description = [[Anti-Air Bot]],
acceleration = 0.45,
brakeRate = 0.45,
buildCostEnergy = 90,
buildCostMetal = 90,
buildPic = [[CORCRASH.png]],
buildTim... | gpl-2.0 |
tianye910208/vi3d | lua/vi3d/math.lua | 1 | 4631 |
local rawget = rawget
local gen_get_func = function(desc, geti, vmap, fmap)
return function(u, k)
local f = rawget(fmap, k)
if f then
return f
end
local i = rawget(vmap, k)
if i then
return geti(u, i)
end
error(desc, k)
en... | mit |
froggatt/openwrt-luci | modules/niu/luasrc/model/cbi/niu/network/ddns1.lua | 37 | 1993 | --[[
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 |
musenshen/SandBoxLua | frameworks/runtime-src/Classes/quick-src/lua_extensions/debugger/ldt_debugger.lua | 4 | 131916 | -------------------------------------------------------------------------------
-- 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 ... | mit |
Blackdutchie/Zero-K | gamedata/modularcomms/weapons/sonicgun.lua | 8 | 1434 | local name = "commweapon_sonicgun"
local weaponDef = {
name = [[Sonic Blaster]],
areaOfEffect = 70,
avoidFeature = true,
avoidFriendly = true,
burnblow = true,
craterBoost = 0,
craterMult = 0,
customParams = {... | gpl-2.0 |
Blackdutchie/Zero-K | effects/gundam_artillery_explosion.lua | 25 | 3488 | -- artillery_explosion
return {
["artillery_explosion"] = {
dirt = {
count = 4,
ground = true,
properties = {
alphafalloff = 2,
alwaysvisible = true,
color = [[0.2, 0.1, 0.05]],
pos = [[r-25 r25, 0, ... | gpl-2.0 |
sleepingwit/premake-core | modules/vstudio/tests/vc2010/test_fxcompile_settings.lua | 8 | 3956 | --
-- tests/actions/vstudio/vc2010/test_fxcompile_settings.lua
-- Validate FxCompile settings in Visual Studio 2010 C/C++ projects.
-- Copyright (c) 2014 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vstudio_vs2010_fxcompile_settings")
local vc2010 = p.vstudio.vc2010
local ... | bsd-3-clause |
lmangani/ntopng | scripts/lua/iface_ndpi_stats.lua | 3 | 3287 | --
-- (C) 2013-15 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
sendHTTPHeader('text/html; charset=iso-8859-1')
interface.select(ifname)
host_info = url2hostinfo(_GET)
if(_GET["breed"] == "true") then
show_breed = true
els... | gpl-3.0 |
aliasIsolation/aliasIsolation | tools/tundra2/scripts/tundra/syntax/glob.lua | 22 | 3353 | -- glob.lua - Glob syntax elements for declarative tundra.lua usage
module(..., package.seeall)
local util = require "tundra.util"
local path = require "tundra.path"
local decl = require "tundra.decl"
local dirwalk = require "tundra.dirwalk"
local ignored_dirs = util.make_lookup_table { ".git", ".svn", "CVS" }
loca... | unlicense |
Blackdutchie/Zero-K | LuaRules/Gadgets/unit_transport_pickup_floating_amphib.lua | 4 | 16192 | function gadget:GetInfo()
return {
name = "AirTransport_SeaPickup",
desc = "Allow air transport to use amphibious' floatation gadget to pickup unit at sea",
author = "msafwan (xponen)",
date = "22.12.2013", --29.4.2014
license = "GNU GPL, v2 or later",
layer = 0,
en... | gpl-2.0 |
Blackdutchie/Zero-K | LuaRules/Gadgets/CAI/astar.lua | 25 | 7226 | ---------------------------------------------------------------------
--[[
author: quantum
GPL v2 or later
http://www.policyalmanac.org/games/aStarTutorial.htm
http://en.wikipedia.org/wiki/A*_search_algorithm
use: override IsBlocked, GetDistance, etc and run aStar.GetPath
-- example -----------------------------... | gpl-2.0 |
RatchetJ/cqui | UI/Panels/NotificationPanel.lua | 7 | 77181 | -- ===========================================================================
-- Notification Panel
-- ===========================================================================
include( "ToolTipHelper" );
include( "InstanceManager" );
-- =======================================================================... | mit |
electricpandafishstudios/Spoon | game/engines/te4-1.4.1/engine/ui/Base.lua | 1 | 8956 | -- TE4 - T-Engine 4
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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) any later version.... | gpl-3.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/maps/wilderness/eyal.lua | 1 | 125369 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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) any later ... | gpl-3.0 |
29988122/Fate-Grand-Order_Lua | _JP_past_events/EN_EVENT_201907.lua | 1 | 7133 | --[[このスクリプトは人の動きを真似してるだけなので、サーバーには余計な負担を掛からないはず。
私の国では仕事時間は異常に長いので、もう満足プレイする時間すらできない。休日を使ってシナリオを読むことがもう精一杯…
お願いします。このプログラムを禁止しないでください。
--]]
package.path = package.path .. ";" .. dir .. 'modules/?.lua'
-- consts
GeneralImagePath = "image_" .. GameRegion .. "/"
local IMAGE_WIDTH = 1280
local IMAGE_HEIGHT = 720
local S... | mit |
xAleXXX007x/Witcher-RolePlay | witcherrp/schema/items/weapons/sh_claymore_family.lua | 1 | 1467 | ITEM.name = "Фамильный двуручный меч"
ITEM.desc = "Покрыт множеством гравировок и белых пятен. Похоже, это семенная реликвия."
ITEM.class = "nut_claymore_family"
ITEM.weaponCategory = "primary"
ITEM.price = 750
ITEM.category = "Оружие"
ITEM.model = "models/morrowind/silver/claymore/w_silver_claymore.mdl"
ITEM.width = 6... | mit |
liamneit/Cornucopia | Cornucopia_Art/Browser/Browser.lua | 1 | 5439 | --[[
Edited by LiamNeit 2016
Copyright 2010-2013 João Cardoso
Cornucopia is distributed under the terms of the GNU General Public License (or the Lesser GPL).
This file is part of Cornucopia.
Cornucopia is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as pu... | gpl-3.0 |
moltafet35/darkness | plugins/banhammer.lua | 294 | 10470 | local function is_user_whitelisted(id)
local hash = 'whitelist:user#id'..id
local white = redis:get(hash) or false
return white
end
local function is_chat_whitelisted(id)
local hash = 'whitelist:chat#id'..id
local white = redis:get(hash) or false
return white
end
local function kick_user(user_id, chat_id)... | gpl-2.0 |
sleepingwit/premake-core | binmodules/luasocket/test/testmesg.lua | 45 | 2957 | -- load the smtp support and its friends
local smtp = require("socket.smtp")
local mime = require("mime")
local ltn12 = require("ltn12")
function filter(s)
if s then io.write(s) end
return s
end
source = smtp.message {
headers = { ['content-type'] = 'multipart/alternative' },
body = {
[1] = {
... | bsd-3-clause |
sleepingwit/premake-core | tests/api/test_deprecations.lua | 16 | 1664 | --
-- tests/api/test_table_kind.lua
-- Tests the table API value type.
-- Copyright (c) 2012-2014 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("api_deprecations")
local api = p.api
function suite.setup()
workspace("MyWorkspace")
configurations { "Debug", "Release" }
... | bsd-3-clause |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/maps/vaults/forest-ruined-building1.lua | 1 | 1371 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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) any later ... | gpl-3.0 |
Blackdutchie/Zero-K | effects/gaatgun.lua | 25 | 1354 | -- hltradiate0
-- hltradiate
return {
["hltradiate0"] = {
pollute = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties = {
airdrag = 0.5,
... | gpl-2.0 |
LuaDist2/lua-nucleo | lua-nucleo/typeassert.lua | 2 | 2067 | --------------------------------------------------------------------------------
--- Lua type assertions
-- @module lua-nucleo.typeassert
-- This file is a part of lua-nucleo library
-- @copyright lua-nucleo authors (see file `COPYRIGHT` for the license)
-----------------------------------------------------------------... | mit |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/rooms/forest_clearing.lua | 1 | 3897 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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) any later ... | gpl-3.0 |
musenshen/SandBoxLua | src/framework/json.lua | 9 | 3476 | --[[
Copyright (c) 2011-2014 chukong-inc.com
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, publish, dis... | mit |
AmyBSOD/ToME-SX | src/lua/feature.lua | 1 | 1581 | -- tolua: abstract feature class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: feature.lua,v 1.2 2001/11/26 23:00:23 darkgod Exp $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligatio... | gpl-2.0 |
mandree/darktable | src/external/LuaAutoC/lautoc.lua | 18 | 2473 | #!/usr/bin/env lua
-- LuaAutoC - Automagically use C Functions and Structs with the Lua API
-- https://github.com/orangeduck/LuaAutoC
-- Daniel Holden - contact@theorangeduck.com
-- Licensed under BSD
-- Findall Function
function findall(text, pattern)
local matches = {}
for word in string.gmatch(text, pattern) d... | gpl-3.0 |
xAleXXX007x/Witcher-RolePlay | witcherrp/plugins/crafting/entities/entities/nut_crafting_anvil.lua | 1 | 1176 | ENT.Type = "anim"
ENT.PrintName = "Наковальня"
ENT.Author = "Black Tea"
ENT.Spawnable = true
ENT.AdminOnly = true
ENT.Category = "NutScript"
ENT.RenderGroup = RENDERGROUP_BOTH
if (SERVER) then
function ENT:Initialize()
self:SetModel("models/aoc_objects/anvil_01.mdl")
self:PhysicsInit(SOLID_VPHYSICS)
self:SetM... | mit |
khavnu/VLCLIB | share/lua/intf/dumpmeta.lua | 98 | 2125 | --[==========================================================================[
dumpmeta.lua: dump a file's meta data on stdout/stderr
--[==========================================================================[
Copyright (C) 2010 the VideoLAN team
$Id$
Authors: Antoine Cellerier <dionoea at videolan dot org>
Th... | gpl-2.0 |
notcake/xlit | lua/xlit/ui/xlitframe.lua | 1 | 8772 | local self = {}
surface.CreateFont ("XlitArial24",
{
font = "Arial",
size = 24
}
)
function self:Init ()
self:SetTitle ("Xlit")
self:SetSize (ScrW () * 0.8, ScrH () * 0.75)
self:Center ()
self:SetDeleteOnClose (false)
self:MakePopup ()
self:AddEventListener ("VisibleChanged",
functi... | gpl-3.0 |
saraedum/luci-packages-old | applications/luci-pbx/luasrc/model/cbi/pbx-advanced.lua | 29 | 14365 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx 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
... | apache-2.0 |
Blackdutchie/Zero-K | scripts/corthud.lua | 4 | 6109 | -- original bos animation by Chris Mackey
-- converted to lua by psimyn
include 'constants.lua'
local base = piece 'base'
local head = piece 'head'
local l_gun = piece 'l_gun'
local r_gun = piece 'r_gun'
local firept1 = piece 'firept1'
local r_barrel = piece 'r_barrel'
local firept2 = piece 'firept2'
local l_b... | gpl-2.0 |
Blackdutchie/Zero-K | units/chickena.lua | 2 | 5894 | unitDef = {
unitname = [[chickena]],
name = [[Cockatrice]],
description = [[Assault/Anti-Armor]],
acceleration = 0.36,
brakeRate = 0.205,
buildCostEnergy = 0,
buildCostMetal = 0,
builder = false,
buildPic = [[chickena.p... | gpl-2.0 |
tdubourg/geobombing | mobileapp/corona/lib/ecusson/Lang.lua | 2 | 2393 | -----------------------------------------------------------------------------------------
--
-- Author: Aurélien Defossez
-- (c) 2014 Tabemasu Games (www.tabemasu.com)
--
-- Lang.lua
--
-- A translation module
--
-----------------------------------------------------------------------------------------
local Class = {}... | lgpl-3.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/talents/chronomancy/threaded-combat.lua | 1 | 16410 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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) any later ... | gpl-3.0 |
githabbot/server85 | plugins/plugins.lua | 10 | 8430 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/maps/zones/slime-tunnels.lua | 1 | 8656 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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) any later ... | gpl-3.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/chats/melinda-beach-end.lua | 1 | 2461 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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) any later ... | gpl-3.0 |
Blackdutchie/Zero-K | LuaRules/Gadgets/mod_stats.lua | 7 | 7701 | -- $Id: unit_noselfpwn.lua 3171 2008-11-06 09:06:29Z det $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "Mod statistics",
desc = "Gathers mo... | gpl-2.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/zones/shadow-crypt/zone.lua | 1 | 2656 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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) any later ... | gpl-3.0 |
mrgodem/anti-ROBOT | plugins/mediasettings.lua | 1 | 1795 | local action = function(msg, blocks, ln)
if msg.chat.type == 'private' then
api.sendMessage(msg.chat.id, lang[ln].pv)
return
end
if not is_mod(msg) then
return nil
end
local list = {'image', 'audio', 'video', 'sticker', 'voice', 'contact', 'file'}
if blocks[1] == 'media list' then
local text = la... | gpl-2.0 |
saraedum/luci-packages-old | applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-cdr.lua | 80 | 1878 | --[[
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 |
yetsky/packages | utils/luci-app-lxc/files/controller/lxc.lua | 1 | 2898 | --[[
LuCI LXC module
Copyright (C) 2014, Cisco Systems, 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
Author: Petar Koretic <petar.koretic@sart... | gpl-2.0 |
Blackdutchie/Zero-K | units/striderhub.lua | 4 | 5100 | unitDef = {
unitname = [[striderhub]],
name = [[Strider Hub]],
description = [[Constructs Striders, Builds at 10 m/s]],
acceleration = 0,
brakeRate = 1.5,
buildCostEnergy = 600,
buildCostMeta... | gpl-2.0 |
xAleXXX007x/Witcher-RolePlay | witcherrp/schema/derma/cl_combine.lua | 3 | 2082 | local PANEL = {}
function PANEL:Init()
if (IsValid(nut.gui.combine)) then
nut.gui.combine:saveData()
nut.gui.combine:Remove()
end
nut.gui.combine = self
self:SetSize(580, 360)
self:SetPos(cookie.GetNumber("nutCombineX", ScrW() - self:GetWide()), cookie.GetNumber("nutCombineY", ScrH()*0.5 - self:GetTa... | mit |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/general/grids/void.lua | 1 | 3122 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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) any later ... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.