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
delram/yago
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
Insurgencygame/LivingDead
TheLivingDeadv0.1.sdd/units/unused/corsolar.lua
1
2358
return { corsolar = { acceleration = 0, activatewhenbuilt = true, brakerate = 0, buildangle = 32768, buildcostmetal = 141, buildinggrounddecaldecayspeed = 30, buildinggrounddecalsizex = 8, buildinggrounddecalsizey = 8, buildinggrounddecaltype = "corsolar_aoplane.dds", buildpic = "CORSOLAR.DDS", b...
gpl-2.0
Anarchid/Zero-K
LuaUI/Widgets/gui_blastRadius.lua
5
7617
include("keysym.lua") local versionNumber = "1.1" function widget:GetInfo() return { name = "Blast Radius", desc = "[v" .. string.format("%s", versionNumber ) .. "] Displays blast radius of select units (META+X) and while placing buildings (META)", author = "very_bad_soldier", date = "April ...
gpl-2.0
punisherbot/ma
plugins/inpm.lua
1114
3008
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
focusworld/focusantispam
plugins/inpm.lua
1114
3008
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
Anarchid/Zero-K
effects/gundam_vert_explosion.lua
26
3091
-- vert_explosion return { ["vert_explosion"] = { groundflash = { air = true, alwaysvisible = true, circlealpha = 0.9, circlegrowth = 25, flashalpha = 0.9, flashsize = 500, ground = true, ttl ...
gpl-2.0
LuaDist2/ldoc
ldoc/builtin/os.lua
7
4824
--- Operating System facilities like date, time and program execution. -- @module os local os = {} --- -- Returns an approximation of the amount in seconds of CPU time used by -- the program. function os.clock() end --- -- Returns a string or a table containing date and time, formatted according -- to th...
mit
DarkJaguar91/DJUI
libs/lam/controls/description.lua
6
2085
--[[descriptionData = { type = "description", title = "My Title", --(optional) text = "My description text to display.", width = "full", --or "half" (optional) reference = "MyAddonDescription" --(optional) unique global reference to control } ]] local widgetVersion = 5 local LAM = LibStub("LibAddonMenu-2.0") if ...
apache-2.0
nnesse/b2l-tools
lgi/samples/gtk-demo/demo-uimanager.lua
6
5072
return function(parent, dir) local lgi = require 'lgi' local Gtk = lgi.Gtk local log = lgi.log.domain('uimanager-demo') local function activate_action(action) log.message('Action "%s" activated', action.name) end local function activate_radio_action(action) log.message('Radio action "%s" selected', action.nam...
gpl-2.0
makefu/nodemcu-firmware
lua_examples/mcp23008/mcp23008_buttons.lua
82
1801
--- -- @description Shows how to read 8 GPIO pins/buttons via I2C with the MCP23008 I/O expander. -- Tested on NodeMCU 0.9.5 build 20150213. -- @circuit -- Connect GPIO0 of the ESP8266-01 module to the SCL pin of the MCP23008. -- Connect GPIO2 of the ESP8266-01 module to the SDA pin of the MCP23008. -- Use 3.3V fo...
mit
Anarchid/Zero-K
LuaUI/Widgets/snd_music2.lua
5
11099
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: gui_music.lua -- brief: yay music -- author: cake -- -- Copyright (C) 2007. -- Licensed under the terms of the GNU GPL, v2 or later. -- ---------...
gpl-2.0
wesnoth/wesnoth
data/ai/micro_ais/cas/ca_messenger_escort_move.lua
6
3712
local AH = wesnoth.require "ai/lua/ai_helper.lua" local LS = wesnoth.require "location_set" local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua" local M = wesnoth.map local messenger_next_waypoint = wesnoth.require "ai/micro_ais/cas/ca_messenger_f_next_waypoint.lua" local function get_escorts(cfg)...
gpl-2.0
Sasu98/Nerd-Gaming-Public
resources/[no_ng_tag]/admin/server/admin_sync.lua
2
11756
--[[********************************** * * Multi Theft Auto - Admin Panel * * admin_sync.lua * * Original File by lil_Toady * **************************************]] function aSynchCoroutineFunc( type, data ) local source = source -- Needed if checkClient( false, source, 'aSync', type ) then return end local cor ...
mit
LORgames/premake-core
modules/vstudio/tests/vc200x/test_project.lua
14
4173
-- -- tests/actions/vstudio/vc200x/test_project.lua -- Validate generation of the opening <VisualStudioProject> element. -- Copyright (c) 2011-2014 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("vstudio_vs200x_project") local vc200x = p.vstudio.vc200x -- -- Setup -- local...
bsd-3-clause
Anarchid/Zero-K
LuaUI/Widgets/gui_chili_commander_upgrade.lua
6
30608
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Chili Commander Upgrade", desc = "Interface for commander upgrade selection.", author =...
gpl-2.0
LORgames/premake-core
modules/gmake/tests/workspace/test_config_maps.lua
12
1377
-- -- tests/actions/make/test_config_maps.lua -- Validate handling of configuration maps in makefiles. -- Copyright (c) 2012 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("make_config_maps") local make = p.make -- -- Setup/teardown -- local wks, prj function suite.setup...
bsd-3-clause
Anarchid/Zero-K
LuaRules/Gadgets/lups_projectiles.lua
7
4042
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function gadget:GetInfo() return { name = "Projectile Lups", desc = "Attaches Lups FX to projectiles", author = "KingRaptor (L.J. Lim)", date = "2013...
gpl-2.0
doddzy39/Mudlet
src/mudlet-lua/lua/DebugTools.lua
7
6517
---------------------------------------------------------------------------------- --- Mudlet Debug Tools ---------------------------------------------------------------------------------- --- Function colorizes all matched regex capture groups on the screen. --- This is very handy if you make complex regex and want...
gpl-2.0
Anarchid/Zero-K
LuaUI/Widgets/gui_group_recall_fix.lua
6
4865
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Default Group Recall Fix", desc = "Fix to the group recall problem.", author = "msafwan, Googl...
gpl-2.0
jerizm/kong
kong/dao/errors.lua
3
1700
local printable_mt = require "kong.tools.printable" local setmetatable = setmetatable local getmetatable = getmetatable local tostring = tostring local type = type local fmt = string.format local error_mt = {} function error_mt.__tostring(t) if t.db_type then return fmt("[%s error] %s", t.db_type, tostring(t.me...
apache-2.0
imashkan/ABCYAGOP
plugins/google.lua
722
1037
local function googlethat(query) local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&" local parameters = "q=".. (URL.escape(query) or "") -- Do the request local res, code = https.request(api..parameters) if code ~=200 then return nil end local data = json:decode(res) local r...
gpl-2.0
lxl1140989/dmsdk
feeds/luci/applications/luci-splash/luasrc/model/cbi/splash/splash.lua
52
3212
--[[ LuCI - Lua Configuration Interface 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 ]]-- require("luci.model.uci") m = Map("luci_splash", translate...
gpl-2.0
ivendrov/nn
WeightedEuclidean.lua
43
8173
local WeightedEuclidean, parent = torch.class('nn.WeightedEuclidean', 'nn.Module') function WeightedEuclidean:__init(inputSize,outputSize) parent.__init(self) self.weight = torch.Tensor(inputSize,outputSize) self.gradWeight = torch.Tensor(inputSize,outputSize) -- each template (output dim) has its own di...
bsd-3-clause
Insurgencygame/LivingDead
TheLivingDeadv0.1.sdd/units/tld/armlab/armpw.lua
1
3296
return { armpw = { acceleration = 0.45000001430511, brakerate = 0.20000000298023, buildcostenergy = 0, buildcostmetal = 45, buildpic = "ARMPW.DDS", buildtime = 450, canmove = true, canCloak = true, mincloakdistance = 250, cloakCost = 0.0, stealth = true, initCloaked = true, category = "KBOT M...
gpl-2.0
Sasu98/Nerd-Gaming-Public
resources/NGPlayerFunctions/server/headtags.lua
2
1063
local playerTag = { } addEventHandler ( "onPlayerMute", root, function ( ) if ( isElement ( playerTag[source] ) ) then destroyElement ( playerTag[source] ) playerTag[source] = nil end playerTag[source] = exports['NGJobs']:create3DText ( "[MUTED]", { 0, 0, 0 }, { 255, 0, 0 }, source, { 5 } ) end ) addEventHa...
mit
iamgreaser/iceball
pkg/base/ent/expl_grenade.lua
4
3651
--[[ 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
Anarchid/Zero-K
LuaUI/Widgets/cmd_no_duplicate_orders.lua
6
5696
-- $Id: cmd_no_duplicate_orders.lua 3171 2008-11-06 09:06:29Z det $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: cmd_no_duplicate_orders.lua -- brief: Blocks duplicate Attack and Repai...
gpl-2.0
LORgames/premake-core
binmodules/luasocket/src/tp.lua
51
3766
----------------------------------------------------------------------------- -- Unified SMTP/FTP subsystem -- LuaSocket toolkit. -- Author: Diego Nehab ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- -- Declare...
bsd-3-clause
SametSisartenep/dotfiles
.config/vis/lexers/toml.lua
1
1977
-- Copyright 2015-2017 Alejandro Baez (https://keybase.io/baez). See LICENSE. -- TOML 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 = 'toml'} -- Whitespace local indent = #l.starts_line(S(' \t')) * (token(...
isc
Insurgencygame/LivingDead
TheLivingDeadv0.1.sdd/luaui/widgets/gui_prospector.lua
1
7205
local versionNumber = "v1.92" function widget:GetInfo() return { name = "Prospector", desc = versionNumber .. " Tooltip for amount of metal extracted when placing metal extractors.", author = "Evil4Zerggin", date = "9 January 2009", license = "GNU LGPL, v2.1 or later", layer = 1, enabled = true } end ...
gpl-2.0
chiuan/slua
build/luajit-2.0.4/src/jit/dis_x86.lua
89
29330
---------------------------------------------------------------------------- -- 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
mridgers/clink
premake5.lua
2
9624
-- Copyright (c) 2012 Martin Ridgers -- License: http://opensource.org/licenses/MIT local to = ".build/"..(_ACTION or "nullaction") -------------------------------------------------------------------------------- local function get_git_info() local git_cmd = "git branch --verbose --no-color 2>nul" for line ...
gpl-3.0
mamaddeveloper/DeveloperMMD_bot
plugins/banhammer.lua
27
10471
local function is_user_whitelisted(id) local hash = 'whitelist:user#id'..id local white = redis:get(hash) or false return white end local function is_chat_whitelisted(id) local hash = 'whitelist:chat#id'..id local white = redis:get(hash) or false return white end local function kick_user(user_id, chat_id)...
gpl-2.0
douwekiela/nncg-negation
example/gatedNegationExample.lua
1
4951
local cutorch = require "cutorch" local cunn = require "cunn" local nn = require "nn" local nngraph = require "nngraph" local optim = require "optim" -- set gated network hyperparameters local opt = {} opt.embedSize = 300 opt.gateSize = 300 opt.hiddenSize = 600 opt.jackknifeSize = 10 opt.numEpochs = 4 opt.batchSize = ...
mit
punisherbot/ma
bot/creedbot.lua
1
13100
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") VERSION = '1.0' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then retu...
gpl-2.0
Insurgencygame/LivingDead
TheLivingDeadv0.1.sdd/luaui.lua
1
1826
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: luaui.lua -- brief: entry point for LuaUI -- author: Dave Rodgers -- -- Copyright (C) 2008. -- Licensed under the terms of the GNU GPL,...
gpl-2.0
mahdikord/mahdib1
plugins/banhammer.lua
106
11894
local function pre_process(msg) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Checking invited user '..user_id) local banned ...
gpl-2.0
erfan1292/1234
plugins/Mutelink.lua
3
1315
local function mute_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 send_msg(data.chat, 'Error while kicking user', ok_cb, nil) end end, {chat=chat, user=user}) end local functio...
gpl-2.0
LightenPan/skynet-yule
lualib/sharedata/corelib.lua
64
2453
local core = require "sharedata.core" local type = type local next = next local rawget = rawget local conf = {} conf.host = { new = core.new, delete = core.delete, getref = core.getref, markdirty = core.markdirty, incref = core.incref, decref = core.decref, } local meta = {} local isdirty = core.isdirty local...
mit
Anarchid/Zero-K
LuaRules/Configs/StartBoxes/TMA-0 v1_1.lua
17
1371
return { [0] = { startpoints = { {5816,3768}, }, boxes = { { {5571,3441}, {6062,3441}, {6062,4096}, {5571,4096}, }, }, }, [1] = { startpoints = { {7700,13189}, }, boxes = { { {7373,12943}, {8028,12943}, {8028,13435}, {7373,13435}, }, }, }, [2] = { ...
gpl-2.0
hacklex/OpenRA
mods/cnc/maps/nod02a/nod02a.lua
15
7806
NodUnits = { "bggy", "e1", "e1", "e1", "e1", "e1", "bggy", "e1", "e1", "e1", "bggy" } NodBaseBuildings = { "hand", "fact", "nuke" } DfndActorTriggerActivator = { Refinery, Barracks, Powerplant, Yard } Atk3ActorTriggerActivator = { Guard1, Guard2, Guard3, Guard4, Guard5, Guard6, Guard7 } Atk1CellTriggerActivator = { C...
gpl-3.0
wesnoth/wesnoth
data/lua/core/interface.lua
3
6612
--[========[Game Interface Control]========] if wesnoth.kernel_type() == "Game Lua Kernel" then print("Loading interface module...") wesnoth.interface.select_unit = wesnoth.units.select ---Fakes the move of a unit satisfying the given filter to position x, y. ---Usable only during WML actions. ---@param filter ...
gpl-2.0
Anarchid/Zero-K
LuaRules/Gadgets/feature_blocking_tag_implementation.lua
8
1359
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function gadget:GetInfo() return { name = "Blocking Tag Implementation", desc = "Implements the blocking tag correctly.", auth...
gpl-2.0
LightenPan/skynet-yule
test/testmongodb.lua
62
2661
local skynet = require "skynet" local mongo = require "mongo" local bson = require "bson" local host, db_name = ... function test_insert_without_index() local db = mongo.client({host = host}) db[db_name].testdb:dropIndex("*") db[db_name].testdb:drop() local ret = db[db_name].testdb:safe_insert({test_key = 1}); ...
mit
halolpd/vlc
share/lua/playlist/koreus.lua
57
4037
--[[ Copyright © 2009 the VideoLAN team 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. This program is distributed in ...
gpl-2.0
adamdburton/pointshop
lua/pointshop/cl_player_extension.lua
4
1974
local Player = FindMetaTable('Player') -- items function Player:PS_GetItems() return self.PS_Items or {} end function Player:PS_HasItem(item_id) if not self.PS_Items then return false end return self.PS_Items[item_id] and true or false end function Player:PS_HasItemEquipped(item_id) if not self:PS_HasItem(item_...
mit
Anarchid/Zero-K
effects/lightning.lua
7
18666
-- lightningplosion -- lightningplosion160AoE -- lightningplosion_yellowbolts -- zeusmuzzle -- panther_spark -- lightningplosion_bluebolts1 -- lightningplosion_stormbolt -- zeusgroundflash -- lightningplosion_smallbolts local circleString = "r%.5f y10 -1 x10x10 y10 %d a10 y10 r6.283 y11 -3.1415 a11 y11 -0.5x11x11...
gpl-2.0
ivendrov/nn
SpatialAveragePooling.lua
37
1063
local SpatialAveragePooling, parent = torch.class('nn.SpatialAveragePooling', 'nn.Module') function SpatialAveragePooling:__init(kW, kH, dW, dH) parent.__init(self) self.kW = kW self.kH = kH self.dW = dW or 1 self.dH = dH or 1 self.divide = true end function SpatialAveragePooling:updateOutput(input...
bsd-3-clause
NUTIEisBADYT/NUTIEisBADYTS-PD2-Modpack
Less Effects/copnofire.lua
1
24368
local mvec3_set = mvector3.set local mvec3_set_z = mvector3.set_z local mvec3_set_l = mvector3.set_length local mvec3_sub = mvector3.subtract local mvec3_add = mvector3.add local mvec3_mul = mvector3.multiply local mvec3_dot = mvector3.dot local mvec3_cross = mvector3.cross local mvec3_norm = mvector3.normalize local ...
mit
delram/yago
plugins/media.lua
297
1590
do local function run(msg, matches) local receiver = get_receiver(msg) local url = matches[1] local ext = matches[2] local file = download_to_file(url) local cb_extra = {file_path=file} local mime_type = mimetype.get_content_type_no_sub(ext) if ext == 'gif' then print('send_file') send_docum...
gpl-2.0
CyberSecurityBot/Cyber-Security-pro
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
agpl-3.0
Insurgencygame/LivingDead
TheLivingDeadv0.1.sdd/lups/particleclasses/jitterparticles.lua
1
11917
-- $Id: JitterParticles.lua 3171 2008-11-06 09:06:29Z det $ ----------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------- local JitterParticles = {} Jitt...
gpl-2.0
ZKINGBOTZ/KING
plugins/ingroup.lua
527
44020
do -- Check Member local function check_member_autorealm(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 -- Group configuration data[tostr...
gpl-2.0
mahdib9/mjk
plugins/ingroup.lua
527
44020
do -- Check Member local function check_member_autorealm(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 -- Group configuration data[tostr...
gpl-2.0
lordtg/project
plugins/ingroup.lua
527
44020
do -- Check Member local function check_member_autorealm(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 -- Group configuration data[tostr...
gpl-2.0
srush/word-char-rnn
util/Diag.lua
9
1829
local Diag, parent = torch.class('nn.Diag', 'nn.Module') function Diag:__init(pos, length) parent.__init(self) self.weight = torch.Tensor(pos, length) self.gradWeight = torch.Tensor(pos, length) self:reset() end function Diag:reset(stdv) stdv = stdv or 1./math.sqrt(self.weight:size(1) + self.weigh...
mit
fegimanam/crd
plugins/google.lua
336
1323
do local function googlethat(query) local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&' local parameters = 'q='..(URL.escape(query) or '') -- Do the request local res, code = https.request(url..parameters) if code ~=200 then return nil end loca...
gpl-2.0
mohammad25253/newplugins
plugins/google.lua
336
1323
do local function googlethat(query) local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&' local parameters = 'q='..(URL.escape(query) or '') -- Do the request local res, code = https.request(url..parameters) if code ~=200 then return nil end loca...
gpl-2.0
Insurgencygame/LivingDead
TheLivingDeadv0.1.sdd/units/unused/armch.lua
1
3310
return { armch = { acceleration = 0.071999996900558, brakerate = 0.075000002980232, buildcostenergy = 2523, buildcostmetal = 136, builddistance = 112, builder = true, buildpic = "ARMCH.DDS", buildtime = 4472, canhover = true, canmove = true, category = "ALL HOVER MOBILE NOTSUB NOWEAPON NOTSHIP NO...
gpl-2.0
Insurgencygame/LivingDead
TheLivingDeadv0.1.sdd/units/unused/armamex.lua
1
2413
return { armamex = { acceleration = 0, activatewhenbuilt = true, brakerate = 0, buildangle = 6092, buildcostenergy = 1665, buildcostmetal = 190, buildinggrounddecaldecayspeed = 30, buildinggrounddecalsizex = 5, buildinggrounddecalsizey = 5, buildinggrounddecaltype = "armamex_aoplane.dds", buildpi...
gpl-2.0
PichotM/DarkRP
entities/entities/darkrp_laws/init.lua
11
4934
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") local Laws = {} local FixedLaws = {} timer.Simple(0, function() Laws = table.Copy(GAMEMODE.Config.DefaultLaws) FixedLaws = table.Copy(Laws) end) local hookCanEditLaws = {canEditLaws = function(_, ply, action, args) if not RPExt...
mit
iamgreaser/iceball
pkg/gm/chen/mdl_chen_head.lua
4
3705
mdl_chen_head_tex = mdl_chen_head_tex or common.img_load(DIR_CHENMOD.."/mdl_chen_head.png", "png") do local settings = ... local this = {} this.tex = mdl_chen_head_tex do local l = {} -- Head local function add_sphere(l, ucount, vcount, rscale, vscale, yoffs, xoffs, zoffs) local function uvmap(u, v) ...
gpl-3.0
flavorzyb/cocos2d-x
samples/Lua/TestLua/Resources/luaScript/ActionsProgressTest/ActionsProgressTest.lua
7
12605
local s = CCDirector:sharedDirector():getWinSize() ------------------------------------ -- SpriteProgressToRadial ------------------------------------ local function SpriteProgressToRadial() local layer = CCLayer:create() Helper.initWithLayer(layer) local to1 = CCProgressTo:create(2, 100) local to2 = CCProgr...
gpl-2.0
OmarReaI/RealBot
plugins/plugins.lua
4
6158
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
gpl-2.0
zhkl0228/luajava
test/testMemory.lua
8
1169
------------------------------------------------------ -- Creates a lot of objects to check if the -- used memory keeps stable ------------------------------------------------------ local runtime = luajava.bindClass("java.lang.Runtime"):getRuntime() function doGc(event, lineNumber) if event == "count" then...
mit
ronsaldo/abstract-physics
implementations/Bullet/bullet3/build3/findOpenCL.lua
22
3552
function findOpenCL_clew() return true; end function findOpenCL_Apple() -- if os.is("macosx") then -- return true -- else return false -- end end function findOpenCL_AMD() -- local amdopenclpath = os.getenv("AMDAPPSDKROOT") -- if (amdopenclpath) then -- return true -- end return false end ...
mit
iamgreaser/iceball
pkg/iceball/lib/event.lua
4
3292
--[[ Copyright (c) 2014 Team Sparkle 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, publish, distribute, ...
gpl-3.0
MinaciousGrace/Til-Death
BGAnimations/ScreenSelectMusic overlay/currentsort.lua
2
2431
local t = Def.ActorFrame{}; local frameWidth = 280 local frameHeight = 20 local frameX = SCREEN_WIDTH-5 local frameY = 15 local sortTable = { SortOrder_Preferred = 'Preferred', SortOrder_Group = 'Group', SortOrder_Title = 'Title', SortOrder_BPM = 'BPM', SortOrder_Popularity = 'Popular', SortO...
mit
LANGFAN/APM
Tools/CHDK-Scripts/kap_uav.lua
183
28512
--[[ KAP UAV Exposure Control Script v3.1 -- Released under GPL by waterwingz and wayback/peabody http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script @title KAP UAV 3.1 @param i Shot Interval (sec) @default i 15 @range i 2 120 @param s Total Shots (0=infinite) @default s 0 @range ...
gpl-3.0
Anarchid/Zero-K
LuaRules/Configs/StartBoxes/Harbinger 2.lua
8
14337
return { [0] = { nameLong = "North", nameShort = "N", startpoints = {{5070, 2760}}, boxes = { { {4778, 2045}, {4792, 2075}, {4803, 2103}, {4808, 2128}, {4809, 2155}, {4799, 2187}, {4789, 2224}, {4777, 2271}, {4740, 2351}, {4726, 2393}, {4715, 2410}, {4699, 242...
gpl-2.0
hinrik/layla
lib/layla/tokenizer/words.lua
1
8273
local M = {} local M_mt = { __index = M } local slnuni = require 'unicode'.utf8 local D = require "serpent".block local lpeg = require 'lpeg' -- TODO use lpeg_utf8 from LuaRocks when it's released local locale = package.loadlib("../lpeg_utf8/lpeg_utf8.so", "luaopen_lpeg_utf8")().locale() local B, P, C, Cs, R, S, V = ...
mit
CyberSecurityBot/Cyber-Security-pro
plugins/filter_en.lua
2
3480
--[[ |------------------------------------------------- |--------- ______-----------------_______---| | ______ __ ______ _____ _____ __ | _____ | ____| __ __ / _____/ | | |__ __| | | |__ __| / \ | \ | | | |__ | | |____ | | | | / /____ | | | | | | | | ...
agpl-3.0
Sasu98/Nerd-Gaming-Public
resources/[no_ng_tag]/admin/client/gui/admin_vehicle.lua
6
14070
--[[********************************** * * Multi Theft Auto - Admin Panel * * gui\admin_stats.lua * * Original File by lil_Toady * **************************************]] aVehicleForm = nil aVehicleCustomizePlayer = nil aVehicleCustomizeVehicle = nil aVehicleUpgrades = {} aUpgradeNames = {} function aVehicleCustomi...
mit
Anarchid/Zero-K
LuaRules/Gadgets/unit_prevent_lab_hax.lua
4
13465
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- if not gadgetHandler:IsSyncedCode() then return end -------------------------------------------------------------------------------- ------------------------...
gpl-2.0
Anarchid/Zero-K
units/turretlaser.lua
3
4229
return { turretlaser = { unitname = [[turretlaser]], name = [[Lotus]], description = [[Light Laser Tower]], acceleration = 0, brakeRate = 0, buildCostMetal = 90, builder ...
gpl-2.0
PichotM/DarkRP
gamemode/modules/base/sh_util.lua
3
8382
--[[--------------------------------------------------------------------------- Utility functions ---------------------------------------------------------------------------]] local vector = FindMetaTable("Vector") local meta = FindMetaTable("Player") --[[--------------------------------------------------------------...
mit
LanceJenkinZA/prosody-modules
mod_strict_https/mod_strict_https.lua
32
1328
-- HTTP Strict Transport Security -- https://tools.ietf.org/html/rfc6797 module:set_global(); local http_server = require "net.http.server"; local hsts_header = module:get_option_string("hsts_header", "max-age=31556952"); -- This means "Don't even try to access without HTTPS for a year" local _old_send_response; lo...
mit
Anarchid/Zero-K
units/gunshipskirm.lua
4
3753
return { gunshipskirm = { unitname = [[gunshipskirm]], name = [[Harpy]], description = [[Multi-Role Support Gunship]], acceleration = 0.152, brakeRate = 0.1216, buildCostMetal = 300, builder = false, buildPic ...
gpl-2.0
amir2727/teletamir
plugins/Sticker.lua
1
2427
local lock = 1 local txt = "\n\nSticker Maker By @amirho3ein911" -- Lotfan Ino Pak Nakonid Bara In Plugin Zahmat Ziadi Keshidam local function callback(extra, success, result) -- Calback Bara Load Kardn ax if success then local file = 'sticker/sticker.webp' print('File downloaded to:', result) os.rename(...
gpl-2.0
dfranusic/pmink
src/wireshark/wireshark-1.12.3/epan/wslua/template-init.lua
1
4929
-- init.lua -- -- initialize wireshark's lua -- -- This file is going to be executed before any other lua script. -- It can be used to load libraries, disable functions and more. -- -- $Id$ -- -- Wireshark - Network traffic analyzer -- By Gerald Combs <gerald@wireshark.org> -- Copyright 1998 Gerald Combs -- -- This p...
gpl-3.0
AndyBursh/Factorio-Stdlib
stdlib/data/data.lua
11
2357
--- Data module -- @module Data require 'stdlib/core' require 'stdlib/string' require 'stdlib/table' Data = {} --- Selects all data values where the key matches the selector pattern. -- The selector pattern is divided into groups. The pattern should have a colon character `:` to denote the selection for each group. ...
isc
omid1212/telsed2
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
mnemnion/grym
lib/util.lua
1
2475
local ansi = require "ansi" local cyan = tostring(ansi.cyan) local magenta = tostring(ansi.magenta) local clear = tostring(ansi.clear) local green = tostring(ansi.green) local util = {} function util.F () -- A method for functionalizing tables. -- This lets us define both fn() and fn.subfn() -- over a proper closure....
mit
chuckatkins/legion
bindings/lua/legion.lua
1
6185
-- 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
Anarchid/Zero-K
LuaRules/Configs/StartBoxes/Altored_Arctic.lua
8
18453
return { [0] = { boxes = { { {1340, 3389}, {1335, 3399}, {1336, 3410}, {1342, 3420}, {1353, 3425}, {1363, 3428}, {1374, 3429}, {1385, 3431}, {1395, 3433}, {1407, 3434}, {1417, 3437}, {1456, 3449}, {1510, 3472}, {1540, 3487}, {1576, 3503}, {1601, 3512...
gpl-2.0
The-HalcyonDays/darkstar
scripts/zones/Northern_San_dOria/npcs/Maurinne.lua
38
1026
----------------------------------- -- Area: Northern San d'Oria -- NPC: Maurinne -- Type: Standard Dialogue NPC -- @zone: 231 -- @pos -127.185 0.000 179.193 -- ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; require("scripts/zones/Northern_San_dOria/TextIDs")...
gpl-3.0
rrpgfirecast/firecast
Plugins/Sheets/GURPS Saint Seiya Forever/output/rdkObjs/Ficha SSF/SSF.1.lfm.lua
1
136620
require("firecast.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); require("locale.lua"); local __o_Utils = require("utils.lua"); local function constructNew_frmSSF1() local obj = GUI.fromHandle(_obj_newObject("form...
apache-2.0
The-HalcyonDays/darkstar
scripts/globals/abilities/pets/healing_breath_iv.lua
3
1685
--------------------------------------------------- -- Healing Breath IV --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); --------------------------------------------------- function onAbilityCheck(p...
gpl-3.0
The-HalcyonDays/darkstar
scripts/globals/abilities/feral_howl.lua
58
3525
--------------------------------------------------- -- Ability: Feral Howl -- Terrorizes the target. -- Obtained: Beastmaster Level 75 -- Recast Time: 0:05:00 -- Duration: Apprx. 0:00:01 - 0:00:10 --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status")...
gpl-3.0
rrpgfirecast/firecast
Plugins/Sheets/Mage The Awakening/sdk/rrpgLFM.lua
3
5439
require("rrpgUtil.lua"); require("rrpgGUI.lua"); local serpent = nil; local lfmObjectsStrongRef = {}; function lfm_getObject(ctrlOrHandle) if ctrlOrHandle == nil then return nil; elseif isNumber(ctrlOrHandle) then return lfmObjectsStrongRef[ctrlOrHandle]; else return ctrlOrHandle; end; end; ...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/Dead Zone 2.0/sdk/rrpgLFM.lua
3
5439
require("rrpgUtil.lua"); require("rrpgGUI.lua"); local serpent = nil; local lfmObjectsStrongRef = {}; function lfm_getObject(ctrlOrHandle) if ctrlOrHandle == nil then return nil; elseif isNumber(ctrlOrHandle) then return lfmObjectsStrongRef[ctrlOrHandle]; else return ctrlOrHandle; end; end; ...
apache-2.0
rrpgfirecast/firecast
Macros/GURPS/falhacritica.lua
1
1380
-- Faz uma rolagem de 3d6 e compara o valor com o NH local re = tonumber(arg[1]) or 0; local teste = "3d6"; if re > 0 then teste = "3d6+"..re end; if re < 0 then teste = "3d6"..re end; local resultado = rolar(teste, "[§K1]Critical Failure") + 1; local table = {"[§K1]None", "[§K1]None", "[§K1]None", "[§K1]Weapon breaks"...
apache-2.0
mcodegeeks/OpenKODE-Framework
03_Tutorial/T02_XMCocos2D-v3-Lua/Resource/luaScript/ParallaxTest/ParallaxTest.lua
4
5123
local kTagNode = 0 local kTagGrossini = 1 local function createParallaxLayer(title, subtitle) local layer = cc.Layer:create() Helper.initWithLayer(layer) local titleStr = title == nil and "No title" or title local subTitleStr = subtitle == nil and "" or subtitle Helper.titleLabel:setString(t...
mit
The-HalcyonDays/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Animated_Longbow.lua
17
1484
----------------------------------- -- Area: Dynamis Xarcabard -- NPC: Animated Longbow ----------------------------------- require("scripts/globals/status"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- -- onMobEngaged ----------------------------------- funct...
gpl-3.0
rrpgfirecast/firecast
Plugins/TablesDock/Ferramentas d20/output/rdkObjs/Ferramentas/PlayerItem.lfm.lua
1
5758
require("firecast.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); require("locale.lua"); local __o_Utils = require("utils.lua"); local function constructNew_frmPlayer() local obj = GUI.fromHandle(_obj_newObject("fo...
apache-2.0
The-HalcyonDays/darkstar
scripts/globals/spells/voidstorm.lua
31
1154
-------------------------------------- -- Spell: Voidstorm -- Changes the weather around target party member to "gloomy." -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ---------------------------------------...
gpl-3.0
The-HalcyonDays/darkstar
scripts/zones/Celennia_Memorial_Library/Zone.lua
15
1349
----------------------------------- -- -- Zone: Celennia Memorial Library (284) -- ----------------------------------- package.loaded["scripts/zones/Celennia_Memorial_Library/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Celennia_Memorial_Libr...
gpl-3.0
LeeNCompanyInc/openwrt-packages
utils/yunbridge/files/usr/bin/pretty-wifi-info.lua
106
2067
#!/usr/bin/lua local function get_basic_net_info(network, iface, accumulator) local net = network:get_network(iface) local device = net and net:get_interface() if device then accumulator["uptime"] = net:uptime() accumulator["iface"] = device:name() accumulator["mac"] = device:mac() accumulator["...
gpl-2.0
The-HalcyonDays/darkstar
scripts/zones/Windurst_Walls/npcs/Yoriri.lua
38
1403
----------------------------------- -- Area: Windurst Walls -- NPC: Yoriri -- Type: Standard NPC -- @pos 65.268 -8.5 -58.309 239 ----------------------------------- package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts...
gpl-3.0
Goranaws/Dominos
Dominos/core/fadeManager.lua
1
1233
--[[ fadeManager.lua Handles fading out frames when not moused over Necessary since using the blizzard fading functions can cause issues in combat --]] local AddonName, Addon = ... local MouseOverWatcher = {} local Timer_After = _G['C_Timer'].After local watched = {} function MouseOverWatcher:Update()...
bsd-3-clause