repo_name
stringlengths
6
69
path
stringlengths
6
178
copies
stringclasses
278 values
size
stringlengths
4
7
content
stringlengths
671
917k
license
stringclasses
15 values
abbasgh12345/extreme2
plugins/inrealm.lua
850
25085
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if is_sudo(msg) or is_realm(msg) and is_admin(msg) then local group_creator = msg.from.print_name create_g...
gpl-2.0
autowitch/conky-aw2
scripts/widgets/top.lua
1
3603
local top = {} top.defaults = { name = 'Top Memory', interval = 1, top = 10, left = 10, width = 200, height = 180, memory_warn_pct = 20, cpu_warn_pct = 40, name_x_pos = 0, pct_x_pos = 115, pid_x_pos = 170, } function top.draw(cr, ws, gs, cache) local offset_x = ws.lef...
mit
kusk356/fucktion
plugins/media.lua
376
1679
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
i-z/cocos2d-x-samples
samples/KillBug/src/cocos/cocos2d/DeprecatedOpenglEnum.lua
148
11934
-- This is the DeprecatedEnum DeprecatedClass = {} or DeprecatedClass _G.GL_RENDERBUFFER_INTERNAL_FORMAT = gl.RENDERBUFFER_INTERNAL_FORMAT _G.GL_LINE_WIDTH = gl.LINE_WIDTH _G.GL_CONSTANT_ALPHA = gl.CONSTANT_ALPHA _G.GL_BLEND_SRC_ALPHA = gl.BLEND_SRC_ALPHA _G.GL_GREEN_BITS = gl.GREEN_BITS _G.GL_STENCIL_REF = gl.STENCI...
mit
MinetestForFun/minetest-minetestforfun-server
mods/plantlife_modpack/bushes_classic/nodes.lua
8
5983
local S = biome_lib.intllib plantlife_bushes = {} -- TODO: add support for nodebreakers? those dig like mese picks plantlife_bushes.after_dig_node = function(pos, oldnode, oldmetadata, digger) if not (digger and pos and oldnode) then return end -- find out which bush type we are dealing with local bush_name ...
unlicense
dev-osrose/osIROSE-new
scripts/mobs/ai/wild_gorilla.lua
2
1064
registerNpc(206, { walk_speed = 200, run_speed = 550, scale = 180, r_weapon = 0, l_weapon = 0, level = 43, hp = 35, attack = 209, hit = 131, def = 132, res = 62, avoid ...
apache-2.0
MinetestForFun/minetest-minetestforfun-server
mods/homedecor_modpack/homedecor/foyer.lua
12
1879
local S = homedecor.gettext homedecor.register("coatrack_wallmount", { tiles = { homedecor.plain_wood }, inventory_image = "homedecor_coatrack_wallmount_inv.png", description = "Coatrack (wallmounted)", groups = {snappy=3}, sounds = default.node_sound_wood_defaults(), node_box = { type = "fixed", fixed = { ...
unlicense
Amorph/premake-dev
src/actions/vstudio/vs200x_vcproj_user.lua
1
1876
-- -- vs200x_vcproj_user.lua -- Generate a Visual Studio 2002-2008 C/C++ project .user file -- Copyright (c) 2011-2012 Jason Perkins and the Premake project -- local vstudio = premake.vstudio local vc200x = premake.vstudio.vc200x local project = premake5.project -- -- Generate a Visual Studio 200x C++...
bsd-3-clause
Glastis/OpenComputers-Robots-Toolbox
old_to_clean/sand_digger.lua
1
10378
local robot = require("robot") local side = require("sides") local component = require("component") local robot = require("robot") local side = require("sides") local component = require("component") local errno = "unknown error" function equip_classic_pickaxe() while true do if not select_item("minecraft:stone_p...
mit
MinetestForFun/minetest-minetestforfun-server
mods/WorldEdit/worldedit_limited/init.lua
26
3114
do return end do local MAX_VOLUME = 30 * 30 * 30 local we = worldedit local volume = we.volume local safewrap = function(func) return function(pos1, pos2, ...) if validbox(pos1, pos2) then return func(pos1, pos2, ...) end return 0, pos1, pos2 end end local validbox = function(pos1, pos2) tpos...
unlicense
Schakirov/cutorch_my
Tensor.lua
9
2651
function torch.CudaTensor.apply(self, func) local x = torch.FloatTensor(self:size()):copy(self) x:apply(func) self:copy(x) return self end local function Tensor__type(self,type) local current = torch.typename(self) if not type then return current end if type ~= current then local new = torch...
bsd-3-clause
pperichon/domoticz
dzVents/runtime/tests/testDevice.lua
1
31535
_G._ = require 'lodash' local scriptPath = '' package.path = package.path .. ";../?.lua;" .. scriptPath .. '/?.lua;../device-adapters/?.lua;' local testData = require('tstData') local LOG_INFO = 2 local LOG_DEBUG = 3 local LOG_ERROR = 1 local utils = require('Utils') local function values(t) local values = _.valu...
gpl-3.0
Sxcret/FrenchRP
gamemode/modules/fadmin/fadmin/playeractions/jail/sv_init.lua
2
7466
local function Jail(ply, cmd, args) if not args[1] then return false end local targets = FAdmin.FindPlayer(args[1]) if not targets or #targets == 1 and not IsValid(targets[1]) then FAdmin.Messages.SendMessage(ply, 1, "Player not found") return false end local JailType = FAdmin.Play...
mit
tiantiantouyan/ttty-gateway
nginx/lualib/resty/web_shield/config_store.lua
1
4675
-- -- WebShield ConfigStore -- -- Shields Config Struct: -- -- { -- order = 'and', -- shields = { -- -- ip whitelist/blacklist -- {name = 'ip_whitelist', config = {...}}, -- -- path whitelist, set `break_shield = true` -- {name = 'path_threshold', config = {...}}, -- -- path threshold -- {name = 'pa...
mit
chen0031/Dato-Core
src/unity/python/graphlab/lua/pl/luabalanced.lua
49
8024
--- Extract delimited Lua sequences from strings. -- Inspired by Damian Conway's Text::Balanced in Perl. <br/> -- <ul> -- <li>[1] <a href="http://lua-users.org/wiki/LuaBalanced">Lua Wiki Page</a></li> -- <li>[2] http://search.cpan.org/dist/Text-Balanced/lib/Text/Balanced.pm</li> -- </ul> <br/> -- <pre class=example...
agpl-3.0
aqasaeed/seedan
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
RainsSoft/moonsharp
src/MoonSharp.Interpreter.Tests/TestMore/Modules/Test/Builder.lua
25
9377
-- -- lua-TestMore : <http://fperrad.github.com/lua-TestMore/> -- local debug = nil; -- require 'debug' local io = nil; -- require 'io' local os = nil; -- require 'os' local error = error local gsub = require 'string'.gsub local match = require 'string'.match local pairs = pairs local pcall = pcall local print = prin...
bsd-3-clause
jetspam20/jetspam
libs/url.lua
31
8003
-- کد های پایین در ربات نشان داده نمیشوند -- http://permag.ir -- @permag_ir -- @permag_bots -- @permag local string = require("string") local base = _G local table = require("table") local Url={} Url._VERSION = "URL 1.0.2" function Url.escape(s) return string.gsub(s, "([^A-Za-z0-9_])", function(c) return...
gpl-3.0
MinetestForFun/minetest-minetestforfun-server
mods/plantlife_modpack/dryplants/moregrass.lua
7
1171
----------------------------------------------------------------------------------------------- -- Grasses - More Tall Grass 0.0.2 ----------------------------------------------------------------------------------------------- -- by Mossmanikin -- License (everything): WTFPL -- Contains code from: biome_lib ...
unlicense
ld-test/luarocks
src/luarocks/fs/lua.lua
7
27577
--- Native Lua implementation of filesystem and platform abstractions, -- using LuaFileSystem, LZLib, MD5 and LuaCurl. -- module("luarocks.fs.lua") local fs_lua = {} local fs = require("luarocks.fs") local cfg = require("luarocks.cfg") local dir = require("luarocks.dir") local util = require("luarocks.util") local p...
mit
dev-osrose/osIROSE-new
scripts/mobs/ai/ruper_mage.lua
2
1073
registerNpc(346, { walk_speed = 200, run_speed = 700, scale = 140, r_weapon = 1064, l_weapon = 0, level = 95, hp = 27, attack = 399, hit = 213, def = 301, res = 346, avoid...
apache-2.0
Zaratusa/gmod_stuff
lua/autorun/client/gauss_rifle_textures.lua
2
2197
CreateConVar("gauss_rifle_body", 1, {FCVAR_CLIENTCMD_CAN_EXECUTE, FCVAR_ARCHIVE}, "Which color should the gauss rifle body have?") CreateConVar("gauss_rifle_scope", 1, {FCVAR_CLIENTCMD_CAN_EXECUTE, FCVAR_ARCHIVE}, "Which color should the gauss rifle scope have?") local BodyColors = {"blue", "green", "orange", "purple"...
gpl-3.0
liuweiwuxie/rnn
LinearNoBias.lua
11
1886
------------------------------------------------------------------------ --[[ LinearNoBias ]]-- -- Subclass of nn.Linear with no bias term ------------------------------------------------------------------------ nn = require 'nn' local LinearNoBias, Linear = torch.class('nn.LinearNoBias', 'nn.Linear') function LinearN...
bsd-3-clause
abbasgh12345/extreme2
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
kusk356/fucktion
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
crazyhamedboy/botoliver
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
drunklurker/wesnoth
data/ai/micro_ais/cas/ca_swarm_move.lua
26
2504
local H = wesnoth.require "lua/helper.lua" local AH = wesnoth.require "ai/lua/ai_helper.lua" local ca_swarm_move = {} function ca_swarm_move:evaluation(ai, cfg) local units = wesnoth.get_units { side = wesnoth.current.side } for _,unit in ipairs(units) do if (unit.moves > 0) then return cfg.ca_score e...
gpl-2.0
pperichon/domoticz
dzVents/runtime/tests/testTime.lua
1
32290
_G._ = require 'lodash' package.path = package.path .. ";../?.lua" describe('Time', function() local utils, Time local utcT, localT local utcRaw, utcNow, utcPast local localRaw, localNow, localPast setup(function() _G.logLevel = 1 _G.TESTMODE = true _G.log = function() end _G.globalvariables = { ['cu...
gpl-3.0
luzexi/slua-3rd
build/luajit-2.0.4/src/jit/v.lua
88
5614
---------------------------------------------------------------------------- -- Verbose mode of the LuaJIT compiler. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
mit
APItools/middleware
middleware/yo-api/yo_spec.lua
1
2943
local spec = require 'spec.spec' describe("yo-api", function() local yo before_each(function() yo = spec.middleware("yo-api/yo.lua") end) describe("when the uri is /", function() it("sends an email and a notification", function() local request = spec.request({ method = 'GET', url = '/?us...
mit
oregamikiller/cocos2dPod
cocos/scripting/lua-bindings/auto/api/RelativeLayoutParameter.lua
18
3117
-------------------------------- -- @module RelativeLayoutParameter -- @extend LayoutParameter -- @parent_module ccui -------------------------------- -- Sets RelativeAlign parameter for LayoutParameter.<br> -- see RelativeAlign<br> -- param align Relative align in `RelativeAlign`. -- @function [parent=#RelativeLayo...
mit
dev-osrose/osIROSE-new
scripts/mobs/ai/lunar_soul.lua
2
1061
registerNpc(703, { walk_speed = 160, run_speed = 250, scale = 200, r_weapon = 0, l_weapon = 0, level = 90, hp = 80, attack = 328, hit = 262, def = 340, res = 300, avoid ...
apache-2.0
Zaratusa/gmod_stuff
gamemodes/terrortown/entities/weapons/weapon_ttt_dual_elites/shared.lua
2
1947
--[[Author informations]]-- SWEP.Author = "Zaratusa" SWEP.Contact = "http://steamcommunity.com/profiles/76561198032479768" if SERVER then AddCSLuaFile() resource.AddWorkshop("634300147") else LANG.AddToLanguage("english", "dual_elites_name", "Dual Elites") SWEP.PrintName = "dual_elites_name" SWEP.Slot = 1 SWEP....
gpl-3.0
TsarN/uber-os
packages/libargparse/argparse.lua
1
3989
------------------------------------------------------------------ -- Parameter ------------------------------------------------------------------ local argparse = {} local Parameter = {} function Parameter:matches(arg, options, tArgs) if arg:sub(1,1) ~= "-" then return false end arg = arg:sub(2) ...
mit
TsarN/uber-os
packages/luamin/parselua.lua
1
134984
-- -- ParseLua.lua -- -- The main lua parser and lexer. -- LexLua returns a Lua token stream, with tokens that preserve -- all whitespace formatting information. -- ParseLua returns an AST, internally relying on LexLua. -- local util = lua.include("util") local scope = lua.include("scope") local lookupify = util.look...
mit
dev-osrose/osIROSE-new
scripts/mobs/ai/rotten_elemental.lua
2
1075
registerNpc(572, { walk_speed = 300, run_speed = 650, scale = 190, r_weapon = 1075, l_weapon = 0, level = 157, hp = 35, attack = 754, hit = 481, def = 502, res = 509, avoi...
apache-2.0
oregamikiller/cocos2dPod
cocos/scripting/lua-bindings/auto/api/EaseBackIn.lua
9
1202
-------------------------------- -- @module EaseBackIn -- @extend ActionEase -- @parent_module cc -------------------------------- -- brief Create the action with the inner action.<br> -- param action The pointer of the inner action.<br> -- return A pointer of EaseBackIn action. If creation failed, return nil. -- @fu...
mit
MinetestForFun/minetest-minetestforfun-server
mods/unified_inventory/internal.lua
5
13029
local S = unified_inventory.gettext local F = unified_inventory.fgettext -- This pair of encoding functions is used where variable text must go in -- button names, where the text might contain formspec metacharacters. -- We can escape button names for the formspec, to avoid screwing up -- form structure overall, but t...
unlicense
ld-test/luarocks
src/luarocks/pack.lua
20
7450
--- Module implementing the LuaRocks "pack" command. -- Creates a rock, packing sources or binaries. --module("luarocks.pack", package.seeall) local pack = {} package.loaded["luarocks.pack"] = pack local unpack = unpack or table.unpack local path = require("luarocks.path") local repos = require("luarocks.repos") loc...
mit
alikingambav/archer3
plugins/save.lua
13
2829
local function save_value(msg, name, value) if (not name or not value) then return "Usage: !set var_name value" end local hash = nil if msg.to.type == 'chat' then hash = 'chat:'..msg.to.id..':variables' end if hash then redis:hset(hash, name, value) return "ذخیره شد "..name end end local ...
gpl-2.0
oregamikiller/cocos2dPod
cocos/scripting/lua-bindings/auto/api/TurnOffTiles.lua
11
2477
-------------------------------- -- @module TurnOffTiles -- @extend TiledGrid3DAction -- @parent_module cc -------------------------------- -- brief Show the tile at specified position.<br> -- param pos The position index of the tile should be shown. -- @function [parent=#TurnOffTiles] turnOnTile -- @param self -- @...
mit
kostya/benchmarks
primes/primes_jit.lua
1
4999
local ffi = require "ffi" local UPPER_BOUND = 5000000 local PREFIX = 32338 local function Node() return { children = {}, terminal = false, } end local function Sieve(limit) local prime = ffi.new("bool[?]", limit + 1, false) local to_list = function() local result = {2, 3} for p = 5, limit do...
mit
luzexi/slua-3rd
build/lsqlite3-master/tests-sqlite3.lua
12
19268
--[[-------------------------------------------------------------------------- Author: Michael Roth <mroth@nessie.de> Copyright (c) 2004, 2005 Michael Roth <mroth@nessie.de> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation ...
mit
ld-test/luarocks
src/luarocks/build/builtin.lua
10
10890
--- A builtin build system: back-end to provide a portable way of building C-based Lua modules. --module("luarocks.build.builtin", package.seeall) local builtin = {} local unpack = unpack or table.unpack local fs = require("luarocks.fs") local path = require("luarocks.path") local util = require("luarocks.util") loc...
mit
tahashakiba/boomrange_bot
libs/redis.lua
566
1214
local Redis = require 'redis' local FakeRedis = require 'fakeredis' local params = { host = os.getenv('REDIS_HOST') or '127.0.0.1', port = tonumber(os.getenv('REDIS_PORT') or 6379) } local database = os.getenv('REDIS_DB') local password = os.getenv('REDIS_PASSWORD') -- Overwrite HGETALL Redis.commands.hgetall = ...
gpl-2.0
mattyx14/forgottenserver-1
data/spells/scripts/support/protector.lua
3
1119
local conditionAttrib = createConditionObject(CONDITION_ATTRIBUTES) local conditionExhaustCombat = createConditionObject(CONDITION_EXHAUST_COMBAT) local conditionExhaustHeal = createConditionObject(CONDITION_EXHAUST_HEAL) local conditionPacified = createConditionObject(CONDITION_PACIFIED) setConditionParam(conditionAt...
gpl-2.0
crazyhamedboy/botoliver
libs/redis.lua
566
1214
local Redis = require 'redis' local FakeRedis = require 'fakeredis' local params = { host = os.getenv('REDIS_HOST') or '127.0.0.1', port = tonumber(os.getenv('REDIS_PORT') or 6379) } local database = os.getenv('REDIS_DB') local password = os.getenv('REDIS_PASSWORD') -- Overwrite HGETALL Redis.commands.hgetall = ...
gpl-2.0
Amorph/premake-dev
src/base/solution.lua
1
11317
-- -- solution.lua -- Work with the list of solutions loaded from the script. -- Copyright (c) 2002-2013 Jason Perkins and the Premake project -- premake.solution = { } local solution = premake.solution local oven = premake5.oven local project = premake5.project local configset = premake.configset local context ...
bsd-3-clause
Sxcret/FrenchRP
gamemode/entities/weapons/weapon_fiveseven2/shared.lua
1
1112
AddCSLuaFile() if CLIENT then SWEP.PrintName = "FiveSeven" SWEP.Author = "FrenchRP Developers" SWEP.Slot = 1 SWEP.SlotPos = 1 SWEP.IconLetter = "u" killicon.AddFont("weapon_fiveseven2", "CSKillIcons", SWEP.IconLetter, Color(255, 80, 0, 255)) end SWEP.Base = "weapon_cs_base2" SWEP.Spawnable =...
mit
chartly/portfolio
ditfw-gfx/deps/glsdk/glloadgen/modules/TabbedFile.lua
1
3250
--[[ Exports a table containing one function: TabbedFile. It wraps a regular Lua file-handle, providing extra functions. Tabs can either be a number of spaces or one tab. It provides the following functions, in addition to (or replacing) the Lua standard ones: - inc: Increments the tab count by the number given, or by...
mit
dev-osrose/osIROSE-new
scripts/mobs/ai/scarab.lua
2
1065
registerNpc(210, { walk_speed = 300, run_speed = 500, scale = 50, r_weapon = 0, l_weapon = 0, level = 35, hp = 26, attack = 173, hit = 121, def = 110, res = 45, avoid ...
apache-2.0
cogddo/vlc
share/lua/sd/icecast.lua
82
2757
--[[ $Id$ Copyright © 2010 VideoLAN and AUTHORS Authors: Fabio Ritrovato <sephiroth87 at videolan dot 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, or ...
gpl-2.0
kostya/benchmarks
primes/primes.lua
1
3890
package.cpath = package.cpath .. ';../common/libnotify/target/?.so' local has_libnotify, libnotify = pcall(require, 'lua_libnotify') local UPPER_BOUND = 5000000 local PREFIX = 32338 local function Node() return { children = {}, terminal = false, } end local function Sieve(limit) local fill_array = func...
mit
dev-osrose/osIROSE-new
scripts/mobs/ai/purified_rackie.lua
2
3671
registerNpc(95, { walk_speed = 130, run_speed = 400, scale = 90, r_weapon = 0, l_weapon = 0, level = 18, hp = 999, attack = 1, hit = 1, def = 0, res = 999, avoid ...
apache-2.0
4aiman/ethereal
crystal.lua
1
4549
-- Crystal Spike (Hurts if you touch it - thanks to ZonerDarkRevention for his DokuCraft DeviantArt crystal texture) minetest.register_node("ethereal:crystal_spike", { description = "Crystal Spike", drawtype = "plantlike", tiles = { "crystal_spike.png" }, inventory_image = "crystal_spike.png", wield_image = "cryst...
gpl-3.0
ToqueWillot/M2DAC
AS/TME5/TP5.lua
1
1894
require "nn" require "nngraph" local mnist = require 'mnist' iteration = 100 function buildExo1(size) seq1 = nn.Sequential() seq1:add(nn.Linear(size,size)) seq1:add(nn.Sigmoid()) concatTable = nn.ConcatTable():add(seq1):add(nn.Identity()) addTable = nn.CAddTable() seq2 = nn.Sequential() seq2:add(concatTabl...
gpl-2.0
ld-test/luarocks
src/luarocks/cache.lua
18
3198
--- Module handling the LuaRocks local cache. -- Adds a rock or rockspec to a rocks server. --module("luarocks.cache", package.seeall) local cache = {} package.loaded["luarocks.cache"] = cache local fs = require("luarocks.fs") local cfg = require("luarocks.cfg") local dir = require("luarocks.dir") local util = requir...
mit
oregamikiller/cocos2dPod
cocos/scripting/lua-bindings/auto/api/FadeOutUpTiles.lua
11
1509
-------------------------------- -- @module FadeOutUpTiles -- @extend FadeOutTRTiles -- @parent_module cc -------------------------------- -- brief Create the action with the grid size and the duration.<br> -- param duration Specify the duration of the FadeOutUpTiles action. It's a value in seconds.<br> -- param grid...
mit
laurenweinstein1/ardupilot-lw
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
PurgePJ/VouchBot
deps/discordia/libs/containers/Member.lua
1
9065
local enums = require('enums') local class = require('class') local UserPresence = require('containers/abstract/UserPresence') local ArrayIterable = require('iterables/ArrayIterable') local Color = require('utils/Color') local Resolver = require('client/Resolver') local GuildChannel = require('containers/abstract...
gpl-3.0
MinetestForFun/minetest-minetestforfun-server
mods/locked_sign/init.lua
9
2304
--[[ Mod by kotolegokot Version 2012.8.13.0 ]] minetest.register_privilege("sign_editor", "Can edit all locked signs") minetest.register_node("locked_sign:sign_wall_locked", { description = "Locked Sign", drawtype = "signlike", tiles = {"locked_sign_sign_wall_lock.png"}, inventory_image = "locked_sign_sign_wall_l...
unlicense
oregamikiller/cocos2dPod
cocos/scripting/lua-bindings/auto/api/ActionFadeFrame.lua
5
1198
-------------------------------- -- @module ActionFadeFrame -- @extend ActionFrame -- @parent_module ccs -------------------------------- -- Gets the fade action opacity.<br> -- return the fade action opacity. -- @function [parent=#ActionFadeFrame] getOpacity -- @param self -- @return int#int ret (return value: int)...
mit
Glastis/OpenComputers-Robots-Toolbox
common/utilities.lua
1
3423
local utilities = {} local function xor_bool(bool) return not bool end utilities.xor_bool = xor_bool local function file_exists(filepath) local f f = io.open(filepath,"r") if f then io.close(f) return true end return false end utilities.file_exists = file_exists local function download_...
mit
cogddo/vlc
share/lua/playlist/france2.lua
113
2115
--[[ $Id$ Copyright © 2008 the VideoLAN team Authors: Antoine Cellerier <dionoea at videolan dot 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, or (at ...
gpl-2.0
ZACTELEGRAM1/ALIREZA
plugins/inrealm.lua
114
25001
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if is_sudo(msg) or is_realm(msg) and is_admin(msg) then local group_creator = msg.from.print_name create_g...
gpl-2.0
zetamatta/nyagos
nyagos.d/catalog/git.lua
1
4968
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end -- hub exists, replace git command local hubpath=nyagos.which("hub.exe") if hubpath then nyagos.alias.git = "hub.exe" end share.git = {} local getcommits = function(args) local fd=io.popen("git log --format=...
bsd-3-clause
AbsintheScripting/ZeroBrane-Studio-Function-Commenter
functioncomment.lua
1
1244
local params = "-- @param " local returns = "-- @return " return { name = "Auto-insertion of function comments", description = [[Type --- to add a function comment with @params and @return]], author = "Migos", version = 0.2, onEditorCharAdded = function(self, editor, event) local keycode = eve...
mit
kusk356/fucktion
plugins/lyrics.lua
695
2113
do local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs' local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5' local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect' local function getInfo(query) print('Getting info of ' .. query) local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY ...
gpl-2.0
simbiose/nheengare
web/restful.lua
1
2088
-- -- -- -- local string = require 'string' local table = require 'table' local path = require 'path' local lower, match, gsub, find, insert = string.lower, string.match, string.gsub, string.find, table.insert string, table = nil, nil -- local function parse_query_string(query_string) local results = {} ...
gpl-3.0
u255436/CppSharp
build/premake5.lua
4
1082
-- This is the starting point of the build scripts for the project. -- It defines the common build settings that all the projects share -- and calls the build scripts of all the sub-projects. config = {} dofile "Helpers.lua" dofile "LLVM.lua" solution "CppSharp" configurations { "Debug", "Release" } platforms {...
mit
oregamikiller/cocos2dPod
cocos/scripting/lua-bindings/auto/api/DelayTime.lua
11
1121
-------------------------------- -- @module DelayTime -- @extend ActionInterval -- @parent_module cc -------------------------------- -- Creates the action.<br> -- param d Duration time, in seconds.<br> -- return An autoreleased DelayTime object. -- @function [parent=#DelayTime] create -- @param self -- @param #floa...
mit
pinkywafer/VarioInst
src/VarioGau.lua
1
2757
--[[ Vario Gauges - Altimeter, Vertical Speed, max + Min Height script by jenny gorton Version 1.2 - 13 July 2015 [url]http://rcsettings.com/index.php/viewdownload/13-lua-scripts/121-vario-telemetry-screen[/url] ]] local Alt, Vspd, MaxAlt, MinAlt local function getTelemetryId(name) field = getFieldInfo(name) i...
gpl-2.0
oregamikiller/cocos2dPod
cocos/scripting/lua-bindings/auto/api/ActionEase.lua
9
1607
-------------------------------- -- @module ActionEase -- @extend ActionInterval -- @parent_module cc -------------------------------- -- brief Initializes the action.<br> -- return Return true when the initialization success, otherwise return false. -- @function [parent=#ActionEase] initWithAction -- @param self --...
mit
Sxcret/FrenchRP
gamemode/modules/hud/cl_hud.lua
1
16027
/*--------------------------------------------------------------------------- HUD ConVars ---------------------------------------------------------------------------*/ local ConVars = {} local HUDWidth local HUDHeight local Color = Color local CurTime = CurTime local cvars = cvars local FrenchRP = FrenchRP local draw ...
mit
lytedev/love2d-bootstrap
conf.lua
1
5495
--[[ File: conf.lua Author: Daniel "lytedev" Flanagan Website: http://dmf.me Sets the default configuration values for the LOVE2D framework Defines the main loop of our LOVE application Contains various helper functions -- TODO: Global helper functions are a silly idea. Should consider putting them -- at least in...
mit
oregamikiller/cocos2dPod
cocos/scripting/lua-bindings/script/framework/transition.lua
57
7512
--[[ Copyright (c) 2011-2014 chukong-inc.com 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, dis...
mit
jak-boy/jak_boy-
data/config.lua
1
1389
do local _ = { about_text = "🚩Welcome to jak_boy V6 For more information Subscribe to the channe: https://telegram.me/joinchat/DGENfT8ZGVKzocjwWemt0g https://github.com/jak-boy/jak_boy-\n\n🚩Dev @martn111\n\n🚩 Dev Bo @h_p_h_bot\n\n 🚩channelhttps://telegram.me/joinchat/DGENfT8ZGVKzocjwWemt0gl", enabled_plugins =...
gpl-3.0
pingidentity/lua-resty-openidc
lib/resty/openidc.lua
1
61112
--[[ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this...
apache-2.0
opentomb/OpenTomb
scripts/entity/entity_functions_common.lua
2
21156
-- OPENTOMB ENTITY FUNCTIONS SCRIPT -- By TeslaRus, Lwmte, 2014-2016 print("entity_functions_common->loaded !"); function save_crystal_init(id) disableEntity(id); end; function getDoorBox(id) box, blockable = getEntityBoxID(id, 0, 0); if(blockable ~= true) then box, blockable = getEntityBoxID(id, ...
lgpl-3.0
luzexi/slua-3rd
build/sproto-master/testrpc.lua
21
2524
local sproto = require "sproto" local print_r = require "print_r" local server_proto = sproto.parse [[ .package { type 0 : integer session 1 : integer } foobar 1 { request { what 0 : string } response { ok 0 : boolean } } foo 2 { response { ok 0 : boolean } } bar 3 {} blackhole 4 { } ]] local client...
mit
opentomb/OpenTomb
scripts/gameflow/TR3_gold.lua
2
2359
-- Gameflow Script for OpenTomb -- Game: Tomb Raider: III Gold -- Version: 1.2 -- By: Lwmte ------------------------------------------------------------------------------------------------------------------------------------------------------ gameflow_params[GAME_3_5] = {}; gameflow_params[GAME_3_5].numlevels = 6; gam...
lgpl-3.0
APItools/middleware
middleware/500-github-issue/500_github_issue.lua
1
1844
local github_access_token = 'GITHUB_ACCESS_TOKEN' local github_repo_full_name = 'GITHUB_REPO_FULL_NAME' -- taken from leafo/lapis -- see https://github.com/leafo/lapis/blob/v1.0.6/lapis/util.lua#L108-L110 local function slugify(str) return (str:gsub("[%s_]+", "-"):gsub("[^%w%-]+", ""):gsub("-+", "-")):lower() end -...
mit
MinetestForFun/minetest-minetestforfun-server
mods/pipeworks/luaentity.lua
8
9678
local max_entity_id = 1000000000000 -- If you need more, there's a problem with your code luaentity = {} luaentity.registered_entities = {} local filename = minetest.get_worldpath().."/luaentities" local function read_file() local f = io.open(filename, "r") if f == nil then return {} end local t = f:read("*al...
unlicense
dev-osrose/osIROSE-new
scripts/mobs/ai/sikuku_elite_fighter.lua
2
1075
registerNpc(540, { walk_speed = 450, run_speed = 950, scale = 130, r_weapon = 1107, l_weapon = 0, level = 178, hp = 43, attack = 815, hit = 532, def = 610, res = 494, avoi...
apache-2.0
h4ck3rk3y/nmap-exp-gyani
drafts/osinfo.lua
1
21720
--- -- A library offering general-purpose canonicalization of -- OS version strings and generation of CPE info. -- The script uses the lookup table and if that fails it -- tries to parse the version string itself. -- Usage -- local status, name, cpe = osinfo.get_os_info(version_string, hints) -- @author Gyanendra Mis...
gpl-2.0
Midiman/Verde
libs/dominatrix/thirdparty/cpml/modules/simplex.lua
2
13865
-- -- Based on code in "Simplex noise demystified", by Stefan Gustavson -- www.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf -- -- Thanks to Mike Pall for some cleanup and improvements (and for LuaJIT!) -- -- Permission is hereby granted, free of charge, to any person obtaining -- a copy of this software and associat...
mit
syj2010syj/w3x2lni
script/gui/new/page/select.lua
3
2314
local lang = require 'share.lang' local ui = require 'gui.new.template' local ev = require 'gui.event' local template = ui.container { style = { FlexGrow = 1, Padding = 4 }, ui.container{ font = { size = 18 }, style = { JustifyContent = 'flex-start' }, ui.button { style = { ...
gpl-3.0
APItools/middleware
middleware/cache-middleware/cache.lua
1
1193
return function (request, next_middleware) -- initialize cache store local threshold = 60 -- 60 seconds local key = 'cache=' .. request.uri_full if request.method == "GET" then local stored = bucket.middleware.get(key) if stored then local expires = stored.headers['X-Expires'] if expires ...
mit
PurgePJ/VouchBot
deps/discordia/containers/snowflakes/channels/GuildVoiceChannel.lua
1
1327
local GuildChannel = require('./GuildChannel') local clamp = math.clamp local GuildVoiceChannel, property = class('GuildVoiceChannel', GuildChannel) GuildVoiceChannel.__description = "Represents a Discord guild voice channel." function GuildVoiceChannel:__init(data, parent) GuildChannel.__init(self, data, parent) ...
gpl-3.0
dev-osrose/osIROSE-new
scripts/npcs/ai/[raknu_warrior]_toanu.lua
2
1065
registerNpc(1229, { walk_speed = 0, run_speed = 0, scale = 100, r_weapon = 0, l_weapon = 0, level = 10, hp = 100, attack = 100, hit = 100, def = 100, res = 100, avoid ...
apache-2.0
oregamikiller/cocos2dPod
cocos/scripting/lua-bindings/auto/api/Application.lua
4
1903
-------------------------------- -- @module Application -- @parent_module cc -------------------------------- -- brief Get target platform -- @function [parent=#Application] getTargetPlatform -- @param self -- @return int#int ret (return value: int) -------------------------------- -- brief Get current lang...
mit
oregamikiller/cocos2dPod
cocos/scripting/lua-bindings/auto/api/SkeletonRenderer.lua
2
5601
-------------------------------- -- @module SkeletonRenderer -- @extend Node,BlendProtocol -- @parent_module sp -------------------------------- -- -- @function [parent=#SkeletonRenderer] setTimeScale -- @param self -- @param #float scale -- @return SkeletonRenderer#SkeletonRenderer self (return value: sp.SkeletonR...
mit
eskibars/domoticz
dzVents/runtime/integration-tests/testContactDoorLockInvertedSwitch.lua
18
1965
package.path = package.path .. ";../?.lua;../device-adapters/?.lua;./data/?.lua;../../../scripts/dzVents/generated_scripts/?.lua;" .. "../../../scripts/lua/?.lua" local TestTools = require('domoticzTestTools')('8080', true) local socket = require("socket") local _ = require 'lodash' local fsScripts = {'scriptCon...
gpl-3.0
oregamikiller/cocos2dPod
cocos/scripting/lua-bindings/auto/api/PhysicsJointRotarySpring.lua
18
2420
-------------------------------- -- @module PhysicsJointRotarySpring -- @extend PhysicsJoint -- @parent_module cc -------------------------------- -- Get the spring soft constant. -- @function [parent=#PhysicsJointRotarySpring] getDamping -- @param self -- @return float#float ret (return value: float) ----...
mit
dani-sj/dashmahan
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
MinetestForFun/minetest-minetestforfun-server
mods/sprint/wsprint.lua
6
5021
--[[ Sprint mod for Minetest by GunshipPenguin To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. ]] local players = {} local staminaHud = {} minetest.regis...
unlicense
oregamikiller/cocos2dPod
cocos/scripting/lua-bindings/auto/api/Timeline.lua
19
2842
-------------------------------- -- @module Timeline -- @extend Ref -- @parent_module ccs -------------------------------- -- -- @function [parent=#Timeline] clone -- @param self -- @return Timeline#Timeline ret (return value: ccs.Timeline) -------------------------------- -- -- @function [parent=#Timelin...
mit
dev-osrose/osIROSE-new
scripts/mobs/ai/elder_pumpkin.lua
2
1062
registerNpc(23, { walk_speed = 230, run_speed = 400, scale = 110, r_weapon = 0, l_weapon = 0, level = 13, hp = 28, attack = 67, hit = 65, def = 39, res = 28, avoid ...
apache-2.0
MinetestForFun/minetest-minetestforfun-server
mods/signs_lib/init.lua
9
32729
-- This mod provides the visible text on signs library used by Home Decor -- and perhaps other mods at some point in the future. Forked from thexyz's/ -- PilzAdam's original text-on-signs mod and rewritten by Vanessa Ezekowitz -- and Diego Martinez -- textpos = { -- { delta = {entity position for 0° yaw}, exact yaw ...
unlicense
dev-osrose/osIROSE-new
scripts/mobs/ai/rubrum.lua
2
1074
registerNpc(380, { walk_speed = 270, run_speed = 1100, scale = 280, r_weapon = 0, l_weapon = 0, level = 94, hp = 199, attack = 531, hit = 270, def = 496, res = 270, avoid ...
apache-2.0