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 |
|---|---|---|---|---|---|
Gael-de-Sailly/minetest-minetestforfun-server | mods/plantlife_modpack/vines/functions.lua | 8 | 4297 | vines.register_vine = function( name, defs, biome )
local biome = biome
local groups = { vines=1, snappy=3, flammable=2 }
local vine_name_end = 'vines:'..name..'_end'
local vine_name_middle = 'vines:'..name..'_middle'
local vine_image_end = "vines_"..name.."_end.png"
local vine_image_middle = "vines_"..na... | unlicense |
maximilianofaccone/puppy-siberian | root/.conky/.lua/scripts/haunted.lua | 1 | 8927 | --[[
Infinity by Harshit
original by someone i can't remeber the name
This script draws the left rings of the screen that is with the clock
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
lua_load ~/scripts/haunted.lua
lua_draw_hook_pre ring_stats
Chang... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Grand_Palace_of_HuXzoi/Zone.lua | 4 | 3431 | -----------------------------------
--
-- Zone: Grand_Palace_of_HuXzoi (34)
--
-----------------------------------
package.loaded["scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Grand_Palace_of_HuXzoi/TextID... | gpl-3.0 |
velukh/MplusLedger | Libs/AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua | 1 | 7589 | --[[-----------------------------------------------------------------------------
EditBox Widget
-------------------------------------------------------------------------------]]
local Type, Version = "EditBox", 27
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Typ... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Norg/npcs/Jirokichi.lua | 19 | 1259 | -----------------------------------
-- Area: Norg
-- NPC: Jirokichi
-- Type: Tenshodo Merchant
-- @pos -1.463 0.000 18.846 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/s... | gpl-3.0 |
joshimoo/Algorithm-Implementations | Bogosort/Lua/Yonaba/bogosort_test.lua | 27 | 1956 | -- Tests for bogosort.lua
local bogosort = require 'bogosort'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1 end
local stat... | mit |
zhouxiaoxiaoxujian/skynet | service/bootstrap.lua | 14 | 1203 | local skynet = require "skynet"
local harbor = require "skynet.harbor"
require "skynet.manager" -- import skynet.launch, ...
local memory = require "skynet.memory"
skynet.start(function()
local sharestring = tonumber(skynet.getenv "sharestring" or 4096)
memory.ssexpand(sharestring)
local standalone = skynet.getenv... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Apollyon/Zone.lua | 9 | 10782 | -----------------------------------
--
-- Zone: Apollyon
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
require("scripts/zones/Apollyon/TextIDs");
require("scripts/globals/limbus");
-----------------------------------
-- ... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/cotton_candy.lua | 39 | 1205 | -----------------------------------------
-- ID: 5708
-- Item: Cotton Candy
-- Food Effect: 5 Min, All Races
-----------------------------------------
-- MP % 10 Cap 200
-- MP Healing 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChec... | gpl-3.0 |
antoniocarelli/Conky | Painel/conky_carelli_Painel.lua | 1 | 6432 | require 'cairo'
-- Converte o ângulo de graus para radianos
-- E corrige o ângulo inicial do arco (-90º)
function angulo( graus )
radianos = (graus - 90) * (math.pi/180)
return radianos
end
function rgb( r, g, b )
red = r/255
green = g/255
blue = b/255
return red, green, blue
end
function in... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Southern_San_dOria/npcs/Corua.lua | 4 | 2255 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Corua
-- Only sells when San d'Oria controlls Ronfaure Region
-- @ zone 230
-- @pos -66 2 -11
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
------------------... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/vehicles/Old Cars/Gallardo.lua | 2 | 2539 | ///////////////////////////////
// © 2009-2010 Pulsar Effect //
// All rights reserved //
///////////////////////////////
// This material may not be //
// reproduced, displayed, //
// modified or distributed //
// without the express prior //
// written permission of the //
// the copyright holder. //
... | mit |
sjznxd/lc-20130127 | libs/web/luasrc/sauth.lua | 78 | 2928 | --[[
Session authentication
(c) 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$
]]--
--- LuCI sess... | apache-2.0 |
PioneerMakeTeam/Cretaceous | wicker/protocomponents/base.lua | 6 | 6344 | --[[
-- Defines the concept of a component prototype.
-- A component prototype is a class whose objects are component classes.
--
-- The constructor of the instantiated classes should be a field called "new".
--
-- All instantiated component classes inherit from BasicComponent below.
-- Actual inheritance should be don... | mit |
daofeng2015/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk/meetme.lua | 68 | 1037 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local ast = require "luci.asterisk"
cbimap = Map("asterisk", "MeetMe - Rooms")
meetme = cbimap:section(TypedSection, "meetme", "MeetMe Rooms")
meetme.addremove = true
meetme.anonymous = true
meetme.template = ... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/ulbuconut.lua | 36 | 1146 | -----------------------------------------
-- ID: 5966
-- Item: Ulbuconut
-- Food Effect: 5 Min, All Races
-----------------------------------------
-- Agility -3
-- Intelligence +1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
--... | gpl-3.0 |
Gael-de-Sailly/minetest-minetestforfun-server | minetestforfun_game/mods/default/tools.lua | 6 | 17115 | -- mods/default/tools.lua
-- The hand
minetest.register_item(":", {
type = "none",
wield_image = "wieldhand.png",
wield_scale = {x=1,y=1,z=2.5},
tool_capabilities = {
full_punch_interval = 0.8,
max_drop_level = 0,
groupcaps = {
crumbly = {times = {[2] = 2.75, [3] = 0.65}, uses = 0, maxlevel = 1},
snapp... | unlicense |
priderobot/titan | bot/utils.lua | 9 | 24252 | 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 |
FFXIOrgins/FFXIOrgins | scripts/zones/Buburimu_Peninsula/npcs/Ishin_IM.lua | 8 | 2946 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Ishin, I.M.
-- Outpost Conquest Guards
-- @pos -481.164 -32.858 49.188 118
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Metalworks/npcs/Chantain.lua | 38 | 1049 | -----------------------------------
-- Area: Metalworks
-- NPC: Chantain
-- Type: Consulate Representative
-- @zone: 237
-- @pos 21.729 -17 -30.888
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
require("... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/woozyshroom.lua | 35 | 1191 | -----------------------------------------
-- ID: 4373
-- Item: woozyshroom
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Strength -4
-- Mind 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChec... | gpl-3.0 |
Aethaeryn/wesnoth-umc | Aethaeryns_Mod/lua/filter.lua | 1 | 2861 | #define MOD_LUA_FILTER
<<
-- This file is a wrapper over a bunch of WML filters so ugly and
-- verbose WML metatables don't clutter the rest of the mod.
aeth_mod_filter = {}
aeth_mod_filter.bad_summon_terrain = "X*, Q*, *^Xm, Mv"
aeth_mod_filter.host1 = T["variable"] { name = "side_number", equals = MOB_SIDE }
aeth_mod... | gpl-2.0 |
luzexi/slua-3rd-lib | build/android/jni/luajit/dynasm/dasm_ppc.lua | 61 | 37064 | ------------------------------------------------------------------------------
-- DynASM PPC module.
--
-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _in... | mit |
sjznxd/luci-0.11-aa | protocols/ppp/luasrc/model/cbi/admin_network/proto_ppp.lua | 24 | 3761 | --[[
LuCI - Lua Configuration Interface
Copyright 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
http://www.apache.org/licenses/LICENSE-2.0
]]--
local ma... | apache-2.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/plantlife_modpack/vines/vines.lua | 11 | 2382 | vines.register_vine( 'root', {
description = "Roots",
average_length = 9,
},{
choose_random_wall = true,
avoid_nodes = {"vines:root_middle"},
avoid_radius = 5,
spawn_delay = 500,
spawn_chance = 10,
spawn_surfaces = {
"default:dirt_with_grass",
"default:dirt"
},
spawn_on_bottom = true,
plan... | unlicense |
FFXIOrgins/FFXIOrgins | scripts/globals/items/meat_mithkabob.lua | 35 | 1460 | -----------------------------------------
-- ID: 4381
-- Item: meat_mithkabob
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength 5
-- Agility 1
-- Intelligence -2
-- Attack % 22
-- Attack Cap 60
-----------------------------------------
require("scripts/globals/status");... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Windurst_Woods/npcs/Zahsa_Syalmhaia.lua | 38 | 1052 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Zahsa Syalmhaia
-- Type: Great War Veteran NPC
-- @zone: 241
-- @pos 13.710 1.422 -83.198
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = ni... | gpl-3.0 |
sjznxd/luci-0.11-aa | applications/luci-statistics/luasrc/statistics/rrdtool/definitions/iwinfo.lua | 8 | 1846 | --[[
Luci statistics - wireless plugin diagram definition
(c) 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
http://www.apache.org/licenses/LICENSE... | apache-2.0 |
mahdikord/mahdihop | plugins/invite.lua | 14 | 1173 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- Ignore ... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Korroloka_Tunnel/Zone.lua | 2 | 1644 | -----------------------------------
--
-- Zone: Korroloka_Tunnel (173)
--
-----------------------------------
package.loaded["scripts/zones/Korroloka_Tunnel/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Korroloka_Tunnel/TextIDs");
---------... | gpl-3.0 |
adamsumm/SMBRNN | Torch/evaluate.lua | 1 | 4835 |
--[[
This file samples characters from a trained model
Code is based on implementation in
https://github.com/oxford-cs-ml-2015/practical6
]]--
require 'torch'
require 'nn'
require 'nngraph'
require 'optim'
require 'lfs'
require 'util.OneHot'
require 'util.misc'
cmd = torch.CmdLine()
cmd:text()
cmd:text('Sample ... | mit |
joshimoo/Algorithm-Implementations | Ranrot-B-Pseudo_Random_Number_Generator/Lua/Yonaba/ranrotb_prng_test.lua | 27 | 1059 | -- Tests for ranrotb_prng.lua
local ranrotb_prng = require 'ranrotb_prng'
-- Custom string splitting function
-- Taken from: https://github.com/Yonaba/Allen/blob/master/allen.lua#L279
local function string_split(str,n)
n = n or 1
if not (#str > 0) then return nil end
local _chopped = {}
for w in str:gmatch(... | mit |
sjznxd/luci-0.11-aa | applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo_config.lua | 12 | 1330 | --[[
LuCI - Lua Configuration Interface
(c) 2009 Daniel Dickinson
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: smap_devinfo_config.lua 5448 200... | apache-2.0 |
hacker44-h44/1104 | vir/Auto_Leave.lua | 125 | 1025 | --[[
Kicking ourself (bot) from unmanaged groups.
When someone invited this bot to a group, the bot then will chek if the group is in its moderations (moderation.json). If not, the bot will exit immediately by kicking itself out of that group.
No switch available. You need to turn it on or off using !plugins command.... | gpl-2.0 |
lordporya1/lord | plugins/autoleave.lua | 125 | 1025 | --[[
Kicking ourself (bot) from unmanaged groups.
When someone invited this bot to a group, the bot then will chek if the group is in its moderations (moderation.json). If not, the bot will exit immediately by kicking itself out of that group.
No switch available. You need to turn it on or off using !plugins command.... | gpl-2.0 |
lytedev/worldspark | src/scenes/game.lua | 1 | 3602 | --[[
File: game.lua
Author: Daniel "lytedev" Flanagan
Website: http://dmf.me
Game scene.
]]--
local Game = {}
local Server = require("src.net.server")
local Client = require("src.net.client")
local Packet = require("lib.net.packet")
settings = {}
function Game:init()
local sans11 = assetManager:getFont('open... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Aht_Urhgan_Whitegate/npcs/Mushayra.lua | 38 | 1034 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Mushayra
-- Type: Standard NPC
-- @pos -111.551 -6.999 -61.720 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Bastok_Mines/npcs/Medicine_Eagle.lua | 19 | 1474 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Medicine Eagle
-- Involved in Mission: Bastok 6-1, 8-1
-- @pos -40 0 38 234
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions"... | gpl-3.0 |
sjznxd/luci-0.11-aa | modules/failsafe/luasrc/controller/failsafe/failsafe.lua | 38 | 5205 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008-2011 Jo-Philipp Wich <xm@subsignal.org>
Copyright 2012 Daniel Golle <dgolle@allnet.de>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/LaLoff_Amphitheater/bcnms/ark_angels_2.lua | 6 | 3037 | -----------------------------------
-- Area: LaLoff Amphitheater
-- Name: Ark Angels 2 (Tarutaru)
-----------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
require("scripts/globals/mis... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Riverne-Site_A01/npcs/_0u1.lua | 19 | 1338 | -----------------------------------
-- Area: Riverne Site #A01
-- NPC: Unstable Displacement
-----------------------------------
package.loaded["scripts/zones/Riverne-Site_A01/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Riverne-Site_A01/Text... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/The_Celestial_Nexus/npcs/_513.lua | 6 | 1389 |
-----------------------------------
-- Area: Celestial Nexus
-- NPC: _515
-----------------------------------
package.loaded["scripts/zones/The_Celestial_Nexus"] = nil;
package.loaded["scripts/globals/bcnm"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/quests")... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Southern_San_dOria/npcs/Maleme.lua | 7 | 1517 | -----------------------------------
-- Area: Southern San dOria
-- NPC: Maleme
-- Type: Weather Checker NPC
-- Involved in Quest: Love and Ice
-- @zone: 230
-- @pos 33.162 0.000 21.070
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
------------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/plate_of_beef_paella.lua | 36 | 1503 | -----------------------------------------
-- ID: 5972
-- Item: Plate of Beef Paella
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- HP 40
-- Strength 5
-- Intelligence -1
-- Attack % 18 Cap 90
-- Undead Killer 5
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Norg/npcs/Edal-Tahdal.lua | 17 | 4274 | -----------------------------------
-- Area: Norg
-- NPC: Edal-Tahdal
-- Starts and Finishes Quest: Trial by Water
-- @pos -13 1 -20 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("s... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Mine_Shaft_2716/bcnms/century_of_hardship.lua | 4 | 1741 | -----------------------------------
-- Area: Mine_Shaft_2716
-- Name: century_of_hardship
-- bcnmID : 736
-- inst 2 -54 -1 -100
-- inst 3 425 -121 -99
-----------------------------------
package.loaded["scripts/zones/Mine_Shaft_2716/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Quicksand_Caves/npcs/Fountain_of_Kings.lua | 17 | 1486 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Fountain of Kings
-- @pos 567 18 -939 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Caves/TextIDs");
require("scri... | gpl-3.0 |
sjznxd/lc-20130127 | modules/admin-full/luasrc/model/cbi/admin_system/startup.lua | 14 | 2804 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010-2012 Jo-Philipp Wich <xm@subsignal.org>
Copyright 2010 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 t... | apache-2.0 |
PioneerMakeTeam/Cretaceous | wicker/plugins/lockandkey.lua | 6 | 2237 | local Lambda = wickerrequire "paradigms.functional"
local Logic = wickerrequire "lib.logic"
local Pred = wickerrequire "lib.predicates"
-------
require "map/lockandkey"
local KEYS_ARRAY = _G.KEYS_ARRAY
local KEYS = _G.KEYS
local LOCKS_ARRAY = _G.LOCKS_ARRAY
local LOCKS = _G.LOCKS
local LOCKS_KEYS = _G.LOCKS_KEYS... | mit |
soroushwilson/wilson1 | bot/utils.lua | 7 | 24878 | 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 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/magma_steak.lua | 36 | 1537 | -----------------------------------------
-- ID: 6071
-- Item: Magma Steak
-- Food Effect: 180 Min, All Races
-----------------------------------------
-- Strength +8
-- Attack +23% Cap 180
-- Ranged Attack +23% Cap 180
-- Vermin Killer +5
-----------------------------------------
require("scripts/globals/status");
-... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Bastok_Markets/npcs/Malene.lua | 7 | 1972 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Malene
-- Starts & Finishes Quest: The Cold Light of Day
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scrip... | gpl-3.0 |
sjznxd/lc-20130127 | modules/niu/luasrc/model/cbi/niu/wireless/ap1.lua | 35 | 10012 | --[[
LuCI - Lua Configuration Interface
Copyright 2009 Steven Barth <steven@midlink.org>
Copyright 2009 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
http://w... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Upper_Jeuno/npcs/Antonia.lua | 37 | 1317 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Antonia
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
require("scripts/zones/Upper_Jeuno/TextIDs");
-----------------------------------
... | gpl-3.0 |
jaxxzer/ardupilot-rov | Tools/CHDK-Scripts/Cannon S100/3DR_EAI_S100.lua | 178 | 29694 |
--[[
KAP UAV Exposure Control Script v3.2
-- Released under GPL by waterwingz and wayback/peabody
http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script
3DR EAI 1.0 is a fork of KAP 3.1 with settings specific to Canon cameras triggered off the Pixhawk autopilot.
Changelog:
-Modified Tv, Av, and... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Dragons_Aery/mobs/Nidhogg.lua | 3 | 1652 | -----------------------------------
-- Area: Dragons Aery
-- HNM: Nidhogg
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize Action
---------------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/bluetail.lua | 18 | 1256 | -----------------------------------------
-- ID: 4399
-- Item: Bluetail
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 3
-- Mind -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
----------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/plate_of_salmon_sushi.lua | 35 | 1477 | -----------------------------------------
-- ID: 5663
-- Item: plate_of_salmon_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength 1
-- Accuracy % 14
-- Ranged ACC % 14
-----------------------------------------
require("scripts/globals/status");
-------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/spells/frost.lua | 6 | 1644 | -----------------------------------------
-- Spell: Frost
-- Deals ice damage that lowers an enemy's agility and gradually reduces its HP.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
----------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/berry_snowcone.lua | 39 | 1200 | -----------------------------------------
-- ID: 5710
-- Item: Berry Snowcone
-- Food Effect: 5 Min, All Races
-----------------------------------------
-- MP % 30 Cap 30
-- Intelligence 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemC... | gpl-3.0 |
mpeterv/luassert | spec/state_spec.lua | 6 | 5024 | describe("Tests states of the assert engine", function()
it("checks levels created/reverted", function()
local start = assert:snapshot()
assert.is_nil(start.next)
local snapshot1 = assert:snapshot()
assert.is.table(start.next)
assert.are.equal(start.next, snapshot1)
assert.are.equal(... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Windurst_Waters/npcs/Prestapiq.lua | 36 | 1606 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Prestapiq
-- Only sells when Windurst controls Movalpolos
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Windurst_... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/roast_carp.lua | 35 | 1277 | -----------------------------------------
-- ID: 4537
-- Item: roast_carp
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 1
-- Mind -1
-- Ranged ATT % 14
-----------------------------------------
require("scripts/globals/status");
-----------------------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Eastern_Altepa_Desert/npcs/Sahgygy_WW.lua | 8 | 2955 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: Sahgygy, W.W.
-- 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 |
Capster/Metro | lua/metro/ui/dtilelayout.lua | 2 | 4879 | --[[ _
( )
_| | __ _ __ ___ ___ _ _
/'_` | /'__`\( '__)/' _ ` _ `\ /'_` )
( (_| |( ___/| | | ( ) ( ) |( (_| |
`\__,_)`\____)(_) (_) (_) (_)`\__,_)
--]]
local PANEL = {}
AccessorFunc( PANEL, "m_iSpaceX", "SpaceX" )
AccessorFun... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Selbina/npcs/Quelpia.lua | 33 | 1707 | -----------------------------------
-- Area: Selbina
-- NPC: Quelpia
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
require("scripts/globals/shop");
-----------... | gpl-3.0 |
loic-fejoz/loic-fejoz-fabmoments | laser-slicer/Unicorn-OVERVIEW.lua | 1 | 1771 | --[[
The MIT License (MIT)
Copyright (c) 2018 Loïc Fejoz
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, ... | mit |
comp500/CCSnippets | lib.lua | 1 | 1699 | -- lib() for CC by comp500
-- MIT license - https://github.com/comp500/CCSnippets/
function lib(...)
local c,r,s = fs.combine,{},shell.resolveProgram
local function fn(a) return fs.exists(a) and a or false end
for i,v in ipairs(arg) do
local file = fn(c('usr/apis',v)) or fn(v) or s(v)
if no... | mit |
msburgess3200/PERP | gamemodes/perp/gamemode/vehicles/minivan.lua | 1 | 2525 |
VEHICLE = {};
VEHICLE.ID = '5';
VEHICLE.FID = '44';
VEHICLE.Name = "MiniVan";
VEHICLE.Make = "Toyota";
VEHICLE.Model = "Minivan Q1";
VEHICLE.Script = "minivan";
VEHICLE.Cost = 60000;
VEHICLE.PaintJobCost = 3000;
VEHICLE.DF = true;
VEHICLE.CustomBodyGroup = nil;
VEHICLE.PaintJobs ... | mit |
msburgess3200/PERP | gamemodes/perp/gamemode/sh_vehicles.lua | 1 | 1382 |
VEHICLE_DATABASE = {};
// Display order for garage.
VEHICLE_DISPLAY_ORDER = {"a", "b", "c", "d", "e", "f", "g", "h", "i","j", "k", "l", "m", "n", "o", "p", "q", "r", "t", "s", "2", "C", "6", "u", "5", "A", "B", "E", "4", "3", "F", "G", "I", "J", "K", "L", "N", "O", "1", "H", "7", "8", "9", "P", "Q", "R", "S", "T"};... | mit |
JulianVolodia/awesome | lib/gears/debug.lua | 4 | 2575 | ---------------------------------------------------------------------------
-- @author Uli Schlachter
-- @copyright 2010 Uli Schlachter
-- @release @AWESOME_VERSION@
-- @module gears.debug
---------------------------------------------------------------------------
local error = error
local tostring = tostring
local tr... | gpl-2.0 |
Mogara/QSanguosha | lua/ai/standard-wei-ai.lua | 5 | 46116 | --[[********************************************************************
Copyright (c) 2013-2014 - QSanguosha-Rara
This file is part of QSanguosha-Hegemony.
This game 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... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/items/ammo_shotgun.lua | 1 | 1146 |
local ITEM = {};
ITEM.ID = 32;
ITEM.Reference = "ammo_shotgun";
ITEM.Name = "Buckshot";
ITEM.Description = "Allows you to fire your shotguns.\n\nGrants 10 buckshot cartridges.";
ITEM.Weight = 5;
ITEM.Cost = 1000;
ITEM.MaxStack = 100;
ITEM.InventoryModel = "models/items/boxbuck... | mit |
elyasgalikeshi/renjer | plugins/invite.lua | 1111 | 1195 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
Nitroteam/s | plugins/invite.lua | 1111 | 1195 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
TW1STaL1CKY/pac3 | lua/pac3/core/client/parts/projected_texture.lua | 1 | 3008 | local PART = {}
PART.ClassName = "projected_texture"
PART.Group = "effects"
PART.Icon = 'icon16/lightbulb.png'
PART.ProperColorRange = true
pac.StartStorableVars()
pac.GetSet(PART, "Shadows", true)
pac.GetSet(PART, "Orthographic", false)
pac.GetSet(PART, "NearZ", 1)
pac.GetSet(PART, "FarZ", 2048)
pac.GetSet(PA... | gpl-3.0 |
hb9cwp/snabbswitch | src/lib/virtio/virtq.lua | 15 | 3106 | -- Implements virtio virtq
module(...,package.seeall)
local freelist = require("core.freelist")
local lib = require("core.lib")
local memory = require("core.memory")
local ffi = require("ffi")
local C = ffi.C
local band = bit.band
local rshift = bit.rshift
require("lib.virtio.virtio.h... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Newton_Movalpolos/npcs/Mining_Point.lua | 6 | 1106 | -----------------------------------
-- Area: Newton Movalpolos
-- NPC: Mining Point
-----------------------------------
package.loaded["scripts/zones/Newton_Movalpolos/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/mining");
require("scripts/zones/Newton_Movalpolos/TextIDs")... | gpl-3.0 |
routek/qMp | packages/qmp-system/files/usr/lib/lua/luci/model/cbi/qmp/network_adv.lua | 2 | 4262 | --[[
Copyright (C) 2011 Fundacio Privada per a la Xarxa Oberta, Lliure i Neutral guifi.net
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 ... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/fell_cleave.lua | 6 | 1243 | -----------------------------------
-- Fell Cleave
-- Great Axe weapon skill
-- Skill Level: 300
-- Delivers an area attack. Radius varies with TP.
-- Aligned with the Breeze Gorget, Thunder Gorget & Soil Gorget.
-- Aligned with the Breeze Belt, Thunder Belt & Soil Belt.
-- Element: None
-- Modifiers: STR... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Phomiuna_Aqueducts/Zone.lua | 15 | 1826 | -----------------------------------
--
-- Zone: Phomiuna_Aqueducts (27)
--
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/settings");
require("scripts/zones/P... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/cl_player.lua | 1 | 2618 |
function PLAYER:ForceEyeAngles ( NPC )
self.ForceEyeAnglesObj = NPC
end
local function ControlEyeAngles ( )
if (LocalPlayer() && IsValid(LocalPlayer()) && IsValid(LocalPlayer().ForceEyeAnglesObj)) then
LocalPlayer():SetEyeAngles(((LocalPlayer().ForceEyeAnglesObj:GetPos() + Vector(0, 0, 64)) - LocalPlayer():GetS... | mit |
joshimoo/Algorithm-Implementations | Bellman_Ford_Search/Lua/Yonaba/utils/graph.lua | 26 | 1959 | -- A point graph handler
-- This handler is devised for way-points graphs.
-- Way-points are locations represented via labelled nodes
-- and are connected with edges having a positive or negative weight.
-- It assumes edges are non-symmetric, that is if an edge exists from
-- a to b, it does not mean there is also an ... | mit |
unknownssassss/sudo_meti | plugins/plugins.lua | 4 | 4269 | do
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
return false
end
local function plugin_exists( name )
for k,v in pairs(plugins_names()) do
if name..'.lua' == v then
return true
end
end
re... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Tavnazian_Safehold/npcs/Nomad_Moogle.lua | 37 | 1089 | -----------------------------------
--
-- Nomad Moogle
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
require("scripts/zones/Tavnazian_Safehold/TextIDs");
-----------------------------------
-- onTrade Action
-... | gpl-3.0 |
hb9cwp/snabbswitch | lib/pflua/src/pf/ssa.lua | 26 | 10833 | module(...,package.seeall)
local utils = require('pf.utils')
local verbose = os.getenv("PF_VERBOSE");
local set, pp, dup, concat = utils.set, utils.pp, utils.dup, utils.concat
local relops = set('<', '<=', '=', '!=', '>=', '>')
--- SSA := { start=Label, blocks={Label=>Block, ...} }
--- Label := string
--- Block :=... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/spells/cursna.lua | 6 | 1739 | -----------------------------------------
-- Spell: Cursna
-- Removes curse and bane from target.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function OnMagicCastingCheck(cas... | gpl-3.0 |
Yarikx/remacs | test/manual/etags/lua-src/allegro.lua | 53 | 6727 | -- ase -- allegro-sprite-editor: the ultimate sprites factory
-- Copyright (C) 2001-2004 by David A. Capello
--
-- Read "LEGAL.txt" for more information.
-- internal routine
local function get_layer_by_name (sprite, layer, name)
if layer.readable == false then
return nil;
end
if layer.name and strcmp (layer... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Riverne-Site_A01/npcs/Unstable_Displacement.lua | 36 | 1068 | -----------------------------------
-- Area: Riverne Site #A01
-- NPC: Unstable Displacement
-- ENM Battlefield
-----------------------------------
package.loaded["scripts/zones/Riverne-Site_A01/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/R... | gpl-3.0 |
sjznxd/lc-20130127 | libs/core/luasrc/fs.lua | 96 | 8670 | --[[
LuCI - Filesystem tools
Description:
A module offering often needed filesystem manipulation functions
FileId:
$Id$
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 o... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Palborough_Mines/Zone.lua | 2 | 1605 | -----------------------------------
--
-- Zone: Palborough_Mines (143)
--
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Palborough_Mines/TextIDs");
-----------------------------------
-- onInit... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/items/furniture_desk.lua | 1 | 1188 |
local ITEM = {};
ITEM.ID = 51;
ITEM.Reference = "furniture_desk";
ITEM.Name = "Office Desk";
ITEM.Description = "Useful for store managers.\n\nLeft click to spawn as prop.";
ITEM.Weight = 30;
ITEM.Cost = 500;
ITEM.MaxStack = 100;
ITEM.InventoryModel = "models/props_combine/bre... | mit |
disintegrator/dotfiles | neovim/.config/nvim/plugin/dap-install.lua | 1 | 1092 | local dap_install = require('dap-install')
dap_install.config('go_delve', {
configurations = {
{
type = "go",
name = "Debug",
request = "launch",
program = "${file}"
},
{
type = "go",
name = "Debug test", -- configuration for debugging test files
request = "launc... | mit |
Lsty/ygopro-scripts | c24644634.lua | 3 | 2936 | --ナチュル・ホワイトオーク
function c24644634.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(24644634,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_CHAINING)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c24644634.spcon)
e1:Set... | gpl-2.0 |
Lsty/ygopro-scripts | c18282103.lua | 5 | 1352 | --魔轟神獣ガナシア
function c18282103.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(18282103,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetCondition(c18282103.spcon)
e1:SetTarget(c18282103.s... | gpl-2.0 |
robertbrook/Penlight | lua/pl/lexer.lua | 13 | 14347 | --- Lexical scanner for creating a sequence of tokens from text.
-- `lexer.scan(s)` returns an iterator over all tokens found in the
-- string `s`. This iterator returns two values, a token type string
-- (such as 'string' for quoted string, 'iden' for identifier) and the value of the
-- token.
--
-- Versions specializ... | mit |
rotmanmi/nn | SpatialBatchNormalization.lua | 8 | 7158 | --[[
This file implements Batch Normalization as described in the paper:
"Batch Normalization: Accelerating Deep Network Training
by Reducing Internal Covariate Shift"
by Sergey Ioffe, Christian Szegedy
This implementation is useful for inputs coming from convolution l... | bsd-3-clause |
Lsty/ygopro-scripts | c12338068.lua | 7 | 1409 | --真魔獣 ガーゼット
function c12338068.initial_effect(c)
c:EnableReviveLimit()
--spsummon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
c:RegisterEffect(e1)
--special summon
local e2=Effec... | gpl-2.0 |
Lsty/ygopro-scripts | c88071625.lua | 3 | 3680 | --The tyrant NEPTUNE
function c88071625.initial_effect(c)
--cannot special summon
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(aux.FALSE)
c:RegisterEffect(e1)
--summon/set with 1... | gpl-2.0 |
tryroach/vlc | share/lua/sd/magnatune.lua | 110 | 1935 | --[[
$Id$
Copyright © 2010 VideoLAN and AUTHORS
Authors: Rémi Duraffort <ivoire at videolan dot org>
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 ... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.