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
HannesTuhkala/saitohud
src/SaitoHUD/lua/saitohud/modules/hook_manager.lua
3
4534
-- SaitoHUD -- Copyright (c) 2009-2010 sk89q <http://www.sk89q.com> -- Copyright (c) 2010 BoJaN -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 2 of the License, or ...
gpl-2.0
sundream/gamesrv
script/card/golden/card115008.lua
1
2808
--<<card 导表开始>> local super = require "script.card.init" ccard115008 = class("ccard115008",super,{ sid = 115008, race = 1, name = "寒冰箭", type = 101, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 0, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, magic_hurt_add...
gpl-2.0
tltneon/NutScript
gamemode/core/libs/sh_attribs.lua
2
3272
if (!nut.char) then include("sh_character.lua") end nut.attribs = nut.attribs or {} nut.attribs.list = nut.attribs.list or {} function nut.attribs.loadFromDir(directory) for k, v in ipairs(file.Find(directory.."/*.lua", "LUA")) do local niceName = v:sub(4, -5) ATTRIBUTE = nut.attribs.list[niceName] or {} if ...
mit
ijuma/thrift
test/lua/test_basic_server.lua
57
5557
-- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file ...
apache-2.0
rastin45/waqer12
plugins/anti-spam11.lua
7
2439
local NUM_MSG_MAX = 11 -- Max number of messages per TIME_CHECK seconds local TIME_CHECK = 11 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, function (data, success, result) if success ~= 1 then local text = 'I can\'t...
gpl-2.0
Houshalter/lw-replay
irc/util.lua
6
3065
local setmetatable = setmetatable local sub = string.sub local byte = string.byte local char = string.char local table = table local assert = assert local tostring = tostring local type = type local random = math.random module "irc" --protocol parsing function parse(line) local prefix local lineStart = 1 if line:s...
mit
sundream/gamesrv
script/card/neutral/card165033.lua
1
2692
--<<card 导表开始>> local super = require "script.card.init" ccard165033 = class("ccard165033",super,{ sid = 165033, race = 6, name = "霜狼督军", type = 201, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 1, shield = 0, warcry = 1, dieeffect = 0, sneak = 0, magic_hurt_ad...
gpl-2.0
Sour/pfUI
env/locales_deDE.lua
1
109317
pfUI_locale["deDE"] = {} pfUI_locale["deDE"]["class"] = { ["Hexenmeister"] = "WARLOCK", ["Krieger"] = "WARRIOR", ["Jäger"] = "HUNTER", ["Magier"] = "MAGE", ["Priester"] = "PRIEST", ["Druide"] = "DRUID", ["Paladin"] = "PALADIN", ["Schamane"] = "SHAMAN", ["Schurke"] = "ROGUE", } pfUI_locale["deDE"]["b...
mit
vdxlab/aigua_arduino_latalaia
src/monitor/serial.lua
1
1101
log = "/tmp/serial.log" function sleep(n) os.execute("sleep " .. tonumber(n)) end function file_exists(name) local f = io.open(name,"r") if f ~= nil then io.close(f) return true else return false end end function open_serial() dev = nil local i for i=0,5 do if file_exists("/dev/ttyUSB" .. i) then d...
gpl-3.0
codemon66/Urho3D
bin/Data/LuaScripts/42_PBRMaterials.lua
9
8289
-- PBR materials example. -- This sample demonstrates: -- - Loading a scene that showcases physically based materials & shaders -- -- To use with deferred rendering, a PBR deferred renderpath should be chosen: -- CoreData/RenderPaths/PBRDeferred.xml or CoreData/RenderPaths/PBRDeferredHWDepth.xml require "LuaScrip...
mit
letmefly/skynet
gameserver/unuse/define_stage.lua
2
421770
local define_stage = { ["1"] = { ["gameMode"] = "MobRound", ["stamina"] = 1, ["streamSpeedMin"] = 2.52, ["streamSpeedMax"] = 2.82, ["spawnMinDelay"] = 0.1, ["spawnMaxDelay"] = 0.8, ["enemyMinDistance"] = 5, ["enemyMaxDistance"] = 8, ["normalWeaponRate"] = 1, ["throwWeaponRate"] = 1, ["ballRate"] ...
mit
teasquat/bestfriend
kit/init.lua
1
1817
love.graphics.setDefaultFilter("nearest", "nearest") shack = require("kit/lib/shack") state = require("kit/lib/state") konami = require("kit/lib/konami") light = require("kit/lib/light") bump = require("kit/lib/bump") cam_m = require("kit/lib/camera") uare = require("kit/lib/uare") camera = cam_m.make(0,...
mit
movb/Algorithm-Implementations
Knapsack/Lua/Yonaba/knapsack_test.lua
26
1841
-- Tests for knapsack.lua local knapsack = require 'knapsack' 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 = pass + 1 end lo...
mit
wbengine/SPMILM
tools/lstm/base.lua
13
1965
-- -- 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. -- function g_disable_dropout(node) if type(node) == "table" and node.__typename == nil then for i = 1, #node...
apache-2.0
EliHar/Pattern_recognition
torch1/extra/cudnn/test/test_groups.lua
7
1261
require 'ccn2' require 'cudnn' bs = 32 ni = 96 no = 128 imsize = 55 groups = 2 kW = 7 stride = 3 ccn2_conv = ccn2.SpatialConvolution(ni,no,kW,stride,0,groups):cuda() cudnn_conv = cudnn.SpatialConvolution(ni,no,kW,kW,stride,stride,0,0,groups):cuda() input = torch.randn(bs,ni,imsize,imsize):cuda() input_tr = input:tra...
mit
Unrepentant-Atheist/mame
3rdparty/genie/src/actions/codelite/codelite_project.lua
3
5765
-- -- codelite_project.lua -- Generate a CodeLite C/C++ project file. -- Copyright (c) 2009, 2011 Jason Perkins and the Premake project -- local codelite = premake.codelite local tree = premake.tree -- -- Write out a list of the source code files in the project. -- function codelite.files(prj) local tr = prema...
gpl-2.0
yangboz/bugfree-bugfixes
CocosJSGame/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Mesh.lua
6
1658
-------------------------------- -- @module Mesh -- @extend Ref -- @parent_module cc -------------------------------- -- @function [parent=#Mesh] restore -- @param self -------------------------------- -- @function [parent=#Mesh] getMeshVertexAttribCount -- @param self -- @return long#long ret (return valu...
mit
willwach/atmosphere
lua/sensors.lua
1
3329
function readBmpSensor(sdaPin, sclPin) bmp085.init(sdaPin, sclPin) local t = bmp085.temperature(1) print(string.format("Temperature: %s.%s degrees C", t / 10, t % 10)) local p = bmp085.pressure(1) print(string.format("Pressure: %s.%s mbar", p / 100, p % 100)) tempBMP180=s...
gpl-3.0
upsoft/Atlas
examples/tutorial-monitor.lua
40
5362
--[[ $%BEGINLICENSE%$ Copyright (c) 2008, 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 dis...
gpl-2.0
stas2z/openwrt-witi
feeds/packages/net/mwan3-luci/files/usr/lib/lua/luci/controller/mwan3.lua
1
10896
module("luci.controller.mwan3", package.seeall) sys = require "luci.sys" ut = require "luci.util" ip = "/usr/sbin/ip -4 " function index() if not nixio.fs.access("/etc/config/mwan3") then return end entry({"admin", "network", "mwan"}, alias("admin", "network", "mwan", "overview"), _("Load Balancing"), 600)...
gpl-2.0
rlcevg/Zero-K
lups/ParticleClasses/ShockWave.lua
14
6389
-- $Id: ShockWave.lua 3171 2008-11-06 09:06:29Z det $ ----------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------- local ShockWave = {} ShockWave.__inde...
gpl-2.0
rlcevg/Zero-K
LuaRules/Gadgets/unit_turn_without_interia.lua
12
1401
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- if not gadgetHandler:IsSyncedCode() then return end -------------------------------------------------------------------------------- ------------------------...
gpl-2.0
Jennal/cocos2dx-3.2-qt
tests/lua-tests/src/NodeTest/NodeTest.lua
10
21008
local kTagSprite1 = 1 local kTagSprite2 = 2 local kTagSprite3 = 3 local kTagSlider = 4 local s = cc.Director:getInstance():getWinSize() local scheduler = cc.Director:getInstance():getScheduler() local function getBaseLayer() local layer = cc.Layer:create() Helper.initWithLayer(layer) return layer end ------...
mit
EliHar/Pattern_recognition
torch1/install/share/lua/5.1/luarocks/path_cmd.lua
18
2345
--- @module luarocks.path_cmd -- Driver for the `luarocks path` command. local path_cmd = {} local util = require("luarocks.util") local deps = require("luarocks.deps") local cfg = require("luarocks.cfg") path_cmd.help_summary = "Return the currently configured package path." path_cmd.help_arguments = "" path_cmd.he...
mit
Unrepentant-Atheist/mame
scripts/target/ldplayer/ldplayer.lua
12
2168
-- license:BSD-3-Clause -- copyright-holders:MAMEdev Team --------------------------------------------------------------------------- -- -- ldplayer.lua -- -- Small makefile to build a standalone laserdisc player -- --------------------------------------------------------------------------- ----------------------...
gpl-2.0
lynx-seu/skynet
examples/login/gated.lua
57
2201
local msgserver = require "snax.msgserver" local crypt = require "crypt" local skynet = require "skynet" local loginservice = tonumber(...) local server = {} local users = {} local username_map = {} local internal_id = 0 -- login server disallow multi login, so login_handler never be reentry -- call by login server ...
mit
pillowthief/moonridge
lib/jumper/search/bfs.lua
9
1419
-- Breadth-First search algorithm if (...) then -- Internalization local t_remove = table.remove local function breadth_first_search(finder, openList, node, endNode, clearance, toClear) local neighbours = finder._grid:getNeighbours(node, finder._walkable, finder._allowDiagonal, finder._tunnel) for i = 1...
mit
rlcevg/Zero-K
scripts/gunshipaa.lua
5
7773
include "constants.lua" --pieces local base, middle, heading, mbase, mfbeam, mrbeam, mhull, mwing, mwingtip, mjet, mrack, mmissile, mmissleflare, rbase, rfbeam, rrbeam, rhull, rwing, rwingtip, rjet, rrack, rmissile, rmissleflare, lbase, lfbeam, lrbeam, lhull, lwing, lwingtip, ljet, lrack, lmissile, lmissleflare = p...
gpl-2.0
EliHar/Pattern_recognition
torch1/extra/argcheck/benchmark/torch9luaffi.lua
3
3953
local argcheck = require 'argcheck' local ffi = require 'ffi' local env = require 'argcheck.env' local SZ = tonumber(arg[1]) local N = tonumber(arg[2]) local scale = tonumber(arg[3]) or 1 local dbg = arg[4] == '1' local named = arg[5] == '1' if named then print('warning: using named arguments!') end function ...
mit
AOKP/external_skia
tools/lua/scrape.lua
145
2246
function tostr(t) local str = "" for k, v in next, t do if #str > 0 then str = str .. ", " end if type(k) == "number" then str = str .. "[" .. k .. "] = " else str = str .. tostring(k) .. " = " end if type(v) == "table" then ...
bsd-3-clause
stas2z/openwrt-witi
package/luci/applications/luci-app-radicale/luasrc/model/cbi/radicale.lua
39
27698
-- Copyright 2015 Christian Schoenebeck <christian dot schoenebeck at gmail dot com> -- Licensed under the Apache License, Version 2.0 local NXFS = require("nixio.fs") local DISP = require("luci.dispatcher") local DTYP = require("luci.cbi.datatypes") local HTTP = require("luci.http") local UTIL = require("luci.ut...
gpl-2.0
DrFR0ST/Human-Apocalypse
lib/shine/scanlines.lua
8
4107
--[[ The MIT License (MIT) Copyright (c) 2015 Daniel Oaks 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,...
mit
omid1212/ccd
plugins/groupmanager.lua
15
11324
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if not is_admin(msg) then return "You're not admin!" end local group_creator = msg.from.print_name create_group_chat (group_cr...
gpl-2.0
medialab-prado/Interactivos-15-Ego
minetest-ego/games/adventuretest/mods/mg_villages/village_types.lua
3
6892
-- DOCUMENTATION: mg_villages.village_type_data has entries in the following form: -- key = { data values } with key beeing the name of the village type -- meaning of the data values: -- min, max: the village size will be choosen randomly between these two values; -- the actual village wil...
mit
EliHar/Pattern_recognition
torch1/install/share/lua/5.1/pl/xml.lua
14
25405
--- XML LOM Utilities. -- -- This implements some useful things on [LOM](http://matthewwild.co.uk/projects/luaexpat/lom.html) documents, such as returned by `lxp.lom.parse`. -- In particular, it can convert LOM back into XML text, with optional pretty-printing control. -- It is s based on stanza.lua from [Prosody](http...
mit
fernandobt8/thrift
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
soumith/cudnn.torch
Pooling.lua
2
4243
local Pooling, parent = torch.class('cudnn._Pooling', 'nn.Module') local ffi = require 'ffi' local errcheck = cudnn.errcheck function Pooling:__init(kW, kH, dW, dH, padW, padH) parent.__init(self) self.kW = kW self.kH = kH self.dW = dW or kW self.dH = dH or kH self.padW = padW or 0 self.padH = pad...
bsd-2-clause
medialab-prado/Interactivos-15-Ego
minetest-ego/games/adventuretest/mods/cottages/nodes_furniture.lua
1
12439
--------------------------------------------------------------------------------------- -- furniture --------------------------------------------------------------------------------------- -- contains: -- * a bed seperated into foot and head reagion so that it can be placed manually; it has -- no other functionalit...
mit
zhuhangyu/ABTestingGateway
admin/policy/del.lua
22
4156
local runtimeModule = require('abtesting.adapter.runtime') local policyModule = require('abtesting.adapter.policy') local redisModule = require('abtesting.utils.redis') local systemConf = require('abtesting.utils.init') local handler = require('abtesting.error.handler').handler local utils = require...
mit
Jennal/cocos2dx-3.2-qt
cocos/scripting/lua-bindings/script/DrawPrimitives.lua
57
12038
local dp_initialized = false local dp_shader = nil local dp_colorLocation = -1 local dp_color = { 1.0, 1.0, 1.0, 1.0 } local dp_pointSizeLocation = -1 local dp_pointSize = 1.0 local SHADER_NAME_POSITION_U_COLOR = "ShaderPosition_uColor" local targetPlatform = CCApplication:getInstance():getTargetPlatform() loca...
mit
rlcevg/Zero-K
LuaUI/Widgets/chili/Controls/scrollpanel.lua
12
10871
--//============================================================================= ScrollPanel = Control:Inherit{ classname = "scrollpanel", padding = {0,0,0,0}, backgroundColor = {0,0,0,0}, scrollbarSize = 12, scrollPosX = 0, scrollPosY = 0, verticalScrollbar = true, horizontalScrollb...
gpl-2.0
DanielTea/Unity_AI
unity3d-roll-a-ball-master/Atari2/Master.lua
1
6931
local classic = require 'classic' local signal = require 'posix.signal' local Singleton = require 'structures/Singleton' local Agent = require 'Agent' local Display = require 'Display' local Validation = require 'Validation' local Master = classic.class('Master') -- Sets up environment and agent function Master:_init...
mit
rlcevg/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
ViolyS/RayUI_VS
Interface/AddOns/RayUI/modules/skins/blizzard/loot.lua
1
12679
---------------------------------------------------------- -- Load RayUI Environment ---------------------------------------------------------- RayUI:LoadEnv("Skins") local S = _Skins local function GroupLootDropDown_Initialize() local info = Lib_UIDropDownMenu_CreateInfo() info.isTitle = 1 info.text = MASTER_LOO...
mit
soulik/luambedtls
tests/ztcp.lua
1
4304
local zmq = require 'zmq' local ztransport = require 'ztransport' local context = assert(zmq.context()) local function buffer(_data, _len) local _data = _data or '' local _len = _len or 0 local obj = { } obj.read = function(len0) if len0 and (len0 < _len) then local out = _data:sub(1, len0) _data = _d...
gpl-2.0
EliHar/Pattern_recognition
torch1/extra/penlight/lua/pl/lapp.lua
6
13984
--- Simple command-line parsing using human-readable specification. -- Supports GNU-style parameters. -- -- lapp = require 'pl.lapp' -- local args = lapp [[ -- Does some calculations -- -o,--offset (default 0.0) Offset to add to scaled number -- -s,--scale (number) Scaling factor -- ...
mit
rlcevg/Zero-K
scripts/funnelweb.lua
9
4045
include "constants.lua" include "spider_walking.lua" local ALLY_ACCESS = {allied = true} local notum = piece 'notum' local gaster = piece 'gaster' local gunL, gunR, flareL, flareR, aimpoint = piece('gunl', 'gunr', 'flarel', 'flarer', 'aimpoint') local shieldArm, shield, eye, eyeflare = piece('shield_arm', 'shield', ...
gpl-2.0
rlcevg/Zero-K
units/corpyro.lua
1
8306
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
cailyoung/CommandPost
src/plugins/finalcutpro/menu/administrator.lua
1
3994
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- A D M I N I S T R A T O R M E N U -- -----------------------------------------------------------------------------...
mit
zaczh/indigo
scripts/AViewController.lua
1
6081
--local AView = require "AView" local BViewController = require "BViewController" local HeartViewController = require "HeartViewController" class("AViewController", "UIViewController", {"UITableViewDataSource", "UITableViewDelegate", "UIScrollViewDelegate"}) property{name="source", type="@"} property{name="tableView"...
mit
EliHar/Pattern_recognition
torch1/install/share/lua/5.1/pl/stringio.lua
28
3821
--- Reading and writing strings using file-like objects. <br> -- -- f = stringio.open(text) -- l1 = f:read() -- read first line -- n,m = f:read ('*n','*n') -- read two numbers -- for line in f:lines() do print(line) end -- iterate over all lines -- f = stringio.create() -- f:write('hello') -- f:wr...
mit
rlcevg/Zero-K
LuaUI/Widgets/snd_text_to_speech.lua
6
1510
function widget:GetInfo() return { name = "Text To Speech Control", desc = "Enables or disables text to speech through Zero-K lobby", author = "Licho", date = "10.6.2011", license = "GNU GPL, v2 or later", layer = math.huge, enabled = true, -- loaded by default? alwaysStart = true } end ----...
gpl-2.0
Unrepentant-Atheist/mame
scripts/src/osd/sdl.lua
1
12463
-- license:BSD-3-Clause -- copyright-holders:MAMEdev Team --------------------------------------------------------------------------- -- -- sdl.lua -- -- Rules for the building with SDL -- --------------------------------------------------------------------------- dofile("modules.lua") function maintargetosdopt...
gpl-2.0
cloudkick/ck-agent
extern/lunit/lunit.lua
21
17500
--[[-------------------------------------------------------------------------- This file is part of lunit 0.5. For Details about lunit look at: http://www.mroth.net/lunit/ Author: Michael Roth <mroth@nessie.de> Copyright (c) 2004, 2006-2009 Michael Roth <mroth@nessie.de> Permission is hereby g...
apache-2.0
rlcevg/Zero-K
LuaUI/Widgets/map_edge_extension.lua
1
14022
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Map Edge Extension", version = "v0.5", desc = "Draws a mirrored map next to the edges of ...
gpl-2.0
Mehranhpr/spam
plugins/gnuplot.lua
622
1813
--[[ * Gnuplot plugin by psykomantis * dependencies: * - gnuplot 5.00 * - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html * ]] -- Gnuplot needs absolute path for the plot, so i run some commands to find where we are local outputFile = io.popen("pwd","r") io.input(outputFile...
gpl-2.0
rlcevg/Zero-K
scripts/armsptk.lua
11
4999
include "constants.lua" include "spider_walking.lua" -------------------------------------------------------------------------------- -- pieces -------------------------------------------------------------------------------- local base = piece 'base' local turret = piece 'turret' local box = piece 'box' local leg1 =...
gpl-2.0
milanlenco/vpp
src/vpp-api/lua/examples/example-classifier.lua
2
1362
--[[ /* * 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
medialab-prado/Interactivos-15-Ego
minetest-ego/games/minetest_game/mods/default/nodes.lua
1
46639
-- mods/default/nodes.lua --[[ Node name convention: Although many node names are in combined-word form, the required form for new node names is words separated by underscores. If both forms are used in written language (for example pinewood and pine wood) the underscore form should be used. --]] --[[ Index: Sto...
mit
cailyoung/CommandPost
src/plugins/core/commands/actions.lua
1
6225
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- C O M M A N D A C T I O N -- -----------------------------------------------------------------------------...
mit
medialab-prado/Interactivos-15-Ego
minetest-ego/games/minetest_game/mods/beds/beds.lua
3
2393
-- fancy shaped bed beds.register_bed("beds:fancy_bed", { description = "Fancy Bed", inventory_image = "beds_bed_fancy.png", wield_image = "beds_bed_fancy.png", tiles = { bottom = { "beds_bed_top1.png", "default_wood.png", "beds_bed_side1.png", "beds_bed_side1.png^[transformFX", "default_wood.png", ...
mit
EliHar/Pattern_recognition
openface1/training/torch-TripletEmbedding/xmp/recycle-embedding.lua
3
1751
-------------------------------------------------------------------------------- -- Recycling embedding training example -------------------------------------------------------------------------------- -- Alfredo Canziani, Apr 15 -------------------------------------------------------------------------------- package....
mit
ViolyS/RayUI_VS
Interface/AddOns/RayUI/mini/TooltipItemIcon/TooltipItemIcon.lua
2
33251
-- TooltipItemIcon -- Author: brykrys -- Previous Authors: Alason, Freddy, Amavana -- See end of file for global exports -- Documentation can be found in commands.txt and developer.txt local version = 1.59 -- release -------------------------------------------------------------------------------- -- VARIABLES -----...
mit
rlcevg/Zero-K
effects/debris.lua
25
2772
-- debris1 return { ["debris1"] = { dirt = { air = true, class = [[CSimpleParticleSystem]], count = 1, ground = true, water = true, properties = { airdrag = 0.97, colormap = ...
gpl-2.0
Jennal/cocos2dx-3.2-qt
cocos/scripting/lua-bindings/auto/api/ControlButton.lua
6
8151
-------------------------------- -- @module ControlButton -- @extend Control -- @parent_module cc -------------------------------- -- @function [parent=#ControlButton] isPushed -- @param self -- @return bool#bool ret (return value: bool) -------------------------------- -- @function [parent=#ControlButton] ...
mit
Zariel/oUF_Grid
oUF/elements/health.lua
2
5978
--[[ Element: Health Bar Handles updating of `self.Health` based on the units health. Widget Health - A StatusBar used to represent current unit health. Sub-Widgets .bg - A Texture which functions as a background. It will inherit the color of the main StatusBar. Notes The default StatusBar texture ...
bsd-3-clause
chenxu0113/netcode
work/redis_Chinese_notated_3.0/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...
gpl-2.0
zming619/codis
extern/redis-2.8.13/deps/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
mit
CrazyJvm/reborn
extern/redis-2.8.21/deps/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
mit
anholt/ValyriaTear
dat/objects/weapons.lua
1
23548
------------------------------------------------------------------------------[[ -- Filename: weapons.lua -- -- Description: This file contains the definitions of all weapons. -- Each weapon has a unique integer identifier that is used -- as its key in the weapons table below. Weapon IDs are unique not only among -- ea...
gpl-2.0
exile1920/BolScripts
MrArticunoLaucher.lua
23
3851
--[[ _____ _____ __ .__ / \_______ / _ \________/ |_|__| ____ __ __ ____ ____ / \ / \_ __ \ / /_\ \_ __ \ __\ |/ ___\| | \/ \ / _ \ / Y \ | \/ / | \ | \/| | | \ \___| | / | ( <_> ) \____|__ /__| \___...
gpl-2.0
rlcevg/Zero-K
gamedata/modularcomms/weapons/torpedo.lua
17
1427
local name = "commweapon_torpedo" local weaponDef = { name = [[Torpedo Launcher]], areaOfEffect = 16, avoidFriendly = false, bouncerebound = 0.5, bounceslip = 0.5, burnblow = true, collideFriendly = false, craterBoost ...
gpl-2.0
avataronline/avatarclient
modules/corelib/ui/uisplitter.lua
10
2605
-- @docclass UISplitter = extends(UIWidget, "UISplitter") function UISplitter.create() local splitter = UISplitter.internalCreate() splitter:setFocusable(false) splitter.relativeMargin = 'bottom' return splitter end function UISplitter:onHoverChange(hovered) -- Check if margin can be changed local margin ...
mit
ViolyS/RayUI_VS
Interface/AddOns/RayUI/libs/oUF/elements/powerprediction.lua
2
5589
--[[ # Element: Power Prediction Bar Handles the visibility and updating of power cost prediction. ## Widget PowerPrediction - A `table` containing the sub-widgets. ## Sub-Widgets mainBar - A `StatusBar` used to represent power cost of spells on top of the Power element. altBar - A `StatusBar` used to represent p...
mit
weirdouncle/QSanguosha-For-Hegemony-personal
lang/zh_CN/Package/StandardGeneralPackage.lua
5
1076
--[[******************************************************************** Copyright (c) 2013-2015 Mogara This file is part of QSanguosha-Hegemony. This game is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation...
gpl-3.0
pjohalloran/ember
projects/thirdparty_build_scripts/string_id.lua
1
1392
#!lua -- -- @file string_id.lua -- @author PJ O Halloran -- @date 25/09/2017 -- -- For building the string_id library. -- local function build() local lib_name = "string_id" local output_lib_name = "foonathan_" .. lib_name local lib_src_dir = path.join(ember_thirdparty_src, lib_name) do_pre_build...
mit
Unrepentant-Atheist/mame
3rdparty/genie/tests/base/test_action.lua
59
1366
-- -- tests/base/test_action.lua -- Automated test suite for the action list. -- Copyright (c) 2009 Jason Perkins and the Premake project -- T.action = { } -- -- Setup/teardown -- local fake = { trigger = "fake", description = "Fake action used for testing", } function T.action.setup() premake.action.li...
gpl-2.0
notcake/glib
lua/glib/net/layer2/inboundsplitpacket.lua
2
1350
local self = {} GLib.Net.Layer2.InboundSplitPacket = GLib.MakeConstructor (self) function self:ctor (id) self.Id = id self.Data = nil self.EncodedData = nil self.EncodedLength = 0 self.Chunks = {} self.ChunkSize = 0 self.ChunkCount = 0 self.NextChunk = 1 end function self:GetData () return self.Dat...
gpl-3.0
Unrepentant-Atheist/mame
3rdparty/genie/tests/actions/vstudio/sln2005/dependencies.lua
47
1320
-- -- tests/actions/vstudio/sln2005/dependencies.lua -- Validate generation of Visual Studio 2005+ solution project dependencies. -- Copyright (c) 2009-2011 Jason Perkins and the Premake project -- T.vstudio_sln2005_dependencies = { } local suite = T.vstudio_sln2005_dependencies local sln2005 = premake.vstudio.sln2...
gpl-2.0
avataronline/avatarclient
modules/game_npctrade/npctrade.lua
1
13960
BUY = 1 SELL = 2 CURRENCY = 'copper' CURRENCY_DECIMAL = false WEIGHT_UNIT = 'oz' LAST_INVENTORY = 10 npcWindow = nil itemsPanel = nil radioTabs = nil radioItems = nil searchText = nil setupPanel = nil quantity = nil quantityScroll = nil nameLabel = nil priceLabel = nil moneyLabel = nil weightDesc = nil weightLabel = n...
mit
EliHar/Pattern_recognition
torch1/extra/nn/GPU.lua
5
8404
------------------------------------------------------------------------ --[[ GPU ]]-- -- Decorates a module such that its parameters are -- hosted on a specified GPU device. -- The operations are also executed on that device. -- Arguments input and gradOutput are converted to the specified device -- before being fed ...
mit
rlcevg/Zero-K
LuaUI/Widgets/unit_start_state.lua
1
26714
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Unit Start State", desc = "Configurable starting unit states for units", author = "Goog...
gpl-2.0
stas2z/openwrt-witi
package/luci/applications/luci-app-asterisk/luasrc/model/cbi/asterisk/phone_sip.lua
68
3603
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local ast = require("luci.asterisk") local function find_outgoing_contexts(uci) local c = { } local h = { } uci:foreach("asterisk", "dialplan", function(s) if not h[s['.name']] then c[#c+1] = { s['...
gpl-2.0
lynx-seu/skynet
lualib/cluster.lua
48
1257
local skynet = require "skynet" local clusterd local cluster = {} function cluster.call(node, address, ...) -- skynet.pack(...) will free by cluster.core.packrequest return skynet.call(clusterd, "lua", "req", node, address, skynet.pack(...)) end function cluster.open(port) if type(port) == "string" then skynet....
mit
EliHar/Pattern_recognition
torch1/install/share/lua/5.1/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
ViolyS/RayUI_VS
Interface/AddOns/RayUI/libs/oUF/elements/power.lua
1
11664
--[[ # Element: Power Bar Handles the updating of a status bar that displays the unit's power. ## Widget Power - A `StatusBar` used to represent the unit's power. ## Sub-Widgets .bg - A `Texture` used as a background. It will inherit the color of the main StatusBar. ## Notes A default texture will be applied if ...
mit
Jennal/cocos2dx-3.2-qt
cocos/scripting/lua-bindings/auto/api/ActionObject.lua
6
2594
-------------------------------- -- @module ActionObject -- @extend Ref -- @parent_module ccs -------------------------------- -- @function [parent=#ActionObject] setCurrentTime -- @param self -- @param #float float -------------------------------- -- @function [parent=#ActionObject] pause -- @param self ...
mit
rlcevg/Zero-K
scripts/pw_mine.lua
11
1277
include "constants.lua" local base = piece "base" local turret = piece "turret" local smokePiece = {turret} local function TurnTurret () while (true) do Move(turret, y_axis, -10, 4) WaitForMove(turret, y_axis) Sleep(200) Move(turret, y_axis, 0, 4) WaitForMove(turret, y_axis) Turn(turret, y_axis, 1.57079...
gpl-2.0
yangboz/bugfree-bugfixes
CocosJSGame/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/LayoutParameter.lua
6
1114
-------------------------------- -- @module LayoutParameter -- @extend Ref -- @parent_module ccui -------------------------------- -- @function [parent=#LayoutParameter] clone -- @param self -- @return LayoutParameter#LayoutParameter ret (return value: ccui.LayoutParameter) -------------------------------- ...
mit
ViolyS/RayUI_VS
Interface/AddOns/RayUI/locales/enUS.lua
1
26150
local AceLocale = LibStub:GetLibrary("AceLocale-3.0") local L = AceLocale:NewLocale("RayUI", "enUS") if not L then return end do CALENDAR = "Calendar" L["锚点已解锁,拖动锚点移动位置,右键点击微调,完成后点击锁定按钮。"] = "Anchors unlocked, right click to nudge, move anything you want then click the Lock button." L["网格数"] = "Grid size" ...
mit
winnerineast/Origae-6
origae/tools/torch/main.lua
1
35300
-- Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. require 'torch' require 'xlua' require 'optim' require 'pl' require 'trepl' require 'lfs' require 'nn' local dir_path = debug.getinfo(1,"S").source:match[[^@?(.*[\/])[^\/]-$]] if dir_path ~= nil then package.path = dir_path .."?.lua;".. package....
gpl-3.0
EliHar/Pattern_recognition
torch1/install/share/lua/5.1/jit/dis_x86.lua
7
32546
---------------------------------------------------------------------------- -- LuaJIT x86/x64 disassembler module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h --------------------------------------------------------------------------...
mit
AliKhodadad/Telebot
plugins/welcome.lua
190
3526
local add_user_cfg = load_from_file('data/add_user_cfg.lua') local function template_add_user(base, to_username, from_username, chat_name, chat_id) base = base or '' to_username = '@' .. (to_username or '') from_username = '@' .. (from_username or '') chat_name = string.gsub(chat_name, '_', ' ') or '' c...
gpl-2.0
rlcevg/Zero-K
LuaUI/Widgets/camera_smooth_move.lua
8
6635
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: camera_smooth_scroll.lua -- brief: Alternate camera scrolling for the middle mouse button -- author: Dave Rodgers -- -- Copyright (C) 20...
gpl-2.0
rlcevg/Zero-K
effects/fires.lua
17
9989
-- flamer -- fire1_burn1_flame1 -- fire1_smoke1 -- fire1_burnlight -- fire1_burn1_flame3 -- fire1_burn1_flame4 -- fire1_burn1 -- fire1_burn1_flame2 -- fire1 return { ["flamer"] = { fire = { air = true, class = [[CSimpleParticleSystem]], count = 1, ...
gpl-2.0
rocketime/openwrt-shchool_spec-test
luci-mentohust/luasrc/model/cbi/mentohust/mentohust.lua
1
3145
--[[ LuCI mentohust Author:a1ive ]]-- require("luci.tools.webadmin") m = Map("mentohust", translate("MentoHUST"), translate("锐捷、赛尔认证客户端.")) function m.on_commit(self) os.execute("/etc/init.d/mentohust start") end s = m:section(TypedSection, "option", translate("启动选项"),translate("设置mentohust启动选项")) s.anonymous = t...
gpl-3.0
rlcevg/Zero-K
effects/gundam_kampferimpact.lua
25
7159
-- kampferimpact return { ["kampferimpact"] = { dirta = { air = true, class = [[CSimpleParticleSystem]], count = 1, properties = { airdrag = 0.7, alwaysvisible = true, colormap = [[0.1 0.1 0.1 1.0 0...
gpl-2.0
Jigoku/boxclip
src/mapio.lua
1
5502
--[[ * 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
medialab-prado/Interactivos-15-Ego
minetest-ego/games/minetest_game/mods/wool/init.lua
5
1815
-- minetest/wool/init.lua -- Backwards compatibility with jordach's 16-color wool mod minetest.register_alias("wool:dark_blue", "wool:blue") minetest.register_alias("wool:gold", "wool:yellow") local wool = {} -- This uses a trick: you can first define the recipes using all of the base -- colors, and then some recipes...
mit
joole/private-pkgs
luci/applications/luci-app-redsocks2/files/usr/lib/lua/luci/model/cbi/redsocks2/general.lua
1
5169
local state_msg = "" --alex:添加运行状态指示 local listen_port = luci.sys.exec("uci get redsocks2.@redsocks2_redirect[0].local_port") local red_on = string.len(luci.sys.exec("netstat -nlp | grep " .. listen_port))>0 if red_on then state_msg = "<b><font color=\"green\">" .. translate("Running") .. "</font></b>" else state_m...
gpl-2.0