repo_name stringlengths 6 69 | path stringlengths 6 178 | copies stringclasses 278
values | size stringlengths 4 7 | content stringlengths 671 917k | license stringclasses 15
values |
|---|---|---|---|---|---|
TheAnswer/FirstTest | bin/scripts/slashcommands/admin/planetwarpTarget.lua | 1 | 2461 | --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/slashcommands/admin/kick.lua | 1 | 2413 | --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/LuaFramework/Lua/Common/functions.lua | 2 | 1937 |
--输出日志--
function log(str)
Util.Log(str);
end
--错误日志--
function logError(str)
Util.LogError(str);
end
--警告日志--
function logWarn(str)
Util.LogWarning(str);
end
--查找对象--
function find(str)
return GameObject.Find(str);
end
function destroy(obj)
GameObject.Destroy(obj);
end
function newObject(prefab)
retur... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/tatooine/npcs/jabba/jabbaAssassin.lua | 1 | 4724 | --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 |
frioux/sysdig | userspace/sysdig/chisels/iobytes_file.lua | 18 | 1602 | --[[
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 |
thkhxm/TGame | Assets/StreamingAssets/lua/socket/headers.lua | 133 | 3698 | -----------------------------------------------------------------------------
-- Canonic header field capitalization
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
local socket = require("socket")
socket.headers = {}
local _M = socket.headers
... | apache-2.0 |
kensipe/dcos | packages/adminrouter/extra/src/lib/auth/open.lua | 1 | 5882 | local authcommon = require "auth.common"
local jwt = require "resty.jwt"
local util = require "util"
local AUTH_TOKEN_VERIFICATION_KEY = nil
local key_file_path = os.getenv("AUTH_TOKEN_VERIFICATION_KEY_FILE_PATH")
if key_file_path == nil then
ngx.log(ngx.WARN, "AUTH_TOKEN_VERIFICATION_KEY_FILE_PATH not set.")
e... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/deed/installationdeeds/harvesters/highCapacityFloraFarmDeed.lua | 1 | 2722 | --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 |
Ghostofpq/PewPewPew | game/src/config/Sprites.lua | 1 | 1592 | -----------------------------------------------------------------------------------------
--
-- Author: Aurélien Defossez
-- (c) 2014 Tabemasu Games (www.tabemasu.com)
--
-- Sprites configuration
--
-- Parameters:
-- frameCount: The number of frames defining the animation (default is 1)
-- If frameCount > 1, then t... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/tailor/casualWearIiiWeatherWear/ithorianWarmJacket.lua | 1 | 4332 | --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 |
PAPAGENO-devels/papageno | test/benchmarks/Lua/lua-regression-test/WoW/FriendsFrame.lua | 1 | 34038 | FRIENDS_TO_DISPLAY = 10;
FRIENDS_FRAME_FRIEND_HEIGHT = 34;
IGNORES_TO_DISPLAY = 20;
FRIENDS_FRAME_IGNORE_HEIGHT = 16;
WHOS_TO_DISPLAY = 17;
FRIENDS_FRAME_WHO_HEIGHT = 16;
GUILDMEMBERS_TO_DISPLAY = 13;
FRIENDS_FRAME_GUILD_HEIGHT = 14;
MAX_IGNORE = 50;
MAX_WHOS_FROM_SERVER = 50;
MAX_GUILDCONTROL_OPTIONS = 12;
... | gpl-2.0 |
fkaa/iceball | pkg/base/main_client.lua | 3 | 9867 | --[[
This file is part of Ice Lua Components.
Ice Lua Components is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... | gpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/lok/creatures/flitHarasser.lua | 1 | 4674 | --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 |
maxpert/redis | deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | bsd-3-clause |
Wargus/stargus | scripts/zerg/unit-zerg-ultralisk.lua | 1 | 3489 | --
-- unit-zerg-ultralisk
--
DefineAnimations("animations-zerg-ultralisk-death", {
Death = {
"unbreakable begin",
"frame 0", "wait 50", "frame 1", "wait 50", "frame 2", "wait 50",
"frame 3", "wait 50", "frame 4", "wait 50",
"unbreakable end", "wait 1",
},
})
DefineUnitType("unit-zerg-ultralisk-d... | gpl-2.0 |
yunfan/packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/ruleconfig.lua | 82 | 4185 | -- ------ extra functions ------ --
function ruleCheck() -- determine if rule needs a protocol specified
local sourcePort = ut.trim(sys.exec("uci -p /var/state get mwan3." .. arg[1] .. ".src_port"))
local destPort = ut.trim(sys.exec("uci -p /var/state get mwan3." .. arg[1] .. ".dest_port"))
if sourcePort ~= "" or d... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/items/bluefrog/bandolier.lua | 1 | 2665 | --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 |
draidarr/BolScripts | MrArticunoLaucher.lua | 23 | 3851 | --[[
_____ _____ __ .__
/ \_______ / _ \________/ |_|__| ____ __ __ ____ ____
/ \ / \_ __ \ / /_\ \_ __ \ __\ |/ ___\| | \/ \ / _ \
/ Y \ | \/ / | \ | \/| | | \ \___| | / | ( <_> )
\____|__ /__| \___... | gpl-2.0 |
chrisdugne/ludum-dare-36 | src/game/engine/Sound.lua | 1 | 3644 | --------------------------------------------------------------------------------
local Sound = {
isOff = false,
options = {},
clicks = {},
channels = {},
TIMER = 17454
}
-----------------------------------------------------------------------------------------
local ld = audio.loadSound('assets/so... | bsd-3-clause |
praveenjha527/Algorithm-Implementations | Convex_hull/Lua/Yonaba/convex_hull_test.lua | 26 | 1259 | -- Tests for convex_hull.lua
local hull = require 'convex_hull'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1 end
... | mit |
Andrettin/Wyrmsun | scripts/languages/germanic/old_frisian_loanwords.lua | 1 | 1659 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
Mohammadrezar/telediamond | plugins/all.lua | 184 | 4452 | do
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print_name(user)..' ['..user_id..']'
return u... | agpl-3.0 |
Andrettin/Wyrmsun | scripts/languages/germanic/old_high_german_loanwords.lua | 1 | 1919 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
Racinettee/reef | source/LuaJIT-2.0.4/dynasm/dasm_mips.lua | 120 | 28080 | ------------------------------------------------------------------------------
-- DynASM MIPS module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _i... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/objects/endor/npcs/korga/foulKorgaLaborer.lua | 1 | 4599 | --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 |
xboot/xboot | examples/graphics/analogclock/AnalogClock.lua | 1 | 1669 | local M = Class(DisplayObject)
local os = os
function M:init()
self.super:init()
local face = assets:loadDisplay("clock-face.png")
local width, height = face:getSize()
local hour = assets:loadDisplay("clock-hour-hand.png")
hour:setPosition(width / 2, height /2)
:setAnchor(0.5, 0.9)
:setRotation... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/objects/naboo/npcs/rsf/rsfCaptain.lua | 1 | 4494 | --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 |
Andrettin/Wyrmsun | scripts/campaigns.lua | 1 | 6519 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
frioux/sysdig | userspace/sysdig/chisels/topfiles_bytes.lua | 12 | 1656 | --[[
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 e... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/deed/harvester_deed/objects.lua | 1 | 23186 | --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/items/objects/tools/smuggler/flowAnalyzerNode.lua | 1 | 2272 | --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/rori/creatures/dashingVirVur.lua | 1 | 4691 | --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 |
MaxG87/awesome | lib/menubar/init.lua | 3 | 11953 | ---------------------------------------------------------------------------
--- Menubar module, which aims to provide a freedesktop menu alternative
--
-- List of menubar keybindings:
-- ---
--
-- * "Left" | "C-j" select an item on the left
-- * "Right" | "C-k" select an item on the right
-- * "Backspace" ex... | gpl-2.0 |
praveenjha527/Algorithm-Implementations | Successive_Over_Relaxation/Lua/Yonaba/sor.lua | 26 | 1264 | -- Successive Over Relaxation algorithm implementation
-- See : http://en.wikipedia.org/wiki/Successive_over-relaxation
-- Creates a vector of values
local function vector(len, v)
local x = {}
for i = 1, len do x[i] = v end
return x
end
-- Computes the norm of a given vector
local function norm(v)
local n = 0... | mit |
gfax/vale | src/services/xml.lua | 2 | 1590 | --- XML parser for pasing tiled map files
-- LoadXML from http://lua-users.org/wiki/LuaXml
local parse = function(s)
local function LoadXML_parseargs(str)
local arg = {}
string.gsub(str, "(%w+)=([\"'])(.-)%2", function (w, _, a)
arg[w] = a
end)
return arg
end
local stack = {}
local top = {}... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/sceneobjects/objects/lairs/corellia/bagerasetLair.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 |
BakaBBQ/siki.lua | love-frames/objects/numberbox.lua | 14 | 12852 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- get the current require path
local path = string.sub(..., 1, string.len(...) - string.len(".objects.numberbox"))
local lo... | mit |
TheAnswer/FirstTest | bin/scripts/slashcommands/generic/setMoodInternal.lua | 1 | 2489 | --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/objects/corellia/creatures/tabageProtector.lua | 1 | 4730 | --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/dantooine/creatures/thuneGrasslandGuardian.lua | 1 | 4783 | --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 |
frioux/awesome-vicious | widgets/mdir.lua | 8 | 1322 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2010, Adrian C. <anrxc@sysphere.org>
-- * (c) Maildir Biff Widget, Fredrik Ax
---------------------------------------------------
-- {{{ Grab environment
local io = { popen = io.popen }
local setmetatable... | gpl-2.0 |
Andrettin/Wyrmsun | scripts/civilizations/latin/units.lua | 1 | 8508 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
yannayl/packages | utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/nat_traffic.lua | 79 | 1251 | local function scrape()
-- documetation about nf_conntrack:
-- https://www.frozentux.net/iptables-tutorial/chunkyhtml/x1309.html
nat_metric = metric("node_nat_traffic", "gauge" )
for e in io.lines("/proc/net/nf_conntrack") do
-- output(string.format("%s\n",e ))
local fields = space_split(e)
local ... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/endor/npcs/pubam/beguilingPubamScout.lua | 1 | 4599 | --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 |
hamode-Aliraq/HAMODE_ALIRAQE | plugins/lock_badword.lua | 17 | 1307 | --[[
#
#ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#:((
# For More Information ....!
# Developer : Aziz < @TH3_GHOST >
# our channel: @DevPointTeam
# Version: 1.1
#:))
#ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#
]]
lo... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/weapons/thrown/protonGrenade.lua | 1 | 2420 | --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/slashcommands/generic/setpermission.lua | 1 | 2449 | --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 |
muhkuh-sys/org.muhkuh.tools-flasher | jonchki/org.muhkuh.tools.flasher_cli/finalizer.lua | 1 | 2817 | local t = ...
local strDistId, strDistVersion, strCpuArch = t:get_platform()
local tLog = t.tLog
local cLog = t.cLog
local tResult
local archives = require 'installer.archives'
local pl = require'pl.import_into'()
local atInstall = {
-- Copy all demo scripts to the installation base.
['${depack_path_org.muhkuh.too... | gpl-2.0 |
fkaa/iceball | pkg/base/common.lua | 2 | 12427 | --[[
This file is part of Ice Lua Components.
Ice Lua Components is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... | gpl-3.0 |
ludi1991/skynet | service/cslave.lua | 50 | 6448 | local skynet = require "skynet"
local socket = require "socket"
require "skynet.manager" -- import skynet.launch, ...
local table = table
local slaves = {}
local connect_queue = {}
local globalname = {}
local queryname = {}
local harbor = {}
local harbor_service
local monitor = {}
local monitor_master_set = {}
local ... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/objects/endor/npcs/panshee/seasonedPansheeWarrior.lua | 1 | 4611 | --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/base/wool/init.lua | 21 | 1698 | -- This uses a trick: you can first define the recipes using all of the base
-- colors, and then some recipes using more specific colors for a few non-base
-- colors available. When crafting, the last recipes will be checked first.
local dyes = {
{"white", "White", "basecolor_white"},
{"grey", "Grey"... | agpl-3.0 |
alfred-bot/seedphm | plugins/stats.lua | 1 | 3960 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
Entware/openwrt-packages | net/prosody/files/prosody.cfg.lua | 147 | 7257 | -- Prosody Example Configuration File
--
-- Information on configuring Prosody can be found on our
-- website at http://prosody.im/doc/configure
--
-- Tip: You can check that the syntax of this file is correct
-- when you have finished by running: luac -p prosody.cfg.lua
-- If there are any errors, it will let you know... | gpl-2.0 |
badboyam/redstorm | plugins/Welcome.lua | 114 | 3529 | local add_user_cfg = load_from_file('data/add_user_cfg.lua')
local function template_add_user(base, to_username, from_username, chat_name, chat_id)
base = base or ''
to_username = '@' .. (to_username or '')
from_username = '@' .. (from_username or '')
chat_name = string.gsub(chat_name, '_', ' ') or ''
c... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/dantooine/npcs/warren/warrenAgroDroidS01.lua | 1 | 4627 | --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/ZipUtils.lua | 1 | 2642 |
--------------------------------
-- @module ZipUtils
-- @parent_module cc
--------------------------------
--
-- @function [parent=#ZipUtils] setPvrEncryptionKey
-- @param self
-- @param #unsigned int keyPart1
-- @param #unsigned int keyPart2
-- @param #unsigned int keyPart3
-- @param #unsigned int keyP... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/sceneobjects/objects/lairs/yavin4/whisperBirdLair.lua | 1 | 2541 | --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/spawns/yavin4/dungeons/geoCave.lua | 1 | 8456 | --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 |
devilrap97/alirap97 | libs/dateparser.lua | 114 | 6213 | local difftime, time, date = os.difftime, os.time, os.date
local format = string.format
local tremove, tinsert = table.remove, table.insert
local pcall, pairs, ipairs, tostring, tonumber, type, setmetatable = pcall, pairs, ipairs, tostring, tonumber, type, setmetatable
local dateparser={}
--we shall use the host OS's... | gpl-2.0 |
GeekWithALife/love-bone | examples/guy/guy.lua | 1 | 13169 |
local boner = require(LIBNAME);
local demina = require("examples.util.demina");
-- Actor list
local NUM_ACTORS = 1; -- Increase for stress testing
local bonedActors = {};
-- Animation blending
local toggleTransforms = {
"anim_main",
"anim_gest",
"anim_point",
"anim_zomg"
}
local increasePower = {};
-- "pews"
lo... | mit |
thkhxm/TGame | Assets/LuaFramework/ToLua/Lua/protobuf/protobuf.lua | 8 | 36644 | --
--------------------------------------------------------------------------------
-- FILE: protobuf.lua
-- DESCRIPTION: protoc-gen-lua
-- Google's Protocol Buffers project, ported to lua.
-- https://code.google.com/p/protoc-gen-lua/
--
-- Copyright (c) 2010 , 林卓毅 (Zhuoyi Lin) netsnail@gmail.com
-- ... | apache-2.0 |
PAPAGENO-devels/papageno | test/benchmarks/Lua/lua-regression-test/WoW/MoneyFrame.lua | 1 | 9880 |
MONEY_ICON_WIDTH = 19;
MONEY_ICON_WIDTH_SMALL = 13;
MONEY_BUTTON_SPACING = -4;
MONEY_BUTTON_SPACING_SMALL = -4;
COPPER_PER_SILVER = 100;
SILVER_PER_GOLD = 100;
COPPER_PER_GOLD = COPPER_PER_SILVER * SILVER_PER_GOLD;
COIN_BUTTON_WIDTH = 32;
MoneyTypeInfo = { };
MoneyTypeInfo["PLAYER"] = {
UpdateFunc ... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/clothing/ithorian/main.lua | 1 | 3533 | --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 |
MaxG87/awesome | lib/wibox/layout/constraint.lua | 2 | 4204 | ---------------------------------------------------------------------------
-- @author Lukáš Hrázký
-- @copyright 2012 Lukáš Hrázký
-- @release @AWESOME_VERSION@
-- @classmod wibox.layout.constraint
---------------------------------------------------------------------------
local pairs = pairs
local type = type
local ... | gpl-2.0 |
Xeltor/ovale | dist/hooves/warrior/Hooves_Protection.lua | 1 | 12453 | local __exports = LibStub:GetLibrary("ovale/scripts/ovale_warrior")
if not __exports then return end
__exports.registerWarriorProtectionHooves = function(OvaleScripts)
do
local name = "hooves_protection"
local desc = "[Hooves][8.1.5] Warrior: Protection"
local code = [[
Include(ovale_common)
Include(ovale_trinkets_m... | mit |
Xeltor/ovale | libs/LibRangeCheck-2.0/LibRangeCheck-2.0/LibRangeCheck-2.0.lua | 2 | 33676 | --[[
Name: LibRangeCheck-2.0
Revision: $Revision: 190 $
Author(s): mitch0
Website: http://www.wowace.com/projects/librangecheck-2-0/
Description: A range checking library based on interact distances and spell ranges
Dependencies: LibStub
License: Public Domain
]]
--- LibRangeCheck-2.0 provides an easy way to check for... | mit |
Lunovox/minetest_nibirus_game | mods/multlocales/translates/languages/BR.lua | 1 | 15461 | translate = {
-- Deprecado (tem seus crafts retirados)
{"default:rail", "Trilho (Deprecado)"},
-- bees/abelhas
{"bees:queen", "Abelha Rainha"},
{"bees:hive_artificial", "Comeia Artificial"},
{"bees:extractor", "Extrator de Mel (p/ Tela de Comeia)"},
{"bees:grafting_tool", "Enxerteira (Captur... | agpl-3.0 |
aqasaeed/kirekhar | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
infernall/nevermind | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
Modified-MW-DF/modified-MDF | MWDF Project/Dwarf Fortress/hack/scripts/combine-drinks.lua | 2 | 4146 | -- Merge drink stacks in the selected stockpile
--[====[
combine-drinks
==============
Merge stacks of drinks in the selected stockpile.
]====]
local utils = require 'utils'
validArgs = validArgs or utils.invert({ 'max', 'stockpile' })
local args = utils.processArgs({...}, validArgs)
local max = 30;
i... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/objects/naboo/creatures/giantVeermok.lua | 1 | 4756 | --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 |
sweetbot0/sweetbot | plugin/welcome.lua | 1 | 1221 | --[[
▄▄▄████▄▄▄ THIS CODE BY @IPEXTEAM
███▀▀██▀▀███ CREATED BY : @ilwil
▀▀███▀▀███▀▀
▀█▄ ▀▀ ▄█ © ipexteam جميع الحقوق محفوظة
]]
-- @IPEXTEAM
do
local function ipexteam(msg,matches)
if matches[1] == "chat_add_user" then -- @IPEXTEAM
return "🔹[ welcome 👋 ]\n".." 🔹[Group name]"..msg.to.title..... | gpl-3.0 |
frioux/awesome-vicious | init.lua | 4 | 6559 | ---------------------------------------------------
-- Vicious widgets for the awesome window manager
---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2010, Adrian C. <anrxc@sysphere.org>
-- * (c) 2009, Lucas de Vries <lucas@glacicle.com>
---------------... | gpl-2.0 |
PAPAGENO-devels/papageno | test/benchmarks/Lua/lua-regression-test/grim/dlg_domino.lua | 1 | 10127 | CheckFirstTime("dlg_domino.lua")
do1 = Dialog:create()
do1.talk_domino_count = 0
do1.intro = function(arg1) -- line 8
do1.node = "first_domino_node"
break_here()
dom:current_setup(do_dorws)
break_here()
do1.exit_lines.first_domino_node = fdn_exit_1
if not domino.met then
domino.met = TRU... | gpl-2.0 |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/EaseInOut.lua | 1 | 1146 |
--------------------------------
-- @module EaseInOut
-- @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 |
kyle-lu/fceux.js | output/luaScripts/x_smb1enemylist.lua | 9 | 2428 | -- temporary file because this will be huge.
handles = {};
handles[ 1] = { x1 = 0, y1 = 0, x2 = 16, y2 = 24 }; -- Green & Red Koopa
handles[ 2] = { x1 = 0, y1 = 8, x2 = 16, y2 = 24 }; -- Goomba
handles[ 3] = { x1 = 0, y1 = 0, x2 = 16, y2 = 16 }; -- generic 16x16
handles[ 4] = { x1 = 0, y1 = 0... | gpl-2.0 |
BakaBBQ/siki.lua | love-frames/objects/text.lua | 10 | 20414 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
--[[------------------------------------------------
-- note: the text wrapping of this object is
experimental and not ... | mit |
MaxG87/awesome | lib/awful/widget/layoutbox.lua | 5 | 1776 | ---------------------------------------------------------------------------
--- Layoutbox widget.
--
-- @author Julien Danjou <julien@danjou.info>
-- @copyright 2009 Julien Danjou
-- @release @AWESOME_VERSION@
-- @classmod awful.widget.layoutbox
--------------------------------------------------------------------... | gpl-2.0 |
gfax/vale | src/services/camera.lua | 1 | 1879 | --- Camera
-- Translation layer between coordinates and drawn graphics
local Window = require 'src/services/window'
local Love = require 'src/services/love'
-- Distance between player and screen edge before the player is considered to be in the bounary in which the camera needs to be moved.
local boundary_size = 256
... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/installation/mining_organic/objects.lua | 1 | 7892 | --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/creatures/objects/tatooine/npcs/sennex/sennexLookout.lua | 1 | 4757 | --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 |
frioux/sysdig | userspace/sysdig/chisels/spectrogram.lua | 12 | 4048 | --[[
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 e... | gpl-2.0 |
Andrettin/Wyrmsun | scripts/languages/italic/old_castillian.lua | 1 | 1660 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/tailor/noviceTailor/stripedPants.lua | 1 | 4460 | --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/traps/wireMeshTrap.lua | 1 | 2365 | --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 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/entities/entities/crow_spit/init.lua | 1 | 2641 | -- © Limetric Studios ( www.limetricstudios.com ) -- All rights reserved.
-- See LICENSE.txt for license information
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include('shared.lua')
function ENT:Initialize()
self.DieTime = CurTime() + 3
local pl = self.Entity:GetOwner()
-- local aimvec = ... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/skills/playerSkills/nonCombat/musician.lua | 1 | 3081 | --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 |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/LabelAtlas.lua | 1 | 1747 |
--------------------------------
-- @module LabelAtlas
-- @extend AtlasNode,LabelProtocol
-- @parent_module cc
--------------------------------
--
-- @function [parent=#LabelAtlas] setString
-- @param self
-- @param #string label
-- @return LabelAtlas#LabelAtlas self (return value: cc.LabelAtlas)
... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/skills/playerSkills/combat/pikeman.lua | 1 | 14862 | --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 |
crosslife/OpenBird | cocos2d/cocos/scripting/lua/script/OpenglConstants.lua | 78 | 27074 | --Encapsulate opengl constants.
gl = gl or {}
gl.GCCSO_SHADER_BINARY_FJ = 0x9260
gl._3DC_XY_AMD = 0x87fa
gl._3DC_X_AMD = 0x87f9
gl.ACTIVE_ATTRIBUTES = 0x8b89
gl.ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8b8a
gl.ACTIVE_PROGRAM_EXT = 0x8259
gl.ACTIVE_TEXTURE = 0x84e0
gl.ACTIVE_UNIFORMS = 0x8b86
gl.ACTIVE_UNIFORM_M... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/objects/dathomir/npcs.lua | 1 | 7216 | --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 |
praveenjha527/Algorithm-Implementations | Sudoku/Lua/Yonaba/sudoku.lua | 26 | 2101 | -- Sudoku solver implementation
-- Uses Backtracking and recursion
-- See : http://en.wikipedia.org/wiki/Sudoku
-- Checks if num exists on a row
local function rowHasNotNum(sudoku, row, num)
for column = 1,9 do
if sudoku[row][column] == num then
return false
end
end
return true
end
-- Checks if nu... | mit |
aminbotmaker/1283 | plugins/meme.lua | 637 | 5791 | local helpers = require "OAuth.helpers"
local _file_memes = './data/memes.lua'
local _cache = {}
local function post_petition(url, arguments)
local response_body = {}
local request_constructor = {
url = url,
method = "POST",
sink = ltn12.sink.table(response_body),
headers = {},
red... | gpl-2.0 |
Xeltor/ovale | libs/LibDBIcon-1.0/LibDBIcon-1.0.lua | 7 | 10621 |
-----------------------------------------------------------------------
-- LibDBIcon-1.0
--
-- Allows addons to easily create a lightweight minimap icon as an alternative to heavier LDB displays.
--
local DBICON10 = "LibDBIcon-1.0"
local DBICON10_MINOR = 34 -- Bump on changes
if not LibStub then error(DBICON10 .. " r... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/objects/naboo/npcs/naboo/nabooNomad.lua | 1 | 4519 | --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 |
BakaBBQ/siki.lua | love-frames/skins/Orange/skin.lua | 14 | 1445 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- get the current require path
local path = string.sub(..., 1, string.len(...) - string.len(".skins.Orange.skin"))
local lo... | mit |
xboot/xboot | src/framework/romdisk/application/sun/Sun.lua | 1 | 1884 | local M = Class(DisplayObject)
function M:init(x, y)
self._x = x or 0
self._y = y or 0
self._sun = assets:loadDisplay("assets/images/sun.png")
self.super:init(self._sun:getSize())
self:addChild(self._sun)
self:setAnchor(0.5, 0.5)
self:setPosition(self._x, self._y)
self:addEventListener("mouse-down"... | mit |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/tailor/casualWearIiSynthetics/muscleShirt.lua | 1 | 4279 | --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/naboo/npcs/misc/davidKarivalis.lua | 1 | 5709 | --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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.