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 |
|---|---|---|---|---|---|
telematin/telewebamoz | bot/utils.lua | 309 | 23029 | 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 |
Armin041/antiflood1 | bot/utils.lua | 309 | 23029 | 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 |
abbasgh12345/teleomega | bot/utils.lua | 309 | 23029 | 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 |
moltafet35/senatorv2 | plugins/isX.lua | 605 | 2031 | local https = require "ssl.https"
local ltn12 = require "ltn12"
local function request(imageUrl)
-- 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 api_key = mashape.api_key
if ... | gpl-2.0 |
jbeich/Aquaria | files/scripts/entities/originalraspberry.lua | 6 | 3905 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
nyczducky/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Kemha_Flasehp.lua | 29 | 2315 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Kemha Flasehp
-- Type: Fishing Normal/Adv. Image Support
-- @pos -28.4 -6 -98 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/global... | gpl-3.0 |
AquariaOSE/Aquaria | files/scripts/maps/node_big-anemone.lua | 6 | 1157 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
nyczducky/darkstar | scripts/globals/mobskills/Unblest_Jambiya.lua | 29 | 1059 | ---------------------------------------------------
-- Unblest Jambiya
-- Family: Qutrub
-- Description: Steals HP from targets in an area of effect.
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: AoE 15'
-- Notes: Used only by certain NM's when their primary sword isn't broken.
-------------... | gpl-3.0 |
jbeich/Aquaria | files/scripts/entities/krilleggs.lua | 5 | 2603 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
AquariaOSE/Aquaria | files/scripts/entities/krilleggs.lua | 5 | 2603 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
AquariaOSE/Aquaria | files/scripts/entities/raspberry.lua | 6 | 4229 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
nyczducky/darkstar | scripts/globals/items/cup_of_chai.lua | 12 | 1198 | -----------------------------------------
-- ID: 5570
-- Item: cup_of_chai
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Vitality -2
-- Charisma 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
----... | gpl-3.0 |
jbeich/Aquaria | files/scripts/entities/_unused/currentswitch.lua | 6 | 3132 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
jamesbdunlop/iction | coreApplication/ict_options.lua | 1 | 20376 | local iction = iction
local frameW = 300
local frameH = 450
local optionsBoxTop = frameH -75
local optionsBoxBottom = (frameH * .5)
local optionsBoxW = (frameW*.25)
local swdLabel = optionsBoxBottom - 20
local swdBoxTop = swdLabel - 15
local voidLabel = swdBoxTop - 33
local voidBoxTop = voidLabel - 15
local scaleUIL... | apache-2.0 |
nyczducky/darkstar | scripts/zones/Dynamis-Bastok/npcs/qm1.lua | 17 | 1322 | -----------------------------------
-- Area: Dynamis Bastok
-- NPC: qm1 (???)
-- Notes: Spawns when Megaboss is defeated
-----------------------------------
package.loaded["scripts/zones/Dynamis-Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/D... | gpl-3.0 |
jbeich/Aquaria | files/scripts/maps/node_pushup.lua | 6 | 1045 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
nyczducky/darkstar | scripts/globals/items/serving_of_red_curry.lua | 7 | 2193 | -----------------------------------------
-- ID: 4298
-- Item: serving_of_red_curry
-- Food Effect: 3 hours, All Races
-----------------------------------------
-- HP +25
-- Strength +7
-- Agility +1
-- Intelligence -2
-- HP recovered while healing +2
-- MP recovered while healing +1
-- Attack +23%... | gpl-3.0 |
Jacudibu/Snake2DS | game/stats.lua | 1 | 1463 | require('gameState')
stats = {}
function stats:init()
stats.totalTime = 0
stats.totalTicks = 0
stats.totalScore = 0
stats.totalLength = 1
stats.specialTimer = 0
end
function stats:tick(dt)
stats.totalTicks = stats.totalTicks + 1
stats.specialTimer = stats.specialTimer - 1
end
function stats:upd... | mit |
aktel/vice-players | Vendor/CEGUI/cegui/src/ScriptingModules/LuaScriptModule/support/tolua++bin/lua/code.lua | 7 | 2434 | -- tolua: code class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1999
-- $Id: code.lua 1141 2006-05-18 23:58:45Z lindquist $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide main... | gpl-3.0 |
nyczducky/darkstar | scripts/zones/Bastok_Markets/npcs/Degenhard.lua | 25 | 2118 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Degenhard
-- Starts & Ends Quest: The Bare Bones
-- Involved in Quests: Beat Around the Bushin
-- @zone 235
-- @pos -175 2 -135
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-------------------------... | gpl-3.0 |
naxiwer/Atlas | lib/proxy/auto-config.lua | 44 | 6670 | --[[ $%BEGINLICENSE%$
Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
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 dis... | gpl-2.0 |
RyanSquared/FusionScript | spec/class_spec.lua | 1 | 1025 | local class = require("fusion.stdlib.class")
local unpack = require("fusion.util").unpack
describe("class", function()
it("can make a simple class", function()
local x = class({}, {}, "Test")
assert.same("Test", tostring(x))
local instance = x()
assert.same(x, instance.__class)
assert.is_nil(instance.__supe... | mit |
nyczducky/darkstar | scripts/zones/Norg/npcs/Heiji.lua | 9 | 3280 | -----------------------------------
-- Area: Norg
-- NPC: Heiji
-- Starts and Ends Quest: Like a Shining Subligar
-- @pos -1 -5 25 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/global... | gpl-3.0 |
dtrip/awesome | tests/test-current-desktop.lua | 4 | 2313 | --- Tests for _NET_CURRENT_DESKTOP
local runner = require("_runner")
local test_client = require("_client")
local awful = require("awful")
local gtable = require("gears.table")
local c
local s = screen[1]
local tags = s.tags
local function wait_for_current_desktop(tag)
-- The X property has 0-based indicies
... | gpl-2.0 |
nyczducky/darkstar | scripts/zones/Apollyon/bcnms/SW_Apollyon.lua | 34 | 1162 | -----------------------------------
-- Area: Appolyon
-- Name:
-----------------------------------
require("scripts/globals/limbus");
require("scripts/globals/keyitems");
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[SW_Apollyon]UniqueID",Gener... | gpl-3.0 |
AquariaOSE/Aquaria | files/scripts/include/rocktemplate.lua | 6 | 2409 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
sjznxd/lc-20121231 | applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-func.lua | 80 | 1208 | --[[
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 |
nyczducky/darkstar | scripts/zones/Wajaom_Woodlands/npcs/Harvesting_Point.lua | 17 | 1158 | -----------------------------------
-- Area: Wajaom Woodlands
-- NPC: Harvesting Point
-----------------------------------
package.loaded["scripts/zones/Wajaom_Woodlands/TextIDs"] = nil;
package.loaded["scripts/globals/harvesting"] = nil;
-------------------------------------
require("scripts/globals/harvesting");
... | gpl-3.0 |
nyczducky/darkstar | scripts/zones/Upper_Jeuno/npcs/Luto_Mewrilah.lua | 14 | 1854 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Luto Mewrilah
-- @zone 244
-- @pos -53 0 45
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require... | gpl-3.0 |
hozhu123/tenshi | vm/lua/tenshi-runtime/src/lua/triggers.lua | 11 | 1676 | -- Licensed to Pioneers in Engineering under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. Pioneers in Engineering licenses
-- this file to you under the Apache License, Version 2.0 (the
-- "License"); you ... | apache-2.0 |
rotmanmi/torch7 | test/timeSort.lua | 68 | 5063 | -- gnuplot.figure(2)
-- Test torch sort, show it suffers from the problems of quicksort
-- i.e. complexity O(N^2) in worst-case of sorted list
require 'gnuplot'
local cmd = torch.CmdLine()
cmd:option('-N', 10^7, 'Maximum array size')
cmd:option('-p', 50, 'Number of points in logspace')
cmd:option('-r', 20, 'Number of... | bsd-3-clause |
nyczducky/darkstar | scripts/zones/Valkurm_Dunes/npcs/Quanteilleron_RK.lua | 14 | 3323 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: Quanteilleron, R.K.
-- Outpost Conquest Guards
-- @pos 144 -7 104 103
-------------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/conquest");
require... | gpl-3.0 |
abcdefg30/OpenRA | mods/d2k/maps/atreides-04/atreides04-AI.lua | 7 | 2110 | --[[
Copyright 2007-2022 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
wenhulove333/ScutServer | Sample/Koudai/Client/lua/scenes/sendToScene.lua | 1 | 5839 | ------------------------------------------------------------------
-- sendToScene.lua.lua
-- Author : yeyq
-- Version : 1.0
-- Date :
-- Description: Ë;«Á¦
------------------------------------------------------------------
module("sendToScene", package.seeall)
-- ³¡¾°ÖÐÓõ½µÄ³ÉÔ±±äÁ¿ÒªÔÚÎļ... | mit |
wenhulove333/ScutServer | Sample/Doudizhu/Client/lua/lib/ZyMaze.lua | 2 | 4236 | ------------------------------------------------------------------
--ZyMaze.lua
-- Author : JMChen
-- Version : 1.0.0.0
-- Date : 2011-10-15
-- Description:
------------------------------------------------------------------
module("ZyMaze", package.seeall)
local OpenList={}
local CloseList={... | mit |
lgeek/koreader | frontend/ui/data/koptoptions.lua | 1 | 11941 | local Device = require("device")
local S = require("ui/data/strings")
local optionsutil = require("ui/data/optionsutil")
local _ = require("gettext")
local Screen = Device.screen
local KoptOptions = {
prefix = 'kopt',
{
icon = "resources/icons/appbar.transform.rotate.right.large.png",
options =... | agpl-3.0 |
AquariaOSE/Aquaria | files/scripts/maps/_unused/node_jumptitle.lua | 6 | 1148 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
ahmedjabbar/uor | plugins/lock_english.lua | 16 | 1429 | --[[
#
#ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#:((
# For More Information ....!
# Developer : Aziz < @TH3_GHOST >
# our channel: @DevPointTeam
# Version: 1.1
#:))
#ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#
]]
lo... | gpl-2.0 |
medoo3131/NEW-BOT3 | plugins/lock_english.lua | 16 | 1429 | --[[
#
#ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#:((
# For More Information ....!
# Developer : Aziz < @TH3_GHOST >
# our channel: @DevPointTeam
# Version: 1.1
#:))
#ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#
]]
lo... | gpl-2.0 |
nyczducky/darkstar | scripts/zones/Northern_San_dOria/npcs/Narcheral.lua | 14 | 4137 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Narcheral
-- Starts and Finishes Quest: Messenger from Beyond, Prelude of Black and White (Finish), Pieuje's Decision (Finish)
-- @zone 231
-- @pos 129 -11 126
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/T... | gpl-3.0 |
nyczducky/darkstar | scripts/zones/Garlaige_Citadel/npcs/_5k9.lua | 14 | 1400 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: Banishing Gate #2
-- @pos -100 -2.949 81 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Garlaige_Citadel/TextIDs");
---------------... | gpl-3.0 |
abcdefg30/OpenRA | mods/ra/maps/allies-08a/allies08a.lua | 7 | 5873 | --[[
Copyright 2007-2022 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
nyczducky/darkstar | scripts/globals/items/bowl_of_stamina_soup.lua | 12 | 1558 | -----------------------------------------
-- ID: 4337
-- Item: bowl_of_stamina_soup
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- HP +12% (cap 200)
-- Dexterity 4
-- Vitality 6
-- Mind -3
-- HP Recovered While Healing 10
-----------------------------------------
require("scripts/globals/... | gpl-3.0 |
dtrip/awesome | spec/wibox/widget/imagebox_spec.lua | 10 | 1632 | ---------------------------------------------------------------------------
-- @author Emmanuel Lepage Vallee
-- @copyright 2017 Emmanuel Lepage Vallee
---------------------------------------------------------------------------
local imagebox = require("wibox.widget.imagebox")
local cairo = require("lgi").cairo
descr... | gpl-2.0 |
devadvisor/Advisor | plugins/help.lua | 1 | 4828 | --[[
_ ______ _____ ____ ___ ____
/ \ | _ \ \ / /_ _/ ___| / _ \| _ \
/ _ \ | | | \ \ / / | |\___ \| | | | |_) |
/ ___ \| |_| |\ V / | | ___) | |_| | _ <
/_/ \_\____/ \_/ |___|____/ \___/|_| \_\
--]]
do
function run(msg, matches)
if matc... | gpl-2.0 |
lgeek/koreader | frontend/ui/widget/iconbutton.lua | 1 | 4174 | --[[--
Button with a big icon image! Designed for touch devices.
--]]
local Device = require("device")
local HorizontalGroup = require("ui/widget/horizontalgroup")
local HorizontalSpan = require("ui/widget/horizontalspan")
local InputContainer = require("ui/widget/container/inputcontainer")
local ImageWidget = require... | agpl-3.0 |
nyczducky/darkstar | scripts/zones/Abyssea-Misareaux/npcs/Cavernous_Maw.lua | 29 | 1194 | -----------------------------------
-- Area: Abyssea - Misareaux
-- NPC: Cavernous Maw
-- @pos 676.070, -16.063, 318.999 216
-- Teleports Players to Valkrum Dunes
-----------------------------------
package.loaded["scripts/zones/Abyssea-Misareaux/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
nyczducky/darkstar | scripts/zones/Fort_Karugo-Narugo_[S]/Zone.lua | 12 | 1787 | -----------------------------------
--
-- Zone: Fort_Karugo-Narugo_[S] (96)
--
-----------------------------------
package.loaded["scripts/zones/Fort_Karugo-Narugo_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Fort_Karugo-Narugo_[S]/TextIDs");
require("scripts/globals/settings");
requ... | gpl-3.0 |
jbeich/Aquaria | files/scripts/entities/monkey.lua | 6 | 6804 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
TheHipster/cwlourp | schema/commands/sh_objectphysdesc.lua | 1 | 1155 | --[[
© 2013 CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
--]]
local COMMAND = Clockwork.command:New("ObjectPhysDesc");
COMMAND.tip = "Set the physical description of an object.";
COMMAND.flags = CMD_DEFAULT;
-- Called when the command has bee... | unlicense |
jbeich/Aquaria | files/scripts/entities/horseshoe.lua | 6 | 2519 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
rovemonteux/score_framework | src/data/velocity.lua | 1 | 1257 | -------------------------------------------------------------------------------
---- Score Framework - A Lua-based framework for creating multi-track MIDI files.
---- Copyright (c) 2017 Rove Monteux
----
---- This program is free software; you can redistribute it and/or modify it
---- under the terms of the GNU Ge... | gpl-3.0 |
nyczducky/darkstar | scripts/globals/spells/bluemagic/terror_touch.lua | 26 | 1998 | -----------------------------------------
-- Spell: Terror Touch
-- Additional effect: Weakens attacks. Accuracy varies with TP
-- Spell cost: 62 MP
-- Monster Type: Undead
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 3
-- Stat Bonus: HP-5 MP+10
-- Level: 40
-- Casting Time: 3.25 seconds
-- Recast Time: 21 sec... | gpl-3.0 |
cornernote/minetest-skyblock | skyblock_levels/register_misc.lua | 1 | 1547 | --[[
Skyblock for Minetest
Copyright (c) 2015 cornernote, Brett O'Donnell <cornernote@gmail.com>
Source Code: https://github.com/cornernote/minetest-skyblock
License: GPLv3
]]--
-- new player
minetest.register_on_newplayer(function(player)
local player_name = player:get_player_name()
-- add rewards to player inv... | gpl-3.0 |
dtrip/awesome | lib/wibox/layout/manual.lua | 2 | 7495 | ---------------------------------------------------------------------------
-- A layout with widgets added at specific positions.
--
-- Use cases include desktop icons, complex custom composed widgets, a floating
-- client layout and fine grained control over the output.
--
--@DOC_wibox_layout_defaults_manual_EXAMPLE@
... | gpl-2.0 |
Reisz/LoveGui | src/components/Item/init.lua | 1 | 2361 | local class = require "lib.middleclass"
local matcher = require "util.matching"
local Component = require "util.Component"
local Point = require "util.Point"
local Rect = require "util.Rect"
local util = require "components.Item.util"
local Item = class("Item", Component)
Item.property.x = 0
Item.property.y = 0
Ite... | apache-2.0 |
nyczducky/darkstar | scripts/globals/items/red_curry_bun.lua | 12 | 2142 | -----------------------------------------
-- ID: 5759
-- Item: red_curry_bun
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- TODO: Group effects
-- Health 25
-- Strength 7
-- Agility 1
-- Intelligence -2
-- Attack % 23 (cap 150)
-- Ranged Atk % 23 (cap 150)
-- Demon Killer 4
-- Resist Sle... | gpl-3.0 |
blackman1380/selfbot | plugins/inRealm.lua | 4 | 36450 | -- 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_admin1(msg) then
local group_creator = msg.from.print_name
create_group_chat (group_creator, group_na... | gpl-2.0 |
nyczducky/darkstar | scripts/globals/abilities/pets/lightning_breath.lua | 29 | 1347 | ---------------------------------------------------
-- Lightning Breath
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/globals/ability");
-------------------------------------------... | gpl-3.0 |
Pelagicore/meta-pelux | recipes-extended/images/pelux-image-update/raspberrypi3/emmcsetup2.lua | 1 | 2692 | function os.capture(cmd)
local f = assert(io.popen(cmd, 'r'))
local s = assert(f:read('*a'))
f:close()
return s
end
function file_exists(name)
local f=io.open(name,"r")
if f~=nil then io.close(f) return true else return false end
end
function cmdexec(cmd)
local ret, s, status = os.execute(cmd)
if (status ~= 0... | mit |
sjznxd/lc-20121231 | libs/lucid-http/luasrc/lucid/http/handler/catchall.lua | 52 | 2325 | --[[
LuCId HTTP-Slave
(c) 2009 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
local srv = require "... | apache-2.0 |
jakianroy/NGUI_To_Be_Best | Assets/LuaFramework/ToLua/Lua/list.lua | 6 | 3694 | --------------------------------------------------------------------------------
-- Copyright (c) 2015 - 2016 , 蒙占志(topameng) topameng@gmail.com
-- All rights reserved.
-- Use, modification and distribution are subject to the "MIT License"
-----------------------------------------------------------------... | gpl-3.0 |
OpenSpace/OpenSpace | scripts/configuration_helper.lua | 1 | 17999 | -- Helper functions that are useful to customize the openspace.cfg loading
-- #######################################################################################
-- ## Public functions ##
-- ##########################################################... | mit |
bgshih/crnn | third_party/lmdb-lua-ffi/src/lmdb_ffi.lua | 1 | 6066 | local ffi = require "ffi"
ffi.cdef[[
/* missing types */
typedef uint16_t mode_t;
typedef struct MDB_env MDB_env;
typedef struct MDB_txn MDB_txn;
typedef unsigned int MDB_dbi;
typedef struct MDB_cursor MDB_cursor;
typedef int (MDB_msg_func)(const char *msg, void *ctx);
struct MDB_val {
size_t mv_size;
void ... | mit |
nyczducky/darkstar | scripts/globals/weaponskills/impulse_drive.lua | 25 | 1541 | -----------------------------------
-- Impulse Drive
-- Polearm weapon skill
-- Skill Level: 240
-- Delivers a two-hit attack. Damage varies with TP.
-- In order to obtain Impulse Drive, the quest Methods Create Madness must be completed.
-- Will stack with Sneak Attack.
-- Aligned with the Shadow Gorget, Soil Gorget &... | gpl-3.0 |
nyczducky/darkstar | scripts/zones/Monarch_Linn/Zone.lua | 17 | 1569 | -----------------------------------
--
-- Zone: Monarch_Linn
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Monarch_Linn/TextIDs"] = nil;
require("scripts/zones/Monarch_Linn/TextIDs");
-----------------------------------
-- onInitialize
-------------------... | gpl-3.0 |
nyczducky/darkstar | scripts/globals/abilities/curing_waltz_ii.lua | 19 | 2262 | -----------------------------------
-- Ability: Curing Waltz II
-- Heals HP to target player.
-- Obtained: Dancer Level 30
-- TP Required: 35%
-- Recast Time: 00:08
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- onAbi... | gpl-3.0 |
nyczducky/darkstar | scripts/zones/AlTaieu/npcs/qm2.lua | 18 | 1499 | -----------------------------------
-- Area: Al'Taieu
-- NPC: ??? (Jailer of Justice Spawn)
-- Allows players to spawn the Jailer of Justice by trading the Second Virtue, Deed of Moderation, and HQ Xzomit Organ to a ???.
-- @pos , -278 0 -463
-----------------------------------
package.loaded["scripts/zones/AlTaieu/Te... | gpl-3.0 |
nyczducky/darkstar | scripts/zones/Windurst_Walls/npcs/Esmeralda.lua | 14 | 1051 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Esmeralda
-- Type: Consul. Rep.
-- @zone 239
-- @pos 128.629 -12.5 139.387
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-------------... | gpl-3.0 |
jbeich/Aquaria | files/scripts/entities/cathedraldoor.lua | 6 | 3137 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
SamOatesPlugins/cuberite | Server/Plugins/APIDump/Classes/BlockEntities.lua | 8 | 18601 | return
{
cBlockEntity =
{
Desc = [[
Block entities are simply blocks in the world that have persistent data, such as the text for a sign
or contents of a chest. All block entities are also saved in the chunk data of the chunk they reside in.
The cBlockEntity class acts as a common ancestor for all the indi... | apache-2.0 |
nyczducky/darkstar | scripts/globals/items/tropical_clam.lua | 12 | 1333 | -----------------------------------------
-- ID: 5124
-- Item: Tropical Clam
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Vitality 4
-- Dexterity -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
... | gpl-3.0 |
GSRMOHAMMAD/fortg | plugins/short.lua | 11 | 1680 | local function run(msg, matches)
local yon = http.request('http://api.yon.ir/?url='..URL.escape(matches[1]))
local jdat = json:decode(yon)
local bitly = https.request('https://api-ssl.bitly.com/v3/shorten?access_token=f2d0b4eabb524aaaf22fbc51ca620ae0fa16753d&longUrl='..URL.escape(matches[1]))
local data = j... | gpl-2.0 |
dtrip/awesome | tests/test-selection-watcher.lua | 4 | 3431 | -- Test the selection watcher API
local runner = require("_runner")
local spawn = require("awful.spawn")
local header = [[
local lgi = require("lgi")
local Gdk = lgi.Gdk
local Gtk = lgi.Gtk
local GLib = lgi.GLib
local clipboard = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD)
clipboard:set_text("This is an experiment", -... | gpl-2.0 |
nyczducky/darkstar | scripts/zones/Ifrits_Cauldron/npcs/Treasure_Coffer.lua | 13 | 5074 | -----------------------------------
-- 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/keyi... | gpl-3.0 |
nyczducky/darkstar | scripts/zones/Northern_San_dOria/npcs/Ulycille.lua | 53 | 1947 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Ulycille
-- Type: Woodworking Adv. Synthesis Image Support
-- @pos -183.320 9.999 269.651 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
AquariaOSE/Aquaria | files/scripts/maps/node_vision_veil.lua | 6 | 1440 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
HalosGhost/irc_bot | src/plugins/macro.lua | 1 | 2710 | local modules = modules
local sql = require 'lsqlite3'
local plugin = {}
local fetch_all = nil
local insert = nil
local delete = nil
plugin.loaded = {}
local refresh = function ()
plugin.loaded = nil
plugin.loaded = {}
fetch_all:reset()
for _, p, s in fetch_all:urows() do
plugin.loaded[#plu... | gpl-2.0 |
nyczducky/darkstar | scripts/globals/items/shivas_shotel.lua | 42 | 1177 | -----------------------------------------
-- ID: 17711
-- Item: Shiva's Shotel
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-----------------------------------
function onAdditionalEffec... | gpl-3.0 |
lgeek/koreader | frontend/ui/widget/buttonprogresswidget.lua | 1 | 2790 | local Blitbuffer = require("ffi/blitbuffer")
local Button = require("ui/widget/button")
local Device = require("device")
local Geom = require("ui/geometry")
local HorizontalGroup = require("ui/widget/horizontalgroup")
local InputContainer = require("ui/widget/container/inputcontainer")
local FrameContainer = require("u... | agpl-3.0 |
nyczducky/darkstar | scripts/zones/North_Gustaberg_[S]/npcs/Cavernous_Maw.lua | 29 | 1418 | -----------------------------------
-- Area: North Gustaberg [S]
-- NPC: Cavernous Maw
-- @pos 466 0 479 88
-- Teleports Players to North Gustaberg
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyite... | gpl-3.0 |
ahmedjabbar/uor | plugins/invite.lua | 34 | 1291 | do
local function callbackres(extra, success, result)
--vardump(result)
local user = 'user#id'..result.peer_id
local chat = 'chat#id'..extra.chatid
local channel = 'channel#id'..extra.chatid
if is_banned(result.id, extra.chatid) then
send_large_msg(chat, 'User is banned.')
send_large_msg(channel, ... | gpl-2.0 |
nyczducky/darkstar | scripts/globals/items/pot-au-feu_+1.lua | 12 | 1722 | -----------------------------------------
-- ID: 5753
-- Item: Pot-au-feu
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength 4
-- Agility 4
-- Intelligence -3
-- Ranged Attk % 16 Cap 65
-- Ranged ACC % 11 Cap 55
-- Enmity -3
-----------------------------------------
require("scripts... | gpl-3.0 |
dtrip/awesome | lib/gears/table.lua | 2 | 11619 | ---------------------------------------------------------------------------
--- Table module for gears.
--
-- Examples
-- =======
--
-- Using `cycle_value`, you can cycle through values in a table.
-- When the end of the table is reached, `cycle_value` loops around to the beginning.
-- @DOC_text_gears_table_cycle_value... | gpl-2.0 |
nyczducky/darkstar | scripts/globals/abilities/pets/attachments/tension_spring_ii.lua | 27 | 1092 | -----------------------------------
-- Attachment: Tension Spring II
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onUseAbility
-----------------------------------
function onEquip(pet)
pet:addMod(MOD_ATTP, 6)
pet:addMod(MOD_RATTP, 6)
end
funct... | gpl-3.0 |
nyczducky/darkstar | scripts/globals/spells/bluemagic/mp_drainkiss.lua | 21 | 1824 | -----------------------------------------
-- Spell: MP Drainkiss
-- Steals an enemy's MP. Ineffective against undead
-- Spell cost: 20 MP
-- Monster Type: Amorphs
-- Spell Type: Magical (Dark)
-- Blue Magic Points: 4
-- Stat Bonus: MP+5
-- Level: 42
-- Casting Time: 4 seconds
-- Recast Time: 90 seconds
-- Magic Bursts ... | gpl-3.0 |
xyysnybzi/ember | src/components/ogre/widgets/Settings.lua | 3 | 28953 | SettingsRestartDialog = {}
function SettingsRestartDialog:new()
local ret = {}
setmetatable(ret, {__index = SettingsRestartDialog})
ret:buildWidget()
return ret
end
function SettingsRestartDialog:buildWidget()
self.widget = guiManager:createWidget()
self.widget:loadMainSheet("SettingsRestartDialog.layout", ... | gpl-3.0 |
abeschneider/nn | ParallelCriterion.lua | 8 | 1283 | local ParallelCriterion, parent = torch.class('nn.ParallelCriterion', 'nn.Criterion')
function ParallelCriterion:__init(repeatTarget)
parent.__init(self)
self.criterions = {}
self.weights = {}
self.gradInput = {}
self.repeatTarget = repeatTarget
end
function ParallelCriterion:add(criterion, weight)
... | bsd-3-clause |
AquariaOSE/Aquaria | files/scripts/entities/eyespiral.lua | 6 | 3691 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
lgeek/koreader | frontend/docsettings.lua | 3 | 8116 | --[[--
This module is responsible for reading and writing `metadata.lua` files
in the so-called sidecar directory
([Wikipedia definition](https://en.wikipedia.org/wiki/Sidecar_file)).
]]
local DataStorage = require("datastorage")
local dump = require("dump")
local lfs = require("libs/libkoreader-lfs")
local logger = r... | agpl-3.0 |
sjznxd/lc-20121231 | modules/admin-full/luasrc/controller/admin/system.lua | 33 | 10498 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008-2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
htt... | apache-2.0 |
nyczducky/darkstar | scripts/zones/Quicksand_Caves/npcs/_5s8.lua | 14 | 1273 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Ornate Door
-- Door blocked by Weight system
-- @pos -334 0 659 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Caves/TextIDs... | gpl-3.0 |
rovemonteux/score_framework | src/data/notes.lua | 1 | 11534 | -------------------------------------------------------------------------------
---- Score Framework - A Lua-based framework for creating multi-track MIDI files.
---- Copyright (c) 2017 Rove Monteux
----
---- This program is free software; you can redistribute it and/or modify it
---- under the terms of the GNU General... | gpl-3.0 |
kanstrup/wcn36xx-dissector | wcn36xx_txbd.lua | 1 | 7896 | -- Copyright (C) 2013 Mikael Kanstrup (mikael.kanstrup@gmail.com)
--
-- This program is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.... | gpl-2.0 |
jbeich/Aquaria | files/scripts/maps/node_hint_healthplant.lua | 6 | 1148 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
jbeich/Aquaria | files/scripts/maps/node_secret02.lua | 5 | 1993 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
AquariaOSE/Aquaria | files/scripts/maps/node_secret02.lua | 5 | 1993 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
nyczducky/darkstar | scripts/zones/Port_Jeuno/npcs/Narsha.lua | 27 | 1730 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Narsha
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/chocobo");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- on... | gpl-3.0 |
ld-test/xlsxwriter | test/unit/app/test_app02.lua | 2 | 1715 | ----
-- Tests for the xlsxwriter.lua app class.
--
-- Copyright 2014, John McNamara, jmcnamara@cpan.org
--
require "Test.More"
require "Test.LongString"
plan(1)
----
-- Tests setup.
--
local expected
local got
local caption
local App = require "xlsxwriter.app"
local app
-- Remove extra whitespace in the formatted X... | mit |
nyczducky/darkstar | scripts/globals/items/woozyshroom.lua | 12 | 1178 | -----------------------------------------
-- ID: 4373
-- Item: woozyshroom
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Strength -4
-- Mind 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
----------... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.