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 |
|---|---|---|---|---|---|
msburgess3200/PERP | gamemodes/perp/gamemode/vgui/vehicle_unowned.lua | 1 | 2164 |
//Normal
function GM.ShowDealershipView ( )
local W, H = 500, 500;
local DermaPanel = vgui.Create("DFrame")
DermaPanel:SetPos(ScrW() * .5 - W * .5, ScrH() * .5 - H * .5)
DermaPanel:SetSize(W, H)
DermaPanel:SetTitle("Vehicle Dealership - Bank Balance: " .. DollarSign() .. LocalPlayer():GetBank() .. " - Current... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Labyrinth_of_Onzozo/mobs/Goblin_Shepherd.lua | 10 | 1060 | -----------------------------------
-- Area: Labyrinth of Onzozo
-- MOB: Goblin Shepherd
-- Note: Place holder Soulstealer Skullnix
-----------------------------------
require("/scripts/zones/Labyrinth_of_Onzozo/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Claymore.lua | 17 | 1488 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Animated Claymore
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
func... | gpl-3.0 |
NORTTeam/N.O.R.T | plugins/all.lua | 88 | 4791 | 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 |
FFXIOrgins/FFXIOrgins | scripts/globals/mobskills/Turbofan.lua | 8 | 1237 | ---------------------------------------------------
-- Turbofan
-- Description:
-- Type: Magical
-- additional effect : Silence.
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
--------------... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/items/weapon_deagle.lua | 1 | 1222 |
local ITEM = {};
ITEM.ID = 34;
ITEM.Reference = "weapon_deagle";
ITEM.Name = "Desert Eagle";
ITEM.Description = "A deadly side-arm.\n\nRequires Pistol Ammo.";
ITEM.Weight = 25;
ITEM.Cost = 1000;
ITEM.MaxStack = 100;
ITEM.InventoryModel = "models/weapons/w_pist_deagle.mdl";
ITEM... | mit |
sjznxd/luci-0.11-aa | applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/widget.lua | 78 | 1243 | --[[
LuCI - Lua Configuration Interface
Copyright 2012 Manuel Munz <freifunk at somakoma dot de>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
... | apache-2.0 |
fartoverflow/naev | dat/missions/shadow/shadowvigil.lua | 11 | 27051 | --[
-- This is the second mission in the "shadow" series.
--]]
include "proximity.lua"
include "dat/scripts/nextjump.lua"
include "chatter.lua"
include "selectiveclear.lua"
-- localization stuff, translators would work here
lang = naev.lang()
if lang == "es" then
else -- default english
title = {}
text = {}
... | gpl-3.0 |
maodeyi/lua-resty-http | lib/resty/http_headers.lua | 19 | 2236 | local rawget, rawset, setmetatable =
rawget, rawset, setmetatable
local str_find, str_lower, str_sub =
string.find, string.lower, string.sub
local _M = {
_VERSION = '0.10',
}
local function hyphenate(k)
local k_hyphened = ""
local match = false
local prev_pos = 0
repeat
... | bsd-2-clause |
m2mselect/owrt | feeds/luci/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua | 2 | 20722 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.ip")
require("luci.model.uci")
local knownParams = {
--
--Widget
-- Name
-- Default(s)
-- Description
-- Option(s)
{ "Service", {
-- initialisation and daemon options
{ ListValue,
"... | gpl-2.0 |
daofeng2015/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/ping.lua | 69 | 1137 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("Ping Plugin Configuration"),
translate(
"The ping plugin will send icmp echo replies to selected " ..
"hosts and measure the roundtrip time for each... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Windurst_Waters/npcs/Lumomo.lua | 6 | 2826 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Lumomo
-- Type: Standard NPC
-- @zone: 238
-- @pos -55.770 -5.499 18.914
-- 0x027e 0x0332 0x0334 0x0336 0x0337
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Wind... | gpl-3.0 |
elt11bot/seed-sup | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
sjznxd/luci-0.11-aa | applications/luci-statistics/luasrc/model/cbi/luci_statistics/df.lua | 7 | 1667 | --[[
Luci configuration model for statistics - collectd df plugin configuration
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Metalworks/npcs/Raibaht.lua | 17 | 3131 | -----------------------------------
-- Area: Metalworks
-- NPC: Raibaht
-- Starts and Finishes Quest: Dark Legacy
-- Involved in Quest: The Usual, Riding on the Clouds
-- @pos -27 -10 -1 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
package.loaded["scripts/gl... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/entities/weapons/weapon_perp_base/shared.lua | 1 | 11198 | if (SERVER) then
AddCSLuaFile("shared.lua");
SWEP.Weight = 5;
SWEP.AutoSwitchTo = false;
SWEP.AutoSwitchFrom = false;
else
SWEP.DrawAmmo = false;
SWEP.DrawCrosshair = false;
SWEP.ViewModelFOV = 82;
SWEP.ViewModelFlip = true;
SWEP.CSMuzzleFlashes = true;
end
SWEP.Author = "RedMist";
SWEP.Contact... | mit |
rigeirani/Teleseed | plugins/banhammer.lua | 1085 | 11557 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Windurst_Woods/npcs/Tapoh_Lihzeh.lua | 19 | 3314 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Tapoh Lihzeh
-- Starts & Finishes Repeatable Quest: Paying Lip Service
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
re... | gpl-3.0 |
sjznxd/luci-0.11-aa | libs/nixio/docsrc/nixio.TLSSocket.lua | 173 | 2926 | --- TLS Socket Object.
-- TLS Sockets contain the underlying socket and context in the fields
-- "socket" and "context".
-- @cstyle instance
module "nixio.TLSSocket"
--- Initiate the TLS handshake as client with the server.
-- @class function
-- @name TLSSocket.connect
-- @usage This function calls SSL_connect().
-- @... | apache-2.0 |
hb9cwp/snabbswitch | src/program/snsh/snsh.lua | 7 | 4457 | module(..., package.seeall)
local lib = require("core.lib")
local usage = require("program.snsh.README_inc")
local long_opts = {
["package-path"] = "P",
eval = "e",
load = "l",
program = "p",
test = "t",
interactive = "i",
debug = "d",
jit = "j",
sigquit = "q",
help = "h",
}
function ru... | apache-2.0 |
pax2you4now/wesnoth | data/ai/lua/generic_rush_engine.lua | 26 | 27499 | return {
init = function(ai)
-- Grab a useful separate CA as a starting point
local generic_rush = wesnoth.require("ai/lua/move_to_any_target.lua").init(ai)
-- More generic grunt rush (and can, in fact, be used with other unit types as well)
local H = wesnoth.require "lua/helper.l... | gpl-2.0 |
boundary/boundary-plugin-elasticsearch | modules/framework.lua | 1 | 54571 | -- Copyright 2015 Boundary, 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
--
-- Unless required by applicable law or agreed to i... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/tonosama_rice_ball.lua | 14 | 1766 | -----------------------------------------
-- ID: 4277
-- Item: tonosama_rice_ball
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP +15, Dex +3, Vit +3, Chr +3. (Atk +50, Def +30, DA% +1) * number of enhancing gear
-----------------------------------------
require("scripts/globa... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/vehicles/cop_car.lua | 1 | 2239 |
VEHICLE = {};
VEHICLE.ID = 'ddddd';
VEHICLE.Name = "Police Car";
VEHICLE.Make = "Ford";
VEHICLE.Model = "Crown Royal";
VEHICLE.Script = "cop";
VEHICLE.Cost = 0;
VEHICLE.PaintJobCost = 0;
VEHICLE.DF = false;
VEHICLE.CustomBodyGroup = nil;
VEHICLE.PaintJobs = {
{model = 'models... | mit |
nehz/busted | busted/outputHandlers/utfTerminal.lua | 1 | 5450 | local s = require 'say'
local pretty = require 'pl.pretty'
local colors
if package.config:sub(1,1) == '\\' and not os.getenv("ANSICON") then
-- Disable colors on Windows.
colors = setmetatable({}, {__index = function() return function(s) return s end end})
else
colors = require 'term.colors'
end
return functio... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Northern_San_dOria/npcs/Pepigort.lua | 38 | 1027 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Pepigort
-- Type: Standard Dialogue NPC
-- @zone: 231
-- @pos -126.739 11.999 262.757
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs"... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/bowl_of_nashmau_stew.lua | 36 | 1975 | -----------------------------------------
-- ID: 5595
-- Item: Bowl of Nashmau Stew
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- MP -100
-- Vitality -10
-- Agility -10
-- Intelligence -10
-- Mind -10
-- Charisma -10
-- Accuracy +15% Cap 25
-- Attack +18% Cap 60
-- ... | gpl-3.0 |
Arashbrsh/copyuz | plugins/steam.lua | 645 | 2117 | -- See https://wiki.teamfortress.com/wiki/User:RJackson/StorefrontAPI
do
local BASE_URL = 'http://store.steampowered.com/api/appdetails/'
local DESC_LENTH = 200
local function unescape(str)
str = string.gsub( str, '<', '<' )
str = string.gsub( str, '>', '>' )
str = string.gsub( str, '"', '"' )
str... | gpl-2.0 |
elt11bot/seed-sup | plugins/ingroup.lua | 1 | 57910 | do
-- Check Member
local function check_member_autorealm(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
... | gpl-2.0 |
devilrap978/devil_rap65 | plugins/ar-getfile.lua | 14 | 1025 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ get file : جلب ملف ▀▄ ▄▀... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Port_San_dOria/npcs/Anoki.lua | 19 | 1436 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Anoki
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
require("scripts/zones/Port_San_dOria/TextIDs");
-----------------------------------
-- onTrade Action
----------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Norg/npcs/_700.lua | 17 | 2913 | -----------------------------------
-- Area: Norg
-- NPC: Oaken door (Gilgamesh's room)
-- @pos 97 -7 -12 252
-----------------------------------
require("scripts/globals/missions");
require("scripts/globals/settings")
-----------------------------------
-- onTrade Action
---------------------------------... | gpl-3.0 |
Gael-de-Sailly/minetest-minetestforfun-server | minetestforfun_game/mods/default/craftitems.lua | 2 | 7983 | -- mods/default/craftitems.lua
minetest.register_craftitem("default:stick", {
description = "Stick",
stack_max = 1000,
inventory_image = "default_stick.png",
groups = {stick = 1, flammable = 2},
})
minetest.register_craftitem("default:paper", {
description = "Paper",
inventory_image = "default_paper.png",
grou... | unlicense |
TRIEXTEAM/TaylortTG | plugins/google.lua | 12 | 3136 | local function googlethat(query)
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&"
local parameters = "q=".. (URL.escape(query) or "")
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
local r... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/bowl_of_ocean_soup.lua | 35 | 1893 | -----------------------------------------
-- ID: 4285
-- Item: bowl_of_ocean_soup
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- HP % 5
-- MP 5
-- Dexterity 4
-- Mind -3
-- HP Recovered While Healing 9
-- Attack % 14 (cap 65)
-- Ranged Attack % 14 (cap 65)
---------------------... | gpl-3.0 |
lakers/RobloxWiki | extensions/Scribunto/tests/engines/LuaCommon/MessageLibraryTests.lua | 2 | 2573 | local testframework = require 'Module:TestFramework'
local message1 = mw.message.new( 'mainpage' )
local message1_copy = mw.message.new( 'mainpage' )
local message2 = mw.message.new( 'i-dont-exist-evar' )
function test_exists( key )
return mw.message.new( key ):exists()
end
function test_language( key )
-- If mw.l... | gpl-2.0 |
sjznxd/luci-0.11-aa | modules/niu/luasrc/model/cbi/niu/network/lan1.lua | 37 | 5033 | --[[
LuCI - Lua Configuration Interface
Copyright 2009 Steven Barth <steven@midlink.org>
Copyright 2009 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://w... | apache-2.0 |
arman022/spamer- | plugins/help.lua | 6 | 5062 | do
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 |
FFXIOrgins/FFXIOrgins | scripts/zones/Northern_San_dOria/npcs/Eperdur.lua | 19 | 5076 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Eperdur
-- Starts and Finishes Quest: Altana's Sorrow (finish), Acting in Good Faith (finish), Healing the Land,
-- @pos 129 -6 96 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-... | gpl-3.0 |
dargosch/home_center_2_addons | Scenes/bedroom_light_on.lua | 1 | 1671 | --[[
%% properties
251 value
%% events
%% globals
--]]
local takState = tonumber(fibaro:getValue(251, "value"));
local sunsetHour = tostring(fibaro:getValue(1, "sunsetHour"));
function timestringToTable (time)
local dateTable = os.date("*t");
-- Get an iterator that extracts date fields
local g = string.... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Garlaige_Citadel/npcs/_5k9.lua | 17 | 1365 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: Banishing Gate #2
-- @pos -100 -2.949 81 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Garlaige_Citadel/TextIDs");
-----... | gpl-3.0 |
brianbennett/fpga_nes | sw/scripts/cpu_branch.lua | 3 | 14847 | ----------------------------------------------------------------------------------------------------
-- Script: cpu_branch.lua
-- Description: CPU test. Directed test for branch instructions (BCC, BCS, BEQ, BMI, BNE, BPL,
-- BVC, BVS).
-----------------------------------------------------------------... | bsd-2-clause |
hb9cwp/snabbswitch | lib/ljsyscall/syscall/linux/ppc64le/constants.lua | 48 | 6400 | -- ppc specific constants
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string
local h = require "syscall.helpers"... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/spells/carnage_elegy.lua | 6 | 1764 | -----------------------------------------
-- Spell: Battlefield Elegy
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function OnMagicCastingCheck(caster,tar... | gpl-3.0 |
daofeng2015/luci | modules/luci-mod-failsafe/luasrc/controller/failsafe/failsafe.lua | 41 | 5011 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2012 Daniel Golle <dgolle@allnet.de>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.failsafe.failsafe", package.seeall)
function index()
local root = node()
if n... | apache-2.0 |
elt11bot/seed-sup | plugins/inrealm.lua | 1 | 25688 | -- 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
... | gpl-2.0 |
zhouxiaoxiaoxujian/skynet | lualib/snax/interface.lua | 17 | 2040 | local skynet = require "skynet"
local function dft_loader(path, name, G)
local errlist = {}
for pat in string.gmatch(path,"[^;]+") do
local filename = string.gsub(pat, "?", name)
local f , err = loadfile(filename, "bt", G)
if f then
return f, pat
else
table.insert(errlist, err)
end
end
error(tabl... | mit |
mahdikord/mahdikord9 | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
devilrap978/devil_rap65 | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/vehicles/Volvo.lua | 2 | 2555 | ///////////////////////////////
// © 2009-2010 Pulsar Effect //
// All rights reserved //
///////////////////////////////
// This material may not be //
// reproduced, displayed, //
// modified or distributed //
// without the express prior //
// written permission of the //
// the copyright holder. //
... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/King_Ranperres_Tomb/Zone.lua | 2 | 1985 | -----------------------------------
--
-- Zone: King_Ranperres_Tomb (190)
--
-----------------------------------
package.loaded["scripts/zones/King_Ranperres_Tomb/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/King_Ranperres_Tomb/TextIDs");
... | gpl-3.0 |
devilrap978/devil_rap65 | data/config.lua | 1 | 8541 | do local _ = {
about_text = "Teleseed v4\nAn advanced administration bot based on TG-CLI written in Lua\n\nhttps://github.com/SEEDTEAM/TeleSeed\n\nAdmins\n@iwals [Founder]\n@imandaneshi [Developer]\n@POTUS [Developer]\n@seyedan25 [Manager]\n@aRandomStranger [Admin]\n\nSpecial thanks to\nawkward_potato\nSiyanew\ntopke... | gpl-2.0 |
PioneerMakeTeam/Cretaceous | wicker/init/kernel_components/cleanup.lua | 5 | 1888 | --[[
-- Avoid tail calls like hell.
--]]
--[[
Copyright (C) 2013 simplex
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.
Thi... | mit |
Gael-de-Sailly/minetest-minetestforfun-server | mods/plantlife_modpack/ferns/gianttreefern.lua | 8 | 10309 | -----------------------------------------------------------------------------------------------
-- Ferns - Giant Tree Fern 0.1.1
-----------------------------------------------------------------------------------------------
-- by Mossmanikin
-- License (everything): WTFPL
-- Contains code from: biome_lib
-- Looked ... | unlicense |
msburgess3200/PERP | gamemodes/perp/gamemode/vehicles/Old Cars/mazda.lua | 2 | 2573 | ///////////////////////////////
// © 2009-2010 Pulsar Effect //
// All rights reserved //
///////////////////////////////
// This material may not be //
// reproduced, displayed, //
// modified or distributed //
// without the express prior //
// written permission of the //
// the copyright holder. //
... | mit |
msburgess3200/PERP | gamemodes/perp/gamemode/vehicles/mazda.lua | 2 | 2573 | ///////////////////////////////
// © 2009-2010 Pulsar Effect //
// All rights reserved //
///////////////////////////////
// This material may not be //
// reproduced, displayed, //
// modified or distributed //
// without the express prior //
// written permission of the //
// the copyright holder. //
... | mit |
KnightTeam/Knight | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | agpl-3.0 |
Ali-2h/lwl | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
aqasaeed/hacked | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
teahouse/FWServer | script/util/timer.lua | 1 | 1641 | local skynet = require "skynet"
if not g_timer.m_timer_id then
g_timer.m_timer_id = 0
end
local max_int = 2147483600 --int的最大值2147483647
local timer_id = g_timer.m_timer_id
local timer_tab = g_timer
local function checkToUsed(t)
if not timer_tab[t] then
timer_id = t
return t
end
end
local function genTime... | mit |
TW1STaL1CKY/pac3 | lua/pac3/core/client/parts/event.lua | 1 | 50539 | local LocalPlayer = LocalPlayer
local FrameTime = FrameTime
local PART = {}
PART.ClassName = "event"
PART.NonPhysical = true
PART.ThinkTime = 0
PART.AlwaysThink = true
PART.Icon = 'icon16/clock.png'
pac.StartStorableVars()
pac.GetSet(PART, "Event", "", {enums = function(part)
local output = {}
f... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Arrapago_Reef/npcs/_jic.lua | 4 | 1568 | -----------------------------------
-- Area: arrapago reef
-- NPC: Runic Seal
-----------------------------------
package.loaded["scripts/zones/Arrapago_Reef/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/quests");
require("scripts/globals/missi... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/spells/break.lua | 5 | 1200 | -----------------------------------------
-- Spell: Breakga
-- Temporarily blinds an enemy, greatly lowering its accuracy.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
---------------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/serving_of_snowy_rolanberry.lua | 35 | 1402 | -----------------------------------------
-- ID: 4594
-- Item: serving_of_snowy_rolanberry
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Magic % 18
-- Magic Cap 60
-- Intelligence 2
-- Wind Res 5
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Port_Bastok/npcs/Agapito.lua | 18 | 1866 | -----------------------------------
-- Area: Port Bastok
-- NPC: Agapito
-- Start & Finishes Quest: The Stars of Ifrit
-- @zone: 236
-- @pos -72.093 -3.097 9.309
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/s... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Yuhtunga_Jungle/npcs/Cermet_Headstone.lua | 9 | 3909 | -----------------------------------
-- Area: Yuhtunga Jungle
-- NPC: Cermet Headstone
-- Involved in Mission: ZM5 Headstone Pilgrimage (Fire Fragment)
-- @pos 491 20 301 123
-----------------------------------
package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil;
-----------------------------------
... | gpl-3.0 |
tullamods/OmniCC | OmniCC_Config/themes.lua | 1 | 21290 | local _, Addon = ...
local L = LibStub('AceLocale-3.0'):GetLocale('OmniCC', true)
local LSM = LibStub('LibSharedMedia-3.0')
local OmniCC = _G.OmniCC
local function getEffectValues()
local items = {}
for id, effect in OmniCC.FX:All() do
items[id] = effect.name or id
end
return items
end
local... | mit |
Gael-de-Sailly/minetest-minetestforfun-server | mods/homedecor_modpack/lrfurn/longsofas.lua | 7 | 2374 |
local longsofa_sbox = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 2.5}
}
local longsofa_cbox = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0, 2.5 },
{-0.5, -0.5, 0.5, -0.4, 0.5, 2.5 }
}
}
for i in ipairs(lrfurn.colors) do
local colour = lrfurn.colors[i][1]
local hue = lrfurn.colors[i][... | unlicense |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/shijin_spiral.lua | 6 | 1626 | -----------------------------------
-- Shijin Spiral
-- Hand-to-Hand weapon skill
-- Skill Level: N/A
-- Delivers a fivefold attack that Plagues the target. Chance of inflicting Plague varies with TP.
-- In order to obtain Shijin Spiral, the quest Martial Mastery must be completed.
-- Aligned with the Flame ... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/LaLoff_Amphitheater/bcnms/ark_angels_1.lua | 6 | 3031 | -----------------------------------
-- Area: LaLoff Amphitheater
-- Name: Ark Angels 1 (Hume)
-----------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
require("scripts/globals/mission... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/mobskills/Laser_Shower.lua | 6 | 1193 | ---------------------------------------------
-- Laser_Shower
--
-- Description: Deals Darkness damage to enemies within a fan-shaped area.
-- Type: Breath
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Unknown cone
-- Notes:
---------------------------------------------
require("/scripts/globals/s... | gpl-3.0 |
luzexi/slua-3rd-lib | build/pbc-win/binding/lua/parser.lua | 40 | 9297 | -----------------------
-- simple proto parser
-----------------------
local lpeg = require "lpeg"
local P = lpeg.P
local S = lpeg.S
local R = lpeg.R
local C = lpeg.C
local Ct = lpeg.Ct
local Cg = lpeg.Cg
local Cc = lpeg.Cc
local V = lpeg.V
local next = next
local error = error
local tonumber = tonumber
local pairs =... | mit |
Gael-de-Sailly/minetest-minetestforfun-server | mods/throwing/tnt_arrow.lua | 9 | 7433 | minetest.register_craftitem("throwing:arrow_tnt", {
description = "TNT arrow",
inventory_image = "throwing_arrow_tnt.png",
})
minetest.register_node("throwing:arrow_tnt_box", {
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
-- Shaft
{-6.5/17, -1.5/17, -1.5/17, 6.5/17, 1.5/17, 1.5/17},
--... | unlicense |
dphdjy/SimplifyReader | library_youku/src/main/res/raw/aes.lua | 130 | 3338 |
---------------------- bit utils
bit={data32={}}
for i=1,32 do
bit.data32[i]=2^(32-i)
end
function bit.d2b(arg)
local tr={}
for i=1,32 do
if arg >= bit.data32[i] then
tr[i]=1
arg=arg-bit.data32[i]
else
tr[i]=0
end
end
return tr
end --bit:d2b
f... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Bastok_Markets/npcs/Ken.lua | 38 | 1395 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Ken
-- Type: Quest NPC
-- @pos -340.857 -11.003 -149.008 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/asuran_fists.lua | 6 | 1550 | -----------------------------------
-- Asuran Fists
-- Hand-to-Hand weapon skill
-- Skill Level: 250
-- Delivers an eightfold attack. params.accuracy varies with TP.
-- In order to obtain Asuran Fists, the quest The Walls of Your Mind must be completed.
-- Due to the 95% params.accuracy cap there is only a ... | gpl-3.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/pclasses/nodes.lua | 8 | 4147 | minetest.register_entity("pclasses:item", {
initial_properties = {
hp_max = 1,
physical = false,
collisionbox = {-0.17,-0.17,-0.17, 0.17,0.17,0.17},
visual = "sprite",
visual_size = {x=0.5, y=0.5},
textures = {""},
spritediv = {x=1, y=1},
initial_sprite_basepos = {x=0, y=0},
is_visible = false,
},
... | unlicense |
FFXIOrgins/FFXIOrgins | scripts/globals/items/plate_of_piscators_paella.lua | 36 | 1437 | -----------------------------------------
-- ID: 5969
-- Item: Plate of Piscator's Paella
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- HP 45
-- Dexterity 6
-- Accuracy % 16 (cap 85)
-- Undead Killer 6
-----------------------------------------
require("scripts/globals/status");
-------... | gpl-3.0 |
m2mselect/owrt | feeds/luci/applications/luci-app-pbx-voicemail/luasrc/model/cbi/pbx-voicemail.lua | 97 | 6962 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx-voicemail.
luci-pbx-voicemail 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 ... | gpl-2.0 |
punisherbot/test | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
AliKhodadad/zedspam | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
hb9cwp/snabbswitch | src/lib/hash/base.lua | 13 | 2843 | -- Abstract base class for hash functions.
--
-- A subclass must define the instance variable "_size" as the number
-- of bits in the output of the hash function. The standard
-- constructor expects that the hash size is at least 32 and is a
-- multiple thereof. It allocates a chunk of memory that can hold the
-- out... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Port_Windurst/npcs/Boronene.lua | 38 | 1036 | -----------------------------------
-- Area: Port Windurst
-- NPC: Boronene
-- Type: Moghouse Renter
-- @zone: 240
-- @pos 201.651 -13 229.584
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-------------... | gpl-3.0 |
sjznxd/luci-0.11-aa | protocols/ppp/luasrc/model/cbi/admin_network/proto_pptp.lua | 24 | 3379 | --[[
LuCI - Lua Configuration Interface
Copyright 2011-2012 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
loc... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Silver_Sea_route_to_Al_Zahbi/npcs/Yahliq.lua | 17 | 1240 | -----------------------------------
-- Area: Silver Sea route to Al Zahbi
-- NPC: Yahliq
-- Type: Guild Merchant: Fishing Guild
-- @pos 4.986 -2.101 -12.026 59
-----------------------------------
package.loaded["scripts/zones/Silver_Sea_route_to_Al_Zahbi/TextIDs"] = nil;
-----------------------------------
... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/spells/bluemagic/blood_saber.lua | 4 | 1214 | -----------------------------------------
-- Spell: Blood Saber
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/settings");
require("scripts/globals/bluemagic");
-----------------------------------------
-- OnSpellCast
... | gpl-3.0 |
Gael-de-Sailly/minetest-minetestforfun-server | minetestforfun_game/mods/farming/cotton.lua | 12 | 3263 |
local S = farming.intllib
-- cotton seeds
minetest.register_node("farming:seed_cotton", {
description = S("Cotton Seed"),
tiles = {"farming_cotton_seed.png"},
inventory_image = "farming_cotton_seed.png",
wield_image = "farming_cotton_seed.png",
drawtype = "signlike",
groups = {seed = 1, snappy = 3, attached_nod... | unlicense |
dkolli/lua_decoders | iis.lua | 1 | 3503 | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
--[[[hekad]
Parses the iis logs based on the Microsoft iis log formats. This decoder is tested for iis verions 7 and... | mpl-2.0 |
suchipi/pac3 | lua/pac3/editor/client/shortcuts.lua | 1 | 1306 | function pace.OnShortcutSave()
if pace.current_part:IsValid() then
local part = pace.current_part:GetRootPart()
pace.SavePartToFile(part, part:GetName())
surface.PlaySound("buttons/button9.wav")
end
end
function pace.OnShortcutWear()
if pace.current_part:IsValid() then
local part = pace.current_part:GetRoot... | gpl-3.0 |
Distroformo/SSO-English-patch | script/achievement/achievement.lua | 1 | 106472 | --[[ @i18n achievement ]]
local _t = require("i18n").context("achievement")
achievement = {
[1]=
{
name = _t"always inevitable",
type_level3 = 10,
points = 0,
award = 0,
pre_achiev = 0,
broadcast = "0",
desc_type = 0,
hiden = 1,
... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/items/item_pot.lua | 1 | 1076 |
local ITEM = {};
ITEM.ID = 15;
ITEM.Reference = "item_pot";
ITEM.Name = "Gardening Pot";
ITEM.Description = "Useful for planting things.";
ITEM.Weight = 10;
ITEM.Cost = 300;
ITEM.MaxStack = 100;
ITEM.InventoryModel = "models/props_c17/pottery06a.mdl";
ITEM.ModelCamPos = Ve... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Bastok_Mines/npcs/Parraggoh.lua | 36 | 2331 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Parraggoh
-- Finishes Quest: Beauty and the Galka
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/se... | gpl-3.0 |
groupforspeed/TeleSniper | bot/utils.lua | 494 | 23873 | 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 |
mahdikord/kd | bot/utils.lua | 494 | 23873 | 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 |
ho3einkj/boti | bot/utils.lua | 494 | 23873 | 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 |
xToken/NSL | lua/NSL/nsl_server.lua | 1 | 1508 | -- Natural Selection League Plugin
-- Source located at - https://github.com/xToken/NSL
-- lua/NSL/nsl_server.lua
-- - Dragon
-- Load shared defs
Script.Load("lua/NSL/nsl_shared.lua")
-- Load tier 1 server defs
Script.Load("lua/NSL/eventhooks/server.lua")
Script.Load("lua/NSL/config/server.lua")
-- Load remaining se... | mit |
mpeterv/luassert | src/languages/ua.lua | 7 | 1457 | local s = require('say')
s:set_namespace("ua")
s:set("assertion.same.positive", "Очікували однакові обєкти.\nПередали:\n%s\nОчікували:\n%s")
s:set("assertion.same.negative", "Очікували різні обєкти.\nПередали:\n%s\nНе очікували:\n%s")
s:set("assertion.equals.positive", "Очікували еквівалентні обєкти.\nПередали:\n%s\... | mit |
hb9cwp/snabbswitch | lib/ljsyscall/syscall/netbsd/constants.lua | 24 | 31397 | -- tables of constants for NetBSD
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string
local abi = require "syscal... | apache-2.0 |
Mogara/QSanguosha | lua/utilities.lua | 5 | 6576 | --[[********************************************************************
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 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/plate_of_mushroom_risotto.lua | 36 | 1383 | -----------------------------------------
-- ID: 4434
-- Item: Plate of Mushroom Risotto
-- Food Effect: 3 Hr, All Races
-----------------------------------------
-- MP 30
-- Strength -1
-- Vitality 3
-- Mind 3
-- MP Recovered while healing 2
-----------------------------------------
require("scripts/globals/status");... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.