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 |
|---|---|---|---|---|---|
shangwudong/MyNodeMcu | lua_examples/webap_toggle_pin.lua | 70 | 1202 | wifi.setmode(wifi.SOFTAP);
wifi.ap.config({ssid="test",pwd="12345678"});
gpio.mode(1, gpio.OUTPUT)
srv=net.createServer(net.TCP)
srv:listen(80,function(conn)
conn:on("receive", function(client,request)
local buf = "";
local _, _, method, path, vars = string.find(request, "([A-Z]+) (.+)?(.+) HTTP")... | mit |
Kthulupwns/master | scripts/zones/Misareaux_Coast/npcs/_0p4.lua | 8 | 1651 | -----------------------------------
-- Area: Misareaux Coast
-- NPC: Storage Compartment
-- COP spawn Boggelmann.
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zon... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Davoi/npcs/Sedal-Godjal.lua | 1 | 3212 | -----------------------------------
-- Area: Davoi
-- NPC: Sedal-Godjal
-- Mini Quest used in : Whence Blows the Wind
-- @pos 185 -2 -116 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scrip... | gpl-3.0 |
pablojmartinez/theatreofpain | nutscript/gamemode/core/meta/sh_character.lua | 1 | 6668 | -- Create the character metatable.
local CHAR = nut.meta.character or {}
CHAR.__index = CHAR
CHAR.id = CHAR.id or 0
CHAR.vars = CHAR.vars or {}
-- Called when the character is being printed as a string.
function CHAR:__tostring()
return "character["..(self.id or 0).."]"
end
-- Checks if two character objects represe... | mit |
Kthulupwns/master | scripts/zones/Quicksand_Caves/npcs/_5s5.lua | 19 | 1274 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Ornate Door
-- Door blocked by Weight system
-- @pos -779 0 -454 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Cav... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Apollyon/bcnms/NW_Apollyon.lua | 13 | 1064 | -----------------------------------
-- Area: Appolyon
-- Name:
-----------------------------------
require("scripts/globals/limbus");
require("scripts/globals/keyitems");
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[NW_Apollyon]UniqueID",Genera... | gpl-3.0 |
DeltaF1/Lua-MUD | setup.lua | 1 | 1323 | defaults = require "default_config"
fancy = {
sql_driver = "Database driver [mysql, sqlite3]",
sql_db = "Database name",
sql_user = "Database admin username",
sql_host = "Database server host",
sql_port = "Database server port",
sql_pass = "Database admin password",
}
function config(table, legend)
for k,v ... | mit |
Sydsvenskan/opportunistic-device-detection | nginx/lua/memcached.lua | 1 | 14904 | -- 2 clause BSD licensed source from:
-- https://github.com/openresty/lua-resty-memcached
--
-- Copyright (C) 2012-2013 Yichun Zhang (agentzh), CloudFlare Inc.
local sub = string.sub
local escape_uri = ngx.escape_uri
local unescape_uri = ngx.unescape_uri
local match = string.match
local tcp = ngx.socket.tcp
local str... | bsd-2-clause |
Kthulupwns/master | scripts/globals/items/strip_of_sheep_jerky.lua | 35 | 1394 | -----------------------------------------
-- ID: 4518
-- Item: strip_of_sheep_jerky
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Strength 3
-- Intelligence -1
-- Attack % 22
-- Attack Cap 35
-----------------------------------------
require("scripts/globals/status");
----... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Port_Windurst/npcs/Hakkuru-Rinkuru.lua | 10 | 7021 | -----------------------------------
-- Area: Port Windurst
-- NPC: Hakkuru-Rinkuru
-- Involved In Quest: Making Amends
-- Starts and Ends Quest: Wonder Wands
-- @pos -111 -4 101 240
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
package.loaded["scripts/globals/... | gpl-3.0 |
ItalyToast/wcg | entities/entities/base_entity/init.lua | 2 | 2085 |
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include( "shared.lua" )
include( "outputs.lua" )
--[[---------------------------------------------------------
Name: Initialize
Desc: First function called. Use to set up your entity
-----------------------------------------------------------]]
function EN... | mit |
orivej/sysdig | userspace/sysdig/chisels/topcontainers_file.lua | 18 | 1202 | --[[
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 |
maxammann/mpv | player/lua/ytdl_hook.lua | 8 | 9761 | local utils = require 'mp.utils'
local msg = require 'mp.msg'
local ytdl = {
path = "youtube-dl",
minver = "2015.02.23.1",
vercheck = nil,
}
local function exec(args)
local ret = utils.subprocess({args = args})
return ret.status, ret.stdout, ret
end
-- return if it was explicitly set on the comma... | gpl-2.0 |
Kthulupwns/master | scripts/zones/Bastok_Markets_[S]/npcs/Porter_Moogle.lua | 41 | 1547 | -----------------------------------
-- Area: Bastok Markets [S]
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- @zone 87
-- @pos TODO
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Mark... | gpl-3.0 |
MinoaveDev/EccoDev | scripts/npcs/fighter.lua | 1 | 21426 | --[[
Copyright (C) 2008-2011 Vana Development Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2
of the License.
This program is distributed in the hope that it will be useful,
but WITHO... | gpl-2.0 |
Kthulupwns/master | scripts/zones/Southern_San_dOria/npcs/Ostalie.lua | 36 | 2286 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Ostalie
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/sho... | gpl-3.0 |
labelette91/domoticz-git | scripts/lua_parsers/example_owm.lua | 37 | 1285 | -- Example of XML parser handling data with the following structure
-- Data are coming from the OpenWeatherMap API : See http://www.openweathermap.org/current
-- <current>
-- <city id="12345" name="Paris">
-- <coord lon="2.35" lat="48.85"/>
-- <country>FR</country>
-- <sun rise="2016-04-22T04:45:07" set="2016-... | gpl-3.0 |
m2fan/xx | plugins/Moderator_Gp.lua | 37 | 37415 | do
local function check_member(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostring(msg.to.id)] = {
... | gpl-2.0 |
kbeckmann/nodemcu-firmware | lua_examples/ucglib/GT_triangle.lua | 30 | 1112 | local M, module = {}, ...
_G[module] = M
function M.run()
-- make this a volatile module:
package.loaded[module] = nil
print("Running component triangle...")
local m
disp:setColor(0, 0, 80, 20)
disp:setColor(1, 60, 80, 20)
disp:setColor(2, 60, 120, 0)
disp:setColor(3, 0, 140, 30) ... | mit |
PhilmacFLy/naev | dat/missions/empire/shipping/es01.lua | 5 | 6672 | --[[
Empire Shipping Dangerous Cargo Delivery
Author: bobbens
minor edits by Infiltrator
]]--
include "dat/scripts/numstring.lua"
lang = naev.lang()
if lang == "es" then
-- not translated atm
else -- default english
-- Mission details
bar_desc = "You see Commander Soldner who is expecting you.... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Hall_of_Transference/npcs/_0e8.lua | 43 | 1691 | -----------------------------------
-- Area: Hall of Transference
-- NPC: Large Apparatus (Right) - Mea
-- @pos 290.253 -81.849 -42.381 14
-----------------------------------
package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Hall_of_Transfer... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Windurst_Woods/npcs/Orlaine.lua | 28 | 2049 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Orlaine
-- Chocobo Vendor
-----------------------------------
require("scripts/globals/chocobo");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/globals/status");
--------------------------------... | gpl-3.0 |
PhilmacFLy/naev | dat/events/pirate_fame.lua | 9 | 1963 |
--[[
-- Pirate Fame/Faction Standing script
When the player enters a system, his fame has a chance of being lowered.
If he is using a pirate ship, the chances of his fame being lowered are
reduced. If the player is using an impressive non-pirate ship, like the
cruiser or carrier of a major faction, will lower a ... | gpl-3.0 |
Mojtaba-mp/telemp | plugins/isup.lua | 741 | 3095 | do
local socket = require("socket")
local cronned = load_from_file('data/isup.lua')
local function save_cron(msg, url, delete)
local origin = get_receiver(msg)
if not cronned[origin] then
cronned[origin] = {}
end
if not delete then
table.insert(cronned[origin], url)
else
for k,v in pairs(cronned[... | gpl-2.0 |
Kthulupwns/master | scripts/globals/spells/bluemagic/head_butt.lua | 5 | 1917 | -----------------------------------------
-- Spell: Head Butt
-- Damage varies with TP. Additional effect: "Stun"
-- Spell cost: 12 MP
-- Monster Type: Beastmen
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 3
-- Stat Bonus: DEX+2
-- Level: 12
-- Casting Time: 0.5 seconds
-- Recast Time: 10 seconds
--... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Windurst_Waters/npcs/Hilkomu-Makimu.lua | 36 | 1972 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Hilkomu-Makimu
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("scripts/zones/Windurst... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Upper_Jeuno/npcs/Mairee.lua | 28 | 1800 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Mairee
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/chocobo");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Gusgen_Mines/npcs/Clay.lua | 34 | 1250 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: Clay
-- Involved in Quest: A Potter's Preference
-- @pos 117 -21 432 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
re... | gpl-3.0 |
apaikan/myCub | main/tools/myCubGui/samples/image/image.wx.lua | 1 | 41226 | --[[
///////////////////////////////////////////////////////////////////////////////
// Name: samples/image/image.cpp
// Purpose: sample showing operations with wxImage
// Author: Robert Roebling
// Modified by:
// Created: 1998
// RCS-ID: $Id: image.wx.lua,v 1.4 2011/11/15 04:59:13 jrl1 Exp $
... | lgpl-3.0 |
probberechts/dotfiles | keyboard/hammerspoon/delete-words.lua | 4 | 2557 | local log = hs.logger.new('delete-words.lua', 'debug')
local isInTerminal = function()
app = hs.application.frontmostApplication():name()
return app == 'iTerm2' or app == 'Terminal'
end
-- Use option + h to delete previous word
hs.hotkey.bind({'alt'}, 'h', function()
if isInTerminal() then
keyUpDown({'ctrl'... | mit |
Kthulupwns/master | scripts/globals/mobskills/Tourbillion.lua | 12 | 1219 | ---------------------------------------------
-- Tourbillion
--
-- Description: Delivers an area attack. Additional effect duration varies with TP. Additional effect: Weakens defense.
-- Type: Physical
-- Shadow per hit
-- Range: Unknown range
---------------------------------------------
require("scripts/globals/... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Buburimu_Peninsula/npcs/Ganemu-Punnemu_WW.lua | 30 | 3069 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Ganemu-Punnemu, W.W.
-- Outpost Conquest Guards
-- @pos -481.164 -32.858 49.188 118
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
hmis-interop/logical-model | src/class-diagram-files/Plugins/OWLGrEd_UserFields/stylePalette.lua | 1 | 14640 | module(..., package.seeall)
require("lua_tda")
require "lpeg"
require "core"
-- require "progress_reporter"
require "dialog_utilities"
local owl_fields_specific = require "OWLGrEd_UserFields.owl_fields_specific"
local profileMechanism = require "OWLGrEd_UserFields.profileMechanism"
local styleMechanism = re... | cc0-1.0 |
Kthulupwns/master | scripts/zones/Port_San_dOria/npcs/Fiva.lua | 36 | 1834 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Fiva
-- Only sells when San d'Oria controls Kolshushu
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/g... | gpl-3.0 |
Kthulupwns/master | scripts/globals/items/serving_of_bass_meuniere_+1.lua | 35 | 1562 | -----------------------------------------
-- ID: 4346
-- Item: serving_of_bass_meuniere_+1
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Health % 3
-- Dexterity 3
-- Agility 3
-- Mind -3
-- Ranged ACC % 6
-- Ranged ACC Cap 20
-----------------------------------------
requi... | gpl-3.0 |
RockySeven3161/PerfectBot | plugins/banhammer.lua | 12 | 11340 |
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 |
jhysek/Minimal-Corona-SDK-Template | app/views/date_input.lua | 1 | 2861 | --------------------------------------------------------------------------------
local widget = require "widget"
local class = require "lib.middleclass"
widget.setTheme("widget_theme_ios7")
require "lib.datePickerWheel"
local GenericInput = require "app.views.generic_input"
local Button = require "app.views.bu... | mit |
Kthulupwns/master | scripts/zones/King_Ranperres_Tomb/npcs/_5a0.lua | 8 | 2391 | -----------------------------------
-- Area: King Ranperre's Tomb
-- DOOR: _5a0 (Heavy Stone Door)
-- @pos -39.000 4.823 20.000 190
-----------------------------------
package.loaded["scripts/zones/King_Ranperres_Tomb/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
re... | gpl-3.0 |
hacker44-h44/sasan | plugins/torrent_search.lua | 411 | 1622 | --[[ NOT USED DUE TO SSL ERROR
-- See https://getstrike.net/api/
local function strike_search(query)
local strike_base = 'http://getstrike.net/api/v2/torrents/'
local url = strike_base..'search/?phrase='..URL.escape(query)
print(url)
local b,c = http.request(url)
print(b,c)
local search = json:decode(b)
v... | gpl-2.0 |
pablojmartinez/theatreofpain | nutscript/plugins/logging.lua | 3 | 2203 | PLUGIN.name = "Logging"
PLUGIN.author = "Black Tea"
PLUGIN.desc = "You can modfiy the logging text/lists on this plugin."
if (SERVER) then
local L = Format
function PLUGIN:CharacterLoaded(id)
local character = nut.char.loaded[id]
local client = character:getPlayer()
nut.log.add(client:steamName().." ("..cli... | mit |
Kthulupwns/master | scripts/zones/Port_Windurst/npcs/Explorer_Moogle.lua | 12 | 1655 | -----------------------------------
-- Area: Port Windurst
-- NPC: Explorer Moogle
-- Working 100%
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/teleports");
-----------------------------------
-- onTrade Action
-----------------------------------
fun... | gpl-3.0 |
Kthulupwns/master | scripts/globals/weaponskills/tornado_kick.lua | 30 | 2115 | -------------------------------
-- Auth : Thief
-- Skill: Tornado Kick
-- Class: H2H Weapon Skill
-- Level: 225
-- Mods : STR:37.5% VIT:30%
-- 100%TP 200%TP 300%TP
-- 2.0x 2.75x 3.5x
-- Delivers a twofold attack. Damage varies with TP.
-----------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Jugner_Forest/Zone.lua | 27 | 4245 | -----------------------------------
--
-- Zone: Jugner_Forest (104)
--
-----------------------------------
package.loaded[ "scripts/zones/Jugner_Forest/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require("scripts/zones/Jugner_Forest/TextIDs");
... | gpl-3.0 |
Kthulupwns/master | scripts/globals/effects/battlefield.lua | 25 | 1182 | -----------------------------------
--
-- EFFECT_BATTLEFIELD
--
-----------------------------------
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
if (target:getPet()) then
target:getPet():addStatusEffect(eff... | gpl-3.0 |
Kthulupwns/master | scripts/globals/weaponskills/primal_rend.lua | 12 | 4514 | -----------------------------------
-- Primal Rend
-- Axe weapon skill
-- Skill Level: N/A
-- Deals light elemental damage. Damage varies with TP. Aymur: Aftermath effect varies with TP.
-- Available only after completing the Unlocking a Myth (Beastmaster) quest.
-- Aligned with the Shadow Gorget, Soil Gorget & A... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Temenos/npcs/Scanning_Device.lua | 18 | 1709 | -----------------------------------
-- Area: Temenos
-- NPC: Scanning_Device
-- @pos
-----------------------------------
require("scripts/globals/limbus");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Outer_Horutoto_Ruins/npcs/_5eh.lua | 19 | 3309 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Ancient Magical Gizmo #4 (H out of E, F, G, H, I, J)
-- Involved In Mission: The Heart of the Matter
-----------------------------------
package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Port_Windurst/npcs/Martin.lua | 12 | 1226 | -----------------------------------
-- Area: Port Windurst
-- NPC: Martin
-- Type: Standard NPC
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/zones/Port_Windurst/TextIDs");
-----------------------------------
-- onTrade Action
------------------... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Misareaux_Coast/npcs/Spatial_Displacement.lua | 19 | 1721 | -----------------------------------
-- Area: Misareaux Coast
-- NPC: Spacial Displacement
-- Entrance to Riverne Site #A01 and #B01
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("sc... | gpl-3.0 |
aayushKumarJarvis/Algorithm-Implementations | Partial_Selection_Sort/Lua/Yonaba/partial_selection_sort_test.lua | 26 | 1029 | -- Tests for partial_selection_sort.lua
local PSS = require 'partial_selection_sort'
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 p... | mit |
pablojmartinez/theatreofpain | nutscript/gamemode/core/meta/sh_inventory.lua | 1 | 9753 | local META = nut.meta.inventory or {}
META.__index = META
META.slots = META.slots or {}
META.w = META.w or 4
META.h = META.h or 4
function META:getID()
return self.id or 0
end
function META:setSize(w, h)
self.w = w
self.h = h
end
function META:__tostring()
return "inventory["..(self.id or 0).."]"
end
function M... | mit |
shadog/shado.alasmr | data/config.lua | 1 | 1233 | do local _ = {
about_text = "ss",
enabled_plugins = {
"admin",
"onservice",
"inrealm",
"ingroup",
"inpm",
"banhammer",
"stats",
"anti_spam",
"owners",
"arabic_lock",
"set",
"get",
"broadcast",
"invite",
"all",
"leave_ban",
"supergroup",
"whitel... | gpl-2.0 |
Kthulupwns/master | scripts/zones/Caedarva_Mire/npcs/qm4.lua | 8 | 1170 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: ??? (Spawn Tyger(ZNM T4))
-- @pos -766 -12 632 79
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Caedarva_Mire/TextIDs");
-------------------... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Port_Jeuno/npcs/Purequane.lua | 20 | 1358 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Purequane
-- @zone 246
-- @pos -76 8 54
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Mount_Zhayolm/Zone.lua | 29 | 1631 | -----------------------------------
--
-- Zone: Mount_Zhayolm (61)
--
-----------------------------------
package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Mount_Zhayolm/TextIDs");
-------------------... | gpl-3.0 |
pas-jim/crtmpserver-spoon | configs/stresstest.lua | 15 | 1873 | -- Start of the configuration. This is the only node in the config file.
-- The rest of them are sub-nodes
configuration=
{
-- if true, the server will run as a daemon.
-- NOTE: all console appenders will be ignored if this is a daemon
daemon=false,
-- the OS's path separator. Used in composing paths
pathSeparato... | gpl-3.0 |
labelette91/domoticz-git | dzVents/runtime/integration-tests/File.lua | 25 | 1778 | --
-- # file
--
-- Basic file functions for Lua.
--
-- **License:** MIT
-- **Source:** [GitHub](https://github.com/gummesson/file.lua)
--
-- ## References
local io, os, error = io, os, error
-- ## file
--
-- The namespace.
--
local file = {}
-- ### file.exists
--
-- Determine if the file in the `path` exists.
--
-... | gpl-3.0 |
Lordlotter/lord | bot/seedbot.lua | 180 | 10314 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '2'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
return... | gpl-2.0 |
dani-sj/mahan01 | plugins/pokedex.lua | 626 | 1668 | do
local images_enabled = true;
local function get_sprite(path)
local url = "http://pokeapi.co/"..path
print(url)
local b,c = http.request(url)
local data = json:decode(b)
local image = data.image
return image
end
local function callback(extra)
send_msg(extra.receiver, extra.text, ok_cb, false)
end
lo... | gpl-2.0 |
fhanik/snabbswitch | src/lib/protocol/ethernet.lua | 7 | 2888 | module(..., package.seeall)
local ffi = require("ffi")
local C = ffi.C
local header = require("lib.protocol.header")
local ipv6 = require("lib.protocol.ipv6")
local band = require("bit").band
local ether_header_t = ffi.typeof[[
struct {
uint8_t ether_dhost[6];
uint8_t ether_shost[6];
uint16_t ether_type;
} ... | apache-2.0 |
Kthulupwns/master | scripts/zones/Sea_Serpent_Grotto/mobs/Devil_Manta.lua | 23 | 1149 | -----------------------------------
-- Area: Sea Serpent Grotto
-- MOB: Devil Manta
-- Note: Place holder Charybdis
-----------------------------------
require("scripts/zones/Sea_Serpent_Grotto/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
function onMob... | gpl-3.0 |
Kthulupwns/master | scripts/globals/weaponskills/mistral_axe.lua | 30 | 1569 | -----------------------------------
-- Mistral Axe
-- Axe weapon skill
-- Skill level: 225 (Beastmasters and Warriors only.)
-- Delivers a single-hit ranged attack at a maximum distance of 15.7'. Damage varies with TP.
-- Despite being able to be used from a distance it is considered a melee attack and can be stac... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Cloister_of_Frost/bcnms/sugar-coated_directive.lua | 13 | 1722 | ----------------------------------------
-- Area: Cloister of Frost
-- BCNM: Sugar Coated Directive (ASA-4)
-- @pos -721 0 -598 207
----------------------------------------
package.loaded["scripts/zones/Cloister_of_Frost/TextIDs"] = nil;
----------------------------------------
require("scripts/globals/keyitems");
req... | gpl-3.0 |
hashbangstudio/Lua-standalone-Minecraft-Examples | 04-getHeight.lua | 1 | 1301 | #!/usr/bin/env lua
require 'mcpi/minecraft'
-- First thing you do is create a connection to minecraft
-- This is like dialling a phone.
-- It sets up a communication line between your script and the minecraft world
-- Create a connection to Minecraft
-- Any communication with the world must use this object
... | bsd-3-clause |
xiangyu123/nginx-rtmp-xes | LuaJIT-2.0.3/dynasm/dasm_mips.lua | 62 | 28080 | ------------------------------------------------------------------------------
-- DynASM MIPS module.
--
-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _i... | apache-2.0 |
Pedals2Paddles/ardupilot | libraries/AP_Scripting/examples/Mission_test.lua | 4 | 1690 | -- This script is a test for AP_Mission bindings
local last_mission_index = mission:get_current_nav_index()
function update() -- this is the loop which periodically runs
local mission_state = mission:state()
-- make sure the mission is running
if mission_state == mission.MISSION_COMPLETE then
gcs:send_tex... | gpl-3.0 |
Kthulupwns/master | scripts/globals/items/silken_siesta.lua | 36 | 1211 | -----------------------------------------
-- ID: 5626
-- Item: Silken Siesta
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP Recoverd while healing 2
-- MP Recovered while healing 5
-----------------------------------------
require("scripts/globals/status");
----... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Gusgen_Mines/TextIDs.lua | 5 | 1706 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6382; -- Obtained: <item>.
GIL_OBTAINED = 6383; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6385; -- Obtained... | gpl-3.0 |
pablojmartinez/theatreofpain | nutscript/gamemode/core/derma/cl_tooltip.lua | 3 | 2317 | local tooltip_delay = CreateClientConVar( "tooltip_delay", "0.5", true, false )
local PANEL = {}
function PANEL:Init()
self:SetDrawOnTop( true )
self.DeleteContentsOnClose = false
self:SetText( "" )
self:SetFont( "nutToolTipText" )
end
function PANEL:UpdateColours(skin)
return self:SetTextStyleColor(color_blac... | mit |
ashhher3/koreader | spec/unit/readerdictionary_spec.lua | 5 | 1136 | require("commonrequire")
local DocumentRegistry = require("document/documentregistry")
local ReaderUI = require("apps/reader/readerui")
local lfs = require("libs/libkoreader-lfs")
local UIManager = require("ui/uimanager")
local Screen = require("device").screen
local Event = require("ui/event")
local DEBUG = require("d... | agpl-3.0 |
Kthulupwns/master | scripts/globals/abilities/rapture.lua | 28 | 1120 | -----------------------------------
-- Ability: Rapture
-- Enhances the potency of your next white magic spell.
-- Obtained: Scholar Level 55
-- Recast Time: Stratagem Charge
-- Duration: 1 white magic spell or 60 seconds, whichever occurs first
--
-- Level |Charges |Recharge Time per Charge
-- ----- ------... | gpl-3.0 |
rm-code/love-IDEA-plugin | love_111/love.lua | 2 | 1066 | module('love')
function conf() end
function directorydropped() end
function draw() end
function errorhandler() end
function filedropped() end
function focus() end
function gamepadaxis() end
function gamepadpressed() end
function gamepadreleased() end
function joystickadded() end
function joystickaxis() end
... | unlicense |
Daedeross/Subterra | src/scripts/events/updates/check_telepads.lua | 1 | 1872 | require("__subterra__.scripts.utils")
--============================================================================--
-- check_telepads(event)
--
-- checks every n-th tick (default 5) to see if a player stepped on a
-- telepad. If so, teleports them to a new layer.
--
-- param event (NthTickEvent): { tick, nth_ti... | mit |
FelixZhang00/ejoy2d | examples/ex08.lua | 20 | 1363 | -- This example show how user defined shader works
local ej = require "ejoy2d"
local fw = require "ejoy2d.framework"
local pack = require "ejoy2d.simplepackage"
pack.load {
pattern = fw.WorkDir..[[examples/asset/?]],
"sample",
}
-- define a shader
local s = ej.define_shader {
name = "EXAMPLE",
fs = [[
varying v... | mit |
Kthulupwns/master | scripts/globals/spells/bluemagic/venom_shell.lua | 4 | 1410 | -----------------------------------------
-- Spell: Venom Shell
-- Poisons enemies within range and gradually reduces their HP
-- Spell cost: 86 MP
-- Monster Type: Aquans
-- Spell Type: Magical (Water)
-- Blue Magic Points: 3
-- Stat Bonus: MND+2
-- Level: 42
-- Casting Time: 3 seconds
-- Recast Time: 45 sec... | gpl-3.0 |
davymai/CN-QulightUI | Interface/Aurora/AddOns/Blizzard_ItemSocketingUI.lua | 1 | 1924 |
local F, C = unpack(select(2, ...))
C.modules["Blizzard_ItemSocketingUI"] = function()
ItemSocketingFrame:DisableDrawLayer("ARTWORK")
ItemSocketingScrollFrameTop:SetAlpha(0)
ItemSocketingScrollFrameMiddle:SetAlpha(0)
ItemSocketingScrollFrameBottom:SetAlpha(0)
ItemSocketingSocket1Left:SetAlpha(0)
ItemSocketingSo... | gpl-2.0 |
n0xus/darkstar | scripts/zones/LaLoff_Amphitheater/mobs/Ark_Angel_TT.lua | 27 | 1741 | -----------------------------------
-- Area: LaLoff Amphitheater
-- NPC: Ark Angel TT
-----------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
function onMobInitialize(mob)
mob:addMod(MOD_UFASTCAST, 30);
mob:setMobMod(MOBMOD_MAIN_2HOUR, 1);
mob:setMobMod(MOBMOD_... | gpl-3.0 |
chengyi818/openwrt | customer/packages/luci/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/olsrd.lua | 85 | 3643 | --[[
Luci statistics - olsrd plugin diagram definition
Copyright 2011 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/licen... | gpl-2.0 |
n0xus/darkstar | scripts/globals/items/yellow_curry_bun_+1.lua | 35 | 2002 | -----------------------------------------
-- ID: 5763
-- Item: yellow_curry_bun_+1
-- Food Effect: 30minutes, All Races
-----------------------------------------
-- Health Points 30
-- Strength 5
-- Agility 2
-- Vitality 2
-- Intelligence -2
-- Attack 23% (caps @ 80)
-- Ranged Attack 23% (caps @ 80)
-- Resi... | gpl-3.0 |
xennygrimmato/nmt | src/OpenNMT/tools/utils/BPE.lua | 1 | 5848 | local unicode = require 'tools.utils.unicode'
local separators = require('tools.utils.separators')
local BPE = torch.class('BPE')
function BPE:__init(opt)
self.split = string.split
-- to be able to run the code without torch
if not self.split then
self.split = function(t, sep)
local fields = {}
... | lgpl-3.0 |
n0xus/darkstar | scripts/globals/summon.lua | 15 | 11419 |
require("scripts/globals/common");
require("scripts/globals/status");
SUMMONING_MAGIC_SKILL = 38
MSG_NONE = 0; -- display nothing
MSG_NO_EFFECT = 189;
MSG_DAMAGE = 185; -- player uses, target takes 10 damage. DEFAULT
MSG_MISS = 188;
MSG_RESIST = 85;
function AvatarPhysicalMove(avatar,target,skill,number... | gpl-3.0 |
misterdustinface/gamelib-common-polyglot | src/param-adjuster/build-data-structures.lua | 1 | 2207 | local datastore = require 'datastore'
local recursiveBuild
recursiveBuild = function(parent_param_branch_to_hash, parent_node_counter, depth, params, callbacks, parent_type)
parent_param_branch_to_hash.depth = depth
local paramcount = 0
for param_name, param in pairs(params) do
if type(param) == 'table' the... | gpl-2.0 |
alirezanile/Ldcxvx | 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 |
cornernote/minetest-craft_guide | craft_guide/register_node.lua | 2 | 5135 | --[[
Craft Guide for Minetest
Copyright (c) 2012 cornernote, Brett O'Donnell <cornernote@gmail.com>
Source Code: https://github.com/cornernote/minetest-craft_guide
License: BSD-3-Clause https://raw.github.com/cornernote/minetest-craft_guide/master/LICENSE
REGISTER NODES
]]--
-- craft sign
minetest.register_node("... | bsd-3-clause |
misterdustinface/gamelib-common-polyglot | src/blobmartin/lovedraw.lua | 1 | 8628 | local pubsub = require 'pubsub'
local defaultbackground = {255,255,255}
local defaultforeground = {0,255,0}
local styles = {
['flow right'] = function(completion)
local x, y, w, h = completion.x, completion.y, completion.w, completion.h
local pct = math.min(1, completion.pct)
local background = completion... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-Karazhan/ShadeOfAran.lua | 1 | 4464 | local mod = DBM:NewMod("Aran", "DBM-Karazhan")
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 553 $"):sub(12, -3))
mod:SetCreatureID(16524)
mod:SetModelID(16621)
mod:RegisterCombat("combat")
mod:SetUsedIcons(1, 2, 3, 4, 5, 6, 7, 8)
mod:RegisterEventsInCombat(
"SPELL_CAST_START",
"SPELL_AURA_APPLI... | gpl-2.0 |
ozhanf/ozhanf--bot | plugins/lyrics.lua | 695 | 2113 | do
local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs'
local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5'
local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect'
local function getInfo(query)
print('Getting info of ' .. query)
local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY
... | gpl-2.0 |
alirezanile/Ldcxvx | plugins/lyrics.lua | 695 | 2113 | do
local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs'
local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5'
local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect'
local function getInfo(query)
print('Getting info of ' .. query)
local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY
... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Port_Bastok/npcs/Ominous_Cloud.lua | 19 | 5284 | -----------------------------------
-- Area: Port Bastok
-- NPC: Ominous Cloud
-- Type: Traveling Merchant NPC
-- @zone: 236
-- @pos 146.962 7.499 -63.316
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
--... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-Party-WotLK/HallsOfStone/MaidenOfGrief.lua | 1 | 1255 | local mod = DBM:NewMod(605, "DBM-Party-WotLK", 7, 277)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 112 $"):sub(12, -3))
mod:SetCreatureID(27975)
mod:SetEncounterID(565, 566)
mod:SetZone()
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_SUCCESS",
"SPELL_AURA_APPLIED"
)
lo... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Kazham/npcs/Mitti_Haplihza.lua | 15 | 1101 | -----------------------------------
-- Area: Kazham
-- NPC: Mitti Haplihza
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
--------------------------... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Lebros_Cavern/npcs/rune_of_release.lua | 37 | 1408 | -----------------------------------
-- Area: Lebros Cavern
-----------------------------------
require("scripts/zones/Lebros_Cavern/IDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigge... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-Party-WotLK/TheNexus/OrmorokTheTreeShaper.lua | 1 | 1335 | local mod = DBM:NewMod(620, "DBM-Party-WotLK", 8, 281)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 182 $"):sub(12, -3))
mod:SetCreatureID(26794)
mod:SetEncounterID(524, 525)
mod:SetZone()
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_SUCCESS",
"SPELL_AURA_APPLIED",
"SP... | gpl-2.0 |
bitsed/qosmic | scripts/functions.lua | 1 | 2078 | function dump_xform(xf)
print(xf)
print('index=',xf:index())
print('pos=',xf:pos())
print('color=',xf:color())
print('density=',xf:density())
print('color_speed=',xf:color_speed())
print('opacity=',xf:opacity())
print('a=',xf:a())
print('b=',xf:b())
print('c=',xf:c())
for _, v in ipairs(VARIATIONS) do
val,... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-Firelands/localization.es.lua | 1 | 6254 | if GetLocale() ~= "esES" and GetLocale() ~= "esMX" then return end
local L
-----------------
-- Beth'tilac --
-----------------
L= DBM:GetModLocalization(192)
L:SetOptionLocalization({
RangeFrame = "Mostrar distancia (10)"
})
L:SetMiscLocalization({
EmoteSpiderlings = "¡Las arañitas emergen de su nido!"
})
-... | gpl-2.0 |
privatesource/Vira_max | plugins/sb.lua | 3 | 1637 | local function run(msg, matches, callback, extra)
local data = load_data(_config.moderation.data)
local group_welcome = data[tostring(msg.to.id)]['group_bye']
-------------------------- Data Will be save on Moderetion.json
if matches[1] == 'db' and not matches[2] and is_owner(msg) then
data[tostring(msg... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-Draenor/Tarlna.lua | 1 | 3714 | local mod = DBM:NewMod(1211, "DBM-Draenor", nil, 557)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 12676 $"):sub(12, -3))
mod:SetCreatureID(81535)
mod:SetReCombatTime(20)
mod:SetZone()
mod:SetMinSyncRevision(11969)
mod:RegisterCombat("combat_yell", L.Pull)--no yell
mod:RegisterEventsInCombat(
"... | gpl-2.0 |
mpeterv/luacheck | spec/config_spec.lua | 2 | 8875 | local lfs = require "lfs"
local config = require "luacheck.config"
local fs = require "luacheck.fs"
local cur_dir = lfs.currentdir()
local P = fs.normalize
local function AP(p) return P(fs.join(cur_dir, p)) end
local function nest(dir, func)
local backed = false
local function back()
if not backed then
... | mit |
n0xus/darkstar | scripts/zones/Aydeewa_Subterrane/npcs/Excavation_Site.lua | 43 | 1796 | -----------------------------------
-- Area: Aydeewa Subterrane
-- NPC: Excavation Site (Olduum Ring quest)
-- @pos 390 1 349 68
-----------------------------------
package.loaded["scripts/zones/Aydeewa_Subterrane/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scri... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/Broker_Garrison/data.lua | 1 | 24513 | local ADDON_NAME, private = ...
local _G = getfenv(0)
local LibStub = _G.LibStub
local Garrison = LibStub("AceAddon-3.0"):GetAddon(ADDON_NAME)
local L = LibStub:GetLibrary( "AceLocale-3.0" ):GetLocale(ADDON_NAME)
Garrison.colors = {
green = {r=0, g=1, b=0, a=1},
white = {r=1, g=1, b=1, a=1},
red = {r=1, g=0, b=0,... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.