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 |
|---|---|---|---|---|---|
nyasukun/openstackcraft | world/Plugins/ProtectionAreas/HookHandlers.lua | 6 | 3988 |
-- HookHandlers.lua
-- Implements the handlers for individual hooks
--- Registers all the hooks that the plugin needs to know about
function InitializeHooks(a_Plugin)
local PlgMgr = cRoot:Get():GetPluginManager();
cPluginManager.AddHook(cPluginManager.HOOK_PLAYER_DESTROYED, OnPlayerDestroyed);
cPluginManager... | apache-2.0 |
Cloudef/darkstar | scripts/zones/Qulun_Dome/mobs/Diamond_Quadav.lua | 5 | 1741 | -----------------------------------
-- Area: Qulun_Dome
-- NM: Diamond_Quadav
-- Note: PH for Za Dha Adamantking PH
-----------------------------------
package.loaded["scripts/zones/Qulun_Dome/TextIDs"] = nil;
-----------------------------------
mixins = {require("scripts/mixins/job_special")};
require("scripts/zone... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/spells/aisha_ichi.lua | 2 | 1824 | -----------------------------------------
-- Spell: Aisha: Ichi
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/groundsofvalor.lua | 2 | 26296 | -------------------------------------------------
-- Grounds of Valor global vars and functions
--
-- Info from:
-- http://www.bg-wiki.com/bg/Grounds_Tome
-- http://wiki.ffxiclopedia.org/wiki/Grounds_Tome
--
-------------------------------------------------
require("scripts/globals/regimereward");
require("scripts/... | gpl-3.0 |
fiallo1313veeee/Anti_bot | plugins/boobs.lua | 1 | 1601 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
jsfdez/premake-core | tests/actions/vstudio/cs2005/test_assembly_refs.lua | 9 | 2927 | --
-- tests/actions/vstudio/cs2005/test_assembly_refs.lua
-- Test the assembly linking block of a Visual Studio 2005+ C# project.
-- Copyright (c) 2012-2015 Jason Perkins and the Premake project
--
local suite = test.declare("vstudio_cs2005_assembly_refs")
local cs2005 = premake.vstudio.cs2005
--
-- Setup and tea... | bsd-3-clause |
cmbug/AStar | cocos2d/plugin/luabindings/auto/api/lua_cocos2dx_pluginx_auto_api.lua | 146 | 1793 | --------------------------------
-- @module plugin
--------------------------------------------------------
-- the plugin PluginProtocol
-- @field [parent=#plugin] PluginProtocol#PluginProtocol PluginProtocol preloaded module
--------------------------------------------------------
-- the plugin PluginManager
-- @fi... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/spells/bluemagic/frenetic_rip.lua | 35 | 1729 | -----------------------------------------
-- Spell: Frenetic Rip
-- Delivers a threefold attack. Damage varies with TP
-- Spell cost: 61 MP
-- Monster Type: Demon
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 3
-- Stat Bonus: INT+1
-- Level: 63
-- Casting Time: 0.5 seconds
-- Recast Time: 28.5 seconds
-- Skillc... | gpl-3.0 |
microcai/skynet | lualib/sharemap.lua | 78 | 1496 | local stm = require "stm"
local sprotoloader = require "sprotoloader"
local sproto = require "sproto"
local setmetatable = setmetatable
local sharemap = {}
function sharemap.register(protofile)
-- use global slot 0 for type define
sprotoloader.register(protofile, 0)
end
local sprotoobj
local function loadsp()
if ... | mit |
david-xiao/luci | applications/luci-app-coovachilli/luasrc/model/cbi/coovachilli_network.lua | 79 | 1459 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local sys = require"luci.sys"
local ip = require "luci.ip"
m = Map("coovachilli")
-- tun
s1 = m:section(TypedSection, "tun")
s1.anonymous = true
s1:option(... | apache-2.0 |
TeleDALAD/test2 | plugins/stats.lua | 458 | 4098 | -- 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 |
Cloudef/darkstar | scripts/zones/Horlais_Peak/bcnms/hostile_herbivores.lua | 5 | 1737 | -----------------------------------
-- Area: Horlias peak
-- Name: Hostile Herbivores
-- BCNM50
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Horlais_Peak/TextIDs");
-----------------------------------
-- EXAM... | gpl-3.0 |
david-xiao/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi_add.lua | 50 | 4887 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local nw = require "luci.model.network"
local fw = require "luci.model.firewall"
local uci = require "luci.model.uci".cursor()
local http = require "luci.http"
local iw = lu... | apache-2.0 |
Cloudef/darkstar | scripts/zones/Empyreal_Paradox/npcs/Transcendental.lua | 5 | 1686 | -----------------------------------
-- Area: Empyreal_Paradox
-- NPC: Transcendental
-----------------------------------
package.loaded["scripts/zones/Empyreal_Paradox/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Empyreal_Paradox/TextIDs");
require("... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/regimeinfo.lua | 35 | 13239 | -------------------------------------------------
--
-- Regime Info Database
--
-- Stores details on the number of monsters to kill
-- as well as the suggested level range.
-- n1,n2,n3,n4 = Number of monsters needed
-- sl = Start Level range
-- el = Level range
--
-- Example:
-- n1=6, n2=0, n3=0, n4=0, sl=1, el=6, Regi... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Port_San_dOria/npcs/Bonmaurieut.lua | 5 | 1613 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Bonmaurieut
-- Only sells when San d'Oria controlls Elshimo Uplands
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_San_dOria/TextIDs");... | gpl-3.0 |
zzamboni/hammerspoon | extensions/messages/init.lua | 22 | 1501 | --- === hs.messages ===
---
--- Send messages via iMessage and SMS Relay (note, SMS Relay requires OS X 10.10 and an established SMS Relay pairing between your Mac and an iPhone running iOS8)
---
--- Note: This extension works by controlling the OS X "Messages" app via AppleScript, so you will need that app to be signe... | mit |
taobao-idev/wax | lib/stdlib/helpers/cache.lua | 19 | 1993 | wax.cache = {}
setmetatable(wax.cache, wax.cache)
-- Returns contents of cache keys
-- key: string # value for cache
-- maxAge: number (optional) # max age of file in seconds
function wax.cache.get(key, maxAge)
local path = wax.cache.pathFor(key)
if not wax.filesystem.isFile(path) then return nil end
if ... | mit |
bendeutsch/minetest-sunburn | hud.lua | 1 | 2624 | --[[
HUD definitions for Sunburn
Optionally from one of the supported mods
Any hud needs to define the following functions:
- sunburn.hud_init(player)
Initialize the HUD for a new player.
- sunburn.hud_update(player, value)
Display the new value "value" for the given player. "value" is
a floating point numbe... | lgpl-2.1 |
Cloudef/darkstar | scripts/zones/Northern_San_dOria/npcs/Justi.lua | 5 | 1630 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Justi
-- Conquest depending furniture seller
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Northern_San_dOria/TextIDs");
require("s... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/La_Theine_Plateau/npcs/Laurisse.lua | 5 | 1426 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Laurisse
-- Involved in Mission: The Rescue Drill
-- !pos -292 28 143 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
... | gpl-3.0 |
taobao-idev/wax | lib/stdlib/luaspec/luamock.lua | 19 | 2283 | Mock = { calls = {}, return_values = {} }
-- we store all calls and requested return values indexed
-- by the mock object, we don't want to hold onto references
-- when they should be garbage collected to make the tables
-- be weak
setmetatable(Mock.calls, { __mode="k" })
setmetatable(Mock.return_values, { __mode="k" ... | mit |
Cloudef/darkstar | scripts/globals/spells/bio_iv.lua | 2 | 2426 | -----------------------------------------
-- Spell: Bio IV
-- Deals dark damage that weakens an enemy's attacks and gradually reduces its HP.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
----------------------------... | gpl-3.0 |
rfernand/telegram-bot | plugins/face.lua | 641 | 3073 | local https = require("ssl.https")
local ltn12 = require "ltn12"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function request(imageUrl)
local api_key = mashape.api_key
if api_key:isempt... | gpl-2.0 |
rastin45/botrider12 | plugins/face.lua | 641 | 3073 | local https = require("ssl.https")
local ltn12 = require "ltn12"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function request(imageUrl)
local api_key = mashape.api_key
if api_key:isempt... | gpl-2.0 |
Cloudef/darkstar | scripts/zones/Bastok_Markets/npcs/Reinberta.lua | 5 | 1805 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Reinberta
-- Type: Goldsmithing Guild Master
-- !pos -190.605 -7.814 -59.432 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Market... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/mobskills/trembling.lua | 37 | 1114 | ---------------------------------------------
-- Trembling
--
-- Description: Deals physical damage to enemies within an area of effect. Additional effect: Dispel
-- Type: Physical
-- Wipes Shadows
-- Range: 10' radial
---------------------------------------------
require("scripts/globals/settings");
require("scri... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Windurst_Waters/npcs/Bondada.lua | 5 | 1597 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Bondada
-- Involved in Quests: Hat in Hand
-- !pos -66 -3 -148 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scrip... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/abilities/pets/attachments/auto-repair_kit_ii.lua | 4 | 1133 | -----------------------------------
-- Attachment: Auto-repair Kit II
-----------------------------------
require("scripts/globals/status");
function onEquip(pet)
pet:addMod(MOD_HPP, 13)
end
function onUnequip(pet)
pet:delMod(MOD_HPP, 13)
end
function onManeuverGain(pet,maneuvers)
local bonus = 0
loc... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Kazham/npcs/Dodmos.lua | 5 | 2767 | -----------------------------------
-- Area: Kazham
-- NPC: Dodmos
-- Starts Quest: Trial Size Trial By Fire
-- !pos 102.647 -14.999 -97.664 250
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("s... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/abilities/devotion.lua | 4 | 1557 | -----------------------------------
-- Ability: Devotion
-- Sacrifices HP to grant a party member the same amount in MP.
-- Obtained: White Mage Level 75
-- Recast Time: 0:10:00
-- Duration: Instant
-- Target: Party member, cannot target self.
-----------------------------------
require("scripts/globals/status");
requi... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Ifrits_Cauldron/npcs/Treasure_Coffer.lua | 5 | 4601 | -----------------------------------
-- Area: Ifrit's Cauldron
-- NPC: Treasure Coffer
-- @zone 205
-- !pos 188 0 -28
-----------------------------------
package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyit... | gpl-3.0 |
fgprodigal/RayUI | Interface/AddOns/RayUI_Options/libs/AceGUI-3.0/widgets/AceGUIContainer-InlineGroup.lua | 59 | 2966 | --[[-----------------------------------------------------------------------------
InlineGroup Container
Simple container widget that creates a visible "box" with an optional title.
-------------------------------------------------------------------------------]]
local Type, Version = "InlineGroup", 21
local AceGUI = Li... | mit |
fhirschmann/vohttp | dispatch.lua | 1 | 1180 | ---------------
-- ## Generic dispatcher.
--
-- [Github Page](https://github.com/fhirschmann/vohttp)
--
-- @author Fabian Hirschmann <fabian@hirschmann.email>
-- @copyright 2013
-- @license MIT/X11
vohttp.dispatch = {}
vohttp.dispatch.StaticPage = {}
vohttp.dispatch.StaticFile = {}
--- Creates a dispatcher that serve... | mit |
Cloudef/darkstar | scripts/globals/items/mutton_enchilada.lua | 2 | 1391 | -----------------------------------------
-- ID: 4348
-- Item: mutton_enchilada
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Magic 10
-- Strength 3
-- Vitality 1
-- Intelligence -1
-- Attack % 27
-- Attack Cap 35
-- Ranged ATT % 27
-- Ranged ATT Cap 35
----------------------------------... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/spells/cure_ii.lua | 2 | 5063 | -----------------------------------------
-- Spell: Cure II
-- Restores target's HP.
-- Shamelessly stolen from http://members.shaw.ca/pizza_steve/cure/Cure_Calculator.html
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");... | gpl-3.0 |
MinetestForFun/server-minetestforfun | mods/plantlife_modpack/dryplants/init.lua | 7 | 7706 | -----------------------------------------------------------------------------------------------
local title = "Grasses" -- former "Dry plants"
local version = "0.1.5"
local mname = "dryplants"
-----------------------------------------------------------------------------------------------
-- by Mossmanikin
-- t... | unlicense |
cskksc/awesome-wm-config | lain/widgets/fs.lua | 2 | 3631 |
--[[
Licensed under GNU General Public License v2
* (c) 2013, Luke Bonham
* (c) 2010, Adrian C. <anrxc@sysphere.org>
* (c) 2009, Lucas de Vries <lucas@glacicle.com>
... | mit |
Cloudef/darkstar | scripts/globals/abilities/pets/earthen_fury.lua | 4 | 1117 | ---------------------------------------------------
-- Earthen Fury
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
require("/scripts/globals/magic");
----------------------------------------------... | gpl-3.0 |
ryanjmulder/premake-4.x | tests/actions/make/test_makesettings.lua | 57 | 1055 | --
-- tests/actions/make/test_makesettings.lua
-- Tests makesettings lists in generated makefiles.
-- Copyright (c) 2011 Jason Perkins and the Premake project
--
T.make_settings = { }
local suite = T.make_settings
local make = premake.make
local sln, prj, cfg
function suite.setup()
_ACTION = "gmake"
sln... | bsd-3-clause |
fredericjoanis/buildsystem | extern/premake/base/project.lua | 8 | 17761 | --
-- project.lua
-- Functions for working with the project data.
-- Copyright (c) 2002 Jason Perkins and the Premake project
--
premake.project = { }
--
-- Create a tree from a project's list of files, representing the filesystem hierarchy.
--
-- @param prj
-- The project containing the files to map.
-- @return... | mit |
fgprodigal/RayUI | Interface/AddOns/RayUI/modules/map/minimap.lua | 1 | 14753 | ๏ปฟ----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv("MiniMap")
local MM = R:NewModule("MiniMap", "AceEvent-3.0", "AceHook-3.0")
MM.modName = L["ๅฐๅฐๅพ"]
_MiniMap = MM
local function MiniMapTrackingDropDown_... | mit |
Cloudef/darkstar | scripts/zones/Kazham/npcs/Roropp.lua | 5 | 8598 | -----------------------------------
-- Area: Kazham
-- NPC: Roropp
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Kazham/TextIDs");
require("scripts/globals/pathfind");
local path =
{
16.0319... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/abilities/building_flourish.lua | 2 | 2751 | -----------------------------------
-- Ability: Building Flourish
-- Enhances potency of your next weapon skill. Requires at least one Finishing Move.
-- Obtained: Dancer Level 50
-- Finishing Moves Used: 1-3
-- Recast Time: 00:10
-- Duration: 01:00
--
-- Using one Finishing Move boosts the Accuracy of your next weapon... | gpl-3.0 |
MicroJOo/OpenRA | mods/ra/maps/soviet-01/soviet01.lua | 28 | 2150 | Yaks = { "yak", "yak", "yak" }
Airfields = { Airfield1, Airfield2, Airfield3 }
InsertYaks = function()
local i = 1
Utils.Do(Yaks, function(yakType)
local start = YakEntry.CenterPosition + WVec.New(0, (i - 1) * 1536, Actor.CruiseAltitude(yakType))
local dest = StartJeep.Location + CVec.New(0, 2 * i)
local yak =... | gpl-3.0 |
Cloudef/darkstar | scripts/commands/hasitem.lua | 22 | 1368 | ---------------------------------------------------------------------------------------------------
-- func: hasitem
-- desc: Checks if a player has a specific item
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "is"... | gpl-3.0 |
woshihuo12/UnityHello | UnityHello/LuaEncoder/luajit/jit/vmdef.lua | 56 | 6676 | -- This is a generated file. DO NOT EDIT!
module(...)
bcnames = "ISLT ISGE ISLE ISGT ISEQV ISNEV ISEQS ISNES ISEQN ISNEN ISEQP ISNEP ISTC ISFC IST ISF MOV NOT UNM LEN ADDVN SUBVN MULVN DIVVN MODVN ADDNV SUBNV MULNV DIVNV MODNV ADDVV SUBVV MULVV DIVVV MODVV POW CAT KSTR KCDATAKSHORTKNUM KPRI K... | mit |
MinetestForFun/server-minetestforfun | mods/3d_armor_classes/blackmithril/init.lua | 3 | 1909 | if armor.materials.blackmithril then
-- Register helmets
armor:register_armor(":3d_armor:helmet_blackmithril", {
description = "Black Mithril Helmet (Warrior)",
inventory_image = "3d_armor_inv_helmet_blackmithril.png",
groups = {armor_head = 11, armor_heal = 0, armor_use = 40},
armor_groups = {fleshy = 12},
... | unlicense |
ryanjmulder/premake-4.x | src/actions/vstudio/vs2015.lua | 1 | 1490 | --
-- vs2015.lua
-- Baseline support for Visual Studio 2015.
-- Copyright (c) 2015 Jason Perkins and the Premake project
--
premake.vstudio.vc2015 = {}
local vc2015 = premake.vstudio.vc2015
local vstudio = premake.vstudio
---
-- Register a command-line action for Visual Studio 2015.
---
newaction
{
trigger ... | bsd-3-clause |
just-me-/MerlinsRezHelper | merlinsRezHelper.lua | 1 | 19136 | local LAM2 = LibStub("LibAddonMenu-2.0")
local FAKETAG = 'MERLINS_REZHELPER_FAKE'
local AddonVersion = '2.0.0'
local NextPlayer = ''
local state = {
Hidden = true,
ForceBeam = false,
SetCloseIcon = false,
Angle = 0,
Linear = 0,
AbsoluteLinear = 0,
DX = 0,
DY = 0,
Color = { R = 1, G =... | bsd-2-clause |
Cloudef/darkstar | scripts/globals/items/coconut_rusk.lua | 2 | 1026 | -----------------------------------------
-- ID: 5784
-- Item: coconut_rusk
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- High-quality success rate +3
-- Synthesis failure rate -6%
-----------------------------------------
require("scripts/globals/status");
-----------------------------... | gpl-3.0 |
MinetestForFun/server-minetestforfun | minetestforfun_game/mods/farming/wheat.lua | 11 | 3878 |
local S = farming.intllib
-- wheat seeds
minetest.register_node("farming:seed_wheat", {
description = S("Wheat Seed"),
tiles = {"farming_wheat_seed.png"},
inventory_image = "farming_wheat_seed.png",
wield_image = "farming_wheat_seed.png",
drawtype = "signlike",
groups = {seed = 1, snappy = 3, attached_node = 1}... | unlicense |
Cloudef/darkstar | scripts/globals/mobskills/typhoon.lua | 34 | 1116 | ---------------------------------------------
-- Typhoon
--
-- Description: Spins around dealing damage to targets in an area of effect.
-- Type: Physical
-- Utsusemi/Blink absorb: 2-4 shadows
-- Range: 10' radial
-- Notes:
---------------------------------------------
require("scripts/globals/settings");
require... | gpl-3.0 |
rigeirani/telegram-bot-supergroups | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
Owsap/m2_oxevent | ox_event.lua | 1 | 10516 | --[[
OX Event Quest
Developed by Owsap | https://github.com/Owsap
The MIT License (MIT)
Copyright (c) 2017 Owsap Productions
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software w... | mit |
ryanjmulder/premake-4.x | src/actions/make/make_csharp.lua | 18 | 8352 | --
-- make_csharp.lua
-- Generate a C# project makefile.
-- Copyright (c) 2002-2009 Jason Perkins and the Premake project
--
--
-- Given a .resx resource file, builds the path to corresponding .resource
-- file, matching the behavior and naming of Visual Studio.
--
local function getresourcefilename(cfg, fname)
... | bsd-3-clause |
david-xiao/luci | applications/luci-app-ddns/luasrc/controller/ddns.lua | 29 | 7451 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2013 Manuel Munz <freifunk at somakoma dot de>
-- Copyright 2014 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed to the public under the Apache License 2.0.
module("luci.c... | apache-2.0 |
keidax/awesome | lib/awful/remote.lua | 11 | 1687 | ---------------------------------------------------------------------------
--- Remote control module allowing usage of awesome-client.
--
-- @author Julien Danjou <julien@danjou.info>
-- @copyright 2009 Julien Danjou
-- @release @AWESOME_VERSION@
-- @module awful.remote
------------------------------------------... | gpl-2.0 |
Cloudef/darkstar | scripts/globals/abilities/tabula_rasa.lua | 2 | 1129 | -----------------------------------
-- Ability: Tabula Rasa
-- Optimizes both white and black magic capabilities while allowing charge-free stratagem use.
-- Obtained: Scholar Level 1
-- Recast Time: 1:00:00
-- Duration: 0:03:00
-----------------------------------
require("scripts/globals/settings");
require("scripts/g... | gpl-3.0 |
jsfdez/premake-core | tests/base/test_include.lua | 16 | 1701 | --
-- tests/base/test_include.lua
-- Test the include() function, for including external scripts
-- Copyright (c) 2011-2014 Jason Perkins and the Premake project
--
local suite = test.declare("include")
--
-- Setup and teardown
--
function suite.teardown()
-- clear the list of included files after each run
i... | bsd-3-clause |
Cloudef/darkstar | scripts/zones/Attohwa_Chasm/mobs/Tiamat.lua | 2 | 3007 | -----------------------------------
-- Area: Attohwa Chasm
-- MOB: Tiamat
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
-----------------------------------
function onMobInitialize(mob)
end;
function onMobSpawn(mob)
mob:SetMobSkillAttack(0); -- resettin... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/items/marinara_pizza_+1.lua | 2 | 1230 | -----------------------------------------
-- ID: 5744
-- Item: marinara_pizza +1
-- Food Effect: 4 hours, all Races
-----------------------------------------
-- HP +25
-- Attack +21% (cap 55)
-- Accuracy +11% (cap 58)
-- Undead Killer
-----------------------------------------
require("scripts/globals/status");
--------... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/abilities/gallants_roll.lua | 2 | 2867 | -----------------------------------
-- Ability: Gallant's Roll
-- Reduces physical damage taken by party members within area of effect
-- Optimal Job: Paladin
-- Lucky Number: 3
-- Unlucky Number: 7
-- Level: 55
-- Phantom Roll +1 Value: 2.34
--
-- Die Roll |No PLD |With PLD
-- -------- ------- -----------
-- 1... | gpl-3.0 |
kiarash14/advan | plugins/security.lua | 3 | 12285 | --Begin security.lua
--Begin pre_process function
local function pre_process(msg)
-- Begin 'RondoMsgChecks' text checks by @rondoozle and Edited by @janlou
-- Powered by @AdvanTm
-- CopyRight all right reserved
if is_chat_msg(msg) or is_super_group(msg) then
if msg and not is_momod(msg) and not is_whitelisted(msg.from... | gpl-2.0 |
GymbylCoding/Dusk-Engine | Dusk/dusk_core/misc/functions.lua | 4 | 8915 | --------------------------------------------------------------------------------
--[[
Dusk Engine Component: Functions
Various helper functions for the rest of Dusk to use.
--]]
--------------------------------------------------------------------------------
local lib_functions = {}
---------------------------------... | mit |
LeNitrous/sukufes-icon-builder | lib/loveframes/objects/textinput.lua | 1 | 54113 | --[[------------------------------------------------
-- 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.textinput"))
local lo... | mit |
MinetestForFun/server-minetestforfun | mods/_misc/aliases.lua | 8 | 2292 | local alias = minetest.register_alias
-- Remove duplicated items from the carbone subgame because of Moreores mod
-- Stone
alias("default:stone_with_tin", "default:stone")
alias("default:stone_with_silver", "default:stone")
-- Lump
alias("default:tin_lump", "default:stone")
alias("default:silver_lump", "default:stone")... | unlicense |
fgprodigal/RayUI | Interface/AddOns/RayUI/modules/nameplates/elements/highlight.lua | 1 | 1608 | ----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv("NamePlates")
local mod = _NamePlates
local function HighlightUpdate(self)
if not UnitExists("mouseover") or not self.unit or not UnitIsUnit("mous... | mit |
Cloudef/darkstar | scripts/globals/items/plate_of_barnacle_paella.lua | 2 | 1392 | -----------------------------------------
-- ID: 5974
-- Item: Plate of Barnacle Paella
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- HP 40
-- Vitality 5
-- Mind -1
-- Charisma -1
-- Defense % 25 Cap 150
-- Undead Killer 5
-----------------------------------------
require("scripts/global... | gpl-3.0 |
nevercast/cuberite | MCServer/Plugins/APIDump/Hooks/OnChunkUnloading.lua | 28 | 1082 | return
{
HOOK_CHUNK_UNLOADING =
{
CalledWhen = " A chunk is about to be unloaded from the memory. Plugins may refuse the unload.",
DefaultFnName = "OnChunkUnloading", -- also used as pagename
Desc = [[
Cuberite calls this function when a chunk is about to be unloaded from the memory. A plugin may
force ... | apache-2.0 |
Cloudef/darkstar | scripts/globals/items/terpsichore.lua | 2 | 4254 | -----------------------------------------
-- ID: 18989
-- Item: Terpsichore
-----------------------------------------
require("scripts/globals/msg");
require("scripts/globals/status");
require("scripts/globals/weaponskills");
require("scripts/globals/weaponskillids");
-----------------------------------
local NAME_WEA... | gpl-3.0 |
hfjgjfg/persianguard77 | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
Cloudef/darkstar | scripts/globals/spells/cure_v.lua | 2 | 5271 | -----------------------------------------
-- Spell: Cure V
-- Restores target's HP.
-- Shamelessly stolen from http://members.shaw.ca/pizza_steve/cure/Cure_Calculator.html
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Caedarva_Mire/npcs/Nasheefa.lua | 5 | 1104 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: Nasheefa
-- Type: Alzadaal Undersea Ruins
-- !pos -440.998 0.107 -740.015 79
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
requi... | gpl-3.0 |
zzamboni/hammerspoon | extensions/spotify/init.lua | 3 | 7345 | --- === hs.spotify ===
---
--- Controls for Spotify music player
local spotify = {}
local alert = require "hs.alert"
local as = require "hs.applescript"
local app = require "hs.application"
--- hs.spotify.state_paused
--- Constant
--- Returned by `hs.spotify.getPlaybackState()` to indicates Spotify is paused
spotify... | mit |
ahosein243243/uzzbot | plugins/media.lua | 376 | 1679 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
manohar-narkhede-imgtec/packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/rule.lua | 80 | 4829 | -- ------ extra functions ------ --
function ruleCheck() -- determine if rules needs a proper protocol configured
uci.cursor():foreach("mwan3", "rule",
function (section)
local sourcePort = ut.trim(sys.exec("uci -p /var/state get mwan3." .. section[".name"] .. ".src_port"))
local destPort = ut.trim(sys.exec("... | gpl-2.0 |
Cloudef/darkstar | scripts/globals/items/plate_of_friture_de_la_misareaux.lua | 2 | 1317 | -----------------------------------------
-- ID: 5159
-- Item: plate_of_friture_de_la_misareaux
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Dexterity 3
-- Vitality 3
-- Mind -3
-- Defense 5
-- Ranged ATT % 7
-- Ranged ATT Cap 15
-----------------------------------------
require("scrip... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Empyreal_Paradox/Zone.lua | 5 | 1447 | -----------------------------------
--
-- Zone: Empyreal_Paradox
--
-----------------------------------
package.loaded["scripts/zones/Empyreal_Paradox/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Empyreal_Paradox/TextIDs");
----------------------------... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Windurst_Woods/npcs/Matata.lua | 5 | 1574 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Matata
-- Type: Standard NPC
-- Involved in quest: In a Stew
-- !pos 131 -5 -109 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Windurst_... | gpl-3.0 |
zzamboni/hammerspoon | extensions/speech/init.lua | 11 | 1424 | --- === hs.speech ===
---
--- This module provides access to the Speech Synthesizer component of OS X.
---
--- The speech synthesizer functions and methods provide access to OS X's Text-To-Speech capabilities and facilitates generating speech output both to the currently active audio device and to an AIFF file.
---
---... | mit |
Cloudef/darkstar | scripts/globals/items/pepperoni_pizza_+1.lua | 2 | 1209 | -----------------------------------------
-- ID: 5698
-- Item: pepperoni_pizza_+1
-- Food Effect: 4 hours, all Races
-----------------------------------------
-- HP +35
-- Strength 2
-- Accuracy 9% (caps @ 11)
-- Attack 10% (caps @ 16)
-----------------------------------------
require("scripts/globals/status");
-------... | gpl-3.0 |
DARKRPISSHITFIXTHISUPDATE/DarkRP | gamemode/modules/language/sh_english.lua | 5 | 23549 | /*---------------------------------------------------------------------------
English (example) language file
---------------------------------------------------------------------------
This is the english language file. The things on the left side of the equals sign are the things you should leave alone
The parts bet... | mit |
letoram/durden | durden/suppl.lua | 1 | 45664 | -- Copyright: None claimed, Public Domain
--
-- Description: Cookbook- style functions for the normal tedium
-- (string and table manipulation, mostly plucked from the AWB project)
-- These should either expand the various basic tables (string, math)
-- or namespace prefix with suppl_...
function string.split(instr, d... | bsd-3-clause |
Cloudef/darkstar | scripts/globals/spells/poison.lua | 2 | 1574 | -----------------------------------------
-- Spell: Poison
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
fun... | gpl-3.0 |
romanticjo/minecraft | clientserver.lua | 1 | 3793 |
local protocol
local name
local function parse (str)
local f, args = nil, {}
for token in string.gmatch(str, '[^|]+') do
if not f then f = token else
table.insert(args, token)
end
end
return f, args
end
local clients = {}
local function client_up (sid, name)
-- a new client comes to the network.
redne... | mit |
Cloudef/darkstar | scripts/globals/effects/innin.lua | 30 | 1143 | -----------------------------------
--
--
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect) --power=30 initially, subpower=20 for enmity
target:addMod(MOD_EVA,... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/spells/knights_minne_ii.lua | 2 | 1502 | -----------------------------------------
-- Spell: Knight's Minne II
-- Grants Defense bonus to all allies.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
retur... | gpl-3.0 |
dbartolini/crown | scripts/genie.lua | 3 | 2076 | --
-- Copyright (c) 2012-2021 Daniele Bartolini et al.
-- License: https://github.com/dbartolini/crown/blob/master/LICENSE
--
CROWN_DIR = (path.getabsolute("..") .. "/")
local CROWN_THIRD_DIR = (CROWN_DIR .. "3rdparty/")
local CROWN_BUILD_DIR = (CROWN_DIR .. "build/")
BGFX_DIR = (CROWN_DIR .. "3rdparty/bgfx/")
BIMG_... | mit |
zeustm/zeus | plugins/id.lua | 10 | 4275 | 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..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
local function returnids(cb_extra, success, result)
local re... | gpl-2.0 |
DARKRPISSHITFIXTHISUPDATE/DarkRP | gamemode/modules/fpp/pp/client/hud.lua | 2 | 4647 | FPP = FPP or {}
surface.CreateFont("TabLarge", {
size = 17,
weight = 700,
antialias = true,
shadow = false,
font = "Trebuchet MS"})
local touchTypeNumbers = {
[1] = "Physgun",
[2] = "Gravgun",
[4] = "Toolgun",
[8] = "PlayerUse",
[16] = "EntityDamage"
}
hook.Add("CanTool", "FPP_CL_CanTool", function(ply, tr... | mit |
nyasukun/openstackcraft | world/Plugins/Handy/handy_functions.lua | 6 | 8090 | --[[
General stuff
]]
-- Returns Handy plugin version number
function GetHandyVersion()
return HANDY_VERSION
end
-- Checks if handy is in proper version
function CheckForRequiredVersion( inVersion )
if( inVersion > HANDY_VERSION ) then return false end
return true
end
--[[
MCS-specific _functions and nasty hacks :D... | apache-2.0 |
MinetestForFun/server-minetestforfun | mods/mesecons/mesecons_detector/init.lua | 8 | 8975 | local GET_COMMAND = "GET"
-- Object detector
-- Detects players in a certain radius
-- The radius can be specified in mesecons/settings.lua
-- The following file was modified to detect multiple players
local object_detector_make_formspec = function (pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec... | unlicense |
Cloudef/darkstar | scripts/zones/Empyreal_Paradox/mobs/Promathia.lua | 2 | 2177 | -----------------------------------
-- Area: Empyreal Paradox
-- MOB: Promathia
-----------------------------------
package.loaded["scripts/zones/Empyreal_Paradox/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Empyreal_Paradox/TextIDs");
require("scripts/globals/status");
require("scripts/... | gpl-3.0 |
nevercast/cuberite | MCServer/Plugins/APIDump/Hooks/OnWeatherChanging.lua | 42 | 1369 | return
{
HOOK_WEATHER_CHANGING =
{
CalledWhen = "The weather is about to change",
DefaultFnName = "OnWeatherChanging", -- also used as pagename
Desc = [[
This hook is called when the current weather has expired and a new weather is selected. Plugins may
override the new weather being set.</p>
<p>
T... | apache-2.0 |
woshihuo12/UnityHello | UnityHello/Assets/ToLua/Lua/UnityEngine/Quaternion.lua | 2 | 14432 | --------------------------------------------------------------------------------
-- Copyright (c) 2015 , ่ๅ ๅฟ(topameng) topameng@gmail.com
-- All rights reserved.
-- Use, modification and distribution are subject to the "MIT License"
------------------------------------------------------------------------... | mit |
Cloudef/darkstar | scripts/zones/Windurst_Waters/npcs/Otete.lua | 5 | 1143 | -----------------------------------
-- Area: Windurst_Waters
-- NPC: Otete
-- Only sells when Windurst controlls Li'Telor Region
-- Confirmed shop stock, August 2013
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/z... | gpl-3.0 |
MinetestForFun/server-minetestforfun | mods/mesecons/mesecons_alias/init.lua | 22 | 3047 | -- This file registers aliases for the /give /giveme commands.
minetest.register_alias("mesecons:removestone", "mesecons_random:removestone")
minetest.register_alias("mesecons:power_plant", "mesecons_powerplant:power_plant")
minetest.register_alias("mesecons:powerplant", "mesecons_powerplant:power_plant")
minetest.reg... | unlicense |
padrinoo1/telefick | plugins/Boobs.lua | 150 | 1613 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
amir1213/amir | plugins/Boobs.lua | 150 | 1613 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.