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
annulen/premake
src/base/solution.lua
3
2601
--- -- solution.lua -- Work with the list of solutions loaded from the script. -- Copyright (c) 2002-2014 Jason Perkins and the Premake project --- local p = premake p.solution = p.api.container("solution", p.global) local solution = p.solution local tree = p.tree --- -- Create a new solution container instanc...
bsd-3-clause
KlonZK/Zero-K
scripts/armaak.lua
16
9072
--linear constant 65536 --modified from Argh\'s PURE Artillery Shell Script include "constants.lua" include "JumpRetreat.lua" local base, hips, torso = piece('base', 'hips', 'torso') local launcher, rflare, rblast, lflare, lblast, cflare, cblast = piece('launcher', 'rflare', 'rblast', 'lflare', 'lblast', 'cflare', 'c...
gpl-2.0
ids1024/naev
dat/missions/dvaered/championship.lua
1
16853
--[[ The player takes part into a challemge between fighter pilots in Dvaered space, he has to defeat 5 opponents to win. Stages : 0) Way to positions 1) Begin of the fight 2) Player won 3) End of competition --]] --Needed scripts include "dat/scripts/numstring.lua" include "dat/scripts/prox...
gpl-3.0
KlonZK/Zero-K
gamedata/planetwars/pw_structuredefs.lua
11
23927
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- note name and description are obtained from server and modified at runtime ALLOW_SERVER_OVERRIDE_UNIT_TEXT = true structureConfig = { generic_tech = fun...
gpl-2.0
alimashmamali/fff
plugins/location.lua
185
1565
-- Implement a command !loc [area] which uses -- the static map API to get a location image -- Not sure if this is the proper way -- Intent: get_latlong is in time.lua, we need it here -- loadfile "time.lua" -- Globals -- If you have a google api key for the geocoding/timezone api do local api_key = nil local base_...
gpl-2.0
ids1024/naev
dat/missions/shark/sh03_hailing.lua
1
4670
--[[ This is the fourth mission of the Shark's teeth campaign. The player has to hail a frontier ship. There should not be any ambush in this mission but the player must fear it from the beginning to the end Stages : 0) Way to Frontier system 1) Way back to Darkshed --]] include "numstring....
gpl-3.0
eras/fysplane
entities/debug.lua
1
2356
class = require 'hump.class' VectorLight = require 'hump/vector-light' local scale = 0.001 local font = love.graphics.newFont(10) DebugVector = Class { init = function(self, label, x0 , y0, dx, dy) self.x0 = x0; self.y0 = y0; self.dx = dx; self.dy = dy; self.label = label;...
mit
emadni/uzzbot
plugins/moderation.lua
336
9979
do local function check_member(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then local username = v.username data[tostring(m...
gpl-2.0
saadmzed/kenam-bot
tg/tdcli.lua
1
88671
--[[ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be use...
gpl-3.0
KlonZK/Zero-K
effects/bulldozer.lua
16
9149
return { ["bull_flash"] = { usedefaultexplosions = false, groundflash = { circlealpha = 0.8, circlegrowth = 0, flashalpha = 1, flashsize = 125, ttl = 310, color = { [1] = 0.2, [2...
gpl-2.0
antispamspider/AntiSpam_Spider
plugins/Robot.lua
5
1649
-- Checks if bot was disabled on specific chat local function is_channel_disabled( receiver ) if not _config.disabled_channels then return false end if _config.disabled_channels[receiver] == nil then return false end return _config.disabled_channels[receiver] end local function enable_channel(receiver) if...
gpl-2.0
annulen/premake-dev-rgeary
src/actions/codelite/codelite_project.lua
13
5664
-- -- codelite_project.lua -- Generate a CodeLite C/C++ project file. -- Copyright (c) 2009, 2011 Jason Perkins and the Premake project -- local codelite = premake.codelite local tree = premake.tree -- -- Write out a list of the source code files in the project. -- function codelite.files(prj) local tr = prema...
bsd-3-clause
tunneff/tef
app/mod/JSON.lua
23
55197
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2016 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/by...
lgpl-3.0
annulen/premake-dev-rgeary
tests/actions/vstudio/sln2005/platforms.lua
2
2721
-- -- tests/actions/vstudio/sln2005/platforms.lua -- Validate generation of Visual Studio 2005+ SolutionConfigurationPlatforms block. -- Copyright (c) 2009-2011 Jason Perkins and the Premake project -- T.vstudio_sln2005_platforms = { } local suite = T.vstudio_sln2005_platforms local sln2005 = premake.vstudi...
bsd-3-clause
KlonZK/Zero-K
LuaRules/Configs/icon_generator.lua
7
10831
-- $Id: icon_generator.lua 4354 2009-04-11 14:32:28Z licho $ ----------------------------------------------------------------------- ----------------------------------------------------------------------- -- -- Icon Generator Config File -- --// Info if (info) then local ratios = {["5to4"]=(4/5)} --{["16to10"]...
gpl-2.0
KlonZK/Zero-K
units/armasp.lua
5
3428
unitDef = { unitname = [[armasp]], name = [[Air Repair/Rearm Pad]], description = [[Repairs and Rearms Aircraft, repairs at 2.5 e/s per pad]], acceleration = 0, activateWhenBuilt = true, brakeRate = 0, buildAngle = 0, buildCostEnergy = 35...
gpl-2.0
mbattersby/LiteMount
Tests/Mock/Frame.lua
1
2240
mockFrame = { __allFrames = {}, __frameEventRegistry = {}, } mockFrame.__index = mockFrame function mockFrame:New(frameName, frameParent, ...) local f = setmetatable({}, self) f.__parent = frameParent f.__name = frameName f.__scripts = {} self.__allFrames[f] = true if frameName then _G...
gpl-2.0
bbbbbhhhhhhh/i4bot
plugins/id.lua
226
4260
local function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name..' ' end if user.lastname then text = text..user.last_name end return text end local function returnids(cb_extra, success, result) local re...
gpl-2.0
caricatura/Healbot
HealBot_fr/HealBot_Tips_Localization.fr.lua
1
90438
-- French translator required ------------ -- FRENCH -- ------------ -- -- ࠽ \195\160 -- ⠽ \195\162 -- 砽 \195\167 -- 蠽 \195\168 -- 頽 \195\169 -- ꠽ \195\170 --  \195\174 --  \195\175 -- 𠽠\195\180 -- û = \195\187 -- À = \195\128 -- Ƞ= \195\136 -- ɠ= \195\137 -- ʠ= \195\138 -- espace avant ':' (?) = \194\160 functio...
gpl-2.0
twoscomplement/tundra
examples/fancyvs/tundra.lua
7
2490
Build { Units = function () local lib = StaticLibrary { Name = "blahlib", Sources = { "blah.hpp", -- including headers here makes them appear in generated solutions "blah.cpp", }, -- Place in MSVC solution folder. IdeGenerationHints = { Msvc = { ...
gpl-3.0
bbbbbhhhhhhh/i4bot
plugins/minecraft.lua
624
2605
local usage = { "!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565", "!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.", } local ltn12 = require "ltn12" local function mineSearch(ip, port, receiver) --25565 local responseText = "" l...
gpl-2.0
ESMAILESMAIL/new_bot
bot/utils.lua
14
16238
--Begin Utils.lua By #BeyondTeam :) function serialize_to_file(data, file, uglify) file = io.open(file, 'w+') local serialized if not uglify then serialized = serpent.block(data, { comment = false, name = '_' }) else serialized = serpent.dump(data) end file:write(serialized) ...
gpl-3.0
aimingoo/harpseal
lib/BASE64.lua
3
2642
-- Base64-encoding -- Sourced from http://en.wikipedia.org/wiki/Base64 require('math') local __author__ = 'Daniel Lindsley' local __version__ = 'scm-1' local __license__ = 'BSD' local index_table = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' local function to_binary(integer) local remai...
apache-2.0
mcmtroffaes/highlighting-kate
tests/life.lua
9
2637
-- life.lua -- original by Dave Bollinger <DBollinger@compuserve.com> posted to lua-l -- modified to use ANSI terminal escape sequences -- modified to use for instead of while local write=io.write ALIVE="¥" DEAD="þ" ALIVE="O" DEAD="-" function delay() -- NOTE: SYSTEM-DEPENDENT, adjust as necessary for i=1,10000 do...
gpl-2.0
jfoxdev/Polygonology
include/Polygonoid.lua
1
3498
require( "include.Common" ) local Polygonoid = { id = "", name = "Polygonoid", position = { x = 0, y = 0 }, velocity = { x = 0, y = 0 }, dimensions = { w = 1, h = 1 }, mass = 1.0, rotation = 0, Body = nil, Shape = nil, Fixture = nil, ActiveColor = {r=0.5,g=0.5,b=1.0,a=0.7}, Colors = { Idle = {r=0.5,g...
gpl-3.0
Kamshak/LibK
lua/libk/client/cl_DRTModelPanel.lua
1
7325
// Alphafix method by MDave --[[ _ ( ) _| | __ _ __ ___ ___ _ _ /'_` | /'__`\( '__)/' _ ` _ `\ /'_` ) ( (_| |( ___/| | | ( ) ( ) |( (_| | `\__,_)`\____)(_) (_) (_) (_)`\__,_) --]] local PANEL = {} AccessorFunc( PANEL, "m_fAnimS...
mit
zzzaidddddd/zzaiddd
bot/DevSaqt.lua
1
14955
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") local f = assert(io.popen('/usr/bin/git describe --tags', 'r')) VERSION = assert(f:read('*a')) f:close() -- This function is ...
gpl-2.0
Kamshak/LibK
lua/libk/3rdparty/glib/garrysmod/io/fileinbuffer.lua
2
1536
local self = {} GLib.FileInBuffer = GLib.MakeConstructor (self, GLib.InBuffer) function self:ctor (fileOrPath, pathId) if pathId then self.File = file.Open (fileOrPath, "rb", pathId) else self.File = fileOrPath end end function self:dtor () self.File:dtor () end -- Position function self:GetBytesRemaining ()...
mit
LoPhatKao/EggstraClucks
scripts/delegate.lua
2
5092
-------------------------------------------------------------------------------- --SAFETY CHECK if delegate and (delegate.v == nil or delegate.v < 6) then init = delegate.init main = delegate.main die = delegate.die damage = delegate.damage interact = delegate.interact delegate = nil end if delegate == nil ...
apache-2.0
creker/thrift
lib/lua/TBinaryProtocol.lua
90
6141
-- -- 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 ma...
apache-2.0
KlonZK/Zero-K
gamedata/modularcomms/weapons/rocketlauncher.lua
6
1244
local name = "commweapon_rocketlauncher" local weaponDef = { name = [[Rocket Launcher]], areaOfEffect = 75, cegTag = [[missiletrailred]], craterBoost = 0, craterMult = 0, customParams = { slot = [[5]], muzzleEffectFire = [[cus...
gpl-2.0
hfjgjfg/mehdi7614
plugins/wiki.lua
20
4376
-- http://git.io/vUA4M local socket = require "socket" local JSON = require "cjson" local wikiusage = { "!wiki [text]: Read extract from default Wikipedia (EN)", "!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola", "!wiki search [text]: Search articles on default Wikipedia (EN)", "!...
gpl-2.0
jnhwkim/dp
nn/FairLookupTable.lua
7
1116
-- updates parameters inverse-proportionally to -- number of times each index was used since last update. -- less forward/backwards --> higher learning rate (because these are -- downscaled proportionally to batch size using scale, in criterion, -- or learning rate)) local FairLookupTable, parent = torch.class('nn.F...
bsd-3-clause
erlio/vernemq
apps/vmq_diversity/test/mysql_test.lua
4
2278
-- Pool Setup config = { pool_id = "mysql_test", size = 5, user = "vmq_test_user", password = "vmq_test_password", database = "vmq_test_database", host = "localhost", port = 3306 } assert(mysql.ensure_pool(config)) -- Drop test table assert(mysql.execute("mysql_test", "DROP TABLE IF EXISTS ...
apache-2.0
KlonZK/Zero-K
gamedata/sidedata.lua
25
1088
-- $Id: sidedata.lua 3708 2009-01-06 06:20:18Z carrepairer $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: sidedata.lua -- brief: sidedata definitions -- -------------------------------...
gpl-2.0
aj-kip/generic-runner
util.lua
1
15330
-- ---------------------------------------------------------------------------- -- -- Generic Runner Game Copyright (C) 2017 Andrew Janke -- -- 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, ...
gpl-3.0
Karakaz/railway-painter
src/player/gui/GuiBuilder.lua
1
2272
require("mod-gui") local GuiRuleSelection = require("src/player/gui/selection/GuiRuleSelection") local GuiRuleSettings = require("src/player/gui/settings/GuiRuleSettings") local GuiBuilder = {} function GuiBuilder:createGui() self:createGuiButton() self:createWindow() self:addGuiFrame() self:addPrev...
mit
KlonZK/Zero-K
LuaUI/Widgets/gui_chili_windowPacker.lua
6
15924
local version = "v1.001" function widget:GetInfo() return { name = "Chili Window Packer", desc = version .. " Provides functionality to automatically arrange windows in space-saving manners. Activate-able thru \"packNow\" button (\255\90\255\90Setting/HUD Panels/Docking\255\255\255\255).", aut...
gpl-2.0
KlonZK/Zero-K
LuaUI/Widgets/gui_persistent_build_spacing.lua
6
1107
function widget:GetInfo() return { name = "Persistent Build Spacing", desc = "Recalls last build spacing set for each building and game [v2.0]", author = "Niobium & DrHash", date = "Sep 6, 2011", license = "GNU GPL, v3 or later", layer = 0, enabled = true -- loa...
gpl-2.0
LuaDist/lua-llthreads2-compat
llthreads2/test/test_table_copy.lua
8
3484
-- Copyright (c) 2011 by Robert G. Jakabosky <bobby@sharedrealm.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 u...
mit
tunneff/tef
deps/lzmq/test/lunit/console.lua
19
3798
--[[-------------------------------------------------------------------------- This file is part of lunit 0.6. For Details about lunit look at: http://www.mroth.net/lunit/ Author: Michael Roth <mroth@nessie.de> Copyright (c) 2006-2008 Michael Roth <mroth@nessie.de> Permission is hereby granted...
lgpl-3.0
KlonZK/Zero-K
LuaUI/Widgets/gui_ingame_guide.lua
11
5828
function widget:GetInfo() return { name = "In-game Guide", enabled = true, } end options_path = 'Help/Guide' options = { ingameguide_concept_wreckage = { name = "Wreckage", value= "When destroyed, units leave wreckage containing a part of their metal worth. This value can then be Reclaimed by constructors, whi...
gpl-2.0
LordZamy/pokemon-love
ext/sti/plugins/box2d.lua
4
9169
--- Box2D plugin for STI -- @module box2d -- @author Landon Manning -- @copyright 2015 -- @license MIT/X11 return { box2d_LICENSE = "MIT/X11", box2d_URL = "https://github.com/karai17/Simple-Tiled-Implementation", box2d_VERSION = "2.3.2.1", box2d_DESCRIPTION = "Box2D hooks for STI.", --- Initializ...
mit
olivierayache/xuggle-xuggler
captive/libsrt/csrc/scripts/srt-dev.lua
4
37703
-- @brief srt-dev Protocol dissector plugin -- create a new dissector local NAME = "SRT-dev" local srt_dev = Proto(NAME, "SRT-dev Protocol") -- create a preference of a Protocol srt_dev.prefs["srt_udp_port"] = Pref.uint("SRT UDP Port", 1935, "SRT UDP Port") -- create fields of srt_dev -- Base.HEX, Base.DEC, Base.OCT...
lgpl-3.0
annulen/premake
src/base/string.lua
5
1545
-- -- string.lua -- Additions to Lua's built-in string functions. -- Copyright (c) 2002-2013 Jason Perkins and the Premake project -- -- -- Capitalize the first letter of the string. -- function string.capitalized(self) return self:gsub("^%l", string.upper) end -- -- Returns true if the string has a match for...
bsd-3-clause
tunneff/tef
app/mod/client.lua
1
7045
local mp = require("MessagePack") local zmq = require("lzmq") local zloop = require("lzmq.loop") local PROTO_VERSION_10="\001\000" local function mp_keypack(key) local data={} for _, k in ipairs(key) do table.insert(data, mp.pack(k)) end return table.concat(data) end local function ns2arr(ns) local a={...
lgpl-3.0
ld-test/split
src/split.lua
1
3356
--- split: string split function and iterator for Lua -- -- Peter Aronoff -- BSD 3-Clause License -- 2012-2015 -- -- There are many split functions for Lua. This is mine. Though, actually, -- I took lots of ideas and probably some code from the implementations on -- the Lua-Users Wiki, http://lua-users.org/wiki/SplitJo...
bsd-3-clause
ultijlam/vocalraidassistant
Locales/enUS.lua
1
11921
local L = LibStub("AceLocale-3.0"):NewLocale("VocalRaidAssistant", "enUS",true) if not L then return end L["Main Options"] = "Main Options" L["MAIN_OPTIONS_DESC"] = "Main Options test" L["GET_VERSION"] = GetAddOnMetadata("VocalRaidAssistant", "Version") L["Vocal Raid Assistant"] = "Vocal Raid Assistant" L["VOCAL_RAID_...
gpl-3.0
hacker44-h44/original
plugins/anti-flood.lua
281
2422
local NUM_MSG_MAX = 5 -- Max number of messages per TIME_CHECK seconds local TIME_CHECK = 5 local function kick_user(user_id, chat_id) local chat = 'chat#id'..chat_id local user = 'user#id'..user_id chat_del_user(chat, user, function (data, success, result) if success ~= 1 then local text = 'I can\'t k...
gpl-2.0
Kamshak/LibK
lua/libk/3rdparty/glib/stage1.lua
1
13355
if GLib then return end GLib = {} function GLib.AddCSLuaFile (path) end function GLib.AddCSLuaFolder (folder) end function GLib.AddCSLuaFolderRecursive (folder) end function GLib.AddCSLuaPackFile (path) end function GLib.AddCSLuaPackFolder (folder) end function GLib.AddCSLuaPackFolderRecursive (folder) end function GL...
mit
jheddings/lua
class.lua
1
1888
-- class.lua -- lifted from http://lua-users.org/wiki/SimpleLuaClasses -- Compatible with Lua 5.1 (not 5.0). -- TODO make the class name available through a 'ctype' member -- TODO possible/helpful to hide private functions in a metatable? function class(base) local struct = { } -- "extend" (shallow copy) the bas...
mit
bbbbbhhhhhhh/i4bot
plugins/danbooru.lua
616
1750
do local URL = "http://danbooru.donmai.us" local URL_NEW = "/posts.json" local URL_POP = "/explore/posts/popular.json" local scale_day = "?scale=day" local scale_week = "?scale=week" local scale_month = "?scale=month" local function get_post(url) local b, c, h = http.request(url) if c ~= 200 then return nil end ...
gpl-2.0
kjk/the_silver_searcher
premake4.lua
3
3813
-- to generate Visual Studio files in vs-premake directory, run: -- premake4 vs2010 or premake4 vs2008 -- common settings for solutions function solution_common() configurations { "Debug", "Release", "ReleaseKjk" } location "vs-premake" -- this is where generated solution/project files go -- Symbols - g...
apache-2.0
tunneff/tef
deps/luasocket/test/testmesg.lua
45
2957
-- load the smtp support and its friends local smtp = require("socket.smtp") local mime = require("mime") local ltn12 = require("ltn12") function filter(s) if s then io.write(s) end return s end source = smtp.message { headers = { ['content-type'] = 'multipart/alternative' }, body = { [1] = { ...
lgpl-3.0
KlonZK/Zero-K
units/commrecon1.lua
3
8249
unitDef = { unitname = [[commrecon1]], name = [[Recon Commander]], description = [[High Mobility Commander, Builds at 10 m/s]], acceleration = 0.25, activateWhenBuilt = true, amphibious = [[1]], autoHeal = 5, brakeRate = 0.45, bu...
gpl-2.0
ckaotik/DataMore
libs/LibStub/LibStub.lua
184
1367
-- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info -- LibStub is hereby placed in the Public Domain Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke local LIBSTUB_MAJOR, LIBSTUB_MINOR = "LibStub", 2 -- NEVER MAKE THIS AN SVN REVI...
bsd-3-clause
ms2008/lor
spec/cases/common_spec.lua
2
1509
before_each(function() lor = _G.lor app = lor({ debug = true }) Request = _G.request Response = _G.response req = Request:new() res = Response:new() end) after_each(function() lor = nil app = nil Request = nil Response = nil req = nil res = nil end) describe...
mit
KlonZK/Zero-K
LuaRules/Configs/lups_thruster_fxs.lua
6
1296
local tbl = { corbtrans = { {class='AirJet', options={color={0.2,0.4,0.8}, width=8, length=35, piece="engineEmit", onActive=true}}, }, gunshipsupport = { {class='AirJet', options={color={0.6,0.1,0.0}, width=3.5, length=22, piece="thrust1", onActive=true}}, {class='AirJet', options={color={0.6,0.1,0.0}...
gpl-2.0
thuehn/Minstrel-Blues
measurement/minstrel-measurement/parsers/cpusage.lua
2
3300
require ('parsers/parsers') -- TODO: check -o option for csv output -- TODO: ebuild: permission denied for tarball 0.41 and before Cpusage = { timestamp = nil, user = nil, nice = nil , system = nil, idle = nil, iowait = nil , irq = nil, softirq = nil } function Cpusage:new (o) loca...
gpl-2.0
annulen/premake
tests/actions/vstudio/vc2010/test_build_events.lua
5
2318
-- -- tests/actions/vstudio/vc2010/test_build_events.lua -- Check generation of pre- and post-build commands for C++ projects. -- Copyright (c) 2012-2013 Jason Perkins and the Premake project -- local suite = test.declare("vstudio_vc2010_build_events") local vc2010 = premake.vstudio.vc2010 -- -- Setup -- local s...
bsd-3-clause
ds4ww/lurs
plugins/stats.lua
22
4011
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
zzzaidddddd/zzaiddd
data/plugins/stats.lua
22
4011
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
caricatura/Healbot
HealBot_fr/HealBot_Localization.fr.lua
1
62974
-- French translator required ------------ -- FRENCH -- ------------ -- -- à = \195\160 -- â = \195\162 -- ç = \195\167 -- è = \195\168 -- é = \195\169 -- ê = \195\170 -- î = \195\174 -- ï = \195\175 -- ô = \195\180 -- û = \195\187 -- À = \195\128 -- È = \195\136 -- É = \195\137 -- Ê = \195\138 -- espace avant ':' ...
gpl-2.0
ali-iraqi/ali_iraqi
plugins/username.lua
2
1255
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ DEVBOT @ali_iraqi ▀▄ ▄▀ ▀▄ ▄▀ ( @Dev_iq_s ) ▀▄ ▄▀ ▀▄ ▄▀ username:@ اضهار معرفك بصيغة جميلة 🌝💔 ▀▄ ▄▀ ▀▄▀▀...
gpl-3.0
sebastiangabl/pd2-bot-weapons
lua/menuscenemanager.lua
1
5647
function MenuSceneManager:set_henchmen_loadout(index, character, loadout) self._picked_character_position = self._picked_character_position or {} character = character or managers.blackmarket:preferred_henchmen(index) if not character then local preferred = managers.blackmarket:preferred_henchmen() local charac...
gpl-3.0
chroteus/the-bridge-of-life
lib/TEsound.lua
6
8109
--- TEsound v1.3, a simplified sound system for Love 2D -- @author Ensayia (Ensayia@gmail.com) & Taehl (SelfMadeSpirit@gmail.com) TEsound = {} -- Namespace TEsound.channels = {} -- This holds the currently playing sound channels TEsound.volumeLevels = {} -- Volume levels that multiply the volumes of sounds with tho...
gpl-2.0
KlonZK/Zero-K
LuaRules/Gadgets/mod_stats.lua
7
7701
-- $Id: unit_noselfpwn.lua 3171 2008-11-06 09:06:29Z det $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function gadget:GetInfo() return { name = "Mod statistics", desc = "Gathers mo...
gpl-2.0
aimingoo/harpseal
infra/taskhelper.lua
3
5227
--------------------------------------------------------------------------------------------------------- -- Distributed task helper for Harpseal -- Author: aimingoo@wandoujia.com -- Copyright (c) 2015.10 -- -- Note: -- *) a interface of task define helper. -- *) encode/decode fields for local supported object, from/to...
apache-2.0
fanzyflani/voxycodone
root/bnlmaps/json.lua
1
4132
local function skipws(s, pos) while pos <= #s do local c = s:sub(pos,pos) if c == " " or c == "\n" or c == "\r" or c == "\t" then pos = pos + 1 else return pos end end end function json_parse(s, pos) pos = pos or 1 pos = skipws(s, pos) local c = s:sub(pos,pos) if c == '{' then local l = {} pos ...
mit
KlonZK/Zero-K
LuaUI/Widgets/chili/Controls/treeview.lua
17
2562
--//============================================================================= TreeView = Control:Inherit{ classname = "treeview", autosize = true, minItemHeight = 16, defaultWidth = "100%", defaultHeight = "100%", selected = 1, root = nil, nodes = {}, defaultExpanded = false, OnSelectNod...
gpl-2.0
jkeywo/KFactorioMods
k-ruins_0.1.1/stdlib/data/recipe.lua
5
5197
--- Recipe module -- @module Recipe require 'stdlib/data/data' Recipe = {} --- Selects all recipe values where the key matches the selector pattern. -- The selector pattern is divided into groups. The pattern should have a colon character `:` to denote the selection for each group. -- <br/>The first group is for the...
mit
antispamspider/AntiSpam_Spider
plugins/antiemoji.lua
4
2951
local function run(msg, matches) if is_momod(msg) then return end local data = load_data(_config.moderation.data) if data[tostring(msg.to.id)] then if data[tostring(msg.to.id)]['settings'] then if data[tostring(msg.to.id)]['settings']['antiemoji'] then lock_ads = data[tostring(msg.to.id)]['settings']['antiemoji'] end e...
gpl-2.0
hacker44-h44/original
plugins/stats.lua
458
4098
-- Saves the number of messages from a user -- Can check the number of messages with !stats do local NUM_MSG_MAX = 5 local TIME_CHECK = 4 -- seconds local function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name....
gpl-2.0
blowekamp/SimpleITK
Examples/ImageIOSelection/ImageIOSelection.lua
4
2055
--========================================================================= -- -- Copyright NumFOCUS -- -- 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.or...
apache-2.0
ids1024/naev
dat/missions/neutral/dts_00.lua
6
11148
--[[ MISSION: Defend the System 1 DESCRIPTION: A mission to defend the system against swarm of pirate ships. This will be the first in a planned series of random encounters. After the third specifically scripted pirate invasion, a militia will form. The player will...
gpl-3.0
Kamshak/LibK
lua/libk/3rdparty/glib/lua/decompiler/bytecodereader.lua
1
3240
local self = {} GLib.Lua.BytecodeReader = GLib.MakeConstructor (self) function self:ctor (functionOrDump, authId) -- Input self.Function = nil self.Dump = nil -- Header self.Signature = nil self.Version = nil self.Flags = nil self.Source = nil -- Function dumps self.Functions = {} -- String...
mit
KlonZK/Zero-K
LuaRules/Utilities/UnitRendering.lua
8
2129
-- $Id:$ ------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- -- exported functions: -- Spring.UnitRendering.GetLODCount(unitID) -> int -- Spring.UnitRendering.ActivateMaterial(unitID,lod) -> nil -- Sp...
gpl-2.0
Aico/sfmudlet
src/mudlet-lua/lua/geyser/GeyserSetConstraints.lua
5
5477
-------------------------------------- -- -- -- The Geyser Layout Manager by guy -- -- -- -------------------------------------- --- This function sets the constraints of a window. -- It doesn't mess with anything other than positioning data. It -- cre...
gpl-2.0
aceforeverd/vimrc
lua/aceforeverd/lsp/common.lua
1
9390
-- Copyright (C) 2021 Ace <teapot@aceforeverd.com> -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. -- -- This pr...
gpl-3.0
mahdibagheri/farsi2
plugins/banhammer.lua
13
11897
local function pre_process(msg) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Checking invited user '..user_id) local banned ...
gpl-2.0
annulen/premake
src/actions/make/make_solution.lua
4
4284
-- -- make_solution.lua -- Generate a solution-level makefile. -- Copyright (c) 2002-2012 Jason Perkins and the Premake project -- local make = premake.make local solution = premake.solution local tree = premake.tree local project = premake.project -- -- Generate a GNU make "solution" makefile, with support for ...
bsd-3-clause
aedansilver/wowlikearcemuold
src/scripts/lua/Lua/Stable Scripts/Azeroth/Karazhan/BOSS_Karazhan_Moroes.lua
30
1211
function Moroes_Enrage(Unit, event, miscunit, misc) if Unit:GetHealthPct() < 30 and Didthat == 0 then Unit:FullCastSpell(44779) Didthat = 1 else end end function Moroes_Gouge(Unit, event, miscunit, misc) print "Moroes Gouge" Unit:FullCastSpellOnTarget(28456,Unit:GetClosestPlayer()) Unit:SendChatMessage(11, 0...
agpl-3.0
annulen/premake-dev-rgeary
src/tools/protobuf.lua
1
2249
-- -- Protocol Buffers -- newtoolset { toolsetName = 'protobuf', tools = { newtool { toolName = 'protoc', binaryName = 'protoc', language = 'proto', isLinker = true, -- Pass in all the inputs to one command extensionsForLinking = { '.proto' }, argumentOrder = { 'cfgflags', 'includedirs', '...
bsd-3-clause
voxelteam/voxel_cli
plugins/azan.lua
1
3125
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
aedansilver/wowlikearcemuold
src/scripts/lua/LuaBridge/Stable Scripts/Outland/Magisters Terrace/UNIT-MagistersTerrace-SunbladeMageGuard.lua
30
1409
--[[ ******************************** * * * The Moon Project * * * ******************************** This software is provided as free and open source by the staff of The Moon Project, in accordance with the GPL license. This means we provide the so...
agpl-3.0
aedansilver/wowlikearcemuold
src/scripts/lua/Lua/Stable Scripts/Outland/Magisters Terrace/UNIT-MagistersTerrace-SunbladeMageGuard.lua
30
1409
--[[ ******************************** * * * The Moon Project * * * ******************************** This software is provided as free and open source by the staff of The Moon Project, in accordance with the GPL license. This means we provide the so...
agpl-3.0
lawnight/skynet
lualib/dns.lua
23
8758
--[[ lua dns resolver library See https://github.com/xjdrew/levent/blob/master/levent/dns.lua for more detail -- resource record type: -- TYPE value and meaning -- A 1 a host address -- NS 2 an authoritative name server -- MD 3 a mail destination (Obsolete - use MX...
mit
AdamGagorik/darkstar
scripts/zones/Sacrarium/npcs/Large_Keyhole.lua
27
1422
----------------------------------- -- Area: Sacrarium -- NPC: Large Keyhole -- Notes: Used to open R. Gate -- @pos 100.231 -1.414 51.700 28 ----------------------------------- package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Sacrarium/TextIDs"); ...
gpl-3.0
KalinduDN/kalindudn.github.io
resources/prosody-plugins/token/util.lib.lua
1
13978
-- Token authentication -- Copyright (C) 2015 Atlassian local basexx = require "basexx"; local have_async, async = pcall(require, "util.async"); local hex = require "util.hex"; local jwt = require "luajwtjitsi"; local http = require "net.http"; local jid = require "util.jid"; local json = require "cjson"; local path =...
apache-2.0
AdamGagorik/darkstar
scripts/zones/Quicksand_Caves/npcs/_5sc.lua
13
1253
----------------------------------- -- Area: Quicksand Caves -- NPC: Ornate Door -- Door blocked by Weight system -- @pos -410 0 662 208 ----------------------------------- package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Quicksand_Caves/TextIDs...
gpl-3.0
AdamGagorik/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
AdamGagorik/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Cattah_Pamjah.lua
13
1065
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Cattah Pamjah -- Type: Title Changer -- @zone: 94 -- @pos -13.564 -2 10.673 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;...
gpl-3.0
AdamGagorik/darkstar
scripts/commands/togglegm.lua
50
1876
--------------------------------------------------------------------------------------------------- -- func: togglegm -- desc: Toggles a GMs nameflags/icon. --------------------------------------------------------------------------------------------------- cmdprops = { permission = 1, parameters = "" }; funct...
gpl-3.0
sbuettner/kong
spec/plugins/basicauth/api_spec.lua
9
3667
local json = require "cjson" local http_client = require "kong.tools.http_client" local spec_helper = require "spec.spec_helpers" describe("Basic Auth Credentials API", function() local BASE_URL, credential, consumer setup(function() spec_helper.prepare_db() spec_helper.start_kong() end) teardown(fun...
mit
TrurlMcByte/docker-prosody
etc/prosody-modules/mod_cloud_notify/mod_cloud_notify.lua
1
5965
-- XEP-0357: Push (aka: My mobile OS vendor won't let me have persistent TCP connections) -- Copyright (C) 2015 Kim Alvefur -- -- This file is MIT/X11 licensed. local st = require"util.stanza"; local jid = require"util.jid"; local dataform = require"util.dataforms".new; local filters = require "util.filters"; local x...
mit
AdamGagorik/darkstar
scripts/zones/Labyrinth_of_Onzozo/mobs/Flying_Manta.lua
6
1435
----------------------------------- -- Area: Labyrinth of Onzozo -- MOB: Flying Manta -- Note: Place holder Lord of Onzozo ----------------------------------- require("scripts/globals/groundsofvalor"); require("scripts/zones/Labyrinth_of_Onzozo/MobIDs"); ----------------------------------- -- onMobDeath ------------...
gpl-3.0
Hostle/luci
modules/luci-base/luasrc/tools/webadmin.lua
59
2301
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008-2015 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.tools.webadmin", package.seeall) local util = require "luci.util" local uci = require "luci.model.uci" local ip = require "luci.ip" func...
apache-2.0
kanaka/raft.js
research_class/pgfplots/tex/generic/pgfplots/lua/pgfplots/streamer.lua
4
5913
-- Contains coordinate streamers, i.e. classes which generate coordinates and stream them to some output stream local math=math local pgfplotsmath = pgfplots.pgfplotsmath local type=type local tostring=tostring local error=error local table=table do -- all globals will be read from/defined in pgfplots: local _ENV = p...
mpl-2.0
sombree/android_external_skia
tools/lua/scrape.lua
145
2246
function tostr(t) local str = "" for k, v in next, t do if #str > 0 then str = str .. ", " end if type(k) == "number" then str = str .. "[" .. k .. "] = " else str = str .. tostring(k) .. " = " end if type(v) == "table" then ...
bsd-3-clause
robertfoss/nodemcu-firmware
lua_modules/lm92/lm92.lua
52
2140
-- ****************************************************** -- LM92 module for ESP8266 with nodeMCU -- -- Written by Levente Tamas <levente.tamas@navicron.com> -- -- GNU LGPL, see https://www.gnu.org/copyleft/lesser.html -- ****************************************************** -- Module Bits local moduleName = ... loca...
mit