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 |
|---|---|---|---|---|---|
RockySeven3161/Unknown | plugins/moderation.lua | 336 | 9979 | do
local function check_member(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
local username = v.username
data[tostring(m... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/yavin4/creatures/skreegScout.lua | 1 | 4716 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
Xeltor/ovale | dist/spellhelpers/monk_windwalker_helper.lua | 1 | 4033 | local __exports = LibStub:GetLibrary("ovale/scripts/ovale_monk")
if not __exports then return end
__exports.registerMonkWindwalkerHelper = function(OvaleScripts)
do
local name = "MWWhelp"
local desc = "[Xel][8.x] Spellhelper: Windwalker"
local code = [[
AddIcon
{
# Remove a line when you have its colour
# Spells
... | mit |
Modified-MW-DF/modified-MDF | MWDF Project/Dwarf Fortress/hack/scripts/masterwork/succubus/power-learning.lua | 2 | 3448 | -- Test if the succubus is able to learn a power
local eventful = require 'plugins.eventful'
local utils = require 'utils'
--http://lua-users.org/wiki/StringRecipes (removed indents since I am not using them)
function wrap(str, limit)--, indent, indent1)
--indent = indent or ""
--indent1 = indent1 or inden... | mit |
bartvm/Penlight | lua/pl/OrderedMap.lua | 21 | 4485 | --- OrderedMap, a map which preserves ordering.
--
-- Derived from `pl.Map`.
--
-- Dependencies: `pl.utils`, `pl.tablex`, `pl.List`
-- @classmod pl.OrderedMap
local tablex = require 'pl.tablex'
local utils = require 'pl.utils'
local List = require 'pl.List'
local index_by,tsort,concat = tablex.index_by,table.sort,tabl... | mit |
Wargus/stargus | scripts/protoss/unit-protoss-cybernetics-core.lua | 1 | 1439 | --
-- -- unit-protoss-cybernetics-core
--
DefineAnimations("animations-protoss-cybernetics-core", {
Still = {
"frame 0", "wait 125",
},
Train = {
"frame 0", "wait 125",
},
})
DefineConstruction("construction-protoss-cybernetics-core", {
Files = image_325_terran_tbldlrg_var,
ShadowFi... | gpl-2.0 |
xboot/xboot | examples/graphics/shape/main.lua | 1 | 2394 | local math = require "math"
local function onMouseDown(self, e)
if self:hitTestPoint(e.x, e.y) then
self.touchid = -1
self.x0 = e.x
self.y0 = e.y
e.stop = true
end
end
local function onMouseMove(self, e)
if self.touchid == -1 then
local dx = e.x - self.x0
local dy = e.y - self.y0
self... | mit |
TheAnswer/FirstTest | bin/scripts/sceneobjects/objects/lairs/endor/swirlProngLair.lua | 1 | 2529 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
Xeltor/ovale | dist/spellhelpers/druid_restoration_helper.lua | 1 | 4321 | local __exports = LibStub:GetLibrary("ovale/scripts/ovale_druid")
if not __exports then return end
__exports.registerDruidRestorationHelper = function(OvaleScripts)
do
local name = "Restorationhelper"
local desc = "[Xel][8.x] Spellhelper: Restoration"
local code = [[
AddIcon
{
# Remove a line when you have its colo... | mit |
yunfan/packages | net/luci-app-clamav/files/model/cbi/clamav-cbi.lua | 100 | 6776 | --[[
LuCI ClamAV module
Copyright (C) 2015, Itus Networks, Inc.
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
Author: Marko Ratkaj <marko.ratkaj@sar... | gpl-2.0 |
vgire/nn | Euclidean.lua | 24 | 5711 | local Euclidean, parent = torch.class('nn.Euclidean', 'nn.Module')
function Euclidean:__init(inputSize,outputSize)
parent.__init(self)
self.weight = torch.Tensor(inputSize,outputSize)
self.gradWeight = torch.Tensor(inputSize,outputSize)
-- state
self.gradInput:resize(inputSize)
self.output:resize(o... | bsd-3-clause |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/Sprite3D.lua | 1 | 5748 |
--------------------------------
-- @module Sprite3D
-- @extend Node,BlendProtocol
-- @parent_module cc
--------------------------------
--
-- @function [parent=#Sprite3D] isForceDepthWrite
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
--
-- @f... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/naboo/npcs/gungan/gunganHunter.lua | 1 | 4551 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
vgire/nn | Threshold.lua | 42 | 1158 | local Threshold, parent = torch.class('nn.Threshold','nn.Module')
function Threshold:__init(th,v,ip)
parent.__init(self)
self.threshold = th or 1e-6
self.val = v or 0
if (th and type(th) ~= 'number') or (v and type(v) ~= 'number') then
error('nn.Threshold(threshold, value)')
end
-- default for ... | bsd-3-clause |
Xeltor/ovale | dist/hooves/monk/Hooves_Brewmaster.lua | 1 | 13530 | local __exports = LibStub:GetLibrary("ovale/scripts/ovale_monk")
if not __exports then return end
__exports.registerMonkBrewmasterHooves = function(OvaleScripts)
do
local name = "hooves_brewmaster"
local desc = "[Hooves][8.2] Monk: Brewmaster"
local code = [[
Include(ovale_common)
Include(ovale_trinkets_mop)
Includ... | mit |
RockySeven3161/Unknown | plugins/minecraft.lua | 624 | 2605 | local usage = {
"!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565",
"!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.",
}
local ltn12 = require "ltn12"
local function mineSearch(ip, port, receiver) --25565
local responseText = ""
l... | gpl-2.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/entities/entities/prop_gunturret/cl_init.lua | 1 | 5784 | include("shared.lua")
ENT.NextEmit = 0
function ENT:Initialize()
self.BeamColor = Color(0, 255, 0, 255)
self.ScanningSound = CreateSound(self, "npc/turret_wall/turret_loop1.wav")
self.ShootingSound = CreateSound(self, "npc/combine_gunship/gunship_weapon_fire_loop6.wav")
local size = self.SearchDistanc... | gpl-2.0 |
perusio/lua-uri | test/data.lua | 2 | 4378 | require "uri-test"
local URI = require "uri"
local Util = require "uri._util"
local Filter = Util.attempt_require("datafilter")
module("test.data", lunit.testcase, package.seeall)
function test_data_uri_encoded ()
local uri = assert(URI:new("data:,A%20brief%20note"))
is("uri.data", uri._NAME)
is(",A%20br... | mit |
Lunovox/minetest_nibirus_game | mods/base/beds/beds.lua | 18 | 2586 | -- Fancy shaped bed
beds.register_bed("beds:fancy_bed", {
description = "Fancy Bed",
inventory_image = "beds_bed_fancy.png",
wield_image = "beds_bed_fancy.png",
tiles = {
bottom = {
"beds_bed_top1.png",
"default_wood.png",
"beds_bed_side1.png",
"beds_bed_side1.png^[transformFX",
"default_wood.png"... | agpl-3.0 |
asmagill/hammerspoon | extensions/chooser/chooser.lua | 4 | 3043 | --- === hs.chooser ===
---
--- Graphical, interactive tool for choosing/searching data
---
--- Notes:
--- * This module was influenced heavily by Choose, by Steven Degutis (https://github.com/sdegutis/choose)
require("hs.styledtext")
require("hs.drawing.color")
local chooser = require("hs.libchooser")
local window = ... | mit |
TheAnswer/FirstTest | bin/scripts/items/objects/clothing/ithorian/ithHalfSweater.lua | 1 | 2300 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
REZATITAN/XY | plugins/stats.lua | 2 | 4099 | -- Saves the number of messages from a user
-- Can check the number of messages with !stats
do
local NUM_MSG_MAX = 5
local TIME_CHECK = 4 -- seconds
local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name.... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/npcs/imperial/imperialSeniorCadet.lua | 1 | 4770 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
Mohammadrezar/telediamond | plugins/filterfa.lua | 8 | 2538 | local function addword(msg, name)
local hash = 'chat:'..msg.to.id..':badword'
redis:hset(hash, name, 'newword')
return "کلمه جدید به فیلتر کلمات اضافه شد\n>"..name
end
local function get_variables_hash(msg)
return 'chat:'..msg.to.id..':badword'
end
local function list_variablesbad(msg)
local hash... | agpl-3.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/tailor/formalWearIiiGowns/ithorianPatternedSkirt.lua | 1 | 4478 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
Andrettin/Wyrmsun | scripts/civilizations/norse/quests.lua | 1 | 6422 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
thkhxm/TGame | Assets/StreamingAssets/lua/eventlib.lua | 9 | 8575 | -- EventLib - An event library in pure lua (uses standard coroutine library)
-- License: WTFPL
-- Author: Elijah Frederickson
-- Version: 1.0
-- Copyright (C) 2012 LoDC
--
-- Description:
-- ROBLOX has an event library in its RbxUtility library, but it isn't pure Lua.
-- It originally used a BoolValue but now uses Bi... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/clothing/belts/belt17.lua | 1 | 2245 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/dantooine/npcs/forceSens/untrainedWeilderOfTheDarkSide.lua | 1 | 4962 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/clothing/reinforcedWorkShirt.lua | 1 | 2301 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
Andrettin/Wyrmsun | scripts/settlements_la_plata.lua | 1 | 3906 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
selboo/wrk | deps/luajit/src/jit/bc.lua | 20 | 5606 | ----------------------------------------------------------------------------
-- LuaJIT bytecode listing module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/tatooine/npcs/valarian/valarianSwooper.lua | 1 | 4562 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/yavin4/citys.lua | 1 | 2281 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/yavin4/creatures/chokuHunter.lua | 1 | 4688 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
Lunovox/minetest_nibirus_game | mods/multlocales/intllib/lib.lua | 4 | 1221 |
intllib = intllib or {}
local INS_CHAR = "@"
intllib.INSERTION_CHAR = INS_CHAR
local escapes = {
["\\"] = "\\",
["n"] = "\n",
["s"] = " ",
["t"] = "\t",
["r"] = "\r",
["f"] = "\f",
[INS_CHAR] = INS_CHAR..INS_CHAR,
}
local function unescape(str)
local parts = {}
local n = 1
local function add(s)
pa... | agpl-3.0 |
Andrettin/Wyrmsun | scripts/events.lua | 1 | 16569 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
aqasaeed/telhesam | bot/utils.lua | 646 | 23489 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
Shayan123456/botttttt9 | bot/utils.lua | 646 | 23489 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
zhityer/zhityer1 | 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 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/tailor/formalWearIiJewelry/bakeMastersCap.lua | 1 | 4335 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/deed/installationdeeds/harvesters/chemicalExtractorDeed.lua | 1 | 2721 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versi... | lgpl-3.0 |
PAPAGENO-devels/papageno | test/benchmarks/Lua/lua-regression-test/grim/md.lua | 1 | 1090 | md_start_walk = 0
md_stop_walk = 1
md_walk = 2
md_talk = 3
md_stop_talk = 4
md_run = 5
md_start_run = 6
md_stop_run = 7
md_rest = 8
md_turn_right = 9
md_walk_upstairs = 10
md_walk_downstairs = 11
md_putback_small = 12
md_putback_done = 13
md_takeout_get = 14
md_takeout_big = 15
md_back_off = 16
md_step_fwd = 17
md_hand... | gpl-2.0 |
trentapple/BetterUI | lang/ru.lua | 2 | 1483 | ZO_CreateStringId("SI_BUI_INV_ITEM_ALL","|cFF6600Áce|r")
ZO_CreateStringId("SI_BUI_INV_ITEM_MATERIALS","Íaòepèaìÿ")
ZO_CreateStringId("SI_BUI_INV_ITEM_QUICKSLOT","|cFF6600Consumable|r")
ZO_CreateStringId("SI_BUI_INV_ITEM_WEAPONS","Opóæèe")
ZO_CreateStringId("SI_BUI_INV_ITEM_APPAREL","Oäeæäa")
ZO_CreateStringId("SI_BUI_... | mit |
Andrettin/Wyrmsun | scripts/map_templates/nidavellir/highbrook_pass.lua | 1 | 1644 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
LuaDist/lrexlib-gnu | test/gnu_sets.lua | 8 | 1536 | -- See Copyright Notice in the file LICENSE
local luatest = require "luatest"
local N = luatest.NT
local function norm(a) return a==nil and N or a end
local function set_f_gmatch (lib, flg)
local downcase = {}
for i = 0, 255 do -- 255 == UCHAR_MAX
downcase[i] = string.gsub(string.char (i), ".", function (s) ... | mit |
TheAnswer/FirstTest | bin/scripts/slashcommands/skills/chargeShot.lua | 1 | 2572 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | lgpl-3.0 |
kyle-lu/fceux.js | output/luaScripts/PunchOutTraining.lua | 9 | 4332 | -- Just something quick for Mike Tyson's Punch Out!!
-- Intended to help time hits in real time.
--FatRatKnight
local EHP= 0x0398 -- Enemy HP address
local TMR= 23 -- Frames in advance for your punches.
local BND= -8 -- KEEP NEGATIVE!! Frames after the golden zone.
local threshold= 15-- How many fr... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/dathomir/creatures/gapingSpiderRecluseGiant.lua | 1 | 4820 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
Modified-MW-DF/modified-MDF | MWDF Project/Dwarf Fortress/hack/scripts/gui/mechanisms.lua | 2 | 4128 | -- Shows mechanisms linked to the current building.
--[====[
gui/mechanisms
==============
Lists mechanisms connected to the building, and their links. Navigating
the list centers the view on the relevant linked buildings.
.. image:: /docs/images/mechanisms.png
To exit, press :kbd:`Esc` or :kbd:`Enter`; :k... | mit |
weiDDD/WSSParticleSystem | cocos2d/external/lua/luajit/src/dynasm/dasm_arm.lua | 1 | 35605 | ------------------------------------------------------------------------------
-- DynASM ARM module.
--
-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
l... | apache-2.0 |
Wargus/stargus | scripts/menus/load.lua | 2 | 1598 | function LoadGame(s)
LoadGameFile = nil
currentCampaign = nil
loop = true
while (loop) do
InitGameVariables()
StartSavedGame(s)
if (GameResult ~= GameRestart) then
loop = false
end
end
RunResultsMenu()
InitGameSettings()
SetPlayerData(GetThisPlayer(), "RaceName", "orc")
if cu... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/skills/creatureSkills/corellia/npcs/smashBallAttacks.lua | 1 | 3141 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
technomancy/ss-calandria | mods/mesecons/mesecons/wires.lua | 1 | 7914 | -- naming scheme: wire:(xp)(zp)(xm)(zm)(xpyp)(zpyp)(xmyp)(zmyp)_on/off
-- where x= x direction, z= z direction, y= y direction, p = +1, m = -1, e.g. xpym = {x=1, y=-1, z=0}
-- The (xp)/(zpyp)/.. statements shall be replaced by either 0 or 1
-- Where 0 means the wire has no visual connection to that direction and
-- 1 m... | gpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/endor/creatures/minorGorax.lua | 1 | 4619 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
gitfundibulum/gitfundibulum.github.io | assets/premake5.lua | 1 | 1490 | workspace "testgame"
configurations { "debug", "devel", "release" }
filter "action:gmake"
platforms { "linux64" }
buildoptions { "-std=c++11 -Wall -Werror" }
filter "action:vs*"
platforms { "win64" }
warnings "Extra"
flags { "NoMinimalRebuild" }
filter "action:xcode*"
platforms { "macosx64" }
build... | mit |
maxamante/auth0-nginx | src/auth0-nginx.lua | 1 | 10720 | local cjson = require('cjson')
local http = require('resty.http')
local jwt = require('resty.jwt')
local validators = require('resty.jwt-validators')
local appHref = os.getenv('AUTH0_ACCOUNT_DOMAIN')
local clientId = os.getenv('AUTH0_CLIENT_ID')
local clientSecret = os.getenv('AUTH0_CLIENT_SECRET')
local connection = ... | apache-2.0 |
PAPAGENO-devels/papageno | test/benchmarks/Lua/lua-regression-test/WoW/Minimap.lua | 1 | 4024 | MINIMAPPING_TIMER = 5;
MINIMAPPING_FADE_TIMER = 0.5;
CURSOR_OFFSET_X = -7;
CURSOR_OFFSET_Y = -9;
function Minimap_OnLoad()
MiniMapPing.fadeOut = nil;
this:SetSequence(0);
this:RegisterEvent("MINIMAP_PING");
this:RegisterEvent("MINIMAP_UPDATE_ZOOM");
end
function ToggleMinimap()
if(Minimap:IsVisible(... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/object/SharedJediManagerTemplate.lua | 1 | 2112 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versi... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/npcs/flail/flailCutthroat.lua | 1 | 4558 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
kyle-lu/fceux.js | output/luaScripts/PunchOutChallenge.lua | 9 | 10402 | --Mike Tyson's Punch Out!!
--Intended to Challenge the PROs!
--adelikat
local NumStars = 0x0342
local UntilStar = 0x0347 --Number of punches to land until Mac can get a star
local NumHearts = 0x0321 --Number of hearts, single digit
local NumHearts10 = 0x0322 --Number of hearts, 10's digit
local CurrentRound... | gpl-2.0 |
Hammerspoon/hammerspoon | extensions/eventtap/eventtap.lua | 4 | 13785 | --- === hs.eventtap ===
---
--- Tap into input events (mouse, keyboard, trackpad) for observation and possibly overriding them
--- It also provides convenience wrappers for sending mouse and keyboard events. If you need to construct finely controlled mouse/keyboard events, see hs.eventtap.event
---
--- This module is b... | mit |
ArashFaceBook/Virus | plugins/anti-flood.lua | 281 | 2422 | local NUM_MSG_MAX = 5 -- Max number of messages per TIME_CHECK seconds
local TIME_CHECK = 5
local function kick_user(user_id, chat_id)
local chat = 'chat#id'..chat_id
local user = 'user#id'..user_id
chat_del_user(chat, user, function (data, success, result)
if success ~= 1 then
local text = 'I can\'t k... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/tailor/casualWearIBasics/ithorianHalfSweater.lua | 1 | 4257 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
Andrettin/Wyrmsun | scripts/languages/italic/umbrian.lua | 1 | 1664 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/slashcommands/skills/forceValor.lua | 1 | 2560 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | lgpl-3.0 |
thkhxm/TGame | Assets/StreamingAssets/lua/3rd/sproto/test.lua | 26 | 1035 | local sproto = require "sproto"
local core = require "sproto.core"
local print_r = require "print_r"
local sp = sproto.parse [[
.Person {
name 0 : string
id 1 : integer
email 2 : string
.PhoneNumber {
number 0 : string
type 1 : integer
}
phone 3 : *PhoneNumber
}
.AddressBook {
person 0 : *Person(id)
oth... | apache-2.0 |
RockySeven3161/Unknown | plugins/danbooru.lua | 616 | 1750 | do
local URL = "http://danbooru.donmai.us"
local URL_NEW = "/posts.json"
local URL_POP = "/explore/posts/popular.json"
local scale_day = "?scale=day"
local scale_week = "?scale=week"
local scale_month = "?scale=month"
local function get_post(url)
local b, c, h = http.request(url)
if c ~= 200 then return nil end
... | gpl-2.0 |
trentapple/BetterUI | lib/LibAddonMenu-2.0/LibAddonMenu-2.0.lua | 7 | 26557 | -- LibAddonMenu-2.0 & its files © Ryan Lakanen (Seerah) --
-- Distributed under The Artistic License 2.0 (see LICENSE) --
------------------------------------------------------------------
--Register LAM with LibStub
local MAJOR, MINOR = "LibAddonMenu-2.0", 18
local lam, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
i... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/objects/endor/npcs/donkuwah/taintedDonkuwahDarkShaman.lua | 1 | 4649 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/skills/playerSkills.lua | 1 | 3834 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
RockySeven3161/Unknown | 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 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/armorsmith/masterArmorsmith/kashyyykianHuntingRightBracer.lua | 1 | 5208 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/Event.lua | 1 | 1170 |
--------------------------------
-- @module Event
-- @extend Ref
-- @parent_module cc
--------------------------------
-- Checks whether the event has been stopped.<br>
-- return True if the event has been stopped.
-- @function [parent=#Event] isStopped
-- @param self
-- @return bool#bool ret (return val... | apache-2.0 |
fanyeren/lxc | src/lxc/lxc-top.lua | 62 | 7453 | #!/usr/bin/env lua
--
-- top(1) like monitor for lxc containers
--
-- Copyright © 2012 Oracle.
--
-- Authors:
-- Dwight Engen <dwight.engen@oracle.com>
--
-- This library is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License version 2, as
-- published by the Fre... | lgpl-2.1 |
thkhxm/TGame | Assets/StreamingAssets/lua/misc/functions.lua | 4 | 1192 | local require = require
local string = string
local table = table
function import(moduleName, currentModuleName)
local currentModuleNameParts
local moduleFullName = moduleName
local offset = 1
while true do
if string.byte(moduleName, offset) ~= 46 then -- .
moduleFullName = string.... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/slashcommands/skills/tame.lua | 1 | 2575 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/spawns/dathomir/nightsisters.lua | 1 | 5927 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/spawns/dathomir/nightsisterLaborCamp.lua | 1 | 6576 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/npcs/rebel/rebelMajorGeneral.lua | 1 | 4649 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/entities/weapons/weapon_zs_hate.lua | 1 | 4478 | AddCSLuaFile()
if CLIENT then
SWEP.PrintName = "HATE"
SWEP.ViewModelFOV = 55
SWEP.ViewModelFlip = false
SWEP.ShowViewModel = true
SWEP.ShowWorldModel = false
SWEP.ViewModelBoneMods = {
["ValveBiped.Bip01_L_Forearm"] = { scale = Vector(1.075, 1.075, 1.075), pos = Vector(0, 0, 0), angle = Angle(0, ... | gpl-2.0 |
yannayl/packages | utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/ltq-dsl.lua | 17 | 4392 | local function scrape()
local fd = io.popen("/etc/init.d/dsl_control lucistat")
local dsl_func = loadstring(fd:read("*a"))
fd:close()
if not dsl_func then
return
end
local dsl_stat = dsl_func()
local dsl_line_attenuation = metric("dsl_line_attenuation_db", "gauge")
local dsl_signal_attenuation = ... | gpl-2.0 |
sandfox/skyd | deps/LuaJIT-2.0.1/dynasm/dasm_x86.lua | 73 | 58651 | ------------------------------------------------------------------------------
-- DynASM x86/x64 module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
local x64 = x64
-- Module i... | mit |
mkwia/jc2atc | scripts/admin/shared/admin_shared.lua | 1 | 5368 | local timers = { }
local objectToTimer = { }
local weaponList =
{
{ 2, "Pistol" },
{ 4, "Revolver" },
{ 5, "SMG" },
{ 6, "Sawed off shotgun" },
{ 11, "Assault rifle" },
{ 13, "Pump action shotgun" },
{ 14, "Sniper rifle" },
{ 16, "Rocket launcher" },
{ 28, "Machine gun" },
{ 43, "Bubble blaster" },... | mit |
Andrettin/Wyrmsun | scripts/deities_aztec.lua | 1 | 2454 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/ship/crafted/weapon/objects.lua | 1 | 85439 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/tailor/casualWearIiSynthetics/pullover.lua | 1 | 4357 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/dathomir/creatures/gapingSpiderQueen.lua | 1 | 4782 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/EaseOut.lua | 1 | 1110 |
--------------------------------
-- @module EaseOut
-- @extend EaseRateAction
-- @parent_module cc
--------------------------------
-- brief Create the action with the inner action and the rate parameter.<br>
-- param action The pointer of the inner action.<br>
-- param rate The value of the rate parameter.<... | apache-2.0 |
Modified-MW-DF/modified-MDF | MWDF Project/Dwarf Fortress/hack/scripts/modtools/item-trigger.lua | 2 | 8576 | -- trigger commands based on attacks with certain items
--author expwnent
--based on itemsyndrome by Putnam
local usage = [====[
modtools/item-trigger
=====================
This powerful tool triggers DFHack commands when a unit equips, unequips, or
attacks another unit with specified item types, specified ite... | mit |
TheAnswer/FirstTest | bin/scripts/items/objects/clothing/hats/hat4.lua | 1 | 2274 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/dantooine/npcs/dantari/dantariRaider.lua | 1 | 4576 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
mkwia/jc2atc | scripts/fp/client/Firstperson.lua | 1 | 3811 | class 'FirstPerson'
function FirstPerson:__init()
self.enabled = false -- Set to true to enable fp on join
self.angle = false -- Set to true to enable fpa on join
self.invis = false -- Set to true to enable invis on join
self.activationkey = string.byte("5") -- Set key to toggle fp view
AirhawkEagleHawkChippewa... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/spawns/tatooine/wreckedSandCrawler.lua | 1 | 2669 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/lair/eopie/objects.lua | 1 | 8625 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
mInternauta/Nermis | examples/LUAwebscripts/rdpConnection/test.lua | 1 | 3071 | --
-- Copyright (C) 2015 mInternauta
--
-- This program is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is dis... | gpl-3.0 |
praveenjha527/Algorithm-Implementations | Maximum_Subarray/Lua/Yonaba/maximum_subarray_test.lua | 26 | 1897 | -- Tests for maximum_subarray.lua
local gss = require 'maximum_subarray'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass +... | mit |
TheAnswer/FirstTest | bin/scripts/items/objects/instruments/bandfill.lua | 1 | 2246 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
zain211/zain.aliraqe | getlink.lua | 10 | 27315 | --[[
# For More Information ....!
# Developer : Aziz < @devss_bot > #Dev
# our channel: @help_tele
]]
do
local function check_member(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 memb... | gpl-3.0 |
yannayl/packages | utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/wifi.lua | 25 | 1527 | local ubus = require "ubus"
local iwinfo = require "iwinfo"
local function scrape()
local metric_wifi_network_quality = metric("wifi_network_quality","gauge")
local metric_wifi_network_bitrate = metric("wifi_network_bitrate","gauge")
local metric_wifi_network_noise = metric("wifi_network_noise_dbm","gauge")
lo... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.