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
liruqi/bigfoot
Interface/AddOns/Bagnon_GuildBank/components/logToggle.lua
1
1789
--[[ logToggle.lua A guild log toggle widget --]] local L = LibStub('AceLocale-3.0'):GetLocale('Bagnon-GuildBank') local LogToggle = Bagnon:NewClass('LogToggle', 'CheckButton') LogToggle.Icons = { [[Interface\Icons\INV_Crate_03]], [[Interface\Icons\INV_Misc_Coin_01]], [[Interface\Icons\INV_Letter_20]] } --[[ C...
mit
liruqi/bigfoot
Interface/AddOns/Bagnon_Forever/db.lua
1
10968
--[[ Database.lua BagnonForever's implementation of BagnonDB --]] BagnonDB = CreateFrame('GameTooltip', 'BagnonDB', nil, 'GameTooltipTemplate') BagnonDB:SetScript('OnEvent', function(self, event, arg1) if arg1 == 'Bagnon_Forever' then self:UnregisterEvent('ADDON_LOADED') self:Initialize() end e...
mit
liruqi/bigfoot
Interface/AddOns/Recount/TrackerModules/TrackerModule_Interrupts.lua
1
4296
local Recount = _G.Recount local AceLocale = LibStub("AceLocale-3.0") local L = AceLocale:GetLocale( "Recount" ) local revision = tonumber(string.sub("$Revision: 1311 $", 12, -3)) if Recount.Version < revision then Recount.Version = revision end local GameTooltip = GameTooltip local dbCombatants local...
mit
ingran/balzac
custom_feeds/teltonika_luci/applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua
14
3181
--[[ Luci diag - Diagnostics controller module (c) 2009 Daniel Dickinson 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 ]]-- module("luci.cont...
gpl-2.0
gonku/awesome-wm-pabucolor
lain/widgets/net.lua
1
3150
--[[ Licensed under GNU General Public License v2 * (c) 2013, Luke Bonham * (c) 2010-2012, Peter Hofmann --]] local helpers = require("lain.helpers") local n...
gpl-2.0
shiprabehera/kong
spec/03-plugins/17-jwt/02-api_spec.lua
4
9852
local helpers = require "spec.helpers" local cjson = require "cjson" local jwt_secrets = helpers.dao.jwt_secrets local fixtures = require "spec.03-plugins.17-jwt.fixtures" describe("Plugin: jwt (API)", function() local admin_client, consumer, jwt_secret setup(function() helpers.run_migrations() assert(he...
apache-2.0
TechAtNYU/wiki
extensions/Scribunto/tests/engines/LuaStandalone/StandaloneTests.lua
9
1406
local testframework = require( 'Module:TestFramework' ) local function setfenv1() local ok, err = pcall( function() setfenv( 2, {} ) end ) if not ok then err = string.gsub( err, '^%S+:%d+: ', '' ) error( err ) end end local function getfenv1() local env pcall( function() env = getfenv( 2 ) end ) retur...
gpl-2.0
JohnPeacockMessageSystems/lxc
src/lua-lxc/lxc.lua
26
10159
-- -- lua lxc module -- -- Copyright © 2012 Oracle. -- -- Authors: -- Dwight Engen <dwight.engen@oracle.com> -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public -- License as published by the Free Software Foundation; either -- version 2....
lgpl-2.1
topameng/tolua_runtime
luajit-2.1/src/host/genminilua.lua
47
12039
---------------------------------------------------------------------------- -- Lua script to generate a customized, minified version of Lua. -- The resulting 'minilua' is used for the build process of LuaJIT. ---------------------------------------------------------------------------- -- Copyright (C) 2005-2017 Mike P...
mit
inTact700/VLCHotkey
share/lua/playlist/mpora.lua
97
2565
--[[ $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...
gpl-2.0
Capibara-/cardpeek
dot_cardpeek_dir/scripts/vitale_2.lua
17
5057
-- -- This file is part of Cardpeek, the smartcard reader utility. -- -- Copyright 2009-2013 by 'L1L1' -- -- Cardpeek is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (a...
gpl-3.0
liruqi/bigfoot
Interface/AddOns/MasterPlan/C_Garrison_cache.lua
1
1729
if IsAddOnLoaded('GarrisonMissionManager') then return; end --bf@178.com local addon_name, addon_env = ... -- [AUTOLOCAL START] local C_Garrison = C_Garrison local LE_FOLLOWER_TYPE_GARRISON_6_0 = LE_FOLLOWER_TYPE_GARRISON_6_0 local LE_GARRISON_TYPE_6_0 = LE_GARRISON_TYPE_6_0 local wipe = wipe -- [AUTOLOCA...
mit
MocoNinja/LinuxConfs
Archlabs/.config/awesome/vicious/widgets/mboxc.lua
14
1841
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Adrian C. <anrxc@sysphere.org> --------------------------------------------------- -- {{{ Grab environment local io = { open = io.open } local setmetatable = setmetatable local string = { find = stri...
gpl-3.0
shiprabehera/kong
kong/dao/migrations/cassandra.lua
3
12988
return { { name = "2015-01-12-175310_skeleton", up = function(db, kong_config) local keyspace_name = kong_config.cassandra_keyspace local strategy, strategy_properties = kong_config.cassandra_repl_strategy, "" -- Format strategy options if strategy == "SimpleStrategy" then str...
apache-2.0
liruqi/bigfoot
Interface/AddOns/DBM-Party-WoD/BloodmaulSlagMines/Crushto.lua
1
2262
local mod = DBM:NewMod(888, "DBM-Party-WoD", 2, 385) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 15007 $"):sub(12, -3)) mod:SetCreatureID(74787) mod:SetEncounterID(1653) mod:SetZone() mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_AURA_APPLIED 150751", "SPELL_CAST_START 15075...
mit
shiprabehera/kong
spec/03-plugins/11-basic-auth/03-access_spec.lua
2
14628
local helpers = require "spec.helpers" local cjson = require "cjson" local meta = require "kong.meta" local utils = require "kong.tools.utils" describe("Plugin: basic-auth (access)", function() local client setup(function() helpers.run_migrations() local api1 = assert(helpers.dao.apis:insert { nam...
apache-2.0
Unknown8765/SpeedBot
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
goofanader/aijam-2015
libraries/hardoncollider/polygon.lua
14
13533
--[[ Copyright (c) 2011 Matthias Richter Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribu...
gpl-2.0
liruqi/bigfoot
Interface/AddOns/DBM-Party-Legion/ReturnToKarazhan/Curator.lua
1
2589
local mod = DBM:NewMod(1836, "DBM-Party-Legion", 11, 860) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 17077 $"):sub(12, -3)) mod:SetCreatureID(114462) mod:SetEncounterID(1964) mod:SetZone() --mod:SetUsedIcons(1) --mod:SetHotfixNoticeRev(14922) --mod.respawnTime = 30 mod.noNormal = tru...
mit
SbssTeam/QuickPlus
plugins/lock_badw.lua
4
1096
local function run(msg, matches) if msg.to.type == 'chat' then if is_momod 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']['lock_badw'] the...
gpl-2.0
dromozoa/dromozoa-commons
dromozoa/commons/uint32.lua
3
9619
-- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com> -- -- This file is part of dromozoa-commons. -- -- dromozoa-commons 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...
gpl-3.0
Zuck3rFr3i/Horrizon-Reloadet
Horrizon/playerdata_handler.lua
1
2852
addEvent("system:setupPlayerData", true) addEventHandler("system:setupPlayerData", root, function(playerElem, pSerial) local getData, rows = mysql_get("SELECT * FROM userdata WHERE serial=?", pSerial) if getData and rows >= 1 then local uid = getData[1]["uid"] local money = getData[1]["money"] local ban...
gpl-3.0
inTact700/VLCHotkey
share/lua/modules/simplexml.lua
103
3732
--[==========================================================================[ simplexml.lua: Lua simple xml parser wrapper --[==========================================================================[ Copyright (C) 2010 Antoine Cellerier $Id$ Authors: Antoine Cellerier <dionoea at videolan dot org> This progra...
gpl-2.0
liruqi/bigfoot
Interface/AddOns/Recount/GUI_DeathGraph.lua
1
1823
local Recount = _G.Recount local Graph = LibStub:GetLibrary("LibGraph-2.0") local AceLocale = LibStub("AceLocale-3.0") local L = AceLocale:GetLocale("Recount") local revision = tonumber(string.sub("$Revision: 1254 $", 12, -3)) if Recount.Version < revision then Recount.Version = revision end local me = {...
mit
ingran/balzac
custom_feeds/teltonika_luci/applications/luci-sms-gateway/luasrc/model/cbi/sms_gateway/forwarding_to_sms.lua
1
1998
local utl = require "luci.util" local nw = require "luci.model.network" local sys = require "luci.sys" local ntm = require "luci.model.network".init() local m local savePressed = luci.http.formvalue("cbi.apply") and true or false m2 = Map("sms_gateway", translate("SMS Forwarding To SMS Configuration"), translate(...
gpl-2.0
liruqi/bigfoot
Interface/AddOns/DBM-DragonSoul/SpineDeathwing.lua
1
11810
local mod = DBM:NewMod(318, "DBM-DragonSoul", nil, 187) local L = mod:GetLocalizedStrings() local sndWOP = mod:SoundMM("SoundWOP") mod:SetRevision(("$Revision: 79 $"):sub(12, -3)) mod:SetCreatureID(53879) mod:SetModelSound("sound\\CREATURE\\Deathwing\\VO_DS_DEATHWING_BACKEVENT_01.OGG", "sound\\CREATURE\\Deathwi...
mit
gonku/awesome-wm-pabucolor
lain/widgets/mpd.lua
1
3596
--[[ Licensed under GNU General Public License v2 * (c) 2013, Luke Bonham * (c) 2010, Adrian C. <anrxc@sysphere.org> --]] local helpers = require("lain.helpers") local e...
gpl-2.0
ingran/balzac
custom_feeds/teltonika_luci/applications/luci-radvd/luasrc/model/cbi/radvd/prefix.lua
1
3793
--[[ 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: prefix.l...
gpl-2.0
proubatsis/Procedural-City
Procedural City/lua/models/road/2_6_T_intersection.lua
1
3226
--[[ Copyright (C) 2015 Panagiotis Roubatsis 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 prog...
gpl-2.0
gastrodia/awesome
lib/awful/completion.lua
11
7193
--------------------------------------------------------------------------- --- Completion module. -- -- This module store a set of function using shell to complete commands name. -- -- @author Julien Danjou &lt;julien@danjou.info&gt; -- @author Sébastien Gross &lt;seb-awesome@chezwam.org&gt; -- @copyright 2008 Julien ...
gpl-2.0
masoudre11/RaHabot
plugins/urbandictionary.lua
11
1055
local doc = [[ /urbandictionary <query> Returns a definition from Urban Dictionary. ]] local triggers = { '^/u[rban]*d[ictionary]*[@'..bot.username..']*', '^/urban[@'..bot.username..']*' } local action = function(msg) local input = msg.text:input() if not input then if msg.reply_to_message and msg.reply_to_m...
gpl-2.0
kin3tics/LuaTerrainGenerator
code/perlin_noise.lua
1
1783
perlinAlgo = {} perlinAlgo.noise = {} perlinAlgo.noise_width = 0 perlinAlgo.noise_height = 0 function perlinAlgo.generateNoise(width, height, frequency, octaves) perlinAlgo.noise_width = width perlinAlgo.noise_height = height for i=0,perlinAlgo.noise_height do local noise_row = {} for j=0,perlinAlgo.noise_widt...
gpl-3.0
liruqi/bigfoot
Interface/AddOns/BigFoot/AceLibs/Ace3/AceGUI-3.0/widgets/AceGUIWidget-Icon.lua
5
3939
--[[----------------------------------------------------------------------------- Icon Widget -------------------------------------------------------------------------------]] local Type, Version = "Icon", 21 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidgetVersion(Type) or ...
mit
bdowning/lj-cdefdb
cdefdb-helper.lua
1
2692
#!/usr/bin/env luajit -- Copyright (C) 2014-2015 Brian Downing. MIT License. local arg = arg assert(arg[1], "Usage: "..arg[0].." <filename> ...") local cl = require("ljclang") arg[0] = nil local tu = cl.createIndex():parse(arg) if (tu == nil) then print('TU is nil') os.exit(1) end local predefined = { ...
mit
ingran/balzac
custom_feeds/teltonika_luci/protocols/core/luasrc/model/cbi/admin_network/proto_dhcp_simp.lua
1
4829
--[[ LuCI - Lua Configuration Interface Copyright 2011 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 ut ...
gpl-2.0
opticron/asterisk-testsuite-temporary
tests/apps/queues/wrapup_time/test.lua
5
4448
function manager_setup(a) local m,err = a:manager_connect() if not m then fail("error connecting to asterisk: " .. err) end login = ast.manager.action.login() if not login then fail("Couldn't create login?") end local r = m(login) if not r then fail("error logging in to the manager: " .. err) end if ...
gpl-2.0
TeleDALAD/sg
plugins/persian_lang.lua
1
23723
print("سلام دنیا!") local LANG = 'fa' local function run(msg, matches) if permissions(msg.from.id, msg.to.id, "lang_install") then ------------------------- -- Translation version -- ------------------------- set_text(LANG, 'version', '0.1') set_text(LANG, 'versionExtended'...
gpl-2.0
br-lemes/stuff
smartlan/socket/http.lua
121
12193
----------------------------------------------------------------------------- -- HTTP/1.1 client support for the Lua language. -- LuaSocket toolkit. -- Author: Diego Nehab -- RCS ID: $Id: http.lua,v 1.71 2007/10/13 23:55:20 diego Exp $ ----------------------------------------------------------------------------- -----...
mit
TechAtNYU/wiki
extensions/Scribunto/engines/LuaCommon/lualib/package.lua
1
3811
--[[ -- A package library similar to the one that comes with Lua 5.1, but without -- the local filesystem access. Based on Compat-5.1 which comes with the -- following license notice: -- -- Copyright © 2004-2006 The Kepler Project. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy of --...
gpl-2.0
shiprabehera/kong
spec/03-plugins/04-file-log/01-log_spec.lua
2
3252
local cjson = require "cjson" local utils = require "kong.tools.utils" local helpers = require "spec.helpers" local pl_path = require "pl.path" local pl_file = require "pl.file" local pl_stringx = require "pl.stringx" local FILE_LOG_PATH = os.tmpname() describe("Plugin: file-log (log)", function() local client se...
apache-2.0
Xusine1131/QSanguosha-DGAH
lua/sgs_ex.lua
1
25195
-- this script file defines all functions written by Lua -- packages function sgs.CreateLuaPackage(spec) --扩展包名称 local name = spec.name assert(type(name) == "string") --扩展包类型 local pack_type = spec.type or sgs.Package_GeneralPack assert(type(pack_type) == "number") --创建扩展包 local extension = sgs.Package(name, p...
gpl-3.0
Playermet/luajit-estrela
est/math.lua
1
1069
local mod = {} function mod.lerp(value, from, to) return (1 - value) * from + value * to end function mod.inverse_lerp(value, from, to) return (value - from) / (to - from) end function mod.clamp(value, min, max) if value < min then return min end if value > max then return max end return value end functio...
mit
Capibara-/cardpeek
dot_cardpeek_dir/scripts/lib/en1545.lua
16
7123
-- -- This file is part of Cardpeek, the smartcard reader utility. -- -- Copyright 2009-2013 by 'L1L1' -- -- Cardpeek is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (a...
gpl-3.0
bjornbytes/RxLua
tests/take.lua
2
1302
describe('take', function() it('produces an error if its parent errors', function() local observable = Rx.Observable.of(''):map(function(x) return x() end) expect(observable).to.produce.error() expect(observable:take(1)).to.produce.error() end) it('produces nothing if the count is zero', function() ...
mit
creationix/redis-luvit
test.lua
1
1089
local codec = require('redis-codec') local jsonStringify = require('json').stringify local function test(str, extra, expected) local result, e = codec.decode(str, 1) p(str) e = str and extra and str:sub(e) p(e, extra) p(result, expected) assert(extra == e) assert(jsonStringify(result) == jsonStringify(ex...
mit
liruqi/bigfoot
Interface/AddOns/Bagnon/libs/Unfit-1.0/Unfit-1.0.lua
1
5835
--[[ Copyright 2011-2016 João Cardoso Unfit is distributed under the terms of the GNU General Public License (Version 3). As a special exception, the copyright holders of this library give you permission to embed it with independent modules to produce an addon, regardless of the license terms of these independent ...
mit
liruqi/bigfoot
Interface/AddOns/Bagnon_Config/localization/tw.lua
1
2587
--[[ Chinese Traditional Localization *** --]] local L = LibStub('AceLocale-3.0'):NewLocale('Bagnon-Config', 'zhTW') if not L then return end -- general L.GeneralDesc = '根據你的喜好來切換一般功能設定。' L.Locked = '鎖定框架' L.Fading = '框架淡化' L.TipCount = '物品統計提示' L.FlashFind = '閃爍找到' L.EmptySlots = '在空的槽位顯示背景顏色' L.DisplayBlizzard ...
mit
kidanger/Chronored
levels/level8.lua
2
2546
local level = { boxes={ {y=46, x=9, w=11, h=91}, {y=46, x=20, w=158, h=8}, {y=84, x=20, w=104, h=9}, {y=127, x=20, w=158, h=10}, {y=93, x=60, w=3, h=4}, {y=97, x=61, w=4, h=3}, {y=100, x=62, w=3, h=2}, {y=96, x=63, w=1, h=1}, {y=102, x=63, w=2, h=3}, {y=113, x=63, w=3, h=1}, {y=125, x=63, w=3, h=2}, {y=114,...
gpl-2.0
Raugharr/Herald
data/gui/FactionMenu.lua
1
2547
Menu.moveable = true Menu.Width = 500 Menu.Height = 600 local function ShowGeneral(Menu, Faction) local Table = Menu:CreateTable(2, 6) local Skin = Menu:GetSkin() local Font = Skin:Table():GetFont() Table:SetCellWidth(Font:Width() * 8) Table:SetCellHeight(Font:Height()) Table:CreateLabel("Leader") Table:Creat...
gpl-2.0
dmccuskey/lua-corovel
corovel/plugin/openssl.lua
1
2013
--====================================================================-- -- corovel/plugin/openssl.lua -- -- Documentation: http://docs.davidmccuskey.com/display/docs/Lua+Corovel.lua --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2015 David McCuskey ...
mit
ryanplusplus/the-legend-of-zorldo
render/fancy_message.lua
2
1069
local width_padding = 5 local height_padding = 2 return function(scene) local map_height local map_width for entity in pairs(scene:entities_with('map')) do map_height = entity.map.height * entity.map.tileHeight map_width = entity.map.width * entity.map.tileWidth end for entity in pairs(scene:entiti...
mit
liruqi/bigfoot
Interface/AddOns/BigFoot/AceLibs/wyLib/NetEaseGUI-2.0/Embed/Help.lua
1
1892
local GUI = LibStub('NetEaseGUI-2.0') local Help = GUI:NewEmbed('Help', 4) if not Help then return end ---- Help local function HelpOnClick(self) local enable = self.helpPlate and not HelpPlate_IsShowing(self.helpPlate) if enable then HelpPlate_Show(self.helpPlate, self:GetParent(), sel...
mit
liruqi/bigfoot
Interface/AddOns/DBM-PvP/Battlegrounds/EyeOfTheStorm.lua
1
9707
-- EyeOfTheStorm mod v3.0 -- rewrite by Nitram and Tandanu -- -- thanks DiabloHu local mod = DBM:NewMod("z566", "DBM-PvP", 2) local L = mod:GetLocalizedStrings() mod:RemoveOption("HealthFrame") mod:SetRevision(("$Revision: 63 $"):sub(12, -3)) mod:SetZone(DBM_DISABLE_ZONE_DETECTION) mod:RegisterEvents(...
mit
bjornbytes/RxLua
tests/flatMap.lua
2
1222
describe('flatMap', function() it('produces an error if its parent errors', function() local observable = Rx.Observable.of(''):flatMap(function(x) return x() end) expect(observable).to.produce.error() end) it('uses the identity function as the callback if none is specified', function() local observab...
mit
Datamats/ServerContent
notagain/lua/notagain/jrpg/autorun/hitmarks.lua
1
17140
local hitmarkers = _G.hitmarkers or {} _G.hitmarkers = hitmarkers if CLIENT then local function set_blend_mode(how) if not render.OverrideBlendFunc then return end if how == "additive" then render.OverrideBlendFunc(true, BLEND_SRC_ALPHA, BLEND_ONE, BLEND_SRC_ALPHA, BLEND_ONE) elseif how == "multiplicative" ...
mit
ff-kbu/openwrt-packages-bb
net/luci-app-ocserv/files/usr/lib/lua/luci/model/cbi/ocserv/main.lua
30
4979
--[[ LuCI - Lua Configuration Interface Copyright 2014 Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com> 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/LICEN...
gpl-2.0
AngelBaltar/RenegadeKlingon
Utils/Advanced-Tiled-Loader/ObjectLayer.lua
1
6273
--------------------------------------------------------------------------------------------------- -- -= ObjectLayer =- --------------------------------------------------------------------------------------------------- -- Setup TILED_LOADER_PATH = "Utils/Advanced-Tiled-Loader/" TILED_LOADER_PATH = TILED_LOADER_PATH o...
gpl-3.0
liruqi/bigfoot
Interface/AddOns/Bagnon/libs/LibItemCache-1.1/Caches/BagBrother.lua
1
3916
--[[ Copyright 2011-2016 João Cardoso LibItemCache is distributed under the terms of the GNU General Public License. You can redistribute it and/or modify it under the terms of the license as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT A...
mit
borromeotlhs/nodemcu-firmware
lua_examples/yet-another-ds18b20.lua
79
1924
------------------------------------------------------------------------------ -- DS18B20 query module -- -- LICENCE: http://opensource.org/licenses/MIT -- Vladimir Dronnikov <dronnikov@gmail.com> -- -- Example: -- dofile("ds18b20.lua").read(4, function(r) for k, v in pairs(r) do print(k, v) end end) ------------------...
mit
handsomecheung/miniKanren.lua
sudoku_example.lua
1
3987
local MK = require("mk") local run = MK.run local run_all = MK.run_all local eq = MK.eq local not_eq = MK.not_eq local all = MK.all local alli = MK.alli local cond = MK.cond local fresh_vars = MK.fresh_vars local list = MK.list local car = MK.car local cdr = MK.cdr local E = require("extend") local nullo = E.nullo loc...
mit
liruqi/bigfoot
Interface/AddOns/WhisperPop/VirtualScrollList-1.0.lua
1
19203
----------------------------------------------------------- -- VirtualScrollList-1.0.lua ----------------------------------------------------------- -- A virtual scroll list is a scroll list frame that is capable of displaying infinite -- amount of user data with a fixed number of list buttons. Blizzard's FauxScrol...
mit
Yonaba/Algorithm-Implementations
Breadth_First_Search/Lua/Yonaba/bfs_test.lua
26
2339
-- Tests for bfs.lua local BFS = require 'bfs' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function same(t, p, comp) for k,v in ipairs(t) do if not comp(v, p[k]) then return false end end return true end ...
mit
shiprabehera/kong
spec/03-plugins/25-response-rate-limiting/04-access_spec.lua
2
25338
local cjson = require "cjson" local helpers = require "spec.helpers" local timestamp = require "kong.tools.timestamp" local REDIS_HOST = "127.0.0.1" local REDIS_PORT = 6379 local REDIS_PASSWORD = "" local REDIS_DATABASE = 1 local SLEEP_TIME = 1 local function wait(second_offset) -- If the minute elapses in the mid...
apache-2.0
Ghor/LoveEngineCore
src/libraries/luasocket/libluasocket/socket.lua
146
4061
----------------------------------------------------------------------------- -- LuaSocket helper module -- Author: Diego Nehab -- RCS ID: $Id: socket.lua,v 1.22 2005/11/22 08:33:29 diego Exp $ ----------------------------------------------------------------------------- -----------------------------------------------...
gpl-3.0
bjornbytes/RxLua
src/operators/flatMapLatest.lua
2
1352
local Observable = require 'observable' local Subscription = require 'subscription' local util = require 'util' --- Returns a new Observable that uses a callback to create Observables from the values produced by -- the source, then produces values from the most recent of these Observables. -- @arg {function=identity} ...
mit
AngelBaltar/RenegadeKlingon
Utils/Animation.lua
1
5879
--[[ Copyright (c) 2009-2010 Bart Bes 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,...
gpl-3.0
devm11/DEV_M1
plugins/TH3BOSS6.lua
1
1566
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ dev : dev ...
gpl-2.0
Nitroteam/a
plugins/inrealm.lua
850
25085
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if is_sudo(msg) or is_realm(msg) and is_admin(msg) then local group_creator = msg.from.print_name create_g...
gpl-2.0
Alikey2ali/Alitaki5
plugins/inrealm.lua
850
25085
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if is_sudo(msg) or is_realm(msg) and is_admin(msg) then local group_creator = msg.from.print_name create_g...
agpl-3.0
Yonaba/Algorithm-Implementations
Average/Lua/Yonaba/average_test.lua
26
1557
-- Tests for average.lua local mean = require 'average' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total = total + 1 local ok, err = pcall(f) if ok then pass = pass + 1 end local st...
mit
mario0582/devenserver
data/creaturescripts/scripts/raffle.lua
2
1056
local modaldialog = { title = "Want to try your luck?", message = "Select what you want to try to win:", buttons = { { id = 1, text = "Try" }, { id = 2, text = "Cancel" }, }, buttonEnter = 1, buttonEscape = 2, choices = { { id = 1, text = "2 premium days!" }, { id = 2, text = "any Item!" } }, popup = t...
gpl-2.0
RUlanowicz/MyBreakout
cocos2d/cocos/scripting/lua/script/DeprecatedOpenglEnum.lua
148
11934
-- This is the DeprecatedEnum DeprecatedClass = {} or DeprecatedClass _G.GL_RENDERBUFFER_INTERNAL_FORMAT = gl.RENDERBUFFER_INTERNAL_FORMAT _G.GL_LINE_WIDTH = gl.LINE_WIDTH _G.GL_CONSTANT_ALPHA = gl.CONSTANT_ALPHA _G.GL_BLEND_SRC_ALPHA = gl.BLEND_SRC_ALPHA _G.GL_GREEN_BITS = gl.GREEN_BITS _G.GL_STENCIL_REF = gl.STENCI...
gpl-2.0
liruqi/bigfoot
Interface/AddOns/BigFoot/Library/BigFootSecureHook.lua
1
8348
local BLSH_dbdf11f5b07258936fb1c5a31eaa969c = 1; local BLSH_1b5523f0adb45c4b8ee51f89ebf6f2b2 = 0; local BLSH_6dc50cf393baa8395c3f8b6cd575c5d9 = { _F = {}, }; function BLSH_6dc50cf393baa8395c3f8b6cd575c5d9:Hook(BLSH_89d99bb0d06dd535e6d6f6d9b3f04006, BLSH_c31af5fd9021206e921af3d99e5a90af, BLSH_9ed8bd8a19b94f73925daece17...
mit
Alikey2ali/Alitaki5
plugins/ingroup.lua
371
44212
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.id if member_id ~= our_id then -- Group configuration data[tostr...
agpl-3.0
nurv/lirec
scenarios/MyFriend/MyPleo/tags/version-1.05/workspace/viPleoShivaModule/Resources/Scripts/MainAI_Handler_onChangeStates.lua
2
3035
-------------------------------------------------------------------------------- -- Handler.......... : onChangeStates -- Authors.......... : Tiago Paiva and Paulo F. Gomes -- Description...... : Handler that redirects events to MyPleoAI. It also -- hides/shows interface elements that are -- ...
gpl-3.0
shiprabehera/kong
kong/plugins/aws-lambda/handler.lua
1
2747
-- Copyright (C) Mashape, Inc. local BasePlugin = require "kong.plugins.base_plugin" local aws_v4 = require "kong.plugins.aws-lambda.v4" local responses = require "kong.tools.responses" local utils = require "kong.tools.utils" local http = require "resty.http" local cjson = require "cjson.safe" local public_utils = re...
apache-2.0
liruqi/bigfoot
Interface/AddOns/Skada/lib/SpecializedLibBars-1.0/SpecializedLibBars-1.0.lua
2
40560
-- LibBars-1.0 by Antiarc, all glory to him, ripped into pieces for Skada. local MAJOR = "SpecializedLibBars-1.0" local MINOR = 900000 + tonumber(("$Revision: 1 $"):match("%d+")) local lib, oldminor = LibStub:NewLibrary(MAJOR, MINOR) if not lib then return end -- No Upgrade needed. local CallbackHandler = LibS...
mit
Datamats/ServerContent
notagain/lua/notagain/aowl/commands/kick_ban.lua
1
6802
local easylua = requirex("easylua") aowl.AddCommand("kick", function(ply, line, target, reason) local ent = easylua.FindEntity(target) if ent:IsPlayer() then -- clean them up at least this well... if cleanup and cleanup.CC_Cleanup then cleanup.CC_Cleanup(ent,"gmod_cleanup",{}) end local rsn = reason o...
mit
liruqi/bigfoot
Interface/AddOns/DBM-Party-MoP/JadeSerpentTemple/LiuFlameheart.lua
1
2730
local mod = DBM:NewMod(658, "DBM-Party-MoP", 1, 313) local L = mod:GetLocalizedStrings() local sndWOP = mod:SoundMM("SoundWOP") mod:SetRevision(("$Revision: 9469 $"):sub(12, -3)) mod:SetCreatureID(56732) mod:SetZone() mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_CAST_SUCCESS", "SPE...
mit
mario0582/devenserver
data/actions/scripts/quests/solaraxequest.lua
2
1375
function onUse(player, item, fromPosition, target, toPosition, isHotkey) if item.uid == 15901 then if player:getStorageValue(50089) == -1 then player:sendTextMessage(MESSAGE_INFO_DESCR, "You have found Solar Axe.") player:addItem(8925, 1) player:setStorageValue(50089, 1) else playe...
gpl-2.0
thecodethinker/CyberEngine
include/luaJIT/jit/dis_ppc.lua
15
20319
---------------------------------------------------------------------------- -- LuaJIT PPC disassembler module. -- -- Copyright (C) 2005-2012 Mike Pall. All rights reserved. -- Released under the MIT/X license. See Copyright Notice in luajit.h ----------------------------------------------------------------------------...
mit
liruqi/bigfoot
Interface/AddOns/BigFoot/AceLibs/Ace3/AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua
1
7538
--[[----------------------------------------------------------------------------- EditBox Widget -------------------------------------------------------------------------------]] local Type, Version = "EditBox", 27 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidgetVersion(Typ...
mit
MaliceTurtle/gamecode4
Extra/UtilityDemo/PreInit.lua
44
2196
-- PreInit.lua -- Note: This file only defines the class() function from assets\scripts\PreInit.lua. The other stuff isn't needed -- for this simple demo. ----------------------------------------------------------------------------------------------------------------------- -- Classes & Inheritance ------------...
lgpl-3.0
shiprabehera/kong
spec/02-integration/05-proxy/12-server_tokens_spec.lua
4
7331
local helpers = require "spec.helpers" local constants = require "kong.constants" local default_server_header = _KONG._NAME .. "/" .. _KONG._VERSION local function start(config) return function() helpers.dao.apis:insert { name = "api-1", upstream_url = "http://localhost:9999/headers-inspect", ...
apache-2.0
Datamats/ServerContent
notagain/lua/notagain/essential/autorun/player_grab.lua
1
2808
local tag = "player_grab" do -- meta local PLAYER = FindMetaTable("Player") function PLAYER:IsBeingPhysgunned() local pl = self._is_being_physgunned if pl then if isentity(pl) and not IsValid(pl) then return false end return true end end function PLAYER:SetPhysgunImmune(bool) self._physgun_i...
mit
shiprabehera/kong
kong/plugins/file-log/handler.lua
1
2232
-- Copyright (C) Mashape, Inc. local ffi = require "ffi" local cjson = require "cjson" local system_constants = require "lua_system_constants" local basic_serializer = require "kong.plugins.log-serializers.basic" local BasePlugin = require "kong.plugins.base_plugin" local ngx_timer = ngx.timer.at local O_CREAT = syste...
apache-2.0
liruqi/bigfoot
Interface/AddOns/DBM-BlackrockFoundry/BlackrockFoundryTrash.lua
1
5887
local mod = DBM:NewMod("BlackrockFoundryTrash", "DBM-BlackrockFoundry") local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 14080 $"):sub(12, -3)) --mod:SetModelID(47785) mod:SetZone() mod.isTrashMod = true mod:RegisterEvents( "SPELL_CAST_START 156446 163194 171537", "SPELL_AURA_APPLIED 1755...
mit
shiprabehera/kong
spec/01-unit/006-schema_validation_spec.lua
3
32117
local schemas = require "kong.dao.schemas_validation" local validate_entity = schemas.validate_entity --require "kong.tools.ngx_stub" describe("Schemas", function() -- Ok kids, today we're gonna test a custom validation schema, -- grab a pair of glasses, this stuff can literally explode. describe("#validate_en...
apache-2.0
alicemirror/EA3250
package/uci/trigger/lib/trigger.lua
40
8391
module("uci.trigger", package.seeall) require("posix") require("uci") local path = "/lib/config/trigger" local triggers = nil local tmp_cursor = nil function load_modules() if triggers ~= nil then return end triggers = { list = {}, uci = {}, active = {} } local modules = posix.glob(path .. "/*.lua") if ...
gpl-2.0
TeleDALAD/sg
plugins/spanish_lang.lua
1
17433
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
mario0582/devenserver
data/movements/scripts/arenagoblet.lua
2
1282
function onStepIn(creature, item, position, fromPosition) local gobletPos = item:getPosition() if item.actionid == 42360 then if creature:getStorageValue(42360) ~= 1 then creature:setStorageValue(42360, 1) local goblet = Game.createItem(5807, 1, {x=gobletPos.x,y=gobletPos.y-1,z=gobletPos.z}) goblet:setAttr...
gpl-2.0
Unknown8765/SpeedBot
bot/utils.lua
239
13499
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")() http.TIMEOUT = 10 funct...
gpl-2.0
valy012/safroid5
plugins/inpm.lua
1114
3008
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
ozhanf/ozhanf----bot
plugins/inpm.lua
1114
3008
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
telegrambot81/supergrup
plugins/sticker_maker.lua
7
2158
local function run(msg, matches) local text = URL.escape(matches[1]) local color = 'blue' if matches[2] == 'red' then color = 'red' elseif matches[2] == 'black' then color = 'black' elseif matches[2] == 'blue' then color = 'blue' elseif matches...
gpl-2.0
Beagle/wesnoth
data/ai/micro_ais/cas/ca_patrol.lua
26
6200
local AH = wesnoth.require "ai/lua/ai_helper.lua" local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua" local function get_patrol(cfg) local filter = cfg.filter or { id = cfg.id } local patrol = AH.get_units_with_moves { side = wesnoth.current.side, { "and", filter } }[1]...
gpl-2.0
liruqi/bigfoot
Interface/AddOns/DBM-Nighthold/localization.en.lua
1
3065
local L --------------- -- Skorpyron -- --------------- L= DBM:GetModLocalization(1706) --------------------------- -- Chronomatic Anomaly -- --------------------------- L= DBM:GetModLocalization(1725) L:SetOptionLocalization({ InfoFrameBehavior = "Set information InfoFrame shows during encounter", T...
mit
liruqi/bigfoot
Interface/AddOns/DBM-Party-Legion/EyeOfAzshara/Hatecoil.lua
1
2558
local mod = DBM:NewMod(1490, "DBM-Party-Legion", 3, 716) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 17471 $"):sub(12, -3)) mod:SetCreatureID(91789) mod:SetEncounterID(1811) mod:SetZone() mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_AURA_APPLIED 193698", "SPELL_CAST_START 1...
mit
kaen/sutratman
unittest/test_mapdata.lua
1
1040
TestMapData = {} function TestMapData:testMapGenerationWatchdog() -- reset the state to thwart the global mapdata and on_generated mocking stm = nil minetest = nil dofile("mods/stm/init.lua") local generated_blocks = fixture('generated_blocks') local done = false -- register a callback and assert that ...
mit
mrbangi/kingproject
plugins/invite.lua
1
1196
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) then -- Ignore bans send_large_msg(chat, 'User is banned.') elseif is_gbanned(result.id) then -- I...
gpl-2.0