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 |
|---|---|---|---|---|---|
rpetit3/darkstar | scripts/zones/Norg/npcs/Oruga.lua | 13 | 2921 | -----------------------------------
-- Area: Norg
-- NPC: Oruga
-- Standard Info NPC
-----------------------------------
require("scripts/globals/pathfind");
local path = {
-0.016294, -1.251156, -30.703135,
1.135162, -1.295192, -30.737705,
2.267773, -1.620833, -30.756174,
3.344393, -1.879029, -30.778761,
5.049327, -2... | gpl-3.0 |
vfedoroff/prosody-modules | mod_pubsub_post/mod_pubsub_post.lua | 32 | 1139 | module:depends("http");
local st = require "util.stanza";
local json = require "util.json";
local formdecode = require "net.http".formdecode;
local uuid_generate = require "util.uuid".generate;
local timestamp_generate = require "util.datetime".datetime;
local pubsub_service = module:depends("pubsub").service;
funct... | mit |
karpathy/nn | Module.lua | 8 | 8166 | local Module = torch.class('nn.Module')
function Module:__init()
self.gradInput = torch.Tensor()
self.output = torch.Tensor()
end
function Module:parameters()
if self.weight and self.bias then
return {self.weight, self.bias}, {self.gradWeight, self.gradBias}
elseif self.weight then
return {sel... | bsd-3-clause |
rpetit3/darkstar | scripts/globals/besieged.lua | 52 | 10827 |
-----------------------------------------------------------------
-- Variable for getNationTeleport and getRegionPoint
-----------------------------------------------------------------
IS = 3;
ZENI = 10;
AHTURHGAN = 3;
LEUJAOAM_ASSAULT_POINT = 0;
MAMOOL_ASSAULT_POINT = 1;
LEBROS_ASSAULT_POINT = 2;
PERIQIA_ASSAULT_PO... | gpl-3.0 |
esguk811/DarkRP | entities/weapons/gmod_tool/stools/shareprops.lua | 8 | 1758 | TOOL.Category = "Falco Prop Protection"
TOOL.Name = "Share props"
TOOL.Command = nil
TOOL.ConfigName = ""
function TOOL:RightClick(trace)
if not IsValid(trace.Entity) or CLIENT then return true end
trace.Entity.SharePhysgun1 = nil
trace.Entity.ShareGravgun1 = nil... | mit |
MinetestForFun/server-minetestforfun-creative | minetestforfun_game/mods/default/tools.lua | 1 | 13614 | -- 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 |
MinetestForFun/server-minetestforfun-creative | minetestforfun_game/mods/wool/init.lua | 4 | 1829 | -- minetest/wool/init.lua
-- Backwards compatibility with jordach's 16-color wool mod
minetest.register_alias("wool:dark_blue", "wool:blue")
minetest.register_alias("wool:gold", "wool:yellow")
local wool = {}
-- This uses a trick: you can first define the recipes using all of the base
-- colors, and then some recipes... | unlicense |
rpetit3/darkstar | scripts/globals/items/sleep_dagger.lua | 31 | 1065 | -----------------------------------------
-- ID: 16497
-- Item: Sleep Dagger
-- Additional Effect: Sleep
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-----------------------------------
... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/RuLude_Gardens/npcs/HomePoint#1.lua | 27 | 1266 | -----------------------------------
-- Area: RuLude Gardens
-- NPC: HomePoint#1
-- @pos -6 3 0.001 243
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/RuLude_Gardens/TextIDs");
require("scripts/globals/homep... | gpl-3.0 |
open3dengineering/laydrop-firmware | src/test/test_utils.lua | 2 | 3088 | local utils = require("util.utils")
local M = {
_is_test = true,
_skip = { 'dump', 'symlink', 'getUciSectionName', 'symlinkInRoot' },
_wifibox_only = { 'getUciSectionName', 'symlinkInRoot' }
}
local function compareTables(t1, t2)
if #t1 ~= #t2 then return false end
for i=1,#t1 do
if t1[i] ~= t2[i] then return ... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Caedarva_Mire/npcs/Logging_Point.lua | 13 | 1065 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: Logging Point
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/logging");
require("scripts/zones/Caedarva_Mire/TextIDs");
---------------... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/spells/bluemagic/animating_wail.lua | 28 | 1226 | -----------------------------------------
-- Spell: Animating Wail
-- Increases attack speed
-- Spell cost: 53 MP
-- Monster Type: Undead
-- Spell Type: Magical (Wind)
-- Blue Magic Points: 5
-- Stat Bonus: HP+20
-- Level: 79
-- Casting Time: 2 Seconds
-- Recast Time: 45 Seconds
-- 5 minutes
--
-- Combos: Dual Wield
-... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Newton_Movalpolos/npcs/Sleakachiq.lua | 32 | 1794 | -----------------------------------
-- Area: Newton Movalpolos
-- NPC: Sleakachiq
-- @pos 162.504 14.999 136.901 12
-----------------------------------
package.loaded["scripts/zones/Newton_Movalpolos/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Newton_Movalpolos/TextIDs");
---------... | gpl-3.0 |
dmccuskey/dmc-objects | examples/Corona-Graphics-Fishies/dmc_corona/lib/dmc_lua/lua_promise.lua | 43 | 6191 | --====================================================================--
-- lua_promise.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (C) 2014-2015 David McCuskey. All Rights Reserved.
Permission ... | mit |
tvandijck/premake-core | tests/test_stress.lua | 23 | 1507 | ---
-- tests/tests_stress.lua
--
-- Stress test for Premake. Creates a large (tunable, see local variables
-- at start of file) number of projects, files, and configurations. Then
-- generates them all while profiling the result.
--
-- Run it like normal, i.e. `premake5 --file=test_stress.lua gmake`. The
-- profile re... | bsd-3-clause |
rpetit3/darkstar | scripts/zones/Kuftal_Tunnel/npcs/Grounds_Tome.lua | 30 | 1094 | -----------------------------------
-- Area: Kuftal Tunnel
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,tr... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Konschtat_Highlands/npcs/Telepoint.lua | 13 | 1709 | -----------------------------------
-- Area: Konschtat Highlands
-- NPC: Telepoint
-- @pos 220.000 19.104 300.000 106
-----------------------------------
package.loaded["scripts/zones/Konschtat_Highlands/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/K... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_ir9.lua | 13 | 1728 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: _ir9 (Iron Gate)
-- @pos 70 -1.5 140 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Phomiuna... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/La_Theine_Plateau/npcs/Coumaine.lua | 27 | 1692 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Coumaine
-- Type: Chocobo Vendor
-----------------------------------
require("scripts/globals/chocobo");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/globals/status");
--------------------------------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Windurst_Woods/npcs/Millerovieunet.lua | 12 | 1480 | -----------------------------------
-- Area: Windurst_Woods
-- NPC: Millerovieunet
-- Only sells when Windurst controlls Qufim Region
-- Confirmed shop stock, August 2013
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
tonkah/Browser | lib/chrome.lua | 6 | 4921 | ------------------------------------------------------------
-- Add custom luakit:// scheme rendering functions --
-- © 2010-2012 Mason Larobina <mason.larobina@gmail.com> --
-- © 2010 Fabian Streitel <karottenreibe@gmail.com> --
------------------------------------------------------------
-- Get lua env... | gpl-3.0 |
lovasoa/lovalova | main.lua | 1 | 4362 | score = {
current = 0,
best = 0
}
function score:set (n)
self.current = math.floor(n)
if self.current > self.best then
self.best = self.current
end
end
function score:save()
love.filesystem.write('score', self.best)
end
function score:load()
if love.filesystem.exists('score') then
self.best = math.max(love.f... | gpl-2.0 |
fegimanam/mer | plugins/banhammer.lua | 24 | 19084 | -- data saved to moderation.json
do
-- make sure to set with value that not higher than stats.lua
local NUM_MSG_MAX = 4 -- Max number of messages per TIME_CHECK seconds
local TIME_CHECK = 4
local NO_KICK = 'I will not kick myself, sudoers, admins or moderators!'
local NO_BAN = 'I will not ban myself, sudoe... | gpl-2.0 |
Dejvino/nodemcu-firmware | lua_modules/ds18b20/ds18b20.lua | 9 | 3362 | --------------------------------------------------------------------------------
-- DS18B20 one wire module for NODEMCU
-- NODEMCU TEAM
-- LICENCE: http://opensource.org/licenses/MIT
-- Vowstar <vowstar@nodemcu.com>
--------------------------------------------------------------------------------
-- Set module name as ... | mit |
rpetit3/darkstar | scripts/globals/spells/curaga_iii.lua | 28 | 1281 | -----------------------------------------
-- Spell: Curaga III
-- Restores HP of all party members within area of effect.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnS... | gpl-3.0 |
Endika/Algorithm-Implementations | Symmetric_Difference/Lua/Yonaba/symdiff_test.lua | 26 | 1051 | -- Tests for symmdiff.lua
local symdiff = require 'symdiff'
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
loca... | mit |
vseledkin/april-ann | packages/ann/optimizer/test/test-digits-asgd.lua | 3 | 5453 | mathcore.set_use_cuda_default(util.is_cuda_available())
--
local check = utest.check
local T = utest.test
--
T("ASGDTest", function()
-- un generador de valores aleatorios... y otros parametros
bunch_size = tonumber(arg[1]) or 64
semilla = 1234
weights_random = random(semilla)
description... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Den_of_Rancor/npcs/_4g4.lua | 27 | 2344 | -----------------------------------
-- Area: Den of Rancor
-- NPC: Lantern (NW)
-- @pos -59 45 24 160
-----------------------------------
package.loaded["scripts/zones/Den_of_Rancor/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Den_of_Rancor/TextIDs")... | gpl-3.0 |
Afforess/Misanthrope | libs/biter/ai/grow_hive.lua | 1 | 1893 |
local GrowHive = {stages = {}}
local Log = function(str, ...) BiterBase.LogAI("[GrowHive] " .. str, ...) end
GrowHive.stages.clear_trees = function(base, data)
local surface = base.queen.surface
local pos = base.queen.position
table.each(surface.find_entities_filtered({area = Position.expand_to_area(pos, ... | isc |
TakingInitiative/wesnoth | data/ai/micro_ais/micro_ai_wml_tag.lua | 4 | 2108 | local H = wesnoth.require "lua/helper.lua"
local W = H.set_wml_action_metatable {}
local MAIH = wesnoth.require("ai/micro_ais/micro_ai_helper.lua")
wesnoth.micro_ais = {}
-- Load all default MicroAIs
wesnoth.require("ai/micro_ais/mai-defs/animals.lua")
wesnoth.require("ai/micro_ais/mai-defs/bottleneck.lua")
wesnoth.r... | gpl-2.0 |
tectronics/papercrop | mylib_filesystem.lua | 15 | 12795 |
function os.createDir(path)
if os.isUnix() then
os.execute('mkdir "'..path..'"')
else
os.execute("md "..string.gsub(path, '/', '\\'))
end
end
function os.rename(name1, name2)
if os.isUnix() then
os.execute("mv "..name1.." "..name2)
else
local cmd=string.gsub("move "..name1.."... | gpl-2.0 |
nokizorque/ucd | UCDdamage/anti-dm.lua | 1 | 3889 |
function onPlayerDamage(attacker, weapon, bodypart, loss)
if (source.team and source.team.name == "Admins") then
cancelEvent()
return
end
if (exports.UCDjail:isPlayerJailed(source)) then
cancelEvent()
return
end
if (exports.UCDsafeZones:isElementWithinSafeZone(source)) then
if (source:getWantedLevel... | mit |
rpetit3/darkstar | scripts/globals/items/dish_of_spaghetti_boscaiola_+1.lua | 17 | 1721 | -----------------------------------------
-- ID: 5201
-- Item: dish_of_spaghetti_boscaiola_+1
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health % 18
-- Health Cap 125
-- Magic 40
-- Strength -5
-- Dexterity -2
-- Vitality 2
-- Mind 4
-- Magic Regen While Healing 1
--------------------... | gpl-3.0 |
vfedoroff/prosody-modules | mod_log_messages_sql/mod_log_messages_sql.lua | 32 | 5292 | -- Based on mod_mam_sql
-- Copyright (C) 2011-2012 Kim Alvefur
--
-- This file is MIT/X11 licensed.
local st = require "util.stanza";
local jid_bare = require "util.jid".bare;
local jid_split = require "util.jid".split;
local serialize = require"util.json".encode, require"util.json".decode;
local tostring = tostring;... | mit |
rpetit3/darkstar | scripts/zones/Abyssea-Uleguerand/npcs/qm17.lua | 17 | 1379 | -----------------------------------
-- Zone: Abyssea-Ullegrand
-- NPC: ???
-- Spawns: Isgebind
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/keyitems");
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(pl... | gpl-3.0 |
prances/robo | libs/dateparser.lua | 502 | 6212 | local difftime, time, date = os.difftime, os.time, os.date
local format = string.format
local tremove, tinsert = table.remove, table.insert
local pcall, pairs, ipairs, tostring, tonumber, type, setmetatable = pcall, pairs, ipairs, tostring, tonumber, type, setmetatable
local dateparser={}
--we shall use the host OS's... | gpl-3.0 |
davidyu/mld49 | src/art/levels/short.lua | 1 | 2645 | return {
width = 10,
height = 10,
tilewidth = 64,
tileheight = 64,
orientation = "orthogonal",
properties = {
["hideborderindicators"] = "true",
["indicatorxoffset"] = "-1",
},
tilesets = {
{
name = "main_tiles",
tilewidth = 64,
tileheight = 64,
spacing = 0,
m... | mit |
rpetit3/darkstar | scripts/zones/Mhaura/Zone.lua | 15 | 2946 | -----------------------------------
--
-- Zone: Mhaura (249)
--
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/zone");
require("scripts/zones/Mhaura/TextIDs");
require("scripts/g... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Chateau_dOraguille/npcs/Rahal.lua | 13 | 6274 | -----------------------------------
-- Area: Chateau d'Oraguille
-- NPC: Rahal
-- Involved in Quests: The Holy Crest, Lure of the Wildcat (San d'Oria)
-- @pos -28 0.1 -6 233
-----------------------------------
package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil;
-----------------------------------
requir... | gpl-3.0 |
vseledkin/april-ann | packages/ann/optimizer/test/test-digits-simplex.lua | 3 | 4606 | -- mathcore.set_use_cuda_default(util.is_cuda_available())
--
local check = utest.check
local T = utest.test
--
T("SimplexConvexTest", function()
local opt = ann.optimizer.simplex()
opt:set_option("tol", 1e-10)
-- optimize quadractic function: f(x) = 3*x^2 - 2*x + 10
local function f(x) return (3*x^2 - ... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/FeiYin/TextIDs.lua | 15 | 2354 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6558; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6563; -- Obtained: <item>
GIL_OBTAINED = 6564; -- Obtained <number> gil
KEYITEM_OBTAINED = 6566; -- Obtain... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/serving_of_elysian_eclair.lua | 18 | 1475 | -----------------------------------------
-- ID: 5560
-- Item: Serving of Elysian Eclair
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10
-- MP +15
-- Intelligence +2
-- HP Recoverd while healing 2
-- MP Recovered while healing 2
--------------------------------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Cirdas_Caverns_U/Zone.lua | 19 | 1071 | -----------------------------------
--
-- Zone: Cirdas Caverns U
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Cirdas_Caverns_U/TextIDs"] = nil;
require("scripts/zones/Cirdas_Caverns_U/TextIDs");
-----------------------------------
-- onInitialize
-------... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/spells/dokumori_san.lua | 26 | 1207 | -----------------------------------------
-- Spell: Dokumori: San
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,targe... | gpl-3.0 |
vfedoroff/prosody-modules | mod_carbons_copies/mod_carbons_copies.lua | 32 | 2242 | -- Send carbons v0 style copies of incoming messages to clients which
-- are not (yet) capable of Message Carbons (XEP-0280).
--
-- This extension integrates with the mod_carbons plugin in such a way
-- that a client capable of Message Carbons will not get a v0 copy.
--
-- This extension can be enabled for all users by... | mit |
rpetit3/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Elysia.lua | 13 | 2383 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Elysia
-- Starts Quest: Unforgiven
-- @zone 26
-- @pos -50.410 -22.204 -41.640
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
require("scripts/zones/Tavnazian_Safehold/TextIDs")
require("script... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Mog_Garden/npcs/Porter_Moogle.lua | 41 | 1524 | -----------------------------------
-- Area: Mog Garden
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- @zone 280
-- @pos TODO
-----------------------------------
package.loaded["scripts/zones/Mog_Garden/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mog_Garden/TextIDs");
requ... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Quicksand_Caves/Zone.lua | 12 | 6617 | -----------------------------------
--
-- Zone: Quicksand_Caves (208)
--
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/zone");
requ... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/carpenters_belt.lua | 18 | 1183 | -----------------------------------------
-- ID: 15444
-- Item: Carpenter's belt
-- Enchantment: Synthesis image support
-- 2Min, All Races
-----------------------------------------
-- Enchantment: Synthesis image support
-- Duration: 2Min
-- Woodworking Skill +3
-----------------------------------------
require("scri... | gpl-3.0 |
vlapsley/outback | mods/mesecons/mesecons_walllever/init.lua | 1 | 1843 | -- WALL LEVER
-- Basically a switch that can be attached to a wall
-- Powers the block 2 nodes behind (using a receiver)
mesecon.register_node("mesecons_walllever:wall_lever", {
description="Lever",
drawtype = "mesh",
inventory_image = "jeija_wall_lever_inv.png",
wield_image = "jeija_wall_lever_inv.png",
paramtype... | lgpl-2.1 |
rpetit3/darkstar | scripts/zones/Upper_Jeuno/npcs/Paya-Sabya.lua | 13 | 1325 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Paya-Sabya
-- Involved in Mission: Magicite
-- @zone 244
-- @pos 9 1 70
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scri... | gpl-3.0 |
dkogan/notion | contrib/scripts/legacy/environment_placement_hook.lua | 3 | 1980 | -- Authors: Unknown
-- License: Unknown
-- Last Changed: Unknown
--
-- environment_placement_hook.lua
--
-- Linux-only placement hook which detects the presence of an ION_USE_WS
-- environment variable in the processes of new windows, and uses that to
-- determine where to place them.
--
-- ION_USE_WS should be exporte... | lgpl-2.1 |
ahosein243243/teleseed | plugins/all.lua | 37 | 4653 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
iRGBit/Dato-Core | src/unity/python/graphlab/lua/pl/xml.lua | 22 | 25280 | --- XML LOM Utilities.
--
-- This implements some useful things on [LOM](http://matthewwild.co.uk/projects/luaexpat/lom.html) documents, such as returned by `lxp.lom.parse`.
-- In particular, it can convert LOM back into XML text, with optional pretty-printing control.
-- It is s based on stanza.lua from [Prosody](http... | agpl-3.0 |
rpetit3/darkstar | scripts/globals/mobskills/Foxfire.lua | 25 | 1186 | ---------------------------------------------
-- Foxfire
--
-- Description: Damage varies with TP. Additional effect: "Stun."
-- Type: Physical (Blunt)
-- RDM, THF, PLD, BST, BRD, RNG, NIN, and COR fomors).
--
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals... | gpl-3.0 |
ddouglascarr/rooset | lffrontend/app/main/index/_not_voted_issues.lua | 1 | 2020 | local areas = param.get("areas", "table")
if #areas > 0 then
ui.container{
attr = { style = "font-weight: bold;" },
content = _"Current votings in areas you are member of and issues you are interested in:"
}
ui.list{
records = areas,
columns = {
{
name = "name"
},
{
... | mit |
sys4-fr/server-minetestforfun | mods/WorldEdit/worldedit/code.lua | 23 | 1328 | --- Lua code execution functions.
-- @module worldedit.code
--- Executes `code` as a Lua chunk in the global namespace.
-- @return An error message if the code fails, or nil on success.
function worldedit.lua(code)
local func, err = loadstring(code)
if not func then -- Syntax error
return err
end
loca... | unlicense |
rpetit3/darkstar | scripts/zones/Bastok_Markets_[S]/npcs/Karlotte.lua | 13 | 1087 | ----------------------------------
-- Area: Bastok Markets [S]
-- NPC: Karlotte
-- Type: Item Deliverer
-- @pos -191.646 -8 -36.349 87
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Markets_[S]... | gpl-3.0 |
schidler/ionic-luci | protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_map.lua | 22 | 2615 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2013 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local peeraddr, ip6addr
local tunlink, defaultroute, metric, ttl, mtu
maptype = section:taboption("general", ListValue, "type"... | apache-2.0 |
rpetit3/darkstar | scripts/globals/items/apkallu_egg.lua | 18 | 1174 | -----------------------------------------
-- ID: 5568
-- Item: Apkallu Egg
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Health 6
-- Magic 6
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
------------... | gpl-3.0 |
gligneul/FastLua | luatests/sort.lua | 1 | 8303 | -- $Id: sort.lua,v 1.37 2016/03/07 19:27:51 roberto Exp $
print "testing (parts of) table library"
print "testing unpack"
local unpack = table.unpack
local maxI = math.maxinteger
local minI = math.mininteger
local function checkerror (msg, f, ...)
local s, err = pcall(f, ...)
assert(not s and string.find(err,... | mit |
yaser1382/BDReborn | plugins/del.lua | 4 | 1070 | --Start
local function delmsg (arg,data)
for k,v in pairs(data.messages_) do
tdcli.deleteMessages(v.chat_id_,{[0] = v.id_}, dl_cb, cmd)
end
end
local function run(msg, matches)
local chat_id = msg.chat_id_
local msg_id = msg.id_
if matches[1] == 'del' then
if tostring(chat... | gpl-3.0 |
omidtarh/testbot | 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 |
schidler/ionic-luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/iface_add.lua | 31 | 2881 | -- Copyright 2009-2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local nw = require "luci.model.network".init()
local fw = require "luci.model.firewall".init()
local utl = require "luci.util"
local uci = require "luci.model.uci".cursor()
m = SimpleForm("network", tran... | apache-2.0 |
dwmw2/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/iface_add.lua | 31 | 2881 | -- Copyright 2009-2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local nw = require "luci.model.network".init()
local fw = require "luci.model.firewall".init()
local utl = require "luci.util"
local uci = require "luci.model.uci".cursor()
m = SimpleForm("network", tran... | apache-2.0 |
tvandijck/premake-core | modules/gmake/tests/cs/test_embed_files.lua | 15 | 1284 | --
-- tests/actions/make/cs/test_embed_files.lua
-- Tests embedded file listings for C# Makefiles.
-- Copyright (c) 2013-2014 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("make_cs_embed_files")
local make = p.make
local cs = p.make.cs
local project = p.project
--
-- Setu... | bsd-3-clause |
nokizorque/ucd | UCDruncode/client.lua | 4 | 1291 | local function runString (commandstring)
outputChatBoxR("Executing client-side command: "..commandstring)
local notReturned
--First we test with return
local commandFunction,errorMsg = loadstring("return "..commandstring)
if errorMsg then
--It failed. Lets try without "return"
notReturned = true
commandFun... | mit |
rpetit3/darkstar | scripts/zones/La_Theine_Plateau/npcs/Narvecaint.lua | 13 | 1768 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Narvecaint
-- Involved in Mission: The Rescue Drill
-- @pos -263 22 129 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions"... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Southern_San_dOria/npcs/Ailevia.lua | 13 | 1934 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Ailevia
-- Adventurer's Assistant
-- Only recieving Adv.Coupon and simple talk event are scripted
-- This NPC participates in Quests and Missions
-- @zone 230
-- @pos -8 1 1
-------------------------------------
package.loaded["scr... | gpl-3.0 |
open3dengineering/laydrop-firmware | src/rest/api/api_test.lua | 2 | 1894 | --
-- This file is part of the Doodle3D project (http://doodle3d.com).
--
-- @copyright 2013, Doodle3D
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
local l = require("util.logger")
loca... | gpl-2.0 |
nokizorque/ucd | UCDchat/server.lua | 1 | 5176 | -- LOTE filter
--[[
local chars = {
-- Arabic alphabet
"غ", "ظ", "ض", "ذ", "خ", "ث", "ت", "ش", "ر", "ق", "ص", "ف", "ع", "س", "ن", "م", "ل", "ك", "ي", "ط", "ح", "ز", "و", "ه", "د", "ج", "ب", "ا",
}
function getForeignLetters(str, customLength)
local c = 0
local charNum = {}
local stringLength = customLength or #st... | mit |
rpetit3/darkstar | scripts/zones/Metalworks/npcs/Nogga.lua | 13 | 1176 | -----------------------------------
-- Area: Metalworks
-- NPC: Nogga
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Metalworks/TextIDs");
--------------... | gpl-3.0 |
mrbangi/yagop | plugins/xkcd.lua | 628 | 1374 | do
function get_last_id()
local res,code = https.request("http://xkcd.com/info.0.json")
if code ~= 200 then return "HTTP ERROR" end
local data = json:decode(res)
return data.num
end
function get_xkcd(id)
local res,code = http.request("http://xkcd.com/"..id.."/info.0.json")
if code ~= 200 then return "HT... | gpl-2.0 |
ddouglascarr/rooset | lffrontend/env/ui/tabs.lua | 1 | 2063 | function ui.tabs(tabs)
local attr = tabs.attr or {}
attr.class = (attr.class and attr.class .. " " or "") .. "ui_tabs"
ui.container{
attr = attr,
content = function()
local params = request.get_param_strings()
local current_tab = params["tab"]
ui.container{
attr = { class = "ui_t... | mit |
mpeterv/depgraph | src/depgraph/scan.lua | 1 | 6957 | local parser = require "depgraph.luacheck.parser"
local linearize = require "depgraph.luacheck.linearize"
local utils = require "depgraph.luacheck.utils"
local function get_name(node)
if not node then
return
elseif node.tag == "Id" then
return node[1]
elseif node.tag == "Index" and node[1].tag == ... | mit |
vseledkin/april-ann | packages/hmm_trainer/test/test_hmm.lua | 3 | 2206 |
-- print"alineamiento inicial"
-- ----------------------------------------------------------------------
-- a = hmm_trainer.initial_emission_alignment({1,2,3,4},10)
-- ----------------------------------------------------------------------
-- for i,j in dataset.matrix(a):patterns() do
-- printf("%2d -> %s\n",i,string... | gpl-3.0 |
MinetestForFun/server-minetestforfun-creative | mods/lottspecial/init.lua | 1 | 5456 | -- Halloween Special Update!
--Majority of code gotten from PlizAdam's farming plus(https://forum.minetest.net/viewtopic.php?id=2787 )
--Jack 'O' Melon
minetest.register_node("lottspecial:jackomelon", {
description = "Jack 'O' Melon",
paramtype2 = "facedir",
tiles = {"lottfarming_melon_top.png", "lottfarming_melon_... | unlicense |
esguk811/DarkRP | gamemode/modules/fadmin/fadmin/commands/sv_chatcommands.lua | 10 | 1953 | local convar = CreateConVar("FAdmin_commandprefix", "/", {FCVAR_SERVER_CAN_EXECUTE})
SetGlobalString("FAdmin_commandprefix", convar:GetString())
cvars.AddChangeCallback("FAdmin_commandprefix", function()
SetGlobalString("FAdmin_commandprefix", convar:GetString())
end)
hook.Add("PlayerSay", "FAdminChatCommands", ... | mit |
tommo/gii | lib/lua/mock_edit/EditorCanvas/EditorCanvasScene.lua | 1 | 5370 | module 'mock_edit'
--------------------------------------------------------------------
--EditorCanvasCamera
--------------------------------------------------------------------
CLASS: EditorCanvasCamera ( mock.Camera )
function EditorCanvasCamera:__init( env )
self.FLAG_EDITOR_OBJECT = true
context = gii.getCurrentR... | mit |
rpetit3/darkstar | scripts/globals/items/pot_of_white_honey.lua | 18 | 1125 | -----------------------------------------
-- ID: 5562
-- Item: pot_of_white_honey
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Magic Regen While Healing 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChe... | gpl-3.0 |
Endika/Algorithm-Implementations | Negamax/Lua/Yonaba/handlers/tree_handler.lua | 78 | 1131 | -- Search tree class handler implementation
local PATH = (...):gsub('handlers.tree_handler$','')
local class = require (PATH .. '.utils.class')
local tree = class ()
-- Tree initialization
function tree:initialize()
self.nodes = {}
end
-- Adds a node in the tree
function tree:addNode(name, parent, value)
asser... | mit |
rpetit3/darkstar | scripts/zones/Northern_San_dOria/npcs/Narcheral.lua | 12 | 4121 | -----------------------------------
-- 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 |
wanghuan1115/sdkbox-chartboost-sample | lua/src/cocos/cocostudio/CocoStudio.lua | 62 | 9435 | if nil == ccs then
return
end
if not json then
require "cocos.cocos2d.json"
end
require "cocos.cocostudio.StudioConstants"
function ccs.sendTriggerEvent(event)
local triggerObjArr = ccs.TriggerMng.getInstance():get(event)
if nil == triggerObjArr then
return
end
for i = 1, table.getn... | mit |
beko99/DEVBEKO | data/config.lua | 1 | 7905 | do local _ = {
about_text = "Teleseed v4\nAn advanced administration bot based on TG-CLI written in Lua\n\nhttps://github.com/SEEDTEAM/TeleSeed\n\nAdmins\n@iwals [Founder]\n@imandaneshi [Developer]\n@POTUS [Developer]\n@seyedan25 [Manager]\n@aRandomStranger [Admin]\n\nSpecial thanks to\nawkward_potato\nSiyanew\ntopke... | gpl-2.0 |
schidler/ionic-luci | build/luadoc/luadoc/doclet/html.lua | 171 | 8795 | -------------------------------------------------------------------------------
-- Doclet that generates HTML output. This doclet generates a set of html files
-- based on a group of templates. The main templates are:
-- <ul>
-- <li>index.lp: index of modules and files;</li>
-- <li>file.lp: documentation for a lua file... | apache-2.0 |
lukego/snabbswitch | src/apps/ipv6/nd_light.lua | 7 | 13194 | -- This app implements a small subset of IPv6 neighbor discovery
-- (RFC4861). It has two ports, north and south. The south port
-- attaches to a port on which ND must be performed. The north port
-- attaches to an app that processes IPv6 packets. Packets
-- transmitted to and received from the north port contain f... | apache-2.0 |
tvandijck/premake-core | modules/vstudio/tests/vc200x/test_build_steps.lua | 14 | 1304 | --
-- tests/actions/vstudio/vc200x/test_build_steps.lua
-- Test generation of custom build step elements.
-- Copyright (c) 2013 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vs200x_build_steps")
local vc200x = p.vstudio.vc200x
--
-- Setup/teardown
--
local wks, prj
fun... | bsd-3-clause |
rpetit3/darkstar | scripts/globals/mobskills/Lateral_Slash.lua | 32 | 1066 | ---------------------------------------------
-- Lateral Slash
--
-- Description: Laterally slashes a single target. Additional effect: Defense Down
-- Type: Physical
-- Utsusemi/Blink absorb: 1 shadow
-- Range: Melee
-- Notes: Reduces defense by 75%. Can be removed with Monk Job Ability Counterstance.
---------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/The_Garden_of_RuHmet/mobs/Aw_euvhi.lua | 7 | 2897 | -----------------------------------
-- Area: The Garden of Ru'Hmet
-- NPC: Aw'Euvhi
-----------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
-----------------------------------
-- onMobSpawn Action
-- Set a random animation when it spawns
------------------------------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Meriphataud_Mountains/npcs/qm1.lua | 13 | 1389 | -----------------------------------
-- Area: Meriphataud Mountains
-- NPC: qm1 (???)
-- Involved in Quest: The Holy Crest
-- @pos 641 -15 7 119
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Meriphataud... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/spells/meteor.lua | 18 | 2157 | -----------------------------------------
-- Spell: Meteor
-- Deals non-elemental damage to an enemy.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
--------------------------... | gpl-3.0 |
atkinson137/lootmasterplus | Libs/AceGUI-3.0/widgets/AceGUIWidget-CheckBox.lua | 49 | 7933 | --[[-----------------------------------------------------------------------------
Checkbox Widget
-------------------------------------------------------------------------------]]
local Type, Version = "CheckBox", 22
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) ... | mit |
Maxsteam/BBBBKKKK | plugins/invite.lua | 1 | 2348 |
--[[
Invite other user to the chat group.
Use !invite 1234567890 (where 1234567890 is id_number) to invite a user by id_number.
This is the most reliable method.
Use !invite @username to invite a user by @username.
Less reliable. Some users don't have @username.
Use !invite Type print_name Here to invite a user by pri... | gpl-2.0 |
rpetit3/darkstar | scripts/globals/mobskills/Sand_Pit.lua | 13 | 1741 | ---------------------------------------------------
-- Sand Pit
-- Single target bind
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
function onMo... | gpl-3.0 |
lukego/snabbswitch | src/apps/vhost/vhost_user.lua | 5 | 11976 | --
-- See http://www.virtualopensystems.com/en/solutions/guides/snabbswitch-qemu/
module(...,package.seeall)
local basic_apps= require("apps.basic.basic_apps")
local pcap = require("apps.pcap.pcap")
local app = require("core.app")
local config = require("core.config")
local lib = require("core.lib... | apache-2.0 |
TakingInitiative/wesnoth | data/ai/micro_ais/cas/ca_wolves_multipacks_attack.lua | 3 | 8833 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua"
local WMPF = wesnoth.require "ai/micro_ais/cas/ca_wolves_multipacks_functions.lua"
local ca_wolves_multipacks_attack = {}
function ca_wolves_multipacks_... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/The_Shrouded_Maw/Zone.lua | 32 | 1779 | -----------------------------------
--
-- Zone: The_Shrouded_Maw (10)
--
-----------------------------------
package.loaded["scripts/zones/The_Shrouded_Maw/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/The_Shrouded_Maw/TextIDs");
---------------------... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/black_curry_bun_+1.lua | 18 | 1331 | -----------------------------------------
-- ID: 5764
-- Item: black_curry_bun+1
-- Food Effect: 60 minutes, All Races
-----------------------------------------
-- Intelligence +1
-- Vitality +4
-- Dexterity +2
-- Defense +~16%
require("scripts/globals/status");
-----------------------------------------
-- OnItemChe... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Norg/npcs/Sohyon.lua | 13 | 1031 | -----------------------------------
-- Area: Norg
-- NPC: Sohyon
-- Type: Standard NPC
-- @zone: 252
-- @pos 47.286 -7.282 13.873
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
spacebuild/spacebuild | lua/entities/generator_energy_wind/init.lua | 5 | 3756 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include('shared.lua')
local Energy_Increment = 100 --40 before --randomize for weather
function ENT:Initialize()
self.BaseClass.Initialize(self)
self.Active = 0
self.damaged = 0
self.sequence = -1
self.thinkcount = 0
if not (WireAddon ==... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.