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
ld-test/oil
demo/ludo_icepted/client.lua
3
1344
package.loaded["oil.component"] = require "loop.component.wrapped" package.loaded["oil.port"] = require "loop.component.intercepted" local Viewer = require "loop.debug.Viewer" local oil = require "oil" if select("#", ...) == 0 then io.stderr:write "usage: lua client.lua <...
mit
dicebox/minetest-france
mods/ambience/init.lua
1
9308
--= Ambience lite by TenPlus1 (24th December 2016) local max_frequency_all = 1000 -- larger number means more frequent sounds (100-2000) local SOUNDVOLUME = 1.0 local ambiences -- override default water sounds minetest.override_item("default:water_source", { sounds = {} }) minetest.override_item("default:wa...
gpl-3.0
rickvanbodegraven/nodemcu-firmware
lua_modules/yeelink/yeelink_lib.lua
73
3136
-- *************************************************************************** -- Yeelink Updata Libiary Version 0.1.2 r1 -- -- Written by Martin -- but based on a script of zhouxu_o from bbs.nodemcu.com -- -- MIT license, http://opensource.org/licenses/MIT -- **********************************************************...
mit
FireFor/RPG_Other_Dream
tests/libs/quickie/keyboard.lua
1
2775
--[[ Copyright (c) 2012 Matthias Richter Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribu...
unlicense
mqmaker/witi-openwrt
package/ramips/ui/luci-mtk/src/applications/luci-pbx/luasrc/model/cbi/pbx.lua
146
4360
--[[ Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com> This file is part of luci-pbx. luci-pbx is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or ...
gpl-2.0
jonmaur/draggin-framework
src/draggin/sprite.lua
1
4364
--[[ Copyright (c) 2014 Jon Maur 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, subl...
mit
hleuwer/luayats
examples/ageretm-bigdisplay.lua
1
12576
-- Adopt LUA_PATH, so we find the modules. TK_SIMTIME = 2 TK_NRUN = 10 require "yats.stdlib" require "yats.agere" require "examples/ageretm.netz" require "yats.muxdmx" require "yats.misc" require "yats.src" require "examples/ageretm.macro" require "yats.user" require "yats.graphics" ------------------------------------...
gpl-2.0
tianxiawuzhei/cocos-quick-lua
quick/samples/towerdefense/src/editor/RangeTool.lua
2
3857
local ToolBase = require("editor.ToolBase") local RangeTool = class("RangeTool", ToolBase) function RangeTool:ctor(toolbar, map) RangeTool.super.ctor(self, "RangeTool", toolbar, map) self.currentRange_ = nil self.drag_ = nil self.buttons = { { name = "CreateRange...
mit
mqmaker/witi-openwrt
package/ramips/ui/luci-mtk/src/applications/luci-statistics/luasrc/statistics/datatree.lua
77
4394
--[[ Luci statistics - rrd data tree builder (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.apache.org/licenses/...
gpl-2.0
LuaDist2/lrexlib-tre
test/spencer_sets.lua
9
3288
-- See Copyright Notice in the file LICENSE local luatest = require "luatest" local N = luatest.NT local unpack = unpack or table.unpack local function norm(a) return a==nil and N or a end local function get_gsub (lib) return lib.gsub or function (subj, pattern, repl, n) return lib.new (pattern) : gsub (...
mit
wrxck/mattata
plugins/fact.lua
2
67636
--[[ Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local fact = {} local mattata = require('mattata') function fact:init() fact.commands = mattata.commands(self.info.username):command('fact').table fact.help = '/fact - Retu...
mit
mqmaker/witi-openwrt
package/ramips/ui/luci-mtk/src/applications/luci-radvd/luasrc/model/cbi/radvd/rdnss.lua
74
2324
--[[ LuCI - Lua Configuration Interface Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- lo...
gpl-2.0
bizkut/BudakJahat
Rotations/Hunter/Marksmanship/MarksmanshipCuteOne.lua
1
46526
local rotationName = "CuteOne" --------------- --- Toggles --- --------------- local function createToggles() -- Rotation Button RotationModes = { [1] = { mode = "Auto", value = 1 , overlay = "Automatic Rotation", tip = "Swaps between Single and Multiple based on number of targets in range.", highlight = 1...
gpl-3.0
zq317157782/Narukami
external/tinyobjloader/experimental/premake5.lua
5
2353
newoption { trigger = "with-zlib", description = "Build with zlib." } newoption { trigger = "with-zstd", description = "Build with ZStandard compression." } newoption { trigger = "clang", description = "Use clang compiler." } newoption { trigger = "asan", description = "Enable...
mit
arventwei/WioEngine
Tools/jamplus/src/luaplus/Src/Modules/ospath/tests/ospathtests.lua
1
10493
local ospath = require 'ospath' scriptPath = ((debug.getinfo(1, "S").source:match("@(.+)[\\/]") or '.') .. '\\'):gsub('\\', '/'):lower() function test(a, b) if a ~= b then print('Actual:', a) print('Expected:', b) assert() end end test(ospath.add_extension('', 'ext'), '.ext') test(ospath.add_extension(' ', '...
mit
grimreaper/ValyriaTear
img/sprites/map/enemies/big_slime_idle.lua
2
1061
-- Sprite animation file descriptor -- This file will describe the frames used to load the sprite animations -- This files is following a special format compared to other animation scripts. local ANIM_SOUTH = hoa_map.MapMode.ANIM_SOUTH; local ANIM_NORTH = hoa_map.MapMode.ANIM_NORTH; local ANIM_WEST = hoa_map.MapMode....
gpl-2.0
dschoeffm/MoonGen
rfc2544/benchmarks/latency.lua
9
11321
package.path = package.path .. "rfc2544/?.lua" local standalone = false if master == nil then standalone = true master = "dummy" end local dpdk = require "dpdk" local memory = require "memory" local device = require "device" local ts = require "timestamping" local fil...
mit
TimVonsee/hammerspoon
extensions/battery/init.lua
20
1813
--- === hs.battery === --- --- Battery/power information --- All functions here may return nil, if the information requested is not available. --- --- This module is based primarily on code from the previous incarnation of Mjolnir by [Steven Degutis](https://github.com/sdegutis/). local module = require("hs.battery.i...
mit
magic8421/RevivalProject
main.lua
1
5665
require 'trace' require 'strict' require 'player' require 'local_player' require 'computer_player' require 'player_display' require 'bullet' require 'player_sound' print = trace.print; math.randomseed(os.time()) g_key_state = {run = false, left = false, right = false, down = false, melee = false, fire = false, shie...
gpl-2.0
arventwei/WioEngine
Tools/jamplus/bin/scripts/VCXProjToJamfile.lua
1
2698
local getopt = require 'getopt' local xmlize = require 'xmlize' local ospath = require 'ospath' local options = getopt.makeOptions {} local nonOpts, opts, errors = getopt.getOpt(arg, options) if #errors > 0 or #nonOpts ~= 2 then print(table.concat (errors, "\n") .. "\n" .. getopt.usageInfo ("Usage: jam --vcxproj...
mit
kracwarlock/dp
examples/languagemodel.lua
5
7124
require 'dp' --[[command line arguments]]-- cmd = torch.CmdLine() cmd:text() cmd:text('Train a Language Model on BillionWords dataset using a Neural Network and SoftmaxTree') cmd:text('The network contains 3 or more layers. An input dictionary, one ore many dense hidden layer, and a fully connected output layer') cmd...
bsd-3-clause
bigdogmat/wire
lua/wire/stools/textreceiver.lua
1
3625
WireToolSetup.setCategory( "Input, Output/Keyboard Interaction" ) WireToolSetup.open( "textreceiver", "Text Receiver", "gmod_wire_textreceiver", nil, "Text Receivers" ) if ( CLIENT ) then language.Add( "Tool.wire_textreceiver.name", "Text Receiver Tool (Wire)" ) language.Add( "Tool.wire_textreceiver.desc", "Spawns a...
apache-2.0
tianxiawuzhei/cocos-quick-lua
quick/samples/sprite3d/src/scenes/Sprite3DScene.lua
8
3619
local Sprite3DScene = class("Sprite3DScene", function() return display.newScene("Sprite3DScene") end) local random = math.random function Sprite3DScene:ctor() self.layer = display.newNode() self.layer:setContentSize(cc.size(display.width, display.height)) self:addChild(self.layer) local button =...
mit
bigdogmat/wire
lua/wire/tool_loader.lua
4
22486
if SERVER then AddCSLuaFile() end local function LoadTools() -- load tools for _, filename in pairs(file.Find("wire/stools/*.lua","LUA")) do include("wire/stools/"..filename) AddCSLuaFile("wire/stools/"..filename) end -- close last TOOL if TOOL then WireToolSetup.close() end end -- prevent showing the ghos...
apache-2.0
shayanchabok555/shayankings
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
mqmaker/witi-openwrt
package/ramips/ui/luci-mtk/src/modules/admin-full/luasrc/controller/admin/uci.lua
85
1975
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
gpl-2.0
grimreaper/ValyriaTear
dat/effects/particles/rain.lua
4
2626
-- Rain particle effect -- Author: roos, modifications by Bertram -- Example of use: -- <mode>:GetParticleManager():AddParticleEffect("dat/effects/particles/rain.lua", 512.0, 384.0, false); systems = {} systems[0] = { enabled = true, emitter = { x=-612, y=-384, x2=512, y2...
gpl-2.0
rickvanbodegraven/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
bigdogmat/wire
lua/entities/gmod_wire_hoverball.lua
10
6562
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Hoverball" ENT.RenderGroup = RENDERGROUP_BOTH ENT.WireDebugName = "Hoverball" -- Shared function ENT:IsOn() return self:GetNWBool( "On", false ) end if CLIENT then -- Clientside GetZTarget function ENT:GetZTarget() return self:GetNWF...
apache-2.0
sohrab96/cyrax
plugins/azan.lua
1
3105
do function run_bash(str) local cmd = io.popen(str) local result = cmd:read('*all') return result end local api_key = nil local base_api = "https://maps.googleapis.com/maps/api" function get_latlong(area) local api = base_api .. "/geocode/json?" local parameters = "address=".. (URL.escape(area) or ...
gpl-2.0
jbking/python-stdnet
stdnet/backends/redisb/lua/tabletools.lua
2
2420
local tabletools = {} -- Initialize an array of size *size* fill with *value* tabletools.init = function (size, value) local vector = {} for i = 1, size do vector[i] = value end return vector end -- Check if two arrays are equals tabletools.equal = function (v1, v2) if # v1 ==...
bsd-3-clause
ChristopherBiscardi/kong
database/migrations/cassandra/2015-04-24-154530_plugins.lua
14
1076
local Migration = { name = "2015-04-24-154530_plugins", up = function(options) return [[ CREATE TABLE IF NOT EXISTS basicauth_credentials( id uuid, consumer_id uuid, username text, password text, created_at timestamp, PRIMARY KEY (id) ); CREATE...
mit
ArchiveTeam/cobook-grab
table_show.lua
58
3226
--[[ Author: Julio Manuel Fernandez-Diaz Date: January 12, 2007 (For Lua 5.1) Modified slightly by RiciLake to avoid the unnecessary table traversal in tablecount() Formats tables with cycles recursively to any depth. The output is returned as a string. References to other tables are shown as values....
unlicense
feiltom/domoticz
scripts/lua/script_time_compteur.lua
1
1770
local inc = 0 function string:split( inSplitPattern, outResults ) if not outResults then outResults = { } end local theStart = 1 local theSplitStart, theSplitEnd = string.find( self, inSplitPattern, theStart ) while theSplitStart do table.insert( outResults, string.sub( self, theStart, theSplitStart-...
gpl-3.0
dufferzafar/Project-Euler-Solutions
Problems 1-50/23.lua
1
1705
--[[ Problem No. 23 Find the sum of all the positive integers which cannot be written as the sum of two abundant numbers. Tuesday, January 17, 2012 ]]-- --Global Declarations sub = string.sub find = string.find --Sub Routines function pFactors(n) local pFac = {}; local p = 0; --Remove any factor...
unlicense
ld-test/oil
lua/oil/corba/services/naming.lua
6
13499
-------------------------------------------------------------------------------- ------------------------------ ##### ## ------------------------------ ------------------------------ ## ## # ## ------------------------------ ------------------------------ ## ## ## ## ---------------------------...
mit
abbasgh12345/abbas
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
saeqe/botele
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
rickvanbodegraven/nodemcu-firmware
tools/cross-lua.lua
19
1145
local args = { ... } local b = require "tools.build" local builder = b.new_builder( ".build/cross-lua" ) local utils = b.utils local sf = string.format builder:init( args ) builder:set_build_mode( builder.BUILD_DIR_LINEARIZED ) local output = 'luac.cross' local cdefs = '-DLUA_CROSS_COMPILER -O2' -- Lua source files ...
mit
dicebox/minetest-france
mods/real_torch/init.lua
1
3291
-- Realistic Torch mod by TenPlus1 -- check which torch(es) are available in minetest version if minetest.registered_nodes["default:torch_ceiling"] then dofile(minetest.get_modpath("real_torch") .. "/3d.lua") else dofile(minetest.get_modpath("real_torch") .. "/2d.lua") end -- start timer on any already placed t...
gpl-3.0
FrisKAY/MineOS_Server
lib/deflatelua.lua
1
16203
--[[ LUA MODULE deflatelua - inflate (and gunzip/zlib) implemented in Lua. DESCRIPTION This is a pure Lua implementation of decompressing the DEFLATE format, including the related zlib and gzip formats. Note: This library only supports decompression. Compression is not currently implemented. REFERENCES ...
gpl-3.0
tianxiawuzhei/cocos-quick-lua
quick/framework/cc/mvc/AppBase.lua
19
1929
local AppBase = class("AppBase") AppBase.APP_ENTER_BACKGROUND_EVENT = "APP_ENTER_BACKGROUND_EVENT" AppBase.APP_ENTER_FOREGROUND_EVENT = "APP_ENTER_FOREGROUND_EVENT" function AppBase:ctor(appName, packageRoot) cc(self):addComponent("components.behavior.EventProtocol"):exportMethods() self.name = appName ...
mit
NSAKEY/prosody-modules
mod_motd_sequential/mod_motd_sequential.lua
32
1482
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- Copyright (C) 2010 Jeff Mitchell -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local host = module:get_host(); local motd_jid = module:get_option("mo...
mit
interfaceware/iguana-web-apps
shared/athena/athena_source.lua
1
873727
local AthenaSource = [[{ "auth" : { "oauth" : { "access_token_location" : "header", "access_token_uri" : "/oauthpreview/token", "auth_flows" : [ "client_cred" ], "authorize_uri" : "/oauthpreview/token", "base_uri" : "https://api.athenahealth.com...
mit
shangwuhencc/shogun
examples/undocumented/lua_modular/serialization_complex_example.lua
21
2932
require 'os' require 'modshogun' require 'load' parameter_list={{5,1,10, 2.0, 10}, {10,0.3,2, 1.0, 0.1}} function check_status(status) assert(status == true) -- if status: -- print "OK reading/writing .h5\n" --else: -- print "ERROR reading/writing .h5\n" end function concatenate(...) local result = ... for...
gpl-3.0
arventwei/WioEngine
Tools/jamplus/src/luaplus/Src/Modules/lanes/tests/argtable.lua
11
1042
-- -- ARGTABLE.LUA Copyright (c) 2007, Asko Kauppi <akauppi@gmail.com> -- -- Command line parameter parsing -- -- NOTE: Wouldn't hurt having such a service built-in to Lua...? :P -- local m= {} -- tbl= argtable(...) -- -- Returns a table with 1..N indices being 'value' parameters, and any -- "-flag[=xxx]" ...
mit
NightKawata/PlayBoy
playboy/class.lua
3
6058
local middleclass = { _VERSION = 'middleclass v3.0.0', _DESCRIPTION = 'Object Orientation for Lua', _LICENSE = [[ MIT LICENSE Copyright (c) 2011 Enrique García Cota Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation ...
mit
evolutional/flatbuffers
lua/flatbuffers/view.lua
5
2930
local compat = require("flatbuffers.compat") local string_unpack = compat.string_unpack local m = {} local mt = {} local mt_name = "flatbuffers.view.mt" local N = require("flatbuffers.numTypes") local binaryarray = require("flatbuffers.binaryarray") local function enforceOffset(off) if off < 0 or off > 4294967...
apache-2.0
fengshao0907/Atlas-1
examples/tutorial-union.lua
40
1614
--[[ $%BEGINLICENSE%$ Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is dis...
gpl-2.0
collinmsn/thrift
test/lua/test_basic_server.lua
30
3451
-- 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 n...
apache-2.0
bizkut/BudakJahat
Libs/LibSpellRange-1.0/libs/LibStub/tests/test.lua
86
2013
debugstack = debug.traceback strmatch = string.match loadfile("../LibStub.lua")() local lib, oldMinor = LibStub:NewLibrary("Pants", 1) -- make a new thingy assert(lib) -- should return the library table assert(not oldMinor) -- should not return the old minor, since it didn't exist -- the following is to create data ...
gpl-3.0
robert00s/koreader
frontend/ui/widget/logindialog.lua
4
3163
local FrameContainer = require("ui/widget/container/framecontainer") local CenterContainer = require("ui/widget/container/centercontainer") local VerticalGroup = require("ui/widget/verticalgroup") local InputDialog = require("ui/widget/inputdialog") local InputText = require("ui/widget/inputtext") local UIManager = req...
agpl-3.0
philanc/plc
plc/gimli.lua
1
6368
-- Copyright (c) 2018 Phil Leblanc -- see LICENSE file ------------------------------------------------------------------------ --[[ !!! WORK IN PROGRESS !!! !!! Only the permutation is exposed at the moment !!! The Gimli permutation by Dan Bernstein et al. (2017) - see G...
mit
Weol/WUMA
lua/wuma/client/vgui/vgui_loadouts.lua
1
20926
local PANEL = {} PANEL.TabName = "Loadouts" PANEL.TabIcon = "icon16/bomb.png" function PANEL:Init() self.Command = {} self.Command.Add = "addloadout" self.Command.Delete = "removeloadout" self.Command.Edit = "addloadout" self.Command.Primary = "setprimaryweapon" self.Command.Clear = "clearloadout" ...
apache-2.0
ufo2000/ufo2000
init-scripts/standard-gui.lua
2
10219
-------------------------------------------------------------------------------------- -- -- STANDARD-GUI.LUA -- -- WARNING, SOME PROPERTIES AND PANELS ARE NOT SUPPORTED YET. -------------------------------------------------------------------------------------- -- DESCRIPTION ------------------------------------...
gpl-2.0
rasata/cardpeek
dot_cardpeek_dir/scripts/calypso/c250n502.lua
17
4335
-- -- This file is part of Cardpeek, the smartcard reader utility. -- -- Copyright 2009 by 'L1L1' and 2013-2014 by 'kalon33' -- -- Cardpeek is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of...
gpl-3.0
bigdogmat/wire
lua/wire/stools/keyboard.lua
1
3053
WireToolSetup.setCategory( "Input, Output/Keyboard Interaction", "Vehicle Control" ) WireToolSetup.open( "keyboard", "Keyboard", "gmod_wire_keyboard", nil, "Keyboards" ) if ( CLIENT ) then language.Add( "Tool.wire_keyboard.name", "Wired Keyboard Tool (Wire)" ) language.Add( "Tool.wire_keyboard.desc", "Spawns a keybo...
apache-2.0
abasshacker/abab
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
magic8421/RevivalProject
player.lua
1
7672
function new_player(_type, key_state, sound_obj) local player = {} local m_type = _type; local m_sound_obj = sound_obj; local m_x, m_y = math.random(g_map_w), math.random(g_map_h); local m_radius = 30; local m_angle = math.random(0, 2 * math.pi); local m_rotate_acc = 2.5 * math.pi; local m_rotate_speed = 0; l...
gpl-2.0
xuminic/ezthumb
external/iup/srclua5/generator.lua
4
6760
function dofile(f) pcall(loadfile(f)) end -- compatibility functions (with iuplua.lua) iup = {} function iup.SetClass(ctrl, name) element = ctrl end -- dummy functions iupDoNothing = function() end iupSetMethod = iupDoNothing iup.RegisterWidget = iupDoNothing -- TODO: This is different from iupClassRegisterCall...
gpl-3.0
ShieldTeams/oldsdp
plugins/inrealm.lua
1
36334
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and only (because sudo are always has privilege) if is_sudo(msg) or is_realm(msg) then local group_creator = msg.from.print_name create_group_chat (group_creator, group_name, ok_cb, false) return...
agpl-3.0
tianxiawuzhei/cocos-quick-lua
libs/libzq/draw/shader.lua
1
1749
kShaderTypeDefault = "ShaderPositionTextureColor_noMVP" kShaderTypeGrayscale = "ShaderTypeGrayscale" kShaderTypeMaskSprite = "ShaderTypeMaskSprite" local Shader = class("Shader") function Shader:ctor(...) self._cache = {} end function Shader:getShader(shaderType) local vertSource = kSha...
mit
ChristopherBiscardi/kong
spec/integration/proxy/api_resolver_spec.lua
3
9101
local ssl = require "ssl" local url = require "socket.url" local cjson = require "cjson" local utils = require "kong.tools.utils" local socket = require "socket" local constants = require "kong.constants" local spec_helper = require "spec.spec_helpers" local http_client = require "kong.tools.http_client" local STUB_GE...
mit
FrisKAY/MineOS_Server
lib/doubleBuffering.lua
1
22551
-- Адаптивная загрузка необходимых библиотек и компонентов local libraries = { ["component"] = "component", ["unicode"] = "unicode", ["image"] = "image", ["colorlib"] = "colorlib", } local components = { ["gpu"] = "gpu", } for library in pairs(libraries) do if not _G[library] then _G[library] = require(librarie...
gpl-3.0
AntiSpammer1313/mranti3
bot/utils.lua
356
14963
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
MonkeyFirst/DisabledBoneSlerpWithShadowedAnimation
bin/Data/LuaScripts/17_SceneReplication.lua
3
16445
-- 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 obje...
mit
MeGaReborn/megareborn
plugins/plugins.lua
2
7174
do -- #Begin plugins.lua by -- 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...
gpl-3.0
corumcorp/redsentir
redsentir/static/juego/frameworks/cocos2d-x/plugin/luabindings/auto/api/AgentManager.lua
146
1798
-------------------------------- -- @module AgentManager -- @parent_module plugin -------------------------------- -- -- @function [parent=#AgentManager] getSocialPlugin -- @param self -- @return plugin::ProtocolSocial#plugin::ProtocolSocial ret (return value: cc.plugin::ProtocolSocial) -------------------...
gpl-3.0
iceman1001/proxmark3
client/scripts/emul2html.lua
27
1676
-- The getopt-functionality is loaded from pm3/getopt.lua -- Have a look there for further details getopt = require('getopt') bin = require('bin') dumplib = require('html_dumplib') example = "script run emul2html -o dumpdata.eml " author = "Martin Holst Swende" usage = "script run htmldump [-i <file>] [-o <file>]" des...
gpl-2.0
NSAKEY/prosody-modules
mod_broadcast/mod_broadcast.lua
32
1043
local is_admin = require "core.usermanager".is_admin; local allowed_senders = module:get_option_set("broadcast_senders", {}); local from_address = module:get_option_string("broadcast_from"); local jid_bare = require "util.jid".bare; function send_to_online(message) local c = 0; for hostname, host_session in pairs(h...
mit
135yshr/Holocraft-server
world/Plugins/NetworkTest/Info.lua
29
4010
-- Info.lua -- Implements the g_PluginInfo standard plugin description g_PluginInfo = { Name = "NetworkTest", Version = "1", Date = "2015-01-28", Description = [[Implements test code (and examples) for the cNetwork API]], Commands = { }, ConsoleCommands = { net = { Subcommands = { client =...
mit
mqmaker/witi-openwrt
package/ramips/ui/luci-mtk/src/modules/base/luasrc/http/protocol/date.lua
88
2760
--[[ HTTP protocol implementation for LuCI - date 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
cshore/luci
applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdiface6.lua
68
5949
-- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local util = require "luci.util" local ip = require "luci.ip" function write_float(self, section, value) local n = tonumber(value) if n ~= nil then return Value.write(self, section, "%.1f" % n) ...
apache-2.0
grimreaper/ValyriaTear
img/sprites/map/scening/squirrel_idle.lua
2
3187
-- Sprite animation file descriptor -- This file will describe the frames used to load the sprite animations -- This files is following a special format compared to other animation scripts. local ANIM_SOUTH = hoa_map.MapMode.ANIM_SOUTH; local ANIM_NORTH = hoa_map.MapMode.ANIM_NORTH; local ANIM_WEST = hoa_map.MapMode....
gpl-2.0
NSAKEY/prosody-modules
mod_pubsub_twitter/mod_pubsub_twitter.lua
32
4206
-- Publishes Twitter search results over pubsub -- -- Config: -- Component "pubsub.example.com" "pubsub" -- modules_enabled = { -- "pubsub_twitter"; -- } -- twitter_searches = { -- node -> query -- prosody = "prosody xmpp"; -- } -- twitter_pull_interval = 20 -- minutes -- local pubsub = module:depends"pubsub"; lo...
mit
Relintai/Relintais-Enemy-Kooldown-Tracker-WotLK
data/drs.lua
1
12886
--"Globals" local aceDB = LibStub("AceDB-3.0"); local aceCDialog = LibStub("AceConfigDialog-3.0"); local aceConfig = LibStub("AceConfig-3.0"); local libSharedMedia = LibStub("LibSharedMedia-3.0"); local libDRData = LibStub('DRData-1.0'); --DR db functions function Rekt:DRDebuffGained(spellID, dstGUID, isPlayer) loca...
mit
arventwei/WioEngine
Tools/jamplus/src/luaplus/Src/Modules/xavante/src/codeweb/cookies.lua
2
2887
----------------------------------------------------------------------------- -- Xavante Cookies module -- -- Author: Javier Guerra -- inspired by CGILua cookies -- Copyright (c) 2005 Kepler Project ----------------------------------------------------------------------------- local url = require "socket.url" local xa...
mit
tianxiawuzhei/cocos-quick-lua
base/ZYStorage.lua
1
1097
ZYStorage = class("ZYStorage") function ZYStorage:ctor() end function ZYStorage:set(key, val, unique) unique = unique or false if val == nil then return end if unique then key = self:key(key) end cc.UserDefault:getInstance():setStringForKey(key, table.serialize(val)) cc...
mit
tianxiawuzhei/cocos-quick-lua
quick/framework/cc/uiloader/UILoaderUtilitys.lua
9
2292
local UILoaderUtilitys = {} function UILoaderUtilitys.loadTexture(plist, png) if UILoaderUtilitys.isNil(plist) then return end local fileUtil fileUtil = cc.FileUtils:getInstance() local fullPath = fileUtil:fullPathForFilename(plist) local fullPng = fileUtil:fullPathForFilename(png) -- UILoaderUtilitys.addSe...
mit
tianxiawuzhei/cocos-quick-lua
quick/samples/armature/src/layers/TestUseMutiplePicture.lua
8
1530
-- -- Author: SunLightJuly -- Date: 2014-07-29 16:56:47 -- local ArmatureTestLayer = require("layers.ArmatureTestLayer") local TestUseMutiplePicture = class("TestUseMutiplePicture", ArmatureTestLayer) function TestUseMutiplePicture:ctor(index) TestUseMutiplePicture.super.ctor(self) self:creatTitleAndSubTitle(index) ...
mit
Ashkan7150/hydra_api
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
TheOnePharaoh/YGOPro-Custom-Cards
script/c86221220.lua
2
3544
--Vocaloid Hatsune Miku/Assault Mode function c86221220.initial_effect(c) c:EnableReviveLimit() --Cannot special summon local e1=Effect.CreateEffect(c) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_SPSUMMON_CONDITION) e1:SetValue(aux.FALSE) c:...
gpl-3.0
waytim/darkstar
scripts/zones/Windurst_Waters/npcs/Tosuka-Porika.lua
13
6103
----------------------------------- -- Area: Windurst Waters -- NPC: Tosuka-Porika -- Starts Quests: Early Bird Catches the Bookworm, Chasing Tales -- Involved in Quests: Hat in Hand, Past Reflections, Blessed Radiance -- Involved in Missions: Windurst 2-1, Windurst 7-1, Windurst 8-2, CoP 3-3 -- @pos -26 -...
gpl-3.0
waytim/darkstar
scripts/zones/AlTaieu/npcs/_0x1.lua
15
1948
----------------------------------- -- Area: Al'Taieu -- NPC: Rubious Crystal (South Tower) -- @pos 0 -6.250 -736.912 33 ----------------------------------- package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil; ----------------------------------- require("scripts/zones/AlTaieu/TextIDs"); require("scripts/zones/Al...
gpl-3.0
wanmaple/MWFrameworkForCocosLua
frameworks/runtime-src/Framework/lua/auto/api/MWNetProtocol.lua
1
1403
-------------------------------- -- @module MWNetProtocol -- @extend MWObject,IUninheritable<mwframework::MWNetProtocol> -- @parent_module mw -------------------------------- -- -- @function [parent=#MWNetProtocol] getRelatedHandler -- @param self -- @return MWNetHandler#MWNetHandler ret (return value: mw.MWNetHand...
apache-2.0
MinFu/luci
applications/luci-app-upnp/luasrc/model/cbi/upnp/upnp.lua
56
3828
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. m = Map("upnpd", luci.util.pcdata(translate("Universal Plug & Play")), translate("UPnP allows clients in the local network to automatically configure the...
apache-2.0
waytim/darkstar
scripts/globals/items/heat_rod.lua
41
1097
----------------------------------------- -- ID: 17071 -- Item: Heat Rod -- Additional Effect: Lightning Damage ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onAdditionalEffect Action ------------------------------...
gpl-3.0
TheOnePharaoh/YGOPro-Custom-Cards
script/c512000018.lua
2
7757
--No.80 狂装覇王ラプソディ・イン・バーサーク function c512000018.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,nil,4,2) c:EnableReviveLimit() --equip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(876330,0)) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TA...
gpl-3.0
saucisson/dd-words
src/genes/expand.lua
1
1303
#! /usr/bin/env luajit if #arg < 2 then print (arg [0] .. "<threshold> <input-file> <output-file>") end local threshold = tonumber (arg [1]) local input = arg [2] local output = arg [3] local size = 0 for line in io.lines (input) do local first = line:sub (1, 1) if first == ">" then size = size + 1 ...
mit
ffxinfinity/ffxinfinity
FFXI Server-Development/Build Files/scripts/zones/Windurst_Woods/npcs/Wije_Tiren.lua
2
1300
----------------------------------- -- Area: Windurst Woods -- NPC: Wije Tiren -- Standard Merchant NPC -- Working 100% ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; require("scripts/zones/Windurst_Woods/TextIDs"); -----------------...
gpl-3.0
waytim/darkstar
scripts/zones/Metalworks/npcs/_6ld.lua
13
1314
----------------------------------- -- Area: Metalworks -- Door: _6ld (President's Office) -- @pos 92 -19 0.1 237 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zones/Metalworks/Text...
gpl-3.0
TheOnePharaoh/YGOPro-Custom-Cards
script/c83581511.lua
1
4161
--Beast of Wild - Stomping Tree function c83581511.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(83581511,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetRange(LOCATION_HAND) e1:...
gpl-3.0
waytim/darkstar
scripts/zones/Lower_Jeuno/npcs/Caruvinda.lua
14
4407
----------------------------------- -- Area: Lower Jeuno -- NPC: Caruvinda -- Armor Storage NPC ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; package.loaded["scripts/globals/armorstorage"] = nil; ----------------------------------- require("scripts/globals/settings"); r...
gpl-3.0
TheOnePharaoh/YGOPro-Custom-Cards
script/c52414158.lua
2
1330
--Vocaloid Kasane Teto function c52414158.initial_effect(c) --pendulum summon aux.EnablePendulumAttribute(c) --atk local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD) e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetRange(LOCATION_PZONE) e2:SetTargetRange(LOCATION_MZONE,0) e2:SetTarget(c52414158.efilter) e2:S...
gpl-3.0
waytim/darkstar
scripts/zones/The_Boyahda_Tree/Zone.lua
13
1901
----------------------------------- -- -- Zone: The_Boyahda_Tree (153) -- ----------------------------------- package.loaded["scripts/zones/The_Boyahda_Tree/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/zone"); require("scripts/zones/The_Boyahda_Tree...
gpl-3.0
ffxinfinity/ffxinfinity
FFXI Server-Development/Build Files/scripts/zones/Phomiuna_Aqueducts/Zone.lua
2
1402
----------------------------------- -- -- Zone: Phomiuna_Aqueducts (27) -- ----------------------------------- package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil; require("scripts/globals/status"); require("scripts/globals/settings"); require("scripts/zones/Phomiuna_Aqueducts/TextIDs"); ----------------...
gpl-3.0
X-Raym/REAPER-ReaScripts
Envelopes/On Tracks/X-Raym_Select redundant envelope points.lua
1
5235
--[[ * ReaScript Name: Select redundant envelope points * About: A way to select points with similar value, in order to delete them or to randomize them for example. * Instructions: Select tracks with visible and armed envelopes. Execute the script. Note that if there is an envelope selected, it will work only for i...
gpl-3.0
waytim/darkstar
scripts/zones/Dynamis-Jeuno/npcs/qm1.lua
13
1216
----------------------------------- -- Area: Dynamis Jeuno -- NPC: ??? (Spawn when mega is defeated) ----------------------------------- package.loaded["scripts/zones/Dynamis-Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/Dynamis-Jeuno/TextIDs");...
gpl-3.0
hilllinux/ABTestingGateway
admin/policy/get.lua
22
3106
local policyModule = require('abtesting.adapter.policy') local redisModule = require('abtesting.utils.redis') local systemConf = require('abtesting.utils.init') local handler = require('abtesting.error.handler').handler local utils = require('abtesting.utils.utils') local ERRORINFO = require('ab...
mit
waytim/darkstar
scripts/zones/Valkurm_Dunes/mobs/Valkurm_Emperor.lua
4
1124
---------------------------------- -- Area: Valkurm Dunes -- NM: Valkurm Emperor ----------------------------------- ----------------------------------- -- onMobDeath ----------------------------------- function onMobDeath(mob, player, isKiller) -- Set VE's Window Open Time SetServerVariable("[POP]Valkurm_...
gpl-3.0