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
kitala1/darkstar
scripts/zones/Bastok_Markets/npcs/Ciqala.lua
22
1769
----------------------------------- -- Area: Bastok Markets -- NPC: Ciqala -- Type: Merchant -- @zone: 235 -- @pos -283.147 -11.319 -143.680 -- -- Auto-Script: Requires Verification -- -- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape ----------------------------------- require("scripts/globals/sh...
gpl-3.0
crabman77/minetest-minetestforfun-server
mods/homedecor_modpack/computer/computers.lua
11
10194
-- Amiga 500 lookalike computer.register("computer:shefriendSOO", { description = "SheFriendSOO", tiles_off = { front=true }, node_box = computer.pixelnodebox(32, { -- X Y Z W H L { 0, 0, 17, 32, 32, 12 }, -- Monitor Screen { 3, 3, 29, 26, 26, 3 }, -- Monitor Tube { 0, 0, 0, 32, 4, 17 ...
unlicense
kitala1/darkstar
scripts/zones/Morimar_Basalt_Fields/npcs/HomePoint#1.lua
12
1221
----------------------------------- -- Area: Morimar Basalt Fields -- NPC: HomePoint#1 -- @pos -415 -63.2 409 265 ----------------------------------- package.loaded["scripts/zones/Morimar_Basalt_Fields/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Morimar_Basalt_Fields/TextIDs"); requi...
gpl-3.0
kitala1/darkstar
scripts/globals/items/wild_onion.lua
35
1193
----------------------------------------- -- ID: 4387 -- Item: wild_onion -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility 4 -- Vitality -6 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCh...
gpl-3.0
hwsyy/Atlas
examples/tutorial-query-time.lua
40
1786
--[[ $%BEGINLICENSE%$ Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is dis...
gpl-2.0
fastmailops/prosody
util/template.lua
6
2836
local stanza_mt = require "util.stanza".stanza_mt; local setmetatable = setmetatable; local pairs = pairs; local ipairs = ipairs; local error = error; local loadstring = loadstring; local debug = debug; local t_remove = table.remove; local parse_xml = require "util.xml".parse; module("template") local function trim_...
mit
Pulse-Eight/drivers
Control4/tv_sink_pulse-eight/lib/c4_log.lua
9
17977
--[[============================================================================= c4_log Class Copyright 2015 Control4 Corporation. All Rights Reserved. ===============================================================================]] require "common.p8declares" require "lib.c4_object" c4_log = inheritsFrom(n...
apache-2.0
kitala1/darkstar
scripts/globals/mobskills/Glacial_Breath.lua
7
1286
--------------------------------------------- -- Glacial Breath -- -- Description: Deals Ice damage to enemies within a fan-shaped area. -- Type: Breath -- Utsusemi/Blink absorb: Ignores shadows -- Range: Unknown cone -- Notes: Used only by Jormungand and Isgebind -----------------------------------------...
gpl-3.0
kitala1/darkstar
scripts/globals/items/plate_of_fatty_tuna_sushi.lua
35
1540
----------------------------------------- -- ID: 5153 -- Item: plate_of_fatty_tuna_sushi -- Food Effect: 60Min, All Races ----------------------------------------- -- Health 20 -- Dexterity 3 -- Charisma 5 -- Accuracy % 16 -- Ranged ACC 16 -- Sleep Resist 5 ----------------------------------------- requir...
gpl-3.0
sylvanaar/IDLua
testdata/non-test-system-files/lua5.1-tests/strings.lua
11
6046
print('testing strings and string library') assert('alo' < 'alo1') assert('' < 'a') assert('alo\0alo' < 'alo\0b') assert('alo\0alo\0\0' > 'alo\0alo\0') assert('alo' < 'alo\0') assert('alo\0' > 'alo') assert('\0' < '\1') assert('\0\0' < '\0\1') assert('\1\0a\0a' <= '\1\0a\0a') assert(not ('\1\0a\0b' <= '\1\0a\0a')) ass...
apache-2.0
kaustavha/rackspace-monitoring-agent
tests/tls/init.lua
4
5793
--[[ Copyright 2012 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
apache-2.0
Roblox/Core-Scripts
PlayerScripts/StarterPlayerScripts/CameraScript/RootCamera/WatchCamera.lua
1
1674
local PlayersService = game:GetService('Players') local RootCameraCreator = require(script.Parent) local ZERO_VECTOR2 = Vector2.new(0, 0) local CFrame_new = CFrame.new local function CreateWatchCamera() local module = RootCameraCreator() module.PanEnabled = false local lastUpdate = tick() function module:Updat...
apache-2.0
kitala1/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Matifa.lua
37
1026
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Matifa -- Type: Standard NPC -- @pos -10.583 -1 -8.820 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegat...
gpl-3.0
crabman77/minetest-minetestforfun-server
mods/mobs/dungeonmaster.lua
6
3304
-- Dungeon Master by PilzAdam mobs:register_mob("mobs:dungeon_master", { -- animal, monster, npc, barbarian type = "monster", -- aggressive, shoots fireballs at player, deal 9 damages passive = false, pathfinding = false, damage = 9, attack_type = "dogshoot", reach = 3, shoot_interval = 2.5, arrow = "mobs:...
unlicense
kitala1/darkstar
scripts/zones/RuLude_Gardens/npcs/_6r8.lua
17
2376
----------------------------------- -- Area: Ru'Lud Gardens -- Door: Windurstian Ambassador -- Windurst Missions 3.3 "A New Journey" and 4.1 "Magicite" -- @pos 31 9 -22 243 ----------------------------------- package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil; package.loaded["scripts/globals/missions"...
gpl-3.0
kitala1/darkstar
scripts/globals/limbus.lua
6
39128
require("scripts/globals/keyitems"); -- require("scripts/globals/limbus"); APPOLLYON_SE_NE = 1; --out 557 -1 441 128 APPOLLYON_NW_SW = 2; --out -561 0 443 242 TEMENOS = 3; --WHITE_CARD = 349; --RED_CARD = 350; --BLACK_CARD = 351; --COSMOCLEANSE ...
gpl-3.0
kitala1/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Balakaf.lua
37
1031
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Balakaf -- Type: Standard NPC -- @pos 25.505 -6.999 126.478 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whi...
gpl-3.0
kitala1/darkstar
scripts/globals/items/plate_of_dorado_sushi_+1.lua
21
1682
----------------------------------------- -- ID: 5179 -- Item: plate_of_dorado_sushi_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Dexterity 5 -- Accuracy % 16 -- Accuracy Cap 80 -- Ranged ACC % 16 -- Ranged ACC Cap 80 -- Sleep Resist 5 -------------------------------------...
gpl-3.0
kitala1/darkstar
scripts/zones/Norg/npcs/HomePoint#2.lua
12
1166
----------------------------------- -- Area: Norg -- NPC: HomePoint#2 -- @pos -65 -5 54 252 ----------------------------------- package.loaded["scripts/zones/Norg/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Norg/TextIDs"); require("scripts/globals/homepoint"); ----------------------...
gpl-3.0
brltty/brltty
brltty-prologue.lua
1
1764
--[[ libbrlapi - A library providing access to braille terminals for applications. Copyright (C) 2006-2022 by Dave Mielke <dave@mielke.cc> libbrlapi comes with ABSOLUTELY NO WARRANTY. This is free software, placed under the terms of the GNU Lesser General Public License, as published by the Free Softwar...
lgpl-2.1
ominux/torch7
test/test.lua
9
92766
--require 'torch' local mytester local torchtest = {} local msize = 100 local precision -- Lua 5.2 compatibility local loadstring = loadstring or load local unpack = unpack or table.unpack local function maxdiff(x,y) local d = x-y if x:type() == 'torch.DoubleTensor' or x:type() == 'torch.FloatTensor' then ...
bsd-3-clause
crabman77/minetest-minetestforfun-server
mods/mesecons/mesecons_mvps/init.lua
9
7255
--register stoppers for movestones/pistons mesecon.mvps_stoppers = {} mesecon.on_mvps_move = {} mesecon.mvps_unmov = {} --- Objects (entities) that cannot be moved function mesecon.register_mvps_unmov(objectname) mesecon.mvps_unmov[objectname] = true; end function mesecon.is_mvps_unmov(objectname) return mesecon.m...
unlicense
kitala1/darkstar
scripts/zones/Norg/npcs/Keal.lua
17
4228
----------------------------------- -- Area: Norg -- NPC: Keal -- Starts and Ends Quest: It's Not Your Vault ----------------------------------- package.loaded["scripts/zones/Norg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); re...
gpl-3.0
kitala1/darkstar
scripts/zones/Northern_San_dOria/npcs/Morunaude.lua
36
1428
----------------------------------- -- Area: Northern San d'Oria -- NPC: Morunaude -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quest...
gpl-3.0
theonlywild/erfaaan
plugins/feedback.lua
1
1028
do function run(msg, matches) local fuse = '#DearAdmin , we have recive a new feedback just now : #newfeedback \n\nID : ' .. msg.from.id .. '\n\nName : ' .. msg.from.print_name ..'\n\nusername : @' .. msg.from.username ..'\n\nFeedBack :\n\n\n' .. matches[1] local fuses = '!printf user#id' .. msg.from.id local...
gpl-2.0
shdown/luastatus
examples/i3/weather.lua
1
2091
-- you need to install 'luasec' module (e.g. with luarocks) -- you can look up all available flags here: https://github.com/chubin/wttr.in#one-line-output local https = require('ssl.https') local ltn12 = require('ltn12') -- All the arguments except for 'url' may be absent or nil; default method is GET. -- Returns: co...
gpl-3.0
kitala1/darkstar
scripts/zones/Caedarva_Mire/npcs/qm3.lua
8
1187
----------------------------------- -- Area: Caedarva Mire -- NPC: ??? (Spawn Mahjlaef the Paintorn(ZNM T3)) -- @pos 695 -7 527 79 ----------------------------------- package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Caedarva_Mire/TextIDs"); -----...
gpl-3.0
DangerCove/libquvi-scripts
share/lua/website/justintv.lua
4
2392
-- libquvi-scripts -- Copyright (C) 2012 quvi project <http://quvi.sourceforge.net/> -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public -- License as published by t...
lgpl-2.1
hanxi/cocos2d-x-v3.1
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ParticleSystem.lua
3
15538
-------------------------------- -- @module ParticleSystem -- @extend Node,TextureProtocol -------------------------------- -- @function [parent=#ParticleSystem] getStartSizeVar -- @param self -- @return float#float ret (return value: float) -------------------------------- -- @function [parent=#ParticleSys...
mit
kitala1/darkstar
scripts/zones/Windurst_Waters/npcs/Cochal-Monchal.lua
19
1585
----------------------------------- -- Area: Windurst Waters -- NPC: Cochal-Monchal -- Involved in Quest: Dark Legacy -- @zone 238 -- @pos -52 -6 110 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------------------------------- require("scripts/global...
gpl-3.0
kitala1/darkstar
scripts/globals/items/istiridye.lua
18
1346
----------------------------------------- -- ID: 5456 -- Item: Istiridye -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity -5 -- Vitality 4 -- Defense +17.07% ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -...
gpl-3.0
crabman77/minetest-minetestforfun-server
mods/_misc/nointeract_messages.lua
10
1065
local players = {} local function tick(name) if players[name] == nil then return end if not minetest.get_player_by_name(name) or minetest.check_player_privs(name, {interact=true}) == true then players[name] = nil return end if minetest.check_player_privs(name, {shout=true}) then minetest.chat_send_player(na...
unlicense
kitala1/darkstar
scripts/globals/items/buttered_nebimonite.lua
35
1401
----------------------------------------- -- ID: 4267 -- Item: Buttered Nebimonite -- Food Effect: 60Min, All Races ----------------------------------------- -- Dexterity 1 -- Vitality 2 -- defense % 25 -- defense Cap 75 ----------------------------------------- require("scripts/globals/status"); -------...
gpl-3.0
Eternym/psychoactive2
data/talkactions/scripts/alladdons.lua
1
1229
local looktypes = { 128, 136, 129, 137, 130, 138, 131, 139, 132, 140, 133, 141, 134, 142, 143, 147, 144, 148, 145, 149, 146, 150, 151, 155, 152, 156, 153, 157, 154, 158, 251, 252, 268, 269, 273, 270, 278, 279, 289, 288, 325, 324, 335, 336, 366, 367, 328, 329 } function onSay(player, words, param) if not player:ge...
gpl-2.0
kitala1/darkstar
scripts/zones/Dynamis-Windurst/Zone.lua
28
2485
----------------------------------- -- -- Zone: Dynamis-Windurst -- ----------------------------------- package.loaded["scripts/zones/Dynamis-Windurst/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Dynamis-Windurst/TextIDs"); ---------------...
gpl-3.0
Sulunia/beatfever
modules/externals/lovedebug.lua
1
26575
--local _Debug table for holding all variables local _Debug = { errors = {}, prints = {}, order = {}, --e for errors, p for prints onTopFeed = {}, orderOffset = 0, longestOffset = 0, drawOverlay = false, tickTime = 0.5, tick = 0.5, drawTick = true, input = "", inputMarker = 0, lastH = n...
mit
crabman77/minetest-minetestforfun-server
mods/coloredwood/stick.lua
8
4317
-- Sticks portion of Colored Wood mod by Vanessa Ezekowitz ~~ 2012-07-17 -- based on my unified dyes modding template. -- -- License: WTFPL local colored_block_modname = "coloredwood" local colored_block_description = "Stick" for shade = 1, 3 do local shadename = coloredwood.shades[shade] local shadename2 = colo...
unlicense
libcg/gSquare
game/levels/medium3.lua
1
1608
function getInfo() -- Title local title = { "Day 13.\n\nKeep it simple, stupid", "Jour 13.\n\nPensez simplement" } levelText(title[getLanguageID()+1]) end function setGame() -- Music setMusic("./audio/c418-heyhey.mp3") -- Player varPlayerX(16*6) varPlayerY(16*4) -- Gravity varGravityDir(2) en...
gpl-3.0
minetest-australopithecus/minetest-australopithecus-utils
mods/utils/rotationutil.lua
2
6769
--[[ Copyright (c) 2015, Robert 'Bobby' Zenz All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the fo...
bsd-2-clause
kitala1/darkstar
scripts/globals/mobskills/Dispelling_Wind.lua
7
1035
--------------------------------------------- -- Dispelling Wind -- -- Description: Dispels two effects from targets in an area of effect. -- Type: Enfeebling -- Utsusemi/Blink absorb: Ignores shadows -- Range: 10' radial -- Notes: --------------------------------------------- require("scripts/globals/se...
gpl-3.0
kitala1/darkstar
scripts/zones/Qulun_Dome/npcs/_440.lua
18
1499
----------------------------------- -- Area: Qulun Dome -- NPC: Door -- Involved in Mission: Magicite -- @pos 60 24 -2 148 ----------------------------------- package.loaded["scripts/zones/Qulun_Dome/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/Qulun...
gpl-3.0
ZenityRTS/Zenity
libs/chonsole/exts/lobby.lua
1
5819
-- Do not load this in gadgets if not WG then return end -- disable in case there's no liblobby installed if not WG.LibLobby or not WG.LibLobby.lobby then Spring.Log("Chonsole", LOG.WARNING, i18n("liblobby_not_installed", {default = "liblobby is not installed. Lobby support disabled."})) return end Spring.Log("Chon...
gpl-2.0
kitala1/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Icon_Prototype.lua
17
1387
----------------------------------- -- Area: Dynamis Xarcabard -- NPC: Icon Prototype ----------------------------------- package.loaded["scripts/zones/Dynamis-Xarcabard/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); require("scripts/globals/dynamis"); require("script...
gpl-3.0
JavidTeam/TeleJavid
libs/feedparser.lua
543
11955
local LOM = assert(require("lxp.lom"), "LuaExpat doesn't seem to be installed. feedparser kind of needs it to work...") local XMLElement = (loadfile "./libs/XMLElement.lua")() local dateparser = (loadfile "./libs/dateparser.lua")() local URL = (loadfile "./libs/url.lua")() local tinsert, tremove, tconcat = table.insert...
gpl-3.0
kitala1/darkstar
scripts/zones/Zeruhn_Mines/npcs/Makarim.lua
17
1511
----------------------------------- -- Area: Zeruhn Mines -- NPC: Makarim -- Involved In Mission: The Zeruhn Report -- @pos -58 8 -333 172 ----------------------------------- package.loaded["scripts/zones/Zeruhn_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); ...
gpl-3.0
hanxi/cocos2d-x-v3.1
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ControlSlider.lua
3
4537
-------------------------------- -- @module ControlSlider -- @extend Control -------------------------------- -- @function [parent=#ControlSlider] getSelectedThumbSprite -- @param self -- @return Sprite#Sprite ret (return value: cc.Sprite) -------------------------------- -- @function [parent=#ControlSlider...
mit
kitala1/darkstar
scripts/globals/items/walnut.lua
36
1072
----------------------------------------- -- ID: 5661 -- Item: Walnut -- Food Effect: 5Min, All Races ----------------------------------------- -- HP 30 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -------------------------------...
gpl-3.0
kitala1/darkstar
scripts/zones/Bastok_Markets/npcs/Olwyn.lua
30
1461
----------------------------------- -- Area: Bastok Markets -- NPC: Olwyn -- Standard Merchant NPC -- -- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape ----------------------------------- require("scripts/globals/events/harvest_festivals"); require("scripts/globals/shop"); package.loaded["scr...
gpl-3.0
kitala1/darkstar
scripts/zones/Cloister_of_Frost/Zone.lua
32
1658
----------------------------------- -- -- Zone: Cloister_of_Frost (203) -- ----------------------------------- package.loaded["scripts/zones/Cloister_of_Frost/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Cloister_of_Frost/TextIDs"); ------...
gpl-3.0
kitala1/darkstar
scripts/zones/Port_San_dOria/npcs/Comittie.lua
38
1128
----------------------------------- -- Area: Port San d'Oria -- NPC: Comittie -- Type: Standard NPC -- @zone: 232 -- @pos -6.570 -9.8 -147.952 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; require("s...
gpl-3.0
parsaalemi/parsa-antispam-bot
plugins/owners.lua
1467
12478
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
UB12/lionbot
plugins/owners.lua
1467
12478
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
kitala1/darkstar
scripts/zones/Sea_Serpent_Grotto/npcs/qm3.lua
19
1377
----------------------------------- -- Area: Sea Serpent Grotto -- NPC: ??? Used for Norg quest "It's not your vault" -- @zone 176 -- @pos -173 26 252 2 ----------------------------------- package.loaded["scripts/zones/Sea_Serpent_Grotto/TextIDs"] = nil; ----------------------------------- require("scripts/g...
gpl-3.0
speedata/publisher
src/lua/common/sd-callbacks.lua
1
3528
--- This is the location for file related callbacks. -- TeX uses the kpathsea library, which I disable right away (`texconfig.kpse_init=false` in sdini.lua). -- We still use the namespace kpse. -- -- sd-callbacks.lua -- speedata publisher -- -- For a list of authors see `git blame' -- See file COPYING in the root d...
agpl-3.0
arekinath/loglunatic
loglunatic.lua
1
3588
#!/usr/bin/env luajit --[[ loglunatic -- logstash for lunatics Copyright (c) 2013, Alex Wilson, the University of Queensland Distributed under a BSD license -- see the LICENSE file in the root of the distribution. ]] local function usage() io.write("Usage: ./loglunatic.lua [-d|--daemon] [-p|--pidfile <file>] [-l|--l...
bsd-3-clause
kitala1/darkstar
scripts/zones/Southern_San_dOria/npcs/Tek_Lengyon.lua
53
1848
----------------------------------- -- Area: Southern San d'Oria -- NPC: Tek Lengyon -- Type: Leathercraft Synthesis Image Support -- @pos -190.120 -2.999 2.770 230 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("script...
gpl-3.0
crabman77/minetest-minetestforfun-server
mods/mobs/dog.lua
7
2157
-- Dog mobs:register_mob("mobs:dog", { -- animal, monster, npc, barbarian type = "npc", -- agressive, does 4 damage to player when hit passive = false, attacks_monsters = true, attack_type = "dogfight", damage = 2, -- 1 damage less than wolf -- health & armor hp_min = 15, hp_max = 20, armor = 200, -- textur...
unlicense
Pulse-Eight/drivers
Control4/sky_hd_ip_pulse-eight/common/c4_notify.lua
9
1689
--[[============================================================================= Notification Functions Copyright 2015 Control4 Corporation. All Rights Reserved. ===============================================================================]] require "common.p8declares" --[[=================================...
apache-2.0
Pulse-Eight/drivers
Control4/sky_q_ip_pulse-eight/common/c4_notify.lua
9
1689
--[[============================================================================= Notification Functions Copyright 2015 Control4 Corporation. All Rights Reserved. ===============================================================================]] require "common.p8declares" --[[=================================...
apache-2.0
Teaonly/easyLearning.js
simple_lstm/train.lua
2
4831
require 'torch' require 'nn' require 'nngraph' require 'optim' require 'lfs' local toy_data = require 'toy_data' local model_utils = require 'model_utils' local LSTM = require 'LSTM' local INPUT_SIZE = 4 local OUTPUT_SIZE = 15 local RNN_SIZE = 196 local LAYER_NUMBER = 2 local BATCH_SIZE = 16 local MAX_TIMING_STEP = 1...
mit
kaustavha/rackspace-monitoring-agent
hostinfo/fail2ban.lua
3
6014
--[[ Copyright 2015 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
apache-2.0
ioiasff/DSA
plugins/anti_spam.lua
417
3978
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds local data = load_data(_config.moderation.data) -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id =...
gpl-2.0
rezaph/Nano-bot
plugins/anti_spam.lua
417
3978
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds local data = load_data(_config.moderation.data) -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id =...
gpl-2.0
mahdi1062/avira
plugins/anti_spam.lua
10
5319
kicktable = {} do local TIME_CHECK = 2 -- seconds -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id == our_id then return msg end -- Save user on Redis if msg.from.type == 'user' then local hash = 'user:'..msg...
gpl-2.0
kitala1/darkstar
scripts/zones/VeLugannon_Palace/npcs/Treasure_Coffer.lua
16
3526
----------------------------------- -- Area: Ve'Lugannon Palace -- NPC: Treasure Coffer -- @zone 177 ----------------------------------- package.loaded["scripts/zones/VeLugannon_Palace/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"...
gpl-3.0
apletnev/koreader
frontend/ui/widget/buttonprogresswidget.lua
2
2816
local Blitbuffer = require("ffi/blitbuffer") local Button = require("ui/widget/button") local Device = require("device") local Geom = require("ui/geometry") local HorizontalGroup = require("ui/widget/horizontalgroup") local InputContainer = require("ui/widget/container/inputcontainer") local FrameContainer = require("u...
agpl-3.0
kitala1/darkstar
scripts/zones/Port_San_dOria/npcs/Solgierte.lua
36
1375
----------------------------------- -- Area: Port San d'Oria -- NPC: Solgierte -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/zones/Port_San_dOria/Tex...
gpl-3.0
kitala1/darkstar
scripts/zones/PsoXja/npcs/_09d.lua
8
1608
----------------------------------- -- Area: Pso'Xja -- NPC: _09d (Stone Gate) -- Notes: Spawns Gargoyle when triggered -- @pos -330.000 14.074 -261.600 9 ----------------------------------- package.loaded["scripts/zones/PsoXja/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Pso...
gpl-3.0
kitala1/darkstar
scripts/zones/Zeruhn_Mines/Zone.lua
30
2566
----------------------------------- -- -- Zone: Zeruhn_Mines (172) -- ----------------------------------- package.loaded["scripts/zones/Zeruhn_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/zone"); require("scripts/zones/Zeruhn_Mines/Tex...
gpl-3.0
kitala1/darkstar
scripts/zones/Beaucedine_Glacier/npcs/relic.lua
38
1859
----------------------------------- -- Area: Beaucedine Glacier -- NPC: <this space intentionally left blank> -- @pos -89 0 -374 111 ----------------------------------- package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Beaucedine_Glacier/TextI...
gpl-3.0
kitala1/darkstar
scripts/zones/Port_San_dOria/TextIDs.lua
5
4857
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED_1 = 6414; -- You cannot obtain the <<<Possible Special Code: 01>>><<<Possible Special Code: 05>>>#<<<BAD CHAR: 8280>>><<<BAD CHAR: 80>>><<<BAD CHAR: 80>>>.<<<Prompt>>> ITEM_CANNOT_BE_OBTAINED_2 = 6415; -- You cannot obtain the <<<Possib...
gpl-3.0
d-o/LUA-LIB
src/rinLibrary/K400Axle.lua
2
1416
------------------------------------------------------------------------------- --- Axle scle functions. -- Functions to support the K422 Axle Weigher -- @module rinLibrary.Device.Axle -- @author Pauli -- @copyright 2014 Rinstrum Pty Ltd ------------------------------------------------------------------------------- lo...
gpl-3.0
crabman77/minetest-minetestforfun-server
mods/more_chests/dropbox.lua
8
2558
local function has_locked_chest_privilege(meta, player) if player:get_player_name() ~= meta:get_string("owner") then return false end return true end minetest.register_node("more_chests:dropbox", { description = "Dropbox", tiles = {"default_chest_top.png", "default_chest_top.png", "dropbox_right.png", "defaul...
unlicense
minetest-australopithecus/minetest-australopithecus-utils
test/arrayutil.lua
2
4330
-- Load the test file. dofile("./mods/utils/test.lua") -- Load the file for testing. dofile("./mods/utils/arrayutil.lua") dofile("./mods/utils/list.lua") dofile("./mods/utils/mathutil.lua") dofile("./mods/utils/tableutil.lua") test.start("arrayutil") test.run("contains", function() test.equals(false, arrayutil.co...
bsd-2-clause
nicodinh/cuberite
MCServer/Plugins/APIDump/Hooks/OnPlayerRightClick.lua
36
1957
return { HOOK_PLAYER_RIGHT_CLICK = { CalledWhen = "A right-click packet is received from the client. Plugin may override / refuse.", DefaultFnName = "OnPlayerRightClick", -- also used as pagename Desc = [[ This hook is called when Cuberite receives a right-click packet from the {{cClientHandle|client}}. It ...
apache-2.0
kitala1/darkstar
scripts/zones/Yughott_Grotto/npcs/Mining_Point.lua
29
1099
----------------------------------- -- Area: Yughott Grotto -- NPC: Mining Point ----------------------------------- package.loaded["scripts/zones/Yughott_Grotto/TextIDs"] = nil; ------------------------------------- require("scripts/globals/mining"); require("scripts/zones/Yughott_Grotto/TextIDs"); ----...
gpl-3.0
JacobFischer/Joueur.lua
games/newtonian/machine.lua
2
2835
-- Machine: A machine in the game. Used to refine ore. -- DO NOT MODIFY THIS FILE -- Never try to directly create an instance of this class, or modify its member variables. -- Instead, you should only be reading its variables and calling its functions. local class = require("joueur.utilities.class") local GameObject ...
mit
JacobFischer/Joueur.lua
games/stumped/ai.lua
2
5211
-- This is where you build your AI for the Stumped game. local class = require("joueur.utilities.class") local BaseAI = require("joueur.baseAI") -- <<-- Creer-Merge: requires -->> - Code you add between this comment and the end comment will be preserved between Creer re-runs. -- you can add additional require(s) here...
mit
kitala1/darkstar
scripts/zones/Windurst_Woods/npcs/Bozack.lua
38
1036
----------------------------------- -- Area: Windurst Woods -- NPC: Bozack -- Type: Event Replayer -- @zone: 241 -- @pos 92.591 -5.58 -31.529 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; -------------...
gpl-3.0
libretro/RetroArch
libretro-db/lua/tests.lua
44
2401
local testlib = require 'testlib' local DB_FILE = "/tmp/tmp.rdb" local function create_db(data) local i = 1; testlib.create_db(DB_FILE, function() if i > #data then return end res = data[i] i = i + 1 return res end) local db, err = testlib.RarchDB(DB...
gpl-3.0
kitala1/darkstar
scripts/zones/North_Gustaberg/npcs/Waterfall_Base.lua
34
1403
----------------------------------- -- Area: North Gustaberg -- NPC: Waterfall Base -- Involved In Quest: Drachenfall -- @pos -217.594 98.644 464.722 106 ----------------------------------- package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil; ----------------------------------- require("scripts/glo...
gpl-3.0
kitala1/darkstar
scripts/zones/Al_Zahbi/npcs/Numaaf.lua
53
2294
----------------------------------- -- Area: Al Zahbi -- NPC: Numaaf -- Type: Cooking Normal/Adv. Image Support -- @pos 54.966 -7 8.328 48 ----------------------------------- package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); require("scripts...
gpl-3.0
khwangster/wrk2
deps/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...
apache-2.0
kitala1/darkstar
scripts/zones/Southern_San_dOria_[S]/npcs/Louxiard.lua
16
2281
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Louxiard -- @zone 80 -- @pos -93 -4 49 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil; require("scripts/zones/Southern_San_dOria_[S]/TextIDs"); require("scripts/globals/quests"); ...
gpl-3.0
kitala1/darkstar
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
d-o/LUA-LIB
K400Examples/remotes/D840_ethernet.lua
2
2611
#!/usr/bin/env lua ------------------------------------------------------------------------------- -- Example for using the D840 via ethernet. -- ------------------------------------------------------------------------------- --============================================================================= -- Some of t...
gpl-3.0
kitala1/darkstar
scripts/zones/Nashmau/npcs/Jajaroon.lua
34
1593
----------------------------------- -- Area: Nashmau -- NPC: Jajaroon -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Nashmau/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Nashmau/TextIDs"); require("scripts/globals/shop"); ----------...
gpl-3.0
kitala1/darkstar
scripts/globals/items/bowl_of_pumpkin_soup.lua
35
1656
----------------------------------------- -- ID: 4430 -- Item: bowl_of_pumpkin_soup -- Food Effect: 3Hrs, All Races ----------------------------------------- -- HP % 1 -- Vitality -1 -- Agility 3 -- HP Recovered While Healing 5 -- Ranged Accuracy % 8 (cap 20) ----------------------------------------- requi...
gpl-3.0
bobbahbrown/pcmod3
lua/pcm3/cl_screen.lua
1
2245
// ************************************ \\ // * PCMod 3 - thomasfn & bobbahbrown * \\ // ************************************ \\ // cl_screen.lua - CLIENTSIDE - Loads the screen object local M = PCMod3.CreateModule( "Screen" ) local obj = PCMod3.CreateBase( "screen" ) M.Screens = {} function M:CallOnAll( funcname, ...
mit
kitala1/darkstar
scripts/zones/Bastok_Markets/npcs/Marin.lua
38
1121
----------------------------------- -- Area: Bastok Markets -- NPC: Marin -- Type: Quest Giver -- @zone: 235 -- @pos -340.060 -11.003 -148.181 -- -- Auto-Script: Requires Verification. Verified standard dialog is also "All By Myself" repeatable quest. - thrydwolf 12/18/2011 ----------------------------------- pac...
gpl-3.0
kitala1/darkstar
scripts/zones/Lower_Jeuno/npcs/_l01.lua
36
1563
----------------------------------- -- Area: Lower Jeuno -- NPC: Streetlamp -- Involved in Quests: Community Service -- @zone 245 -- @pos -101.010 0 -144.080 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/gl...
gpl-3.0
ZenityRTS/Zenity
ModelMaterials/0_angleshark.lua
1
2249
-- $Id$ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- local unitInfo = {} local function DrawUnit(unitid, material, materialID) local info = unitInfo[unitid] if (not info) then info = {...
gpl-2.0
kitala1/darkstar
scripts/zones/Mount_Zhayolm/npcs/Mining_Point.lua
29
1096
----------------------------------- -- Area: Mount Zhayolm -- NPC: Mining Point ----------------------------------- package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil; ------------------------------------- require("scripts/globals/mining"); require("scripts/zones/Mount_Zhayolm/TextIDs"); -------...
gpl-3.0
Taracque/epgp
libs/AceGUI-3.0/widgets/AceGUIWidget-Heading.lua
12
2294
--[[----------------------------------------------------------------------------- Heading Widget -------------------------------------------------------------------------------]] local Type, Version = "Heading", 20 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidgetVersion(Typ...
bsd-3-clause
kitala1/darkstar
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
kitala1/darkstar
scripts/globals/items/sleep_bolt.lua
20
1180
----------------------------------------- -- ID: 18149 -- Item: Sleep Bolt -- Additional Effect: Sleep ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onAdditionalEffect Action ------------------------------...
gpl-3.0
gsick/lit-sqlite3
tests/main.lua
1
3156
local sqlite = require("sqlite3") local Path = require("path") local Fs = require("fs") -- remove temp db if Fs.accessSync(Path.join(process.cwd(), "tmp/test.sqlite")) then Fs.unlinkSync(Path.join(process.cwd(), "tmp/test.sqlite")) end -- create a DB local db, err = sqlite.open("tmp/test.sqlite", "read") if n...
mit
kitala1/darkstar
scripts/zones/RuAun_Gardens/mobs/Byakko.lua
12
1521
----------------------------------- -- Area: Ru'Aun Gardens -- NPC: Byakko -- ID: 17309982 ----------------------------------- require("scripts/zones/RuAun_Gardens/TextIDs"); require("scripts/globals/status"); ----------------------------------- -- onMobInitialize ----------------------------------- fu...
gpl-3.0
kitala1/darkstar
scripts/zones/Riverne-Site_A01/npcs/_0u2.lua
19
1339
----------------------------------- -- 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
ioiasff/DSA
plugins/admin.lua
381
7085
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(rec...
gpl-2.0