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
Insurgencygame/LivingDead
TheLivingDeadv0.1.sdd/luaui/widgets/cmd_lastmsgpos.lua
1
1359
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Last Msg. Pos.", version = "0.9", desc = "Goes to the last pointer", author = "Pa...
gpl-2.0
Insurgencygame/LivingDead
TheLivingDeadv0.1.sdd/units/unused/armawac.lua
1
1180
return { armawac = { acceleration = 0.1140000000596, brakerate = 5, buildcostenergy = 8062, buildcostmetal = 165, buildpic = "ARMAWAC.DDS", buildtime = 12819, canfly = true, canmove = true, category = "ALL ANTIEMG NOTLAND MOBILE NOTSUB ANTIFLAME ANTIGATOR ANTILASER VTOL NOWEAPON NOTSHIP NOTHOVER", ...
gpl-2.0
halolpd/vlc
share/lua/playlist/pluzz.lua
105
3740
--[[ $Id$ Copyright © 2011 VideoLAN Authors: Ludovic Fauvet <etix at l0cal dot com> 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 l...
gpl-2.0
LuaDist2/ldoc
ldoc/html/ldoc_one_css.lua
7
4176
return require('ldoc.html._reset_css') .. [[ body { margin-left: 1em; margin-right: 1em; font-family: arial, helvetica, geneva, sans-serif; background-color: #ffffff; margin: 0px; } code, tt { font-family: monospace; font-size: 1.1em; } body, p, td, th { font-size: .95em; line-height: 1.2em...
mit
douwekiela/nncg-negation
eacl17/feedforward.lua
1
5363
local cutorch = require "cutorch" local cunn = require "cunn" local nn = require "nn" local optim = require "optim" local argparse = require "argparse" -- get command line arguments local parser = argparse() parser:flag("--dropout", "whether to use dropout") parser:option("--learning-rate", "learning rate", 0.99) :c...
mit
Anarchid/Zero-K
scripts/bomberprec.lua
4
11715
local base = piece 'base' local fuselage = piece 'fuselage' local wingl1 = piece 'wingl1' local wingr1 = piece 'wingr1' local wingl2 = piece 'wingl2' local wingr2 = piece 'wingr2' local engines = piece 'engines' local fins = piece 'fins' local rflap = piece 'rflap' local lflap = piece 'lflap' local predrop = piece 'pre...
gpl-2.0
douwekiela/nncg-negation
example/predict.lua
1
1587
local cutorch = require "cutorch" local cunn = require "cunn" local nn = require "nn" local nngraph = require "nngraph" local opt = {} opt.modelFile = arg[1] opt.predFile = arg[1] .. ".out" -- set gated network hyperparameters opt.embedSize = 300 opt.gateSize = 300 opt.useGPU = true -- use CUDA_VISIBLE_DEVICES to set...
mit
ivendrov/nn
ClassNLLCriterion.lua
15
1767
local ClassNLLCriterion, parent = torch.class( 'nn.ClassNLLCriterion', 'nn.Criterion' ) function ClassNLLCriterion:__init(weights, sizeAverage) parent.__init(self) if sizeAverage ~= nil then self.sizeAverage = sizeAverage else self.sizeAverage = true end if weights then ...
bsd-3-clause
spracle/ejoy2d
ejoy2d/particle.lua
22
3315
local debug = debug local ej = require "ejoy2d" local c = require "ejoy2d.particle.c" local shader = require "ejoy2d.shader" local pack = require "ejoy2d.simplepackage" local fw = require "ejoy2d.framework" local matrix = require "ejoy2d.matrix" local math = require "math" local particle_configs = {} local particle_gr...
mit
alireza1998/supergroup
plugins/stats.lua
458
4098
-- Saves the number of messages from a user -- Can check the number of messages with !stats do local NUM_MSG_MAX = 5 local TIME_CHECK = 4 -- seconds local function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name....
gpl-2.0
delram/yago
plugins/stats.lua
458
4098
-- Saves the number of messages from a user -- Can check the number of messages with !stats do local NUM_MSG_MAX = 5 local TIME_CHECK = 4 -- seconds local function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name....
gpl-2.0
PichotM/DarkRP
gamemode/libraries/tablecheck.lua
6
12928
--[[ tablecheck WIP Author: FPtje Falco Purpose: Allow validating tables by creating schemas of tables. Inspired by Joi (https://github.com/hapijs/joi) Requires fn library (https://github.com/FPtje/GModFunctional), Example: ```lua local schema = tc.checkTable{ name = tc.addHint(isstring, "The name must be a ...
mit
occivink/mpv-scripts
scripts/seek-to.lua
2
4400
local assdraw = require 'mp.assdraw' local active = false local cursor_position = 1 local time_scale = {60*60*10, 60*60, 60*10, 60, 10, 1, 0.1, 0.01, 0.001} local ass_begin = mp.get_property("osd-ass-cc/0") local ass_end = mp.get_property("osd-ass-cc/1") local history = { {} } for i = 1, 9 do history[1][i] = 0 en...
unlicense
srush/word-char-rnn
util/LookupTableInt.lua
6
1095
local LookupTableInt, parent = torch.class('nn.LookupTableInt', 'nn.Module') function LookupTableInt:__init(init_lookup) parent.__init(self) self.weight = init_lookup:clone():long() self.size = {init_lookup:size(1), init_lookup:size(2)} self.output = torch.LongTensor() end function LookupTableInt:updateOutput...
mit
Anarchid/Zero-K
scripts/cloakriot.lua
4
17292
include "constants.lua" local chest = piece 'chest' local rflare = piece 'rflare' local lflare = piece 'lflare' local hips = piece 'hips' local lthigh = piece 'lthigh' local rthigh = piece 'rthigh' local head = piece 'head' local lforearm = piece 'lforearm' local rforearm = piece 'rforearm' local rshoulder = piece 'r...
gpl-2.0
LanceJenkinZA/prosody-modules
mod_listusers/mod_listusers.lua
34
2522
function module.command(args) local action = table.remove(args, 1); if not action then -- Default, list registered users local data_path = CFG_DATADIR or "data"; if not pcall(require, "luarocks.loader") then pcall(require, "luarocks.require"); end local lfs = require "lfs"; function decode...
mit
makefu/nodemcu-firmware
app/cjson/lua/cjson/util.lua
170
6837
local json = require "cjson" -- Various common routines used by the Lua CJSON package -- -- Mark Pulford <mark@kyne.com.au> -- Determine with a Lua table can be treated as an array. -- Explicitly returns "not an array" for very sparse arrays. -- Returns: -- -1 Not an array -- 0 Empty table -- >0 Highest index ...
mit
ivendrov/nn
Parallel.lua
39
3780
local Parallel, parent = torch.class('nn.Parallel', 'nn.Container') function Parallel:__init(inputDimension,outputDimension) parent.__init(self) self.modules = {} self.size = torch.LongStorage() self.inputDimension = inputDimension self.outputDimension = outputDimension end function Parallel:updateOut...
bsd-3-clause
core-code/Core3D
_DEPENDENCIES/sources/bullet/msvc/premake4.lua
4
3829
--add the 0 so the solution comes first in the directory (when sorted on name) --print "uncomment this hello premake4 world for debugging the script" solution "0BulletSolution" newoption { trigger = "with-nacl", description = "Enable Native Client build" } newoption { trigger ...
mit
ProjektMedInf/ProjMedInf
magic-lantern/scripts/lib/config.lua
3
4740
--[[--------------------------------------------------------------------------- Functions for saving/loading config data This module is a lua script (@{config.lua}), you need to explicitly load it with `require('config')` @module config ]] config = {} config.configs = {} config.__index = config --[[-----------------...
gpl-2.0
hacklex/OpenRA
lua/stacktraceplus.lua
59
12006
-- tables local _G = _G local string, io, debug, coroutine = string, io, debug, coroutine -- functions local tostring, print, require = tostring, print, require local next, assert = next, assert local pcall, type, pairs, ipairs = pcall, type, pairs, ipairs local error = error assert(debug, "debug table must be availa...
gpl-3.0
166MMX/OpenRA
lua/stacktraceplus.lua
59
12006
-- tables local _G = _G local string, io, debug, coroutine = string, io, debug, coroutine -- functions local tostring, print, require = tostring, print, require local next, assert = next, assert local pcall, type, pairs, ipairs = pcall, type, pairs, ipairs local error = error assert(debug, "debug table must be availa...
gpl-3.0
BarnamehNevisan/ss
plugins/plugin.lua
4
4786
do --create by RoyalTeam ID CHANNEL : @RoyalTeamCh -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists i...
gpl-2.0
Ractis/HookAndSlice
scripts/vscripts/DotaHS_GridNavMap.lua
1
43392
require( "DotaHS_Math" ) require( "DotaHS_PerlinNoise" ) require( "DotaHS_Profiler" ) -------------------------------------------------------------------------------- -- FORWARD DECL -------------------------------------------------------------------------------- if GridNavMap == nil then GridNavMap = class({}) end ...
mit
Anarchid/Zero-K
LuaRules/Gadgets/CAI/UnitListHandler.lua
8
7353
--[[ Handles Lists of Units * Create as a list of unit with some local functions. * Can get total unit cost, a random unit, units in area etc.. * Elements can have custom data. == CreateUnitList(losCheckAllyTeamID) losCheckAllyTeamID is the point of view that the return functions should take regarding LOS. A non...
gpl-2.0
ivendrov/nn
View.lua
41
2232
local View, parent = torch.class('nn.View', 'nn.Module') function View:__init(...) parent.__init(self) if select('#', ...) == 1 and torch.typename(select(1, ...)) == 'torch.LongStorage' then self.size = select(1, ...) else self.size = torch.LongStorage({...}) end self.numElements = 1 loc...
bsd-3-clause
PichotM/DarkRP
gamemode/modules/fpp/pp/server/settings.lua
3
38987
FPP = FPP or {} util.AddNetworkString("FPP_Groups") util.AddNetworkString("FPP_GroupMembers") util.AddNetworkString("FPP_RestrictedToolList") util.AddNetworkString("FPP_BlockedModels") FPP.Blocked = FPP.Blocked or {} FPP.Blocked.Physgun1 = FPP.Blocked.Physgun1 or {} FPP.Blocked.Spawning1 = FPP.Blocked.Spawnin...
mit
Anarchid/Zero-K
scripts/energysingu.lua
8
1513
-- by Chris Mackey include "constants.lua" --pieces local base = piece "base" local toroid = piece "toroid" local energyball = piece "energyball" local nexus = piece "nexus" local arm1 = piece "arm1" local arm2 = piece "arm2" local arm3 = piece "arm3" local smokePiece = { piece "base", piece "arm1", piece "arm2", pi...
gpl-2.0
helingping/Urho3D
bin/Data/LuaScripts/38_SceneAndUILoad.lua
26
5306
-- Scene & UI load example. -- This sample demonstrates: -- - Loading a scene from a file and showing it -- - Loading a UI layout from a file and showing it -- - Subscribing to the UI layout's events require "LuaScripts/Utilities/Sample" function Start() -- Execute the common startup for samples ...
mit
nimaghorbani/dozdi2
plugins/face.lua
641
3073
local https = require("ssl.https") local ltn12 = require "ltn12" -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local mashape = load_from_file('data/mashape.lua', { api_key = '' }) local function request(imageUrl) local api_key = mashape.api_key if api_key:isempt...
gpl-2.0
SametSisartenep/dotfiles
.config/vis/lexers/smalltalk.lua
5
1405
-- Copyright 2006-2017 Mitchell mitchell.att.foicica.com. See LICENSE. -- Smalltalk LPeg lexer. local l = require('lexer') local token, word_match = l.token, l.word_match local P, R, S = lpeg.P, lpeg.R, lpeg.S local M = {_NAME = 'smalltalk'} -- Whitespace. local ws = token(l.WHITESPACE, l.space^1) -- Comments. loca...
isc
Insurgencygame/LivingDead
TheLivingDeadv0.1.sdd/units/unused/shiva.lua
1
3775
return { shiva = { acceleration = 0.059999998658895, brakerate = 0.23800000548363, buildcostenergy = 21874, buildcostmetal = 1442, buildpic = "SHIVA.DDS", buildtime = 30609, canmove = true, category = "KBOT WEAPON ALL NOTSUB NOTAIR NOTHOVER SURFACE", collisionvolumeoffsets = "0 -4 -1", collisionvol...
gpl-2.0
omidtarh/seyda
bot/utils.lua
26
17219
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/...
gpl-2.0
LORgames/premake-core
tests/workspace/test_eachconfig.lua
32
1470
-- -- tests/workspace/test_eachconfig.lua -- Automated test suite for the workspace-level configuration iterator. -- Copyright (c) 2012-2015 Jason Perkins and the Premake project -- local suite = test.declare("workspace_eachconfig") local p = premake -- -- Setup and teardown -- local wks function suite.setup(...
bsd-3-clause
LORgames/premake-core
modules/codelite/codelite_project.lua
3
14378
-- -- Name: codelite/codelite_project.lua -- Purpose: Generate a CodeLite C/C++ project file. -- Author: Ryan Pusztai -- Modified by: Andrea Zanellato -- Manu Evans -- Tom van Dijck -- Created: 2013/05/06 -- Copyright: (c) 2008-2016 Jason Perkins and the Premake project -...
bsd-3-clause
titan-lang/titan-v0
titan-compiler/coder.lua
1
109157
local types = require "titan-compiler.types" local util = require "titan-compiler.util" local coder = {} local codeexp, codestat, codeforeignexp local render = util.render -- -- Functions for C literals -- -- Technically, we only need to escape the quote and backslash -- But quoting some extra things helps readab...
mit
Anarchid/Zero-K
gamedata/modularcomms/weapons/aalaser.lua
6
1275
local name = "commweapon_aalaser" local weaponDef = { name = [[Anti-Air Laser]], areaOfEffect = 12, beamDecay = 0.736, beamTime = 1/30, beamttl = 15, canattackground = false, coreThickness = 0.5, craterBoost ...
gpl-2.0
Anarchid/Zero-K
LuaRules/Configs/drone_defs.lua
6
5693
-- reloadTime is in seconds -- offsets = {x,y,z} , where x is left(-)/right(+), y is up(+)/down(-), z is forward(+)/backward(-) local DRONES_COST_RESOURCES = false local carrierDefs = {} local carrierDefNames = { shipcarrier = { spawnPieces = {"DroneAft", "DroneFore", "DroneLower","DroneUpper"}, { drone = Un...
gpl-2.0
MrPolicy/HodTG
plugins/helpfun.lua
1
2086
do function run(msg, matches) return [[ 📂دستورات تفریحی📂 🔻مشاهده قابلیت ها 🔹!lity 🔻مشاهده مناسبت ها 🔹!date 🔻مشاهده ساعت 🔹!time 🔻تبدیل استیکر به عکس با ریپلی 🔹!tophoto 🔻مشاهده ارز 🔹!arz 🔻دریافت جک 🔹!joke 🔻معنی کلمات 🔹!mean [کلمه] 🔻خوش نویسی لاتین 🔹write متن شما 🔻ساخت استیکر با قابلیت شکلک 🔹!stic...
gpl-2.0
cstroie/Pip
lua/mqtt2post.lua
1
3612
#!/usr/bin/lua -- Post data from MQTT -- Credentials local ppath, pname, pext = string.match(arg[0], "(.-)([^\\/]-%.?([^%.\\/]*))$") dofile("/etc/keys-" .. pname) -- Standard modules http = require("socket.http") ts_wxmon = require("thingspeak") ts_wxsta = require("thingspeak") ts_nano = require("thingspeak") stathat...
gpl-3.0
Anarchid/Zero-K
LuaUI/i18nlib/i18n/variants.lua
36
1195
local variants = {} local function reverse(arr, length) local result = {} for i=1, length do result[i] = arr[length-i+1] end return result, length end local function concat(arr1, len1, arr2, len2) for i = 1, len2 do arr1[len1 + i] = arr2[i] end return arr1, len1 + len2 end function variants.ancestry(...
gpl-2.0
ivendrov/nn
SpatialDropout.lua
33
1453
local SpatialDropout, Parent = torch.class('nn.SpatialDropout', 'nn.Module') function SpatialDropout:__init(p) Parent.__init(self) self.p = p or 0.5 self.train = true self.noise = torch.Tensor() end function SpatialDropout:updateOutput(input) self.output:resizeAs(input):copy(input) if self.train the...
bsd-3-clause
jerizm/kong
spec/02-integration/03-admin_api/01-kong_routes_spec.lua
1
2543
local helpers = require "spec.helpers" local cjson = require "cjson" describe("Admin API", function() local client setup(function() assert(helpers.start_kong()) client = helpers.admin_client(10000) end) teardown(function() if client then client:close() end helpers.stop_kong() end) describe...
apache-2.0
haste/oUF
elements/range.lua
10
3089
--[[ # Element: Range Fader Changes the opacity of a unit frame based on whether the frame's unit is in the player's range. ## Widget Range - A table containing opacity values. ## Notes Offline units are handled as if they are in range. ## Options .outsideAlpha - Opacity when the unit is out of range. Defaults t...
mit
lxl1140989/dmsdk
feeds/packages/net/luci-app-ocserv/files/usr/lib/lua/luci/model/cbi/ocserv/user-config.lua
30
4979
--[[ LuCI - Lua Configuration Interface Copyright 2014 Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICEN...
gpl-2.0
Anarchid/Zero-K
scripts/staticjammer.lua
8
1469
include "constants.lua" local base, cylinder, turret, jammersturret, jam1, jam2, deploy = piece ('base', 'cylinder', 'turret', 'jammersturret', 'jam1', 'jam2', 'deploy') local smokePiece = {base} function script.Create() StartThread(GG.Script.SmokeUnit, unitID, smokePiece) end function script.Activate() Spin(jamme...
gpl-2.0
core-code/Core3D
_DEPENDENCIES/sources/bullet/Demos/OpenCLClothDemo/Intel/premake4.lua
4
1149
hasCL = findOpenCL_Intel() if (hasCL) then project "AppOpenCLClothDemo_Intel" defines { "USE_INTEL_OPENCL","CL_PLATFORM_INTEL"} initOpenCL_Intel() language "C++" kind "ConsoleApp" targetdir "../../.." libdirs {"../../../Glut"} links { "LinearMath", "BulletColl...
mit
Mutos/StarsOfCall-NAEV
dat/scripts/proximity.lua
17
4314
-- Poll for player proximity to a point in space. -- argument trigger: a table containing: -- location: The location, OR -- anchor: the pilot to use as the anchor for the trigger area -- radius: The radius around the location or anchor -- focus: The pilot that's polled for. If omitted, defaults to the player. -- funcna...
gpl-3.0
mamaddeveloper/DeveloperMMD_bot
plugins/bugzilla.lua
611
3983
do local BASE_URL = "https://bugzilla.mozilla.org/rest/" local function bugzilla_login() local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password print("accessing " .. url) local res,code = https.request( url ) local data = json:decode(res) return data ...
gpl-2.0
helingping/Urho3D
bin/Data/LuaScripts/17_SceneReplication.lua
13
17149
-- Scene network replication example. -- This sample demonstrates: -- - Creating a scene in which network clients can join -- - Giving each client an object to control and sending the controls from the clients to the server, -- where the authoritative simulation happens -- - Controlling a physics...
mit
iamgreaser/iceball
pkg/base/citygen/lecomm/gencells.lua
4
5689
--[[ 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
Whit3Tig3R/bestspammbot2
plugins/qr.lua
637
1730
--[[ * qr plugin uses: * - http://goqr.me/api/doc/create-qr-code/ * psykomantis ]] local function get_hex(str) local colors = { red = "f00", blue = "00f", green = "0f0", yellow = "ff0", purple = "f0f", white = "fff", black = "000", gray = "ccc" } for color, value in pairs(colors)...
gpl-2.0
alireza1998/supergroup
plugins/qr.lua
637
1730
--[[ * qr plugin uses: * - http://goqr.me/api/doc/create-qr-code/ * psykomantis ]] local function get_hex(str) local colors = { red = "f00", blue = "00f", green = "0f0", yellow = "ff0", purple = "f0f", white = "fff", black = "000", gray = "ccc" } for color, value in pairs(colors)...
gpl-2.0
LORgames/premake-core
modules/gmake2/tests/test_gmake2_objects.lua
5
6831
-- -- test_gmake2_objects.lua -- Validate the list of objects for a makefile. -- (c) 2016-2017 Jason Perkins, Blizzard Entertainment and the Premake project -- local suite = test.declare("gmake2_objects") local p = premake local gmake2 = p.modules.gmake2 -- -- Setup -- local wks, prj function suite.setup() ...
bsd-3-clause
flavorzyb/cocos2d-x
samples/Lua/TestLua/Resources/luaScript/ActionsEaseTest/ActionsEaseTest.lua
8
19216
local kTagAction1 = 1 local kTagAction2 = 2 local kTagSlider = 1 local s = CCDirector:sharedDirector():getWinSize() local scheduler = CCDirector:sharedDirector():getScheduler() local function createSimpleMoveBy() return CCMoveBy:create(3, CCPointMake(s.width - 130, 0)) end local function createSimpleDelayTime() ...
gpl-2.0
Sannis/tarantool
test/replication/hot_standby.test.lua
7
3063
--# set connection default box.schema.user.grant('guest', 'replication') box.schema.func.create('_set_pri_lsn') box.schema.user.grant('guest', 'execute', 'function', '_set_pri_lsn') --# create server hot_standby with script='replication/hot_standby.lua', rpl_master=default --# create server replica with rpl_master=defa...
bsd-2-clause
LightenPan/skynet-yule
lualib/qtserver.lua
1
5921
-- Copyright (C) 2012 Yichun Zhang (agentzh) -- Copyright (C) 2014 Chang Feng -- This file is modified version from https://github.com/openresty/lua-resty-mysql -- The license is under the BSD license. -- Modified by Cloud Wu (remove bit32 for lua 5.3) local socketchannel = require "socketchannel" local sub = string....
mit
ivendrov/nn
Padding.lua
32
1429
local Padding, parent = torch.class('nn.Padding', 'nn.Module') -- pad can be positive (right) negative (left) function Padding:__init(dim, pad, nInputDim, value) self.dim = dim self.pad = pad self.nInputDim = nInputDim self.value = value or 0 self.outputSize = torch.LongStorage() parent.__init(self) ...
bsd-3-clause
Anarchid/Zero-K
LuaRules/Gadgets/awards.lua
3
22261
function gadget:GetInfo() return { name = "Awards", desc = "v1.002 Awards players at end of battle with shiny trophies.", author = "CarRepairer", date = "2008-10-15", --2013-09-05 license = "GNU GPL, v2 or later", layer = 1000000, -- Must be after all other build steps and before unit_spawner.l...
gpl-2.0
weloxux/kit
butt.lua
1
2868
butt = {} -- Table to store our functions local buttons = {} -- Table to store buttons; invisible to the importer butt.style = {borderwidth = 4, bordercolor = {220, 220, 220, 230}, -- {red, green, blue, alpha} activecolor = {255, 0, 0, 230}, bodycolor = {255, 255, 255, 255}, textcolor = {10, 10, 10, 255}, tex...
gpl-3.0
alexandrebarachant/openvibe
applications/demos/ssvep-demo/bci-examples/ssvep/scripts/classifier-training-target-separator.lua
5
1266
targets = {} non_targets = {} sent_stimulation = 0 function initialize(box) dofile(box:get_config("${Path_Data}") .. "/plugins/stimulation/lua-stimulator-stim-codes.lua") -- read the parameters of the box s_targets = box:get_setting(2) for t in s_targets:gmatch("%d+") do targets[t + 0] = true end s_non_...
agpl-3.0
Anarchid/Zero-K
LuaUI/Widgets/gui_display_dps.lua
6
10280
-- $Id: gui_display_dps.lua 3171 2008-11-06 09:06:29Z det $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: gui_display_dps.lua -- brief: Displays DPS done to your allies units -- author...
gpl-2.0
Anarchid/Zero-K
LuaRules/Configs/MetalSpots/Lava And Two Hills.lua
13
1160
local layout = { spots = { {x = 201, z = 157, metal = 1.3195000886917}, {x = 601, z = 591, metal = 1.2950000762939}, {x = 1785, z = 132, metal = 0.77000004053116}, {x = 1000, z = 1148, metal = 1.3300000429153}, {x = 1447, z = 1456, metal = 2.1349999904633}, {x = 1866, z = 1861, metal = 2.1000001430511}, ...
gpl-2.0
MinaciousGrace/Til-Death
BGAnimations/ScreenSelectMusic decorations/score.lua
1
10793
local update = false local hsTable local rtTable local rates local rateIndex = 1 local scoreIndex = 1 local score local pn = GAMESTATE:GetEnabledPlayers()[1] local defaultRateText = "" if themeConfig:get_data().global.RateSort then defaultRateText = "1.0x" else defaultRateText = "All" end; local t = Def.ActorFrame...
mit
chuckatkins/legion
bindings/lua/examples/circuit/circuit_cpu.lua
1
5224
-- Copyright 2016 Stanford 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 law or agree...
apache-2.0
Hello23-Ygopro/ygopro-duel-masters
expansions/script/c24003041.lua
1
1186
--Searing Wave --Not fully implemented (YGOPro allows players to view their face-down cards) local dm=require "expansions.utility_dmtcg" local scard,sid=dm.GetID() function scard.initial_effect(c) dm.EnableSpellAttribute(c) --destroy & to grave dm.AddSpellCastAbility(c,0,nil,scard.desop,DM_EFFECT_FLAG_CARD_CHOOSE) e...
gpl-3.0
wesnoth/wesnoth
data/ai/lua/battle_calcs.lua
3
75151
local AH = wesnoth.require "ai/lua/ai_helper.lua" local LS = wesnoth.require "location_set" local M = wesnoth.map -- This is a collection of Lua functions used for custom AI development. -- Note that this is still work in progress with significant changes occurring -- frequently. Backward compatibility cannot be guara...
gpl-2.0
sric0880/unity-framework
tools/build_lua/LuaEncoder/luajit/jit/p.lua
55
9135
---------------------------------------------------------------------------- -- LuaJIT profiler. -- -- Copyright (C) 2005-2017 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -- -- This modul...
mit
chukong/sdkbox-facebook-sample-v2
samples/Lua/TestLua/Resources/luaScript/TransitionsTest/TransitionsName.lua
12
2456
require "luaScript/helper" Transition_Table = { "CCTransitionJumpZoom", "CCTransitionProgressRadialCCW", "CCTransitionProgressRadialCW", "CCTransitionProgressHorizontal", "CCTransitionProgressVertical", "CCTransitionProgressInOut", "CCTransitionProgressOutIn", "CCTransitionCrossFade", ...
mit
leonardowindbot/windbotscripts
dustbin/myMMS.lua
2
10186
init start -- diff colors and title display -- -- 88 -- "" ,d -- 88 ...
mit
Disslove77777/SSSS
plugins/sudo.lua
14
1877
function run_sh(msg) name = get_name(msg) text = '' -- if config.sh_enabled == false then -- text = '!sh command is disabled' -- else -- if is_sudo(msg) then -- bash = msg.text:sub(4,-1) -- text = run_bash(bash) -- else -- text = name .. ' yo...
gpl-2.0
LightenPan/skynet-yule
service/launcher.lua
51
3199
local skynet = require "skynet" local core = require "skynet.core" require "skynet.manager" -- import manager apis local string = string local services = {} local command = {} local instance = {} -- for confirm (function command.LAUNCH / command.ERROR / command.LAUNCHOK) local function handle_to_address(handle) retu...
mit
Insurgencygame/LivingDead
TheLivingDeadv0.1.sdd/units/unused/asubpen.lua
1
2185
return { asubpen = { acceleration = 0, brakerate = 0, buildcostenergy = 5144, buildcostmetal = 860, builder = true, buildinggrounddecaldecayspeed = 30, buildinggrounddecalsizex = 11, buildinggrounddecalsizey = 11, buildinggrounddecaltype = "asubpen_aoplane.dds", buildpic = "ASUBPEN.DDS", buildtim...
gpl-2.0
Anarchid/Zero-K
scripts/spideraa.lua
4
4801
include "spider_walking.lua" include "constants.lua" -------------------------------------------------------------------------------- -- pieces -------------------------------------------------------------------------------- local base = piece 'base' local turret = piece 'turret' local barrel = piece 'barrel' local fl...
gpl-2.0
Anarchid/Zero-K
LuaRules/Gadgets/Include/LuaShader.lua
10
13124
local UNIFORM_TYPE_MIXED = 0 -- includes arrays; float or int local UNIFORM_TYPE_INT = 1 -- includes arrays local UNIFORM_TYPE_FLOAT = 2 -- includes arrays local UNIFORM_TYPE_FLOAT_MATRIX = 3 local glGetUniformLocation = gl.GetUniformLocation local glUseShader = gl.UseShader local glActiveShader...
gpl-2.0
Insurgencygame/LivingDead
TheLivingDeadv0.1.sdd/luarules/gadgets/game_energy_conversion.lua
1
7763
function gadget:GetInfo() return { name = 'Energy Conversion', desc = 'Handles converting energy to metal', author = 'Niobium(modified by TheFatController)', version = 'v2.0', date = 'May 2011', license = 'GNU GPL, v2 or later', layer ...
gpl-2.0
Alloyed/luma
luma/read/ast.lua
1
1793
-- TODO: this is totally gross. local List = require 'ltrie.list' local fun = require 'ltrie.fun' local symbol = require 'luma.lib.symbol' local ast = {} function ast.quote(o) if type(o) == 'table' and o._quote then return o:_quote() elseif type(o) == 'string' then return ("%q"):format(o) end return tostring(o...
mit
Anarchid/Zero-K
LuaUI/Widgets/gui_showeco_action.lua
4
11263
local version = "v1.003" function widget:GetInfo() return { name = "Showeco and Grid Drawer", desc = "Register an action called Showeco & draw overdrive overlay.", --"acts like F4", author = "xponen, ashdnazg", date = "July 19 2013", license = "GNU GPL, v2 or later", layer ...
gpl-2.0
lxl1140989/dmsdk
feeds/luci/modules/base/luasrc/http/protocol/mime.lua
88
2933
--[[ HTTP protocol implementation for LuCI - mime handling (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www....
gpl-2.0
taha560/ir
plugins/supergroup.lua
9
75085
--Begin supergrpup.lua --Check members #Add supergroup 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...
gpl-2.0
Anarchid/Zero-K
scripts/planeheavyfighter.lua
5
3785
include "constants.lua" --pieces local base = piece "base" local wingR, wingL, wingtipR, wingtipL = piece("wingr", "wingl", "wingtip1", "wingtip2") local engineR, engineL, thrust1, thrust2, thrust3 = piece("jetr", "jetl", "thrust1", "thrust2", "thrust3") local missR, missL = piece("m1", "m2") local smokePiece = {base...
gpl-2.0
NUTIEisBADYT/NUTIEisBADYTS-PD2-Modpack
Full Speed Swarm/lua/securitycamera.lua
1
1816
local key = ModPath .. ' ' .. RequiredScript if _G[key] then return else _G[key] = true end local tmp_vec1 = Vector3() local mvec3_dir = mvector3.direction local REACT_SUSPICIOUS = AIAttentionObject.REACT_SUSPICIOUS local REACT_MAX = AIAttentionObject.REACT_MAX function SecurityCamera:_upd_acquire_new_attention_object...
mit
lxl1140989/dmsdk
feeds/routing/luci-app-bmx6/files/usr/lib/lua/luci/model/bmx6json.lua
16
5303
--[[ Copyright (C) 2011 Pau Escrich <pau@dabax.net> Contributors Jo-Philipp Wich <xm@subsignal.org> 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...
gpl-2.0
Sannis/tarantool
test/app/lua/serializer_test.lua
7
11702
local ffi = require('ffi') local function rt(test, s, x, t) local buf1 = s.encode(x) local x1, offset1 = s.decode(buf1) local xstr if type(x) == "table" then xstr = "table" elseif ffi.istype('float', x) then xstr = string.format('%0.2f (ffi float)', tonumber(x)) elseif ffi.istyp...
bsd-2-clause
Insurgencygame/LivingDead
TheLivingDeadv0.1.sdd/luaui/widgets/gui_red_minimap.lua
1
8403
function widget:GetInfo() return { version = "2", name = "Red Minimap", desc = "Requires Red UI Framework", author = "Regret", date = "December 7, 2009", --last change December 11,2009 license = "GNU GPL, v2 or later", layer = 1, enabled = true, --enabled by default handler = tru...
gpl-2.0
csgxy123/Dato-Core
src/unity/python/graphlab/lua/pl/pretty.lua
13
8319
--- Pretty-printing Lua tables. -- Also provides a sandboxed Lua table reader and -- a function to present large numbers in human-friendly format. -- -- Dependencies: `pl.utils`, `pl.lexer` -- @module pl.pretty local append = table.insert local concat = table.concat local utils = require 'pl.utils' local lexer = requi...
agpl-3.0
helingping/Urho3D
Source/ThirdParty/LuaJIT/src/jit/bcsave.lua
41
18267
---------------------------------------------------------------------------- -- LuaJIT module to save/list bytecode. -- -- Copyright (C) 2005-2016 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
mit
sric0880/unity-framework
tools/build_lua/LuaEncoder/luajit_ios/x86_64/jit/bcsave.lua
41
18267
---------------------------------------------------------------------------- -- LuaJIT module to save/list bytecode. -- -- Copyright (C) 2005-2016 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
mit
Anarchid/Zero-K
units/hoverheavyraid.lua
2
3875
return { hoverheavyraid = { unitname = [[hoverheavyraid]], name = [[Bolas]], description = [[Disruptor Hovercraft]], acceleration = 0.18, brakeRate = 0.516, buildCostMetal = 180, builder = false, buildPic = [[hoverheavyraid.p...
gpl-2.0
Bew78LesellB/awesome
lib/wibox/container/constraint.lua
7
4855
--------------------------------------------------------------------------- -- --@DOC_wibox_container_defaults_constraint_EXAMPLE@ -- @author Lukáš Hrázký -- @copyright 2012 Lukáš Hrázký -- @classmod wibox.container.constraint --------------------------------------------------------------------------- local setmetatab...
gpl-2.0
gbox3d/nodemcu-firmware
lua_modules/ds3231/ds3231.lua
16
1865
-------------------------------------------------------------------------------- -- DS3231 I2C module for NODEMCU -- NODEMCU TEAM -- LICENCE: http://opensource.org/licenses/MIT -- Tobie Booth <tbooth@hindbra.in> -------------------------------------------------------------------------------- local moduleName = ... loc...
mit
jerizm/kong
spec/fixtures/shm-stub.lua
3
1818
-- DICT Proxy -- https://github.com/bsm/fakengx/blob/master/fakengx.lua local SharedDict = {} local function set(data, key, value) data[key] = { value = value, info = {expired = false} } end function SharedDict:new() return setmetatable({data = {}}, {__index = self}) end function SharedDict:get(key) ...
apache-2.0
Anarchid/Zero-K
LuaUI/Widgets/gui_pauseScreen.lua
5
12294
include("keysym.lua") local versionNumber = "1.22" function widget:GetInfo() return { name = "Pause Screen", desc = "[v" .. string.format("%s", versionNumber ) .. "] Displays pause screen when game is paused.", author = "very_bad_soldier", date = "2009.08.16", license = "GNU GPL v2", l...
gpl-2.0
wesnoth/wesnoth
data/campaigns/World_Conquest/lua/map/postgeneration/1A_Start.lua
7
3455
function world_conquest_tek_map_repaint_1() world_conquest_tek_map_rebuild("Uu,Uu^Tf,Uh,Uu^Tf,Uu,Ai,Uh,Ql,Qxu,Xu", 3) world_conquest_tek_map_decoration_1() world_conquest_tek_map_dirt("Gg^Tf") end function world_conquest_tek_map_decoration_1() set_terrain { "Gs^Fdw", f.terrain("Gs^Ft"), } set_terrain { "Gs^Fm...
gpl-2.0
Anarchid/Zero-K
LuaRules/Gadgets/Include/PriorityQueue.lua
6
1525
-- -- Slight adaptation from: -- https://gist.github.com/leegao/1074642 -- local insert = table.insert local remove = table.remove local PriorityQueue = {} function PriorityQueue.new(cmp, initial) local pq = setmetatable({}, { __index = { cmp = cmp or function(a,b) return a < b end, push = function(self, v) ...
gpl-2.0
Anarchid/Zero-K
scripts/shipcarrier.lua
7
5061
local BayAft = piece('BayAft'); local BayAftHatch = piece('BayAftHatch'); local BayAftSlider = piece('BayAftSlider'); local BayFore = piece('BayFore'); local BayForeHatch = piece('BayForeHatch'); local BayForeSlider = piece('BayForeSlider'); local BayInner = piece('BayInner'); local BayInnerHatch = piece('BayInnerHatch...
gpl-2.0
Bew78LesellB/awesome
lib/wibox/layout/grid.lua
4
33452
--------------------------------------------------------------------------- --- A grid layout. -- -- Widgets spanning several columns or rows cannot be included using the -- declarative system. -- Instead, create the grid layout and call the `add_widget_at` method. -- --@DOC_wibox_layout_grid_imperative_EXAMPLE@ -- -- ...
gpl-2.0
NUTIEisBADYT/NUTIEisBADYTS-PD2-Modpack
Full Speed Swarm/lua/corecontrollerwrapper.lua
1
1514
local key = ModPath .. ' ' .. RequiredScript if _G[key] then return else _G[key] = true end core:module("CoreControllerWrapper") local empty_dummy = {} function ControllerWrapper:get_all_input_down() return self._enabled and self._virtual_controller and self._virtual_controller:down_list() or empty_dummy end funct...
mit
Mutos/SoC-Test-001
dat/scripts/pilot/empire.lua
12
10256
include("pilot/generic.lua") include("dat/factions/equip/helper.lua") include("dat/factions/equip/outfits.lua") --[[ -- @brief Creates a mighty Empire warship. -- -- @param empire_create If nil or true actually creates a Empire warship -- with a random name and all, otherwise it'll give ship type and -- ...
gpl-3.0
imashkan/ABCYAGOP
bot/utils.lua
239
13499
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() http.TIMEOUT = 10 funct...
gpl-2.0