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 |
|---|---|---|---|---|---|
Dual-Boxing/Jamba | Libs/AceGUI-3.0/widgets/AceGUIContainer-DropDownGroup.lua | 65 | 4515 | --[[-----------------------------------------------------------------------------
DropdownGroup Container
Container controlled by a dropdown on the top.
-------------------------------------------------------------------------------]]
local Type, Version = "DropdownGroup", 21
local AceGUI = LibStub and LibStub("AceGUI-... | mit |
Servius/tfa-sw-weapons-repository | Live Addons/servius_uploader/[TFA][AT] Expanded Pack/lua/weapons/tfa_sparks_wristblue/shared.lua | 1 | 1939 | if ( SERVER ) then
AddCSLuaFile( "shared.lua" )
end
if ( CLIENT ) then
SWEP.PrintName = "Wrist Blaster Blue"
SWEP.Author = "Servius"
SWEP.ViewModelFOV = 70
SWEP.Slot = 1
SWEP.SlotPos = 5
SWEP.WepSelectIcon = surface.GetTextureID("HUD/killicons/DC15SA")
killicon.Add( "weapon_752_dc15sa", "HUD/... | apache-2.0 |
Sonicrich05/FFXI-Server | scripts/zones/Misareaux_Coast/npcs/_0p8.lua | 17 | 1782 | -----------------------------------
-- Area: Misareaux Coast
-- NPC: Iron Gate
-- Entrance to Sacrarium
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Misarea... | gpl-3.0 |
mpromonet/janus-gateway | src/plugins/lua/videoroom.lua | 4 | 35566 | -- This is a simple example of an video room application built in Lua,
-- and conceived to be used in conjunction with the janus_lua.c plugin
--
-- Note: this example depends on lua-json to do JSON processing
-- (http://luaforge.net/projects/luajson/)
json = require('json')
-- We also import our own SDP helper utilitie... | gpl-3.0 |
chewi/Aquaria | files/scripts/entities/_unused/minicrab.lua | 6 | 3466 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
OSGConnect/modulefiles | modulefiles/Core/hmmer/3.1.lua | 1 | 1084 | help(
[[
HMMER is used for searching sequence databases for homologs of protein sequences, and for making protein sequence
alignments. It implements methods using probabilistic models called profile hidden Markov models (profile HMMs).
Compared to BLAST, FASTA, and other sequence alignment and database search tools bas... | apache-2.0 |
dunn/ntopng | scripts/lua/modules/json.lua | 10 | 4552 | --
-- (C) 2013-15 - ntop.org
--
--- Simple class for JSON parsing
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
local parseElement
local function skipWhitespaces(content, pos)
local _,nend = content:find("^[ \n\r\t]+", pos)
if (nend ~= nil) then
retur... | gpl-3.0 |
ld-test/sqlrocks | spec/all_spec.lua | 1 | 34560 | local ins, say, json, string, table =
require '..sqlrocks'(), require 'say', require 'dkjson', require 'string', require 'table'
local _select, type, tostring, format, concat, remove =
select, type, tostring, string.format, table.concat, table.remove
local sql, val, select, insertInto, insert, update, delete, _an... | mit |
chewi/Aquaria | files/scripts/maps/_unused/node_energyboss_done.lua | 6 | 1348 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
NogsIoT/Nogs-IDE | Templates/Projects/041 ADC/Startup.lua | 1 | 2759 | --[[
*
*
* Copyright (C) Nogs GmbH, Andre Riesberg
*
* 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.
* ... | gpl-2.0 |
chewi/Aquaria | files/scripts/entities/jellyshock.lua | 6 | 6751 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
sanger-pathogens/companion | bin/pseudo_merge_with_genes.lua | 4 | 14930 | #!/usr/bin/env gt
--[[
Author: Sascha Steinbiss <ss34@sanger.ac.uk>
Copyright (c) 2015-2016 Genome Research Ltd
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in a... | isc |
dgladkov/CoolFish | CoolFish/CoolFishBot/LuaResources/GetLureName.lua | 2 | 1382 | LureName = nil;
local Lures = {
-- Consumable Lures
[67404] = true,
[6529] = true,
[6811] = true,
[6530] = true,
[6532] = true,
[7307] = true,
[6533] = true,
[62673] = true,
[46006] = true,
[34861] = true,
[68049] = true,
[118391] = true; -- Worm Supreme
};
local equipLures = {
-- Hats
[33820] = true,... | mit |
webwlsong/ABTestingGateway | lib/abtesting/error/errcode.lua | 22 | 1583 | local modulename = 'abtestingErrorInfo'
local _M = {}
_M._VERSION = '0.0.1'
_M.info = {
-- index code desc
-- SUCCESS
["SUCCESS"] = { 200, 'success '},
-- System Level ERROR
['REDIS_ERROR'] = { 40101, 'redis error for '},
['POLICY_DB_ERROR'] = { 40102, 'policy in db error '... | mit |
Fir3element/tfs11 | data/npc/lib/npc.lua | 9 | 3186 | -- Including the Advanced NPC System
dofile('data/npc/lib/npcsystem/npcsystem.lua')
function msgcontains(message, keyword)
local message, keyword = message:lower(), keyword:lower()
if message == keyword then
return true
end
return message:find(keyword) and not message:find('(%w+)' .. keyword)
end
function doNp... | gpl-2.0 |
ruvolof/telegram-bot | plugins/twitter_send.lua | 627 | 1555 | do
local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local client = OAuth.new(consumer_key, consumer_secret, {
RequestToken = "https://api.twitter.com/oauth/request_token",
AuthorizeUser = {"https://api.twitter.com/oauth/autho... | gpl-2.0 |
maxmax1/fooniks | resources/admin/server/admin_ACL.lua | 2 | 2983 | --[[**********************************
*
* Multi Theft Auto - Admin Panel
*
* admin_ACL.lua
*
* Original File by lil_Toady
*
**************************************]]
function aSetupACL ()
local temp_acl_nodes = {}
local node = xmlLoadFile ( "conf\\ACL.xml" )
if ( node ) then
--Get ACLs
local acls... | gpl-3.0 |
oratory/wago.io | backend/api/lua/wa2jsontest.lua | 1 | 2820 | dofile( "./wago.lua" )
local JSON = (loadfile "./json.lua")()
function table.show(t, name, indent)
local cart -- a container
local autoref -- for self references
--[[ counts the number of elements in a table
local function tablecount(t)
local n = 0
for _, _ in pairs(t) do n = n+1 end
... | mit |
milos-korenciak/heroku-buildpack-tex | buildpack/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/doc/ogdf/layered/SiftingHeuristic.lua | 3 | 1201 | -- Copyright 2013 by Till Tantau
--
-- This file may be distributed an/or modified
--
-- 1. under the LaTeX Project Public License and/or
-- 2. under the GNU Public License
--
-- See the file doc/generic/pgf/licenses/LICENSE for more information
-- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd... | mit |
TeleGram-Real/RealBot | data/config.lua | 4 | 7352 | do local _ = {
about_text = "\n",
enabled_plugins = {
"admin",
"kickbot",
"commands",
"group",
"banhammer",
"stats",
"anti_spam",
"arabic_lock",
"set",
"get",
"broadcast",
"invite",
"leave_ban",
"supergroup",
"whitelist",
"msg_checks",
"log-msgs",
... | gpl-2.0 |
chewi/Aquaria | files/scripts/entities/_unused/lumite.lua | 6 | 3020 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
sabotage3d/gamecode4 | Extra/UtilityDemo/utility.lua | 44 | 7963 | -- Utility.lua
-- A simple utility game
-- A "better" random seed. This was taken from http://lua-users.org/wiki/MathLibraryTutorial
math.randomseed(tonumber(tostring(os.time()):reverse():sub(1,6)))
----------------------------------------------------------------------------------------------------------------... | lgpl-3.0 |
maxmax1/fooniks | resources/phoenix_Phone/SimCard_Class_S.lua | 2 | 18404 | --[[
SimCards
Variables:
table allCards
Functions:
Load();
Save();
Events:
onSimInfoRequest( );
onSmsUpdate
onNewContact
onClearSmsLog
onSingleSmsUpdate
onClearSingleSmsLog
onSmsSend
]]--
SimCards = { };
SimCards.__index = SimCards;
function ... | gpl-3.0 |
maxmax1/fooniks | resources/briefcase/briefcase.lua | 2 | 3963 | local root = getRootElement()
local localPlayer = getLocalPlayer()
local idleBriefcase = false
local streamedIn = false
local spin = false
local briefcaseCarriers = {} -- player = player thePlayer, object = object briefcase, hidden = bool hidden
function addBriefcaseHolder(player)
local briefcase = create... | gpl-3.0 |
mmcclimon/dotfiles | hammerspoon/Spoons/ReloadConfiguration.spoon/init.lua | 7 | 1515 | --- === ReloadConfiguration ===
---
--- Adds a hotkey to reload the hammerspoon configuration, and a pathwatcher to automatically reload on changes.
---
--- Download: [https://github.com/Hammerspoon/Spoons/raw/master/Spoons/ReloadConfiguration.spoon.zip](https://github.com/Hammerspoon/Spoons/raw/master/Spoons/ReloadCon... | mit |
bestroidd/advan | plugins/sticker2photo.lua | 17 | 1060 | local function tosticker(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/stickers/'..msg.from.id..'.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
send_photo(get_receiver(msg), file, ok_cb, false)
re... | gpl-2.0 |
rezabeyond/source | plugins/sticker2photo.lua | 17 | 1060 | local function tosticker(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/stickers/'..msg.from.id..'.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
send_photo(get_receiver(msg), file, ok_cb, false)
re... | gpl-2.0 |
oratory/wago.io | backend/api/lua/libs/AceGUI-3.0-SharedMediaWidgets/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua | 12 | 8740 | --[[ $Id: CallbackHandler-1.0.lua 3 2008-09-29 16:54:20Z nevcairiel $ ]]
local MAJOR, MINOR = "CallbackHandler-1.0", 3
local CallbackHandler = LibStub:NewLibrary(MAJOR, MINOR)
if not CallbackHandler then return end -- No upgrade needed
local meta = {__index = function(tbl, key) tbl[key] = {} return tbl[key] end}
loc... | mit |
TeleSeedTM/antispam | libs/JSON.lua | 28 | 34978 | -- -*- 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-3.0 |
zhaoxx063/luci | applications/luci-app-pbx/luasrc/model/cbi/pbx-google.lua | 146 | 5490 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx 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
... | apache-2.0 |
chewi/Aquaria | files/scripts/maps/_unused/node_vision_energytemple.lua | 6 | 1209 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
chewi/Aquaria | files/scripts/entities/_unused/prologue_mithala.lua | 6 | 1650 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
sanger-pathogens/companion | bin/abacas_combine.lua | 4 | 9008 | #!/usr/bin/env gt
--[[
Author: Sascha Steinbiss <ss34@sanger.ac.uk>
Copyright (c) 2014-2015 Genome Research Ltd
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in a... | isc |
ovx/lua-cjson | tests/bench.lua | 145 | 3247 | #!/usr/bin/env lua
-- This benchmark script measures wall clock time and should be
-- run on an unloaded system.
--
-- Your Mileage May Vary.
--
-- Mark Pulford <mark@kyne.com.au>
local json_module = os.getenv("JSON_MODULE") or "cjson"
require "socket"
local json = require(json_module)
local util = require "cjson.ut... | mit |
oratory/wago.io | backend/api/lua/libs/AceGUI-3.0-SharedMediaWidgets/Libs/LibStub/LibStub.lua | 184 | 1367 | -- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info
-- LibStub is hereby placed in the Public Domain Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke
local LIBSTUB_MAJOR, LIBSTUB_MINOR = "LibStub", 2 -- NEVER MAKE THIS AN SVN REVI... | mit |
tkdrob/Battle-Tag | Packages/TheWolf/Data/Script/Lua/UATheWolf.UILeaderboardItem.lua | 1 | 5541 |
--[[--------------------------------------------------------------------------
--
-- File: UATheWolf.UILeaderboardItem.lua
-- Copyright (c) Ubisoft Entertainment. All rights reserved.
--
-- Project: Ubitoys.Tag
-- Date: August 13, 2010
--
------------------------... | mit |
zchengquan/nn | SpatialFullConvolution.lua | 42 | 1589 | local SpatialFullConvolution, parent = torch.class('nn.SpatialFullConvolution','nn.Module')
function SpatialFullConvolution:__init(nInputPlane, nOutputPlane, kW, kH, dW, dH)
parent.__init(self)
dW = dW or 1
dH = dH or 1
self.nInputPlane = nInputPlane
self.nOutputPlane = nOutputPlane
self.kW = kW
... | bsd-3-clause |
amilaperera/google-diff-match-patch | lua/diff_match_patch.lua | 265 | 73869 | --[[
* Diff Match and Patch
*
* Copyright 2006 Google Inc.
* http://code.google.com/p/google-diff-match-patch/
*
* Based on the JavaScript implementation by Neil Fraser.
* Ported to Lua by Duncan Cross.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance ... | apache-2.0 |
DreanorESOUI/HideElements | src/libs/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/panel.lua | 6 | 5671 | --[[panelData = {
type = "panel",
name = "Window Title", -- or string id or function returning a string
displayName = "My Longer Window Title", -- or string id or function returning a string (optional) (can be useful for long addon names or if you want to colorize it)
author = "Seerah", -- or stri... | mit |
resistor58/deaths-gmod-server | wire/lua/entities/gmod_wire_screen/shared.lua | 1 | 1977 | ENT.Type = "anim"
ENT.Base = "base_wire_entity"
ENT.PrintName = "Wire Screen"
ENT.Author = ""
ENT.Contact = ""
ENT.Purpose = ""
ENT.Instructions = ""
ENT.Spawnable = false
ENT.AdminSpawnable = false
function ENT:SetDisplayA( float )
self.... | gpl-3.0 |
gameloses/cocos2dx_lua_skynet_client | src/cocos/cocos2d/Cocos2dConstants.lua | 7 | 16474 |
cc = cc or {}
cc.SPRITE_INDEX_NOT_INITIALIZED = 0xffffffff
cc.TMX_ORIENTATION_HEX = 0x1
cc.TMX_ORIENTATION_ISO = 0x2
cc.TMX_ORIENTATION_ORTHO = 0x0
cc.Z_COMPRESSION_BZIP2 = 0x1
cc.Z_COMPRESSION_GZIP = 0x2
cc.Z_COMPRESSION_NONE = 0x3
cc.Z_COMPRESSION_ZLIB = 0x0
cc.BLEND_DST = 0x303
cc.BLEND_SRC = 0x1... | mit |
aspiraboo/kappa | data/actions/scripts/other/music.lua | 3 | 3412 | local instruments = {
[2070] = {effect = CONST_ME_SOUND_GREEN}, -- wooden flute
[2071] = {effect = CONST_ME_SOUND_GREEN}, -- lyre
[2072] = {effect = CONST_ME_SOUND_GREEN}, -- lute
[2073] = {effect = CONST_ME_SOUND_GREEN}, -- drum
[2074] = {effect = CONST_ME_SOUND_GREEN}, -- panpipes
[2075] = {effect = CONST_ME_SO... | gpl-2.0 |
oratory/wago.io | backend/api/lua/libs/AceEvent-3.0/AceEvent-3.0.lua | 50 | 4772 | --- AceEvent-3.0 provides event registration and secure dispatching.
-- All dispatching is done using **CallbackHandler-1.0**. AceEvent is a simple wrapper around
-- CallbackHandler, and dispatches all game events or addon message to the registrees.
--
-- **AceEvent-3.0** can be embeded into your addon, either explicit... | mit |
chewi/Aquaria | files/scripts/entities/swordfish.lua | 6 | 5733 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
jiangzhw/QSanguosha | lua/sanguosha.lua | 5 | 3056 | --[[********************************************************************
Copyright (c) 2013-2014 - QSanguosha-Rara
This file is part of QSanguosha-Hegemony.
This game 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... | gpl-3.0 |
chewi/Aquaria | files/scripts/entities/_unused/lumitebreeder.lua | 6 | 3488 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
dunn/ntopng | scripts/lua/sprobe_hosts.lua | 10 | 1681 | --
-- (C) 2014-15-15 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
if(mode ~= "embed") then
sendHTTPHeader('text/html; charset=iso-8859-1')
ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc")
active_page = "ho... | gpl-3.0 |
mSenyor/sl4a | lua/luasocket/src/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 $
-----------------------------------------------------------------------------
-----... | apache-2.0 |
dunn/ntopng | scripts/lua/modules/graph_utils.lua | 3 | 35548 | --
-- (C) 2013-15 - ntop.org
--
top_rrds = {
["bytes.rrd"] = "Traffic",
["packets.rrd"] = "Packets",
["drops.rrd"] = "Packet Drops",
["num_flows.rrd"] = "Active Flows",
["num_hosts.rrd"] = "Active Hosts",
["num_http_hosts.rrd"] = "Active HTTP Servers"
}
-- ###########################################... | gpl-3.0 |
wyozi/3d2d-imgui | tdui.lua | 1 | 32588 | --[[
The MIT License (MIT)
Copyright (c) 2014-2015 Wyozi <http://www.github.com/wyozi>
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 limitatio... | mit |
ovx/lua-cjson | 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 |
stormraiser/GAN-weight-norm | torch/modules/WeightNormalizedConvolution.lua | 1 | 3644 | local torch = require 'torch'
local nn = require 'nn'
local WNC, parent = torch.class('nn.WeightNormalizedConvolution', 'nn.Module')
function WNC:__init(nInput, nOutput, kw, kh, dw, dh, pw, ph, hasScale, hasBias)
parent.__init(self)
self.conv = nn.SpatialConvolution(nInput, nOutput, kw, kh, dw, dh, pw, ph):noBias()
... | gpl-3.0 |
Hugome/perso-script-tekkit | TurtleQuarry/src/moves.lua | 1 | 1221 |
function checkFuel()
if(turtle.getFuelLevel() > 10) then return end
for i=1, 16 do
turtle.select(i)
if turtle.refuel(0) then
turtle.refuel(10)
turtle.select(1)
return
end
end
turtle.select(1)
end
function forwardTurtle()
local retmove = false
local i = 0
while retmove == fa... | mit |
javierguerragiraldez/snabbswitch | src/core/link.lua | 2 | 2433 | module(...,package.seeall)
local debug = _G.developer_debug
local ffi = require("ffi")
local C = ffi.C
local packet = require("core.packet")
require("core.packet_h")
require("core.link_h")
local band = require("bit").band
local size = C.LINK_RING_SIZE -- NB: Huge slow-down if this is not local
max =... | apache-2.0 |
rickyHong/dptorchLib | visitor/visitor.lua | 2 | 4893 | ------------------------------------------------------------------------
--[[ Visitor ]]--
-- Visits a composite struture of Models and modifies their states.
-- Visitors should try to access a model method assigned to
-- each visitor (if itexists). This would allow models to implement
-- visitor specifics. (already s... | bsd-3-clause |
zchengquan/nn | Parallel.lua | 39 | 3780 | local Parallel, parent = torch.class('nn.Parallel', 'nn.Container')
function Parallel:__init(inputDimension,outputDimension)
parent.__init(self)
self.modules = {}
self.size = torch.LongStorage()
self.inputDimension = inputDimension
self.outputDimension = outputDimension
end
function Parallel:updateOut... | bsd-3-clause |
Nottinghster/OTServ_SVN-0.6.4 | src/data/movements/scripts/switch_tile.lua | 4 | 1377 | local SWITCHES = { {416, 417}, {426, 425}, {446, 447}, {3216, 3217}, {11062, 11063} }
local function transformItemKeepingAid(item, newid)
local ret = doTransformItem(item.uid, newid)
if ret and item.actionid ~= 0 then
doSetItemActionId(item.uid, item.actionid)
end
return ret
end
local function doTransformTile(i... | gpl-2.0 |
javierguerragiraldez/snabbswitch | src/lib/protocol/icmp/header.lua | 1 | 2039 | module(..., package.seeall)
local ffi = require("ffi")
local C = ffi.C
local header = require("lib.protocol.header")
local lib = require("core.lib")
local ipsum = require("lib.checksum").ipsum
-- XXX IPv4 and IPv6 use the same ICMP header format but distinct
-- number spaces for type and code. This class needs to be ... | apache-2.0 |
adonaac/yaoui | examples/anime/yaoui/FontAwesome.lua | 4 | 17602 | return {
["fa-adjust"] = "",
["fa-adn"] = "",
["fa-align-center"] = "",
["fa-align-justify"] = "",
["fa-align-left"] = "",
["fa-align-right"] = "",
["fa-ambulance"] = "",
["fa-anchor"] = "",
["fa-android"] = "",
["fa-angellist"] = "",
["fa-angle-double-down"] = "",... | mit |
resistor58/deaths-gmod-server | wire/lua/entities/gmod_wire_dataport/init.lua | 1 | 1364 | AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
ENT.WireDebugName = "DataPort"
ENT.OverlayDelay = 0
function ENT:Initialize()
self.Entity:PhysicsInit( SOLID_VPHYSICS )
self.Entity:SetMoveType( MOVETYPE_VPHYSICS )
self.Entity:SetSolid( SOLID_VPHYSICS )
self.Entity:SetU... | gpl-3.0 |
chewi/Aquaria | files/scripts/include/collectiblecostumetemplate.lua | 6 | 2658 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
milos-korenciak/heroku-buildpack-tex | buildpack/texmf-dist/tex/generic/pgf/libraries/luamath/pgfluamath.functions.lua | 1 | 6250 | -- Copyright 2011 by Christophe Jorssen
--
-- This file may be distributed and/or modified
--
-- 1. under the LaTeX Project Public License and/or
-- 2. under the GNU Public License.
--
-- See the file doc/generic/pgf/licenses/LICENSE for more details.
--
-- $Id: pgfluamath.functions.lua,v 1.9 2013/07/25 10:39:34 tantau... | mit |
22i/amc | init.lua | 1 | 134069 | --[[ collision box
{-1, -0.5, -1, 1, 3, 1}, Right, Bottom, Back, Left, Top, Front
--]]
minetest.register_node('amc:chester', {
description = 'chester facedir',
drawtype = 'mesh',
mesh = 'chester.b3d',
tiles = {'amc_normal.png'},
groups = {choppy=2, dig_immediate=2,},
paramtype = 'light',
paramtype... | gpl-3.0 |
zhaoxx063/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 |
chewi/Aquaria | game_scripts/_mods/aquariaeditortutorial/scripts/node_entities03.lua | 6 | 2202 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
aspiraboo/kappa | data/npc/lib/npcsystem/npchandler.lua | 15 | 22088 | -- Advanced NPC System by Jiddo
if NpcHandler == nil then
-- Constant talkdelay behaviors.
TALKDELAY_NONE = 0 -- No talkdelay. Npc will reply immedeatly.
TALKDELAY_ONTHINK = 1 -- Talkdelay handled through the onThink callback function. (Default)
TALKDELAY_EVENT = 2 -- Not yet implemented
-- Currently applied tal... | gpl-2.0 |
AdiAddons/LibPlayerSpells-1.0 | data/Mage.lua | 1 | 8870 | --[[
LibPlayerSpells-1.0 - Additional information about player spells.
(c) 2013-2021 Adirelle (adirelle@gmail.com)
This file is part of LibPlayerSpells-1.0.
LibPlayerSpells-1.0 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 Softwar... | gpl-3.0 |
Meituan-Dianping/DBProxy | lib/admin-sql.lua | 4 | 9812 | --[[ $%BEGINLICENSE%$
Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
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; version 2 of the
License.
This program is distribut... | gpl-2.0 |
rickyHong/dptorchLib | data/imagenet.lua | 2 | 6329 | ------------------------------------------------------------------------
--[[ ImageNet ]]--
-- http://image-net.org/challenges/LSVRC/2014/download-images-5jj5.php
-- Wraps the Large Scale Visual Recognition Challenge 2014 (ILSVRC2014)
-- classification dataset (commonly known as ImageNet). The dataset
-- hasn't changed... | bsd-3-clause |
RobertZenz/minetest-australopithecus-utils | mods/utils/init.lua | 2 | 2843 | --[[
Copyright (c) 2014, Robert 'Bobby' Zenz
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the fo... | bsd-2-clause |
focusworld/bbb | plugins/banhammer.lua | 12 | 12022 |
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 |
bestroidd/advan | plugins/Groups.lua | 1 | 2450 | local function chat_list(msg)
local data = load_data(_config.moderation.data)
local groups = 'groups'
if not data[tostring(groups)] then
return 'No groups at the moment'
end
local message = 'List Groups WaderTG:\n*Use #join [ID-CHAT] to join\n*Use #link [ID-CHAT] send... | gpl-2.0 |
gegenschall/ldns | lua/rns-lib.lua | 5 | 3039 | -- ldns defines - need a better way to keep these current
LDNS_SECTION_QUESTION = 0
LDNS_SECTION_ANSWER = 1
LDNS_SECTION_AUTHORITY = 2
LDNS_SECTION_ADDITIONAL = 3
LDNS_SECTION_ANY = 4
LDNS_SECTION_ANY_NOQUESTION = 5
-- rdf types
LDNS_RDF_TYPE_NONE = 0
LDNS_RDF_TYPE_DNAME = 1
LDNS_RDF_TYPE_INT8 = 1
LDNS_RD... | bsd-3-clause |
team-smart/smart_team | plugins/invite.lua | 1 | 1523 | --[[
🔱➖➖➖➖➖➖➖➖➖➖➖➖➖➖🔱
#:[[
#For info file
#Developer :
#JOker < @lua_3 >
#JoZef < @jozef3 >
#our channel: @Smart_Team
#File type : (info)
🔱➖➖➖➖➖➖➖➖➖➖➖➖➖➖🔱
—]]
do
local function callbackres(extra, success, result)
--vardump(result)
local user = 'user#id'..result.peer_id
local chat = 'chat#id'..extra.chatid
lo... | gpl-2.0 |
tkdrob/Battle-Tag | Data/Script/Lua/Classes/UTActivity.Ui.IntermediateRankings.lua | 1 | 3752 |
--[[--------------------------------------------------------------------------
--
-- File: UTActivity.Ui.IntermediateRankings.lua
-- Copyright (c) Ubisoft Entertainment. All rights reserved.
--
-- Project: Ubitoys.Tag
-- Date: July 28, 2010
--
-------------------... | mit |
dunn/ntopng | scripts/lua/inc/change_user_password_form.lua | 10 | 2983 | print [[
<style type='text/css'>
.largegroup {
width:500px
}
</style>
<div id="password_dialog" tabindex="-1" >
<h3 id="password_dialog_label">Change ]] print(_SESSION["user"]) print [[ Password <span id="password_dialog_title"></span></h3>
<div id="password_alert_placeholder"></div>
<script>
password_alert... | gpl-3.0 |
chewi/Aquaria | files/scripts/maps/_unused/node_foundsecret03.lua | 6 | 1100 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
oratory/wago.io | backend/api/lua/libs/LibCompress/LibCompress.lua | 2 | 41843 | ----------------------------------------------------------------------------------
--
-- LibCompress.lua
--
-- Authors: jjsheets and Galmok of European Stormrage (Horde)
-- Email : sheets.jeff@gmail.com and galmok@gmail.com
-- Licence: GPL version 2 (General Public License)
-- Revision: $Revision: 75 $
-- Date: $Date: ... | mit |
tkdrob/Battle-Tag | Data/Script/Lua/Classes/UTActivity.Ui.EndMatch.lua | 1 | 5303 |
--[[--------------------------------------------------------------------------
--
-- File: UTActivity.Ui.EndMatch.lua
-- Copyright (c) Ubisoft Entertainment. All rights reserved.
--
-- Project: Ubitoys.Tag
-- Date: July 28, 2010
--
-------------------------------... | mit |
mrgloom/eyescream | cifar/scripts/train_cifar_coarse_to_fine_classcond.lua | 3 | 8830 | require 'torch'
require 'cunn'
require 'nngraph'
require 'optim'
require 'image'
require 'datasets.coarse_to_fine_cifar10'
require 'pl'
require 'paths'
image_utils = require 'utils.image'
ok, disp = pcall(require, 'display')
if not ok then print('display not found. unable to plot') end
adversarial = require 'train.doub... | bsd-3-clause |
tehran980/tele_HSN | 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 |
shahabsaf1/tg | 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 |
resistor58/deaths-gmod-server | wire/lua/weapons/gmod_tool/stools/wire_eyepod.lua | 1 | 11031 | TOOL.Category = "Wire - I/O"
TOOL.Name = "Eye Pod"
TOOL.Command = nil
TOOL.ConfigName = ""
TOOL.Tab = "Wire"
TOOL.ClientConVar[ "model" ] = "models/jaanus/wiretool/wiretool_siren.mdl"
/* If we're running on the client, setup the description strings */
if ( CLIENT ) then
//tool hud lang
language... | gpl-3.0 |
resistor58/deaths-gmod-server | ulx/lua/ulx/modules/cl/banmenu.lua | 1 | 7327 | local bans
local loadingwindow -- Holds the loading window so we can close it after it's done loading.
local function unbanPress( btn )
RunConsoleCommand( "ulx", "unban", btn.id )
btn:GetParent():Remove()
btn.window:Remove() -- Remove original menu so we can reload it
timer.Simple( 0.2, ulx.showBanMenu )
e... | gpl-3.0 |
resistor58/deaths-gmod-server | wire/lua/weapons/gmod_tool/stools/wire_twoway_radio.lua | 1 | 5360 | TOOL.Category = "Wire - I/O"
TOOL.Name = "Two-way Radio"
TOOL.Command = nil
TOOL.ConfigName = ""
TOOL.Tab = "Wire"
if ( CLIENT ) then
language.Add( "Tool_wire_twoway_radio_name", "Two-Way Radio Tool (Wire)" )
language.Add( "Tool_wire_twoway_radio_desc", "Spawns a two-way radio for use with the wire sy... | gpl-3.0 |
chewi/Aquaria | files/scripts/maps/map_suntemple.lua | 6 | 1623 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
Plain-Andy/android_platform_external_skia | tools/lua/scrape_dashing.lua | 160 | 2495 | function tostr(t)
local str = ""
for k, v in next, t do
if #str > 0 then
str = str .. ", "
end
if type(k) == "number" then
str = str .. "[" .. k .. "] = "
else
str = str .. tostring(k) .. " = "
end
if type(v) == "table" then
... | bsd-3-clause |
mamaddeveloper/miri | plugins/id.lua | 1 | 5914 | --[[
Print user identification/informations by replying their post or by providing
their username or print_name.
!id <text> is the least reliable because it will scan trough all of members
and print all member with <text> in their print_name.
chat_info can be displayed on group, send it into PM, or save as file then... | gpl-2.0 |
mahdib9/mahdi | 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 |
httpomid/TeleSeed | 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 |
mengz0/amqp | consts.lua | 1 | 3771 | --
-- Copyright (C) 2016 Meng Zhang @ Yottaa,Inc
--
-- Constants definition
--
module("consts",package.seeall)
local amqp = {
DEFAULT_CHANNEL = 0,
DEFAULT_FRAME_SIZE = 131072,
DEFAULT_MAX_CHANNELS = 65535,
DEFAULT_HEARTBEAT = 60,
PROTOCOL_VERSION_MAJOR = 0,
PROTOCOL... | apache-2.0 |
punisherbot/hh | plugins/Add_Bot.lua | 29 | 1484 | --[[
Bot can join into a group by replying a message contain an invite link or by
typing !join [invite link].
URL.parse cannot parsing complicated message. So, this plugin only works for
single [invite link] in a post.
[invite link] may be preceeded but must not followed by another characters.
--]]
do
local functio... | gpl-2.0 |
mamaddeveloper/mmddev | plugins/media.lua | 376 | 1679 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
zhaoxx063/luci | libs/luci-lib-nixio/docsrc/nixio.File.lua | 173 | 4457 | --- Large File Object.
-- Large file operations are supported up to 52 bits if the Lua number type is
-- double (default).
-- @cstyle instance
module "nixio.File"
--- Write to the file descriptor.
-- @class function
-- @name File.write
-- @usage <strong>Warning:</strong> It is not guaranteed that all data
-- in the bu... | apache-2.0 |
chewi/Aquaria | files/scripts/entities/crawpappy.lua | 6 | 2605 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
tgclonerteam/goodday | plugins/inpm.lua | 1 | 3339 | 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 |
team-smart/smart_team | plugins/map.lua | 1 | 1519 | --[[
🔱➖➖➖➖➖➖➖➖➖➖➖➖➖➖🔱
#:[[
#For info file
#Developer :
#JOker < @lua_3 >
#JoZef < @jozef3 >
#our channel: @Smart_Team
#File type : ( )
🔱➖➖➖➖➖➖➖➖➖➖➖➖➖➖🔱
—]]
do
local api_key = nil
local base_api = "https://maps.googleapis.com/maps/api"
function get_staticmap(area)
local api = base_api .. "/staticmap?"... | gpl-2.0 |
chewi/Aquaria | files/scripts/entities/leopardshark.lua | 6 | 2873 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
zchengquan/nn | Padding.lua | 12 | 1441 | local Padding, parent = torch.class('nn.Padding', 'nn.Module')
-- pad can be positive (right) negative (left)
function Padding:__init(dim, pad, nInputDim, value)
self.dim = dim
self.pad = pad
self.nInputDim = nInputDim
self.value = value or 0
self.outputSize = torch.LongStorage()
parent.__init(self)
... | bsd-3-clause |
rickyHong/dptorchLib | model/narrowdictionary.lua | 2 | 2429 | ------------------------------------------------------------------------
--[[ NarrowDictionary ]]--
-- Adapts a nn.NarrowLookupTable
------------------------------------------------------------------------
local NarrowDictionary, parent = torch.class("dp.NarrowDictionary", "dp.Dictionary")
NarrowDictionary.isNarrowDic... | bsd-3-clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.