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 |
|---|---|---|---|---|---|
bnetcc/darkstar | scripts/zones/Abyssea-Misareaux/npcs/Dilapidated_gate0.lua | 1 | 1129 | -----------------------------------
-- Cavernous Maw
-- Teleport valkrum
-----------------------------------
package.loaded["scripts/zones/Abyssea-Misareaux/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/teleports"... | gpl-3.0 |
bhrt/nodeMCU | lua_examples/ucglib/GraphicsTest.lua | 11 | 3269 | -- setup SPI and connect display
function init_spi_display()
-- Hardware SPI CLK = GPIO14
-- Hardware SPI MOSI = GPIO13
-- Hardware SPI MISO = GPIO12 (not used)
-- CS, D/C, and RES can be assigned freely to available GPIOs
local cs = 8 -- GPIO15, pull-down 10k to GND
local dc = 4 -- GPIO2
... | mit |
ianchi/packages | utils/yunbridge/files/usr/bin/pretty-wifi-info.lua | 106 | 2067 | #!/usr/bin/lua
local function get_basic_net_info(network, iface, accumulator)
local net = network:get_network(iface)
local device = net and net:get_interface()
if device then
accumulator["uptime"] = net:uptime()
accumulator["iface"] = device:name()
accumulator["mac"] = device:mac()
accumulator["... | gpl-2.0 |
yswifi/APlan | build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/applications/luci-samba/luasrc/model/cbi/samba.lua | 79 | 2602 | --[[
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... | gpl-2.0 |
bnetcc/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Chauxnatte.lua | 3 | 1632 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Chauxnatte
-- !pos 85 1 -51 80
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/chocobo");
require("scripts/globals/status");
--------------------------------... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Lufaise_Meadows/mobs/Gloam_Servitor_Mage.lua | 1 | 1309 | -----------------------------------
-- Area: ?
-- VWNM:
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/utils");
require("scripts/globals/keyitems");
-----------------------------------
-- onMobInitialize Action
------------------------... | gpl-3.0 |
yswifi/APlan | build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/ipkg-ramips_24kec/luci-mod-admin-full/usr/lib/lua/luci/model/cbi/admin_network/routes.lua | 86 | 2540 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 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$
]]--
req... | gpl-2.0 |
avplayer/avbot | extension/luascript/libs/luascript/fruit.lua | 3 | 7908 | local T={
--[[超人系]]
"1 橡皮果实——Monkey·D·Luffy。靠无与伦比的拉伸性和弹性来进攻和防御,身体利用橡胶性质进行攻击。",
"2 分裂果实——Buggy。身体能随意分裂合并,脚不可离开地面,分裂部分不得离中心200以外,否则会失去控制。",
"3 光滑果实——Alvida。肌肤变得光滑,可以消去一切摩擦。",
"4 爆炸果实——Mr.5。身体任何部分都有爆破能力,可吞下炸弹。",
"5 重量果实——Ms. Valentine。可改变体重,1kg~1万kg。",
"6 融化果实——Mr.3。可制造蜡,凝固时像钢铁般坚硬,不耐火。",
"7 吞食果实——Wapol。可吞下任何东西,可将吞... | agpl-3.0 |
bnetcc/darkstar | scripts/globals/spells/bluemagic/refueling.lua | 5 | 1114 | -----------------------------------------
-- Spell: Refueling
-- Increases attack speed
-- Spell cost: 29 MP
-- Monster Type: Arcana
-- Spell Type: Magical (Wind)
-- Blue Magic Points: 4
-- Stat Bonus: AGI+2
-- Level: 48
-- Casting Time: 1.5 seconds
-- Recast Time: 30 seconds
-- Duration: 5 minutes
--
-- Combos: None
-... | gpl-3.0 |
Benjji/wesnoth | data/ai/micro_ais/cas/ca_herding_sheep_runs_dog.lua | 26 | 1437 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local function get_next_sheep(cfg)
local sheep = AH.get_units_with_moves {
side = wesnoth.current.side,
{ "and", cfg.filter_second },
{ "filter_adjacent", { side = wesnoth.current.side, { "and", cfg... | gpl-2.0 |
bnetcc/darkstar | scripts/zones/Misareaux_Coast/mobs/Bloodswiller_Fly.lua | 1 | 1296 | -----------------------------------
-- Area: ?
-- VWNM:
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/utils");
require("scripts/globals/keyitems");
-----------------------------------
-- onMobInitialize Action
------------------------... | gpl-3.0 |
jokeyrhyme/WTF | Account/RONWALDON/Frostmourne/Vocah/SavedVariables/Multishot.lua | 1 | 1341 |
MultishotPlayerScreens = {
["Vocah"] = {
"WoWScrnShot_Sun_Jan__4_212509_2015.jpg", -- [1]
"WoWScrnShot_Sun_Jan__4_212510_2015.jpg", -- [2]
"WoWScrnShot_Sun_Jan__4_212511_2015.jpg", -- [3]
"WoWScrnShot_Mon_Jan__5_060711_2015.jpg", -- [4]
"WoWScrnShot_Mon_Jan__5_060712_2015.jpg", -- [5]
"WoWScrnShot... | bsd-3-clause |
Atebite/NutScript | gamemode/core/meta/sh_character.lua | 3 | 6699 | -- 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 |
awesomeWM/awesome | docs/_parser.lua | 1 | 8219 | pcall(require, "luarocks.loader")
local gio = require("lgi").Gio
local gobject = require("lgi").GObject
local glib = require("lgi").GLib
local name_attr = gio.FILE_ATTRIBUTE_STANDARD_NAME
local type_attr = gio.FILE_ATTRIBUTE_STANDARD_TYPE
local module = {}
-- Like pairs(), but iterate over keys in a sorted manner. ... | gpl-2.0 |
vowstar/nodemcu-firmware | lua_examples/email/read_email_imap.lua | 82 | 4543 | ---
-- Working Example: https://www.youtube.com/watch?v=PDxTR_KJLhc
-- @author Miguel (AllAboutEE.com)
-- @description This example will read the first email in your inbox using IMAP and
-- display it through serial. The email server must provided unecrypted access. The code
-- was tested with an AOL and Time Warner c... | mit |
couchbaselabs/couchstore | tests/changessincefilter.lua | 2 | 1494 | package.path = package.path .. ";tests/?.lua"
local testlib = require("testlib")
function test_filter_deletes(dbname)
local t = {
{"k1", "value 1", 1,},
{"k2", "value 2", 1,},
{"k3", "value 3", 1,},
{"k4", "value 4", 1,},
{"k5", "value 5", 1,}
}
local db = couch.open(dbn... | apache-2.0 |
tiagosr/ld27-train | hump/class.lua | 35 | 2925 | --[[
Copyright (c) 2010-2013 Matthias Richter
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dis... | mit |
bnetcc/darkstar | scripts/globals/effects/str_down.lua | 34 | 1111 | -----------------------------------
--
-- EFFECT_STR_DOWN
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
if ((target:getStat(MOD_STR) - effect:ge... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Rabao/TextIDs.lua | 5 | 2043 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6402; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6408; -- Obtained: <item>
GIL_OBTAINED = 6409; -- Obtained <number> gil
KEYITEM_OBTAINED = 6411; -- Ob... | gpl-3.0 |
yswifi/APlan | build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/ipkg-ramips_24kec/luci-app-firewall/usr/lib/lua/luci/model/cbi/firewall/forwards.lua | 85 | 3942 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010-2012 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
htt... | gpl-2.0 |
gamebytes/pioneer | data/models/ships/caribou/caribou.lua | 1 | 9961 | define_model('caribou_eng_l', {
info = {
lod_pixels = { .1, 10, 100, 0 },
bounding_radius = 20,
},
static = function(lod)
if lod > 1 then
texture('caribou_leg.png')
end
load_obj('caribou_eng.obj', matrix.rotate(math.pi,v(0,0,1)))
end
})
define_model('caribou_eng_r', {
info = {
lod_... | gpl-3.0 |
consulo/consulo-lua | src/test/resources/non-test-system-files/lua5.1-tests/math.lua | 11 | 5437 | print("testing numbers and math lib")
do
local a,b,c = "2", " 3e0 ", " 10 "
assert(a+b == 5 and -b == -3 and b+"2" == 5 and "10"-c == 0)
assert(type(a) == 'string' and type(b) == 'string' and type(c) == 'string')
assert(a == "2" and b == " 3e0 " and c == " 10 " and -c == -" 10 ")
assert(c%a == 0 and a^b =... | apache-2.0 |
bnetcc/darkstar | scripts/zones/RuLude_Gardens/npcs/Nelcabrit.lua | 5 | 2561 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Nelcabrit
-- Involved in Mission: San d'Oria 3-3, 4-1
-- !pos -32 9 -49 243
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
package.loaded["scripts/globals/missions"] = nil;
--------------------------... | gpl-3.0 |
bnetcc/darkstar | scripts/globals/items/piece_of_akamochi_+1.lua | 3 | 2363 | -----------------------------------------
-- ID: 6261
-- Item: akamochi+1
-- Food Effect: 60 Min, All Races
-----------------------------------------
-- HP + 30 (Pet & Master)
-- Vitality + 4 (Pet & Master)
-- Attack + 17% Cap: 54 (Pet & Master) Pet Cap: 81
-- Accuracy + 11% Cap: 54 (Pet & Master) Pet Cap: 81
---------... | gpl-3.0 |
bnetcc/darkstar | scripts/globals/spells/sinewy_etude.lua | 5 | 1810 | -----------------------------------------
-- Spell: Sinewy Etude
-- Static STR Boost, BRD 24
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,targe... | gpl-3.0 |
bnetcc/darkstar | scripts/globals/mobskills/pw_pleiades_ray.lua | 2 | 1571 | ---------------------------------------------
-- Pleiades Ray
--
-- Description: Fires a magical ray at nearby targets. Additional effects: Paralysis + Blind + Poison + Plague + Bind + Silence + Slow
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: Unknown
-- Notes: Only used by Gurfurlur the Menacing... | gpl-3.0 |
awesomeWM/awesome | lib/wibox/layout/fixed.lua | 1 | 15158 | ---------------------------------------------------------------------------
-- Place many widgets in a column or row, until the available space is used up.
--
-- A `fixed` layout may be initialized with any number of child widgets, and
-- during runtime widgets may be added and removed dynamically.
--
-- On the main ax... | gpl-2.0 |
yinlei/tgame | tengine/base/string.lua | 1 | 1469 | --[[
string
]]
local string_find = string.find
local string_gsub = string.gsub
local string_len = string.len
local string_sub = string.sub
local string_upper = string.upper
local table_insert = table.insert
local tostring = tostring
function string.split(input, delimiter)
input = tostring(input)
de... | mit |
bnetcc/darkstar | scripts/zones/Lower_Jeuno/npcs/_6t2.lua | 5 | 4021 | -----------------------------------
-- Area: Lower Jeuno
-- Door: Merchant's House
-- Starts & Finishes Quest: Save My Son
-- Optional Involvement in Quest: Chocobo's Wounds, Path of the Beastmaster
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
package.loaded["scripts... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Lower_Jeuno/npcs/_l08.lua | 3 | 2485 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Streetlamp
-- Involved in Quests: Community Service
-- !pos -44 0 -47 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scr... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/PsoXja/npcs/_09f.lua | 5 | 1047 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _09f (Stone Gate)
-- Notes: Spawns Gargoyle when triggered
-- !pos 310.000 -1.925 -38.400 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/PsoXja/globals");... | gpl-3.0 |
mmcco/htop | test_spec.lua | 3 | 17897 | #!/usr/bin/env lua
local VISUALDELAY = os.getenv("VISUALDELAY")
local visual = VISUALDELAY or false
local visual_delay = VISUALDELAY and (tonumber(VISUALDELAY)) or 0.1
local short_delay = 0.3
local long_delay = 1
local unistd = require("posix.unistd")
local time = require("posix.time")
local curses = require("posix... | gpl-2.0 |
bnetcc/darkstar | scripts/zones/Arrapago_Reef/TextIDs.lua | 5 | 1314 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6386; -- Obtained: <item>
GIL_OBTAINED = 6387; -- Obtained <number> gil
KEYITEM_OBTAINED = 6389; -- Obtain... | gpl-3.0 |
bnetcc/darkstar | scripts/globals/mobskills/pit_ambush.lua | 7 | 1186 | ---------------------------------------------
-- Pit Ambush
--
-- Description: Only used by black antlions when they emerge to attack a player overhead.
-- Type: Physical
-- Utsusemi/Blink absorb: 1 shadow
-- Range: Melee
-- Notes:
---------------------------------------------
require("scripts/globals/settings");... | gpl-3.0 |
bnetcc/darkstar | scripts/globals/items/jack-o-pie.lua | 3 | 1079 | -----------------------------------------
-- ID: 5644
-- Item: jack-o-pie
-- Food Effect: 1hour, All Races
-----------------------------------------
-- MP 45
-- CHR -1
-- Intelligence 4
-- hMP +1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
func... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Port_Bastok/npcs/Powhatan.lua | 5 | 3113 | -----------------------------------
-- Area: Port Bastok
-- NPC: Powhatan
-- Starts & Ends Quest: Welcome to Bastok, Guest of Hauteur
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/... | gpl-3.0 |
sky-big/Ejabberd | plugins/luerl-develop/examples/benchmark/suites/sort-simple.lua | 5 | 1718 | local table_sort = table.sort
local math_random, math_randomseed = math.random, math.randomseed
--------------------------------------------------------------------------------
math_randomseed(12345)
--------------------------------------------------------------------------------
-- TODO: Benchmark some pure-lua qs... | gpl-2.0 |
bnetcc/darkstar | scripts/zones/Waughroon_Shrine/bcnms/up_in_arms.lua | 5 | 1811 | -----------------------------------
-- Area: Waughroon_Shrine
-- Name: up in arms
-- BCNM60
-----------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/zone... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Al_Zahbi/mobs/Panurgic_Ryubool_Ja.lua | 24 | 1590 | -----------------------------------
-- Area: Besieged
--
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/utils");
require("scripts/zones/Al_Zahbi/TextIDs");
-----------------------------------
-- onMobInitialize Action
--------------... | gpl-3.0 |
yswifi/APlan | build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/libs/core/luasrc/util.lua | 81 | 21858 | --[[
LuCI - Utility library
Description:
Several common useful Lua functions
License:
Copyright 2008 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.... | gpl-2.0 |
bnetcc/darkstar | scripts/globals/items/crepe_belle_helene.lua | 3 | 1229 | -----------------------------------------
-- ID: 5778
-- Item: Crepe Belle Helene
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- Intelligence +2
-- MP Healing +3
-- Magic Accuracy +21% (cap 50)
-- Magic Defense +1
-----------------------------------------
require("scripts/globals/status"... | gpl-3.0 |
zq317157782/raiden | src/scripts/lua/pbrt2lua_curlyhair.lua | 1 | 2484 | local pbrt2lua_curlyhair = {}
local file
local line
local index
function string:split(sep)
if sep == nil then
sep = '%s'
end
local t = {}
local i = 1
for str in string.gmatch(self, '([^' .. sep .. ']+)') do
t[i] = str
i = i + 1
end
return t
end
local function getli... | bsd-2-clause |
bnetcc/darkstar | scripts/zones/Southern_San_dOria/npcs/Ambrotien.lua | 5 | 5969 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Ambrotien
-- !pos 93.419 -0.001 -57.347 230
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/ke... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Nyzul_Isle/mobs/Raubahn.lua | 5 | 4802 | -----------------------------------
-- Area: Nyzul Isle (Nashmeira's Plea)
-- MOB: Raubahn
-----------------------------------
require("scripts/zones/Nyzul_Isle/IDs");
require("scripts/globals/status");
-----------------------------------
function onMobSpawn(mob)
mob:addListener("WEAPONSKILL_STATE_ENTER", "WS_STA... | gpl-3.0 |
amirazadi/BDReborn | libs/lua-redis.lua | 580 | 35599 | local redis = {
_VERSION = 'redis-lua 2.0.4',
_DESCRIPTION = 'A Lua client library for the redis key value storage system.',
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri',
}
-- The following line is used for backwards compatibility in order to keep the `Redis`
-- global module name. Using... | gpl-3.0 |
CRUELTM/cruel_bot | files/lua-redis.lua | 580 | 35599 | local redis = {
_VERSION = 'redis-lua 2.0.4',
_DESCRIPTION = 'A Lua client library for the redis key value storage system.',
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri',
}
-- The following line is used for backwards compatibility in order to keep the `Redis`
-- global module name. Using... | gpl-3.0 |
luc-tielen/lua-quickcheck | lqc/fsm/state.lua | 2 | 2186 |
--- Module that provides a DSL for specifying states in the FSM DSL framework.
-- @module lqc.fsm.state
-- @alias make_state
--- Checks if object is callable (a function or a functable)
-- @param obj Object to check
-- @return true if obj is callable; otherwise false.
local function is_callable(obj)
local type_obj ... | mit |
bnetcc/darkstar | scripts/globals/spells/raiton_san.lua | 1 | 1456 | -----------------------------------------
-- Spell: Raiton: San
-- Deals lightning damage to an enemy and lowers its resistance against earth.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-------... | gpl-3.0 |
TheRaffy/OpenRA | lua/sandbox.lua | 84 | 5098 | local sandbox = {
_VERSION = "sandbox 0.5",
_DESCRIPTION = "A pure-lua solution for running untrusted Lua code.",
_URL = "https://github.com/kikito/sandbox.lua",
_LICENSE = [[
MIT LICENSE
Copyright (c) 2013 Enrique García Cota
Permission is hereby granted, free of charge, to an... | gpl-3.0 |
leonardoaxe/OpenRA | lua/sandbox.lua | 84 | 5098 | local sandbox = {
_VERSION = "sandbox 0.5",
_DESCRIPTION = "A pure-lua solution for running untrusted Lua code.",
_URL = "https://github.com/kikito/sandbox.lua",
_LICENSE = [[
MIT LICENSE
Copyright (c) 2013 Enrique García Cota
Permission is hereby granted, free of charge, to an... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Southern_San_dOria/npcs/Nenne.lua | 5 | 1795 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Nenne
-- Starts and Finishes Quest: To Cure a Cough
-- @zone 230
-- !pos -114 -6 102
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/global... | gpl-3.0 |
bnetcc/darkstar | scripts/globals/items/bottle_of_assassins_drink.lua | 1 | 1100 | -----------------------------------------
-- ID: 5388
-- Item: Bottle of Assassin's Drink
-- Item Effect: +50 MAcc
-- Durration: 60 Secs
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----------------------------------------
func... | gpl-3.0 |
Ravenlord/ddp-testing | tests/calculated_values/row-derived/02_vc_persistent-update.lua | 1 | 2249 | --[[!
- This is free and unencumbered software released into the public domain.
-
- Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form
- or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
-
- In jurisdictions ... | unlicense |
Wiladams/LLUI | src/evdev.lua | 3 | 4883 |
local LIB_libevdev = require("evdev_ffi")
local exports = {
LIB_libevdef = LIB_libevdev;
libevdev_new = LIB_libevdev.libevdev_new;
libevdev_new_from_fd = LIB_libevdev.libevdev_new_from_fd;
libevdev_free = LIB_libevdev.libevdev_free;
libevdev_set_log_function = LIB_libevdev.libevdev_set_log_funct... | mit |
awesomeWM/awesome | tests/examples/wibox/layout/grid/expand.lua | 6 | 3894 | --DOC_GEN_IMAGE
local generic_widget = ... --DOC_HIDE_ALL
local wibox = require("wibox")
local beautiful = require("beautiful")
local w = wibox.widget {
{
{
{
markup = "<b>expand</b> = <i>false</i>\n<b>homogeneous</b> = <i>false</i>",
widget = wibox.widget.te... | gpl-2.0 |
Evsdd/domoticz | scripts/dzVents/examples/notify for dead system-alive check devices.lua | 19 | 1621 | -- this script can be used in conjunction with the System-alive checker plug-in.
-- the plugin pings a list of devices and creates switches for these devices
-- the reason for this script is to not treat devices as dead immediately after they
-- do not respond. More often than not, the second ping atempt does work. So ... | gpl-3.0 |
bnetcc/darkstar | scripts/globals/abilities/pets/tidal_wave.lua | 34 | 1116 | ---------------------------------------------------
-- Tidal Wave
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
require("/scripts/globals/magic");
-----------------------------------------------... | gpl-3.0 |
bnetcc/darkstar | scripts/globals/items/wild_cookie.lua | 3 | 1082 | -----------------------------------------
-- ID: 4577
-- Item: wild_cookie
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Aquan killer +12
-- Silence resistance +12
-- MP recovered while healing +5
-----------------------------------------
require("scripts/globals/status");
---------------... | gpl-3.0 |
LuaAV/libluaav | libluaav/displaylist.lua | 2 | 1050 | --- displaylist: A friendly wrapper for OpenGL display lists
-- @module displaylist
local gl = require "gl"
local glu = require "glu"
--- Create a displaylist
-- @param func A Lua function containing OpenGL commands to store in the displaylist
function displaylist(func) end
local displaylist = {}
displaylist.__index... | mit |
bnetcc/darkstar | scripts/globals/abilities/hasso.lua | 4 | 1160 | -----------------------------------
-- Ability: Hasso
-- Grants a bonus to attack speed, accuracy, and Strength when using two-handed weapons, but increases recast and casting times.
-- Obtained: Samurai Level 25
-- Recast Time: 1:00
-- Duration: 5:00
-----------------------------------
require("scripts/globals/setting... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Castle_Oztroja/npcs/_m73.lua | 5 | 1992 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _m73 (Torch Stand)
-- Notes: Opens door _477 when _m72 to _m75 are lit
-- !pos -140.146 -72.058 -137.145 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require(... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Northern_San_dOria/npcs/Lucretia.lua | 1 | 1726 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Lucretia
-- Guild Merchant NPC: Blacksmithing Guild
-- !pos -193.729 3.999 159.412 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
legospacy/hue-shift | themes/hueshift.lua | 1 | 1576 | --- Require ---
local Class = require("lib.hump.class")
local util = require("lib.self.util")
local beat = require("util.beat")
--- ==== ---
--- Localised functions ---
local sin = math.sin
--- ==== ---
--- Local functions ---
-- Taken from http://www.love2d.org/wiki/Chromatic_Paths
local a,b,c,d,e,f = 0.1,0.1,0.1... | mit |
awesomeWM/awesome | tests/examples/sequences/client/minimize1.lua | 1 | 1331 | --DOC_GEN_IMAGE --DOC_NO_USAGE --DOC_ASTERISK
local module = ... --DOC_HIDE
local awful = {tag = require("awful.tag"), layout = require("awful.layout")} --DOC_HIDE
require("awful.ewmh") --DOC_HIDE
screen[1]._resize {x = 0, width = 800, height = 600} --DOC_HIDE
awful.tag({ "one", "two", "three" }, screen[1], awful.layo... | gpl-2.0 |
Oneymus/Vyzor | component/image.lua | 1 | 2551 | --- This Component holds image data.
-- @classmod Image
local Base = require("vyzor.base")
local Alignment = require("vyzor.enum.alignment")
local Image = Base("Component", "Image")
--- Image constructor.
-- @function Image
-- @string _url The filepath of the image used by the Image Component.
-- @tparam[opt=Alignme... | mit |
yswifi/APlan | build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/contrib/luadoc/lua/luadoc/init.lua | 172 | 1333 | -------------------------------------------------------------------------------
-- LuaDoc main function.
-- @release $Id: init.lua,v 1.4 2008/02/17 06:42:51 jasonsantos Exp $
-------------------------------------------------------------------------------
local require = require
local util = require "luadoc.util"
log... | gpl-2.0 |
ryangmor/sehese | plugins/owners.lua | 68 | 12477 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
amirazadi/BDReborn | plugins/groupmanager.lua | 1 | 110414 | local function modadd(msg)
local hash = "gp_lang:"..msg.to.id
local lang = redis:get(hash)
-- superuser and admins only (because sudo are always has privilege)
if not is_admin(msg) then
if not lang then
return '_You are not bot admin_'
else
return '_شما مدیر ربات نمیباشید_'
end
end
local... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Windurst_Waters/npcs/Baehu-Faehu.lua | 5 | 1288 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Baehu-Faehu
-- Only sells when Windurst has control of Sarutabaruta
-- Confirmed shop stock, August 2013
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("s... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Horlais_Peak/npcs/relic.lua | 5 | 1538 | -----------------------------------
-- Area: Horlais Peak
-- NPC: <this space intentionally left blank>
-- !pos 450 -40 -31 139
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Horlais_Peak/TextIDs");
------------... | gpl-3.0 |
luc-tielen/lua-quickcheck | lqc/fsm/command.lua | 2 | 3702 |
--- Module for representing a command internally in a 'declarative' way
-- @module lqc.fsm.command
-- @alias command
local Gen = require 'lqc.generator'
local random = require 'lqc.random'
local deep_copy = require 'lqc.helpers.deep_copy'
--- Returns a string representation of the command.
-- @param cmd Command to ... | mit |
bnetcc/darkstar | scripts/zones/Northern_San_dOria/npcs/Vamorcote.lua | 5 | 2325 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Vamorcote
-- Starts and Finishes Quest: The Setting Sun
-- @zone 231
-- !pos -137.070 10.999 161.855
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Northern_San_dO... | gpl-3.0 |
casperkaae/nn | MixtureTable.lua | 2 | 5277 | local MixtureTable, parent = torch.class('nn.MixtureTable', 'nn.Module')
function MixtureTable:__init(dim)
parent.__init(self)
self.dim = dim
self._gaterView = torch.Tensor()
self._expert = torch.Tensor()
self._expertView = torch.Tensor()
self._sum = torch.Tensor()
self.size = torch.LongStorage()
... | bsd-3-clause |
bnetcc/darkstar | scripts/zones/Pashhow_Marshlands/npcs/Sharp_Tooth_IM.lua | 3 | 2980 | -----------------------------------
-- Area: Pashhow Marshlands
-- NPC: Sharp Tooth, I.M.
-- Type: Border Conquest Guards
-- !pos 536.291 23.517 694.063 109
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
TheRaffy/OpenRA | mods/ra/maps/allies-05a/AI.lua | 34 | 6702 |
IdlingUnits = { }
AttackGroupSize = 6
Barracks = { Barracks2, Barracks3 }
Rallypoints = { VehicleRallypoint1, VehicleRallypoint2, VehicleRallypoint3, VehicleRallypoint4, VehicleRallypoint5 }
WaterLZs = { WaterLZ1, WaterLZ2 }
Airfields = { Airfield1, Airfield2 }
Yaks = { }
SovietInfantryTypes = { "e1", "e1", "e2", ... | gpl-3.0 |
mwoz123/koreader | spec/unit/batterystat_spec.lua | 5 | 6974 | describe("BatteryState plugin tests #nocov", function()
local MockTime, module
local stat = function() --luacheck: ignore
return module:new():stat()
end,
setup(function()
require("commonrequire")
package.unloadAll()
require("document/canvascontext"):init(require("device... | agpl-3.0 |
jensmcatanho/raytracer | include/raytracer/lua/Lights/AmbientLight.lua | 1 | 1566 | --[[
The MIT License (MIT)
Copyright (c) 2016-2017 Jean Michel Catanho
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, m... | mit |
erosennin/koreader | spec/unit/cache_spec.lua | 6 | 1410 | require("commonrequire")
local DocumentRegistry = require("document/documentregistry")
local Cache = require("cache")
local DEBUG = require("dbg")
describe("Cache module", function()
local sample_pdf = "spec/front/unit/data/sample.pdf"
local doc = DocumentRegistry:openDocument(sample_pdf)
it("should clear ... | agpl-3.0 |
mrvigeo/uzzbot | plugins/meme.lua | 637 | 5791 | local helpers = require "OAuth.helpers"
local _file_memes = './data/memes.lua'
local _cache = {}
local function post_petition(url, arguments)
local response_body = {}
local request_constructor = {
url = url,
method = "POST",
sink = ltn12.sink.table(response_body),
headers = {},
red... | gpl-2.0 |
bnetcc/darkstar | scripts/globals/mobskills/pl_ill_wind_custom.lua | 2 | 1403 | ---------------------------------------------
-- Ill Wind
-- Description: Deals Wind damage to enemies within an area of effect. Additional effect: Dispel
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes Shadows
-- Range: Unknown radial
-- Notes: Only used by Puks in Mamook, Besieged, and the following Notorious Monste... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/AlTaieu/mobs/Ru_aern.lua | 7 | 2100 | -----------------------------------
-- Area: Al'Taieu
-- MOB: Ru_aern
-----------------------------------
require("scripts/zones/AlTaieu/MobIDs");
require("scripts/globals/missions");
-----------------------------------
function onMobInitialize(mob)
end;
function onMobSpawn(mob)
end;
function onMobDeath(mob, player... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Oldton_Movalpolos/npcs/Tarnotik.lua | 5 | 1409 | -----------------------------------
-- Area: Oldton Movalpolos
-- NPC: Tarnotik
-- Type: Standard NPC
-- !pos 160.896 10.999 -55.659 11
-----------------------------------
package.loaded["scripts/zones/Oldton_Movalpolos/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Oldton_Movalpolos/TextI... | gpl-3.0 |
casperkaae/nn | test.lua | 2 | 139533 | -- you can easily test specific units like this:
-- th -lnn -e "nn.test{'LookupTable'}"
-- th -lnn -e "nn.test{'LookupTable', 'Add'}"
local mytester = torch.Tester()
local jac
local sjac
local precision = 1e-5
local expprecision = 1e-4
local nntest = {}
local function equal(t1, t2, msg)
if (torch.type(t1) == "ta... | bsd-3-clause |
bnetcc/darkstar | scripts/globals/spells/temper.lua | 5 | 1132 | -----------------------------------------
--
-- Spell: Temper
--
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
... | gpl-3.0 |
AdoBeatTheWorld/waytomobile | projects/game003/src/protobuf/containers.lua | 15 | 2284 | --
--------------------------------------------------------------------------------
-- FILE: containers.lua
-- DESCRIPTION: protoc-gen-lua
-- Google's Protocol Buffers project, ported to lua.
-- https://code.google.com/p/protoc-gen-lua/
--
-- Copyright (c) 2010 , 林卓毅 (Zhuoyi Lin) netsnail@gmail.com
-... | mit |
bnetcc/darkstar | scripts/zones/Lower_Jeuno/npcs/_l06.lua | 3 | 2485 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Streetlamp
-- Involved in Quests: Community Service
-- !pos -60 5 -75 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scr... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Maquette_Abdhaljs-Legion/mobs/Auspicious_Entity_3.lua | 1 | 1704 | -----------------------------------
-- Area: Legion
-- Mob: Auspicious Entity
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/utils");
-- require("scripts/globals/msg");
-----------------------------------
-- onMobInitialize Action
----... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Ship_bound_for_Selbina/npcs/Rajmonda.lua | 1 | 1478 | -----------------------------------
-- Area: Ship bound for Selbina
-- NPC: Rajmonda
-- Type: Guild Merchant: Fishing Guild
-- !pos 1.841 -2.101 -9.000 220
-----------------------------------
package.loaded["scripts/zones/Ship_bound_for_Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
awesomeWM/awesome | tests/examples/sequences/client/move_to_tag1.lua | 1 | 1148 | --DOC_GEN_IMAGE --DOC_NO_USAGE
local module = ... --DOC_HIDE
local awful = {tag = require("awful.tag"), layout = require("awful.layout")} --DOC_HIDE
require("awful.ewmh") --DOC_HIDE
screen[1]._resize {x = 0, width = 160, height = 90} --DOC_HIDE
awful.tag({ "one", "two", "three" }, screen[1], awful.layout.suit.tile) --... | gpl-2.0 |
awesomeWM/awesome | tests/examples/awful/wallpaper/panning_inner.lua | 1 | 1977 | --DOC_GEN_IMAGE --DOC_HIDE_ALL --DOC_NO_USAGE
local awful = { wallpaper = require("awful.wallpaper") }
local wibox = require("wibox")
local gears = {color = require("gears.color") }
screen._track_workarea = true
screen[1]._resize {x = 0, y = 97, width = 96, height = 160}
screen._add_screen {x = 97, y = 129, width = 1... | gpl-2.0 |
bnetcc/darkstar | scripts/zones/Monastic_Cavern/Zone.lua | 1 | 1111 | -----------------------------------
--
-- Zone: Monastic_Cavern (150)
--
-----------------------------------
package.loaded["scripts/zones/Monastic_Cavern/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Monastic_Cavern/TextIDs");
-------------------------... | gpl-3.0 |
bnetcc/darkstar | scripts/globals/weaponskills/upheaval.lua | 24 | 1571 | -----------------------------------
-- Upheaval
-- Great Axe weapon skill
-- Skill Level: 357
-- Delivers a four-hit attack. Damage varies with TP.
-- In order to obtain Upheaval, the quest Martial Mastery must be completed.
-- Aligned with Flame Gorget, Light Gorget & Shadow Gorget.
-- Aligned with Flame Belt, Light B... | gpl-3.0 |
jpcy/bgfx | 3rdparty/spirv-headers/include/spirv/1.2/spirv.lua | 59 | 26887 | -- Copyright (c) 2014-2018 The Khronos Group Inc.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and/or associated documentation files (the "Materials"),
-- to deal in the Materials without restriction, including without limitation
-- the rights to use, copy, mod... | bsd-2-clause |
bnetcc/darkstar | scripts/zones/Abyssea-Tahrongi/mobs/Glavoid.lua | 1 | 1959 | -----------------------------------
-- Area: Abyssea - Tahrongi (45)
-- NM: Glavoid
-----------------------------------
package.loaded["scripts/zones/Abyssea-Tahrongi/TextIDs"] = nil;
require("scripts/zones/Abyssea-Tahrongi/TextIDs");
require("scripts/globals/abyssea");
require("scripts/globals/status");
require("scr... | gpl-3.0 |
abbasgh12345/creadabbas | plugins/owners.lua | 284 | 12473 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
tehran980/Tele_MAXBOT | 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 |
bnetcc/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Porter_Moogle.lua | 7 | 1177 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- !pos ? ? ? 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextI... | gpl-3.0 |
yswifi/APlan | build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/applications/luci-wshaper/luasrc/model/cbi/wshaper.lua | 53 | 2056 | --[[
LuCI - Lua Configuration Interface
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/licenses/LICENSE-2.0
]]--
r... | gpl-2.0 |
bnetcc/darkstar | scripts/zones/West_Ronfaure/mobs/Twinkling_Treant.lua | 2 | 5160 | -----------------------------------
-- Area: West Sarutabaruta
-- MOB: Twinkling Treant
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/msg");
-----------------------------------
function onMobInitialize(mob)
end;
function onMobSpawn(mob)
mob:setMod(MOD_UDMGPHYS, 0... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/East_Ronfaure/mobs/Twinkling_Treant.lua | 2 | 5160 | -----------------------------------
-- Area: West Sarutabaruta
-- MOB: Twinkling Treant
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/msg");
-----------------------------------
function onMobInitialize(mob)
end;
function onMobSpawn(mob)
mob:setMod(MOD_UDMGPHYS, 0... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.