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
codergreen/ValyriaTear
dat/objects/items.lua
1
14017
------------------------------------------------------------------------------[[ -- Filename: items.lua -- -- Description: This file contains the definitions of all items. -- Each item has a unique integer identifier that is used -- as its key in the items table below. Item IDs are unique not only among -- each other, ...
gpl-2.0
NerdWalletOSS/Q
ML/DT/test/test_convert_sklearn_to_q_dt.lua
1
1861
local convert_sklearn_to_q = require 'Q/ML/DT/lua/convert_sklearn_to_q_dt'['convert_sklearn_to_q'] local print_dt = require 'Q/ML/DT/lua/dt'['print_dt'] local plpath = require 'pl.path' local path_to_here = os.getenv("Q_SRC_ROOT") .. "/ML/DT/test/" assert(plpath.isdir(path_to_here)) local preprocess_dt = require 'Q/ML/...
mit
mentor81/kgbot
plugins/invite.lua
299
1025
-- Invite other user to the chat group. -- Use !invite name User_name or !invite id id_number -- The User_name is the print_name (there are no spaces but _) do local function callback(extra, success, result) vardump(success) vardump(result) end local function run(msg, matches) local user = matches[2] -- Use...
gpl-2.0
padrinoo/padrino85
plugins/invite.lua
299
1025
-- Invite other user to the chat group. -- Use !invite name User_name or !invite id id_number -- The User_name is the print_name (there are no spaces but _) do local function callback(extra, success, result) vardump(success) vardump(result) end local function run(msg, matches) local user = matches[2] -- Use...
gpl-2.0
codergreen/ValyriaTear
dat/maps/layna_forest/layna_forest_cave1_2_script.lua
1
24863
-- Set the namespace according to the map name. local ns = {}; setmetatable(ns, {__index = _G}); layna_forest_cave1_2_script = ns; setfenv(1, ns); -- The map name, subname and location image map_name = "Layna Forest Cave" map_image_filename = "img/menus/locations/desert_cave.png" map_subname = "" -- The music file us...
gpl-2.0
TeslaCloud/TTTRewrite
terrortown/entities/weapons/weapon_zm_improvised.lua
1
7917
AddCSLuaFile() SWEP.HoldType = "melee" if CLIENT then SWEP.PrintName = "crowbar_name" SWEP.Slot = 0 SWEP.Icon = "vgui/ttt/icon_cbar" SWEP.ViewModelFOV = 54 end SWEP.UseHands = true SWEP.Base = "weapon_tttbase" SWEP.ViewModel = "models/weapons/c_crowbar.mdl" SWEP.WorldModel = "models...
mit
tboox/xmake
xmake/actions/require/impl/package.lua
1
26680
--!A cross-platform build utility based on Lua -- -- 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 Apach...
apache-2.0
codergreen/ValyriaTear
dat/maps/layna_village/layna_village_south_entrance_left_house_map.lua
4
26512
map_data = {} -- The number of rows, and columns that compose the map map_data.num_tile_cols = 32 map_data.num_tile_rows = 24 -- The tilesets definition files used. map_data.tileset_filenames = {} map_data.tileset_filenames[1] = "dat/tilesets/building_interior_objects_01.lua" map_data.tileset_filenames[2] = "dat/tile...
gpl-2.0
TeslaCloud/TTTRewrite
terrortown/gamemode/libs/cl_msgstack.lua
2
5788
---- HUD stuff similar to weapon/ammo pickups but for game status messages -- This is some of the oldest TTT code, and some of the first Lua code I ever -- wrote. It's not the greatest. MSTACK = {} MSTACK.msgs = {} MSTACK.last = 0 -- Localise some libs local table = table local surface = surface local draw = draw l...
mit
Oliveryo/Interface
AddOns/!Questie/astrolabe/Astrolabe.lua
1
27552
--[[ Name: Astrolabe Revision: $Rev: 17 $ $Date: 2006-11-26 09:36:31 +0100 (So, 26 Nov 2006) $ Author(s): Esamynn (jcarrothers@gmail.com) Inspired By: Gatherer by Norganna MapLibrary by Kristofer Karlsson (krka@kth.se) Website: http://esamynn.wowinterface.com/ Documentation: SVN: Description: This is a li...
gpl-3.0
tboox/xmake
xmake/templates/c/static_library_tbox/project/xmake.lua
4
1478
-- version set_xmakever("2.2.2") -- set warning all as error set_warnings("all", "error") -- set language: c99, c++11 set_languages("c99", "cxx11") -- disable some compiler errors add_cxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing") add_mxflags("-Wno-error=deprecated-declarations", "-fno-strict-...
apache-2.0
tboox/xmake
xmake/templates/c/shared_library_tbox/project/xmake.lua
4
1478
-- version set_xmakever("2.2.2") -- set warning all as error set_warnings("all", "error") -- set language: c99, c++11 set_languages("c99", "cxx11") -- disable some compiler errors add_cxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing") add_mxflags("-Wno-error=deprecated-declarations", "-fno-strict-...
apache-2.0
Oliveryo/Interface
AddOns/LunaUnitFrames/libs/AceEvent-2.0/AceEvent-2.0.lua
3
28825
--[[ Name: AceEvent-2.0 Revision: $Rev: 17638 $ Developed by: The Ace Development Team (http://www.wowace.com/index.php/The_Ace_Development_Team) Inspired By: Ace 1.x by Turan (turan@gryphon.com) Website: http://www.wowace.com/ Documentation: http://www.wowace.com/index.php/AceEvent-2.0 SVN: http://svn.wowace.com/root/...
gpl-3.0
ramin65/cia
bot/nod32bot.lua
1
11183
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 = '2' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then return...
gpl-2.0
clearswift/trafficserver
plugins/experimental/ts_lua/ci/script_test.lua
17
1521
-- 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"); y...
apache-2.0
fredericjoanis/Argorha-Pathfinding
extern/lua/base/path.lua
12
6848
-- -- path.lua -- Path manipulation functions. -- Copyright (c) 2002-2010 Jason Perkins and the Premake project -- -- -- Get the absolute file path from a relative path. The requested -- file path doesn't actually need to exist. -- function path.getabsolute(p) -- normalize the target path p = path.translate(p,...
mit
gaohuang/MSDNet
datasets/cifar10.lua
1
1593
-- -- Copyright (c) 2016, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. -- -- CIFA...
mit
zhityer/zhityer7
plugins/quotes.lua
651
1630
local quotes_file = './data/quotes.lua' local quotes_table function read_quotes_file() local f = io.open(quotes_file, "r+") if f == nil then print ('Created a new quotes file on '..quotes_file) serialize_to_file({}, quotes_file) else print ('Quotes loaded: '..quotes_file) f...
gpl-2.0
padrinoo/padrino85
plugins/quotes.lua
651
1630
local quotes_file = './data/quotes.lua' local quotes_table function read_quotes_file() local f = io.open(quotes_file, "r+") if f == nil then print ('Created a new quotes file on '..quotes_file) serialize_to_file({}, quotes_file) else print ('Quotes loaded: '..quotes_file) f...
gpl-2.0
NerdWalletOSS/Q
OPERATORS/GET/lua/get_val_by_idx_specialize.lua
1
1078
return function ( in1_qtype, in2_qtype, optargs ) local to_scalar = require 'Q/UTILS/lua/to_scalar' local qconsts = require 'Q/UTILS/lua/q_consts' local Scalar = require 'libsclr' local out_qtype = in2_qtype local sclr_null_val if ( optargs ) then assert(type(optargs) == "table") local ...
mit
tboox/xmake
xmake/modules/detect/sdks/find_wdk.lua
1
6006
--!A cross-platform build utility based on Lua -- -- 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 Apach...
apache-2.0
Oliveryo/Interface
AddOns/!Questie/Libs/Babble-Boss-2.2/Babble-Boss-2.2.lua
2
64699
--[[ Name: Babble-Boss-2.2 Revision: $Rev: 15606 $ Author(s): ckknight (ckknight@gmail.com) Website: http://ckknight.wowinterface.com/ Documentation: http://wiki.wowace.com/index.php/Babble-Boss-2.2 SVN: http://svn.wowace.com/root/trunk/Babble-2.2/Babble-Boss-2.2 Description: A library to provide localizations for bos...
gpl-3.0
FlightControl-Master/MOOSE
Moose Development/Moose/Core/Astar.lua
1
29744
--- **Core** - A* Pathfinding. -- -- **Main Features:** -- -- * Find path from A to B. -- * Pre-defined as well as custom valid neighbour functions. -- * Pre-defined as well as custom cost functions. -- * Easy rectangular grid setup. -- -- === -- -- ### Author: **funkyfranky** -- -- === -- @module Core.Ast...
gpl-3.0
moteus/lzmq-dist
lzmq/examples/perf2/thr/remote_thr.lua
1
1927
local ZMQ_NAME = "lzmq" local argc = select("#", ...) local argv = {...} if (argc < 3) or (argc > 4)then print("usage: remote_thr <connect-to> <message-size> <message-count> [ffi]"); return 1 end local connect_to = argv [1] local message_size = assert(tonumber(argv [2])) local message_count = assert(tonumber...
mit
NerdWalletOSS/Q
OPERATORS/DEPRECATED/DATA_LOAD/test/test_dictionary.lua
1
5292
local lu = require('luaunit') local Dictionary = require "Q/OPERATORS/DATA_LOAD/lua/dictionary_dataload" test_dictionary = {} function test_dictionary:setUp() -- all created dictionaries are stored inside this global variables, end function test_dictionary:tearDown() end function test_dictionary:test_create() ...
mit
aluzzardi/redis
deps/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
bsd-3-clause
tboox/xmake
tests/ui/desktop.lua
1
2530
--!A cross-platform build utility based on Lua -- -- 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 Apach...
apache-2.0
slayerrensky/luci
modules/luci-base/luasrc/model/cbi/admin_network/proto_static.lua
60
2460
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local ifc = net:get_interface() local ipaddr, netmask, gateway, broadcast, dns, accept_ra, send_rs, ip6addr, ip6gw local mtu, metric ipaddr = section:taboption("general", Value, ...
apache-2.0
Flexibity/luci
applications/luci-olsr/luasrc/model/cbi/olsr/olsrdiface.lua
30
5877
--[[ 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$ ]]-- f...
apache-2.0
jaythomas/love-experiment
src/entities/lite.lua
1
1190
return { acceleration = 140, body = {}, damage = 100, defense = 1, fixture = { category = 1, density = 10, friction = 0, mask = 65535 - 1 - 2 }, health = 100, input_actions = { down = { key_press = 'move-down-begin', key_release = 'move-down-finish' }, left = { ...
lgpl-3.0
mohammadclashclash/info1
plugins/stats.lua
16
4002
do -- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_prin...
gpl-2.0
FlightControl-Master/MOOSE
Moose Development/Moose/AI/AI_Escort_Dispatcher.lua
1
6725
--- **AI** - Models the automatic assignment of AI escorts to player flights. -- -- ## Features: -- -- -- * Provides the facilities to trigger escorts when players join flight slots. -- * -- -- === -- -- ### Author: **FlightControl** -- -- === -- -- @module AI.AI_Escort_Dispatcher -- @image MOOSE.JP...
gpl-3.0
xkfz007/vlc
share/lua/playlist/mpora.lua
11
2589
--[[ $Id$ Copyright © 2009 the VideoLAN team Authors: Konstantin Pavlov (thresh@videolan.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 your opt...
lgpl-2.1
slayerrensky/luci
applications/luci-app-asterisk/luasrc/model/cbi/asterisk/phone_sip.lua
68
3603
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local ast = require("luci.asterisk") local function find_outgoing_contexts(uci) local c = { } local h = { } uci:foreach("asterisk", "dialplan", function(s) if not h[s['.name']] then c[#c+1] = { s['...
apache-2.0
g0t-ya/XiaoyuBox
luci/i18n.lua
77
3182
--[[ LuCI - Internationalisation Description: A very minimalistic but yet effective internationalisation module FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You ...
lgpl-3.0
Rodeo314/tim-vlc
share/lua/playlist/liveleak.lua
91
1883
--[[ $Id$ Copyright © 2012 VideoLAN and AUTHORS Authors: Ludovic Fauvet <etix@videolan.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 your optio...
gpl-2.0
funshine/nodemcu-firmware
lua_examples/ucglib/GT_cross.lua
31
1442
local M, module = {}, ... _G[module] = M function M.run() -- make this a volatile module: package.loaded[module] = nil print("Running component cross...") local mx, my disp:setColor(0, 250, 0, 0) disp:setColor(1, 255, 255, 30) disp:setColor(2, 220, 235, 10) disp:setColor(3, 205, 0, 30...
mit
FlightControl-Master/MOOSE
Moose Development/Moose/Functional/RAT.lua
1
236300
--- **Functional** - Create random airtraffic in your missions. -- -- === -- -- The aim of the RAT class is to fill the empty DCS world with randomized air traffic and bring more life to your airports. -- In particular, it is designed to spawn AI air units at random airports. These units will be assigned a random fligh...
gpl-3.0
AustinWise/mongrel2
examples/bbs/engine.lua
96
1958
local print = print local pcall = pcall local coroutine = coroutine local ui = require 'ui' local db = require 'db' module 'engine' local STATE = {} function run(conn, engine) while true do -- Get a message from the Mongrel2 server local good, request = pcall(conn.recv_json, conn) if goo...
bsd-3-clause
Flexibity/luci
applications/luci-radvd/luasrc/model/cbi/radvd/dnssl.lua
82
2276
--[[ 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: rdnss.lu...
apache-2.0
cyfdecyf/luanet
dial.lua
1
1050
local sock = require 'luanet.sock_posix' local sys = require 'luanet.ffi.sys' local util = require 'luanet.util' local M = {} local net_tbl = { tcp = { sys.AF_INET, sys.SOCK_STREAM, 0 }, tcp6 = { sys.AF_INET6, sys.SOCK_STREAM, 0 }, udp = { sys.AF_INET, sys.SOCK_DGRAM, 0 }, udp6 = { sys.AF_INET6, sys.SOCK...
mit
aure/Soundpipe
modules/data/allpass.lua
3
1232
sptbl["allpass"] = { files = { module = "allpass.c", header = "allpass.h", example = "ex_allpass.c", }, func = { create = "sp_allpass_create", destroy = "sp_allpass_destroy", init = "sp_allpass_init", compute = "sp_allpass_compute", }, param...
mit
NerdWalletOSS/Q
OPERATORS/GROUPBY/lua/numby_generator.lua
1
1106
local gen_code = require 'Q/UTILS/lua/gen_code' local plpath = require "pl.path" local srcdir = "../gen_src/" local incdir = "../gen_inc/" if ( not plpath.isdir(srcdir) ) then plpath.mkdir(srcdir) end if ( not plpath.isdir(incdir) ) then plpath.mkdir(incdir) end local num_produced = 0 local grpby_qtypes = { 'I1', '...
mit
laarc/lumen
bin/system.lua
2
1235
local function call_with_file(f, path, mode) local h,e = io.open(path, mode) if not h then error(e) end local x = f(h) h.close(h) return(x) end local function read_file(path) return(call_with_file(function (f) return(f.read(f, "*a")) end, path)) end local function write_file(path, data) return...
bsd-2-clause
keyidadi/luci
applications/luci-wol/luasrc/model/cbi/wol.lua
37
2522
--[[ 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 ]]-- local sy...
apache-2.0
ErwanAliasr1/syslinux
com32/lua/test/automenu.lua
8
4802
--[[ Automatically generated boot menu of the installed Linux kernels Example: m = require "automenu" m.run { dir = "/", default = 1, timeout = 5, append = "root=/dev/hda2 ro", } TODO: - add hooks - demo adding break options from user config - kernel flavor preference (pae/rt) ]] local lfs =...
gpl-2.0
tboox/xmake
core/src/luajit/src/host/genlibbc.lua
37
4965
---------------------------------------------------------------------------- -- Lua script to dump the bytecode of the library functions written in Lua. -- The resulting 'buildvm_libbc.h' is used for the build process of LuaJIT. ---------------------------------------------------------------------------- -- Copyright (...
apache-2.0
Hikari-no-Tenshi/android_external_skia
tools/lua/skia.lua
207
1863
-- Experimental helpers for skia -- function string.startsWith(String,Start) return string.sub(String,1,string.len(Start))==Start end function string.endsWith(String,End) return End=='' or string.sub(String,-string.len(End))==End end Sk = {} function Sk.isFinite(x) return x * 0 == 0 end ----------------...
bsd-3-clause
njrat/BREKEBOT
libs/lua-redis.lua
580
35599
local redis = { _VERSION = 'redis-lua 2.0.4', _DESCRIPTION = 'A Lua client library for the redis key value storage system.', _COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri', } -- The following line is used for backwards compatibility in order to keep the `Redis` -- global module name. Using...
gpl-2.0
cc122cc/THETETOO2
libs/lua-redis.lua
580
35599
local redis = { _VERSION = 'redis-lua 2.0.4', _DESCRIPTION = 'A Lua client library for the redis key value storage system.', _COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri', } -- The following line is used for backwards compatibility in order to keep the `Redis` -- global module name. Using...
gpl-2.0
leecrest/luvit
deps/thread.lua
3
3231
--[[ Copyright 2014 The Luvit Authors. All Rights Reserved. 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 agr...
apache-2.0
celarco/ardupilot
libraries/AP_Scripting/examples/Serial_Dump.lua
23
1412
-- this script reads data from a serial port and dumps it to a file local file_name = 'raw serial dump.txt' local file_name_plain = 'serial dump.txt' local baud_rate = 9600 -- find the serial first (0) scripting serial port instance -- SERIALx_PROTOCOL 28 local port = assert(serial:find_serial(0),"Could not find Scrip...
gpl-3.0
NerdWalletOSS/Q
DEPRECATED_Q2/LUAQ/BAK1/exec_s_to_f.lua
1
2345
#!/home/subramon/lua-5.3.0/src/lua function exec_s_to_f(J, chk_ret) local op = assert(J.op) local tbl = assert(J.tbl) local t = assert(T[tbl]) local fld = assert(J.fld) local args = assert(J.ARGS) local fldtype = assert(args.FldType) local nR = assert(t.Properties.NumRows) --...
mit
cc122cc/THETETOO2
plugins/delete.lua
10
1642
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ delete : حذف الرسائل ▀▄ ▄▀ ▀▄▀▀...
gpl-2.0
EvilHero90/forgottenserver
data/scripts/actions/others/taming.lua
7
14773
local TYPE_ITEM, TYPE_MONSTER = 1, 2 local config = { [5907] = { -- slingshot name = "bear", id = 3, type = TYPE_MONSTER, achievement = "Bearbaiting", chance = 20, fail = { {run = true, text = "The bear ran away."}, {broke = true, text = "Oh no! The slingshot broke."}, {sound = "GRRRRRRRRRRRR", t...
gpl-2.0
HiT-Hi-FiT-Hai/ptokax-scripts
startup.lua
3
5248
--[[ This file is part of HiT Hi FiT Hai's PtokaX scripts Copyright: © 2014 HiT Hi FiT Hai group Licence: GNU General Public Licence v3 https://www.gnu.org/licenses/gpl-3.0.html --]] function OnStartup() tConfig = { sBotName = SetMan.GetString( 21 ), sAsBot = "<"..( SetMan.GetString(21) or "PtokaX" ).."> ",...
gpl-3.0
Shayan123456/botttttt2
plugins/all.lua
1321
4661
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
ramin65/cia
plugins/all.lua
1321
4661
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
Oliveryo/Interface
AddOns/Cartographer/Libs/AceComm-2.0/AceComm-2.0.lua
3
81466
--[[ Name: AceComm-2.0 Revision: $Rev: 15440 $ Developed by: The Ace Development Team (http://www.wowace.com/index.php/The_Ace_Development_Team) Inspired By: Ace 1.x by Turan (turan@gryphon.com) Website: http://www.wowace.com/ Documentation: http://www.wowace.com/index.php/AceComm-2.0 SVN: http://svn.wowace.com/wowace/...
gpl-3.0
woshilapin/cjdns
contrib/lua/cjdns/config.lua
34
1851
-- Cjdns admin module for Lua -- Written by Philip Horger common = require 'cjdns/common' ConfigFile = {} ConfigFile.__index = ConfigFile common.ConfigFile = ConfigFile function ConfigFile.new(path, no_init) local values = { path = path, text = "", contents = {}, } setmeta...
gpl-3.0
sysuzhang/arcemu
src/scripts/lua/LuaBridge/Stable Scripts/Azeroth/Karazhan/BOSS_Karazhan_Dorothee.lua
30
1308
-- TODO:Timer (3 seconds before goes into combat) ,enrage when tito is killed,check video when tito is summoned. function Dorothee_Water_Bolt(Unit, event, miscunit, misc) Unit:ClearThreatList() Unit:FullCastSpellOnTarget(31012,Unit:GetRandomPlayer()) end function Dorothee_Summon_Tito(Unit, event, miscunit, misc) pr...
agpl-3.0
NerdWalletOSS/Q
OPERATORS/F1F2OPF3/test/testcases/c_testing/output_qtype.lua
1
1197
-- get output qtype. in case of vvrem, logic is different from others local promote = require 'Q/UTILS/lua/promote' local qconsts = require 'Q/UTILS/lua/q_consts' local fns = {} fns.vvrem = function(qtype_input1, qtype_input2) local qtype local sz1 = assert(qconsts.qtypes[qtype_input1].width) local sz2 = asser...
mit
Spring-SpringBoard/SpringBoard-Core
scen_edit/command/start_command.lua
1
1359
StartCommand = Command:extends{} StartCommand.className = "StartCommand" function StartCommand:execute() if SB.rtModel.hasStarted then return end pcall(function() local OnStopEditingSynced = SB.model.game.OnStopEditingSynced if OnStopEditingSynced then OnStopEditingSync...
mit
Oliveryo/Interface
AddOns/VanillaGuide/GuideTables/Alliance/003_Alliance_50to60.lua
1
73775
--[[-------------------------------------------------- 003_Alliance_50to60.lua Authors: mrmr Version: 1.04.2 ------------------------------------------------------ Description: Guide Serie - 003 From Lvl 50 to Lvl 60 1.04.1 -- First Release Alliance's Guide from level 50 to lever 60 ...
gpl-3.0
Oliveryo/Interface
AddOns/LunaUnitFrames/modules/fader.lua
1
4957
local Fader = {} LunaUF:RegisterModule(Fader, "fader", LunaUF.L["Combat fader"]) local events = { ["UNIT_HEALTH"] = true, ["UNIT_MANA"] = true, ["UNIT_MAXHEALTH"] = true, ["UNIT_MAXMANA"] = true, } local function OnEvent() local frame = this:GetParent() if event == "PLAYER_REGEN_DISABLED" or event == "PLAYER_RE...
gpl-3.0
tboox/xmake
xmake/modules/lib/detect/has_cfuncs.lua
1
1882
--!A cross-platform build utility based on Lua -- -- 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 Apach...
apache-2.0
Oliveryo/Interface
AddOns/dpsmate/modules/DPSMate_Details_DamageTotal.lua
1
13775
DPSMate.Modules.DetailsDamageTotal = {} local g, g2 = nil,nil local curKey = 1 local db, cbt = {}, 0 local buttons = {} local ColorTable={} local _G = getglobal local tinsert = table.insert local tremove = table.remove local strformat = string.format local toggle = false local totSumTable = {} local totMax = 0 local t...
gpl-3.0
norman/mongrel2_wsapi
samples/sample_app.lua
1
1032
local mongrel2 = require 'mongrel2' local m2w = require 'mongrel2_wsapi' local sender_id = '318ced1c-85ec-462e-93ca-a1c721e4e072' local sub_addr = 'tcp://localhost:8989' local pub_addr = 'tcp://localhost:8988' local io_threads = 1 local context = mongrel2.new(io_threads) local connection = context:new...
mit
DSUK/OpenRA
mods/ra/maps/soviet-05/AI.lua
26
4192
IdleHunt = function(unit) if not unit.IsDead then Trigger.OnIdle(unit, unit.Hunt) end end IdlingUnits = function() local lazyUnits = Map.ActorsInBox(NWIdlePoint.CenterPosition, Map.BottomRight, function(actor) return actor.HasProperty("Hunt") and (actor.Owner == GoodGuy or actor.Owner == Greece) end) Utils.Do(laz...
gpl-3.0
NoobieDog/nexmon
app/app/src/main/external/src/libwireshark_helper/wireshark/epan/wslua/console.lua
7
3536
-- console -- A console and a window to execute commands in lua -- -- (c) 2006 Luis E. Garcia Ontanon <luis@ontanon.org> -- -- $Id: console.lua 35729 2011-01-31 21:13:20Z jake $ -- -- Wireshark - Network traffic analyzer -- By Gerald Combs <gerald@wireshark.org> -- Copyright 1998 Gerald Combs -- -- This program is fre...
gpl-3.0
funshine/nodemcu-firmware
lua_examples/send_text_message.lua
75
3151
--[[ 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, sublicense, and/or sell copies...
mit
codergreen/ValyriaTear
dat/maps/layna_forest/layna_forest_south_east_script.lua
1
30231
-- Set the namespace according to the map name. local ns = {}; setmetatable(ns, {__index = _G}); layna_forest_south_east_script = ns; setfenv(1, ns); -- The map name, subname and location image map_name = "Layna Forest" map_image_filename = "img/menus/locations/layna_forest.png" map_subname = "" -- The music file use...
gpl-2.0
MaliciouZzHD/AndroidChromeCastControl
files/nmap/nselib/dhcp.lua
2
30118
---Implement a Dynamic Host Configuration Protocol (DHCP) client. -- -- DHCP, defined in rfc2132 and rfc2131, is a protocol for hosts to automatically -- configure themselves on a network (that is, obtain an ip address). This library, -- which have a trivial one-function interface, can send out DHCP packets of many -...
gpl-3.0
DSUK/OpenRA
mods/ra/maps/allies-05a/AI.lua
34
6702
IdlingUnits = { } AttackGroupSize = 6 Barracks = { Barracks2, Barracks3 } Rallypoints = { VehicleRallypoint1, VehicleRallypoint2, VehicleRallypoint3, VehicleRallypoint4, VehicleRallypoint5 } WaterLZs = { WaterLZ1, WaterLZ2 } Airfields = { Airfield1, Airfield2 } Yaks = { } SovietInfantryTypes = { "e1", "e1", "e2", ...
gpl-3.0
alfred-bot/phmbot
plugins/meme.lua
637
5791
local helpers = require "OAuth.helpers" local _file_memes = './data/memes.lua' local _cache = {} local function post_petition(url, arguments) local response_body = {} local request_constructor = { url = url, method = "POST", sink = ltn12.sink.table(response_body), headers = {}, red...
gpl-2.0
AliKhodadad/Dark-Boys
plugins/meme.lua
637
5791
local helpers = require "OAuth.helpers" local _file_memes = './data/memes.lua' local _cache = {} local function post_petition(url, arguments) local response_body = {} local request_constructor = { url = url, method = "POST", sink = ltn12.sink.table(response_body), headers = {}, red...
gpl-2.0
LibreLabUCM/telegram-bot
plugins/meme.lua
637
5791
local helpers = require "OAuth.helpers" local _file_memes = './data/memes.lua' local _cache = {} local function post_petition(url, arguments) local response_body = {} local request_constructor = { url = url, method = "POST", sink = ltn12.sink.table(response_body), headers = {}, red...
gpl-2.0
alfred-bot/phmbot
plugins/search_youtube.lua
674
1270
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end local function searchYoutubeVideos(text) local url = 'https://www.googleapis.com/youtube/v3/search?' u...
gpl-2.0
disslove3/MAX4-BOT
plugins/search_youtube.lua
674
1270
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end local function searchYoutubeVideos(text) local url = 'https://www.googleapis.com/youtube/v3/search?' u...
gpl-2.0
zhityer/zhityer7
plugins/search_youtube.lua
674
1270
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end local function searchYoutubeVideos(text) local url = 'https://www.googleapis.com/youtube/v3/search?' u...
gpl-2.0
Oliveryo/Interface
AddOns/AtlasLoot/Core/LootButtons.lua
1
13031
local GREY = "|cff999999"; local RED = "|cffff0000"; local WHITE = "|cffFFFFFF"; local GREEN = "|cff1eff00"; local PURPLE = "|cff9F3FFF"; local BLUE = "|cff0070dd"; local ORANGE = "|cffFF8400"; local DEFAULT = "|cffFFd200"; local ParseTooltip_Enabled = false; -----------------------------------------------------------...
gpl-3.0
lhmwzy/vanilla
vanilla/sys/nginx/handle.lua
3
2494
local va_conf = require 'vanilla.sys.config' local function create_dirs(necessary_dirs) for _, dir in pairs(necessary_dirs) do os.execute("mkdir -p " .. dir .. " > /dev/null") end end local function create_nginx_conf(nginx_conf_file_path, nginx_conf_content) local fw = io.open(nginx_conf_file_path...
mit
jie-meng/Lunar
publish/apis/javascript/js/parse_lodash.lua
2
1432
local pattern_func = [[function%s+([%w_]+)%s*%((.*)%)]] local pattern_var_func = [[([%w_]+)%s*=%s*[%w_]+%s*%(%s*function%s*%((.*)%)]] local pattern_export = [[lodash%.([%w_]+)%s*=%s*([%w_]+)]] local content = util.readTextFile('lodash.js') local keys = {} local methods = {} local tb = util.strSplit(content, '\n') fo...
gpl-2.0
LibreLabUCM/telegram-bot
plugins/boobs.lua
731
1601
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
gpl-2.0
ramin65/cia
plugins/boobs.lua
731
1601
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
gpl-2.0
Oliveryo/Interface
AddOns/pfUI/modules/panel.lua
1
22490
pfUI:RegisterModule("panel", function () local default_border = pfUI_config.appearance.border.default if pfUI_config.appearance.border.panels ~= "-1" then default_border = pfUI_config.appearance.border.panels end pfUI.panel = CreateFrame("Frame",nil,UIParent) pfUI.panel:RegisterEvent("PLAYER_ENTERING_WOR...
gpl-3.0
codergreen/ValyriaTear
dat/maps/layna_forest/crystal_appearance/layna_forest_crystal_appearance_anim.lua
1
14430
------------------------------------------------------------------------------[[ -- Filename: layna_forest_crystal_appearance_anim.lua -- -- Description: Display an image of the stone sign text, in the actual -- scripture seen by the characters for 5 seconds with fade in/out. -------------------------------------------...
gpl-2.0
padrinoo1/vagir
plugins/add_bot.lua
189
1492
--[[ Bot can join into a group by replying a message contain an invite link or by typing !add [invite link]. URL.parse cannot parsing complicated message. So, this plugin only works for single [invite link] in a post. [invite link] may be preceeded but must not followed by another characters. --]] do local function...
gpl-2.0
Spring-SpringBoard/SpringBoard-Core
LuaRules/Configs/icon_generator.lua
1
10115
-- $Id: icon_generator.lua 4354 2009-04-11 14:32:28Z licho $ ----------------------------------------------------------------------- ----------------------------------------------------------------------- -- -- Icon Generator Config File -- --// Info if (info) then local ratios = {["1to1"]=(1/1)} --["5to4"]=(4...
mit
lhmwzy/vanilla
spec/v/dispatcher_spec.lua
1
3723
require('spec.helper') describe("Dispatcher", function() before_each(function() Application = require 'vanilla.v.application' Dispatcher = require 'vanilla.v.dispatcher' Controller = require 'vanilla.v.controller' Request = require 'vanilla.v.request' Response = require 'van...
mit
RamiLego4Game/PixelizerBox-Sandbox
Engine/Sandbox/API.lua
1
8650
--This file is part of PixelizerBox-- --[[ * Copyright 2015 RamiLego4Game * * 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 ...
apache-2.0
Flexibity/luci
applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua
11
1043
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 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 h...
apache-2.0
NerdWalletOSS/Q
OPERATORS/CAT/tests/test_cat.lua
1
11663
local Q = require 'Q' local c_to_txt = require 'Q/UTILS/lua/C_to_txt' local lVector = require 'Q/RUNTIME/lua/lVector' local ffi = require 'Q/UTILS/lua/q_ffi' local qconsts = require 'Q/UTILS/lua/q_consts' local cmem = require 'libcmem' local get_ptr = require 'Q/UTILS/lua/get_ptr' require 'Q/UTILS/lua/strict'...
mit
leecrest/luvit
deps/readline.lua
3
13819
--[[ Copyright 2014-2015 The Luvit Authors. All Rights Reserved. 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 o...
apache-2.0
NerdWalletOSS/Q
OPERATORS/INDEX/lua/indexing.lua
1
1446
local T = {} local function index(x, y) -- Q.index(x, y) : searches the index of given value(i.e. y) from the given vector(i.e. x) -- if found, returns index(a lua number) -- else returns nil -- In Q.index(x, y), indexing starts with 0 -- Convention: Q.index(vector, value) -- 1) vector : a vect...
mit
Spring-SpringBoard/SpringBoard-Core
scen_edit/view/object/object_defs_view.lua
1
12318
SB.Include(Path.Join(SB.DIRS.SRC, 'view/editor.lua')) ObjectDefsView = Editor:extends{} function ObjectDefsView:init() self:super("init") self.btnBrush = TabbedPanelButton({ x = 0, y = 0, tooltip = "Add or remove objects by painting the map", children = { TabbedPan...
mit
Spring-SpringBoard/SpringBoard-Core
scen_edit/view/map/grass_editor.lua
1
3260
SB.Include(Path.Join(SB.DIRS.SRC, 'view/editor.lua')) GrassEditor = Editor:extends{} GrassEditor:Register({ name = "grassEditor", tab = "Map", caption = "Grass", tooltip = "Edit grass", image = Path.Join(SB.DIRS.IMG, 'grass.png'), order = 4, }) function GrassEditor:init() self:super("init"...
mit
goldguard/goldguard
bot/utils.lua
473
24167
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
gmorishere/gm
bot/utils.lua
473
24167
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
leecrest/luvit
deps/repl.lua
4
5482
--[[ Copyright 2014-2015 The Luvit Authors. All Rights Reserved. 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 o...
apache-2.0