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
birdbrainswagtrain/microcosm
gamemodes/microcosm/entities/entities/micro_item_collectable_toys.lua
1
1235
--shameless copy-pasta of SkyLight's micro_item_armorkit.lua which was a copy-pasta of Parakeet's micro_item_medkit.lua --gottem AddCSLuaFile() ENT.Base = "micro_item" ENT.ItemName = "Collectable Toy Crate" ENT.ItemModel = "models/Items/item_item_crate.mdl" ENT.MaxCount = 1 local sound_unpacking = Sound(...
mit
HeavensSword/darkstar
scripts/zones/Bastok_Mines/npcs/Tall_Mountain.lua
5
1462
----------------------------------- -- Area: Bastok Mines -- NPC: Tall Mountain -- Involved in Quest: Stamp Hunt -- Finish Mission: Bastok 6-1 -- !pos 71 7 -7 234 ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals...
gpl-3.0
Wedmer/luci
applications/luci-app-privoxy/luasrc/controller/privoxy.lua
23
8560
-- Copyright 2014-2016 Christian Schoenebeck <christian dot schoenebeck at gmail dot com> -- Licensed under the Apache License, Version 2.0 module("luci.controller.privoxy", package.seeall) local NX = require "nixio" local NXFS = require "nixio.fs" local DISP = require "luci.dispatcher" local HTTP = require "luci.h...
apache-2.0
lulersoft/ME_NLua
Assets/Data/lua/main.lua
1
3084
--主逻辑 --升级检测 启动游戏逻辑 --小陆 QQ 2604904 --https://github.com/lulersoft/ME import 'System' import 'UnityEngine' import 'UnityEngine.UI' import 'Assembly-CSharp' -- The user-code assembly generated by Unity import 'LayerMask' --以上整个项目只需要导入一次 local json = require "json.dkjson" version=1 appid=1 weburl="http://192.168.1....
mit
ZhouYzzz/cqui
ML/UI/MinimapPanel.lua
1
79413
-- =========================================================================== -- MINIMAP PANEL -- =========================================================================== include( "InstanceManager" ); include( "Civ6Common.lua" ); -- GetCivilizationUniqueTraits, GetLeaderUniqueTraits include( "SupportFunctions"...
mit
HeavensSword/darkstar
scripts/zones/Riverne-Site_B01/globals.lua
5
1482
-- Zone: Riverne - Site #B01 (29) -- Desc: this file contains functions that are shared by multiple luas in this zone's directory ----------------------------------- package.loaded["scripts/zones/Riverne-Site_B01/TextIDs"] = nil; require("scripts/zones/Riverne-Site_B01/TextIDs"); require("scripts/globals/npc_util"); re...
gpl-3.0
moteus/lua-luq
lakeconfig.lua
8
4567
local io = require "io" io.stdout:setvbuf"no" io.stderr:setvbuf"no" function vc_version() local VER = lake.compiler_version() MSVC_VER = ({ [15] = '9'; [16] = '10'; })[VER.MAJOR] or '' return MSVC_VER end if not L then local function arkey(t) assert(type(t) == 'table') local keys = {} for k in ...
mit
Openarl/PathOfBuilding
Data/3_0/StatDescriptions/banner_aura_skill_stat_descriptions.lua
1
4007
return {[1]={lang={English={[1]={[1]={k="milliseconds_to_seconds_2dp",v=1},limit={[1]={[1]=1,[2]="#"}},text="Banner lasts %1% seconds after being placed"}}},name="buff_duration",stats={[1]="buff_effect_duration"}},[2]={lang={English={[1]={limit={[1]={[1]="#",[2]="#"}},text="Gain 1 Stage when you Impale an Enemy while c...
mit
Openarl/PathOfBuilding
Classes/SkillListControl.lua
1
3436
-- Path of Building -- -- Class: Skill List -- Skill list control. -- local ipairs = ipairs local t_insert = table.insert local t_remove = table.remove local SkillListClass = newClass("SkillListControl", "ListControl", function(self, anchor, x, y, width, height, skillsTab) self.ListControl(anchor, x, y, width, height...
mit
qwook/dpsht
entities_/flag.lua
2
1580
BaseEntity = require("entities.core.baseentity") Flag = class("Flag", BaseEntity) Flag.spritesheet1 = SpriteSheet:new("sprites/Flag_blue.png", 32, 32) Flag.spritesheet2 = SpriteSheet:new("sprites/Flag_green.png", 32, 32) function Flag:initialize() BaseEntity.initialize(self) end function Flag:fixSpawnPosition()...
mit
HeavensSword/darkstar
scripts/globals/items/slice_of_dragon_meat.lua
3
1190
----------------------------------------- -- ID: 4272 -- Item: slice_of_dragon_meat -- Food Effect: 5Min, Galka only ----------------------------------------- -- Strength 6 -- Intelligence -8 -- Demon Killer +2 (?) ----------------------------------------- require("scripts/globals/status"); ----------------------------...
gpl-3.0
arrayfire/arrayfire-lua
examples/machine_learning/softmax_regression.lua
4
5883
--[[ /******************************************************* * Copyright (c) 2014, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause *****************************************...
bsd-3-clause
PierrotLC/optim
asgd.lua
12
2061
--[[ An implementation of ASGD ASGD: x := (1 - lambda eta_t) x - eta_t df/dx(z,x) a := a + mu_t [ x - a ] eta_t = eta0 / (1 + lambda eta0 t) ^ 0.75 mu_t = 1/max(1,t-t0) implements ASGD algoritm as in L.Bottou's sgd-2.0 ARGS: - `opfunc` : a function that takes a single input (X), the point ...
bsd-3-clause
HeavensSword/darkstar
scripts/zones/Southern_San_dOria/npcs/Raminel.lua
5
4564
----------------------------------- -- Area: Southern San d'Oria -- NPC: Raminel -- Involved in Quests: Riding on the Clouds -- !pos -56 2 -21 230 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Southern_Sa...
gpl-3.0
clofresh/nadira-story
src/graphics.lua
1
2811
local Class = require 'lib/hump/class' local anim8 = require 'lib/anim8/anim8' local animations = {} local AnimationSet = Class{function(self, image, animations) self.image = image self.animations = animations self.currentAnimation = nil end} function AnimationSet:tostring() local status, frame if self.curr...
bsd-3-clause
HeavensSword/darkstar
scripts/zones/Temenos/mobs/Light_Elemental.lua
28
1715
----------------------------------- -- Area: Temenos E T -- NPC: Light_Elemental ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); -----------------------------...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Heavens_Tower/npcs/Zubaba.lua
5
2688
----------------------------------- -- Area: Heavens Tower -- NPC: Zubaba -- Involved in Mission 3-2 -- !pos 15 -27 18 242 ----------------------------------- package.loaded["scripts/zones/Heavens_Tower/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/m...
gpl-3.0
HarpyWar/pvpgn
lua/quiz/quiz.lua
5
7875
--[[ Copyright (C) 2014 HarpyWar (harpywar@gmail.com) This file is a part of the PvPGN Project http://pvpgn.pro Licensed under the same terms as Lua itself. ]]-- quiz = {} -- object q_dictionary = {} -- dictionary word=question q_records_current = { } -- table with current player records q_records_total = {} -- ...
gpl-2.0
christakahashi/nodemcu-firmware
lua_examples/email/send_email_smtp.lua
82
4640
--- -- Working Example: https://www.youtube.com/watch?v=CcRbFIJ8aeU -- @description a basic SMTP email example. You must use an account which can provide unencrypted authenticated access. -- This example was tested with an AOL and Time Warner email accounts. GMail does not offer unecrypted authenticated access. -- To o...
mit
abbasgh12345/abbas1234
plugins/well.lua
114
3529
local add_user_cfg = load_from_file('data/add_user_cfg.lua') local function template_add_user(base, to_username, from_username, chat_name, chat_id) base = base or '' to_username = '@' .. (to_username or '') from_username = '@' .. (from_username or '') chat_name = string.gsub(chat_name, '_', ' ') or '' c...
gpl-2.0
dlannan/webdruino
deps/turbo-1.0.0/turbo/cdef.lua
1
15475
--- Turbo.lua C function declarations -- -- Copyright 2013 John Abrahamsen -- -- 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 re...
mit
HeavensSword/darkstar
scripts/zones/Kazham/npcs/Tielleque.lua
3
1391
----------------------------------- -- Area: Kazham -- NPC: Tielleque -- Type: Chocobo Renter ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require("scripts/globals/chocobo"); require("scripts/globals/status"); ----------------------------------- functio...
gpl-3.0
shahifaqeer/my-luci-bismark-0.11
applications/luci-pbx/luasrc/model/cbi/pbx-calls.lua
29
15344
--[[ Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com> This file is part of luci-pbx. luci-pbx 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 3 of the License, or ...
apache-2.0
HeavensSword/darkstar
scripts/zones/Behemoths_Dominion/npcs/Cermet_Headstone.lua
5
2490
----------------------------------- -- Area: Behemoth's Dominion -- NPC: Cermet Headstone -- Involved in Mission: ZM5 Headstone Pilgrimage (Lightning Headstone) -- !pos -74 -4 -87 127 ----------------------------------- package.loaded["scripts/zones/Behemoths_Dominion/TextIDs"] = nil; ---------------------------------...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Cloister_of_Gales/npcs/Wind_Protocrystal.lua
5
1940
----------------------------------- -- Area: Cloister of Gales -- NPC: Wind Protocrystal -- Involved in Quests: Trial by Wind, Trial Size Trial By Wind -- @zone -361 1 -381 201 ----------------------------------- package.loaded["scripts/zones/Cloister_of_Gales/TextIDs"] = nil; ----------------------------------- requ...
gpl-3.0
HeavensSword/darkstar
scripts/globals/items/crepe_belle_helene.lua
3
1229
----------------------------------------- -- ID: 5778 -- Item: Crepe Belle Helene -- Food Effect: 30 Min, All Races ----------------------------------------- -- Intelligence +2 -- MP Healing +3 -- Magic Accuracy +21% (cap 50) -- Magic Defense +1 ----------------------------------------- require("scripts/globals/status"...
gpl-3.0
mxOBS/deb-pkg_trusty_chromium-browser
v8/tools/gcmole/gccause.lua
157
2313
-- Copyright 2011 the V8 project authors. 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 ...
bsd-3-clause
HeavensSword/darkstar
scripts/globals/items/elshimo_frog.lua
3
1225
----------------------------------------- -- ID: 4290 -- Item: elshimo_frog -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Agility 2 -- Mind -4 -- Evasion 5 ----------------------------------------- require("scripts/globals/status"); ---------------------------------------...
gpl-3.0
N3X15/VoxelSim
ODE/OpenDynamicsEngine/build/drawstuff.lua
2
4174
package.name = "drawstuff" package.language = "c++" package.objdir = "obj/drawstuff" package.links = {} -- Append a "d" to the debug version of the libraries for k,v in ipairs(project.configs) do if (string.find(v, "Debug") ~= nil) then package.config[v].target = "drawstuffd" end end -- Output ...
bsd-3-clause
HeavensSword/darkstar
scripts/globals/items/apple_pie_+1.lua
3
1031
----------------------------------------- -- ID: 4320 -- Item: Apple Pie +1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Magic 30 -- Intelligence 4 -- Magic Regen While Healing 2 ----------------------------------------- require("scripts/globals/status"); -------------------------------...
gpl-3.0
imashiam/WORLD
plugins/all.lua
1321
4661
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
PierrotLC/optim
rprop.lua
9
3301
--[[ A plain implementation of RPROP ARGS: - `opfunc` : a function that takes a single input (X), the point of evaluation, and returns f(X) and df/dX - `x` : the initial point - `state` : a table describing the state of the optimizer; after each call the state is modified - `state.steps...
bsd-3-clause
HeavensSword/darkstar
scripts/zones/West_Sarutabaruta_[S]/mobs/Ramponneau.lua
3
1191
----------------------------------- -- Area: West Sarutabaruta (S) -- NM: Ramponneau ----------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); function onMobInitialize(mob) mob:setMobMod(MOBMOD_ADD_EFFECT, mob:getShortID()); mob:a...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Sacrificial_Chamber/bcnms/jungle_boogymen.lua
5
1757
----------------------------------- -- Area: Sacrificial Chamber -- Name: jungle_boogymen -- BCNM60 ----------------------------------- package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil; ------------------------------------- require("scripts/zones/Sacrificial_Chamber/TextIDs"); -----------------------...
gpl-3.0
cogwerkz/gUI4
gUI4/elements/staticpopups.lua
1
2699
local addon, gUI4 = ... -- Lua API local _G = _G local print = print -- WoW API local ReloadUI = _G.ReloadUI local StaticPopupDialogs = _G.StaticPopupDialogs local L = _G.GP_LibStub("GP_AceLocale-3.0"):GetLocale("gUI4") ------------------------------------------------------------------------------- --...
mit
jcadduono/kali-nethunter
nethunter-installer/update/system/bin/lualibs/utils.lua
7
5848
--[[ This may be moved to a separate library at some point (Holiman) --]] local Utils = { -- Asks the user for Yes or No confirm = function(message, ...) local answer message = message .. " [y/n] ?" repeat io.write(message) io.flush() answer=io.read() if answer == 'Y' or answer == "y"...
gpl-2.0
qwook/dpsht
libs/mapedgetrace.lua
2
4148
-- Azhukar -- This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/deed.en_US. local function get(t,x,y) if (t[x]) then return t[x][y] end end local function set(t,x,y,v) if (t[x]) then t[x][y] ...
mit
cogwerkz/gUI4
gUI4/libs/GP_oUF/elements/assistant.lua
7
2427
--[[ Element: Assistant Icon Toggles visibility of `self.Assistant` based on the units raid officer status. Widget Assistant - Any UI widget. Notes The default assistant icon will be applied if the UI widget is a texture and doesn't have a texture or color defined. Examples -- Position and size local...
mit
olhodedeus/Redlol
utilities.lua
1
39042
local serpent = require 'serpent' local config = require 'config' local api = require 'methods' local ltn12 = require 'ltn12' local HTTPS = require 'ssl.https' local HTTP = require'socket.http' local JSON = require('dkjson') -- utilities.lua -- Functions shared among plugins. local utilities = {} -- Escape markdown ...
gpl-2.0
HeavensSword/darkstar
scripts/zones/Bastok_Markets/npcs/Nbu_Latteh.lua
5
3165
----------------------------------- -- Area: Bastok Markets -- NPC: Nbu Latteh -- Starts & Finishes Quest: Mom, The Adventurer? -- Starts Quest: The Signpost Marks the Spot ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scr...
gpl-3.0
HeavensSword/darkstar
scripts/globals/items/dish_of_spaghetti_ortolana.lua
3
1295
----------------------------------------- -- ID: 5658 -- Item: Dish of Spafhetti Ortolana -- Food Effect: 30 Mins, All Races ----------------------------------------- -- Agility 2 -- Vitality 2 -- HP +30% Cap 70 -- StoreTP +6 -- Resist Blind +10 ----------------------------------------- require("scripts/globals/status"...
gpl-3.0
devlaith/DEVLAITH-HL
plugins/HL-help1.lua
2
5729
do local function run(msg, matches) local reply_id = msg['id'] if is_momod(msg) and matches[1]== 'الاوامر' then local S = [[ 🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺 ◀️◀️ اوامر الرفع والتنزيل في المجموعة 📤📥 ▶️▶️ 🔻🔻🔻🔻🔻🔻🔻🔻🔻🔻🔻🔻🔻 ⛩-رفع اداري ◀️ لرفع اداري ✔️ ⛩-تنزيل اداري ◀️ لحذف الاداري ✔️ ⛩-رفع المدير ◀️ اضافة مدير ✔...
gpl-2.0
Randshot/Elite-Dangerous-Dynamic-Lua-Script
script.lua
2
16795
-- -- The MIT License (MIT) -- -- Copyright (c) 2015 by Randshot -- -- 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, ...
mit
dkorolev/tarantool
test/wal_off/itr_lt_gt.test.lua
1
1028
-- test for https://github.com/tarantool/tarantool/issues/769 s = box.schema.create_space('test') i = s:create_index('primary', { type = 'TREE', parts = {1, 'num', 2, 'num'} }) s:insert{0, 0} s:insert{2, 0} for i=1,10000 do s:insert{1, i} end test_itrs = {'EQ', 'REQ', 'GT', 'LT', 'GE', 'LE'} test_res = {} too_longs = ...
bsd-2-clause
HeavensSword/darkstar
scripts/globals/abilities/runeists_roll.lua
1
2814
----------------------------------- -- Ability: Runeist's Roll -- Enhances magic evasion for party members within area of effect. -- Optimal Job: Rune Fencer -- Lucky Number: 4 -- Unlucky Number: 8 -- Level: 70 -- Phantom Roll +1 Value: 2 -- -- Die Roll | MEVA+ -- -------- ------- -- 1 |+4 --...
gpl-3.0
HeavensSword/darkstar
scripts/zones/The_Boyahda_Tree/TextIDs.lua
5
1508
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6386; -- Obtained: <item> GIL_OBTAINED = 6387; -- Obtained <number> gil KEYITEM_OBTAINED = 6389; -- Obtain...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Nashmau/npcs/Yoyoroon.lua
5
1405
----------------------------------- -- Area: Nashmau -- NPC: Yoyoroon -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Nashmau/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Nashmau/TextIDs"); require("scripts/globals/shop"); ----------------------...
gpl-3.0
HeavensSword/darkstar
scripts/globals/items/juglan_jumble.lua
3
1146
----------------------------------------- -- ID: 5923 -- Item: Juglan Jumble -- Food Effect: 5 Min, All Races ----------------------------------------- -- HP Healing 5 -- MP Healing 8 -- Bird Killer 12 -- Resist Paralyze 12 ----------------------------------------- require("scripts/globals/status"); -------------------...
gpl-3.0
HeavensSword/darkstar
scripts/globals/mobskills/shadow_spread.lua
5
1240
--------------------------------------------- --- Shadow Spread --- --- Description: A dark shroud renders any nearby targets blinded, asleep, and cursed. --- --------------------------------------------- require("scripts/globals/monstertpmoves"); require("scripts/globals/settings"); require("scripts/globals/status")...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Qufim_Island/npcs/Pitoire_RK.lua
3
2968
----------------------------------- -- Area: Qufim Island -- NPC: Pitoire, R.K. -- Type: Outpost Conquest Guards -- !pos -245.366 -20.344 299.502 126 ----------------------------------- package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest"); ...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Xarcabard/npcs/Kaya_IM.lua
3
2951
----------------------------------- -- Area: Xarcabard -- NPC: Kaya, I.M. -- Type: Outpost Conquest Guards -- !pos 207.548 -24.795 -203.694 112 ----------------------------------- package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest"); require("...
gpl-3.0
HeavensSword/darkstar
scripts/zones/South_Gustaberg/TextIDs.lua
5
1335
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6402; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6408; -- Obtained: <item>. GIL_OBTAINED = 6409; -- Obtained <number> gil. KEYITEM_OBTAINED = 6411; -- Obtained...
gpl-3.0
qwook/dpsht
assets/maps/hyperspace.lua
2
248745
return { version = "1.1", luaversion = "5.1", orientation = "orthogonal", width = 100, height = 100, tilewidth = 32, tileheight = 32, properties = {}, tilesets = { { name = "collision", firstgid = 1, tilewidth = 32, tileheight = 32, spacing = 0, margin = 0, ...
mit
dkorolev/tarantool
test/box/auth.test.lua
8
1530
session = box.session fiber = require('fiber') space = box.schema.space.create('tweedledum') index = space:create_index('primary', { type = 'hash' }) box.schema.user.create('test', {password='pass'}) box.schema.user.grant('test', 'read,write,execute', 'universe') box.schema.user.grant('guest', 'read,write,execute', 'u...
bsd-2-clause
HeavensSword/darkstar
scripts/globals/spells/bluemagic/yawn.lua
3
1667
----------------------------------------- -- Spell: Yawn -- Puts all enemies within range to sleep -- Spell cost: 55 MP -- Monster Type: Birds -- Spell Type: Magical (Light) -- Blue Magic Points: 3 -- Stat Bonus: CHR+1, HP+5 -- Level: 64 -- Casting Time: 3 seconds -- Recast Time: 60 seconds -- Duration: 90 seconds -- M...
gpl-3.0
HeavensSword/darkstar
scripts/globals/log_ids.lua
7
5565
----------------------------------- -- Area/Content Identifiers ----------------------------------- STATIC = -1; -- Just so shop NPC scripts have something to check against. Not sent to core. SANDORIA = { ['full_name'] = "San d' Oria", ['mission_log']= 0, ['quest_log']= 0, ['fame_area']= 0 }; BASTOK =...
gpl-3.0
hfjgjfg/yagop54
plugins/meme.lua
637
5791
local helpers = require "OAuth.helpers" local _file_memes = './data/memes.lua' local _cache = {} local function post_petition(url, arguments) local response_body = {} local request_constructor = { url = url, method = "POST", sink = ltn12.sink.table(response_body), headers = {}, red...
gpl-2.0
crazyhamedboy/bbb
bot/seedbot.lua
1
10255
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") VERSION = '2' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then return...
gpl-2.0
Openarl/PathOfBuilding
Classes/UndoHandler.lua
1
1550
-- Path of Building -- -- Class: Undo Handler -- Handler for classes that need to provide undo/redo functionality -- Classes that use this must define 2 functions: -- undoState = :CreateUndoState() Returns a new undo state that reflects the current state -- :RestoreUndoState(undoState) Reverts the current state to the...
mit
HeavensSword/darkstar
scripts/globals/excavation.lua
18
5208
------------------------------------------------- -- Excavation functions -- Info from: -- http://wiki.ffxiclopedia.org/wiki/Excavation ------------------------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/quests"); require("scripts/globals/settings"); --------------...
gpl-3.0
rcherrueau/kolla-g5k
results/files/heka/lua_decoders/os_openstack_log.lua
3
4806
-- Copyright 2015-2016 Mirantis, Inc. -- -- 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 agree...
gpl-3.0
HeavensSword/darkstar
scripts/globals/items/bowl_of_mushroom_soup.lua
3
1196
----------------------------------------- -- ID: 4419 -- Item: mushroom_soup -- Food Effect: 3hours, All Races ----------------------------------------- -- Magic Points 20 -- Strength -1 -- Mind 2 -- MP Recovered While Healing 1 -- Enmity -2 ----------------------------------------- require("scripts/globals/status"); -...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Temenos/bcnms/temenos_northern_tower.lua
35
1173
----------------------------------- -- Area: Temenos -- Name: ----------------------------------- require("scripts/globals/limbus"); require("scripts/globals/keyitems"); -- After registering the BCNM via bcnmRegister(bcnmid) function onBcnmRegister(player,instance) SetServerVariable("[Temenos_N_Tower]UniqueID",G...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Jugner_Forest_[S]/mobs/Decrepit_Gnole.lua
7
1460
----------------------------------- -- Area: Jugner Forest (S) -- NPC: Decrepit Gnole ----------------------------------- function onMobSpawn(mob) mob:setLocalVar("transformTime", os.time()) end; function onMobRoam(mob) local changeTime = mob:getLocalVar("transformTime"); local roamChance = math.random(1...
gpl-3.0
dlannan/webdruino
deps/luasys-master/test/event/bench_cascade.lua
2
1910
#!/usr/bin/env lua -- libevent/test/bench_cascade.c --[[ * This benchmark tests how quickly we can propagate a write down a chain * of socket pairs. We start by writing to the first socket pair and all * events will fire subsequently until the last socket pair has been reached * and the benchmark terminates. --]...
mit
ArmanIr/TgClinewbot
plugins/boobs.lua
731
1601
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
gpl-2.0
ryangmor/lolsh
plugins/boobs.lua
731
1601
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
gpl-2.0
mosy210/fast-spam
plugins/boobs.lua
731
1601
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
gpl-2.0
HeavensSword/darkstar
scripts/globals/spells/sheepfoe_mambo.lua
5
1579
----------------------------------------- -- Spell: Sheepfoe Mambo -- Grants evasion bonus to all members. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return ...
gpl-3.0
qwook/dpsht
libs/print2.lua
2
3539
--[[ Author: Julio Manuel Fernandez-Diaz Date: January 12, 2007 (For Lua 5.1) Modified slightly by RiciLake to avoid the unnecessary table traversal in tablecount() Formats tables with cycles recursively to any depth. The output is returned as a string. References to other tables are shown a...
mit
dani-sj/komil
plugins/add_bot.lua
189
1492
--[[ Bot can join into a group by replying a message contain an invite link or by typing !add [invite link]. URL.parse cannot parsing complicated message. So, this plugin only works for single [invite link] in a post. [invite link] may be preceeded but must not followed by another characters. --]] do local function...
gpl-2.0
natuan241/Algorithm-Implementations
Linear_Search/Lua/Yonaba/linear_search_test.lua
26
2059
-- Tests for linear_search.lua local search = require 'linear_search' 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 ...
mit
HeavensSword/darkstar
scripts/zones/Bibiki_Bay/npcs/qm4.lua
7
1026
----------------------------------- -- Area: Bibiki Bay -- NPC: ??? COP mission spawn Dalham -- !pos ----------------------------------- package.loaded["scripts/zones/Bibiki_Bay/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bibiki_Bay/TextIDs"); require("scripts/zones/Bibiki_Bay/MobIDs");...
gpl-3.0
Deiz/naev
dat/factions/equip/dvaered.lua
13
4852
-- Generic equipping routines, helper functions and outfit definitions. include("dat/factions/equip/generic.lua") --[[ -- @brief Does dvaered pilot equipping -- -- @param p Pilot to equip --]] function equip( p ) -- Start with an empty ship p:rmOutfit("all") p:rmOutfit("cores") -- Get ship info loca...
gpl-3.0
shahifaqeer/my-luci-bismark-0.11
modules/niu/luasrc/model/cbi/niu/network/wan.lua
51
2373
local cursor = require "luci.model.uci".cursor() if not cursor:get("network", "wan") then cursor:section("network", "interface", "wan", {proto = "none"}) cursor:save("network") end if not cursor:get("wireless", "client") then cursor:section("wireless", "wifi-iface", "client", {device = "_", doth = "1", _niu = "1...
apache-2.0
mukunda-/Delleren
Libs/AceTimer-3.0/AceTimer-3.0.lua
31
9798
--- **AceTimer-3.0** provides a central facility for registering timers. -- AceTimer supports one-shot timers and repeating timers. All timers are stored in an efficient -- data structure that allows easy dispatching and fast rescheduling. Timers can be registered -- or canceled at any time, even from within a running ...
mit
freddyucv/sipml5
asterisk/etc/extensions.lua
317
5827
CONSOLE = "Console/dsp" -- Console interface for demo --CONSOLE = "DAHDI/1" --CONSOLE = "Phone/phone0" IAXINFO = "guest" -- IAXtel username/password --IAXINFO = "myuser:mypass" TRUNK = "DAHDI/G2" TRUNKMSD = 1 -- TRUNK = "IAX2/user:pass@provider" -- -- Extensions are expected to be defined in a global table ...
bsd-3-clause
HeavensSword/darkstar
scripts/zones/Bastok_Markets/Zone.lua
5
2164
----------------------------------- -- -- Zone: Bastok_Markets (235) -- ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scripts/globals/chocobo"); require("scripts/globals/events/harvest_festivals"); require("scripts/globals/...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Port_San_dOria/npcs/Jaireto.lua
5
1070
----------------------------------- -- Area: Port San d'Oria -- NPC: Jaireto -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Port_San_dOria/TextIDs"); require("scripts/globals/quests"); ---...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Kemha_Flasehp.lua
3
1968
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Kemha Flasehp -- Type: Fishing Normal/Adv. Image Support -- !pos -28.4 -6 -98 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Northern_San_dOria/npcs/Belgidiveau.lua
5
1962
----------------------------------- -- Area: Northern San d'Oria -- NPC: Belgidiveau -- Starts and Finishes Quest: Trouble at the Sluice -- @zone 231 -- !pos -98 0 69 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scrip...
gpl-3.0
shahifaqeer/my-luci-bismark-0.11
modules/niu/luasrc/controller/niu/traffic.lua
49
1218
--[[ LuCI - Lua Development Framework Copyright 2009 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- local...
apache-2.0
LuaDist2/lua-tinycdb
test.lua
4
1078
require("lunit") local cdb = require("cdb") local db_name = "test.cdb" local db = assert(cdb.make(db_name, db_name..".tmp")) db:add("one", "1") db:add("two", "2") db:add("three", "4") -- oops db:add("three", "3", "replace") db:add("three", "III") assert(db:finish()) module("querying a cdb", lunit.testcase, package.s...
mit
HeavensSword/darkstar
scripts/zones/Southern_San_dOria_[S]/npcs/Machionage.lua
5
1315
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Machionage -- @zone 80 -- !pos -255 -3 109 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Southern_San_dOria_[S]/TextIDs"); re...
gpl-3.0
qwook/dpsht
assets/maps/willisthebest.lua
2
256095
return { version = "1.1", luaversion = "5.1", orientation = "orthogonal", width = 100, height = 100, tilewidth = 32, tileheight = 32, properties = {}, tilesets = { { name = "collision", firstgid = 1, tilewidth = 32, tileheight = 32, spacing = 0, margin = 0, ...
mit
vmercierfr/kong
kong/plugins/basicauth/api.lua
13
1537
local crud = require "kong.api.crud_helpers" return { ["/consumers/:username_or_id/basicauth/"] = { before = function(self, dao_factory, helpers) crud.find_consumer_by_username_or_id(self, dao_factory, helpers) self.params.consumer_id = self.consumer.id end, GET = function(self, dao_factory,...
mit
wsmith323/hammerspoon
extensions/host/init.lua
4
1032
--- === hs.host === --- --- Inspect information about the machine Hammerspoon is running on local host = require "hs.host.internal" local fnutils = require "hs.fnutils" local __tostring_for_tables = function(self) local result = "" local width = 0 for i,v in fnutils.sortByKeys(self) do if type(i) ...
mit
HeavensSword/darkstar
scripts/zones/Behemoths_Dominion/Zone.lua
4
1317
----------------------------------- -- -- Zone: Behemoths_Dominion (127) -- ----------------------------------- package.loaded["scripts/zones/Behemoths_Dominion/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Behemoths_Dominion/TextIDs"); require("scripts/zones/Behemoths_Dominion/MobIDs"); r...
gpl-3.0
pd2-linux/tina
feeds/luci/libs/httpclient/luasrc/httpclient/receiver.lua
93
6049
--[[ LuCI - Lua Development Framework Copyright 2009 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- requ...
gpl-2.0
Kaustic/KLib
premake5.lua
1
3844
local BUILD = true newaction { trigger = "clean", description = "Clean up temporary files", execute = function() os.rmdir("..\Build") os.rmdir("..\Bin") end } newaction { trigger = "clean-all", description = "Clean up temporary and binary files", execute = function() os.rmdir("../Build") os.rmdir("../B...
mit
HeavensSword/darkstar
scripts/zones/The_Ashu_Talif/mobs/Gessho.lua
5
2184
----------------------------------- -- Area: The Ashu Talif (The Black Coffin) -- MOB: Gessho -- TOAU-15 Mission Battle ----------------------------------- local TheAshuTalif = require("scripts/zones/The_Ashu_Talif/IDs"); require("scripts/globals/allyassist"); require("scripts/globals/instance"); require("scripts/glo...
gpl-3.0
404rq/GTW-RPG
[resources]/GTWpolice/blips.lua
2
1362
--[[ ******************************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: Mr_Moose Source code: https://github.com/404rq/GTW-RPG/ Bugtracker: https://discuss.404rq.com/t/issues Suggestions: https://discuss.404rq.com/t/deve...
bsd-2-clause
HeavensSword/darkstar
scripts/zones/Buburimu_Peninsula/npcs/Ganemu-Punnemu_WW.lua
3
2984
----------------------------------- -- Area: Buburimu Peninsula -- NPC: Ganemu-Punnemu, W.W. -- Outpost Conquest Guards -- !pos -481.164 -32.858 49.188 118 ----------------------------------- package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil; ----------------------------------- require("scripts/globals/...
gpl-3.0
mosy210/fast-spam
plugins/img_google.lua
660
3196
do local mime = require("mime") local google_config = load_from_file('data/google.lua') local cache = {} --[[ local function send_request(url) local t = {} local options = { url = url, sink = ltn12.sink.table(t), method = "GET" } local a, code, headers, status = http.request(options) return tabl...
gpl-2.0
icrazyboy/-
plugins/img_google.lua
660
3196
do local mime = require("mime") local google_config = load_from_file('data/google.lua') local cache = {} --[[ local function send_request(url) local t = {} local options = { url = url, sink = ltn12.sink.table(t), method = "GET" } local a, code, headers, status = http.request(options) return tabl...
gpl-2.0
forivall-mirrors/orxonox-game-code
src/libraries/core/ToluaInterfaceHook.lua
1
1335
-- -- ORXONOX - the hottest 3D action shooter ever to exist -- > www.orxonox.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 Foundat...
gpl-2.0
N3X15/VoxelSim
ODE/OpenDynamicsEngine/build/ode.lua
2
7123
package.name = "ode" package.language = "c++" package.objdir = "obj/ode" -- Differentiate between Single and Double precision for k,v in ipairs(project.configs) do if (string.find(v, "Single") ~= nil) then package.config[v].target="ode_single" end if (string.find(v, "Double") ~= nil) then pa...
bsd-3-clause
HeavensSword/darkstar
scripts/zones/Vunkerl_Inlet_[S]/npcs/Indescript_Markings.lua
3
1234
---------------------------------- -- Area: Meriphataud_Mountains_[S] -- NPC: Indescript Markings -- Type: Quest -- !pos -629.179 -49.002 -429.104 1 83 ----------------------------------- package.loaded["scripts/zones/Vunkerl_Inlet_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Vunkerl...
gpl-3.0
mohammadclashclash/uzzbot
plugins/domaintools.lua
359
1494
local ltn12 = require "ltn12" local https = require "ssl.https" -- 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 function check(name) local api = "https://domainsearch.p.mashape.com/index.php?"...
gpl-2.0
icrazyboy/-
plugins/domaintools.lua
359
1494
local ltn12 = require "ltn12" local https = require "ssl.https" -- 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 function check(name) local api = "https://domainsearch.p.mashape.com/index.php?"...
gpl-2.0