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 |
|---|---|---|---|---|---|
fqrouter/luci | applications/luci-asterisk/luasrc/controller/asterisk.lua | 69 | 7498 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 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
h... | apache-2.0 |
CuteOne/ImoCuteOne | ProbablyEngine/rotations/druid/feral.lua | 1 | 13895 | -- ProbablyEngine Rotation Packager
-- Custom Feral Combat Druid Rotation
-- Created on Nov 2nd 2013 10:35 pm
ProbablyEngine.rotation.register_custom(103, "CuteOne - Feral",
{ --In Combat
{ 'pause', cute.checkDummy }, --5 Minute Dummy Test
{"/pe aoe", { --Toggle AoE
"modifier.rshift"
}},
{"/pe cd", { -... | gpl-2.0 |
kidaa/MoonGen | lua/include/lib/StackTracePlus/init.lua | 1 | 12090 | -- tables
local _G = _G
local string, io, debug, coroutine = string, io, debug, coroutine
-- functions
local tostring, print, require = tostring, print, require
local next, assert = next, assert
local pcall, type, pairs, ipairs = pcall, type, pairs, ipairs
local error = error
assert(debug, "debug table must be availa... | mit |
zhaoluxyz/Hugula | Client/tools/netProtocal/NetProtocalParserCode.lua | 8 | 3668 | ------------------- NetProtocalPaser---------------
local NetAPIList = NetAPIList
NetProtocalPaser = {}
function NetProtocalPaser:parsestring(msg, key, parentTable)
parentTable[key] = msg:ReadString()
end
function NetProtocalPaser:parseinteger(msg, key, parentTable)
parentTable[key] = msg:ReadInt()
e... | mit |
kitala1/darkstar | scripts/zones/Stellar_Fulcrum/bcnms/return_to_delkfutts_tower.lua | 13 | 1843 | -----------------------------------
-- Area: Stellar Fulcrum
-- Name: Mission 5-2
-- @pos -520 -4 17 179
-----------------------------------
package.loaded["scripts/zones/Stellar_Fulcrum/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
req... | gpl-3.0 |
lvdmaaten/nn | NarrowTable.lua | 38 | 1151 | local NarrowTable, parent = torch.class('nn.NarrowTable', 'nn.Module')
function NarrowTable:__init(offset, length)
parent.__init(self)
self.offset = offset
self.length = length or 1
if not offset then
error('nn.NarrowTable(offset, length)')
end
self.output = {}
self.gradInput = {}
end
f... | bsd-3-clause |
Roblox/Core-Scripts | CoreScriptsRoot/Modules/LoadingScreen3D.lua | 1 | 9650 | -- LoadingScreen3D.lua --
-- Written by Kip Turner, copyright ROBLOX 2016 --
local GUI_DISTANCE_FROM_CAMERA = 6
local VERTICAL_SCREEN_PERCENT = 1/3
local HORIZONTAL_SCREEN_PERCENT = 1/3
local SECOND_TO_FADE = 2.5
local ROTATIONS_PER_SECOND = 0.5
local TEXT_SCROLL_SPEED = 25
local CoreGui = game:GetService('CoreGui')
... | apache-2.0 |
kitala1/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Cattah_Pamjah.lua | 38 | 1050 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Cattah Pamjah
-- Type: Title Changer
-- @zone: 94
-- @pos -13.564 -2 10.673
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;... | gpl-3.0 |
Tigerism/tigerbot | resources/commands.lua | 1 | 9148 | local Command = {commands=framework:getFiles(module.dir.."/../commands/")}
local prefixes = settings.prefixes
function Command:checkPermission(message,command)
local member = message.member
local author = message.author
local guild = message.guild
local channel = message.channel
local category = command.help.cate... | mit |
Pulse-Eight/drivers | Control4/proamp8_pulse-eight/common/p8init.lua | 8 | 3010 | require "common.p8declares"
require "common.p8properties"
require "lib.c4_log"
require "lib.c4_timer"
gForceLogging = false
function ON_DRIVER_INIT.p8init()
-- Create Log Timer
gC4LogTimer = c4_timer:new("Log Timer", 45, "MINUTES", OnLogTimerExpired)
end
function OnLogTimerExpired()
LogWarn("Turning Log Mode Off... | apache-2.0 |
Pulse-Eight/drivers | Control4/tv_sink_pulse-eight/common/p8init.lua | 8 | 3010 | require "common.p8declares"
require "common.p8properties"
require "lib.c4_log"
require "lib.c4_timer"
gForceLogging = false
function ON_DRIVER_INIT.p8init()
-- Create Log Timer
gC4LogTimer = c4_timer:new("Log Timer", 45, "MINUTES", OnLogTimerExpired)
end
function OnLogTimerExpired()
LogWarn("Turning Log Mode Off... | apache-2.0 |
CTPST/resizebot | plugins/admin.lua | 230 | 6382 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(rec... | gpl-2.0 |
kitala1/darkstar | scripts/commands/takexp.lua | 26 | 1232 | ---------------------------------------------------------------------------------------------------
-- func: @takexp <amount> <player>
-- desc: Removes experience points from the target player.
---------------------------------------------------------------------------------------------------
cmdprops =
{
p... | gpl-3.0 |
kitala1/darkstar | scripts/globals/effects/addendum_black.lua | 74 | 1952 | -----------------------------------
--
--
--
-----------------------------------
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:recalculateAbilitiesTable();
local bonus = effect:getPower();
local helix = effect... | gpl-3.0 |
mamadtnt/edit- | plugins/google.lua | 8 | 1052 | 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 |
Taracque/epgp | modules/boss.lua | 1 | 3470 | local mod = EPGP:NewModule("boss", "AceEvent-3.0")
local Debug = LibStub("LibDebug-1.0")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
local Coroutine = LibStub("LibCoroutine-1.0")
local DLG = LibStub("LibDialog-1.0")
local in_combat = false
local function ShowPopup(event_name, boss_name)
while (in_... | bsd-3-clause |
kitala1/darkstar | scripts/globals/abilities/drain_samba.lua | 10 | 1463 | -----------------------------------
-- Ability: Drain Samba
-- Inflicts the next target you strike with Drain daze, allowing all those engaged in battle with it to drain its HP.
-- Obtained: Dancer Level 5
-- TP Required: 10%
-- Recast Time: 1:00
-- Duration: 2:00
-----------------------------------
require("... | gpl-3.0 |
kitala1/darkstar | scripts/globals/weaponskills/ukkos_fury.lua | 30 | 1805 | -----------------------------------
-- Ukko's Fury
-- Great Axe Weapon Skill
-- Skill Level: N/A
-- Description: Delivers a twofold attack that slows target. Chance of params.critical hit varies with TP. Ukonvasara: Aftermath.
-- Available only when equipped with Ukonvasara (85), Ukonvasara (90), Ukonvasara (95), ... | gpl-3.0 |
aminkinghakerlifee/wolf-team | plugins/plugins.lua | 2 | 5893 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Giddeus/npcs/Treasure_Chest.lua | 12 | 2757 | -----------------------------------
-- Area: Giddeus
-- NPC: Treasure Chest
--
-- @pos -158.563 0.999 -226.058 145
-----------------------------------
package.loaded["scripts/zones/Giddeus/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/key... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Northern_San_dOria/npcs/Calovour.lua | 36 | 1427 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Calovour
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Sealions_Den/npcs/Airship_Door.lua | 21 | 1823 | -----------------------------------
-- Area:
-- NPC: Airship_Door
-----------------------------------
package.loaded["scripts/zones/Sealions_Den/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/missions");
require("scripts/zones/Sealions_Den/TextIDs");
... | gpl-3.0 |
crabman77/minetest-minetestforfun-server | mods/moreblocks/stairsplus/stairs.lua | 7 | 6082 | --[[
More Blocks: stair definitions
Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
local S = moreblocks.intllib
-- Node will be called <modname>:stair_<subname>
function register_stair(modname, subname, recipeitem, groups, images, descrip... | unlicense |
umbrellaTG/sphero | plugins/ingroup.lua | 1 | 61598 | 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 |
kitala1/darkstar | scripts/zones/Selbina/npcs/Elfriede.lua | 17 | 1951 | -----------------------------------
-- Area: Selbina
-- NPC: Elfriede
-- Involved In Quest: The Tenshodo Showdown
-- @pos 61 -15 10 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
req... | gpl-3.0 |
kiarash14/be | plugins/search_youtube.lua | 674 | 1270 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
mohammads15/new-super | plugins/helpfa.lua | 9 | 4197 | do
function run(msg, matches)
return [[ ⭕️دستورات فارسی ربات:
___________________
#info
🔰اطلاعات سوپر گروه🔰
#infull
🔰اطلاعات کامل خود🔰
#admins
🔰لیست ادمین های سوپر گروه🔰
#setadmin
🔰تنظیم ادمین سوپر گروه🔰
#owner
🔰مالک سوپر گروه🔰
#setowner
🔰تنظیم مالک سوپر گروه🔰
#modlist
🔰لیست مدیران🔰
#bots
🔰لیست... | gpl-2.0 |
parsaalemi/parsa-antispam-bot | plugins/tophoto.lua | 24 | 1059 | local function tosticker(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/stickers/'..msg.from.id..'.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
send_photo(get_receiver(msg), file, ok_cb, false)
re... | gpl-2.0 |
xsolinsx/AISashaAPI | plugins/fakecommand.lua | 1 | 2090 | -- no "SUDO" because there's no rank higher than "SUDO" (yes there's "BOT" but it's not a real rank)
-- "USER" can't use this because there's no rank lower than "USER"
local function run(msg, matches)
if msg.from.is_mod then
local rank = get_rank(msg.from.id, msg.chat.id, true)
local fakerank =... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/Laimeve_RK.lua | 30 | 3067 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: Laimeve, R.K.
-- Border Conquest Guards
-- @pos 226.493 -12.231 260.194 114
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/c... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Davoi/npcs/Lootblox.lua | 19 | 7226 | -----------------------------------
-- Area: Davoi
-- NPC: Lootblox
-- Type: Standard NPC
-- @pos 218.073 -0.982 -20.746 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Davoi/TextIDs");
require("scripts/globals... | gpl-3.0 |
mohammads15/new-super | bot/Windowbot.lua | 2 | 15470 | 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")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This function is ... | gpl-2.0 |
kitala1/darkstar | scripts/globals/items/serving_of_mille_feuille.lua | 36 | 1426 | -----------------------------------------
-- ID: 5559
-- Item: Serving of Mille Feuille
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +8
-- MP +15
-- Intelligence +1
-- HP Recoverd while healing 1
-- MP Recovered while healing 1
----------------------------------... | gpl-3.0 |
kidaa/MoonGen | examples/icmp-arp-responder.lua | 4 | 2418 | local dpdk = require "dpdk"
local memory = require "memory"
local device = require "device"
local utils = require "utils"
local arp = require "proto.arp"
local ip = require "proto.ip4"
local icmp = require "proto.icmp"
function master(funny, port, ...)
if funny and funny ~= "--do-funny-things" then
return ma... | mit |
kitala1/darkstar | scripts/zones/Cloister_of_Storms/Zone.lua | 32 | 1660 | -----------------------------------
--
-- Zone: Cloister_of_Storms (202)
--
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Storms/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Cloister_of_Storms/TextIDs");
---... | gpl-3.0 |
ZenityRTS/Zenity | LuaRules/Gadgets/dbg_dev_commands.lua | 1 | 7756 |
function gadget:GetInfo()
return {
name = "Dev Commands",
desc = "Adds useful commands.",
author = "Google Frog",
date = "12 Sep 2011",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true, -- loaded by default?
handler = true,
}
end
--------------... | gpl-2.0 |
xsolinsx/AISashaAPI | plugins/qr.lua | 1 | 1541 | -- 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 colo... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Apollyon/mobs/Dark_Elemental.lua | 17 | 2413 | -----------------------------------
-- Area: Apollyon SW
-- NPC: elemental
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
--------------------------... | gpl-3.0 |
dangerrr/dangerrr | plugins/boobs.lua | 731 | 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 |
nicodinh/cuberite | MCServer/Plugins/APIDump/Hooks/OnPostCrafting.lua | 36 | 1584 | return
{
HOOK_POST_CRAFTING =
{
CalledWhen = "After the built-in recipes are checked and a recipe was found.",
DefaultFnName = "OnPostCrafting", -- also used as pagename
Desc = [[
This hook is called when a {{cPlayer|player}} changes contents of their
{{cCraftingGrid|crafting grid}}, after the recipe has... | apache-2.0 |
fastmailops/prosody | tests/test_util_rfc6724.lua | 4 | 5444 | -- Prosody IM
-- Copyright (C) 2011-2013 Florian Zeitz
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
function source(source)
local new_ip = require"util.ip".new_ip;
assert_equal(source(new_ip("2001:db8:1::1", "IPv6"),
{new_ip("2001:db8:3::1",... | mit |
kitala1/darkstar | scripts/zones/Windurst_Woods/npcs/Sariale.lua | 28 | 2050 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Sariale
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/chocobo");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/globals/status");
-------------------------... | gpl-3.0 |
kaustavha/rackspace-monitoring-agent | tests/test-protocol.lua | 4 | 1079 | --[[
Copyright 2015 Rackspace
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 in writing, software
dis... | apache-2.0 |
kitala1/darkstar | scripts/zones/Mhaura/npcs/Nereus.lua | 17 | 3016 | -----------------------------------
-- Area: Mhaura
-- NPC: Nereus
-- Starts and ends repeteable quest A_POTTER_S_PREFERENCE
-----------------------------------
-- player:startEvent(0x006e); standar dialog
-- player:startEvent(0x0073); -- i have enough for now, come later
-- player:startEvent(0x0072); -- ge... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Port_Bastok/npcs/Galvin.lua | 36 | 1464 | -----------------------------------
-- Area: Port Bastok
-- NPC: Galvin
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/zones/Port_Bastok/TextIDs");
... | gpl-3.0 |
Krikroff77/Fibaro-HC2-Toolkit-Framework | Toolkit.Crypto.Base64.lua | 1 | 2175 | -------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-- Toolkit.Crypto.Base64 library extention part of Toolkit.Crypto
-- Lua 5.1+ base64 v3.0 (c) 2009 by Alex Kloss <alexthkloss@web.de>
--... | gpl-2.0 |
apletnev/koreader | frontend/ui/message/messagequeue.lua | 11 | 2268 | local ffi = require("ffi")
local Event = require("ui/event")
local logger = require("logger")
local _ = require("ffi/zeromq_h")
local czmq = ffi.load("libs/libczmq.so.1")
local MessageQueue = {}
function MessageQueue:new(o)
o = o or {}
setmetatable(o, self)
self.__index = self
if o.init then o:init()... | agpl-3.0 |
kitala1/darkstar | scripts/zones/Northern_San_dOria/npcs/Miageau.lua | 17 | 2458 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Miageau
-- Type: Quest Giver NPC
-- @zone: 231
-- @pos 115 0 108
--
-- Starts and Finishes: Waters of Cheval
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
---------------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Toraimarai_Canal/npcs/Tome_of_Magic.lua | 12 | 1743 | -----------------------------------
-- Area: Toraimarai Canal
-- NPC: Tome of Magic ( Needed for Mission )
-- Involved In Windurst Mission 7-1
-- @zone 169
-- @pos 142 13 -13 169 <many>
-----------------------------------
package.loaded["scripts/zones/Toraimarai_Canal/TextIDs"] = nil;
require("scripts/zones/Toraimarai... | gpl-3.0 |
cdettmering/fancyland | Camera.lua | 1 | 2483 | --- Camera ---
-- Camera is designed to act like a real life camera as much as possible. This
-- is achieved by having simple functions that can move, rotate, and zoom the
-- Camera which allows for easy scene configuring.
-- Setup local access
local Camera = {}
Camera.__index = Camera
Camera._positionX = 0
Camera.... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Porter_Moogle.lua | 41 | 1550 | -----------------------------------
-- Area: Windurst Waters [S]
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- @zone 94
-- @pos TODO
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Windurst_... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Bastok_Mines/npcs/Deadly_Spider.lua | 34 | 1443 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Deadly Spider
-- Involved in Quest: Stamp Hunt
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Bastok_... | gpl-3.0 |
insta9/sipml5 | asterisk/etc/extensions.lua | 317 | 5827 |
CONSOLE = "Console/dsp" -- Console interface for demo
--CONSOLE = "DAHDI/1"
--CONSOLE = "Phone/phone0"
IAXINFO = "guest" -- IAXtel username/password
--IAXINFO = "myuser:mypass"
TRUNK = "DAHDI/G2"
TRUNKMSD = 1
-- TRUNK = "IAX2/user:pass@provider"
--
-- Extensions are expected to be defined in a global table ... | bsd-3-clause |
tetoali605/THETETOO_A7A | plugins/kickm.lua | 7 | 1429 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY tetoo ▀▄ ▄▀
▀▄ ▄▀ BY nmore (@l_l_lo) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY l_l_ll ▀▄ ▄▀
▀▄ ▄▀ broadcast : طـرد المحذوف ▀▄ ▄▀
▀▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄... | gpl-2.0 |
libcg/gSquare | game/levels/canon2.lua | 1 | 1892 | function getInfo()
-- Title
local title = {
"Day 21.",
"Jour 21." }
levelText(title[getLanguageID()+1])
end
function setGame()
-- Music
setMusic("./audio/c418-repetition.mp3")
-- Player
varPlayerX(16*2)
varPlayerY(16*2)
-- Gravity
varGravityDir(2)
end
function setLevel()
-- Temporary leve... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/prominence_axe.lua | 16 | 1409 | -----------------------------------------
-- ID: 18220
-- Item: Prominence Axe
-- Additional Effect: Fire Damage
-- Enchantment: Enfire
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
------... | gpl-3.0 |
xsolinsx/AISashaAPI | utils.lua | 1 | 41102 | URL = require "socket.url"
http = require "socket.http"
HTTPS = require "ssl.https"
ltn12 = require "ltn12"
curl = require "cURL"
serpent =(loadfile "./libs/serpent.lua")()
json =(loadfile "./libs/JSON.lua")()
mimetype =(loadfile "./libs/mimetype.lua")()
redis =(loadfile "./libs/redis.lua")()
sha2 =(loadfile... | gpl-2.0 |
amirkingred/nod2 | plugins/inpm.lua | 59 | 3138 | do
local 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 |
ZenityRTS/Zenity | libs/chiliui/luaui/chili/chili/controls/screen.lua | 2 | 8347 | --- Screen module
--- Screen fields.
-- Inherits from Object.
-- @see object.Object
-- @table Screen
-- @int[opt=0] x x position
-- @int[opt=0] y y position
-- @int[opt=0] width width
-- @int[opt=0] height height
-- @tparam control.Control activeControl active control
-- @tparam control.Control focusedContr... | gpl-2.0 |
ioiasff/DSA | bot/utils.lua | 473 | 24167 | 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 |
aliyousefi8370/Srdarbot | bot/utils.lua | 473 | 24167 | 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 |
idevz/vanilla | vanilla/v/routes/restful.lua | 1 | 2554 | -- perf
local error = error
local ngxgsub = ngx.re.gsub
local ngxmatch = ngx.re.match
local accept_header_pattern = "^application/vnd." .. Registry['APP_NAME'] .. ".v(\\d+)(.*)+json$"
local function tappend(t, v) t[#t+1] = v end
local http_methods = {
GET = true,
POST = true,
HEAD = true,
OPTIONS = tru... | mit |
fastmailops/prosody | core/sessionmanager.lua | 2 | 7111 | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local tostring, setmetatable = tostring, setmetatable;
local pairs, next= pairs, next;
local hosts = hos... | mit |
kitala1/darkstar | scripts/zones/Boneyard_Gully/bcnms/like_the_wind.lua | 11 | 1653 | -----------------------------------
-- Area: Boneyard_Gully
-- Name: like_the_wind
-- BCNM: 673
-- Mask: 1
-----------------------------------
package.loaded["scripts/zones/Boneyard_Gully/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/globals/keyite... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Xarcabard/npcs/qm5.lua | 13 | 1343 | -----------------------------------
-- Area: Xarcabard
-- NPC: qm5 (???)
-- Involved in Quests: Breaking Barriers
-- @pos 179 -33 82 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Xarcabard/TextIDs");
require(... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/felicifruit.lua | 36 | 1158 | -----------------------------------------
-- ID: 5964
-- Item: Felicifruit
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -7
-- Intelligence 5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
---... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Misareaux_Coast/npcs/qm1.lua | 8 | 1322 | -----------------------------------
-- Area: Misareaux_Coast
-- NPC: ??? (Spawn Gration)
-- @pos 113.563 -16.302 38.912 25
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Misareaux_Coast/TextIDs");
... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Xarcabard_[S]/mobs/Fusty_Gnole.lua | 12 | 1543 | -----------------------------------
-- Area: Xarcabard (S)
-- NPC: Fusty Gnole
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
mob:setLocalVar("transformTime", os.time())
end;
----------------------------------... | gpl-3.0 |
kitala1/darkstar | scripts/globals/weaponskills/brainshaker.lua | 12 | 1517 | -----------------------------------
-- Brainshaker
-- Club weapon skill
-- Skill level: 70
-- Stuns enemy. Duration of stun varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Aqua Gorget.
-- Aligned with the Aqua Belt.
-- Element: None
-- Modifiers: STR:30%
-- 100%TP 200%TP 300%TP
-- ... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Metalworks/npcs/Hugues.lua | 24 | 1864 | -----------------------------------
-- Area: Metalworks
-- NPC: Hugues
-- Type: Smithing Synthesis Image Support
-- @pos -106.336 2.000 26.117 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status"... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/bowl_of_pebble_soup.lua | 36 | 1103 | -----------------------------------------
-- ID: 4455
-- Item: Bowl of Pebble Soup
-- Food Effect: 3 Hr, All Races
-----------------------------------------
-- MP Recovered while healing 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemC... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Upper_Delkfutts_Tower/npcs/qm3.lua | 34 | 1069 | -----------------------------------
-- Area: Upper Delkfutt's Tower
-- NPC: ???
-- Notes: Teleports you to the 10th floor.
-- @pos 261 19 20 158
-----------------------------------
package.loaded["scripts/zones/Upper_Delkfutts_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Outer_Horutoto_Ruins/npcs/_5ee.lua | 19 | 3311 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Ancient Magical Gizmo #1 (E 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 |
kitala1/darkstar | scripts/globals/mobskills/Sand_Blast.lua | 25 | 1241 | ---------------------------------------------------
-- Sand Blast
-- Deals Earth damage to targets in a fan-shaped area of effect. Additional effect: Blind
-- Range: 8' cone
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scri... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Bastok_Markets/npcs/Malene.lua | 29 | 2371 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Malene
-- Type: Quest NPC
-- @zone: 235
-- @pos -173 -4 64
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/globals/titles");
requ... | gpl-3.0 |
LuaDist2/phpass | src/phpass.lua | 3 | 2740 | -- lua-phpass, Lua implementation of the portable
-- PHP password hashing framework
-- Copyright (C) 2015 Boris Nagaev
-- See the LICENSE file for terms of use.
local phpass = {}
-- Encoding. Not base64!
local itoa64_ = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ' ..
'abcdefghijklmnopqrstuvwxyz'
local function itoa... | mit |
kaustavha/rackspace-monitoring-agent | hostinfo/who.lua | 3 | 1081 | --[[
Copyright 2014 Rackspace
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 in writing, software
dis... | apache-2.0 |
shahabsaf1/uzz-bot | plugins/img_google.lua | 660 | 3196 | do
local mime = require("mime")
local google_config = load_from_file('data/google.lua')
local cache = {}
--[[
local function send_request(url)
local t = {}
local options = {
url = url,
sink = ltn12.sink.table(t),
method = "GET"
}
local a, code, headers, status = http.request(options)
return tabl... | gpl-2.0 |
kitala1/darkstar | scripts/globals/items/melon_pie_+1.lua | 35 | 1368 | -----------------------------------------
-- ID: 4523
-- Item: melon_pie_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Magic 30
-- Intelligence 5
-- Magic Regen While Healing 2
-----------------------------------------
require("scripts/globals/status");
-----------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Al_Zahbi/npcs/Gidappa.lua | 53 | 2317 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Gidappa
-- Type: Clothcraft Normal/Adv. Image Support
-- @pos 70.228 -7 -54.089 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("s... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Sacrarium/mobs/Old_Professor_Mariselle.lua | 11 | 2238 | -----------------------------------
-- Area: Sacrarium
-- NPC: Old Professor Mariselle
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
-----------------------------------
-- onMobSpawn
-----------------------------------
function onMobSpawn(m... | gpl-3.0 |
kitala1/darkstar | scripts/globals/spells/bluemagic/wild_carrot.lua | 10 | 1783 | -----------------------------------------
-- Spell: Wild Carrot
-- Restores HP for the target party member
-- Spell cost: 37 MP
-- Monster Type: Beasts
-- Spell Type: Magical (Light)
-- Blue Magic Points: 3
-- Stat Bonus: HP+5
-- Level: 30
-- Casting Time: 2.5 seconds
-- Recast Time: 6 seconds
--
-- Combos... | gpl-3.0 |
Aeprox/ESPLogger | release/ESPLogger-v1.1/thingspeak/thingspeak.lua | 3 | 3102 | -- ************************************************
-- Thingspeak module for ESP8266 with nodeMCU
-- tested 2015-07-20 with build 20150627
--
-- Written by Aeprox @ github
--
-- MIT license, http://opensource.org/licenses/MIT
-- *************************************************
local moduleName = "thingspeak"
local M ... | mit |
kitala1/darkstar | scripts/zones/Fort_Karugo-Narugo_[S]/npcs/Spondulix.lua | 37 | 1195 | -----------------------------------
-- Area: Fort Karugo-Narugo
-- NPC: Spondulix
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Fort_Karugo-Narugo_[S]/TextIDs"] = nil;
require("scripts/zones/Fort_Karugo-Narugo_[S]/TextIDs");
-----... | gpl-3.0 |
paulosalvatore/maruim_server | data/actions/scripts/firebug.lua | 1 | 1776 | function onUse(player, item, fromPosition, target, toPosition, isHotkey)
local chanceFalha = 50
local items = {
[5466] = {transformar = 5465},
[1485] = {transformar = 1484, duracao = 600, decairPara = {{1483, 1}, {1482, 1}, {1481, 1}, {1485, 1}}},
[7538] = {transformar = 7544},
[7539] = {transformar = 7545},... | gpl-2.0 |
Taracque/epgp | libs/AceComm-3.0/AceComm-3.0.lua | 10 | 11192 | --- **AceComm-3.0** allows you to send messages of unlimited length over the addon comm channels.
-- It'll automatically split the messages into multiple parts and rebuild them on the receiving end.\\
-- **ChatThrottleLib** is of course being used to avoid being disconnected by the server.
--
-- **AceComm-3.0** can... | bsd-3-clause |
crabman77/minetest-minetestforfun-server | minetestforfun_game/mods/default/nodes.lua | 6 | 74588 | -- mods/default/nodes.lua
--[[ Node name convention:
Although many node names are in combined-word form, the required form for new
node names is words separated by underscores. If both forms are used in written
language (for example pinewood and pine wood) the underscore form should be used.
--]]
--[[ Index:
Sto... | unlicense |
kitala1/darkstar | scripts/zones/QuBia_Arena/bcnms/heir_to_the_light.lua | 9 | 1740 | -----------------------------------
-- Name: Mission 9-2 SANDO
-----------------------------------
package.loaded["scripts/zones/Qubia_arena/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("scripts/zones/Qubia_arena/TextIDs");
--... | gpl-3.0 |
Roblox/Core-Scripts | CoreScriptsRoot/Modules/VR/NotificationHub.lua | 1 | 23738 | local ContextActionService = game:GetService("ContextActionService")
local CoreGui = game:GetService("CoreGui")
local RobloxGui = CoreGui:WaitForChild("RobloxGui")
local Util = require(RobloxGui.Modules.Settings.Utility)
local Panel3D = require(RobloxGui.Modules.VR.Panel3D)
local VRHub = require(RobloxGui.Modules.VR.VR... | apache-2.0 |
kitala1/darkstar | scripts/zones/Port_San_dOria/npcs/Eddy.lua | 38 | 1038 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Eddy
-- Type: NPC Quest Giver
-- @zone: 232
-- @pos -5.209 -8.999 39.833
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------... | gpl-3.0 |
TeleDALAD/2DALAD2 | plugins/stats.lua | 866 | 4001 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
frissdiegurke/dotfiles | .config/awesome/utils/debug.lua | 1 | 1108 | local naughty = require("naughty")
-- Error handling
-- -- Check if awesome encountered an error during startup and fell back to
-- -- another config (This code will only ever execute for the fallback config)
if awesome.startup_errors then
naughty.notify({
preset = naughty.config.presets.critical,
title = "O... | apache-2.0 |
Roblox/Core-Scripts | CoreScriptsRoot/Modules/DevConsole/Components/DevConsoleTopBar.lua | 1 | 5827 | local CorePackages = game:GetService("CorePackages")
local RobloxGui = game:GetService("CoreGui").RobloxGui
local TextService = game:GetService("TextService")
local Roact = require(CorePackages.Roact)
local RoactRodux = require(CorePackages.RoactRodux)
local Constants = require(script.Parent.Parent.Constants)
local FR... | apache-2.0 |
hanxi/cocos2d-x-v3.1 | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/FadeOutTRTiles.lua | 3 | 1264 |
--------------------------------
-- @module FadeOutTRTiles
-- @extend TiledGrid3DAction
--------------------------------
-- @function [parent=#FadeOutTRTiles] turnOnTile
-- @param self
-- @param #cc.Vec2 vec2
--------------------------------
-- @function [parent=#FadeOutTRTiles] turnOffTile
-- @param self
... | mit |
kitala1/darkstar | scripts/zones/Ifrits_Cauldron/npcs/qm2.lua | 8 | 1415 | -----------------------------------
-- Area: Ifrit's Cauldron
-- NPC: qm2 (???)
-- Notes: Used to spawn Bomb Queen
-- @pos 18 20 -104 205
-----------------------------------
package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Ifrits_Cauld... | gpl-3.0 |
crabman77/minetest-minetestforfun-server | mods/mesecons/mesecons_commandblock/init.lua | 7 | 6280 | minetest.register_chatcommand("say", {
params = "<text>",
description = "Say <text> as the server",
privs = {server=true},
func = function(name, param)
minetest.chat_send_all(name .. ": " .. param)
end
})
minetest.register_chatcommand("tell", {
params = "<name> <text>",
description = "Say <text> to... | unlicense |
lvdmaaten/nn | Max.lua | 27 | 1520 | local Max, parent = torch.class('nn.Max', 'nn.Module')
function Max:__init(dimension)
parent.__init(self)
dimension = dimension or 1
self.dimension = dimension
end
function Max:_lazyInit()
self._output = self._output or self.output.new()
self._indices = self._indices or
(torch.type(self.output) =... | bsd-3-clause |
kitala1/darkstar | scripts/zones/Norg/npcs/Vuliaie.lua | 19 | 1256 | -----------------------------------
-- Area: Norg
-- NPC: Vuliaie
-- Type: Tenshodo Merchant
-- @pos -24.259 0.891 -19.556 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/sh... | gpl-3.0 |
crabman77/minetest-minetestforfun-server | minetestforfun_game/mods/farming/blueberry.lua | 12 | 1857 |
local S = farming.intllib
-- blueberries
minetest.register_craftitem("farming:blueberries", {
description = S("Blueberries"),
inventory_image = "farming_blueberries.png",
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:blueberry_1")
end,... | unlicense |
ZenityRTS/Zenity | ModelMaterials/1_normalmapping.lua | 1 | 4791 | -- $Id$
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local materials = {
normalMappedS3o = {
shaderDefinitions = {
"#define use_perspective_correct_shadows",
"#define use_normalmapping"... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.