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
Jennal/cocos2dx-3.2-qt
cocos/scripting/lua-bindings/auto/api/PhysicsJointRatchet.lua
7
1329
-------------------------------- -- @module PhysicsJointRatchet -- @extend PhysicsJoint -- @parent_module cc -------------------------------- -- @function [parent=#PhysicsJointRatchet] getAngle -- @param self -- @return float#float ret (return value: float) -------------------------------- -- @function [par...
mit
rlcevg/Zero-K
LuaRules/Configs/drone_defs.lua
3
4933
-- reloadTime is in seconds -- offsets = {x,y,z} , where x is left(-)/right(+), y is up(+)/down(-), z is forward(+)/backward(-) local BUILD_UPDATE_INTERVAL = 15 local carrierDefs = {} local carrierDefNames = { armcarry = { spawnPieces = {"base"}, { drone = UnitDefNames.carrydrone.id, reloadTime = 15, ...
gpl-2.0
rlcevg/Zero-K
effects/nota_otaplas.lua
50
48727
-- miniotaplas_fireball11 -- otaplas_fireball3 -- otaplas_fireball16 -- otaplas_fireball14 -- ota_plas -- miniotaplas_fireball17 -- otaplas_fireball18 -- otaplas_fireball1 -- otaplas_fireball11 -- miniotaplas_fireball13 -- otaplas_fireball10 -- miniotaplas_fireball16 -- otaplas_fireball13 -- miniotaplas_fireball2 -- ot...
gpl-2.0
abdllhbyrktr/Urho3D
bin/Data/LuaScripts/23_Water.lua
15
9916
-- Water example. -- This sample demonstrates: -- - Creating a large plane to represent a water body for rendering -- - Setting up a second camera to render reflections on the water surface require "LuaScripts/Utilities/Sample" local reflectionCameraNode = nil local waterNode = nil local waterPlane = Plane() ...
mit
omid1212/ccd
plugins/time.lua
771
2865
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
lynx-seu/skynet
lualib/http/httpc.lua
42
2906
local socket = require "http.sockethelper" local url = require "http.url" local internal = require "http.internal" local string = string local table = table local httpc = {} local function request(fd, method, host, url, recvheader, header, content) local read = socket.readfunc(fd) local write = socket.writefunc(fd)...
mit
EliHar/Pattern_recognition
torch1/install/share/lua/5.1/torch/File.lua
7
16006
local File = torch.getmetatable('torch.File') function File:writeBool(value) if value then self:writeInt(1) else self:writeInt(0) end end function File:readBool() return (self:readInt() == 1) end local TYPE_NIL = 0 local TYPE_NUMBER = 1 local TYPE_STRING = 2 local TYPE_TABLE = 3 l...
mit
Tieske/girder-xpl-component
luascript/components/UPnP (xPL)/UPnP Devices/Interfaces/Base.lua
1
7227
--[[ Control Interface Mapping Base Class Use to map controls/services between G5 Devices and a UPnP Device --]] local Base = { DMControlID = false, -- id of the control on the G5 device UPnPInterface = false, -- reference to the UPnP interface Parent = false, -- reference the parent that con...
gpl-3.0
rlcevg/Zero-K
scripts/zenith.lua
1
10605
include "constants.lua" local spGetUnitRulesParam = Spring.GetUnitRulesParam local devCompatibility = Spring.Utilities.IsCurrentVersionNewerThan(100, 0) local base = piece "base" local flare = piece "flare" local firept = piece "firept" local SOURCE_RANGE = 4000 -- size of the box which the emit point can be rando...
gpl-2.0
Tieske/girder-xpl-component
luascript/components/UPnP (xPL)/UPnP Devices/Media Renderer.lua
1
2238
--[[ UPnP Media Renderer --]] -- build our own av device require 'DeviceManager.Devices.AudioVisual' local Devices = DeviceManager.Devices.Classes local Base = Devices.Base local AVRenderer = Base:New ( { Type = 'AV\\Renderer', AddControls = function (self) end, } ) DeviceManager:AddDevice...
gpl-3.0
ViolyS/RayUI_VS
Interface/AddOns/Skada/lib/AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua
12
7255
--[[----------------------------------------------------------------------------- EditBox Widget -------------------------------------------------------------------------------]] local Type, Version = "EditBox", 26 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidgetVersion(Type) or...
mit
stas2z/openwrt-witi
package/luci/applications/luci-app-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/widgets_overview.lua
68
1868
-- Copyright 2012 Manuel Munz <freifunk at somakoma dot de> -- Licensed to the public under the Apache License 2.0. local uci = require "luci.model.uci".cursor() local fs = require "nixio.fs" local utl = require "luci.util" m = Map("freifunk-widgets", translate("Widgets"), translate("Configure installed widget...
gpl-2.0
rlcevg/Zero-K
LuaUI/Widgets/unit_gadget_icons.lua
6
4380
------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Gadget Icons", desc = "Shows icons from gadgets that cannot access the widget stuff ...
gpl-2.0
mightymadTV/gcraft
gcraft/entities/entities/env_skypaint.lua
3
4453
AddCSLuaFile() ENT.Type = "point" ENT.DisableDuplicator = true -- -- Make this entity always networked -- function ENT:UpdateTransmitState() return TRANSMIT_ALWAYS end -- -- Networked / Saved Data -- function ENT:SetupDataTables() self:NetworkVar( "Vector", 0, "TopColor", { KeyName = "topcolor", Edit = { ty...
gpl-2.0
CECteam/CECteam
plugins/stats.lua
866
4001
do -- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_prin...
gpl-2.0
rlcevg/Zero-K
LuaRules/Configs/stealth_defs.lua
4
1103
-- $Id: stealth_defs.lua 3496 2008-12-21 20:33:13Z licho $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- local passiveStealth = { draw = false, init = false, energy = 0, delay = 0, tie...
gpl-2.0
Amadiro/obtuse-tanuki
libs/material-love/libs/roundrect.lua
2
2194
--Based on Robin's roundrect.lua https://gist.github.com/gvx/9072860 --Supports different radius for each corner, does everything in a for loop --You can easily change the order for the corners! local roundrect = {} roundrect.new = function (x, y, width, height, radius, precision) local p = {} --Polygon! --xs and ys...
mit
cailyoung/CommandPost
src/plugins/finalcutpro/timeline/videoeffects.lua
1
7062
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- C O M M A N D P O S T -- -----------------------------------------------------------------------------...
mit
renolike/LuaSrcDiet
bin/app_default.lua
2
43706
#!/usr/bin/env lua local s=string local e=math local ee=table local j=require local y=print local f=s.sub local G=s.gmatch local B=s.match local p=package.preload local a=_G local Z={ html="html generates a HTML file for checking globals", sloc="sloc calculates SLOC for given source file", } local W={ 'html', 'sl...
mit
mrjon1/kpbot
plugins/moderation.lua
336
9979
do local function check_member(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then local username = v.username data[tostring(m...
gpl-2.0
soniccol/OpenRedAlert_TW
mods/common/lua/map.lua
3
3191
Map = { } Map.GetFacing = function(vec, currentFacing) return Internal.GetFacing(vec, currentFacing) end Map.GetRandomCell = function() return Internal.GetRandomCell() end Map.GetRandomEdgeCell = function() return Internal.GetRandomEdgeCell() end Map.IsNamedActor = function(actor) return Internal.IsNamedActor(a...
gpl-3.0
rlcevg/Zero-K
effects/gundam_powerplant_explosion.lua
25
3625
-- powerplant_explosion return { ["powerplant_explosion"] = { electric1 = { air = true, class = [[heatcloud]], count = 3, ground = true, water = true, properties = { alwaysvisible = true, he...
gpl-2.0
stas2z/openwrt-witi
package/luci/modules/luci-mod-admin-mini/luasrc/controller/mini/index.lua
74
1261
-- 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. module("luci.controller.mini.index", package.seeall) function index() local root = node() if not root.lock then root.target = alias("mini") root.index =...
gpl-2.0
abdllhbyrktr/Urho3D
bin/Data/LuaScripts/03_Sprites.lua
24
3509
-- Moving sprites example. -- This sample demonstrates: -- - Adding Sprite elements to the UI -- - Storing custom data (sprite velocity) inside UI elements -- - Handling frame update events in which the sprites are moved require "LuaScripts/Utilities/Sample" local numSprites = 100 local sprites =...
mit
StephenAho/gamecode4
Assets/Scripts/LevelInit.lua
44
3469
--======================================================================== -- LevelInit.lua : A script that's executed when the level is initializing -- -- Part of the GameCode4 Application -- -- GameCode4 is the sample application that encapsulates much of the source code -- discussed in "Game Coding Complete - ...
lgpl-3.0
cailyoung/CommandPost
src/plugins/core/preferences/panels/general.lua
1
1836
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- G E N E R A L P R E F E R E N C E S P A N E L -- -----------------------------------------------------------------------------...
mit
yangboz/bugfree-bugfixes
CocosJSGame/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/PhysicsBody.lua
6
10956
-------------------------------- -- @module PhysicsBody -- @extend Ref -- @parent_module cc -------------------------------- -- @function [parent=#PhysicsBody] isGravityEnabled -- @param self -- @return bool#bool ret (return value: bool) -------------------------------- -- @function [parent=#PhysicsBody] re...
mit
Jeffyrao/nn
MarginRankingCriterion.lua
43
1963
local MarginRankingCriterion, parent = torch.class('nn.MarginRankingCriterion', 'nn.Criterion') function MarginRankingCriterion:__init(margin) parent.__init(self) margin=margin or 1 self.margin = margin self.gradInput = {torch.Tensor(1), torch.Tensor(1)} end function MarginRankingCriterion:updateOutput...
bsd-3-clause
rlcevg/Zero-K
LuaRules/Configs/start_setup.lua
1
1131
startUnits = { --armcom = 'armcom1', --corcom = 'corcom1', --commsupport = 'commsupport1', --commrecon = 'commrecon1', --benzcom = 'benzcom1', --cremcom = 'cremcom1', commbasic = 'commbasic', } aiCommanders = { [UnitDefNames["dyntrainer_recon_base"].id] = true, [UnitDefNames["dyntrainer_support_base"].id] = t...
gpl-2.0
Jennal/cocos2dx-3.2-qt
cocos/scripting/lua-bindings/auto/api/Animate3D.lua
6
1692
-------------------------------- -- @module Animate3D -- @extend ActionInterval -- @parent_module cc -------------------------------- -- @function [parent=#Animate3D] setSpeed -- @param self -- @param #float float -------------------------------- -- @function [parent=#Animate3D] setWeight -- @param self --...
mit
cloudkick/ck-agent
src/lua/remote/check_cpu.lua
1
4626
-- -- Copyright 2012 Rackspace -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compli...
apache-2.0
stas2z/openwrt-witi
package/luci/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/system.lua
78
2244
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. require("luci.sys") require("luci.sys.zoneinfo") require("luci.tools.webadmin") require("luci.util") m = Map("system", translate("System"), translate("Here you can configure the basic aspects of your device li...
gpl-2.0
joaocc/ta3d-git
src/ta3d/src/luajit/lib/dis_x86.lua
3
29330
---------------------------------------------------------------------------- -- LuaJIT x86/x64 disassembler module. -- -- Copyright (C) 2005-2011 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h --------------------------------------------------------------------------...
gpl-2.0
stas2z/openwrt-witi
package/luci/modules/luci-base/luasrc/ltn12.lua
84
8954
--[[ LuaSocket 2.0.2 license Copyright � 2004-2007 Diego Nehab 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, me...
gpl-2.0
MarvellEmbeddedProcessors/openwrt-packages
net/luci-app-clamav/files/model/cbi/clamav-cbi.lua
100
6776
--[[ LuCI ClamAV module Copyright (C) 2015, Itus Networks, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Author: Marko Ratkaj <marko.ratkaj@sar...
gpl-2.0
stas2z/openwrt-witi
feeds/routing/bird-openwrt/bird6-openwrt/src/model/gen_proto.lua
7
6429
--[[ 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
Mehranhpr/spam
plugins/minecraft.lua
624
2605
local usage = { "!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565", "!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.", } local ltn12 = require "ltn12" local function mineSearch(ip, port, receiver) --25565 local responseText = "" l...
gpl-2.0
yangboz/bugfree-bugfixes
CocosJSGame/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/SceneReader.lua
6
1218
-------------------------------- -- @module SceneReader -- @parent_module ccs -------------------------------- -- @function [parent=#SceneReader] setTarget -- @param self -- @param #function func -------------------------------- -- @function [parent=#SceneReader] createNodeWithSceneFile -- @param self -- @...
mit
sudoroom/labitrack
web/dkjson.lua
26
25665
--[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.1* This module writes no global values, not even the module table. Import it using json = require ("dkjson") Exported functions and values: `json.encode (object [, state])` -------------------------------- ...
gpl-3.0
rlcevg/Zero-K
units/attackdrone.lua
2
3863
unitDef = { unitname = [[attackdrone]], name = [[Firefly]], description = [[Attack Drone]], acceleration = 0.3, airHoverFactor = 4, amphibious = true, brakeRate = 0.3, buildCostEnergy = 50, buildCostMetal = 50, builder ...
gpl-2.0
drmingdrmer/mysql-proxy-xp
lib/histogram.lua
40
5165
--[[ $%BEGINLICENSE%$ Copyright (c) 2007, 2008, 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
rlcevg/Zero-K
effects/sonic.lua
12
3867
Spring = Spring or {} Spring.Utilities = Spring.Utilities or {} VFS.Include("LuaRules/Utilities/tablefunctions.lua") local fx = { ['sonic'] = { groundflash = { air = false, underwater = true, circlealpha = 0.6, circlegrowth = 2, flashalpha = 0.9, ...
gpl-2.0
rlcevg/Zero-K
scripts/corsumo.lua
7
13726
--by Chris Mackey include "constants.lua" include "JumpRetreat.lua" include 'letsNotFailAtTrig.lua' --pieces local b_dome = piece "b_dome" local t_dome = piece "t_dome" local b_eye = piece "b_eye" local t_eye = piece "t_eye" -- guns local l_turn = piece "l_turn" local l_turret = piece "l_turret" local l_pivot = piec...
gpl-2.0
ViolyS/RayUI_VS
Interface/AddOns/RayUI/libs/LibSpellRange-1.0/libs/LibStub/tests/test2.lua
100
1112
debugstack = debug.traceback strmatch = string.match loadfile("../LibStub.lua")() for major, library in LibStub:IterateLibraries() do -- check that MyLib doesn't exist yet, by iterating through all the libraries assert(major ~= "MyLib") end assert(not LibStub:GetLibrary("MyLib", true)) -- check that MyLib doesn't ...
mit
lynx-seu/skynet
lualib/snax/hotfix.lua
39
2268
local si = require "snax.interface" local io = io local hotfix = {} local function envid(f) local i = 1 while true do local name, value = debug.getupvalue(f, i) if name == nil then return end if name == "_ENV" then return debug.upvalueid(f, i) end i = i + 1 end end local function collect_uv(f , ...
mit
stas2z/openwrt-witi
feeds/routing/luci-app-bmx6/files/usr/lib/lua/luci/model/cbi/bmx6/advanced.lua
18
2129
--[[ Copyright (C) 2011 Pau Escrich <pau@dabax.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Th...
gpl-2.0
yangboz/bugfree-bugfixes
CocosJSGame/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/TransitionPageTurn.lua
6
1038
-------------------------------- -- @module TransitionPageTurn -- @extend TransitionScene -- @parent_module cc -------------------------------- -- @function [parent=#TransitionPageTurn] actionWithSize -- @param self -- @param #size_table size -- @return ActionInterval#ActionInterval ret (return value: cc.ActionInter...
mit
samyk/proxmark3
client/luascripts/mem_readpwd.lua
1
4549
local getopt = require('getopt') local bin = require('bin') local ansicolors = require('ansicolors') copyright = 'Copyright (c) 2018 Bogito. All rights reserved.' author = 'Bogito' version = 'v1.0.4' desc = [[ This script will read the flash memory of RDV4 and print the stored passwords/keys. It was meant to be used ...
gpl-2.0
firebitsbr/ettercap
src/lua/share/third-party/stdlib/src/debug_ext.lua
14
2249
--- Additions to the debug module module ("debug", package.seeall) require "debug_init" require "io_ext" require "string_ext" --- To activate debugging set _DEBUG either to any true value -- (equivalent to {level = 1}), or as documented below. -- @class table -- @name _DEBUG -- @field level debugging level -- @field ...
gpl-2.0
rlcevg/Zero-K
scripts/tawf114.lua
6
4938
include "constants.lua" include "RockPiece.lua" include "pieceControl.lua" local base, turret, sleeve = piece ('base', 'turret', 'sleeve') local missiles = { piece ('dummy1'), piece ('dummy2'), } local SIG_Restore = 1 local SIG_Aim = 2 local SIG_Move = 4 local SIG_ROCK_X = 8 local SIG_ROCK_Z = 16 local SIG_Stun = ...
gpl-2.0
elloray/thrift
lib/lua/TBinaryProtocol.lua
90
6141
-- -- 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
fernandobt8/thrift
lib/lua/TBinaryProtocol.lua
90
6141
-- -- 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
ikstream/Minstrel-Blues
measurement/minstrel-measurement/tests/pcap.lua
2
5719
local pprint = require ('pprint') require ('parsers/parsers') require ('bit') -- lua5.3 supports operator &,|,<<,>> natively require ('parsers/radiotap') --print (pcap._LIB_VERSION) --pcap.DLT = { 'DLT_IEEE802_11_RADIO' } local fname = "tests/test.pcap" --local fname = "/home/denis/data-30.03.2017-5G-all/tp4300/tp43...
gpl-2.0
joole/private-pkgs
lang/lua/lua-xmlrpc/files/server.lua
5
2668
--------------------------------------------------------------------- -- XML-RPC server -- See Copyright Notice in license.html --------------------------------------------------------------------- local assert, pcall, setmetatable, type, unpack = assert, pcall, setmetatable, type, unpack local cgilua = require"cgilua...
gpl-2.0
zaczh/indigo
scripts/HeartViewController.lua
1
2554
--draw a heart function getHeartImage(size, color) probe(color) UIGraphicsBeginImageContext(size) local context = UIGraphicsGetCurrentContext() CGContextTranslateCTM(context, 0.0, size.height) CGContextScaleCTM(context, 1.0, -1.0) CGContextSetFillColorWithColor(context, color) CGContextSet...
mit
rlcevg/Zero-K
LuaUI/Widgets/gui_chili_windowPacker.lua
6
15924
local version = "v1.001" function widget:GetInfo() return { name = "Chili Window Packer", desc = version .. " Provides functionality to automatically arrange windows in space-saving manners. Activate-able thru \"packNow\" button (\255\90\255\90Setting/HUD Panels/Docking\255\255\255\255).", aut...
gpl-2.0
rlcevg/Zero-K
effects/unused_charlize.lua
25
30008
-- charlize_7 -- charlize_3 -- charlize_2 -- charlize_14 -- charlize_1 -- charlize_17 -- charlize_6 -- charlize_4 -- charlize_10 -- charlize_11 -- charlize_12 -- charlize_21 -- charlize -- charlize_18 -- charlize_8 -- charlize_19 -- charlize_ani -- charlize_9 -- charlize_15 -- charlize_13 -- charlize_5 -- charlize_16 -...
gpl-2.0
anholt/ValyriaTear
src/luabind/examples/glut/glut_bindings.lua
38
1543
quit = false function resize_func(w, h) local ratio = w / h print('====== resize') glMatrixMode(gl.PROJECTION) glLoadIdentity() glViewport(0,0,w,h) gluPerspective(45,ratio,1,1000) glMatrixMode(gl.MODELVIEW) glLoadIdentity() end angle = 0 angle2 = 0 previous_time = 0 function display_func() if quit the...
gpl-2.0
joaocc/ta3d-git
src/ta3d/src/luajit/src/jit/bc.lua
20
5606
---------------------------------------------------------------------------- -- LuaJIT bytecode listing module. -- -- Copyright (C) 2005-2013 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -...
gpl-2.0
stas2z/openwrt-witi
package/luci/libs/luci-lib-nixio/root/usr/lib/lua/nixio/util.lua
179
5824
--[[ nixio - Linux I/O library for lua Copyright 2009 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- local...
gpl-2.0
lynx-seu/skynet
service/bootstrap.lua
29
1191
local skynet = require "skynet" local harbor = require "skynet.harbor" require "skynet.manager" -- import skynet.launch, ... local memory = require "memory" skynet.start(function() local sharestring = tonumber(skynet.getenv "sharestring") memory.ssexpand(sharestring or 4096) local standalone = skynet.getenv "stand...
mit
ViolyS/RayUI_VS
Interface/AddOns/Skada/lib/AceGUI-3.0/widgets/AceGUIWidget-Icon.lua
24
3799
--[[----------------------------------------------------------------------------- Icon Widget -------------------------------------------------------------------------------]] local Type, Version = "Icon", 21 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >=...
mit
ViolyS/RayUI_VS
Interface/AddOns/RayUI_Options/libs/AceGUI-3.0/widgets/AceGUIContainer-Window.lua
52
9726
local AceGUI = LibStub("AceGUI-3.0") -- Lua APIs local pairs, assert, type = pairs, assert, type -- WoW APIs local PlaySound = PlaySound local CreateFrame, UIParent = CreateFrame, UIParent -- Global vars/functions that we don't upvalue since they might get hooked, or upgraded -- List them here for Mikk's FindGlobals...
mit
abdllhbyrktr/Urho3D
Source/ThirdParty/LuaJIT/dynasm/dasm_arm.lua
33
34598
------------------------------------------------------------------------------ -- DynASM ARM module. -- -- Copyright (C) 2005-2016 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ -- Module information: local _in...
mit
brice-morin/LuaSM
luasm-sample1.lua
1
5427
module("luasm-sample1", package.seeall) require "luasm" ------Test------ print("Start " .. collectgarbage("count")); local A = luasm.AtomicState:new{name = "A"} function A:executeOnEntry() --ThingML attributes/functions can be accessed via self.component print("A.onEntry " .. self.component.count) self.component.cou...
mit
rlcevg/Zero-K
LuaRules/Gadgets/lups_flame_jitter.lua
17
6545
-- $Id: lups_flame_jitter.lua 3643 2009-01-03 03:00:52Z jk $ ------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- function gadget:GetInfo() return { name = "Lups Flamethrower Jitter", d...
gpl-2.0
yangboz/bugfree-bugfixes
CocosJSGame/frameworks/js-bindings/cocos2d-x/external/lua/luajit/src/src/host/genminilua.lua
73
11943
---------------------------------------------------------------------------- -- Lua script to generate a customized, minified version of Lua. -- The resulting 'minilua' is used for the build process of LuaJIT. ---------------------------------------------------------------------------- -- Copyright (C) 2005-2013 Mike P...
mit
pillowthief/moonridge
lib/jumper/core/bheap.lua
1
5018
--- A light implementation of Binary heaps data structure. -- While running a search, some search algorithms (Astar, Dijkstra, Jump Point Search) have to maintains -- a list of nodes called __open list__. Retrieve from this list the lowest cost node can be quite slow, -- as it normally requires to skim through the full...
mit
kevincox/wireshark
epan/wslua/dtd_gen.lua
38
8369
-- dtd_gen.lua -- -- a DTD generator for wireshark -- -- (c) 2006 Luis E. Garcia Ontanon <luis@ontanon.org> -- -- Wireshark - Network traffic analyzer -- By Gerald Combs <gerald@wireshark.org> -- Copyright 1998 Gerald Combs -- -- This program is free software; you can redistribute it and/or -- modify it under the terms...
gpl-2.0
firebitsbr/ettercap
src/lua/share/third-party/stdlib/src/parser.lua
12
8882
--- Parser generator. -- <p>A parser is created by</p> -- <blockquote> -- <p><code>p = Parser {grammar}</code></p> -- </blockquote> -- <p>and called with</p> -- <blockquote> -- <p><code>result = p:parse (start_token, token_list[, -- from])</code></p> -- </blockquote> -- <p>where start_token is the non-terminal at which...
gpl-2.0
rlcevg/Zero-K
lups/ParticleClasses/NanoParticles.lua
13
12525
-- $Id: NanoParticles.lua 3171 2008-11-06 09:06:29Z det $ ----------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------- local NanoParticles = {} NanoPart...
gpl-2.0
mightymadTV/gcraft
gcraft/gamemode/cl_spawnmenu.lua
3
2893
-- Hopefully in a future update the entire spawn menu will be moved to Lua -- For now, in your gamemode, you could use the spawn menu keys to do something else --[[--------------------------------------------------------- If false is returned then the spawn menu is never created. This saves load times if your mod...
gpl-2.0
Jennal/cocos2dx-3.2-qt
cocos/scripting/lua-bindings/auto/api/WavesTiles3D.lua
7
1272
-------------------------------- -- @module WavesTiles3D -- @extend TiledGrid3DAction -- @parent_module cc -------------------------------- -- @function [parent=#WavesTiles3D] getAmplitudeRate -- @param self -- @return float#float ret (return value: float) -------------------------------- -- @function [pare...
mit
pillowthief/moonridge
lib/moonshine/sketch.lua
2
2214
--[[ The MIT License (MIT) Copyright (c) 2015 Martin Felis Copyright (c) 2017 Matthias Richter 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 th...
mit
Amadiro/obtuse-tanuki
libs/sqlite-ffi/gencodes.lua
2
2277
--[[ A note about the LuaJIT implementation of this interface. Some liberties and simplifications were taken. Primarily all the deprecated and obsolete functions were removed. Similarly, all of the documentation has been removed to reduce the size of the file. In the cases where there were ifdef's around using...
mit
medialab-prado/Interactivos-15-Ego
minetest-ego/builtin/game/register.lua
1
15424
-- Minetest: builtin/misc_register.lua -- -- Make raw registration functions inaccessible to anyone except this file -- local register_item_raw = core.register_item_raw core.register_item_raw = nil local register_alias_raw = core.register_alias_raw core.register_alias_raw = nil -- -- Item / entity / ABM registratio...
mit
EliHar/Pattern_recognition
torch1/install/share/lua/5.1/torch/Tester.lua
6
28307
-- Lua 5.2 compatibility local unpack = unpack or table.unpack local check = {} -- helper functions, defined at the bottom of the file local Tester = torch.class('torch.Tester') function Tester:__init() self.errors = {} self.tests = {} self.warnings = {} self._warningCount = {} self.disabledTests = {...
mit
EliHar/Pattern_recognition
torch1/pkg/torch/Tester.lua
6
28307
-- Lua 5.2 compatibility local unpack = unpack or table.unpack local check = {} -- helper functions, defined at the bottom of the file local Tester = torch.class('torch.Tester') function Tester:__init() self.errors = {} self.tests = {} self.warnings = {} self._warningCount = {} self.disabledTests = {...
mit
anholt/ValyriaTear
dat/effects/particles/heal_particle.lua
4
4898
-- Heal particle effect -- Author: Bertram systems = {} systems[0] = { enabled = true, emitter = { x = 0, y = -64, x2 = 0, --useless when using a circle shape y2 = 0, --useless when using a circle shape center_x = 0, --useless when using a circle shape cen...
gpl-2.0
simpla-fusion/SimPla
scripts/configure/3D.lua
1
3250
-- Example Config file .------------------- -------- UNIT_DIMENSIONS="NATURE" DESCRIPTION="bala bala bong" -- description or other text things. DIMS={17,107,107} -- number of grid, now only first dimension is valid GW= {3,3,3} -- width of ghost points LENG...
bsd-3-clause
rlcevg/Zero-K
scripts/dynassault.lua
4
9706
include "constants.lua" dyncomm = include('dynamicCommander.lua') local spSetUnitShieldState = Spring.SetUnitShieldState -------------------------------------------------------------------------------- -- pieces -------------------------------------------------------------------------------- local pieceMap = Spring....
gpl-2.0
cailyoung/CommandPost
src/plugins/finalcutpro/streamdeck/init.lua
1
1930
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- S T R E A M D E C K P L U G I N -- -----------------------------------------------------------------------------...
mit
ViolyS/RayUI_VS
Interface/AddOns/RayUI/modules/skins/addons/clique.lua
2
1057
---------------------------------------------------------- -- Load RayUI Environment ---------------------------------------------------------- RayUI:LoadEnv("Skins") local S = _Skins local function SkinClique() local tab = _G["CliqueSpellTab"] tab:GetRegions():Kill() tab.pushed = true tab:CreateShadow(...
mit
ViolyS/RayUI_VS
Interface/AddOns/RayUI/libs/oUF_Plugins/RaidDebuffs.lua
1
10257
---------------------------------------------------------- -- Load RayUI Environment ---------------------------------------------------------- RayUI:LoadEnv("Raid") local _, ns = ... local oUF = ns.oUF or oUF local SymbiosisName = GetSpellInfo(110309) local CleanseName = GetSpellInfo(4987) local addon = {} ns.oUF...
mit
upsoft/Atlas
lib/proxy/balance.lua
41
2807
--[[ $%BEGINLICENSE%$ Copyright (c) 2007, 2008, 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
rlcevg/Zero-K
units/thicket.lua
8
2609
unitDef = { unitname = [[thicket]], name = [[Thicket]], description = [[Barricade]], acceleration = 0, brakeRate = 0, buildCostEnergy = 0, buildCostMetal = 0, builder ...
gpl-2.0
Unrepentant-Atheist/mame
3rdparty/genie/src/_manifest.lua
3
2498
-- -- _manifest.lua -- Manage the list of built-in Premake scripts. -- Copyright (c) 2002-2011 Jason Perkins and the Premake project -- -- The master list of built-in scripts. Order is important! If you want to -- build a new script into Premake, add it to this list. return { -- core files "base/os.lua", "bas...
gpl-2.0
EmmyLua/IntelliJ-EmmyLua
src/main/resources/std/Lua54/package.lua
2
9325
-- Copyright (c) 2018. tangzx(love.tangzx@qq.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 -- -- Unless required by applicable law ...
apache-2.0
Amadiro/obtuse-tanuki
libs/sqlite-ffi/sqlite3_constants.lua
2
15702
local bit = require("bit"); local bor = bit.bor; local lshift = bit.lshift; local SQLITE_IOERR = 10; local SQLITE_LOCKED = 6; local SQLITE_BUSY = 5; local SQLITE_CANTOPEN = 14; local SQLITE_CORRUPT = 11; local SQLITE_ABORT = 4; local SQLITE_READONLY = 8; local sqliteerrorcodes = { {"SQLITE_OK", 0 ," Succ...
mit
DrFR0ST/Human-Apocalypse
lib/shine/crt.lua
8
4295
--[[ 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
drmingdrmer/mysql-proxy-xp
tests/suite/base/t/bug_35729-test.lua
8
1432
--- -- Bug #35729 -- -- a value from the 1st column randomly becomes nil even if we send back -- a value from the mock server -- -- it only happens for the 2nd resultset we receive --- -- duplicate the test-query function read_query( packet ) if packet:byte() == proxy.COM_QUERY then proxy.queries:append(1, packet, ...
gpl-2.0
nbkmmw/-m1_l1
plugins/en-addsudo.lua
5
1472
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ ADD SUDO : اضافه مطور ▀▄ ▄▀ ▀▄▀...
gpl-2.0
carbonsrv/carbon
builtin/libs/wrappers/exec.lua
2
1207
-- exec wrappers --Default read size exec.READ_SIZE = 1 -- Convenience wrappers function exec.source(...) local cmd = exec.exec(...) return exec.source_using(cmd) end function exec.filter(...) local cmd = exec.exec(...) return exec.filter_using(cmd) end function exec.sink(...) local cmd = exec.exec(...) retur...
mit
avataronline/avatarclient
modules/corelib/ui/uiprogressbar.lua
10
2673
-- @docclass UIProgressBar = extends(UIWidget, "UIProgressBar") function UIProgressBar.create() local progressbar = UIProgressBar.internalCreate() progressbar:setFocusable(false) progressbar:setOn(true) progressbar.min = 0 progressbar.max = 100 progressbar.value = 0 progressbar.bgBorderLeft = 0 progres...
mit
ViolyS/RayUI_VS
Interface/AddOns/GnomishVendorShrinker/LibItemSearch-1.0.lua
2
10291
--[[ ItemSearch An item text search engine of some sort Grammar: <search> := <intersect search> <intersect search> := <union search> & <union search> ; <union search> <union search> := <negatable search> | <negatable search> ; <negatable search> <negatable search> := !<primitive search> ; <primitive...
mit
lynx-seu/skynet
lualib/skynet/manager.lua
72
1923
local skynet = require "skynet" local c = require "skynet.core" function skynet.launch(...) local addr = c.command("LAUNCH", table.concat({...}," ")) if addr then return tonumber("0x" .. string.sub(addr , 2)) end end function skynet.kill(name) if type(name) == "number" then skynet.send(".launcher","lua","REMO...
mit
rlcevg/Zero-K
LuaRules/Configs/lups_thruster_fxs.lua
6
1296
local tbl = { corbtrans = { {class='AirJet', options={color={0.2,0.4,0.8}, width=8, length=35, piece="engineEmit", onActive=true}}, }, gunshipsupport = { {class='AirJet', options={color={0.6,0.1,0.0}, width=3.5, length=22, piece="thrust1", onActive=true}}, {class='AirJet', options={color={0.6,0.1,0.0}...
gpl-2.0
notcake/glib
lua/glib/io/inbuffer.lua
2
3166
local self = {} GLib.InBuffer = GLib.MakeConstructor (self) local string_char = string.char function self:ctor () self.Position = 1 end -- Position function self:GetBytesRemaining () GLib.Error ("InBuffer:GetBytesRemaining : Not implemented.") end function self:GetPosition () return self.Position end function s...
gpl-3.0
EmmyLua/IntelliJ-EmmyLua
src/main/resources/std/Lua50/io.lua
2
7510
-- Copyright (c) 2018. tangzx(love.tangzx@qq.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 -- -- Unless required by applicable law ...
apache-2.0
Satoshi-t/Re-SBS
lua/config.lua
1
10520
-- this script to store the basic configuration for game program itself -- and it is a little different from config.ini config = { big_font = 56, small_font = 27, tiny_font = 18, kingdoms = { "wei", "shu", "wu", "qun", "god" }, kingdom_colors = { wei = "#547998", shu = "#D0796C", wu = "#4DB873", qun = "#8...
gpl-3.0