repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
NatWeiss/RGP | src/cocos2d-js/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/script/cocos2d/DrawPrimitives.lua | 98 | 12024 |
local dp_initialized = false
local dp_shader = nil
local dp_colorLocation = -1
local dp_color = { 1.0, 1.0, 1.0, 1.0 }
local dp_pointSizeLocation = -1
local dp_pointSize = 1.0
local SHADER_NAME_POSITION_U_COLOR = "ShaderPosition_uColor"
local targetPlatform = cc.Application:getInstance():getTargetPlatform()
lo... | mit |
enginix/luasocket | test/smtptest.lua | 44 | 5376 | local sent = {}
local from = "diego@localhost"
local server = "localhost"
local rcpt = "luasocket@localhost"
local files = {
"/var/spool/mail/luasocket",
"/var/spool/mail/luasock1",
"/var/spool/mail/luasock2",
"/var/spool/mail/luasock3",
}
local t = socket.time()
local err
dofile("mbox.lua")
local p... | mit |
ZipFile/vlc | 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 |
falsechicken/chickens_riddim_plugins | plugins/command_setstatus.lua | 1 | 1427 | --[[
Command_SetStatus
Allows users to set bot status via command.
Licensed Under the GPLv2
--]]
local permissions = require("riddim/ai_utils/permissions");
local jid_tool = require("riddim/ai_utils/jid_tool");
local BOT;
local helpMessge = "Sets the status of the bot. Usage: @setstatus <status> or $DEFAULT to use c... | gpl-2.0 |
bradchesney79/2015BeastRouterProject | openwrt/unsquash/squashfs-root/usr/lib/lua/luci/model/cbi/admin_network/network.lua | 48 | 2480 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
m = Map("network", translate("Interfaces"))
m.pageaction = false
m:section(SimpleSection).template = "admin_network/iface_overvi... | cc0-1.0 |
mcdonnelldean/eso-pad-merchant | PadMerchant/lib/LibAddonMenu-2.0/controls/iconpicker.lua | 8 | 13896 | --[[iconpickerData = {
type = "iconpicker",
name = "My Icon Picker",
tooltip = "Color Picker's tooltip text.",
choices = {"texture path 1", "texture path 2", "texture path 3"},
choicesTooltips = {"icon tooltip 1", "icon tooltip 2", "icon tooltip 3"}, --(optional)
getFunc = function() return db.var end,
setFunc =... | mit |
joaofvieira/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/rrdtool.lua | 46 | 3168 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("RRDTool Plugin Configuration"),
translate(
"The rrdtool plugin stores the collected data in rrd database " ..
"files, the foundation of the diagrams... | apache-2.0 |
eggBOY91/Arctic-Core | src/scripts/lua/LuaBridge/Stable Scripts/Azeroth/Karazhan/BOSS_Karazhan_Kilrek.lua | 30 | 1152 | function Kilrek_Broken_Pact(Unit, event, miscunit, misc)
if Unit:GetHealthPct() < 2 and Didthat == 0 then
Unit:FullCastSpellOnTarget(30065,Unit:GetUnitBySqlId(15688))
Unit:SendChatMessage(11, 0, "You let me down Terestian, you will pay for this...")
Didthat = 1
else
end
end
function Kilrek_FireBolt(Unit, even... | agpl-3.0 |
Aminkavari/-xXD4RKXx- | plugins/banhammer.lua | 294 | 10470 | local function is_user_whitelisted(id)
local hash = 'whitelist:user#id'..id
local white = redis:get(hash) or false
return white
end
local function is_chat_whitelisted(id)
local hash = 'whitelist:chat#id'..id
local white = redis:get(hash) or false
return white
end
local function kick_user(user_id, chat_id)... | gpl-2.0 |
moteus/lua-voip | lua/voip/sip/impl/transport.lua | 2 | 4503 | local async_socket = require "async_socket"
local timer = require "async_socket.timer"
local SipCreateMsg = require "voip.sip.message".new
----------------------------------------------
local SIP_TRANSPORT = {} do
local cnn_method = {
"bind","connect","close","idle","is_async",
"send","sendto","recv","recv... | mit |
pazos/koreader | frontend/ui/data/keyboardlayouts/tr_keyboard.lua | 4 | 2401 | -- Start with the english keyboard layout (deep copy, to not alter it)
local tr_keyboard = require("util").tableDeepCopy(require("ui/data/keyboardlayouts/en_keyboard"))
local keys = tr_keyboard.keys
-- Insert 2 additional key at the end of first 3 rows.
-- 5th and 6th modes are from Kurdish and Azerbaijani alphabets.... | agpl-3.0 |
InfiniteRain/CS2D-AmplifiedScripting | classes/timer.lua | 1 | 5544 | -- Initializing the timer class
cas.timer = cas.class()
----------------------
-- Instance methods --
----------------------
-- Constructor. Creates a timer with a function it supposed to run.
function cas.timer:constructor(func)
-- Checks if all the passed parameters were correct.
if type(func) ~= "function" then
... | mit |
pazos/koreader | frontend/device/kobo/nickel_conf.lua | 5 | 7804 | --[[--
Access and modify values in `Kobo eReader.conf` used by Nickel.
Only PowerOptions:FrontLightLevel is currently supported.
]]
local dbg = require("dbg")
local NickelConf = {}
NickelConf.frontLightLevel = {}
NickelConf.frontLightState = {}
NickelConf.colorSetting = {}
NickelConf.autoColorEnabled = {}
local kobo... | agpl-3.0 |
pazos/koreader | spec/unit/random_spec.lua | 15 | 1031 | describe("random package tests", function()
local random
local function is_magic_char(c)
return c == "8" or c == "9" or c == "A" or c == "B"
end
setup(function()
random = require("frontend/random")
end)
it("should generate uuid without dash", function()
for i = 1, 1000... | agpl-3.0 |
InfiniteRain/CS2D-AmplifiedScripting | classes/color.lua | 1 | 3574 | -- Initializing the color class.
cas.color = cas.class()
--------------------
-- Static methods --
--------------------
-- Checks if the passed parameters are suitable for color representation. All the passed parameters
-- have to be numbers, being in range of 0 and 255 while not containing a floating point.
function... | mit |
16cameronk/MyoScripts | PointerDebugOut.lua | 2 | 1822 | scriptId = 'com.jakechapeskie.pointer'
minMyoConnectVersion ='0.8.0'
scriptDetailsUrl = 'https://github.com/JakeChapeskie/MyoScripts'
scriptTitle = 'Pointer Connector'
myo.debug("Hold a fist and move around to see debug output")
function onForegroundWindowChange(app, title)
return true
end
function getMyoYawDegrees(... | mit |
ZipFile/vlc | share/lua/intf/dumpmeta.lua | 98 | 2125 | --[==========================================================================[
dumpmeta.lua: dump a file's meta data on stdout/stderr
--[==========================================================================[
Copyright (C) 2010 the VideoLAN team
$Id$
Authors: Antoine Cellerier <dionoea at videolan dot org>
Th... | gpl-2.0 |
zaeem55/meme | plugins/ar-help(2).lua | 1 | 4255 | do
local function run(msg, matches)
if is_momod(msg) and matches[1]== "مساعدة" then
return [[ ❣ رفع اداري >/: رفع ادمن في المجموعة
❣ تنزيل ادري >/ : حذف ادمن في المجوعة
❣ رفع ادمن >/ : رفع ادمن
❣ تنزيل ادمن >/ : حذف ادمن
❣ الادمنيه >/: لاظهار ادمنية المجموعة
❣ الاداريين >/: اضهار اداريين المجموعه
ـ ➖➖➖⚠️✅➖➖
✔️ قائ... | gpl-2.0 |
derElektrobesen/tntlua | notifications.lua | 5 | 6485 | --
-- A system to store and serve notifications in a social network.
-- Stores an association [user_id <-> list of notifications].
--
-- Each notification describes a recent event a user should get
-- informed about, and is represented by a notifcation_id.
--
-- Notification id is a fixed length string.
--
-- Notificat... | bsd-2-clause |
dangersuperbot/super_boomrange | plugins/delmsgs.lua | 3 | 1887 | local function history(extra, suc, result)
for i=1, #result do
delete_msg(result[i].id, ok_cb, false)
end
if tonumber(extra.con) == #result then
send_msg(extra.chatid, 'ℹ "'..#result..'" پیام اخیر سوپر گروه حذف شد', ok_cb, false)
else
send_msg(extra.chatid, 'ℹ️ تمام پیام های سوپر گروه حذف شد', ok_cb, false)
end
end
loc... | gpl-2.0 |
szszss/CharmingTremblePlus | build/premake4.lua | 1 | 1308 | solution "CharmingTremblePlus"
configurations {"Release", "Debug"}
configuration "Release"
flags { "Optimize", "EnableSSE", "Unicode"}
configuration "Debug"
flags { "Symbols", "NoEditAndContinue" ,"Unicode"}
defines { "DEBUG"}
configuration{}
if os.is("Linux") then
if os.is64bit() then
platforms {"x64"... | mit |
ZerothAngel/FtDScripts | ai/naval-ai-header.lua | 1 | 3118 | -- NAVAL AI
-- Target ranges that determine behavior
MinDistance = 300
MaxDistance = 500
-- Attack behavior (MinDistance < target range < MaxDistance)
-- All angles are relative to the target's bearing. So 0 heads
-- straight toward the target and 180 is straight away from it.
AttackAngle = 80
-- Drive fraction from ... | mit |
demolitions/conkyurlio | planes/data.lua | 1 | 2805 | function initData()
data = {};
data["cpu"] = {};
for i = 1,config["cpunr"] do
data["cpu_" .. i] = {};
end
data["mem"] = {};
data["swp"] = {};
for key,value in pairs(config["hdd"]) do
data["hdd_" .. key] = {};
end
data["netdn"] = {};
data["netup"] = {};
-- print("AFTER INIT: " .. #dat... | gpl-2.0 |
pazos/koreader | spec/unit/size_spec.lua | 13 | 1291 | describe("Size module", function()
local Size
setup(function()
require("commonrequire")
Size = require("ui/size")
end)
describe("should get size", function()
it("for window border", function()
assert.is_true(Size.border.window >= 1)
end)
end)
it("shoul... | agpl-3.0 |
NatWeiss/RGP | src/cocos2d-js/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/FadeOutTRTiles.lua | 7 | 2556 |
--------------------------------
-- @module FadeOutTRTiles
-- @extend TiledGrid3DAction
-- @parent_module cc
--------------------------------
-- brief Show the tile at specified position.<br>
-- param pos The position index of the tile should be shown.
-- @function [parent=#FadeOutTRTiles] turnOnTile
-- @param self
... | mit |
joaofvieira/luci | modules/luci-base/luasrc/model/uci.lua | 49 | 4995 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local os = require "os"
local uci = require "uci"
local util = require "luci.util"
local table = require "table"
local setmetatable, rawget, rawset = setmetatable, rawget, rawset
local require, getmetata... | apache-2.0 |
bradchesney79/2015BeastRouterProject | openwrt/unsquash/squashfs-root/usr/lib/lua/luci/model/uci.lua | 49 | 4995 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local os = require "os"
local uci = require "uci"
local util = require "luci.util"
local table = require "table"
local setmetatable, rawget, rawset = setmetatable, rawget, rawset
local require, getmetata... | cc0-1.0 |
NatWeiss/RGP | src/cocos2d-js/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Tween.lua | 19 | 2495 |
--------------------------------
-- @module Tween
-- @extend ProcessBase
-- @parent_module ccs
--------------------------------
--
-- @function [parent=#Tween] getAnimation
-- @param self
-- @return ArmatureAnimation#ArmatureAnimation ret (return value: ccs.ArmatureAnimation)
------------------------------... | mit |
MathieuDuponchelle/gdx | demos/pax-britannica/pax-britannica-android/assets/data/components/targeting.lua | 11 | 1526 | local v2 = require 'dokidoki.v2'
function on_screen(pos)
return pos.x >= game.constants.screen_left and
pos.x <= game.constants.screen_right and
pos.y >= game.constants.screen_bottom and
pos.y <= game.constants.screen_top
end
-- returns the closest target of the given type
function get_ne... | apache-2.0 |
yetsky/luci | applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-cdr.lua | 80 | 1878 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | apache-2.0 |
judos/hardCrafting | source/libs/lua/string.lua | 1 | 1232 | require "libs.logging"
function string.starts(str,prefix)
return string.sub(str,1,string.len(prefix))==prefix
end
function string.ends(str,suffix)
return suffix=='' or string.sub(str,-string.len(suffix))==suffix
end
-- See: http://lua-users.org/wiki/MakingLuaLikePhp
function split(str,divider) -- credit: http:/... | gpl-3.0 |
yetsky/luci | modules/freifunk/luasrc/model/cbi/freifunk/profile.lua | 56 | 2755 | --[[
LuCI - Lua Configuration Interface
Copyright 2011-2012 Manuel Munz <freifunk at somakoma dot de>
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
httc://www.apache.org/licenses/LICENSE-2.0
]]... | apache-2.0 |
daniel-slaney/demirogue | src/prelude/table.lua | 3 | 3725 | --
-- misc/table.lua
--
-- Utility functions for working with tables.
--
-- TODO: random functions need optional generator argument.
-- TODO: luafun might be a better option for a lot of these.
--
function table.keys( tbl )
local result = {}
for k, _ in pairs(tbl) do
result[#result+1] = k
end
return result
end... | bsd-3-clause |
rmtew/demirogue | src/prelude/table.lua | 3 | 3725 | --
-- misc/table.lua
--
-- Utility functions for working with tables.
--
-- TODO: random functions need optional generator argument.
-- TODO: luafun might be a better option for a lot of these.
--
function table.keys( tbl )
local result = {}
for k, _ in pairs(tbl) do
result[#result+1] = k
end
return result
end... | bsd-3-clause |
leafo/aroma | nacl/lua-cjson-2.1.0/lua/cjson/util.lua | 170 | 6837 | local json = require "cjson"
-- Various common routines used by the Lua CJSON package
--
-- Mark Pulford <mark@kyne.com.au>
-- Determine with a Lua table can be treated as an array.
-- Explicitly returns "not an array" for very sparse arrays.
-- Returns:
-- -1 Not an array
-- 0 Empty table
-- >0 Highest index ... | mit |
yetsky/luci | protocols/ppp/luasrc/model/cbi/admin_network/proto_l2tp.lua | 59 | 1868 | --[[
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 ma... | apache-2.0 |
uber/zanzibar | benchmarks/contacts_1KB.lua | 1 | 1558 | -- wrk -t12 -c400 -d30s -s ./benchmarks/contacts_1KB.lua http://localhost:8093/contacts/foo/contacts
-- go-torch -u http://localhost:8093/ -t5
wrk.method = "POST"
wrk.body = "{\"userUUID\":\"some-uuid\",\"contacts\":[{\"fragments\":[{\"type\":\"message\",\"text\":\"foobarbaz\"}],\"attributes\":{\"firstName\":\"steve\",... | mit |
pazos/koreader | plugins/evernote.koplugin/clip.lua | 4 | 10109 | local DocumentRegistry = require("document/documentregistry")
local DocSettings = require("docsettings")
local ReadHistory = require("readhistory")
local logger = require("logger")
local md5 = require("ffi/sha2").md5
local util = require("util")
local MyClipping = {
my_clippings = "/mnt/us/documents/My Clippings.t... | agpl-3.0 |
snassar/tess | etc/prosody/conf.avail/tess.cfg.lua | 1 | 1042 | -- Section for tess
VirtualHost "tess"
-- Assign this host a certificate for TLS, otherwise it would use the one
-- set in the global section (if any).
-- Note that old-style SSL on port 5223 only supports one certificate, and will always
-- use the global one.
ssl = {
... | gpl-3.0 |
johnymarek/tsdemuxer | xupnpd/src/plugins/staff/xupnpd_minaev.lua | 6 | 2445 | -- Copyright (C) 2011-2012 Anton Burdinuk
-- clark15b@gmail.com
-- https://tsdemuxer.googlecode.com/svn/trunk/xupnpd
-- feed: archive
function minaev_updatefeed(feed,friendly_name)
local rc=false
local feed_url='http://www.minaevlive.ru/'..feed..'/'
local feed_name='minaev_'..string.gsub(feed,'/','_')
... | mit |
joaofvieira/luci | applications/luci-app-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo_config.lua | 61 | 1072 | -- Copyright 2009 Daniel Dickinson
-- Licensed to the public under the Apache License 2.0.
require("luci.controller.luci_diag.devinfo_common")
m = Map("luci_devinfo", translate("SIP Device Scanning Configuration"), translate("Configure scanning for supported SIP devices on specified networks. Decreasing \'Timeout\', ... | apache-2.0 |
bradchesney79/2015BeastRouterProject | openwrt/unsquash/squashfs-root/usr/lib/lua/luci/model/cbi/admin_network/proto_6rd.lua | 72 | 2039 | -- Copyright 2011-2012 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local ipaddr, peeraddr, ip6addr, tunnelid, username, password
local defaultroute, metric, ttl, mtu
ipaddr = s:taboption("general", Value, "ipaddr",
translate("Local IPv4 ad... | cc0-1.0 |
miraage/gladdy | Libs/AceDBOptions-3.0/AceDBOptions-3.0.lua | 2 | 15710 | --[[ $Id: AceDBOptions-3.0.lua 81438 2008-09-06 13:44:36Z nevcairiel $ ]]
local ACEDBO_MAJOR, ACEDBO_MINOR = "AceDBOptions-3.0", 7
local AceDBOptions, oldminor = LibStub:NewLibrary(ACEDBO_MAJOR, ACEDBO_MINOR)
if not AceDBOptions then return end -- No upgrade needed
AceDBOptions.optionTables = AceDBOptions.optionTable... | mit |
philsiff/Red-Vs-Blue | Very Basic TDM [Gamemode]/gamemodes/vbtdm/gamemode/playerspawns/sv_spawns.lua | 1 | 9665 | --[[
For this spawn system to work, these lines need to be placed in the gamemode's init.lua:
function GM:PlayerSelectSpawn( ply )
local Team = ply:Team()
points = ents.FindByClass("team" .. Team)
if #points == 0 then
points = ents.FindByClass("info_player_start")
end
return points[math.random(#points)]
end
-... | mit |
pazos/koreader | plugins/evernote.koplugin/JoplinClient.lua | 3 | 3590 | local json = require("json")
local http = require("socket.http")
local ltn12 = require("ltn12")
local JoplinClient = {
server_ip = "localhost",
server_port = 41184,
auth_token = ""
}
function JoplinClient:new(o)
o = o or {}
self.__index = self
setmetatable(o, self)
return o
end
function ... | agpl-3.0 |
NatWeiss/RGP | src/cocos2d-js/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/MenuItem.lua | 7 | 1678 |
--------------------------------
-- @module MenuItem
-- @extend Node
-- @parent_module cc
--------------------------------
-- Enables or disables the item.
-- @function [parent=#MenuItem] setEnabled
-- @param self
-- @param #bool value
-- @return MenuItem#MenuItem self (return value: cc.MenuItem)
--------... | mit |
mjarco/sysdig | userspace/sysdig/chisels/v_incoming_connections.lua | 7 | 1768 | --[[
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 |
NatWeiss/RGP | src/cocos2d-js/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/script/network/DeprecatedNetworkFunc.lua | 61 | 1123 | if nil == cc.XMLHttpRequest then
return
end
--tip
local function deprecatedTip(old_name,new_name)
print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********")
end
--functions of WebSocket will be deprecated begin
local targetPlatform = CCApplication:getInstance():get... | mit |
siktirmirza/seq | plugins/prosend.lua | 1 | 3893 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
if matches[1]:lower() == 'send' then
local file = matches[3]
if matches[2]:lower() == 'sticker' and not matches[4] then
send_document(receiver, "./media/"..file..".webp", ok_cb, false)
end
if matches[2]:lowe... | gpl-2.0 |
eggBOY91/Arctic-Core | src/scripts/lua/Lua/0Misc/0LCF_Includes/LCF_Gameobject.lua | 18 | 2928 | --[[
* ArcEmu MMORPG Server
* Copyright (C) 2005-2007 Ascent Team <http://www.ascentemu.com/>
* Copyright (C) 2008-2010 <http://www.ArcEmu.org/>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Softwa... | agpl-3.0 |
disslove2-bot/Mr.Mj-BOT | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
NatWeiss/RGP | src/cocos2d-js/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/TextBMFont.lua | 12 | 2334 |
--------------------------------
-- @module TextBMFont
-- @extend Widget
-- @parent_module ccui
--------------------------------
-- init a bitmap font atlas with an initial string and the FNT file
-- @function [parent=#TextBMFont] setFntFile
-- @param self
-- @param #string fileName
-- @return TextBMFont#TextBMFon... | mit |
LuaDist2/luarocks | test/mock-server.lua | 7 | 2067 | #!/usr/bin/env lua
--- A simple LuaRocks mock-server for testing.
local restserver = require("restserver")
local server = restserver:new():port(8080)
server:add_resource("api/tool_version", {
{
method = "GET",
path = "/",
produces = "application/json",
handler = function(query)
loc... | mit |
pazos/koreader | frontend/ui/widget/closebutton.lua | 5 | 2446 | --[[--
Button widget that shows an "×" and handles closing window when tapped
Example:
local CloseButton = require("ui/widget/closebutton")
local parent_widget = OverlapGroup:new{}
table.insert(parent_widget, CloseButton:new{
window = parent_widget,
})
UIManager:show(parent_widget)
]]
lo... | agpl-3.0 |
klyone/wishbone-gen | target_wishbone.lua | 1 | 8942 | -- -*- Mode: LUA; tab-width: 2 -*-
MAX_ACK_LENGTH = 10;
function gen_wishbone_ports()
local ports = {
port(BIT, 0, "in", "rst_n_i", "", VPORT_WB),
port(BIT, 0, "in", "wb_clk_i", "", VPORT_WB),
};
if(address_bus_width > 0 ) then
table_join(ports, { port(SLV, address_bus_width, "in", "wb_addr_i", "", VPOR... | gpl-2.0 |
KTXSoftware/haxe_bin | std/lua/_lua/_hx_tostring.lua | 1 | 3309 |
function _hx_print_class(obj, depth)
local first = true
local result = ''
for k,v in pairs(obj) do
if _hx_hidden[k] == nil then
if first then
first = false
else
result = result .. ', '
end
if _hx_hidden[k] == nil then
... | lgpl-2.1 |
zaeem55/meme | 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... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.