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 |
|---|---|---|---|---|---|
litnimax/luci | contrib/luasrcdiet/lua/optlex.lua | 125 | 31588 | --[[--------------------------------------------------------------------
optlex.lua: does lexer-based optimizations
This file is part of LuaSrcDiet.
Copyright (c) 2008 Kein-Hong Man <khman@users.sf.net>
The COPYRIGHT file describes the conditions
under which this software may be distributed.
See the Chan... | apache-2.0 |
fsmsystems/awbian | .config/awesome/calendar2.lua | 4 | 3679 | -- original code made by Bzed and published on http://awesome.naquadah.org/wiki/Calendar_widget
-- modified by Marc Dequènes (Duck) <Duck@DuckCorp.org> (2009-12-29), under the same licence,
-- and with the following changes:
-- + transformed to module
-- + the current day formating is customizable
local string = s... | gpl-2.0 |
gajop/Zero-K | LuaRules/Gadgets/unit_turn_without_interia.lua | 12 | 1401 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
hussian1997/bot-of-iraq | plugins/reply.lua | 1 | 12502 |
-- made by { @AHMED_ALOBIDE }
do
ws = {}
rs = {}
-- some examples of how to use this :3
ws[1] = "الحمد الله" -- msg
rs[1] = "ان شاء الله يصير الي بالك وتزوج " -- reply
ws[2] = "شلونك" -- msg
rs[2] = "تمام بخير وانت" -- reply
ws[3] = "سخيف" -- msg
rs[3] = "🙊والله ماكو اسخف 😂منك ياسخيف😒" -- reply
ws[4] = "ضوجة"... | agpl-3.0 |
Sojerbot/javan | plugins/on.lua | 11 | 1983 | -- Checks if bot was disabled on specific chat
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)
if... | gpl-2.0 |
litnimax/luci | modules/admin-mini/luasrc/model/cbi/mini/network.lua | 82 | 6273 | --[[
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 |
jayman39tx/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 |
wangtianhang/UnityLuaTest | toluaSnapshotTest/toluaUnityProject/Luajit64/jit/dump.lua | 43 | 20112 | ----------------------------------------------------------------------------
-- LuaJIT compiler dump module.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
-... | mit |
trappi-stone/Factorio-Stdlib | spec/event/opened_spec.lua | 1 | 6068 | local World = require "spec/setup/world"
World.Debug.allow_print = true
describe("event.opened",
function()
before_each(
function()
World.open()
end
)
after_each(
function()
World.close()
end
)
... | isc |
nobie/sesame_fw | feeds/luci/applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua | 18 | 3483 | --[[
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... | gpl-2.0 |
nobie/sesame_fw | feeds/luci/modules/admin-full/dist/usr/lib/lua/luci/controller/admin/index.lua | 79 | 1245 | --[[
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$
]]--
mod... | gpl-2.0 |
nanobox-io/tag | deps/cauterize/lib/timer.lua | 2 | 1208 | -- -*- mode: lua; tab-width: 2; indent-tabs-mode: 1; st-rulers: [70] -*-
-- vim: ts=4 sw=4 ft=lua noet
----------------------------------------------------------------------
-- @author Daniel Barney <daniel@pagodabox.com>
-- @copyright 2015, Pagoda Box, Inc.
-- @doc
--
-- @end
-- Created : 29 May 2015 by Daniel Barney... | mit |
arya5123/tell | plugins/dic.lua | 58 | 1663 |
--[[
-- Translate text using Google Translate.
-- http://translate.google.com/translate_a/single?client=t&ie=UTF-8&oe=UTF-8&hl=en&dt=t&tl=en&sl=auto&text=hello
--]]
do
function translate(source_lang, target_lang, text)
local path = "http://translate.google.com/translate_a/single"
-- URL query parameters
local p... | gpl-2.0 |
nobie/sesame_fw | feeds/luci/applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua | 68 | 4034 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008-2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
htt... | gpl-2.0 |
CodeAnxiety/premake-core | tests/actions/vstudio/cs2005/test_platform_groups.lua | 7 | 2276 | --
-- tests/actions/vstudio/cs2005/test_platform_groups.lua
-- Check creation of per-platform property groups in VS2005+ C# projects.
-- Copyright (c) 2009-2015 Jason Perkins and the Premake project
--
local suite = test.declare("vstudio_cs2005_platform_groups")
local cs2005 = premake.vstudio.cs2005
--
-- Setup
--
... | bsd-3-clause |
hussian1997/bot-of-iraq | plugins/ar-lock-bot.lua | 5 | 2938 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY(@AHMED_ALOBIDE) ▀▄ ▄▀
▀▄ ▄▀ BY(@hussian_9) ▀▄ ▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ (ملف قفل البوتات في المجموعة ▀▄ ... | agpl-3.0 |
gajop/Zero-K | LuaRules/Configs/deployment.lua | 8 | 1461 | -- $Id: deployment.lua 3171 2008-11-06 09:06:29Z det $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: LuaRules/Configs/deployment.lua
-- brief: LuaRules deployment mode configuration
-- ... | gpl-2.0 |
rdelval/gorealis | vendor/git.apache.org/thrift.git/lib/lua/TMemoryBuffer.lua | 100 | 2266 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | apache-2.0 |
wangtianhang/UnityLuaTest | protoBufTest/tolua_runtime_2019-09-08/luajit-2.1/src/jit/dump.lua | 12 | 20213 | ----------------------------------------------------------------------------
-- LuaJIT compiler dump module.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
-... | mit |
duk3luk3/MoonGen | examples/ipsec/vpn-esp-forwarder.lua | 6 | 6577 | local dpdk = require "dpdk"
local dpdkc = require "dpdkc"
local ipsec = require "ipsec"
local memory = require "memory"
local device = require "device"
local ffi = require "ffi"
local stats = require "stats"
local math = require "math"
local ip = require "proto.ip4"
-- narva
--./build/MoonGen examples/ipsec/vpn-esp-fo... | mit |
myrage2000/ulogs | ultimatelogs/lua/ultimatelogs/client/cl_ulogs_dmenuoption.lua | 2 | 4492 | --[[ _
( )
_| | __ _ __ ___ ___ _ _
/'_` | /'__`\( '__)/' _ ` _ `\ /'_` )
( (_| |( ___/| | | ( ) ( ) |( (_| |
`\__,_)`\____)(_) (_) (_) (_)`\__,_)
DMenuOption
--]]
local PANEL = {}
AccessorFunc( PANEL, "m_pMenu", "Menu" )
Acc... | gpl-3.0 |
gajop/Zero-K | effects/gundam_dirt.lua | 24 | 11215 | -- dirt3
-- dirt
-- dirt2
return {
["dirt3"] = {
poof01 = {
air = true,
class = [[CSimpleParticleSystem]],
count = 10,
ground = true,
properties = {
airdrag = 1.0,
alwaysvisible = false,
col... | gpl-2.0 |
gajop/Zero-K | LuaRules/Gadgets/unit_zombies.lua | 10 | 11790 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
Flourish-Team/Flourish | Premake/source/tests/project/test_eachconfig.lua | 16 | 3443 | --
-- tests/project/test_eachconfig.lua
-- Test the project object configuration iterator function.
-- Copyright (c) 2011-2015 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("project_eachconfig")
--
-- Setup and teardown
--
local wks, prj
function suite.setup()
wks = wo... | mit |
torhve/ivar2 | modules/substitute.lua | 2 | 2176 | local db = {}
local toLuaPattern = function(str)
return str:gsub('%%', '%%%%'):gsub('\\([%l%u%d^$()%%.%[%]*+%-?])', '%%%1'):gsub('\\/', '/')
end
local handleMessage = function(nick, destination, msg, update)
if(db[nick] and db[nick][destination]) then
local matchPoint = msg:match('()[^\\]/')
-- Someone failed ... | mit |
gajop/Zero-K | units/armsolar.lua | 3 | 3979 | unitDef = {
unitname = [[armsolar]],
name = [[Solar Collector]],
description = [[Produces Energy (2)]],
acceleration = 0,
activateWhenBuilt = true,
brakeRate = 0,
buildAngle ... | gpl-2.0 |
gajop/Zero-K | LuaRules/Gadgets/exp_no_air_nuke.lua | 17 | 1024 | -- $Id: exp_no_air_nuke.lua 3171 2008-11-06 09:06:29Z det $
function gadget:GetInfo()
return {
name = "NoAirNuke",
desc = "Disables the custom nuke effect, if the nuke is shoot in the air.",
author = "jK",
date = "Dec, 2007",
license = "GNU GPL, v2 or later",
layer = 0... | gpl-2.0 |
kiarash14/BumperTG | plugins/invite.lua | 299 | 1025 | -- Invite other user to the chat group.
-- Use !invite name User_name or !invite id id_number
-- The User_name is the print_name (there are no spaces but _)
do
local function callback(extra, success, result)
vardump(success)
vardump(result)
end
local function run(msg, matches)
local user = matches[2]
-- Use... | gpl-2.0 |
gajop/Zero-K | scripts/tankriotraider.lua | 18 | 5913 | -- linear constant 65536
include "constants.lua"
local main, nose, nosefan1, nosefan2,
turret, sleeve, barrel1, flare1, barrel2, flare2,
sparkcenter, sparkcenter2,
door1, door2, rud1, rud2, mainfan1, mainfan2,
wheels1, wheels2, wheels3, wheels4, wheels5, wheels6, wheels7,
tracks1, tracks2, tracks3, tracks4 =
piece('m... | gpl-2.0 |
gajop/Zero-K | scripts/corshad.lua | 2 | 6741 | local base = piece 'base'
local fuselage = piece 'fuselage'
local wingl1 = piece 'wingl1'
local wingr1 = piece 'wingr1'
local wingl2 = piece 'wingl2'
local wingr2 = piece 'wingr2'
local engines = piece 'engines'
local fins = piece 'fins'
local rflap = piece 'rflap'
local lflap = piece 'lflap'
local predrop = p... | gpl-2.0 |
casseveritt/premake | src/actions/make/make_solution.lua | 23 | 2363 | --
-- make_solution.lua
-- Generate a solution-level makefile.
-- Copyright (c) 2002-2009 Jason Perkins and the Premake project
--
function premake.make_solution(sln)
-- create a shortcut to the compiler interface
local cc = premake[_OPTIONS.cc]
-- build a list of supported target platforms that also includes ... | bsd-3-clause |
KayMD/Illarion-Content | content/_gods/bragon.lua | 3 | 1961 | --[[
Illarion Server
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
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
gajop/Zero-K | units/hoversonic.lua | 4 | 5428 | unitDef = {
unitname = [[hoversonic]],
name = [[Morningstar]],
description = [[Antisub Hovercraft]],
acceleration = 0.048,
activateWhenBuilt = true,
brakeRate = 0.043,
buildCostEnergy = 300,
buildCostMetal = 300,
builder = false... | gpl-2.0 |
CodeAnxiety/premake-core | tests/actions/vstudio/vc2010/test_imagexex_settings.lua | 16 | 1100 | --
-- tests/actions/vstudio/vc2010/test_compile_settings.lua
-- Validate Xbox 360 XEX image settings in Visual Studio 2010 C/C++ projects.
-- Copyright (c) 2011-2013 Jason Perkins and the Premake project
--
local suite = test.declare("vstudio_vs2010_imagexex_settings")
local vc2010 = premake.vstudio.vc2010
local pr... | bsd-3-clause |
pdxmeshnet/mnigs | src/rpc.lua | 3 | 3715 | --[[
@file rpc.lua
@license The MIT License (MIT)
@author Alex <alex@maximum.guru>
@copyright 2016 Alex
--]]
--- @module rpc
local rpc = {}
local copas = require("copas")
local socket = require("socket")
local random = require("random")
local jsonrpc = require("json.rpc")
jsonrpc.setTimeout(10)
local threadman = req... | mit |
KayMD/Illarion-Content | alchemy/item/id_330_white_bottle.lua | 2 | 4106 | --[[
Illarion Server
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
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
Mutos/NAEV-StarsOfCall | dat/missions/neutral/oldwoman.lua | 9 | 6257 | --[[
--
-- MISSION: The complaining grandma
-- DESCRIPTION: The player is taking an old woman from Dvaered space to Sirius space.
-- The old woman keeps muttering about how the times have changed and how it used to be when she was young.
--
--]]
include "dat/scripts/cargo_common.lua"
-- Localization, choosing a langu... | gpl-3.0 |
kooiot/kooweb | apps/cloud/model/device/services.lua | 1 | 1126 | local redis = require 'resty.redis'
local logger = require 'lwf.logger'
local cjson = require 'cjson'
local _M = {}
local class = {}
_M.new = function(m)
local obj = {
lwf = m.lwf,
app = m.app,
con = con
}
return setmetatable(obj, {__index=class})
end
function class:init()
if self.con then
return true... | gpl-2.0 |
nobie/sesame_fw | feeds/luci/applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-format.lua | 80 | 3636 | --[[
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... | gpl-2.0 |
litnimax/luci | applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-format.lua | 80 | 3636 | --[[
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 |
litnimax/luci | applications/luci-statistics/luasrc/model/cbi/luci_statistics/dns.lua | 78 | 1344 | --[[
Luci configuration model for statistics - collectd dns plugin configuration
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License a... | apache-2.0 |
ld-test/lua-nucleo | lua-nucleo/factory.lua | 3 | 1093 | --------------------------------------------------------------------------------
--- Factory related functions
-- @module lua-nucleo.factory
-- This file is a part of lua-nucleo library
-- @copyright lua-nucleo authors (see file `COPYRIGHT` for the license)
--------------------------------------------------------------... | mit |
reloadlife/sprcpubot | Plugins/clean.lua | 1 | 6951 | function GpLang(chat_ID)
if chat_ID then
return (redis:hget(chat_ID, 'Lang') or 'FA')
end
end
function DelMsgs(ex, result )
for k,v in pairs(result.messages_) do
cli.deleteMessages(v.chat_id_, {[0] = v.id_})
i = i + 1
end
... | gpl-3.0 |
cecile/Cecile_QuickLaunch | src/Cecile_QuickLaunchItems/items.lua | 1 | 4744 | ----------------------------------------------------------------------------------------------------
-- search items module
--get the engine and create the module
local Engine = _G.Cecile_QuickLaunch;
--create the modules as submodule of search
local search = Engine.AddOn:GetModule("search");
local mod = search:NewMo... | artistic-2.0 |
tryller/crystalserver | data/creaturescripts/scripts/idle.lua | 5 | 1086 | local config = {
idleWarning = getConfigValue('idleWarningTime'),
idleKick = getConfigValue('idleKickTime')
}
function onThink(cid, interval)
if(getTileInfo(getCreaturePosition(cid)).nologout or getCreatureNoMove(cid) or
getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_ALLOWIDLE)) then
return true
end
local id... | gpl-3.0 |
pixeltailgames/gm-mediaplayer | lua/mediaplayer/players/components/voteskip.lua | 1 | 2771 | --[[--------------------------------------------
Voteskip Manager
----------------------------------------------]]
local VoteskipManager = {}
VoteskipManager.__index = VoteskipManager
local VOTESKIP_REQ_VOTE_RATIO = 2/3
---
-- Initialize the Voteskip Manager object.
--
function VoteskipManager:New( mp, ratio )
loc... | mit |
Flourish-Team/Flourish | Premake/source/modules/vstudio/tests/vc2010/test_debug_settings.lua | 8 | 2640 | --
-- tests/actions/vstudio/vc2010/test_debug_settings.lua
-- Validate handling of the working directory for debugging.
-- Copyright (c) 2011-2013 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vstudio_vs2010_debug_settings")
local vc2010 = p.vstudio.vc2010
local project = p... | mit |
gajop/Zero-K | LuaUI/Widgets/chili/simple examples/Widgets/gui_chiliguidemo.lua | 17 | 8506 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "chiliGUIDemo",
desc = "GUI demo for robocracy",
author = "quantum",
date = "WI... | gpl-2.0 |
aadddjj/testbotantispam | 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 |
CodeAnxiety/premake-core | tests/config/test_linkinfo.lua | 7 | 2223 | --
-- tests/config/test_linkinfo.lua
-- Test the config object's link target accessor.
-- Copyright (c) 2012-2013 Jason Perkins and the Premake project
--
local suite = test.declare("config_linkinfo")
local config = premake.config
--
-- Setup and teardown
--
local wks, prj
function suite.setup()
premake.acti... | bsd-3-clause |
gajop/Zero-K | units/armca.lua | 2 | 5953 | unitDef = {
unitname = [[armca]],
name = [[Crane]],
description = [[Construction Aircraft, Builds at 4 m/s]],
acceleration = 0.1,
airStrafe = 0,
amphibious = true,
brakeRate = 0.1,
buildCostEnergy = 220,
buildCostMetal = 22... | gpl-2.0 |
gajop/Zero-K | LuaRules/Configs/cai/unitMovetype.lua | 13 | 1246 | local staticUnits = {}
local movetypeDefID = {}
local movetypes = {
{name = "bot", movedef = "kbot3"},
{name = "amph", movedef = "akbot4"},
{name = "spider", movedef = "tkbot4"},
{name = "veh", movedef = "tank4"},
{name = "hover", movedef = "hover3"},
{name = "air", movedef = false},
{name = "sea", movedef = "u... | gpl-2.0 |
KayMD/Illarion-Content | quest/akaltuts_chamber_526_dungeon.lua | 4 | 8306 | --[[
Illarion Server
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
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
Proxmark/proxmark3 | client/scripts/test_t55x7_fsk.lua | 11 | 2697 | local cmds = require('commands')
local getopt = require('getopt')
local bin = require('bin')
local utils = require('utils')
example =[[
1. script run test_t55x7_fsk
]]
author = "Iceman"
usage = "script run test_t55x7_fsk"
desc =[[
This script will program a T55x7 TAG with the configuration: block 0x00 data 0x000100
T... | gpl-2.0 |
val-kulkov/openwrt-packages | utils/yunbridge/files/usr/bin/pretty-wifi-info.lua | 106 | 2067 | #!/usr/bin/lua
local function get_basic_net_info(network, iface, accumulator)
local net = network:get_network(iface)
local device = net and net:get_interface()
if device then
accumulator["uptime"] = net:uptime()
accumulator["iface"] = device:name()
accumulator["mac"] = device:mac()
accumulator["... | gpl-2.0 |
hussian1997/bot-of-iraq | plugins/ar-weather.lua | 8 | 2658 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY(@AHMED_ALOBIDE) ▀▄ ▄▀
▀▄ ▄▀ BY(@hussian_9) ▀▄ ▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ (ملف الطقس) ▀▄ ▄▀
▀▄▀▀▄▄... | agpl-3.0 |
gajop/Zero-K | LuaRules/Gadgets/unit_vertical_swarm.lua | 10 | 3535 | function gadget:GetInfo()
return {
name = "Vertical Swarm",
desc = "Causes chickens to pop out of dense swarms.",
author = "Google Frog",
date = "15 April 2013",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true
}
end
-------------------------------------------------... | gpl-2.0 |
nobie/sesame_fw | feeds/luci/applications/luci-statistics/dist/usr/lib/lua/luci/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
... | gpl-2.0 |
DeterGent-Legion/MeGa_SaTaN | SaTaN_bot.lua | 19 | 8849 | 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 |
KayMD/Illarion-Content | handler/opendoor.lua | 5 | 1435 | --[[
Illarion Server
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
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
wxguidesigner/wxGUIDesigner | build/premake/4.3/src/tools/gcc.lua | 6 | 4568 | --
-- gcc.lua
-- Provides GCC-specific configuration strings.
-- Copyright (c) 2002-2008 Jason Perkins and the Premake project
--
premake.gcc = { }
--
-- Set default tools
--
premake.gcc.cc = "gcc"
premake.gcc.cxx = "g++"
premake.gcc.ar = "ar"
--
-- Translation of Premake flags into GCC flags
... | gpl-3.0 |
davidBelanger/nn | CMulTable.lua | 31 | 1238 |
local CMulTable, parent = torch.class('nn.CMulTable', 'nn.Module')
function CMulTable:__init()
parent.__init(self)
self.gradInput = {}
end
function CMulTable:updateOutput(input)
self.output:resizeAs(input[1]):copy(input[1])
for i=2,#input do
self.output:cmul(input[i])
end
return self.output
e... | bsd-3-clause |
casseveritt/premake | src/host/lua-5.1.4/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... | bsd-3-clause |
idning/redis | 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... | bsd-3-clause |
danteinforno/wesnoth | data/ai/micro_ais/cas/ca_herding_sheep_runs_dog.lua | 26 | 1437 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local function get_next_sheep(cfg)
local sheep = AH.get_units_with_moves {
side = wesnoth.current.side,
{ "and", cfg.filter_second },
{ "filter_adjacent", { side = wesnoth.current.side, { "and", cfg... | gpl-2.0 |
davidBelanger/nn | HingeEmbeddingCriterion.lua | 50 | 1290 | local HingeEmbeddingCriterion, parent = torch.class('nn.HingeEmbeddingCriterion', 'nn.Criterion')
function HingeEmbeddingCriterion:__init(margin)
parent.__init(self)
self.margin = margin or 1
self.sizeAverage = true
end
function HingeEmbeddingCriterion:updateOutput(input,y)
self.buffer = self.buffer or ... | bsd-3-clause |
nobie/sesame_fw | feeds/luci/applications/luci-diag-devinfo/dist/usr/lib/lua/luci/controller/luci_diag/netdiscover_common.lua | 76 | 3146 | --[[
Luci diag - Diagnostics controller module
(c) 2009 Daniel Dickinson
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
]]--
module("luci.cont... | gpl-2.0 |
Flourish-Team/Flourish | Premake/source/modules/vstudio/vs2010_vcxproj.lua | 3 | 66859 | --
-- vs2010_vcxproj.lua
-- Generate a Visual Studio 201x C/C++ project.
-- Copyright (c) Jason Perkins and the Premake project
--
local p = premake
p.vstudio.vc2010 = {}
local vstudio = p.vstudio
local project = p.project
local config = p.config
local fileconfig = p.fileconfig
local tree = p.tree
local m = ... | mit |
casseveritt/premake | tests/test_vs2002_sln.lua | 14 | 1629 | --
-- tests/test_vs2002_sln.lua
-- Automated test suite for Visual Studio 2002 solution generation.
-- Copyright (c) 2009 Jason Perkins and the Premake project
--
T.vs2002_sln = { }
local suite = T.vs2002_sln
local sln2002 = premake.vstudio.sln2002
--
-- Configure a solution for testing
--
local sln
function su... | bsd-3-clause |
thomas-schultz/sdn-cert | feature-tests/config/action_set_field.lua | 1 | 1778 | --[[
Feature test for set arbitrary fields in the header
]]
require "feature_config"
local Feature = FeatureConfig.new()
Feature.require = "OpenFlow11"
Feature.state = "recommended"
Feature.loadGen = "moongen"
Feature.files = "feature_test.lua"
Feature.lgArgs = "$file=1 $name $link=1 $link=2"
Feature.ofArg... | gpl-2.0 |
Proxmark/proxmark3 | client/lualibs/md5.lua | 12 | 9583 | local md5 = {
_VERSION = "md5.lua 0.5.0",
_DESCRIPTION = "MD5 computation in Lua (5.1)",
_URL = "https://github.com/kikito/md5.lua",
_LICENSE = [[
MIT LICENSE
Copyright (c) 2013 Enrique García Cota + Adam Baldwin + hanzao + Equi 4 Software
Permission is hereby granted, free of char... | gpl-2.0 |
LinusU/cunnx | WindowGate2.lua | 4 | 3208 | local WindowGate2, parent = torch.class('nn.WindowGate2', 'nn.Module')
------------------------------------------------------------------------
--[[ WindowGate2 ]]--
-- Returns a table of {indices, scales}
-- Forward finds the centroid of the input (output of a softmax).
-- The centroid is used to position a window on ... | bsd-3-clause |
gajop/Zero-K | scripts/corclog.lua | 5 | 6184 | include 'constants.lua'
include "JumpRetreat.lua"
local pelvis = piece 'pelvis'
local pole = piece 'pole'
local aimpitch = piece 'aimpitch'
local aimyaw = piece 'aimyaw'
local lthigh, lcalf, lfoot = piece('lthigh', 'lcalf', 'lfoot')
local rthigh, rcalf, rfoot = piece('rthigh', 'rcalf', 'rfoot')
local leftLeg = { thigh... | gpl-2.0 |
Sweet-kid/Algorithm-Implementations | Alpha_Beta_Pruning/Lua/Yonaba/alpha_beta_pruning_test.lua | 26 | 1062 | -- Tests for alpha_beta_pruning.lua
local ABP = require 'alpha_beta_pruning'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pa... | mit |
mardraze/prosody-modules | mod_email_pass/vcard.lib.lua | 33 | 9229 | -- Copyright (C) 2011-2012 Kim Alvefur
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-- TODO
-- Fix folding.
local st = require "util.stanza";
local t_insert, t_concat = table.insert, table.concat;
local type = type;
local next, pairs, ipairs = ... | mit |
kiarash14/BumperTG | bot/bot.lua | 4 | 7104 | 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 = '0.14.6'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
r... | gpl-2.0 |
litnimax/luci | applications/luci-firewall/luasrc/model/cbi/firewall/forwards.lua | 85 | 3942 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010-2012 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
htt... | apache-2.0 |
gajop/Zero-K | gamedata/modularcomms/weapons/riotcannon_napalm.lua | 6 | 1264 | local name = "commweapon_riotcannon_napalm"
local weaponDef = {
name = [[Napalm Riot Cannon]],
areaOfEffect = 144,
avoidFeature = true,
avoidFriendly = true,
burnblow = true,
craterBoost = 1,
craterMult = 2,
customParams... | gpl-2.0 |
Flourish-Team/Flourish | Premake/source/modules/vstudio/tests/vc2010/test_extension_targets.lua | 11 | 2464 | --
-- tests/actions/vstudio/vc2010/test_extension_targets.lua
-- Check the import extension targets block of a VS 2010 project.
-- Copyright (c) 2014 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vs2010_extension_targets")
local vc2010 = p.vstudio.vc2010
local project = p.p... | mit |
litnimax/luci | modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua | 6 | 33404 | --[[
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$
]]--
loc... | apache-2.0 |
cecile/Cecile_QuickLaunch | src/Cecile_QuickLaunch/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua | 22 | 8073 | --[[ $Id: CallbackHandler-1.0.lua 1186 2018-07-21 14:19:18Z nevcairiel $ ]]
local MAJOR, MINOR = "CallbackHandler-1.0", 7
local CallbackHandler = LibStub:NewLibrary(MAJOR, MINOR)
if not CallbackHandler then return end -- No upgrade needed
local meta = {__index = function(tbl, key) tbl[key] = {} return tbl[key] end}
... | artistic-2.0 |
paulegan/conky | extras/convert.lua | 2 | 5274 | #! /usr/bin/lua
local usage = [[
Usage: convert.lua old_conkyrc [new_conkyrc]
Tries to convert conkyrc from the old v1.x format to the new, lua-based format.
Keep in mind that there is no guarantee that the output will work correctly
with conky, or that it will be able to convert every conkyrc. However, it
should pr... | gpl-3.0 |
DustinMorado/tomoauto | src/lib/tomoauto/settings/ccderaser.lua | 1 | 4549 | --[[
Copyright (c) 2015 Dustin Reed Morado
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, publi... | mit |
Tgfire/tgFire | 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-3.0 |
KayMD/Illarion-Content | item/id_52_filledbucket.lua | 1 | 19139 | --[[
Illarion Server
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
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
gajop/Zero-K | units/trem.lua | 2 | 6500 | unitDef = {
unitname = [[trem]],
name = [[Tremor]],
description = [[Heavy Saturation Artillery Tank]],
acceleration = 0.05952,
brakeRate = 0.124,
buildCostEnergy = 1500,
buildCostMetal = 1500,
builder = false... | gpl-2.0 |
Mutos/NAEV-StarsOfCall | dat/events/neutral/shadow_comm.lua | 4 | 3208 | --[[
-- Comm Event for the Shadow missions
--]]
include "proximity.lua"
-- localization stuff, translators would work here
lang = naev.lang()
if lang == "es" then
else -- default english
title = {}
text = {}
title[1] = "An open invitation"
text[1] = [[ "Greetings, %s," the pilot of the Vendetta sa... | gpl-3.0 |
nobie/sesame_fw | feeds/luci/libs/web/dist/usr/lib/lua/luci/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 ... | gpl-2.0 |
icgood/pymap | pymap/backend/redis/scripts/lua/message_delete.lua | 1 | 1376 | local i = nil
local i, uids_key = next(KEYS, i)
local i, seq_key = next(KEYS, i)
local i, content_key = next(KEYS, i)
local i, changes_key = next(KEYS, i)
local i, recent_key = next(KEYS, i)
local i, deleted_key = next(KEYS, i)
local i, unseen_key = next(KEYS, i)
local i, max_modseq_key = next(KEYS, i)
local i, cleanup... | mit |
gajop/Zero-K | LuaRules/Gadgets/unit_stockpile.lua | 4 | 5124 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "Stockpile",
desc = "Partial reimplementation of stockpile system.",
author = "Google Fr... | gpl-2.0 |
gajop/Zero-K | LuaRules/Configs/StartBoxes/Akilon Wastelands ZK v1.lua | 11 | 19588 | return {
[0] = {
boxes = {
{
{6950, 6435},
{6804, 6292},
{6794, 6284},
{6783, 6283},
{6781, 6294},
{6782, 6304},
{6779, 6315},
{6770, 6326},
{6761, 6336},
{6754, 6347},
{6743, 6354},
{6733, 6357},
{6722, 6359},
{6712, 6360},
{6702, 6360},
{6691, 635... | gpl-2.0 |
CodeAnxiety/premake-core | tests/actions/make/cs/test_response.lua | 7 | 1976 | --
-- tests/actions/make/cs/test_response.lua
-- Validate the list of objects for a response file used by a makefile.
-- Copyright (c) 2009-2013 Jason Perkins and the Premake project
--
local suite = test.declare("make_cs_response")
local make = premake.make
--
-- Setup
--
local wks, prj
function suite.setup()... | bsd-3-clause |
gajop/Zero-K | scripts/armzeus.lua | 15 | 15279 | local base = piece 'base'
local chest = piece 'chest'
local aim = piece 'aim'
local flare = piece 'flare'
local hips = piece 'hips'
local lthigh = piece 'lthigh'
local rthigh = piece 'rthigh'
local lforearm = piece 'lforearm'
local rforearm = piece 'rforearm'
local rshoulder = piece 'rshoulder'
local lshoulde... | gpl-2.0 |
amir32002/feedback-networks | lib/ConvLSTM_bn_bc.lua | 1 | 8682 | --[[
Convolutional LSTM for short term visual cell
inputSize - number of input feature planes
outputSize - number of output feature planes
rho - recurrent sequence length
stride - convolutional stride, used for the larger images input
kc - convolutional filter size to convolve input
km - convolutional f... | mit |
gajop/Zero-K | units/firewalker.lua | 2 | 6669 | unitDef = {
unitname = [[firewalker]],
name = [[Firewalker]],
description = [[Saturation Artillery Walker]],
acceleration = 0.12,
brakeRate = 0.24,
buildCostEnergy = 900,
buildCostMetal = 900,
builder = false... | gpl-2.0 |
dhotson/prosody-modules | mod_service_directories/mod_service_directories.lua | 32 | 5943 | -- Prosody IM
-- Copyright (C) 2011 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-- An implementation of [XEP-0309: Service Directories]
-- Imports and defines
local st = require "util.stanza";
local jid_split = require "util.jid"... | mit |
tung/doomrl | bin/lua/levels/mortuary.lua | 2 | 3509 | -- THE MORTUARY ---------------------------------------------------------
register_level "the_mortuary"
{
name = "The Mortuary",
entry = "On level @1 he was foolish enough to enter the Mortuary!",
level = 20,
welcome = "You enter the Mortuary.",
canGenerate = function ()
return DIFFICULTY > 1
end,
Create = ... | gpl-2.0 |
varunparkhe/Algorithm-Implementations | Bresenham_Based_Supercover_Line/Lua/Yonaba/bresenham_based_supercover.lua | 25 | 2214 | -- Bresenham-based Supercover line marching algorithm
-- See: http://lifc.univ-fcomte.fr/home/~ededu/projects/bresenham/
-- Note: This algorithm is based on Bresenham's line marching, but
-- instead of considering one step per axis, it covers all the points
-- the ideal line covers. It may be useful for example when... | mit |
esmil/lem | lem/lfs.lua | 1 | 1398 | --
-- This file is part of LEM, a Lua Event Machine.
-- Copyright 2012 Emil Renner Berthing
--
-- LEM is free software: you can redistribute it and/or modify it
-- under the terms of the GNU Lesser General Public License as
-- published by the Free Software Foundation, either version 3 of
-- the License, or (at your op... | gpl-3.0 |
AbolDalton/Abolbot | plugins/terminal.lua | 12 | 1554 | function run_sh(msg, matches)
local receiver = get_receiver(msg)
name = get_name(msg)
text = ''
if is_sudo(msg) then
bash = msg.text:sub(4,-1)
text = run_bash(bash)
else
text = name .. ' you have no power here!'
end
send_large_msg(receiver, 'In Process...', ok_cb,... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.