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 |
|---|---|---|---|---|---|
Invertika/data | scripts/maps/ow-p0020-n0020-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-p0001-p0014-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Samake/BomberMan2D | server/manager/PlayerManagerS.lua | 1 | 4982 | --[[
Name: BomberMan2D
Filename: PlayerManagerS.lua
Authors: Sam@ke
--]]
PlayerManagerS = {}
function PlayerManagerS:constructor(parent)
mainOutput("PlayerManagerS was loaded.")
self.mainClass = parent
self.gameState = "idle"
self.players = {}
self.playerPositions = {}
self.spawnPlaces = {}
self.playe... | gpl-3.0 |
ahmadnamed/ANIMUS | plugins/lk_english.lua | 2 | 1092 | --[[
$ :)
-- - ( #ANIMUS ) - --
$ :)
-- - ( @ahmadnamed ) - --
$ :)
--Channel-( @ahmadnameddd )--
$ :)
]]--
local function run(msg, matches)
if is_momod(msg) then
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)] then
if data[tostring(... | gpl-2.0 |
GoogleFrog/Zero-K | gamedata/modularcomms/weapons/disruptorbomb.lua | 5 | 1280 | local name = "commweapon_disruptorbomb"
local weaponDef = {
name = [[Disruptor Bomb]],
accuracy = 256,
areaOfEffect = 512,
cegTag = [[beamweapon_muzzle_purple]],
commandFire = true,
craterBoost = 0,
craterMult = 0,... | gpl-2.0 |
pmarkus/backpack | libs/AceConsole-3.0/AceConsole-3.0.lua | 31 | 8339 | --- **AceConsole-3.0** provides registration facilities for slash commands.
-- You can register slash commands to your custom functions and use the `GetArgs` function to parse them
-- to your addons individual needs.
--
-- **AceConsole-3.0** can be embeded into your addon, either explicitly by calling AceConsole:Embed(... | gpl-3.0 |
mendsley/premake-core | tests/_tests.lua | 1 | 1545 | return {
-- Base API tests
"test_string.lua",
"base/test_aliasing.lua",
"base/test_configset.lua",
"base/test_context.lua",
"base/test_criteria.lua",
"base/test_detoken.lua",
"base/test_include.lua",
"base/test_module_loader.lua",
"base/test_option.lua",
"base/test_os.lua",
"base/test_override.l... | bsd-3-clause |
Invertika/data | scripts/maps/ow-n0023-n0020-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
xDShot/csgo_knives_sweps | lua/weapons/csgo_bowie_marblefade.lua | 1 | 2425 | if not file.Exists( "weapons/csgo_baseknife.lua", "LUA" ) then
SWEP.Spawnable = false
print( "csgo_bowie_marblefade failed to initialize: csgo_baseknife.lua not found. Did you install the main part?" )
return
end
local TTT = ( GAMEMODE_NAME == "terrortown" or cvars.Bool("csgo_knives_force_ttt", false) )
DEFINE_... | mit |
zjohn4/PD2-lua-src | lib/managers/missionassetsmanager.lua | 1 | 16492 | MissionAssetsManager = MissionAssetsManager or class()
MissionAssetsManager.ALLOW_CLIENTS_UNLOCK = true
function MissionAssetsManager:init()
self:_setup()
end
function MissionAssetsManager:_setup()
self._asset_textures_in_loading = {}
self._asset_textures_loaded = {}
local assets = {}
-- if Global.asset_manage... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0014-p0009-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-n0005-n0025-o0000.lua | 1 | 1398 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
chandra1087/vpn989group | plugins/links.lua | 8 | 2484 | local config = require 'config'
local u = require 'utilities'
local api = require 'methods'
local plugin = {}
function plugin.onTextMessage(msg, blocks)
if msg.chat.type == 'private' then return end
if not u.is_allowed('texts', msg.chat.id, msg.from) then return end
local hash = 'chat:'..msg.chat.id..':links'... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0021-p0016-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
MeteoricGames/pioneer | data/ui/StationView/CommodityMarket.lua | 1 | 1137 | -- Copyright © 2008-2014 Pioneer Developers. See AUTHORS.txt for details
-- Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
local Engine = import("Engine")
local Lang = import("Lang")
local Game = import("Game")
local ShipDef = import("ShipDef")
local EquipDef = import("EquipDef")
local Comms = import("... | gpl-3.0 |
zjohn4/PD2-lua-src | lib/units/weapons/npcsniperriflebase.lua | 1 | 1273 | NPCSniperRifleBase = NPCSniperRifleBase or class( NPCRaycastWeaponBase )
NPCSniperRifleBase.TRAIL_EFFECT = Idstring( "effects/particles/weapons/sniper_trail" )
local idstr_trail = Idstring( "trail" )
local idstr_simulator_length = Idstring( "simulator_length" )
local idstr_size = Idstring( "size" )
function NPCSniper... | gpl-2.0 |
zjohn4/PD2-lua-src | lib/network/networkgame.lua | 1 | 30260 | require "lib/network/NetworkMember"
require "lib/network/handlers/UnitNetworkHandler"
NetworkGame = NetworkGame or class()
function NetworkGame:init()
self._members = {}
self._spawn_point_beanbag = nil -- the above spawn_points in random order
self._dropin_pause_info = {} -- Counts how many times we have been a... | gpl-2.0 |
openwrt-1983/my_openwrt_mod | luci/protocols/shadowvpn/luasrc/model/network/proto_shadowvpn.lua | 5 | 1431 | --[[
LuCI - Network model - ShadowVPN protocol extension
Copyright 2014 RA <ravageralpha@gmail.com>
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
Unl... | mit |
zjohn4/PD2-lua-src | lib/network/extensions/cop/huskcopbrain.lua | 1 | 5318 | local tmp_vec1 = Vector3()
HuskCopBrain = HuskCopBrain or class()
HuskCopBrain._NET_EVENTS = {
weapon_laser_on = 1,
weapon_laser_off = 2
}
function HuskCopBrain:init( unit )
self._unit = unit
end
-----------------------------------------------------------------------------------
function HuskCopBrain:post_init... | gpl-2.0 |
stephen322/prosody-modules | mod_s2soutinjection/mod_s2soutinjection.lua | 32 | 1798 | local st = require"util.stanza";
local new_ip = require"util.ip".new_ip;
local new_outgoing = require"core.s2smanager".new_outgoing;
local bounce_sendq = module:depends"s2s".route_to_new_session.bounce_sendq;
local s2sout = module:depends"s2s".route_to_new_session.s2sout;
local injected = module:get_option("s2s_connec... | mit |
Invertika/data | scripts/maps/ow-p0012-n0014-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
ld-test/tethys | tethys2/plugins/filter/MySQL.lua | 2 | 4015 | module(..., package.seeall)
local oo = require "loop.simple"
local Plugin = require 'tethys2.plugins.filter.Plugin'
local SQL = require 'tethys2.util.SQL'
require'config'
new = oo.class({}, Plugin.class)
MySQL = new
class = new
MySQL.schemas =
{
tDropFilter = [[
CREATE TABLE tDropFilter (
dft_i_id IN... | gpl-3.0 |
splay-project/splay | src/rpc_client/native_libs_examples/grid_sample.lua | 1 | 4059 | --[[
Splay Client Commands ### v1.1 ###
Copyright 2006-2011
http://www.splay-project.org
]]
--[[
This file is part of Splay.
Splay 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 ve... | gpl-3.0 |
zjohn4/PD2-lua-src | core/lib/compilers/corecutscenecompiler.lua | 1 | 2644 | require "core/lib/compilers/CoreCompilerSystem"
require "core/lib/compilers/CoreCutsceneOptimizer"
require "core/lib/utils/dev/tools/cutscene_editor/CoreCutsceneEditorProject"
require "core/lib/utils/dev/tools/cutscene_editor/CoreCutsceneFootage"
CoreCutsceneCompiler = CoreCutsceneCompiler or class()
function CoreCut... | gpl-2.0 |
jcai1/WowCoding | sync-lua/Transmission.lua | 1 | 5594 | local requireRel
if arg then package.path=arg[0]:match("(.-)[^\\/]+$").."?.lua;"..package.path;requireRel=require
elseif...then local d=(...):match("(.-)[^%.]+$")function requireRel(m)return require(d..m)end end
local bit = require("bit")
local LibCompress = requireRel("LibCompress")
local AceSerializer = ... | mit |
724789975/FxLib | Server/Debug/scripts/cmd_param.lua | 2 | 2276 | require "alt_getopt"
--看命令行是干什么的 要是查看信息的话 就不进行游戏
local function Help(strParam)
print("help info")
end
local function Version(strParam)
print("version info")
end
local function SetPort(strParam)
g_dwPort = tonumber(strParam)
end
local function SetIp(strParam)
g_strIp = strParam
end
local function SetIndex_l(str... | mit |
TeleMidia/dietncl | tests/test-filter-functions-smix.lua | 1 | 8362 | --[[ Copyright (C) 2013-2017 PUC-Rio/Laboratorio TeleMidia
This file is part of DietNCL.
DietNCL 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 ver... | gpl-2.0 |
GoogleFrog/Zero-K | LuaUI/i18nlib/i18n/plural.lua | 30 | 7309 | local plural = {}
local defaultFunction = nil
-- helper functions
local function assertPresentString(functionName, paramName, value)
if type(value) ~= 'string' or #value == 0 then
local msg = "Expected param %s of function %s to be a string, but got %s (a value of type %s) instead"
error(msg:format(paramName... | gpl-2.0 |
GoogleFrog/Zero-K | scripts/factorytank.lua | 10 | 4987 | --by Andrew Rapp (luckywaldo7)
include "constants.lua"
local spGetUnitTeam = Spring.GetUnitTeam
--pieces
local base = piece "base"
local wing_1 = piece "wing_1"
local bay_1 = piece "bay_1"
local arm_1 = piece "arm_1"
local nano_1 = piece "nano_1"
local emit_1 = piece "emit_1"
local pow_1 = piece "pow_1"
local wing... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0004-p0017-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Exadios/XCSoar-the-library | Data/Lua/gce.lua | 18 | 1955 |
-- registration function
function bind_events(t, verbose)
for key,value in pairs(t) do
xcsoar.input_event.new(key,
function(e)
if (verbose) then
print(key); -- logging of events
end
... | gpl-2.0 |
sentinel88/slurm | contribs/lua/job_submit.lua | 14 | 1963 | --[[
Example lua script demonstrating the SLURM job_submit/lua interface.
This is only an example, not meant for use in its current form.
Leave the function names, arguments, local varialbes and setmetatable
set up logic in each function unchanged. Change only the logic after
the line containing "*** YOUR LOGIC ... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0016-n0023-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | units/chicken.lua | 4 | 4426 | unitDef = {
unitname = [[chicken]],
name = [[Chicken]],
description = [[Swarmer]],
acceleration = 0.36,
brakeRate = 0.205,
buildCostEnergy = 0,
buildCostMetal = 0,
builder = false,
buildPic = [[chicken.png]],
buildTim... | gpl-2.0 |
anoidgit/Simple-RNN | aLSTM.lua | 1 | 30677 | --[[
The GNU GENERAL PUBLIC LICENSE Version 3
Copyright (c) 2016 Hongfei Xu
This scripts implement a standard vanilla LSTM:
i[t] = σ(W[x->i]x[t] + W[h->i]h[t−1] + W[c->i]c[t−1] + b[1->i]) (1)
f[t] = σ(W[x->f]x[t] + W[h->f]h[t−1] + W[c->f]c[t−1] + b[1->f]) (2)
z[t] = tanh(W[x->c]x[t] + W[h->c]h[t−1] +... | gpl-3.0 |
Invertika/data | scripts/maps/ow-n0002-n0007-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
dvdvideo1234/wire | lua/entities/gmod_wire_expression2/core/gametick.lua | 6 | 1325 | /******************************************************************************\
Game tick callback support
\******************************************************************************/
local registered_chips = {}
local tickrun = 0
registerCallback("destruct",function(self)
registered_chips[self.entity] = nil
e... | apache-2.0 |
xDShot/csgo_knives_sweps | lua/weapons/csgo_daggers_fade.lua | 1 | 2409 | if not file.Exists( "weapons/csgo_baseknife.lua", "LUA" ) then
SWEP.Spawnable = false
print( "csgo_daggers_fade failed to initialize: csgo_baseknife.lua not found. Did you install the main part?" )
return
end
local TTT = ( GAMEMODE_NAME == "terrortown" or cvars.Bool("csgo_knives_force_ttt", false) )
DEFINE_BASE... | mit |
techiejohn/SimTools | GoFlight/GoFlightDukeT.lua | 2 | 1449 | function ToggleFuel(short)
if (ipc.readLvar("fuelPumpSwitchL") == 1 and ipc.readLvar("fuelPumpSwitchR") == 1) then
if (short) then
ipc.writeLvar("fuelPumpSwitchL", 2)
ipc.writeLvar("fuelPumpSwitchR", 2)
else
ipc.writeLvar("fuelPumpSwitchL", 0)
ipc.writeLvar("fuelPumpSwitchR", 0)
end
else
ipc.write... | mit |
zjohn4/PD2-lua-src | lib/network/base/networkmanager.lua | 1 | 18533 | require "lib/network/base/BaseNetworkSession"
require "lib/network/base/ClientNetworkSession"
require "lib/network/base/HostNetworkSession"
require "lib/network/matchmaking/NetworkAccount"
require "lib/network/matchmaking/NetworkAccountPSN"
require "lib/network/matchmaking/NetworkAccountSTEAM"
require "lib/network/mat... | gpl-2.0 |
GoogleFrog/Zero-K | LuaUI/Widgets/snd_music.lua | 6 | 11605 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: gui_music.lua
-- brief: yay music
-- author: cake
--
-- Copyright (C) 2007.
-- Licensed under the terms of the GNU GPL, v2 or later.
--
---------... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0008-p0009-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
ls-/oUF | elements/phaseindicator.lua | 3 | 2438 | --[[
# Element: Phasing Indicator
Toggles the visibility of an indicator based on the unit's phasing relative to the player.
## Widget
PhaseIndicator - Any UI widget.
## Notes
A default texture will be applied if the widget is a Texture and doesn't have a texture or a color set.
## Examples
-- Position and s... | mit |
runner-mei/mongrel2 | examples/bbs/db.lua | 96 | 1086 | local strict = require 'strict'
local sidereal = require 'sidereal'
local table_concat = table.concat
local print = print
local assert = assert
module 'db'
local DB = assert(sidereal.connect('localhost', 6379))
function reconnect()
return sidereal.connect('localhost', 6379)
end
local function format_message(use... | bsd-3-clause |
GoogleFrog/Zero-K | effects/smoke.lua | 25 | 1123 | -- smoke2
-- smoke
return {
["smoke2"] = {
smoke1 = {
air = true,
class = [[smoke]],
count = 1,
ground = false,
water = false,
properties = {
agespeed = 0.05,
color = 0.3,
... | gpl-2.0 |
zjohn4/PD2-lua-src | lib/managers/environmenteffectsmanager.lua | 1 | 19218 | -- The EnvironmentEffectsManager holds different kinds of environment effects. The can be started by calling
-- the use function with desired effect. They can be stopped using the stop function or all can be stopped with stop_all
-- All effects should inherit EnvironmentEffect
core:import( "CoreEnvironmentEffectsMana... | gpl-2.0 |
dvdvideo1234/wire | lua/entities/gmod_wire_expression2/base/ast.lua | 7 | 3294 | -- The E2 source code is parsed into a tree structure, known as an 'abstract
-- syntax tree' or AST. This file provides utilities for operating on nodes of
-- this tree generically.
AddCSLuaFile()
E2Lib.AST = {}
local function genericChildVisitor(node, action)
for i = 3, #node do
local child = node[i]
... | apache-2.0 |
HFRBOT/- | reple2.lua | 1 | 14827 | -- made by { @kaastro }
do
ws = {}
rs = {}
-- some examples of how to use this :3
ws[1] = "هلاو"
rs[1] = "هلاوو99وووات نورت/ي ❤️🙈"
ws[2] = "هلو" -- msg
rs[2] = "هلاوات 🙈❤️" -- reply
ws[3] = "شلونكم" -- msg
rs[3] = "الحمدلله وانته 🌚🍃" -- reply
ws[4] = "دووم" -- msg
rs[4] = "يدوم نبضك ❤️🍃" -- reply
ws[5] = "... | gpl-2.0 |
stephen322/prosody-modules | mod_http_altconnect/mod_http_altconnect.lua | 32 | 1829 | -- mod_http_altconnect
-- XEP-0156: Discovering Alternative XMPP Connection Methods
module:depends"http";
local json = require"util.json";
local st = require"util.stanza";
local array = require"util.array";
local host_modules = hosts[module.host].modules;
local function get_supported()
local uris = array();
if ho... | mit |
coypoop/npfUI | website.lua | 1 | 7677 | package.path = 'lib/?.lua'
require 'common'
require 'csrf'
local httpd = require 'httpd'
function print_begin()
httpd.write("HTTP/1.1 200 Ok\r\n")
httpd.write("Content-Type: text/html\r\n\r\n")
httpd.print([[
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
... | bsd-2-clause |
mendsley/premake-core | modules/vstudio/tests/sln2005/test_header.lua | 13 | 1383 | --
-- tests/actions/vstudio/sln2005/test_header.lua
-- Validate generation of Visual Studio 2005+ solution header.
-- Copyright (c) 2009-2014 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vstudio_sln2005_header")
local sln2005 = p.vstudio.sln2005
--
-- Setup
--
local wks... | bsd-3-clause |
noahchense/nodemcu-firmware | lua_modules/email/imap.lua | 81 | 6275 | ---
-- Working Example: https://www.youtube.com/watch?v=PDxTR_KJLhc
-- IMPORTANT: run node.compile("imap.lua") after uploading this script
-- to create a compiled module. Then run file.remove("imap.lua")
-- @name imap
-- @description An IMAP 4rev1 module that can be used to read email.
-- Tested on NodeMCU 0.9.5 buil... | mit |
tobi-wan-kenobi/dotfiles | config/awesome/misc/workspace.lua | 1 | 4035 | local gears = require("gears")
local awful = require("awful")
local beautiful = require("beautiful")
local wibox = require("wibox")
-- custom requires
local taglist = require("misc.taglist")
local bountiful = require("bountiful")
local workspace = {}
function workspace.set_wallpaper(screen)
if beautiful.wallpaper th... | mit |
Invertika/data | scripts/maps/ow-n0025-n0014-o0000.lua | 1 | 1401 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-p0011-p0016-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
bestofkeeperbot/yourkeeperbot | plugins/torrent_search.lua | 411 | 1622 | --[[ NOT USED DUE TO SSL ERROR
-- See https://getstrike.net/api/
local function strike_search(query)
local strike_base = 'http://getstrike.net/api/v2/torrents/'
local url = strike_base..'search/?phrase='..URL.escape(query)
print(url)
local b,c = http.request(url)
print(b,c)
local search = json:decode(b)
v... | gpl-2.0 |
TheSuperAlaa/TheSuperBot | plugins/stats.lua | 3 | 4650 | --[[
_____ _ _ _ _____ Dev @lIMyIl
|_ _|__| |__ / \ | | _| ____| Dev @li_XxX_il
| |/ __| '_ \ / _ \ | |/ / _| Dev @h_k_a
| |\__ \ | | |/ ___ \| <| |___ Dev @Aram_omar22
|_||___/_| |_/_/ \_\_|\_\_____| Dev @IXX_I_XXI
CH > @lTSHAKEl_CH
--]]
d... | gpl-2.0 |
xDShot/csgo_knives_sweps | lua/weapons/csgo_daggers_greyscaled.lua | 1 | 2427 | if not file.Exists( "weapons/csgo_baseknife.lua", "LUA" ) then
SWEP.Spawnable = false
print( "csgo_daggers_greyscaled failed to initialize: csgo_baseknife.lua not found. Did you install the main part?" )
return
end
local TTT = ( GAMEMODE_NAME == "terrortown" or cvars.Bool("csgo_knives_force_ttt", false) )
DEFIN... | mit |
Invertika/data | scripts/maps/ow-n0021-p0013-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
MeteoricGames/pioneer | data/libs/SpaceStation.lua | 1 | 12071 | -- Copyright © 2008-2014 Pioneer Developers. See AUTHORS.txt for details
-- Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
local SpaceStation = import_core("SpaceStation")
local Event = import("Event")
local Space = import("Space")
local utils = import("utils")
local ShipDef = import("ShipDef")
local E... | gpl-3.0 |
Invertika/data | scripts/maps/ow-p0016-n0005-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
remakeelectric/luci | applications/luci-app-p910nd/luasrc/model/cbi/p910nd.lua | 78 | 1340 | -- Copyright 2008 Yanira <forum-2008@email.de>
-- Copyright 2012 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local uci = luci.model.uci.cursor_state()
local net = require "luci.model.network"
local m, s, p, b
m = Map("p910nd", translate("p910nd - Printer server"),
... | apache-2.0 |
dmccuskey/dmc-patch | dmc_corona/dmc_patch.lua | 14 | 3746 | --====================================================================--
-- dmc_corona/dmc_patch.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2015 David McCuskey
Permission is hereby granted,... | mit |
Dual-Boxing/MultiBoxMaster | MultiBoxMaster/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua | 47 | 8796 | --[[ $Id: CallbackHandler-1.0.lua 18 2014-10-16 02:52:20Z mikk $ ]]
local MAJOR, MINOR = "CallbackHandler-1.0", 6
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}
-- Lua A... | mit |
thebenign/IronStar | assets/maps/01.lua | 1 | 9974 | return {
version = "1.1",
luaversion = "5.1",
tiledversion = "0.17.0",
orientation = "orthogonal",
renderorder = "right-down",
width = 52,
height = 52,
tilewidth = 50,
tileheight = 50,
nextobjectid = 1,
properties = {},
tilesets = {
{
name = "Walls",
firstgid = 1,
tilewidth... | agpl-3.0 |
Invertika/data | scripts/maps/ow-n0013-p0003-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
BloodyKnight/nginx-openresty-windows | lua-resty-dns-0.14/t/lib/ljson.lua | 76 | 1871 | local ngx_null = ngx.null
local tostring = tostring
local byte = string.byte
local gsub = string.gsub
local sort = table.sort
local pairs = pairs
local ipairs = ipairs
local concat = table.concat
local ok, new_tab = pcall(require, "table.new")
if not ok then
new_tab = function (narr, nrec) return {} end
end
local... | bsd-2-clause |
Invertika/data | scripts/maps/ow-n0023-p0022-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
jonathantompson/cunn | DataParallelTable.lua | 1 | 20125 | local gpuLocalCopyBuffers = {}
local baseGpuIndex = 1 -- A constant
-- *****************************************************************************
-- Helper Functions
-- *****************************************************************************
-- queryGPUDeviceId - Function to query a tensor or table for the
--... | bsd-3-clause |
Invertika/data | scripts/maps/ow-p0006-o0000-o0000.lua | 1 | 1403 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
dvdvideo1234/wire | lua/entities/gmod_wire_weight.lua | 8 | 1057 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Weight"
ENT.WireDebugName = "Weight"
if CLIENT then return end -- No more client
local MODEL = Model("models/props_interiors/pot01a.mdl")
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
... | apache-2.0 |
GoogleFrog/Zero-K | scripts/armmanni.lua | 4 | 3711 | include "constants.lua"
local base = piece 'base'
local turret = piece 'turret'
local gun = piece 'barrel1'
local wheels1 = piece 'frdirt'
local wheels2 = piece 'fldirt'
local wheels3 = piece 'rrdirt'
local wheels4 = piece 'rldirt'
local frpontoon = piece 'frpontoon'
local flpontoon = piece 'flpontoon'
local ... | gpl-2.0 |
teleofis/OpenWRT | feeds/luci/modules/luci-base/luasrc/sgi/cgi.lua | 81 | 1688 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
exectime = os.clock()
module("luci.sgi.cgi", package.seeall)
local ltn12 = require("luci.ltn12")
require("nixio.util")
require("luci.http")
require("luci.sys")
require("luci.dispatcher")
-- Limited source to av... | gpl-2.0 |
xDShot/csgo_knives_sweps | lua/weapons/csgo_karambit_case.lua | 1 | 2429 | if not file.Exists( "weapons/csgo_baseknife.lua", "LUA" ) then
SWEP.Spawnable = false
print( "csgo_karambit_case failed to initialize: csgo_baseknife.lua not found. Did you install the main part?" )
return
end
local TTT = ( GAMEMODE_NAME == "terrortown" or cvars.Bool("csgo_knives_force_ttt", false) )
DEFINE_BAS... | mit |
mortezamosavy999/mm | plugins/Close_group.lua | 32 | 1646 | local function kick_user(user_id, chat_id)
local chat = 'chat#id'..chat_id
local user = 'user#id'..user_id
chat_del_user(chat, user, ok_cb, true)
end
local function returnids(cb_extra, success, result)
local receiver = cb_extra.receiver
local chat_id = result.id
local chatname = result.print_name
loc... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0023-n0004-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | scripts/armamd.lua | 16 | 2605 | include "constants.lua"
--------------------------------------------------------------------------------
-- pieces
--------------------------------------------------------------------------------
local base, door1, door2, brace, missile, aimpoint = piece('base', 'door1', 'door2', 'brace', 'missile', 'aimpoint')
loca... | gpl-2.0 |
GoogleFrog/Zero-K | gamedata/modularcomms/unlocks.lua | 2 | 12139 | --ID,Code,Name,XpCost,Level,RequiredID,Type,Morph,MaxCount,Limit,Chassis,Metal,Metal2,Metal3,Metal4
local unlocks = {
[1] = {
code = "corcom",
name = "Battle Commander",
xp = 350,
level = 5,
type = "Chassis",
maxCount = 1,
morphCost = {300,900,600},
},
[2] = {
code = "commrecon",
name = "Recon Co... | gpl-2.0 |
zjohn4/PD2-lua-src | lib/managers/mission/elementmissionfilter.lua | 1 | 1140 | core:import( "CoreMissionScriptElement" )
ElementMissionFilter = ElementMissionFilter or class( CoreMissionScriptElement.MissionScriptElement )
function ElementMissionFilter:init( ... )
ElementMissionFilter.super.init( self, ... )
end
function ElementMissionFilter:client_on_executed( ... )
self:on_executed( ... )... | gpl-2.0 |
eladhoffer/lmdb.torch | DB.lua | 1 | 8587 | require 'xlua'
require 'dok'
local C = lmdb.C
local ffi = require 'ffi'
---------------------------------------------env-------------------------------------------
local env = torch.class('lmdb.env')
function env:__init(...)
local args = dok.unpack(
{...},
'DB:open',
'Initializes a LMDB Database',
... | mit |
Invertika/data | scripts/maps/ow-n0025-n0023-o0000.lua | 1 | 1401 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-n0010-p0020-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-p0021-n0018-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-n0014-n0016-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-p0014-n0016-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | LuaRules/Gadgets/typemap_options.lua | 3 | 3596 |
function gadget:GetInfo()
return {
name = "Typemap Options",
desc = "Edit's the map's typemap at the start of the game.",
author = "Google Frog",
date = "Feb, 2010",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true -- loaded by default?
}
end
loc... | gpl-2.0 |
tickbh/tdengine_cocos2dx_demo | tdengine_ddz/src/global/base/string_util.lua | 2 | 1094 | -- string_util.lua
-- 字符帮助类
local empty_filter = " "
local empty_map = {}
function is_contain_empty_char(str)
local map = get_str_map(str)
for empty,_ in pairs(empty_map) do
if map[empty] then
return true
end
end
return false
end
function get_utf8_count(str)
local _, ... | apache-2.0 |
zjohn4/PD2-lua-src | lib/units/enemies/cop/actions/full_body/copactionhurt.lua | 1 | 38181 | local mvec3_set = mvector3.set
local mvec3_set_z = mvector3.set_z
local mvec3_set_l = mvector3.set_length
local mvec3_sub = mvector3.subtract
local mvec3_add = mvector3.add
local mvec3_mul = mvector3.multiply
local mvec3_dot = mvector3.dot
local mvec3_cross = mvector3.cross
local mvec3_norm = mvector3.normalize
local m... | gpl-2.0 |
zjohn4/PD2-lua-src | lib/managers/menu/debugstringsboxgui.lua | 1 | 6514 | DebugStringsBoxGui = DebugStringsBoxGui or class( TextBoxGui )
function DebugStringsBoxGui:init( ws, title, text, content_data, config, file )
self._file = file
config = config or {}
config.h = 300
config.w = 300
local x,y = ws:size()
config.x = x - config.w
config.y = y - config.h - CoreMenuRenderer.Renderer.... | gpl-2.0 |
GoogleFrog/Zero-K | scripts/assaultcruiser.lua | 16 | 4062 | include 'constants.lua'
--------------------------------------------------------------------
--pieces
--------------------------------------------------------------------
local base, lowerhull, upperhull, antenna, radarbase, radardish = piece('base', 'lowerhull', 'upperhull', 'antenna', 'radarbase', 'radardish')
local... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0009-n0017-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
fliping/flip | main.lua | 2 | 1242 | -- -*- 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 2014, Pagoda Box, Inc.
-- @doc
--
-- @end
-- Created : 4 Feb 2015 by Daniel Barney ... | mit |
GoogleFrog/Zero-K | LuaRules/Utilities/isTargetReachable.lua | 18 | 1053 | --This function process result of Spring.PathRequest() to say whether target is reachable or not
function Spring.Utilities.IsTargetReachable (moveID, ox,oy,oz,tx,ty,tz,radius)
local result,lastcoordinate, waypoints
local path = Spring.RequestPath( moveID,ox,oy,oz,tx,ty,tz, radius)
if path then
local waypoint = pat... | gpl-2.0 |
Meoo/premake-core | scripts/test.lua | 15 | 1116 | ---
-- Premake automated test runner.
---
include "../tests/testfx.lua"
local focus = {}
if _OPTIONS["test"] then
focus = string.explode(_OPTIONS["test"] or "", ".", true)
end
--
-- Find and load all of the test file manifests
--
local mask = path.join(_MAIN_SCRIPT_DIR, "**/tests/_tests.lu... | bsd-3-clause |
zjohn4/PD2-lua-src | lib/units/editor/secretassignmentelement.lua | 1 | 1428 | SecretAssignmentUnitElement = SecretAssignmentUnitElement or class( MissionElement )
function SecretAssignmentUnitElement:init( unit )
SecretAssignmentUnitElement.super.init( self, unit )
self._hed.set_enabled = false
self._hed.assignment = "none"
table.insert( self._save_values, "set_enabled" )
table.inser... | gpl-2.0 |
giuseppeM99/Utility-Bot | plugins/plugins.lua | 4 | 8284 | 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 ... | gpl-3.0 |
matortheeternal/fractal-miner | koch_cube/init.lua | 1 | 2753 | -- Import Helpers
dofile(minetest.get_modpath("fractal_helpers").."/helpers.lua")
-- Parameters
local YWATER = -31000
local fractal_iteration = 4 -- min value 0, max value 10
local DEBUG = true
local fractal_block = minetest.get_content_id("default:desert_stone")
-- Set mapgen parameters
local fractal_size = math.pow... | mit |
mendsley/premake-core | tests/oven/test_objdirs.lua | 16 | 1925 | ---
-- tests/oven/test_objdirs.lua
-- Test the per-configuration object directory assignments.
-- Copyright (c) 2014-2015 Jason Perkins and the Premake project
---
local p = premake
local suite = test.declare("oven_objdirs")
local oven = p.oven
---
-- Setup
---
local wks, prj
function suite.setup()
wks = wor... | bsd-3-clause |
GoogleFrog/Zero-K | units/corpyro.lua | 4 | 7722 | unitDef = {
unitname = [[corpyro]],
name = [[Pyro]],
description = [[Raider/Riot Jumper]],
acceleration = 0.4,
brakeRate = 0.4,
buildCostEnergy = 220,
buildCostMetal = 220,
builder = false,
buildPic = ... | gpl-2.0 |
Reda9991/DevRode | plugins/ar-ads.lua | 7 | 1328 | local function run(msg, matches)
if is_momod(msg) then
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)] then
if data[tostring(msg.to.id)]['settings'] then
if data[tostring(msg.to.id)]['settings']['lock_ads'] then
... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.