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
rlcevg/Zero-K
LuaUI/Fonts/FreeSansBold_16.lua
26
33900
-- $Id: FreeSansBold_16.lua 3171 2008-11-06 09:06:29Z det $ local fontSpecs = { srcFile = [[FreeSansBold.ttf]], family = [[FreeSans]], style = [[Bold]], yStep = 17, height = 16, xTexSize = 512, yTexSize = 256, outlineRadius = 2, outlineWeight = 100, } local glyphs = {} glyphs[32] = { --'...
gpl-2.0
EliHar/Pattern_recognition
torch1/install/share/lua/5.1/dpnn/ReinforceGamma.lua
4
4207
------------------------------------------------------------------------ --[[ ReinforceGamma ]]-- -- Ref A. http://incompleteideas.net/sutton/williams-92.pdf -- Inputs are shape (k) and scale (theta) of multivariate Gamma distribution. -- Ouputs are samples drawn from these distributions. -- Scale is provided as cons...
mit
samyk/proxmark3
client/luascripts/hf_mf_mini_dumpdecrypt.lua
1
17027
--- -- requirements local cmds = require('commands') local getopt = require('getopt') local utils = require('utils') local lib14a = require('read14a') local json = require('dkjson') local toys = require('default_toys_di') local ansicolors = require('ansicolors') copyright = '' author = 'Iceman' version = 'v1.0.2' des...
gpl-2.0
milanlenco/vpp
src/vpp-api/lua/examples/cli/lua-cli.lua
5
17107
--[[ /* * Copyright (c) 2016 Cisco and/or its affiliates. * 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 appl...
apache-2.0
anholt/ValyriaTear
dat/maps/layna_forest/layna_forest_cave1_1_script.lua
1
26171
-- Set the namespace according to the map name. local ns = {}; setmetatable(ns, {__index = _G}); layna_forest_cave1_1_script = ns; setfenv(1, ns); -- The map name, subname and location image map_name = "Layna Forest Cave" map_image_filename = "img/menus/locations/desert_cave.png" map_subname = "" -- The music file us...
gpl-2.0
cpcloud/arrow
c_glib/example/lua/read-batch.lua
10
1572
-- 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 may...
apache-2.0
Unrepentant-Atheist/mame
3rdparty/genie/tests/actions/xcode/test_xcode_dependencies.lua
20
9645
-- -- tests/actions/xcode/test_xcode_dependencies.lua -- Automated test suite for Xcode project dependencies. -- Copyright (c) 2009-2011 Jason Perkins and the Premake project -- T.xcode3_deps = { } local suite = T.xcode3_deps local xcode = premake.xcode ----------------------------------------------------------...
gpl-2.0
ViolyS/RayUI_VS
Interface/AddOns/RayUI/mini/DragEmAll/DragEmAll.lua
2
7997
local addon = CreateFrame("Frame") -- Based on the frame list from NDragIt by Nemes. -- These frames are hooked on login. local frames = { -- ["FrameName"] = true (the parent frame should be moved) or false (the frame itself should be moved) -- for child frames (i.e. frames that don't have a name, but only a p...
mit
anholt/ValyriaTear
dat/objects/head_armor.lua
1
3283
------------------------------------------------------------------------------[[ -- Filename: head_armor.lua -- -- Description: This file contains the definitions of all head armor. -- Each armor has a unique integer identifier that is used -- as its key in the armor table below. Armor IDs are unique not only among -- ...
gpl-2.0
Codex-NG/forgottenserver
data/creaturescripts/scripts/playerdeath.lua
32
3253
local deathListEnabled = true local maxDeathRecords = 5 function onDeath(player, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified) local playerId = player:getId() if nextUseStaminaTime[playerId] ~= nil then nextUseStaminaTime[playerId] = nil end player:sendTextMessage(MESSAGE_EVENT_ADVANCE, ...
gpl-2.0
kevinr/cuberite
Server/Plugins/APIDump/Hooks/OnPreCrafting.lua
36
1523
return { HOOK_PRE_CRAFTING = { CalledWhen = "Before the built-in recipes are checked.", DefaultFnName = "OnPreCrafting", -- also used as pagename Desc = [[ This hook is called when a {{cPlayer|player}} changes contents of their {{cCraftingGrid|crafting grid}}, before the built-in recipes are searched for...
apache-2.0
EliHar/Pattern_recognition
torch1/install/share/lua/5.1/ffi/test.lua
3
30840
-- vim: ts=4 sw=4 sts=4 et tw=78 -- Portions copyright (c) 2015-present, Facebook, Inc. All rights reserved. -- Portions copyright (c) 2011 James R. McKaskill. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of...
mit
AlexMili/torch-dataframe
specs/utils/utils_spec.lua
1
2978
require 'lfs' -- Ensure the test is launched within the specs/ folder assert(string.match(lfs.currentdir(), "specs")~=nil, "You must run this test in specs folder") local initial_dir = lfs.currentdir() -- Go to specs folder while (not string.match(lfs.currentdir(), "/specs$")) do lfs.chdir("..") end local specs_d...
mit
rlcevg/Zero-K
LuaUI/Widgets/unit_building_starter.lua
12
2690
-- $Id$ function widget:GetInfo() return { name = "Building Starter", desc = "v2 Hold Q to queue a building to be started and not continued.", author = "Google Frog", date = "Dec 13, 2008", license = "GNU GPL, v2 or later", layer = 5, enabled = true -- loaded b...
gpl-2.0
rlcevg/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
TeleBang/bangtg
plugins/all.lua
184
4452
do local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print_name(user)..' ['..user_id..']' return u...
agpl-3.0
Amadiro/obtuse-tanuki
libs/material-love/libs/ripple.lua
2
4659
local ripple = {} local ease = function (time, ftime) local p = time / ftime local e = -p * (p - 2) return e end local lg = love.graphics ripple.fade = function (self) if self.type == "stencil" then return self:fade() end if self.active then self.ripples[#self.ripples + 1] = self.active self.active = n...
mit
EliHar/Pattern_recognition
torch1/extra/nn/Linear.lua
9
3624
local Linear, parent = torch.class('nn.Linear', 'nn.Module') function Linear:__init(inputSize, outputSize, bias) parent.__init(self) local bias = ((bias == nil) and true) or bias self.weight = torch.Tensor(outputSize, inputSize) self.gradWeight = torch.Tensor(outputSize, inputSize) if bias then se...
mit
rlcevg/Zero-K
effects/armtick_explosion.lua
12
4912
-- armtick_explosion -- based on gundam_electric_explosion.lua return { ["armtick_explosion"] = { dirt = { count = 4, ground = true, properties = { alphafalloff = 2, alwaysvisible = true, color = [[0.2, 0.1, 0.05]], ...
gpl-2.0
abdllhbyrktr/Urho3D
Source/ThirdParty/LuaJIT/dynasm/dasm_ppc.lua
33
57489
------------------------------------------------------------------------------ -- DynASM PPC/PPC64 module. -- -- Copyright (C) 2005-2016 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. -- -- Support for various extensions contributed by Caio Souza Oliveira. ---------------------------------...
mit
cailyoung/CommandPost
src/extensions/cp/developer/init.lua
1
7531
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- D E V E L O P E R T O O L S -- -----------------------------------------------------------------------------...
mit
notcake/glib
lua/glib/garrysmod/net/layer2/channel.lua
2
2443
local self = {} GLib.Net.Layer2.Channel = GLib.MakeConstructor (self, GLib.Net.Layer2.Channel) function self:ctor (channelName, handler) self.UsermessageChannel = GLib.Net.Layer1.UsermessageChannel (channelName, handler) self.NetChannel = GLib.Net.Layer1.NetChannel (channelName, handler) self.SplitPacketCha...
gpl-3.0
tarfandland/anti1
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
sikkonbavkia/kia
libs/serpent.lua
656
7877
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
gpl-2.0
joole/private-pkgs
luci/applications/luci-app-coovachilli/luasrc/model/cbi/coovachilli_radius.lua
79
1554
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. m = Map("coovachilli") -- radius server s1 = m:section(TypedSection, "radius") s1.anonymous = true s1:option( Value, "radiusserver1" ) s1:option( Value, "rad...
gpl-2.0
SonyWWS/SLED
wws_lua/lua-5.2.3/src/lua-5.2.3.lua
1
1207
-- Copyright (c) Sony Computer Entertainment America LLC. -- All rights Reserved. -- -- Premake build script for the lua 5.2.3 library -- sdk_project "lua-5.2.3" sdk_build_location ".." sdk_kind "Library" uuid "DFE31890-74BB-4EEB-AC15-1D003211FED6" language "C" configurations { sdk.DEBUG, sdk.RELEASE } pl...
apache-2.0
cloudkick/ck-agent
extern/lanes/src/lanes.lua
1
20619
-- -- LANES.LUA -- -- Multithreading and -core support for Lua -- -- Author: Asko Kauppi <akauppi@gmail.com> -- -- History: -- Jun-08 AKa: major revise -- 15-May-07 AKa: pthread_join():less version, some speedup & ability to -- handle more threads (~ 8000-9000, up from ~ 5000) -- 26-Feb-07 AK...
apache-2.0
EliHar/Pattern_recognition
torch1/exe/qtlua/packages/qtide/init.lua
3
5132
require 'paths' require 'qtcore' require 'qtgui' if qt and qt.qApp and qt.qApp:runsWithoutGraphics() then print("qlua: not loading module qtide (running with -nographics)") return end qt.require 'libqtide' local G = _G local error = error local dofile = dofile local loadstring = loadstring local print = print...
mit
rlcevg/Zero-K
units/trem.lua
1
6462
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
iownall555/MineFix
mods/fire/init.lua
4
8708
-- minetest/fire/init.lua -- Global namespace for functions fire = {} -- Register flame nodes minetest.register_node("fire:basic_flame", { drawtype = "firelike", tiles = { { name = "fire_basic_flame_animated.png", animation = { type = "vertical_frames", aspect_w = 16, aspect_h = 16, lengt...
agpl-3.0
Amadiro/obtuse-tanuki
libs/winapi/menu.lua
2
9167
--proc/menu: standard menu control. --Written by Cosmin Apreutesei. Public Domain. setfenv(1, require'winapi') require'winapi.winuser' ffi.cdef[[ HMENU CreateMenu(void); HMENU CreatePopupMenu(void); BOOL DestroyMenu(HMENU hMenu); HMENU GetMenu(HWND hWnd); BOOL SetMenu(HWND hWnd, HMENU hMenu); BOOL DrawMenuBar(HWND ...
mit
Mehranhpr/spam
plugins/rss.lua
700
5434
local function get_base_redis(id, option, extra) local ex = '' if option ~= nil then ex = ex .. ':' .. option if extra ~= nil then ex = ex .. ':' .. extra end end return 'rss:' .. id .. ex end local function prot_url(url) local url, h = string.gsub(url, "http://", "") local...
gpl-2.0
mirrexagon/lua-irc-engine
example.lua
1
2717
--[[ Example for Lua IRC Engine (https://github.com/mirrexagon/lua-irc-engine) Uses LuaSocket for network communication. ]] --- Require --- local IRCe = require("irce") print(IRCe._VERSION .. " running on " .. _VERSION) local socket = require("socket") --- ==== --- --- Constants --- local SERVER = arg[1] or "irc...
cc0-1.0
avataronline/avatarclient
modules/corelib/ui/uimessagebox.lua
9
3392
if not UIWindow then dofile 'uiwindow' end -- @docclass UIMessageBox = extends(UIWindow, "UIMessageBox") -- messagebox cannot be created from otui files UIMessageBox.create = nil function UIMessageBox.display(title, message, buttons, onEnterCallback, onEscapeCallback) local messageBox = UIMessageBox.internalCreate...
mit
rlcevg/Zero-K
LuaUI/Widgets/chili/Skins/DarkHive/skin.lua
25
4262
--//============================================================================= --// Skin local skin = { info = { name = "DarkHive", version = "0.1", author = "luckywaldo7", } } --//============================================================================= --// skin.general = { --font ...
gpl-2.0
skx/kilua
syntax/markdown.lua
1
1294
-- -- Syntax Highlighting for markdown / text. -- -- This mode only does two things: -- -- * Highlights URLS. -- -- * Highlights trailing whitespace. -- -- Steve -- -- -- -- This file is a Lua module. -- local mymodule = {} -- -- The string we return. -- local retval = "" -- -- Helper to add the colour. -- functio...
bsd-2-clause
rlcevg/Zero-K
units/armpw.lua
1
6335
unitDef = { unitname = [[armpw]], name = [[Glaive]], description = [[Light Raider Bot]], acceleration = 0.5, brakeRate = 0.4, buildCostEnergy = 65, buildCostMetal = 65, buildPic = [[armpw.png]], buildTime ...
gpl-2.0
zhuhangyu/ABTestingGateway
lib/abtesting/diversion/uidappoint.lua
9
2760
local modulename = "abtestingDiversionUidappoint" local _M = {} local mt = { __index = _M } _M._VERSION = "0.0.1" local ERRORINFO = require('abtesting.error.errcode').info local k_uid = 'uid' local k_uidset = 'uidset' local k_upstream= 'upstream' _M.new = function(self, database, policyLib) if not da...
mit
agomariz/lstm
data.lua
9
1953
-- ---- Copyright (c) 2014, Facebook, Inc. ---- All rights reserved. ---- ---- This source code is licensed under the Apache 2 license found in the ---- LICENSE file in the root directory of this source tree. ---- local stringx = require('pl.stringx') local file = require('pl.file') local ptb_path = "./data/" l...
apache-2.0
jimmyharris/luaposix
examples/tree.lua
8
1901
-- tree view of the file system like the "tree" unix utility -- John Belmonte <jvb@prairienet.org> local posix = require 'posix' local leaf_indent = '| ' local tail_leaf_indent = ' ' local leaf_prefix = '|-- ' local tail_leaf_prefix = '`-- ' local link_prefix = ' -> ' local function printf(...) io.write(strin...
mit
medialab-prado/Interactivos-15-Ego
minetest-ego/games/minimal/mods/default/init.lua
1
47701
-- default (Minetest 0.4 mod) -- Most default stuff -- The API documentation in here was moved into doc/lua_api.txt WATER_ALPHA = 160 WATER_VISC = 1 LAVA_VISC = 7 LIGHT_MAX = 14 -- Definitions made by this mod that other mods can use too default = {} -- Load other files dofile(minetest.get_modpath("default").."/map...
mit
ViolyS/RayUI_VS
Interface/AddOns/RayUI/env.lua
1
1046
RayUI = {} local _Envs = {} local _G, rawset = _G, rawset local _RayUIEnv = setmetatable({}, { __index = function(self, k) local v = _G[k] if v ~= nil then rawset(self, k, v) return v end end, __metatable = true, }) _RayUIEn...
mit
Nico60/external_skia
tools/lua/skia.lua
207
1863
-- Experimental helpers for skia -- function string.startsWith(String,Start) return string.sub(String,1,string.len(Start))==Start end function string.endsWith(String,End) return End=='' or string.sub(String,-string.len(End))==End end Sk = {} function Sk.isFinite(x) return x * 0 == 0 end ----------------...
bsd-3-clause
espadrine/opera
chromium/src/v8/tools/gcmole/gccause.lua
157
2313
-- Copyright 2011 the V8 project authors. All rights reserved. -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are -- met: -- -- * Redistributions of source code must retain the above copyright -- notice, this list of ...
bsd-3-clause
carbonsrv/carbon
builtin/MainGlue.lua
2
4807
-- Main Glue -- Add webroot to path and cpath. (OLD) local webroot_path = var.root .. (var.root:match("/$") and "" or "/") --package.path = webroot_path.."?.lua;"..webroot_path.."?/init.lua;"..package.path package.cpath = webroot_path.."?.so;"..webroot_path.."loadall.so;"..package.cpath -- Custom package loaders so ...
mit
smallsco/scribe
Scribe.lua
1
10863
--- SCRÏBE: A message box library for Love2D -- @version 0.2 -- @license MIT https://github.com/smallsco/scribe/blob/master/LICENSE local Scribe = {} Scribe.__index = Scribe setmetatable( Scribe, { __call = function (cls, ...) return cls.new(...) end, }) local require_path = (...):match( "(.-)[^%.]+$" ) local ...
mit
Jigoku/boxclip
src/main.lua
1
3876
--[[ * Copyright (C) 2015 - 2022 Ricky K. Thomson * * 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. * This progra...
gpl-3.0
abdllhbyrktr/Urho3D
bin/Data/LuaScripts/40_Localization.lua
3
6243
-- Localization example. -- This sample demonstrates: -- - Loading a collection of strings from JSON-files -- - Creating text elements that automatically translates itself by changing the language -- - The manually reaction to change language require "LuaScripts/Utilities/Sample" function Start() -- E...
mit
aminba/spamm
plugins/all.lua
1321
4661
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
antispambot2/telesers-cliBot
plugins/all.lua
1321
4661
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
EliHar/Pattern_recognition
torch1/exe/luajit-rocks/luarocks/src/luarocks/fetch.lua
12
15290
--- Functions related to fetching and loading local and remote files. --module("luarocks.fetch", package.seeall) local fetch = {} package.loaded["luarocks.fetch"] = fetch local fs = require("luarocks.fs") local dir = require("luarocks.dir") local type_check = require("luarocks.type_check") local path = require("luaro...
mit
Jennal/cocos2dx-3.2-qt
cocos/scripting/lua-bindings/auto/api/InnerActionFrame.lua
6
1180
-------------------------------- -- @module InnerActionFrame -- @extend Frame -- @parent_module ccs -------------------------------- -- @function [parent=#InnerActionFrame] getInnerActionType -- @param self -- @return int#int ret (return value: int) -------------------------------- -- @function [parent=#Inn...
mit
EliHar/Pattern_recognition
torch1/install/share/lua/5.1/nnx/SpatialClassifier.lua
6
3111
local Classifier, parent = torch.class('nn.SpatialClassifier', 'nn.Module') function Classifier:__init(classifier) parent.__init(self) -- public: self.classifier = classifier or nn.Sequential() self.spatialOutput = true -- private: self.inputF = torch.Tensor() self.inputT = torch.Tensor() self....
mit
TeleBang/bangtg
plugins/supergroup.lua
4
138693
local function check_member_super(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg if success == 0 then send_large_msg(receiver, "Promote me to admin first!") end for k,v in pairs(result) do local member_id = v.peer_id if member_id ~=...
agpl-3.0
firebitsbr/ettercap
src/lua/share/core/hook_points.lua
9
6396
--- -- Provides hook point values for those setting up ettercap lua scripts. -- -- These values are defined in include/ec_hook.h, so this module will need -- to be updated if that file ever changes! -- -- Copyright (C) Ryan Linn and Mike Ryan -- -- This program is free software; you can redistribute it and/or mod...
gpl-2.0
tinixx/ettercap
src/lua/share/core/hook_points.lua
9
6396
--- -- Provides hook point values for those setting up ettercap lua scripts. -- -- These values are defined in include/ec_hook.h, so this module will need -- to be updated if that file ever changes! -- -- Copyright (C) Ryan Linn and Mike Ryan -- -- This program is free software; you can redistribute it and/or mod...
gpl-2.0
Jigoku/boxclip
src/menus/title.lua
1
9174
--[[ * Copyright (C) 2015 - 2022 Ricky K. Thomson * * 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. * This progra...
gpl-3.0
Unrepentant-Atheist/mame
3rdparty/genie/tests/test_gmake_cpp.lua
48
4393
-- -- tests/test_gmake_cpp.lua -- Automated test suite for GNU Make C/C++ project generation. -- Copyright (c) 2009 Jason Perkins and the Premake project -- T.gmake_cpp = { } -- -- Configure a solution for testing -- local sln, prj function T.gmake_cpp.setup() _ACTION = "gmake" _OPTIONS.os = "linux" sln = ...
gpl-2.0
Amadiro/obtuse-tanuki
systems/gui.lua
2
3973
local tiny = require "tiny" local domy = require "DOMy" return function(state) local gui_system = tiny.system() gui_system.gui = domy.new() gui_system.gui:register_callbacks(state, { "update" }) gui_system.gui:add_widget_directory("assets/ui/widgets") gui_system.gui:import_markup("assets/ui/editor.lua") gui_sy...
mit
delram/seed7
plugins/admin.lua
230
6382
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(rec...
gpl-2.0
anholt/ValyriaTear
dat/effects/status.lua
1
31801
------------------------------------------------------------------------------[[ -- Filename: status.lua -- -- Description: This file contains the implementations of all status effects. -- The list of different types of status effects and their -- corresponding names may be found in src/modes/common/global/global_effec...
gpl-2.0
avataronline/avatarclient
modules/gamelib/player.lua
10
3598
-- @docclass Player PlayerStates = { None = 0, Poison = 1, Burn = 2, Energy = 4, Drunk = 8, ManaShield = 16, Paralyze = 32, Haste = 64, Swords = 128, Drowning = 256, Freezing = 512, Dazzled = 1024, Cursed = 2048, PartyBuff = 4096, PzBlock = 8192, Pz = 16384, Bleeding = 32768, Hungry...
mit
SneakyB/iceball
pkg/base/ent/gun_rifle.lua
4
1392
--[[ This file is part of Ice Lua Components. Ice Lua Components 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 option) any later version. ...
gpl-3.0
Unrepentant-Atheist/mame
plugins/cheat/init.lua
2
14122
-- license:BSD-3-Clause -- copyright-holders:Carl -- -- json cheat file format -- [{ -- "desc": "text", -- "parameter": { -- "min": "minval(0)", -- "max": "maxval(numitems)", -- "step": "stepval(1)", -- "item" [{ -- "value": "itemval(index*stepval+minval)", -- "text": "text" -- }, -...
gpl-2.0
stas2z/openwrt-witi
feeds/routing/bird-openwrt/bird4-openwrt/src/model/bgp_proto.lua
8
9954
--[[ Copyright (C) 2014 - Eloi Carbó Solé (GSoC2014) BGP/Bird integration with OpenWRT and QMP 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) a...
gpl-2.0
medialab-prado/Interactivos-15-Ego
minetest-ego/builtin/fstk/buttonbar.lua
2
6028
--Minetest --Copyright (C) 2014 sapier -- --This program 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 2.1 of the License, or --(at your option) any later version. -- --This program is ...
mit
EliHar/Pattern_recognition
torch1/install/share/lua/5.1/jit/p.lua
65
9092
---------------------------------------------------------------------------- -- LuaJIT profiler. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -- -- This modul...
mit
subr3v/s-engine
Working_Directory/SponzaScene.lua
1
2039
-- Scene Configuration function Vector(X, Y, Z) return { x = X, y = Y, z = Z } end function range(from, to, step) step = step or 1 return function(_, lastvalue) local nextvalue = lastvalue + step if step > 0 and nextvalue <= to or step < 0 and nextvalue >= to or step == 0 then return nex...
mit
Jigoku/boxclip
src/maps/1_act1.lua
1
8133
world.gravity = 2000 world.mapmusic = 12 world.mapambient = 4 world.maptitle = "Sunny Hill - Act 1" world.nextmap = "1_act2.lua" world.deadzone = 2000 world:settheme("sunny") platforms:add(5740,-3200,710,900,false,false,false,0,0,false,0,20) platforms:add(5920,-2520,100,30,false,true,false,-100,100,false,0,1) platforms...
gpl-3.0
Satoshi-t/Re-SBS
lang/zh_CN/Package/HFormationPackage.lua
1
4618
-- translation for Hegemony Formation Package return { ["h_formation"] = "国战-阵包", ["heg_dengai"] = "邓艾-国", ["&heg_dengai"] = "邓艾", ["illustrator:heg_dengai"] = "Amo", ["ziliang"] = "资粮", [":ziliang"] = "每当一名角色受到伤害后,你可以将一张“田”交给该角色。", ["@ziliang"] = "你可以发动“资粮”,将一张“田”交给受到伤害的角色", ["~ziliang"] = "选择一张\"田\"→点击确定", ...
gpl-3.0
rlcevg/Zero-K
LuaUI/Widgets/map_external_grid.lua
7
9297
--related thread: http://springrts.com/phpbb/viewtopic.php?f=13&t=26732&start=22 function widget:GetInfo() return { name = "External VR Grid", desc = "VR grid around map", author = "knorke, tweaked by KR", date = "Sep 2011", license = "PD", layer = -3, enabled = f...
gpl-2.0
samyk/proxmark3
client/luascripts/hf_14a_raw.lua
1
5573
local cmds = require('commands') local getopt = require('getopt') local lib14a = require('read14a') local ansicolors = require('ansicolors') copyright = '' author = "Martin Holst Swende" version = 'v1.0.2' desc = [[ This is a script to allow raw 14443a commands to be sent and received. ]] example = [[ # 1. Connec...
gpl-2.0
EliHar/Pattern_recognition
torch1/extra/nn/DepthConcat.lua
9
4601
------------------------------------------------------------------------ --[[ DepthConcat ]]-- -- Concatenates the output of Convolutions along the depth dimension -- (nOutputFrame). This is used to implement the DepthConcat layer -- of the Going deeper with convolutions paper : -- http://arxiv.org/pdf/1409.4842v1.pdf ...
mit
rlcevg/Zero-K
LuaRules/Gadgets/CAI/ScoutHandler.lua
7
1210
--[[ Handles the scouting unit job * Add units to this handler to have them controled by it. * Maintains a heatmap of locations to scout. * Requires perdiodic UpdateHeatmap and RunJobHandler. * Only one of these is needed per teamID. --]] local UnitListHandler = VFS.Include("LuaRules/Gadgets/CAI/UnitListHandler.lua...
gpl-2.0
EliHar/Pattern_recognition
torch1/install/share/lua/5.1/nnx/SpatialGraph.lua
6
2189
local SpatialGraph, parent = torch.class('nn.SpatialGraph', 'nn.Module') local help_desc = [[Creates an edge-weighted graph from a set of N feature maps. The input is a 3D tensor width x height x nInputPlane, the output is a 3D tensor width x height x 2. The first slice of the output contains horizontal edges, the s...
mit
stas2z/openwrt-witi
package/luci/applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-pbx.lua
68
1923
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. cbimap = Map("asterisk", "asterisk", "") module = cbimap:section(TypedSection, "module", "Modules", "") module.anonymous = true pbx_ael = module:option(ListV...
gpl-2.0
AliKhodadad/Telebot
plugins/chat.lua
1
1313
local function run(msg) if msg.text == "Ali" then return "ba babaye man chikar dari" end if msg.text == "ali" then return "ba babaye man chikar dari" end if msg.text == "salam telewild" then return "salam golam" end if msg.text == "hi" then return "Hello bb" end if msg.text == "Hi" then return "Hello honey" end i...
gpl-2.0
EliHar/Pattern_recognition
torch1/extra/graph/init.lua
4
6566
require 'torch' graph = {} require('graph.graphviz') require('graph.Node') require('graph.Edge') --[[ Defines a graph and general operations on grpahs like topsort, connected components, ... uses two tables, one for nodes, one for edges ]]-- local Graph = torch.class('graph.Graph') function Graph:__init() self....
mit
EliHar/Pattern_recognition
torch1/install/share/lua/5.1/graph/init.lua
4
6566
require 'torch' graph = {} require('graph.graphviz') require('graph.Node') require('graph.Edge') --[[ Defines a graph and general operations on grpahs like topsort, connected components, ... uses two tables, one for nodes, one for edges ]]-- local Graph = torch.class('graph.Graph') function Graph:__init() self....
mit
EliHar/Pattern_recognition
torch1/install/share/lua/5.1/luarocks/fs.lua
15
2134
--- Proxy module for filesystem and platform abstractions. -- All code using "fs" code should require "luarocks.fs", -- and not the various platform-specific implementations. -- However, see the documentation of the implementation -- for the API reference. local pairs = pairs --module("luarocks.fs", package.seeall) ...
mit
samyk/proxmark3
client/luascripts/hf_legic_buffer2card.lua
1
1603
local utils = require('utils') local getopt = require('getopt') local ansicolors = require('ansicolors') -- this script writes bytes 8 to 256 on the Legic MIM256 copyright = '' author = 'Mosci' version = 'v1.0.2' desc = [[ This is a script which writes value 0x01 to bytes from position 0x07 until 0xFF on a Legic Prim...
gpl-2.0
lo7err/khodemunihaa
plugins/add_bot.lua
189
1492
--[[ Bot can join into a group by replying a message contain an invite link or by typing !add [invite link]. URL.parse cannot parsing complicated message. So, this plugin only works for single [invite link] in a post. [invite link] may be preceeded but must not followed by another characters. --]] do local function...
gpl-2.0
drmingdrmer/mysql-proxy-xp
tests/suite/base/t/bug_45167-mock.lua
4
1553
--[[ $%BEGINLICENSE%$ Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. 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; version 2 of the License. This program is distribut...
gpl-2.0
yangboz/bugfree-bugfixes
CocosJSGame/frameworks/js-bindings/cocos2d-x/external/lua/luajit/src/dynasm/dasm_arm.lua
74
34483
------------------------------------------------------------------------------ -- DynASM ARM module. -- -- Copyright (C) 2005-2013 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ -- Module information: local _in...
mit
rlcevg/Zero-K
units/factorycloak.lua
7
3927
unitDef = { unitname = [[factorycloak]], name = [[Cloaky Bot Factory]], description = [[Produces Cloaky Robots, Builds at 10 m/s]], buildCostEnergy = 600, buildCostMetal = 600, builder = true, ...
gpl-2.0
DellyArts/sipml5
asterisk/etc/extensions.lua
317
5827
CONSOLE = "Console/dsp" -- Console interface for demo --CONSOLE = "DAHDI/1" --CONSOLE = "Phone/phone0" IAXINFO = "guest" -- IAXtel username/password --IAXINFO = "myuser:mypass" TRUNK = "DAHDI/G2" TRUNKMSD = 1 -- TRUNK = "IAX2/user:pass@provider" -- -- Extensions are expected to be defined in a global table ...
bsd-3-clause
thang19911991/sipml5
asterisk/etc/extensions.lua
317
5827
CONSOLE = "Console/dsp" -- Console interface for demo --CONSOLE = "DAHDI/1" --CONSOLE = "Phone/phone0" IAXINFO = "guest" -- IAXtel username/password --IAXINFO = "myuser:mypass" TRUNK = "DAHDI/G2" TRUNKMSD = 1 -- TRUNK = "IAX2/user:pass@provider" -- -- Extensions are expected to be defined in a global table ...
bsd-3-clause
medialab-prado/Interactivos-15-Ego
minetest-ego/games/adventuretest/mods/handle_schematics/build_chest.lua
3
35630
----------------------------------------------------------------------------------------------------------------- -- interface for manual placement of houses ----------------------------------------------------------------------------------------------------------------- -- functions specific to the build_chest are ...
mit
Unrepentant-Atheist/mame
3rdparty/genie/src/base/help.lua
45
1073
-- -- help.lua -- User help, displayed on /help option. -- Copyright (c) 2002-2008 Jason Perkins and the Premake project -- function premake.showhelp() -- display the basic usage printf("") printf("Usage: genie [options] action [arguments]") printf("") -- display all options printf("OPTIONS") printf...
gpl-2.0
Unrepentant-Atheist/mame
3rdparty/genie/src/actions/vstudio/vs200x_vcproj_user.lua
26
1489
-- -- vs200x_vcproj_user.lua -- Generate a Visual Studio 2002-2008 C/C++ project .user file -- Copyright (c) 2011 Jason Perkins and the Premake project -- -- -- Set up namespaces -- local vc200x = premake.vstudio.vc200x -- -- Generate the .vcproj.user file -- function vc200x.generate_user(prj) vc200x.header('...
gpl-2.0
anholt/ValyriaTear
dat/maps/mt_elbrus/mt_elbrus_path2_map.lua
1
42342
map_data = {} -- The number of rows, and columns that compose the map map_data.num_tile_cols = 40 map_data.num_tile_rows = 32 -- The tilesets definition files used. map_data.tileset_filenames = {} map_data.tileset_filenames[1] = "dat/tilesets/mountain_landscape.lua" map_data.tileset_filenames[2] = "dat/tilesets/villa...
gpl-2.0
EliHar/Pattern_recognition
openface1/training/attic/test.lua
8
2634
-- Copyright 2015-2016 Carnegie Mellon University -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable ...
mit
ViolyS/RayUI_VS
Interface/AddOns/Skada/Menus.lua
1
22891
local L = LibStub("AceLocale-3.0"):GetLocale("Skada", false) local AceGUI = LibStub("AceGUI-3.0") -- Mode menu list sorted by category local function _modeMenu(window, level) local info = UIDropDownMenu_CreateInfo() local modes = Skada:GetModes() local categorized = {} for i, module in ipairs(modes) d...
mit
Amadiro/obtuse-tanuki
libs/winapi/mouse.lua
2
4764
--proc/mouse: mouse functions --Written by Cosmin Apreutesei. Public Domain. setfenv(1, require'winapi') TME_HOVER = 0x00000001 TME_LEAVE = 0x00000002 TME_NONCLIENT = 0x00000010 TME_QUERY = 0x40000000 TME_CANCEL = 0x80000000 HOVER_DEFAULT = 0xFFFFFFFF ffi.cdef[[ typedef struct tagTRACKMOU...
mit
stas2z/openwrt-witi
package/luci/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/interface.lua
68
1060
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. require("luci.sys") m = Map("luci_statistics", translate("Interface Plugin Configuration"), translate( "The interface plugin collects traffic statistics on " .. "selected interfaces." ...
gpl-2.0
Jennal/cocos2dx-3.2-qt
tests/lua-tests/src/TouchesTest/Ball.lua
5
2841
require "extern" require "src/VisibleRect" require "src/TouchesTest/Paddle" Ball = class("Ball", function(texture) return cc.Sprite:createWithTexture(texture) end) Ball.__index = Ball Ball.m_velocity = cc.p(0,0) local M_PI = 3.1415926 function Ball:radius() local size = self:getTexture():getContentSize()...
mit
joaocc/ta3d-git
src/ta3d/mods/ta3d/scripts/armsam.lua
2
3173
-- Arm Mobile SAM Launcher createUnitScript("armsam") __this:piece( "flare1", "flare2", "base", "launcher", "turret" ) __this.SMOKEPIECE1 = __this.base #include "exptype.lh" #include "smokeunit.lh" #include "hitweap.lh" __this.Create = function(this) this:hide( this.flare1 ) this:hide( this.flare2 ) ...
gpl-2.0
carbonsrv/carbon
builtin/libs/wrappers/fs.lua
2
1191
-- fs compatability layer for vfs -- Carbon 1.3 added vfs, a more generic virtual filesystem framework. fs, which is now just a wrapper around vfs is still there for convenience, however some less used functions are stubs/unsupported. fs = {} -- Manual incompatability notices function fs.mount() error("Please use vf...
mit
notcake/glib
lua/glib/net/layer5/singleendpointorderedchannel.lua
2
4908
local self = {} GLib.Net.Layer5.SingleEndpointOrderedChannel = GLib.MakeConstructor (self, GLib.Net.ISingleEndpointChannel) function self:ctor (innerChannel) -- Identity self.InnerChannel = innerChannel self.Name = nil -- State self.Open = nil self.State = GLib.Net.Layer5.OrderedChannelState.Uninitialized -...
gpl-3.0
rlcevg/Zero-K
effects/arch.lua
25
3934
-- archshells -- archplosion return { ["archshells"] = { shells = { air = true, class = [[CSimpleParticleSystem]], count = 1, ground = true, water = true, properties = { airdrag = 0.97, ...
gpl-2.0