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
omid1212/fgtty
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
Cloudef/darkstar
scripts/globals/items/apocalypse.lua
2
3592
----------------------------------------- -- ID: 18306, 18307, 18644, 18658, 18672, 19753, 19846, 20880, 20881, 21808 -- Item: Apocalypse -- Additional Effect: Blindness ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); require...
gpl-3.0
woshihuo12/UnityHello
UnityHello/Assets/Lua/common/stateful.lua
2
6292
-- # Example -- ``` lua -- local class = require 'middleclass' -- local Stateful = require 'stateful' -- local Enemy = class('Enemy') -- Enemy:include(Stateful) -- function Enemy:initialize(health) -- self.health = health -- end -- function Enemy:speak() -- return 'My health is' .. tostring(self.health) -- end -...
mit
fgprodigal/RayUI
Interface/AddOns/RayUI/core/consts.lua
1
1682
---------------------------------------------------------- -- Load RayUI Environment ---------------------------------------------------------- RayUI:LoadEnv() R.myclass = select(2, UnitClass("player")) R.myname = UnitName("player") R.myrealm = GetRealmName() R.version = G...
mit
Cloudef/darkstar
scripts/zones/Nashmau/npcs/Jajaroon.lua
5
1385
----------------------------------- -- Area: Nashmau -- NPC: Jajaroon -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Nashmau/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Nashmau/TextIDs"); require("scripts/globals/shop"); ----------------------...
gpl-3.0
Cloudef/darkstar
scripts/globals/spells/freeze.lua
4
1033
----------------------------------------- -- Spell: Freeze -- Deals ice damage to an enemy and lowers its resistance against fire. ----------------------------------------- require("scripts/globals/magic"); require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast -------------------...
gpl-3.0
fiallo1313veeee/Anti_bot
plugins/tosticker.lua
1
1028
local function tosticker(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/pic.webp' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) send_document(get_receiver(msg), file, ok_cb, false) redis:del("pic...
gpl-2.0
Howaner/MCServer
Server/Plugins/APIDump/Hooks/OnPlayerPlacingBlock.lua
36
2109
return { HOOK_PLAYER_PLACING_BLOCK = { CalledWhen = "Just before a player places a block. Plugin may override / refuse.", DefaultFnName = "OnPlayerPlacingBlock", -- also used as pagename Desc = [[ This hook is called just before a {{cPlayer|player}} places a block in the {{cWorld|world}}. The block is no...
apache-2.0
mehrpouya81/iranspammer
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
masoudre11/luasocket
etc/check-links.lua
43
3363
----------------------------------------------------------------------------- -- Little program that checks links in HTML files, using coroutines and -- non-blocking I/O via the dispatcher module. -- LuaSocket sample files -- Author: Diego Nehab --------------------------------------------------------------------------...
mit
PocketRocketRoche/GamesEngines1Assignment
Dependancies/bullet-2.81-rev2613/build/premake4.lua
8
4815
--add the 0 so the solution comes first in the directory (when sorted on name) --print "uncomment this hello premake4 world for debugging the script" solution "0BulletSolution" newoption { trigger = "ios", description = "Enable iOS target (requires xcode4)" } newoption { trigger = "without-demos...
mit
Ali-2h/hossein
plugins/sudo.lua
359
1878
function run_sh(msg) name = get_name(msg) text = '' -- if config.sh_enabled == false then -- text = '!sh command is disabled' -- else -- if is_sudo(msg) then -- bash = msg.text:sub(4,-1) -- text = run_bash(bash) -- else -- text = name .. ' yo...
gpl-2.0
maikerumine/aftermath
mods/mobs_futuremobs/api.lua
2
23490
futuremobs = {} function futuremobs:register_mob(name, def) minetest.register_entity(name, { name = name, hp_min = def.hp_min, hp_max = def.hp_max, physical = true, collisionbox = def.collisionbox, visual = def.visual, visual_size = def.visual_size, mesh = def.mesh, textures = def.textures, makes_f...
lgpl-2.1
mohammad8/123456
plugins/channels.lua
45
1681
-- 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
FelixMaxwell/ReDead
gamemode/vgui/vgui_shopmenu.lua
1
1930
local PANEL = {} function PANEL:Init() //self:SetTitle( "" ) //self:ShowCloseButton( false ) //self:SetDraggable( false ) self.Items = {} self.List = vgui.Create( "DListView", self ) local col1 = self.List:AddColumn( "Ordered Item" ) local col2 = self.List:AddColumn( "Cost" ) col1:SetMinWidth( 150 ) ...
mit
gajop/chiliui
luaui/chili/chili/controls/screen.lua
1
9332
--- Screen module --- Screen fields. -- Inherits from Object. -- @see object.Object -- @table Screen -- @int[opt = 0] x x position -- @int[opt = 0] y y position -- @int[opt = 0] width width -- @int[opt = 0] height height -- @tparam control.Control activeControl active control -- @tparam control.Control focu...
gpl-2.0
lizh06/premake-4.x
src/actions/vstudio/vs2010_vcxproj_filters.lua
17
2473
-- -- vs2010_vcxproj_filters.lua -- Generate a Visual Studio 2010 C/C++ filters file. -- Copyright (c) 2009-2011 Jason Perkins and the Premake project -- local vc2010 = premake.vstudio.vc2010 local project = premake.project -- -- The first portion of the filters file assigns unique IDs to each -- directory or vir...
bsd-3-clause
mega9/GTW-RPG
[misc]/modsys/client.lua
2
12683
local serverIp = "gs.gtw-games.org:81" -- Your server IP address (public IP) -> Get from http://whatsmyip.org local ipv4IP = "192.168.0.91:80" -- Open cmd, type "ipconfig" and place the IPv4 address here local downloadDirectory = "/mta-mods" -- This is the file path to the location of the mods -- Don't include the...
gpl-3.0
mandla99/the_king98
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
caohongtao/quick-cocos-demo
runtime/mac/PrebuiltRuntimeLua.app/Contents/Resources/src/framework/anysdkConst.lua
20
6171
function CreatEnumTable(tbl, index) local enumtbl = {} local enumindex = index or 0 for i, v in ipairs(tbl) do enumtbl[v] = enumindex + i - 1 end return enumtbl end Plugin_type = { "kPluginAds", "kPluginAnalytics", "kPluginIAP", "kPluginShare", "kPluginUser", ...
apache-2.0
safavi1381/Master-bot
plugins/lyrics.lua
695
2113
do local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs' local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5' local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect' local function getInfo(query) print('Getting info of ' .. query) local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY ...
gpl-2.0
FelixMaxwell/ReDead
entities/weapons/rad_shotgun/shared.lua
1
7585
if SERVER then AddCSLuaFile("shared.lua") end if CLIENT then SWEP.ViewModelFlip = true SWEP.PrintName = "Winchester 1887" SWEP.IconLetter = "k" SWEP.Slot = 3 SWEP.Slotpos = 3 end SWEP.HoldType = "shotgun" SWEP.Base = "rad_base" SWEP.ViewModel = "models/weapons/v_shot_m3super91.mdl" SWEP.WorldModel = ...
mit
ntop/ntopng
scripts/lua/modules/alert_definitions/flow/alert_ndpi_ssh_obsolete_server.lua
1
1214
-- -- (C) 2019-22 - ntop.org -- -- ############################################## local flow_alert_keys = require "flow_alert_keys" -- Import the classes library. local classes = require "classes" -- Make sure to import the Superclass! local alert = require "alert" -- ############################################## ...
gpl-3.0
graydon/monotone
tests/(todo)_design_approval_semantics/__driver__.lua
1
2467
-- This test is a bug report. xfail_if(true, false) -- There's a somewhat subtle issue about approval, branch membership, -- etc. The way I (njs) had been thinking about things originally, a -- revision R is in a branch B iff there's a valid trusted cert cert(R, -- "branch", B). So, currently e.g. 'propagate' will ...
gpl-2.0
ntop/ntopng
doc/src/api/lua_c/interface/interface_hosts.lua
2
5607
--! @brief Get active hosts information. --! @param show_details enable extended information. --! @param sortColumn column to use for sorting. --! @param maxHits maximum number of returned items. --! @param toSkip number of initial items to skip after sorting. --! @param a2zSortOrder if true, enable ascending sort orde...
gpl-3.0
eaufavor/AwesomeWM-powerarrow-dark
forgotten/init.lua
1
7145
-- This module provide a basic register manager -- It does not save anything yet, it could be added later -- Author Emmanuel Lepage Vallee <elv1313@gmail.com> (2011-2013) local setmetatable = setmetatable local loadstring = loadstring local table = table local io = io local rawset,rawget= rawset,raw...
apache-2.0
charbaak/conky_script_kde
conky/Personal2/rings-v1.3.1.lua
1
11108
--[[ Ring Meters by londonali1010 (2009) This script draws percentage meters as rings. It is fully customisable; all options are described in the script. IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the sc...
gpl-3.0
maikerumine/aftermath
mods/handle_schematics/place_buildings.lua
2
33278
-- TODO: this function also occours in replacements.lua handle_schematics.get_content_id_replaced = function( node_name, replacements ) if( not( node_name ) or not( replacements ) or not(replacements.table )) then return minetest.get_content_id( 'ignore' ); end if( replacements.table[ node_name ]) then return mi...
lgpl-2.1
dani-sj/extremenod
plugins/all.lua
88
4791
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
drandell/btmn
Libraries/STI/map.lua
6
36770
--- Map object -- @module map local path = (...):gsub('%.[^%.]+$', '') .. "." local pluginPath = string.gsub(path, "[.]", "/") .. "plugins/" local Map = {} -- https://github.com/stevedonovan/Penlight/blob/master/lua/pl/path.lua#L286 local function formatPath(path) local np_gen1,np_gen2 = '[^SEP]+SEP%.%...
gpl-3.0
sparrow8332/CQUI_Community-Edition
Integrations/BTS/UI/tradeoverview.lua
2
88069
-- =========================================================================== -- SETTINGS -- =========================================================================== local showSortOrdersPermanently = false local addDividerBetweenGroups = true local colorYieldValues = true local hideTradingPostIcon = false -- Col...
mit
FelixMaxwell/ReDead
gamemode/init.lua
1
41908
include( 'player_class/player_base.lua' ) include( 'player_class/player_zombie.lua' ) include( 'map_defaults.lua' ) include( 'resource.lua' ) include( 'enums.lua' ) include( 'items.lua' ) include( 'events.lua' ) include( 'shared.lua' ) include( 'moddable.lua' ) include( 'ply_extension.lua' ) include( 'tables.lua' ) in...
mit
matinbot/telebot
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
ckaotik/ckaosCraft
tracker.lua
1
4235
local addonName, addon, _ = ... local plugin = addon:NewModule('Tracker', 'AceEvent-3.0') local defaults = { char = { trackProfession = { [1] = true, -- primary (first) [2] = true, -- primary (second) [3] = true, -- archaeology [4] = true, -- fishing [5] = true, -- cooking [6] = true, -- first aid...
bsd-3-clause
RadioactiveMonkey/InflateGame
Inflate/spinner.lua
1
1843
class = require 'middleclass' Spinner = class("Spinner") function Spinner:initialize( x , y ) self.position = Vector2:new( x , y ) self.radius = 15 * ScreenSizeRatio self.MaxRadius = 30 * ScreenSizeRatio self.angle = 0 self.ratio = math.tan( self.angle ) self.LastShotTime = os.clock() self.alive = true self....
mit
shironecko/LuaMaze
source/main_tile.lua
1
2141
-- this is an example love2d project entry-point local Maze = require "maze" local list = require "listbox" local maze local batches local image local algo = "aldous_broder" local time = 0 function love.load() love.window.setTitle("LuaMaze") math.randomseed(os.time()) maze = Maze:new(17, 18, true) local t = ...
mit
noa/nn
hessian.lua
33
15791
---------------------------------------------------------------------- -- hessian.lua: this file appends extra methods to modules in nn, -- to estimate diagonal elements of the Hessian. This is useful -- to condition learning rates individually. ---------------------------------------------------------------------- nn....
bsd-3-clause
graydon/monotone
tests/reverting_a_pivot_root/__driver__.lua
1
1376
mtn_setup() -- This test is a bug report -- I think the problem is just generally that revert does not do a good -- job cleaning up after renames? mkdir("workspace") check(indir("workspace", mtn("setup", ".", "-b", "testbranch")), 0, false, false) mkdir("workspace/dir1") mkdir("workspace/dir1/dir2") writefile("work...
gpl-2.0
maikerumine/aftermath
mods/farming/api.lua
6
7451
-- Wear out hoes, place soil -- TODO Ignore group:flower farming.hoe_on_use = function(itemstack, user, pointed_thing, uses) local pt = pointed_thing -- check if pointing at a node if not pt then return end if pt.type ~= "node" then return end local under = minetest.get_node(pt.under) local p = {x=pt.unde...
lgpl-2.1
sevenbot/seventmbot
plugins/banhammer.lua
1085
11557
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
SF-TEAM/SF
plugins/banhammer.lua
1085
11557
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 ...
agpl-3.0
deveNovar/DEveNovar
plugins/ingroup.lua
4
60305
do -- Check Member local function check_member_autorealm(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.peer_id if member_id ~= our_id then -- Group configuration data[...
gpl-2.0
mandla99/the_king98
plugins/image.lua
1
1602
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY abo_shosho98 ▀▄ ▄▀ ▀▄ ▄▀ BY Th3_BOOS (@abo_shosho98 ) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY abo_shosho98 ▀▄ ▄▀ ▀▄ ▄▀ Image Converter : تحويل صوره ▀▄ ▄▀ ▀...
gpl-2.0
Behemyth/LifeSim
LifeSim/Libraries/bullet/Demos/OpenCLClothDemo/NVidia/premake4.lua
12
1125
hasCL = findOpenCL_NVIDIA() if (hasCL) then project "AppOpenCLClothDemo_NVIDIA" defines { "USE_NVIDIA_OPENCL","CL_PLATFORM_NVIDIA"} initOpenCL_NVIDIA() language "C++" kind "ConsoleApp" targetdir "../../.." libdirs {"../../../Glut"} links { "LinearMath", "BulletCollision", "Bul...
mit
baiwenlu/sailor
src/sailor/test.lua
2
2732
-------------------------------------------------------------------------------- -- test.lua, v0.4: Helper functions for testing functionality -- This file is a part of Sailor project -- Copyright (c) 2014-2015 Etiene Dalcol <dalcol@etiene.net> -- License: MIT -- http://sailorproject.org -------------------------------...
mit
corbinmunce/domoticz
scripts/lua/JSON.lua
28
50533
-- -*- 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...
gpl-3.0
bernardolm/TecladoVirtualGingaNCL
Teclado.lua
1
2798
require("libTecladoAlfa") require("libFuncoes") palavra = '' estatus = 'a' inicio = 0 teclado = 'teclado_a.png' caracter = '' function handler(evt) --local W, H = 341, 136 local tecla_x, tecla_y = 05, 40 canvas:attrColor(255, 255, 255, 0) --canvas:drawRect('fill', 05, 20, W, H) if inicio == 0 then drawTecl...
gpl-3.0
adib1380/BotiSmylife
plugins/steam.lua
645
2117
-- See https://wiki.teamfortress.com/wiki/User:RJackson/StorefrontAPI do local BASE_URL = 'http://store.steampowered.com/api/appdetails/' local DESC_LENTH = 200 local function unescape(str) str = string.gsub( str, '&lt;', '<' ) str = string.gsub( str, '&gt;', '>' ) str = string.gsub( str, '&quot;', '"' ) str...
gpl-2.0
Mortezarohandeh1/hack_shop2bot
plugins/steam.lua
645
2117
-- See https://wiki.teamfortress.com/wiki/User:RJackson/StorefrontAPI do local BASE_URL = 'http://store.steampowered.com/api/appdetails/' local DESC_LENTH = 200 local function unescape(str) str = string.gsub( str, '&lt;', '<' ) str = string.gsub( str, '&gt;', '>' ) str = string.gsub( str, '&quot;', '"' ) str...
gpl-2.0
cis542/VR_Wall
PongGame2/glsdk/glload/codegen/_MakeMainHeaderFile.lua
5
5840
--[[ MakeMainHeaderFile will generate the internal header file that GLE uses to load the extension functions for this spec data. This header exposes the following: == Mapping table and size == The mapping table structure is defined in "gll_util.h". This variable is an array of these structs, one per extension. The e...
epl-1.0
mohammadspemmer/mamad
libs/XMLElement.lua
569
4025
-- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence. -- updated for module-free world of lua 5.3 on April 2 2015 -- Not documented at all, but not interesting enough to warrant documentation anyway. local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ...
gpl-3.0
mandla99/the_king98
libs/XMLElement.lua
569
4025
-- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence. -- updated for module-free world of lua 5.3 on April 2 2015 -- Not documented at all, but not interesting enough to warrant documentation anyway. local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ...
gpl-2.0
Bierbuikje/Mr.Green-MTA-Resources
resources/[admin]/anti/colstate_s.lua
4
2342
-- add to collisionless local collisionlessTable = {} punishedForMap = {} function getPlayerCollisionless(player) return collisionlessTable[player] or false end function setPlayerCollisionless(player) if getElementType(player) ~= "player" then return end if not collisionlessTable[player] then -- outputDebug...
mit
graydon/monotone
tests/(todo)_vcheck/__driver__.lua
1
2427
mtn_setup() -- This test is a bug report (feature request). xfail_if(true, false) -- There used to be a command 'vcheck', that defended against the -- chance of (accidental or malicious) SHA1 collision. The way it did -- this was by putting certs named "vcheck" on manifests, and these -- certs contained a re-hash o...
gpl-2.0
mohammadspemmer/mamad
plugins/helpenergy.lua
1
218525
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <link rel="dns-prefetch" href="https://assets-cdn.github.com"> <link rel="dns-prefetch" href="https://avatars0.githubusercontent.com"> <link rel="dns-prefetch" href="https://avatars1.githubusercontent.com"> <link rel="dns-prefetch" href=...
gpl-3.0
trompetin17/wxFormBuilder-Atlas
build/premake/4.3/src/_manifest.lua
6
1838
-- -- _manifest.lua -- Manage the list of built-in Premake scripts. -- Copyright (c) 2002-2010 Jason Perkins and the Premake project -- -- The master list of built-in scripts. Order is important! If you want to -- build a new script into Premake, add it to this list. return { -- core files "base/os.lua", "bas...
gpl-2.0
Bierbuikje/Mr.Green-MTA-Resources
resources/[race]/race/edf/edf.lua
4
3612
g_ModelForPickupType = { nitro = 2221, repair = 2222, vehiclechange = 2223 } addEventHandler ( "onMapOpened", root, function() for i,pickup in ipairs(getElementsByType"racepickup") do local pickupType = exports.edf:edfGetElementProperty ( pickup, "type" ) local object = getRepresentation(pickup, "object") ...
mit
FelixMaxwell/ReDead
gamemode/weather.lua
1
16025
GM.Weather = {} GM.Weather.Rain = 0 GM.Weather.Thunder = 0 GM.Weather.Lightning = 0 GM.Weather.Wind = 0 GM.Weather.TransitionTime = 60 // 1 minute for weather transitions GM.Weather.New = {} GM.Weather.New.Rain = 0 GM.Weather.New.Thunder = 0 GM.Weather.New.Lightning = 0 GM.Weather.New.Wind = 0 function GM:EntityKey...
mit
staltz/telegram-bot
bot/JSON.lua
10
30341
-- -*- 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
eaufavor/AwesomeWM-powerarrow-dark
drawer/soundInfo.lua
1
3754
local setmetatable = setmetatable local tonumber = tonumber local io = io local type = type local print = print local button = require("awful.button") local vicious = require("extern.vicious") local wibox = require("wibox") local widget2 = require("awful.widget") local config = require("forgotten") local beautiful = re...
apache-2.0
corbinmunce/domoticz
dzVents/runtime/tests/testUtils.lua
3
2060
local _ = require 'lodash' --package.path = package.path .. ";../?.lua" local scriptPath = '' package.path = package.path .. ";../?.lua;" .. scriptPath .. '/?.lua;../device-adapters/?.lua;../../../scripts/lua/?.lua;' local LOG_INFO = 2 local LOG_DEBUG = 3 local LOG_ERROR = 1 describe('event helpers', function() l...
gpl-3.0
Fawk/CleanUI
modules/units/elements/buffs.lua
1
8670
local A, L = unpack(select(2, ...)) --[[ Blizzard ]] local CreateFrame = CreateFrame local CreatePoolCollection = CreatePoolCollection --[[ Lua ]] local tremove = table.remove local tinster = table.insert local sort = table.sort --[[ Locals ]] local E = A.enum local T = A.Tools local Units = A.Units local U = A.Util...
gpl-3.0
icetoggle/skynet
lualib/skynet/socket.lua
5
9719
local driver = require "skynet.socketdriver" local skynet = require "skynet" local skynet_core = require "skynet.core" local assert = assert local BUFFER_LIMIT = 128 * 1024 local socket = {} -- api local socket_pool = setmetatable( -- store all socket object {}, { __gc = function(p) for id,v in pairs(p) do driv...
mit
Fawk/CleanUI
modules/units/elements/debuffs.lua
1
8211
local A, L = unpack(select(2, ...)) --[[ Blizzard ]] local CreateFrame = CreateFrame local CreatePoolCollection = CreatePoolCollection --[[ Lua ]] local tremove = table.remove local tinster = table.insert local sort = table.sort --[[ Locals ]] local E = A.enum local T = A.Tools local Units = A.Units local U = A.Util...
gpl-3.0
spark051/bt.bot
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
ghoghnousteamHT/ghoghnous_bot
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
mohammad8/123456
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
Jar-Chi/JarChi
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-3.0
telematin/telematinweb
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
mega9/GTW-RPG
[resources]/GTWturnsignals/turninsignals.lua
1
5578
--[[ ******************************************************************************** Project owner: GTWGames Project name: GTW-RPG Developers: GTWCode Source code: https://github.com/GTWCode/GTW-RPG/ Bugtracker: http://forum.albonius.com/bug-reports/ Suggestions: http://forum.albonius.com...
gpl-3.0
AlanZatarain/google-diff-match-patch
lua/diff_match_patch_test.lua
264
39109
--[[ * Test Harness for Diff Match and Patch * * Copyright 2006 Google Inc. * http://code.google.com/p/google-diff-match-patch/ * * Based on the JavaScript implementation by Neil Fraser * Ported to Lua by Duncan Cross * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except...
apache-2.0
James226/track-master
TrackMaster/Libs/LibBusted-2.0/Luassert/stub.lua
3
2435
local MAJOR, MINOR = "Olivine:Luassert:Stub-1.0", 1 -- Get a reference to the package information if any local APkg = Apollo.GetPackage(MAJOR) -- If there was an older version loaded we need to see if this is newer if APkg and (APkg.nVersion or 0) >= MINOR then return end ------------------------------------------...
gpl-2.0
mamadtnt/um
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
trompetin17/wxFormBuilder-Atlas
build/premake/4.3/tests/actions/vstudio/test_vs200x_vcproj.lua
6
15144
-- -- tests/test_vs200x_vcproj.lua -- Automated test suite for Visual Studio 2002-2008 C/C++ project generation. -- Copyright (c) 2009 Jason Perkins and the Premake project -- T.vs200x_vcproj = { } local suite = T.vs200x_vcproj local vcproj = premake.vstudio.vcproj -- -- Configure a solution for testing -- loc...
gpl-2.0
thatfrankdev/cmder-dev-environment
cmder/vendor/conemu-maximus5/ConEmu/Far3_lua/Editor.MsRClick.lua
3
1840
 -- Place this file into your %FARPROFILE%\Macros\scripts -- This macros was created to simplify Far Editor usage on tablets -- Mapped to MsRClick (or long tap on tablets) it will show menu -- ┌───────────────────────┐ -- │ Copy whole line │ -- │ Copy single word │ -- │ Paste from clipboard │ -- └───────...
mit
ntop/ntopng
scripts/lua/rest/v1/get/timeseries/ts.lua
1
7645
-- -- (C) 2013-22 - ntop.org -- -- -- Example of REST call -- -- curl -u admin:admin -X POST -d '{"ts_schema":"host:traffic", "ts_query": "ifid:3,host:192.168.1.98", "epoch_begin": "1532180495", "epoch_end": "1548839346"}' -H "Content-Type: application/json" "http://127.0.0.1:3000/lua/rest/get/timeseries/ts.lua" -- ...
gpl-3.0
ntop/ntopng
attic/scripts/lua/get_hitters_data.lua
2
2695
-- -- (C) 2013-17 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" sendHTTPContentTypeHeader('text/html') local debug = false local debug_process = false -- Show flow processed information interface.select(ifname) ifstats = inter...
gpl-3.0
windofthesky/thrift
lib/lua/TFramedTransport.lua
71
2957
-- -- 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
shayanchabok007/antispam_ok_new
bot/utils.lua
494
23873
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
ghoghnousteamHT/ghoghnous_bot
bot/utils.lua
494
23873
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
Feuermurmel/Enigma
data/api2init.lua
4
27806
------------------------------------------------------------------------ -- Copyright (C) 2008,2009,2010,2011 Ronald Lamprecht -- -- 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 versio...
gpl-2.0
eaufavor/AwesomeWM-powerarrow-dark
widgets/tablist_old.lua
1
6823
--------------------------------------------------------------------------- -- @author Emmanuel Lepage Vallee &lt;elv1313@gmail.com&gt; -- @copyright 2008-2009 Julien Danjou -- @release v3.4-rc3 --------------------------------------------------------------------------- -- Grab environment we need local capi = { scree...
apache-2.0
huangleiBuaa/CenteredWN
module/BatchLinear_FIM.lua
1
9963
--[[ This paper is from the offcial implementation on torch This file implements Batch Normalization as described in the paper: "Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift" by Sergey Ioffe, Christian Szegedy This implem...
bsd-2-clause
ophal/core
modules/content/init.lua
1
9557
local config = settings.content local env, theme, _GET, tonumber, ceil = env, theme, _GET, tonumber, math.ceil local tinsert, tconcat, pairs, debug = table.insert, table.concat, pairs, debug local pager, l, page_set_title, arg = pager, l, page_set_title, route_arg local tonumber, format_date = tonumber, format_date loc...
agpl-3.0
dalab/deep-ed
ed/models/SetConstantDiag.lua
1
1783
-- Torch layer that receives as input a squared matrix and sets its diagonal to a constant value. local SetConstantDiag, parent = torch.class('nn.SetConstantDiag', 'nn.Module') function SetConstantDiag:__init(constant_scalar, ip) parent.__init(self) assert(type(constant_scalar) == 'number', 'input is not scalar!'...
apache-2.0
nsimplex/snailking
scripts/snailking/wicker/utils/table.lua
2
1067
--[[ Copyright (C) 2013 simplex 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 ...
gpl-2.0
eaufavor/AwesomeWM-powerarrow-dark
extern/scratch/pad.lua
6
4931
--------------------------------------------------------------- -- Basic scratchpad manager for the awesome window manager --------------------------------------------------------------- -- Coded by: * Adrian C. (anrxc) <anrxc@sysphere.org> -- Licensed under the WTFPL version 2 -- * http://sam.zoy.org/wtfpl/COPYING -...
apache-2.0
ntop/ntopng
scripts/lua/rest/v2/get/timeseries/ts.lua
1
2251
-- -- (C) 2013-22 - ntop.org -- -- -- Example of REST call -- -- curl -u admin:admin -X POST -d '{"ts_schema":"host:traffic", "ts_query": "ifid:3,host:192.168.1.98", "epoch_begin": "1532180495", "epoch_end": "1548839346"}' -H "Content-Type: application/json" "http://127.0.0.1:3000/lua/rest/get/timeseries/ts.lua" -- ...
gpl-3.0
mega9/GTW-RPG
[resources]/GTWsafeareas/safearea_c.lua
1
2511
--[[ ******************************************************************************** Project owner: GTWGames Project name: GTW-RPG Developers: GTWCode Source code: https://github.com/GTWCode/GTW-RPG/ Bugtracker: http://forum.albonius.com/bug-reports/ Suggestions: http://forum.albonius.com...
gpl-3.0
mohammad8/123456
plugins/isup.lua
741
3095
do local socket = require("socket") local cronned = load_from_file('data/isup.lua') local function save_cron(msg, url, delete) local origin = get_receiver(msg) if not cronned[origin] then cronned[origin] = {} end if not delete then table.insert(cronned[origin], url) else for k,v in pairs(cronned[...
gpl-2.0
huangleiBuaa/CenteredWN
module/spatial/Spatial_Scaling.lua
1
3979
local Spatial_Scaling,parent = torch.class('nn.Spatial_Scaling', 'nn.Module') function Spatial_Scaling:__init(nFeature, initial, withBias, BIUni) parent.__init(self) assert(nFeature and type(nFeature) == 'number', 'Missing argument #1: Number of feature planes. ') if withBias ~=nil then asse...
bsd-2-clause
ntop/ntopng
scripts/lua/modules/lua_utils_gui.lua
1
66408
-- -- (C) 2014-22 - ntop.org -- -- -- Container for GUI-related stuff that used to be part of lua_utils.lua -- local clock_start = os.clock() local format_utils = require "format_utils" local dns_utils = require "dns_utils" local http_utils = require "http_utils" -- ############################################## f...
gpl-3.0
pgl/prat
modules/ScrollingMessageFrameHacks.lua
2
8801
Prat:AddModuleToLoad(function() local SMFHax = Prat:NewModule("SMFHax", "AceHook-3.0") SMFHax.fs_pool = {} local new, del do local wipe = wipe local cache = setmetatable({}, {__mode='k'}) function new() local t = next(cache) if t then cache[t] = nil return t else return {} end ...
gpl-3.0
spark051/bt.bot
plugins/torrent_search.lua
411
1622
--[[ NOT USED DUE TO SSL ERROR -- See https://getstrike.net/api/ local function strike_search(query) local strike_base = 'http://getstrike.net/api/v2/torrents/' local url = strike_base..'search/?phrase='..URL.escape(query) print(url) local b,c = http.request(url) print(b,c) local search = json:decode(b) v...
gpl-2.0
safavi1381/Master-bot
plugins/torrent_search.lua
411
1622
--[[ NOT USED DUE TO SSL ERROR -- See https://getstrike.net/api/ local function strike_search(query) local strike_base = 'http://getstrike.net/api/v2/torrents/' local url = strike_base..'search/?phrase='..URL.escape(query) print(url) local b,c = http.request(url) print(b,c) local search = json:decode(b) v...
gpl-2.0
Banderi/OpenTomb
scripts/gameflow/TR3.lua
2
8419
-- Gameflow Script for OpenTomb -- Game: Tomb Raider: III -- Version: 1.0 -- By: Gh0stBlade ---------------------------------------------------------------------------------------------------------------------------------------------------- gameflow_paths[GAME_3].numlevels = 20; -------------------------------------...
lgpl-3.0
shadowmourne/vicious
widgets/os.lua
15
2143
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Adrian C. <anrxc@sysphere.org> --------------------------------------------------- -- {{{ Grab environment local pairs = pairs local tonumber = tonumber local io = { popen = io.popen } local math = {...
gpl-2.0
graydon/monotone
tests/updating_to_a_given_revision/__driver__.lua
1
1313
mtn_setup() check(get("root")) check(get("middle")) check(get("left-leaf")) check(get("right-leaf")) check(get("modified-left-leaf")) check(get("modified-root")) revs = {} -- Create root revision. copy("root", "testfile") check(mtn("add", "testfile"), 0, false, false) commit() revs.root = base_revision() -- Create...
gpl-2.0
gusew/cate
examples/rules/rls_5tpl-fw1-1000.lua
1
204475
rls_5tpl_fw1_1000 = createRuleset() addRuleToRuleset(rls_5tpl_fw1_1000, {ruleAtomPrefix(ipv4Toi("28.53.85.68"), maskToi(30)), ruleAtomPrefix(ipv4Toi("31.116.176.36"), maskToi(31)), ruleAtomExact(161), ruleAtomExact(754), ruleAtomExact(17)}) addRuleToRuleset(rls_5tpl_fw1_1000, {ruleAtomExact(ipv4Toi("235.202.225.12")), ...
gpl-2.0
icetoggle/skynet
service/sharedatad.lua
7
3384
local skynet = require "skynet" local sharedata = require "skynet.sharedata.corelib" local table = table local cache = require "skynet.codecache" cache.mode "OFF" -- turn off codecache, because CMD.new may load data file local NORET = {} local pool = {} local pool_count = {} local objmap = {} local collect_tick = 10 ...
mit