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 |
|---|---|---|---|---|---|
LegionXI/darkstar | scripts/zones/Leujaoam_Sanctum/IDs.lua | 29 | 3167 | Leujaoam = {
text = {
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6378, -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6381, -- Obtained: <item>
GIL_OBTAINED = 6384, -- Obtained <number> gil
KEYITEM_OBTAINED = 6384, -- Obtain... | gpl-3.0 |
lache/RacingKingLee | crazyclient/src/cocos/ui/DeprecatedUIEnum.lua | 55 | 4963 | if nil == ccui then
return
end
LAYOUT_COLOR_NONE = ccui.LayoutBackGroundColorType.none
LAYOUT_COLOR_SOLID = ccui.LayoutBackGroundColorType.solid
LAYOUT_COLOR_GRADIENT = ccui.LayoutBackGroundColorType.gradient
LAYOUT_ABSOLUTE = ccui.L... | mit |
A2AFMI/devams2 | plugins/stats.lua | 1 | 4028 |
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_pri... | gpl-2.0 |
LegionXI/darkstar | scripts/globals/weaponskills/vidohunir.lua | 19 | 2111 | -----------------------------------
-- Vidohunir
-- Staff weapon skill
-- Skill Level: N/A
-- Lowers target's magic defense. Duration of effect varies with TP. Laevateinn: Aftermath effect varies with TP.
-- Reduces enemy's magic defense by 10%.
-- Available only after completing the Unlocking a Myth (Black Mage) quest... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/Beadeaux/npcs/Haggleblix.lua | 19 | 7221 | -----------------------------------
-- Area: Beadeaux
-- NPC: Haggleblix
-- Type: Dynamis NPC
-- @pos -255.847 0.595 106.485 147
-----------------------------------
package.loaded["scripts/zones/Beadeaux/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/glo... | gpl-3.0 |
naclander/tome | game/modules/tome/data/general/objects/lore/misc.lua | 1 | 2484 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- 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 ... | gpl-3.0 |
ibm2431/darkstar | scripts/zones/Selbina/npcs/Torapiont.lua | 11 | 1046 | -----------------------------------
-- Area: Selbina
-- NPC: Torapiont
-- Standard Merchant NPC
-----------------------------------
local ID = require("scripts/zones/Selbina/IDs")
require("scripts/globals/shop")
-----------------------------------
function onTrade(player,npc,trade)
end
function onTrigger(player,npc)... | gpl-3.0 |
glewis17/monet | char-rnn/model/LSTM.lua | 3 | 1994 |
local LSTM = {}
function LSTM.lstm(input_size, rnn_size, n, dropout)
dropout = dropout or 0
-- there will be 2*n+1 inputs
local inputs = {}
table.insert(inputs, nn.Identity()()) -- x
for L = 1,n do
table.insert(inputs, nn.Identity()()) -- prev_c[L]
table.insert(inputs, nn.Identity()()) -- prev_h[L]... | mit |
ibm2431/darkstar | scripts/globals/items/bunch_of_wild_pamamas.lua | 11 | 1095 | -----------------------------------------
-- ID: 4596
-- Item: Bunch of Wild Pamamas
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength -3
-- Intelligence 1
-- Additional Effect with Opo-Opo Crown
-- HP 50
-- MP 50
-- CHR 14
-- Additional Effect with Kinkobo or
-- Primate Staff
-- DE... | gpl-3.0 |
ibm2431/darkstar | scripts/globals/items/serving_of_herb_crawler_eggs.lua | 11 | 1245 | -----------------------------------------
-- ID: 4552
-- Item: serving_of_herb_crawler_eggs
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health % 6
-- Health Cap 80
-- Magic 10
-- Agility 3
-- Vitality -1
-- Evasion 8
-----------------------------------------
require("scripts/globals/s... | gpl-3.0 |
Igalia/snabbswitch | lib/pflua/src/pf/ssa.lua | 26 | 10833 | module(...,package.seeall)
local utils = require('pf.utils')
local verbose = os.getenv("PF_VERBOSE");
local set, pp, dup, concat = utils.set, utils.pp, utils.dup, utils.concat
local relops = set('<', '<=', '=', '!=', '>=', '>')
--- SSA := { start=Label, blocks={Label=>Block, ...} }
--- Label := string
--- Block :=... | apache-2.0 |
greasydeal/darkstar | scripts/commands/hide.lua | 62 | 1164 | ---------------------------------------------------------------------------------------------------
-- func: hide
-- desc: Hides the GM from other players.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "s"
};
funct... | gpl-3.0 |
gwlim/luci | applications/luci-ahcp/luasrc/controller/ahcp.lua | 76 | 1533 | --[[
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
$Id: init.lua... | apache-2.0 |
Igalia/snabbswitch | lib/ljsyscall/syscall/osx/errors.lua | 24 | 3944 | -- OSX error messages
return {
PERM = "Operation not permitted",
NOENT = "No such file or directory",
SRCH = "No such process",
INTR = "Interrupted system call",
IO = "Input/output error",
NXIO = "Device not configured",
["2BIG"] = "Argument list too long",
NOEXEC = "Exec format error",
BADF = "Bad f... | apache-2.0 |
dangersuperbot/super_boomrange | plugins/webshot.lua | 7 | 1525 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
JRTXGaming/GuildDing_RIFT | GuildDing.lua | 1 | 22021 | -- ***************************************************************************************************************************************************
-- * GuildDing.lua *
-- *******... | gpl-2.0 |
johnymarek/tsdemuxer | xupnpd/src/plugins/xupnpd_vkontakte.lua | 6 | 19931 | -- Copyright (C) 2011-2012 I. Sokolov
-- happy.neko@gmail.com
-- Licensed under GNU GPL version 2
-- https://www.gnu.org/licenses/gpl-2.0.html
-- config example:
--feeds=
--{
-- { "vkontakte", "my", "VK - Videos from my page" },
-- { "vkontakte", "group/group_id", "VK - Videos from group" },
-- { "vkontakte"... | mit |
NekoNova/ProtoArmory | ProtoArmory.lua | 1 | 53945 | -----------------------------------------------------------------------------------------------
-- Client Lua Script for ProtoArmory
-- Copyright (c) NCsoft. All rights reserved
-----------------------------------------------------------------------------------------------
require "Apollo"
require "Window"
req... | gpl-2.0 |
pazos/koreader | frontend/apps/reader/modules/readerpaging.lua | 1 | 38703 | local BD = require("ui/bidi")
local Device = require("device")
local Event = require("ui/event")
local Geom = require("ui/geometry")
local InputContainer = require("ui/widget/container/inputcontainer")
local Math = require("optmath")
local MultiConfirmBox = require("ui/widget/multiconfirmbox")
local Notification = requ... | agpl-3.0 |
Tarfand-pro/csgroup | system/libs/lua-redis.lua | 40 | 35598 | local redis = {
_VERSION = 'redis-lua 2.0.4',
_DESCRIPTION = 'A Lua client library for the redis key value storage system.',
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri',
}
-- The following line is used for backwards compatibility in order to keep the `Redis`
-- global module name. Using... | gpl-2.0 |
haifeng60902/osgswig | etc/globals.lua | 2 | 2020 | --
-- osgART premake script
--
-- Global settings used
--
-- globals
globals = {}
-- debug needs to have a suffix
globals['targetsuffix'] = "_debug"
globals['osg'] = {}
globals['openthreads'] = {}
globals.osg.two = false
globals.osg.newdllname = false
function grabcmd(cmd)
local e = os.execute( cmd .. " > .premak... | mit |
mrmetti/teleum-new-open | plugins/anti_spam.lua | 8 | 5149 | --An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id == our_id then
return msg
end
-- Save... | gpl-2.0 |
philsiff/Red-Vs-Blue | Red Vs. Blue Files/lua/autorun/properties/persist.lua | 1 | 1847 |
AddCSLuaFile()
properties.Add( "persist",
{
MenuLabel = "Make Persistent",
Order = 600,
MenuIcon = "icon16/link.png",
Filter = function( self, ent, ply )
if ( ent:IsPlayer() ) then return false end
if ( GetConVarString( "sbox_persist" ) == "0" ) then return false end
if ( !gamemode.Call(... | mit |
philsiff/Red-Vs-Blue | Red Vs. Blue Files/gamemodes/sandbox/gamemode/cl_worldtips.lua | 4 | 1862 |
surface.CreateFont( "GModWorldtip",
{
font = "Helvetica",
size = 20,
weight = 700
})
local cl_drawworldtooltips = CreateConVar( "cl_drawworldtooltips", "1", { FCVAR_ARCHIVE } )
local WorldTip = nil
local TipColor = Color( 250, 250, 200, 255 )
--
-- Adds a hint to the queue
--
function AddWorldTip( unused1, t... | mit |
yetsky/luci | applications/luci-radvd/luasrc/model/cbi/radvd/rdnss.lua | 74 | 2324 | --[[
LuCI - Lua Configuration Interface
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
lo... | apache-2.0 |
LuaDist2/luarocks | src/luarocks/make_manifest.lua | 9 | 1871 |
--- Module implementing the luarocks-admin "make_manifest" command.
-- Compile a manifest file for a repository.
local make_manifest = {}
package.loaded["luarocks.make_manifest"] = make_manifest
local manif = require("luarocks.manif")
local index = require("luarocks.index")
local cfg = require("luarocks.cfg")
local u... | mit |
philsiff/Red-Vs-Blue | Red Vs. Blue Files/lua/vgui/dadjustablemodelpanel.lua | 2 | 2224 | --[[ _
( )
_| | __ _ __ ___ ___ _ _
/'_` | /'__`\( '__)/' _ ` _ `\ /'_` )
( (_| |( ___/| | | ( ) ( ) |( (_| |
`\__,_)`\____)(_) (_) (_) (_)`\__,_)
--]]
local PANEL = {}
AccessorFunc( PANEL, "m_bFirstPerson", "FirstPerson" )
... | mit |
Aminkavari/-xXD4RKXx- | bot/bot.lua | 10 | 7114 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '0.14.6'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
r... | gpl-2.0 |
emadni/lordteami-bot | plugins/all.lua | 264 | 4202 | 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 |
mjarco/sysdig | userspace/sysdig/chisels/v_containers.lua | 7 | 3223 | --[[
Copyright (C) 2013-2014 Draios inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without... | gpl-2.0 |
pazos/koreader | frontend/ui/widget/overlapgroup.lua | 5 | 2874 | --[[--
A layout widget that puts objects above each other.
--]]
local BD = require("ui/bidi")
local WidgetContainer = require("ui/widget/container/widgetcontainer")
local OverlapGroup = WidgetContainer:new{
-- Note: we default to allow_mirroring = true.
-- When using LeftContainer, RightContainer or Horizonta... | agpl-3.0 |
NatWeiss/RGP | src/cocos2d-js/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ActionInterval.lua | 7 | 1942 |
--------------------------------
-- @module ActionInterval
-- @extend FiniteTimeAction
-- @parent_module cc
--------------------------------
-- Gets the ampliture rate, extension in GridAction<br>
-- return The ampliture rate.
-- @function [parent=#ActionInterval] getAmplitudeRate
-- @param self
-- @return float#f... | mit |
ipernet/MySQL-Proxy-failed-queries-LUA-script | failed-queries-json.lua | 2 | 3521 | -----------------------------------------------------------------------------
-- A LUA script for MySQL proxy to output failed SQL queries as JSON
--
-- Version: 0.3
-- This script is released under the MIT License (MIT).
-- Please see LICENCE.txt for details.
--
-- REQUIREMENTS:
-- JSON module (https://github.com/cr... | mit |
hfjgjfg/seed353 | 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 |
anonymous12212020/sbss | 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 |
SinZ163/TwilightsEveORPG | game/scripts/vscripts/abilities/druid/runemaster/modifier_teve_druid_runemaster_werebear.lua | 2 | 2351 | modifier_teve_druid_runemaster_werebear = class({})
function modifier_teve_druid_runemaster_werebear:OnCreated(kv)
if IsServer() then
self:GetCaster():SetAttackCapability(DOTA_UNIT_CAP_MELEE_ATTACK)
end
end
function modifier_teve_druid_runemaster_werebear:OnDestroy(kv)
if IsServer() then
s... | mit |
yetsky/luci | modules/admin-full/luasrc/controller/admin/uci.lua | 85 | 1975 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://w... | apache-2.0 |
yetsky/luci | modules/base/luasrc/model/ipkg.lua | 82 | 5778 | --[[
LuCI - Lua Configuration Interface
(c) 2008-2011 Jo-Philipp Wich <xm@subsignal.org>
(c) 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apach... | apache-2.0 |
yetsky/luci | modules/admin-full/luasrc/model/cbi/admin_network/iface_add.lua | 79 | 3091 | --[[
LuCI - Lua Configuration Interface
Copyright 2009-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$
]]... | apache-2.0 |
philsiff/Red-Vs-Blue | Red Vs. Blue Files/lua/autorun/cl_mapvote.lua | 1 | 1376 | AddCSLuaFile()
if CLIENT then
Mapvote = {}
Mapvote.guiName = "Base GUI"
Mapvote.frame = nil
Mapvote.initialize = function()
--Include client script assets, which are located under lua/mapvote/
for index, file in pairs( file.Find( "mapvote/cl_*.lua","LUA","nameasc" ) ) do
include( "mapvote/"..file )
end
net.Re... | mit |
MathieuDuponchelle/gdx | demos/pax-britannica/pax-britannica-android/assets/data/scripts/game_flow.lua | 11 | 3992 | local kernel = require 'dokidoki.kernel'
local v2 = require 'dokidoki.v2'
local blueprints = require 'blueprints'
local the_game = require 'the_game'
local LEFT = game.constants.screen_left
local RIGHT = game.constants.screen_right
local BOTTOM = game.constants.screen_bottom
local TOP = game.constants.screen_top
loca... | apache-2.0 |
GravityScore/LuaIDE | src/ui/panel.lua | 1 | 2427 |
--
-- Panel
--
--- A simple text panel to display some text, that pops up with a close button
Panel = {}
Panel.__index = Panel
--- Create a new panel
function Panel.new(...)
local self = setmetatable({}, Panel)
self:setup(...)
return self
end
--- Create an error panel.
function Panel.error(...)
local panel =... | mit |
nimaghorbani/ghbotfool | plugins/google.lua | 722 | 1037 | local function googlethat(query)
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&"
local parameters = "q=".. (URL.escape(query) or "")
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
local r... | gpl-2.0 |
NatWeiss/RGP | src/cocos2d-js/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/CheckBox.lua | 7 | 5879 |
--------------------------------
-- @module CheckBox
-- @extend Widget
-- @parent_module ccui
--------------------------------
-- Load background selected state texture for checkbox.<br>
-- param backGroundSelected The background selected state image name.<br>
-- param texType @see `Widget::TextureResType`
-- @... | mit |
IntelligentBot/IntelligentBot | plugins/Dictionary.lua | 9 | 1358 | do
function translate(source_lang, target_lang, text)
local path = "http://translate.google.com/translate_a/single"
-- URL query parameters
local params = {
client = "gtx",
ie = "UTF-8",
oe = "UTF-8",
hl = "en",
dt = "t",
tl = target_lang or "en",
sl = source_lang or "auto",
q = U... | gpl-2.0 |
philsiff/Red-Vs-Blue | Red Vs. Blue Files/addons/ulx/lua/ulx/modules/cl/xlib.lua | 2 | 36477 | --XLIB -- by Stickly Man!
--A library of helper functions used by XGUI for creating derma controls with a single line of code.
--Currently a bit disorganized and unstandardized, (just put in things as I needed them). I'm hoping to fix that sometime.
xlib = {}
function xlib.makecheckbox( t )
local pnl = vgui.Create(... | mit |
philsiff/Red-Vs-Blue | Red Vs. Blue Files/gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content/contentsidebar.lua | 2 | 1404 | include( "ContentSidebarToolbox.lua" )
local pnlSearch = vgui.RegisterFile( "ContentSearch.lua" )
local PANEL = {}
function PANEL:Init()
self.Tree = vgui.Create( "DTree", self );
self.Tree:SetClickOnDragHover( true );
self.Tree.OnNodeSelected = function( Tree, Node ) hook.Call( "ContentSidebarSelection", GAMEM... | mit |
yetsky/luci | applications/luci-statistics/luasrc/statistics/rrdtool/definitions/interface.lua | 8 | 2773 | --[[
Luci statistics - interface plugin diagram definition
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.... | apache-2.0 |
GravityScore/LuaIDE | src/theme.lua | 1 | 2192 |
--
-- Theme
--
Theme = {}
--- Load the theme
Theme.load = function()
if term.isColor() then
-- Menu bar
Theme["menu bar background"] = colors.white
Theme["menu bar background focused"] = colors.gray
Theme["menu bar text"] = colors.black
Theme["menu bar text focused"] = colors.white
Theme["menu bar fla... | mit |
ZerothAngel/FtDScripts | missile/missiledriver.lua | 1 | 11229 | --@ commonstargets commonsweapons commons weapontypes
-- MissileDriver module
LastTransceiverCount = 0
TransceiverGuidances = {}
LastTransceiverResetTime = 0
MissileStates = {}
LastTimeTargetSeen = nil
function MissileDriver_GatherTargets(GuidanceInfos)
local TargetsByPriority = {}
local TargetsById = {}
-- ... | mit |
pazos/koreader | frontend/ui/widget/bookstatuswidget.lua | 3 | 19599 | local Blitbuffer = require("ffi/blitbuffer")
local Button = require("ui/widget/button")
local CenterContainer = require("ui/widget/container/centercontainer")
local CloseButton = require("ui/widget/closebutton")
local Device = require("device")
local Font = require("ui/font")
local FrameContainer = require("ui/widget/c... | agpl-3.0 |
ZerothAngel/FtDScripts | lib/commonsweapons.lua | 1 | 1624 | --@ commons
function CommonsWeapons_CustomName(self, I)
if not self._CustomName then
self._CustomName = I:GetWeaponBlockInfoOnSubConstruct(self.SubConstructId, self.Index).CustomName
end
return self._CustomName
end
function Commons.AddWeapon(Weapons, WeaponInfo, SubConstructId, WeaponIndex)
local Wea... | mit |
pazos/koreader | frontend/ui/data/dictionaries.lua | 6 | 52775 | local _ = require("gettext")
-- largely thanks to https://tuxor1337.github.io/firedict/dictionaries.html
local dictionaries = {
{
name = "CIA World Factbook 2014",
lang_in = "English",
lang_out = "English",
entries = 2577,
license = _("Public Domain"),
url = "http://... | agpl-3.0 |
NatWeiss/RGP | src/cocos2d-js/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Sprite.lua | 7 | 14249 |
--------------------------------
-- @module Sprite
-- @extend Node,TextureProtocol
-- @parent_module cc
--------------------------------
-- @overload self, cc.SpriteFrame
-- @overload self, string
-- @function [parent=#Sprite] setSpriteFrame
-- @param self
-- @param #string spriteFrameName
-- @retur... | mit |
LuaDist2/lua-path | lua/path/win32/fs.lua | 2 | 36080 | ------------------------------------------------------------------
--
-- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Copyright (C) 2013-2016 Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Licensed according to the included 'LICENCE' document
--
-- This file is part of lua-path library.
--
-----... | mit |
mp4saeed/energy28 | fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-3.0 |
MRMV2000/amira-o | system/libs/fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-2.0 |
NatWeiss/RGP | src/cocos2d-js/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/script/framework/extends/MenuEx.lua | 57 | 1228 | --[[
Copyright (c) 2011-2014 chukong-inc.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 use, copy, modify, merge, publish, dis... | mit |
MathieuDuponchelle/gdx | demos/pax-britannica/pax-britannica-android/assets/data/components/resources.lua | 11 | 5962 | local graphics = require 'dokidoki.graphics'
background = graphics.sprite_from_image('sprites/background.png', nil, {0, 0})
loading = graphics.sprite_from_image('sprites/loading.png', nil, {113, -10})
fighter_sprites = {
graphics.sprite_from_image('sprites/fighter_p1.png', nil, 'center'),
graphics.sprite_from_im... | apache-2.0 |
wincinderith/awesome-config | themes/material-dark/theme.lua | 2 | 5468 | theme = {}
theme.font = "Roboto 8"
theme.bg_normal = "#303030"
theme.bg_focus = "#424242"
theme.bg_urgent = theme.bg_focus
theme.bg_minimize = theme.bg_focus
theme.bg_systray = "#212121"
theme.fg_normal = "#FFFFFF"
theme.fg_focus = "#FFFFFF"
theme.fg_urgent = theme.fg_focus
th... | gpl-3.0 |
Maliv/Looper | 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 |
daniel-slaney/demirogue | src/Viewport.lua | 3 | 4345 | require 'Vector'
local AABB = require 'lib/AABB'
local Dampener = require 'lib/Dampener'
Viewport = {}
Viewport.__index = Viewport
function Viewport.new( bounds, portal )
local portal = portal or AABB.new {
xmin = 0,
xmax = love.graphics.getWidth(),
ymin = 0,
ymax = love.graphics.getHeight(),
}
local res... | bsd-3-clause |
philsiff/Red-Vs-Blue | Red Vs. Blue Files/gamemodes/base/entities/entities/gmod_hands.lua | 3 | 1458 |
AddCSLuaFile()
ENT.Type = "anim"
ENT.RenderGroup = RENDERGROUP_OTHER
function ENT:Initialize()
hook.Add( "OnViewModelChanged", self, self.ViewModelChanged )
self:SetNotSolid( true )
self:DrawShadow( false )
self:SetTransmitWithParent( true ) -- Transmit only when the viewmodel does!
end
function ENT:Do... | mit |
amir-sereen/DBTeam | libs/redis.lua | 566 | 1214 | local Redis = require 'redis'
local FakeRedis = require 'fakeredis'
local params = {
host = os.getenv('REDIS_HOST') or '127.0.0.1',
port = tonumber(os.getenv('REDIS_PORT') or 6379)
}
local database = os.getenv('REDIS_DB')
local password = os.getenv('REDIS_PASSWORD')
-- Overwrite HGETALL
Redis.commands.hgetall = ... | gpl-2.0 |
dangersuperbot/super_boomrange | libs/redis.lua | 566 | 1214 | local Redis = require 'redis'
local FakeRedis = require 'fakeredis'
local params = {
host = os.getenv('REDIS_HOST') or '127.0.0.1',
port = tonumber(os.getenv('REDIS_PORT') or 6379)
}
local database = os.getenv('REDIS_DB')
local password = os.getenv('REDIS_PASSWORD')
-- Overwrite HGETALL
Redis.commands.hgetall = ... | gpl-2.0 |
arkana-fts/cegui | cegui/src/ScriptModules/Lua/support/tolua++bin/lua/module.lua | 14 | 1739 | -- tolua: module class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id$
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance, support, updates,
-- enhancements, o... | mit |
siktirmirza/dt | plugins/persian_lang.lua | 3 | 26838 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
profan/mal | lua/reader.lua | 14 | 3968 | local rex = require('rex_pcre')
local string = require('string')
local table = require('table')
local types = require('types')
local throw, Nil, Symbol, List = types.throw, types.Nil,
types.Symbol, types.List
local M = {}
Reader = {}
function Reader:new(tokens)
local newObj = {tok... | mpl-2.0 |
philsiff/Red-Vs-Blue | Red Vs. Blue Files/lua/postprocess/sharpen.lua | 1 | 1707 |
local _Material = Material( "pp/sharpen" )
_Material:SetTexture( "$fbtexture", render.GetScreenEffectTexture() )
--[[---------------------------------------------------------
Register the convars that will control this effect
-----------------------------------------------------------]]
local pp_sharpen_contr... | mit |
NatWeiss/RGP | src/cocos2d-js/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Animate3D.lua | 7 | 4093 |
--------------------------------
-- @module Animate3D
-- @extend ActionInterval
-- @parent_module cc
--------------------------------
-- get & set speed, negative speed means playing reverse
-- @function [parent=#Animate3D] getSpeed
-- @param self
-- @return float#float ret (return value: float)
----------... | mit |
philsiff/Red-Vs-Blue | Red Vs. Blue Files/lua/derma/derma_menus.lua | 1 | 1213 | --[[ _
( )
_| | __ _ __ ___ ___ _ _
/'_` | /'__`\( '__)/' _ ` _ `\ /'_` )
( (_| |( ___/| | | ( ) ( ) |( (_| |
`\__,_)`\____)(_) (_) (_) (_)`\__,_)
--]]
local tblOpenMenus = {}
function RegisterDermaMenuForClose( menu )
table.... | mit |
yetsky/luci | applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins6.lua | 32 | 7312 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2009 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://w... | apache-2.0 |
fungxu/nodemcu-mqttpir | mqttpir.lua | 2 | 1508 | pir = 1
dht22 = 2
mqttHost = '192.168.100.122'
chipId = node.chipid()
gpio.mode(pir,gpio.INT)
mqttClient = mqtt.Client(chipId, 5)
mqttClient:lwt("events/esp8266/".. chipId .."/status",
cjson.encode({
type = "status",
sensorId = chipId,
status = 0
}), 0, 0)
mqttClient:on("offline", function()
if DEBU... | mit |
eggBOY91/Arctic-Core | src/scripts/lua/Lua/Stable Scripts/Outland/Hellfire Ramparts/BOSS_HellfireRampart_Omor.lua | 30 | 1754 | function Omor_Shadow_Bolt(Unit, event, miscunit, misc)
print "Omor Shadow Bolt"
Unit:FullCastSpellOnTarget(36987,Unit:GetClosestPlayer())
Unit:SendChatMessage(11, 0, "A Good Shadow Bolt for you...")
end
function Omor_Spell_reflect(Unit)
print "Omor Spell reflect"
Unit:FullCastSpell(33961)
... | agpl-3.0 |
pazos/koreader | frontend/ui/elements/common_settings_menu_table.lua | 1 | 28539 | local DateWidget = require("ui/widget/datewidget")
local Device = require("device")
local Event = require("ui/event")
local InfoMessage = require("ui/widget/infomessage")
local Language = require("ui/language")
local NetworkMgr = require("ui/network/manager")
local UIManager = require("ui/uimanager")
local TimeWidget =... | agpl-3.0 |
baoson2211/ardupilot | Tools/CHDK-Scripts/kap_uav.lua | 183 | 28512 | --[[
KAP UAV Exposure Control Script v3.1
-- Released under GPL by waterwingz and wayback/peabody
http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script
@title KAP UAV 3.1
@param i Shot Interval (sec)
@default i 15
@range i 2 120
@param s Total Shots (0=infinite)
@default s 0
@range ... | gpl-3.0 |
sdgdsffdsfff/nginx-openresty-windows | LuaJIT-2.1-20150622/src/host/genlibbc.lua | 51 | 4965 | ----------------------------------------------------------------------------
-- Lua script to dump the bytecode of the library functions written in Lua.
-- The resulting 'buildvm_libbc.h' is used for the build process of LuaJIT.
----------------------------------------------------------------------------
-- Copyright (... | bsd-2-clause |
dangersuperbot/super_boomrange | plugins/italian_lang.lua | 1 | 18918 | local LANG = 'it'
local function run(msg, matches)
if permissions(msg.from.id, msg.to.id, "lang_install") then
-------------------------
-- Translation version --
-------------------------
set_text(LANG, 'versione', '0.1')
set_text(LANG, 'versionExtended', 'Versione traduzione 0.1')
-------------
-- P... | gpl-2.0 |
mrmetti/teleum-new-open | system/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 |
radixdev/flang | lang/base/token.lua | 1 | 1592 | Token = {}
Flang.Token = Token
Token.__index = Token
--[[
Takes a character as input
]]
function Token:new(startCharacter)
if not startCharacter then
error("nil constructor!")
end
-- The cargo is a character object. The position info is encoded inside it already!
o = {
cargo = startCharacter.cargo,
... | mit |
yetsky/luci | modules/admin-full/luasrc/model/cbi/admin_system/admin.lua | 79 | 3356 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
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://w... | apache-2.0 |
gnuser/gocServer | d_3rd/LuaJIT-2.0.1/src/jit/bcsave.lua | 78 | 18123 | ----------------------------------------------------------------------------
-- LuaJIT module to save/list bytecode.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
-------------------------------------------------------------------------... | gpl-2.0 |
nwf/openwrt-packages | net/prosody/files/prosody.cfg.lua | 65 | 9428 | -- Prosody Example Configuration File
--
-- Information on configuring Prosody can be found on our
-- website at https://prosody.im/doc/configure
--
-- Tip: You can check that the syntax of this file is correct
-- when you have finished by running this command:
-- prosodyctl check config
-- If there are any errors,... | gpl-2.0 |
IntelligentBot/IntelligentBot | plugins/Arabic_Lock.lua | 1 | 1412 | antiarabic = {}-- An empty table for solving multiple kicking problem
do
local function run(msg, matches)
if is_momod(msg) then -- Ignore mods,owner,admins
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)]['settings']['lock_arabic'] then
if data[tostring(msg.to.id)... | gpl-2.0 |
notestudio/shall-I-kill-her | assets/scripts/vendor/anim8.lua | 14 | 8492 | local anim8 = {
_VERSION = 'anim8 v2.3.0',
_DESCRIPTION = 'An animation library for LÖVE',
_URL = 'https://github.com/kikito/anim8',
_LICENSE = [[
MIT LICENSE
Copyright (c) 2011 Enrique García Cota
Permission is hereby granted, free of charge, to any person obtaining a
copy of ... | apache-2.0 |
InfiniteRain/CS2D-AmplifiedScripting | classes/_image.lua | 1 | 25495 | -- Initializing the _image class
cas._image = cas.class()
--------------------
-- Static methods --
--------------------
-- Returns the image instance from the passed image ID.
function cas._image.getInstance(imageID)
if type(imageID) ~= "number" then
error("Passed \"imageID\" parameter is not valid. Number expec... | mit |
pazos/koreader | frontend/document/documentregistry.lua | 1 | 7971 | --[[--
This is a registry for document providers
]]--
local logger = require("logger")
local lfs = require("libs/libkoreader-lfs")
local util = require("util")
local DocumentRegistry = {
registry = {},
providers = {},
filetype_provider = {},
mimetype_ext = {},
}
function DocumentRegistry:addProvider(... | agpl-3.0 |
yetsky/luci | applications/luci-asterisk/luasrc/model/cbi/asterisk/phone_sip.lua | 80 | 3813 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 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$
]]--
l... | apache-2.0 |
siktirmirza/seq | 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 |
demolitions/conkyurlio | planes/tween.lua | 11 | 12553 | local tween = {
_VERSION = 'tween 2.0.0',
_DESCRIPTION = 'tweening for lua',
_URL = 'https://github.com/kikito/tween.lua',
_LICENSE = [[
MIT LICENSE
Copyright (c) 2014 Enrique García Cota, Yuichi Tateno, Emmanuel Oga
Permission is hereby granted, free of charge, to any person obtai... | gpl-2.0 |
jesperborgstrup/bitmessage-wireshark-dissector | bitmessage.lua | 1 | 11281 | -- bitmessage protocol example
-- declare our protocol
message_commands = { version=true, verack=true, addr=true, inv=true, getdata=true }
bitmessage_header_length = 24
bitmessage_proto = Proto("bitmessage","Bitmessage protocol")
-- create a function to dissect it
function bitmessage_proto.dissector(buffer,pinfo,tree... | mit |
xXDarkBoyXx/Cloud- | 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 |
FoxelBox/FoxBukkitLua | lua/src/main/lua/classes/HTTP.lua | 1 | 1284 | --[[
This file is part of FoxBukkitLua-lua.
FoxBukkitLua-lua 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 3 of the License, or
(at your option) any later versi... | lgpl-3.0 |
persianstar/AdvanSource | plugins/deleteall.lua | 1 | 1299 | -- by @Blackwolf_admin
-- channel @open_sources
local function history(extra, suc, result)
for i=1, #result do
delete_msg(result[i].id, ok_cb, false)
if tonumber(i) > 99 then
delete_msg(result[i].id, ok_cb, false)
else
if tonumber(i) > 99 then
delete_msg(result[i].id, ok_cb, false)
else
if tonumber(i) >... | gpl-2.0 |
leocarbonell/primer-proyecto-love | main/assets/draw.lua | 1 | 4954 | function printMouse(data)--imprimir el mouse
local x, y = love.mouse.getPosition() -- get the position of the mouse
love.graphics.setColor(255,255,255,255) --color del rectángulo
love.graphics.draw(data, x, y)--dibujar el mouse
end
function printBackground(data)--imprimir el background
love.graphics.setCo... | mit |
pfhore-github/alephone_jp | data/XBLA_HUD/XBLA.lua | 2 | 28694 | -- Enhanced HUD version 1.0
-- by Hopper
-- with thanks to Bungie and Freeverse
Triggers = {}
function Triggers.init()
-- align weapon and item mnemonics
ItemTypes["knife"].mnemonic = "fist"
opengl = true
if Screen.renderer == "software" then
opengl = false
end
Screen.crosshairs.lua... | gpl-3.0 |
payamohajeri/telegram-bot | 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, '<', '<' )
str = string.gsub( str, '>', '>' )
str = string.gsub( str, '"', '"' )
str... | gpl-2.0 |
openLuat/Luat | lib/agps.lua | 1 | 2861 | --- 模块功能:星历更新服务
-- @module agps
-- @author 稀饭放姜
-- @license MIT
-- @copyright OpenLuat.com
-- @release 2017.10.23
require "http"
require "net"
module(..., package.seeall)
-- 星历数据本地文件名
local GPD_FILE = "/GPD.txt"
local LBS_FILE = "/LBS.txt"
local GPD_URL = "http://download.openluat.com/9501-xingli/brdcGPD.dat_rda"
local... | mit |
bwarminski/tinyqs4j-core | src/main/java/co/tinyqs/tinyqs4j/core/send.lua | 1 | 1477 | --Message:
-- uuid
-- payload - HSET "data" -> uuid (first byte is version, the remainder is payload
-- expiration - ZSET "expirations:<channel>" -> (time) / uuid (optional)
-- deliveryCount - HSET "deliveries" -> uuid (int)
-- timestamp - HSET "timestamps" -> uuid
-- headers -... | bsd-3-clause |
telebombang2018/energy | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.