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
chinnytp/proxmark3
client/lualibs/commands.lua
9
9253
--[[ These are command definitions. This file should correspond exactly to usb_cmd.h. --]] --// For the bootloader local _commands = { CMD_DEVICE_INFO = 0x0000, CMD_SETUP_WRITE = 0x0001, CMD_FINISH_WRITE = ...
gpl-2.0
subzrk/BadRotations
Rotations/_NonClass/PokeRotation/PokeAbilities.lua
6
19583
function PokeAbilities() --[[ Functions ]] if not PetFunctions then PetFunctions = true function pokeTimers() -- In Battle timer if inBattle then if inBattleTimer == 0 then inBattleTimer = GetT...
gpl-3.0
MAXtgBOT/Telemax-TG
plugins/bot_manager.lua
12
6288
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(receiver, '...
gpl-2.0
Gael-de-Sailly/minetest-minetestforfun-server
mods/markers/init.lua
9
19185
-- markers are useful for measuring distances and for marking areas -- markers are protected from digging by other players for one day -- (the protection for the *marker* auto-expires then, and it can be digged) markers = {} dofile(minetest.get_modpath("markers").."/config.lua"); dofile(minetest.get_modpath("markers...
unlicense
FFXIOrgins/FFXIOrgins
scripts/zones/The_Eldieme_Necropolis/npcs/_5fp.lua
34
2568
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: West Plate -- @pos 128 -34 20 195 ----------------------------------- ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; --------------------------...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Dynamis-San_dOria/mobs/Reapertongue_Gadgquok.lua
8
1066
----------------------------------- -- Area: Dynamis San d'Oria -- NPC: Reapertongue Gadgquok -- Boss Trigger for Overlord's Tombstone ----------------------------------- ----------------------------------- -- onMobSpawn Action ----------------------------------- function OnMobSpawn(mob) end; ---------...
gpl-3.0
maximilianofaccone/puppy-siberian
root/.conky/clock_rings11.lua
1
5960
settings_table = { { -- Edit this table to customise your rings. -- You can create more rings simply by adding more elements to settings_table. -- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'. name='time', -- "arg" is the argument to the sta...
gpl-3.0
soroushwilson/wilson1
plugins/info.lua
1
8922
do local Arian = 140760293 --put your id here(BOT OWNER ID) local function setrank(msg, name, value) -- setrank function local hash = nil if msg.to.type == 'chat' then hash = 'rank:'..msg.to.id..':variables' end if hash then redis:hset(hash, name, value) return send_msg('chat#id'..msg.to.id, 'مقام کار...
gpl-2.0
FFXIOrgins/FFXIOrgins
scripts/zones/Ordelles_Caves/TextIDs.lua
3
1779
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6537; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6540; -- Obtained: <item>. GIL_OBTAINED = 6541; -- Obtained <number> gil. KEYITEM_OBTAINED = 6543; -- Obtained...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/mobskills/Bad_Breath.lua
6
1258
--------------------------------------------- -- Bad Breath -- -- Description: Deals earth damage that inflicts multiple status ailments on enemies within a fan-shaped area originating from the caster. -- Type: Magical (Earth) -- -- --------------------------------------------- require("/scripts/globals/sett...
gpl-3.0
caidongyun/nginx-openresty-windows
lua-resty-string-0.08/lib/resty/sha384.lua
1
1340
-- Copyright (C) 2012 by Yichun Zhang (agentzh) local sha512 = require "resty.sha512" local ffi = require "ffi" local ffi_new = ffi.new local ffi_str = ffi.string local C = ffi.C local setmetatable = setmetatable local error = error module(...) _VERSION = '0.08' local mt = { __index = _M } ...
bsd-2-clause
FFXIOrgins/FFXIOrgins
scripts/zones/Temenos/mobs/Cryptonberry_Charmer.lua
17
1140
----------------------------------- -- Area: Temenos N T -- NPC: Cryptonberry_Charmer ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); ----------------...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Nashmau/npcs/Tsutsuroon.lua
38
1260
----------------------------------- -- Area: Nashmau -- NPC: Tsutsuroon -- Type: Tenshodo Merchant -- @pos -15.193 0.000 31.356 53 ----------------------------------- package.loaded["scripts/zones/Nashmau/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/global...
gpl-3.0
msburgess3200/PERP
gamemodes/perp/gamemode/vehicles/lambo.lua
1
2787
VEHICLE = {}; VEHICLE.ID = 'q'; VEHICLE.FID = '17'; VEHICLE.Name = "Lamborghini"; VEHICLE.Make = "Automobili Lamborghini"; VEHICLE.Model = "Miura SV"; VEHICLE.Script = "lambo"; VEHICLE.Cost = 145000; VEHICLE.PaintJobCost = 8000; VEHICLE.DF = true; VEHICLE.CustomBodyGroup = 511; V...
mit
FFXIOrgins/FFXIOrgins
scripts/globals/spells/paralyze.lua
4
2114
----------------------------------------- -- Spell: Paralyze -- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and MND. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -...
gpl-3.0
daofeng2015/luci
applications/luci-app-diag-devinfo/luasrc/model/cbi/luci_diag/mactodevinfo.lua
61
1058
-- Copyright 2009 Daniel Dickinson -- Licensed to the public under the Apache License 2.0. m = Map("mactodevinfo", luci.i18n.translate("MAC Device Info Overrides"), translate("Override the information returned by the MAC to Device Info Script (mac-to-devinfo) for a specified range of MAC Addresses")) s = m:section(Ty...
apache-2.0
Aethaeryn/wesnoth-umc
Aethaeryns_Mod/lua/gui2.lua
1
18092
#define MOD_GUI2 << gui2 = { make_list = {}, on_select = {}, wml = {}} ---- GUI2 WML ---- --- Widget WML -- gui2.wml.list = T.column { horizontal_grow = true, T.listbox { id = "menu_list", T.list_definition { T.row { T.column { horizontal_grow = true, T.toggle_panel { ...
gpl-2.0
FFXIOrgins/FFXIOrgins
scripts/globals/items/rolanberry_(874_ce).lua
35
1205
----------------------------------------- -- ID: 4530 -- Item: rolanberry_874_ce) -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility -3 -- Intelligence 1 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- ...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/spells/rasp.lua
6
1641
----------------------------------------- -- Spell: Rasp -- Deals earth damage that lowers an enemy's dexterity and gradually reduces its HP. ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ------------------...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Bastok_Mines/npcs/Detzo.lua
17
2388
----------------------------------- -- Area: Bastok Mines -- NPC: Detzo -- Starts & Finishes Quest: Rivals ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/titles");...
gpl-3.0
sjznxd/lc-20130127
applications/luci-ltqtapi/luasrc/controller/ltqtapi.lua
76
1274
--[[ LuCI - Lua Configuration Interface Copyright 2019 John Crispin <blogic@openwrt.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 ]]-- module("...
apache-2.0
Gael-de-Sailly/minetest-minetestforfun-server
mods/report/init.lua
9
2950
report = {} function report.send(sender, message) -- Send to online moderators / admins -- Get comma separated list of online moderators and admins local mods = {} for _, player in pairs(minetest.get_connected_players()) do local name = player:get_player_name() if minetest.check_player_privs(name, {kick = true...
unlicense
FFXIOrgins/FFXIOrgins
scripts/zones/Mount_Zhayolm/npcs/qm5.lua
15
1174
----------------------------------- -- Area: Mount Zhayolm -- NPC: ??? (Spawn Sarameya(ZNM T4)) -- @pos 322 -14 -581 61 ----------------------------------- package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Mount_Zhayolm/TextIDs"); ----------------...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Sea_Serpent_Grotto/npcs/_4w5.lua
19
2678
----------------------------------- -- Area: Sea Serpent Grotto -- NPC: Silver Beastcoin Door -- @zone 176 -- @pos 280 18.549 -100 ----------------------------------- package.loaded["scripts/zones/Sea_Serpent_Grotto/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); re...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Port_Bastok/npcs/Benita.lua
36
2061
----------------------------------- -- Area: Port Bastok -- NPC: Benita -- Starts Quest: The Wisdom Of Elders ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/settings"...
gpl-3.0
xToken/CompMod
lua/CompMod/Weapons/Marine/Mine/shared.lua
1
3088
-- Natural Selection 2 Competitive Mod -- Source located at - https://github.com/xToken/CompMod -- lua\CompMod\Weapons\Marine\Mine\shared.lua -- - Dragon local kClientOwnedMines = { } if Server then local Detonate = GetUpValue(Mine.OnInitialized, "Detonate", { LocateRecurse = true } ) local function Arm(self) ...
mit
deepmind/mnist-cluttered
mnist_cluttered.lua
3
6421
--[[ Copyright 2014 Google Inc. All Rights Reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd ]] require 'torch' local M = {} -- Copies values from src to dst. local function update(dst, src) for k...
bsd-3-clause
fartoverflow/naev
dat/missions/empire/collective/ec02.lua
11
6561
--[[ Collective Espionage II Author: bobbens minor edits by Infiltrator Third mission in the collective mini campaign. You must land on an ex-empire planet in collective territory and return. ]]-- lang = naev.lang() if lang == "es" then -- not translated atm else -- default english bar_des...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Windurst_Waters_[S]/npcs/HomePoint#1.lua
3
1712
----------------------------------- -- Area: Windurst_Waters_[S] -- NPC: HomePoint#1 -- @pos ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Windurst_Waters_...
gpl-3.0
luzexi/slua-3rd-lib
build/luajit-2.1.0/src/host/genminilua.lua
127
11962
---------------------------------------------------------------------------- -- Lua script to generate a customized, minified version of Lua. -- The resulting 'minilua' is used for the build process of LuaJIT. ---------------------------------------------------------------------------- -- Copyright (C) 2005-2015 Mike P...
mit
msburgess3200/PERP
gamemodes/perp/gamemode/vehicles/Old Cars/bentley.lua
1
2886
/////////////////////////////// // © 2009-2010 Pulsar Effect // // All rights reserved // /////////////////////////////// // This material may not be // // reproduced, displayed, // // modified or distributed // // without the express prior // // written permission of the // // the copyright holder. // ...
mit
sadegh1996/sword_antispam
plugins/up.lua
13
2542
do local function save_file(name, text) local file = io.open("./data/files/"..name, "w") --upload file to server file:write(text) file:flush() file:close() return "فایل ارسالی در سرور ذخیره شد" end function run(msg, matches) if matches[1] == "up" and is_sudo(msg) then local name = m...
gpl-2.0
xToken/CompMod
lua/CompMod/Mixins/ConstructMixin/server.lua
1
1717
-- Natural Selection 2 Competitive Mod -- Source located at - https://github.com/xToken/CompMod -- lua\CompMod\Mixins\ConstructMixin\server.lua -- - Dragon local kDrifterBuildRate = 1 function ConstructMixin:OnConstructUpdate(deltaTime) local effectTimeout = Shared.GetTime() - self.timeLastConstruct > 0....
mit
m2mselect/owrt
feeds/packages/utils/yunbridge/files/usr/lib/lua/luci/sha256.lua
106
5170
-- -- Code merged by gravityscore at http://pastebin.com/gsFrNjbt -- -- Adaptation of the Secure Hashing Algorithm (SHA-244/256) -- Found Here: http://lua-users.org/wiki/SecureHashAlgorithm -- -- Using an adapted version of the bit library -- Found Here: https://bitbucket.org/Boolsheet/bslf/src/1ee664885805/bit....
gpl-2.0
FFXIOrgins/FFXIOrgins
scripts/zones/Gusgen_Mines/npcs/Clay.lua
34
1250
----------------------------------- -- Area: Gusgen Mines -- NPC: Clay -- Involved in Quest: A Potter's Preference -- @pos 117 -21 432 196 ----------------------------------- package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); re...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Windurst_Waters_[S]/npcs/Kleh_Engyumoh.lua
38
1051
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Kleh Engyumoh -- Type: Standard NPC -- @zone: 94 -- @pos -54.962 -4.5 57.701 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Mhaura/npcs/Lacia.lua
17
3134
----------------------------------- -- Area: Mhaura -- NPC: Lacia -- Starts Quest: Trial Size Trial By Lightning -- The "TrialSizeLightning_date" still needs to be set at the BCNM/Mob level to reflect defeat by the Avatar ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; ...
gpl-3.0
cwojtak/LoveUtils
utils/json/json.lua
4
15450
----------------------------------------------------------------------------- -- JSON4Lua: JSON encoding / decoding support for the Lua language. -- json Module. -- Author: Craig Mason-Jones -- Homepage: http://json.luaforge.net/ -- Version: 0.9.40 -- This module is released under the MIT License (MIT). -- Please see L...
mit
Arashbrsh/copyuz
plugins/service_entergroup.lua
355
3585
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
mkacik/bcc
examples/lua/usdt_ruby.lua
6
1209
#!/usr/bin/env bcc-lua --[[ Copyright 2016 GitHub, 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 agreed to in ...
apache-2.0
FFXIOrgins/FFXIOrgins
scripts/zones/Arrapago_Reef/npcs/qm4.lua
15
1167
----------------------------------- -- Area: Arrapago Reef -- NPC: ??? (Spawn Nuhn(ZNM T3)) -- @pos -451 -7 389 54 ----------------------------------- package.loaded["scripts/zones/Arrapago_Reef/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Arrapago_Reef/TextIDs"); --------------------...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Bastok_Markets/npcs/Zon-Fobun.lua
19
2358
----------------------------------- -- Area: Bastok Markets -- NPC: Zon-Fobun -- Type: Quest Giver -- @zone: 235 -- @pos -241.293 -3 63.406 -- -- Auto-Script: Requires Verification. Verified standard dialog - thrydwolf 12/18/2011 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/Tex...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/weaponskills/fast_blade.lua
6
1222
----------------------------------- -- Fast Blade -- Sword weapon skill -- Skill Level: 5 -- Delivers a two-hit attack. Damage varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Soil Gorget. -- Aligned with the Soil Belt. -- Element: None -- Modifiers: STR:20% ; DEX:20% -- 100%TP ...
gpl-3.0
subzrk/BadRotations
Rotations/Rogue/Assassination/AssassinationCuteOne.lua
2
45533
local rotationName = "CuteOne" --------------- --- Toggles --- --------------- local function createToggles() -- Rotation Button RotationModes = { [1] = { mode = "Auto", value = 1 , overlay = "Automatic Rotation", tip = "Swaps between Single and Multiple based on number of targets in range.", highlight = ...
gpl-3.0
Gael-de-Sailly/minetest-minetestforfun-server
mods/plantlife_modpack/bushes_classic/init.lua
7
1301
-- Bushes classic mod originally by unknown -- now maintained by VanessaE -- -- License: WTFPL local S = biome_lib.intllib bushes_classic = {} bushes_classic.bushes = { "strawberry", "blackberry", "blueberry", "raspberry", "gooseberry", "mixed_berry" } bushes_classic.bushes_descriptions = { "Strawberr...
unlicense
msburgess3200/PERP
gamemodes/perp/gamemode/items/item_lodine.lua
1
1092
local ITEM = {}; ITEM.ID = 8; ITEM.Reference = "item_lodine"; ITEM.Name = "Lodine"; ITEM.Description = "A bottle of lodine."; ITEM.Weight = 5; ITEM.Cost = 200; ITEM.MaxStack = 100; ITEM.InventoryModel = "models/props_junk/garbage_plasticbottle002a.mdl"; ITEM.ModelCamPos = ...
mit
FFXIOrgins/FFXIOrgins
scripts/zones/Sacrificial_Chamber/bcnms/jungle_boogymen.lua
6
1721
----------------------------------- -- Area: Sacrificial Chamber -- Name: jungle_boogymen -- BCNM60 ----------------------------------- package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil; ------------------------------------- require("scripts/zones/Sacrificial_Chamber/TextIDs"); -----------------------...
gpl-3.0
zhouxiaoxiaoxujian/skynet
examples/login/client.lua
19
3958
package.cpath = "luaclib/?.so" local socket = require "client.socket" local crypt = require "client.crypt" if _VERSION ~= "Lua 5.3" then error "Use lua 5.3" end local fd = assert(socket.connect("127.0.0.1", 8001)) local function writeline(fd, text) socket.send(fd, text .. "\n") end local function unpack_line(tex...
mit
TW1STaL1CKY/pac3
lua/pac3/core/client/parts/sprite.lua
1
3276
local render_SetMaterial = render.SetMaterial local render_DrawSprite = render.DrawSprite local Color = Color local Vector = Vector local cam_IgnoreZ = cam.IgnoreZ local PART = {} PART.ClassName = "sprite" PART.Group = 'effects' PART.Icon = 'icon16/layers.png' pac.StartStorableVars() pac.SetPropertyGroup() pac.Ge...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Tavnazian_Safehold/npcs/Misseulieu.lua
8
1545
----------------------------------- -- Area: Tavnazian Safehold -- NPC: Misseulieu -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil; require("scripts/zones/Tavnazian_Safehold/TextIDs"); ------------...
gpl-3.0
sjznxd/luci-0.11-aa
applications/luci-olsr/luasrc/model/cbi/olsr/olsrdiface.lua
9
5925
--[[ LuCI - Lua Configuration Interface Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id: olsrdifa...
apache-2.0
subzrk/BadRotations
Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua
47
8796
--[[ $Id: CallbackHandler-1.0.lua 18 2014-10-16 02:52:20Z mikk $ ]] local MAJOR, MINOR = "CallbackHandler-1.0", 6 local CallbackHandler = LibStub:NewLibrary(MAJOR, MINOR) if not CallbackHandler then return end -- No upgrade needed local meta = {__index = function(tbl, key) tbl[key] = {} return tbl[key] end} -- Lua A...
gpl-3.0
subzrk/BadRotations
Libs/LibArtifactData-1.0/CallbackHandler-1.0/CallbackHandler-1.0.lua
47
8796
--[[ $Id: CallbackHandler-1.0.lua 18 2014-10-16 02:52:20Z mikk $ ]] local MAJOR, MINOR = "CallbackHandler-1.0", 6 local CallbackHandler = LibStub:NewLibrary(MAJOR, MINOR) if not CallbackHandler then return end -- No upgrade needed local meta = {__index = function(tbl, key) tbl[key] = {} return tbl[key] end} -- Lua A...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Apollyon/bcnms/CS_Apollyon.lua
8
1259
----------------------------------- -- Area: Appolyon -- Name: ----------------------------------- require("scripts/globals/limbus"); require("scripts/globals/keyitems"); -- After registering the BCNM via bcnmRegister(bcnmid) function OnBcnmRegister(player,instance) SetServerVariable("[CS_Apollyon]UniqueID",Generat...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Zeruhn_Mines/Zone.lua
2
2467
----------------------------------- -- -- Zone: Zeruhn_Mines (172) -- ----------------------------------- package.loaded["scripts/zones/Zeruhn_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/zones/Zeruhn_Mines/TextIDs"); -----------------------...
gpl-3.0
unknownssassss/sudo_meti
plugins/msg_checks.lua
4
9306
local function run(msg, matches) local group = load_data('bot/group.json') local addgroup = group[tostring(msg.chat_id)] if addgroup then if is_momod(msg) or is_robot(msg) then return false else local group_mute_all = group[tostring(msg.chat_id)]['settings']['mute_all'] if group_mute_all == 'yes' then tg.deleteMessage...
gpl-3.0
joshimoo/Algorithm-Implementations
Partial_Selection_Sort/Lua/Yonaba/partial_selection_sort_test.lua
26
1029
-- Tests for partial_selection_sort.lua local PSS = require 'partial_selection_sort' 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 p...
mit
Gael-de-Sailly/minetest-minetestforfun-server
mods/mana/init.lua
7
8292
--[[ Mana 1.0.2 This mod adds mana to players, a special attribute License: WTFPL ]] --[===[ Initialization ]===] mana = {} mana.playerlist = {} mana.settings = {} mana.settings.default_max = 200 mana.settings.default_regen = 10 mana.settings.regen_timer = 10 do local default_max = tonumber(minetest.setting_get(...
unlicense
tullamods/OmniCC
OmniCC/effects/flare.lua
1
2516
-- a flare finish effect. Artwork by Renaitre local ADDON, Addon = ... local L = LibStub("AceLocale-3.0"):GetLocale(ADDON) local SHINE_TEXTURE = ([[Interface\Addons\%s\media\flare]]):format(ADDON) local SHINE_DURATION = 0.75 local SHINE_SCALE = 5 local FlareEffect = Addon.FX:Create("flare", L.Flare) local FlarePool d...
mit
POPHUP/maroonhost
plugins/tex.lua
14
2803
do local function send_title(cb_extra, success, result) if success then send_msg(cb_extra[1], cb_extra[2], ok_cb, false) end end local function run(msg, matches) local eq = URL.escape(matches[1]) local url = "http://latex.codecogs.com/png.download?" .."\\dpi{300}%20\\LARGE%20"..eq local receiver =...
gpl-2.0
loic-fejoz/loic-fejoz-fabmoments
laser-slicer/bear.lua
1
1807
--[[ The MIT License (MIT) Copyright (c) 2018 Loïc Fejoz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
mit
KnightTeam/Knight
plugins/banhammer.lua
105
12576
local function pre_process(msg) local data = load_data(_config.moderation.data) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Che...
agpl-3.0
Phoib/OpenRA
mods/cnc/maps/nod01/nod01.lua
4
1514
RifleInfantryReinforcements = { "e1", "e1", } RocketInfantryReinforcements = { "e3", "e3", "e3" } MissionAccomplished = function() Mission.MissionOver({ player }, nil, false) end MissionFailed = function() Mission.MissionOver(nil, { player }, false) Media.PlayMovieFullscreen("nodlose.vqa") end SendFirstInfantryRe...
gpl-3.0
JulianVolodia/awesome
tests/_runner.lua
4
2409
local timer = require("gears.timer") local awful = require("awful") runner = { quit_awesome_on_error = os.getenv('TEST_PAUSE_ON_ERRORS') ~= '1', -- quit-on-timeout defaults to false: indicates some problem with the test itself. quit_awesome_on_timeout = os.getenv('TEST_QUIT_ON_TIMEOUT') ~= '1', } -- Helpers. -...
gpl-2.0
FFXIOrgins/FFXIOrgins
scripts/zones/Bastok_Mines/npcs/Rashid.lua
23
3418
----------------------------------- -- Area: Bastok Mines -- NPC: Rashid -- Type: Mission Giver -- @pos -8.444 -2 -123.575 234 ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globa...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/spells/bluemagic/mp_drainkiss.lua
4
1433
----------------------------------------- -- Spell: MP Drainkiss -- Drain functions only on skill level!! ----------------------------------------- require("scripts/globals/magic"); require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------...
gpl-3.0
msburgess3200/PERP
gamemodes/perp/gamemode/vehicles/Old Cars/atv.lua
1
2558
/////////////////////////////// // © 2009-2010 Pulsar Effect // // All rights reserved // /////////////////////////////// // This material may not be // // reproduced, displayed, // // modified or distributed // // without the express prior // // written permission of the // // the copyright holder. // ...
mit
msburgess3200/PERP
gamemodes/perp/gamemode/items/item_balloon.lua
1
3168
local ITEM = {}; ITEM.ID = 63; ITEM.Reference = "item_balloon"; ITEM.Name = "Birthday Balloon"; ITEM.Description = "It's someone's birthday!"; ITEM.Weight = 5; ITEM.Cost = 500; ITEM.MaxStack = 100; ITEM.InventoryModel = "models/dav0r/balloon/balloon.mdl"; ITEM.ModelCamPos =...
mit
FFXIOrgins/FFXIOrgins
scripts/zones/Port_San_dOria/npcs/Miene.lua
19
2679
----------------------------------- -- Area: Port San d'Oria -- NPC: Miene -- NPC for Quest "The Pickpocket" ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/setting...
gpl-3.0
groupforspeed/TeleSniper
plugins/ingroup.lua
1
48979
do -- Check Member local function check_member_autorealm(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostr...
gpl-2.0
daofeng2015/luci
protocols/luci-proto-vpnc/luasrc/model/cbi/admin_network/proto_vpnc.lua
10
3250
-- Copyright 2015 Daniel Dickinson <openwrt@daniel.thecshore.com> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local server, username, password, hexpassword local authgroup, interface, passgroup, hexpassgroup local domain, vendor, natt_mode, dh_group local pfs, enable_single_d...
apache-2.0
sjznxd/lc-20130127
applications/luci-statistics/luasrc/model/cbi/luci_statistics/network.lua
80
3002
--[[ Luci configuration model for statistics - collectd network plugin configuration (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Licen...
apache-2.0
FFXIOrgins/FFXIOrgins
scripts/zones/Castle_Oztroja/npcs/_47z.lua
17
1384
----------------------------------- -- Area: Castle Oztroja -- NPC: _47z (Torch Stand) -- Notes: Opens door _474 -- @pos -62.464 24.218 -67.313 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Ca...
gpl-3.0
suchipi/pac3
lua/pac3/editor/client/settings.lua
1
1495
function pace.OnToggleFocus(show_editor) if pace.Focused then pace.KillFocus(show_editor) else pace.GainFocus(show_editor) end end function pace.SetTPose(b) if b then hook.Add("CalcMainActivity", "pace_tpose", function(ply) if ply == LocalPlayer() then return ply:LookupSequence("reference"), ...
gpl-3.0
soroushwilson/wilson1
plugins/help_en.lua
1
3742
do function run(msg, matches) if msg.to.type == 'chat' and is_momod(msg) then return 'Tele soroush Command List'..[[ ❤لیست دستورات💙: 🔴kick [آیدی،یوزر،ریپلی] 🔹شخص مورد نظر از گروه اخراج ميشود. ☑️ 🔴ban [آیدی،یوزر،ریپلی] 🔹شخص مورد نظر از گروه محروم میشود ☑️ 🔴unban [آیدی،یوزر،ریپلی] 🔹شخص مورد نظر از محرومیت خ...
gpl-2.0
msburgess3200/PERP
gamemodes/perp/gamemode/items/furniture_cop_barrier.lua
1
1199
local ITEM = {}; ITEM.ID = 86; ITEM.Reference = "furniture_Cop_Barrier"; ITEM.Name = "Police Barricade"; ITEM.Description = "Useful for blocking ncity roads."; ITEM.Weight = 50; ITEM.Cost = 350; ITEM.MaxStack = 100; ITEM.InventoryModel = "models/props_wasteland/barricade002a.m...
mit
velukh/MplusLedger
Libs/AceGUI-3.0/widgets/AceGUIContainer-Frame.lua
1
9700
--[[----------------------------------------------------------------------------- Frame Container -------------------------------------------------------------------------------]] local Type, Version = "Frame", 26 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidgetVersion(Type...
mit
realtime-framework/RealtimeMessaging-Lua
OrtcClient/src/ibt/ortc/uri/uri/file/win32.lua
4
1113
local M = { _NAME = "uri.file.win32" } local URI = require "uri" local Util = require "uri._util" function M.filesystem_path (uri) local host = uri:host() local path = Util.uri_decode(uri:path()) if host ~= "" then path = "//" .. host .. path end if path:find("^/[A-Za-z]|/") or path:find("^/[A-Za-z]|$"...
mit
FFXIOrgins/FFXIOrgins
scripts/globals/items/jar_of_marinara_sauce.lua
36
1162
----------------------------------------- -- ID: 5747 -- Item: Jar of Marinara Sauce -- Food Effect: 5Min, All Races ----------------------------------------- -- Mind 2 -- Intelligence 1 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemChe...
gpl-3.0
sjznxd/lc-20130127
applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua
29
16495
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
apache-2.0
m2mselect/owrt
feeds/luci/applications/luci-app-simman/luasrc/model/cbi/simman.lua
1
6510
-- -- require 'luci.sys' function split(text, delim) -- returns an array of fields based on text and delimiter (one character only) local result = {} local magic = "().%+-*?[]^$" if delim == nil then delim = "%s" elseif string.find(delim, magic, 1, true) then -- escape magic ...
gpl-2.0
sjznxd/lc-20130127
modules/niu/luasrc/model/cbi/niu/system/general1.lua
49
1145
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- loc...
apache-2.0
msburgess3200/PERP
addons/assmod/lua/vgui/DCountDownPanel.lua
1
2279
///////////////////////////////////////// // © 2010-2020 D3luX - D3luX-Gaming // // All rights reserved // ///////////////////////////////////////// // This material may not be // // reproduced, displayed, // // modified or distributed // // without the express prior // // writte...
mit
FFXIOrgins/FFXIOrgins
scripts/zones/Inner_Horutoto_Ruins/npcs/_5ct.lua
17
2436
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: _5ct (Magical Gizmo) #5 -- Involved In Mission: The Horutoto Ruins Experiment ----------------------------------- package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil; ----------------------------------- require("scripts...
gpl-3.0
mehrpouya81/gamer1
plugins/inrealm.lua
228
16974
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if is_sudo(msg) or is_realm(msg) and is_admin(msg) then local group_creator = msg.from.print_name create_group_ch...
gpl-2.0
FFXIOrgins/FFXIOrgins
scripts/globals/items/plate_of_sea_spray_risotto.lua
35
1632
----------------------------------------- -- ID: 4268 -- Item: plate_of_sea_spray_risotto -- Food Effect: 4Hrs, All Races ----------------------------------------- -- HP 45 -- Dexterity 6 -- Agility 3 -- Mind -4 -- HP Recovered While Healing 1 -- Accuracy % 6 (cap 20) ----------------------------------------...
gpl-3.0
ho3einkj/boti
plugins/banhammer.lua
60
11556
local function pre_process(msg) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Checking invited user '..user_id) local banned ...
gpl-2.0
NORTTeam/N.O.R.T
plugins/banhammer.lua
60
11556
local function pre_process(msg) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Checking invited user '..user_id) local banned ...
gpl-2.0
alicybery/unknownbot
plugins/banhammer.lua
60
11556
local function pre_process(msg) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Checking invited user '..user_id) local banned ...
gpl-2.0
FFXIOrgins/FFXIOrgins
scripts/globals/items/tavnazian_sheep_liver.lua
36
1221
----------------------------------------- -- ID: 5154 -- Item: Tavnazian Sheep Liver -- Food Effect: 5Min, Galka only ----------------------------------------- -- Strength 2 -- Intelligence -4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnI...
gpl-3.0
wilbefast/you-ordered-a-pizza
src/assets/lson/clothes.lua
1
18756
return { Nude_Charlie= { color = {0,0,0 }, body_parts = { head = {"head_Charlie_2"}, torso = {"torso_Charlie","Charlie"}, rightArm = {"arm_Charlie"}, rightForearm = {"arm_Charlie"}, rightHand = {"rightHand_Charlie"}, leftArm = {"arm_Charlie"}, leftForearm = {"arm_Charlie"}, leftHand = {"leftHan...
mit
Gael-de-Sailly/minetest-minetestforfun-server
mods/homedecor_modpack/chains/init.lua
7
3970
local chains_sbox = { type = "fixed", fixed = { -0.1, -0.625, -0.1, 0.1, 0.5, 0.1 } } local topchains_sbox = { type = "fixed", fixed = { { -0.25, 0.35, -0.25, 0.25, 0.5, 0.25 }, { -0.1, -0.625, -0.1, 0.1, 0.4, 0.1 } } } minetest.register_node("chains:chain", { description = "Hanging chain (wrought iron)", ...
unlicense
FFXIOrgins/FFXIOrgins
scripts/globals/items/bowl_of_puls.lua
35
1308
----------------------------------------- -- ID: 4492 -- Item: bowl_of_puls -- Food Effect: 3Hrs, All Races ----------------------------------------- -- Vitality 2 -- Dexterity -1 -- HP Recovered While Healing 3 ----------------------------------------- require("scripts/globals/status"); -----------------...
gpl-3.0
jimwwalker/couchstore
tests/compact.lua
6
1515
package.path = package.path .. ";tests/?.lua" local testlib = require("testlib") local function check_table(db, t) for i,v in ipairs(t) do local k = v[1] testlib.check_doc(db, k, v[2]) end local found = 0 db:changes(0, 0, function(di) found = found + 1 end) if found ~= #t then error("...
apache-2.0
sjznxd/lc-20130127
applications/luci-firewall/luasrc/model/cbi/firewall/forward-details.lua
12
4205
--[[ LuCI - Lua Configuration Interface Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- lo...
apache-2.0
FFXIOrgins/FFXIOrgins
scripts/globals/weaponskills/mordant_rime.lua
4
4666
----------------------------------- -- Mordant Rime -- Dagger weapon skill -- Skill level: N/A -- Description: Delivers a twofold attack that decreases target's movement speed. Chance of decreasing movement speed varies with TP. Carnwenhan: Aftermath effect varies with TP. -- Aligned with the Breeze Gorget,...
gpl-3.0
Capster/Metro
lua/metro/ui/dfilebrowser.lua
1
1455
local PANEL = {} AccessorFunc( PANEL, "m_strName", "Name" ) AccessorFunc( PANEL, "m_strPath", "Path" ) AccessorFunc( PANEL, "m_strFilter", "Files" ) AccessorFunc( PANEL, "m_strCurrentFolder", "CurrentFolder" ) AccessorFunc( PANEL, "m_bModels", "Models" ) function PANEL:Init() self.Tree = self:Add("DTree"...
apache-2.0
FFXIOrgins/FFXIOrgins
scripts/zones/Upper_Jeuno/npcs/Leillaine.lua
37
1276
----------------------------------- -- Area: Upper Jeuno -- NPC: Leillaine -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; require("scripts/zones/Upper_Jeuno/TextIDs"); ----------------------------------...
gpl-3.0
starius/luawt
src/luawt/test.lua
1
2090
-- luawt, Lua bindings for Wt -- Copyright (c) 2015-2016 Pavel Dolgov and Boris Nagaev -- See the LICENSE file for terms of use. local test = {} function test.socketRequest(port) local http_client = require 'socket.http' local data = http_client.request('http://127.0.0.1:' .. port) return data end functi...
gpl-2.0
satreix/awesome
vicious/widgets/dio.lua
15
2252
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2011, Jörg T. <jthalheim@gmail.com> --------------------------------------------------- -- {{{ Grab environment local pairs = pairs local io = { lines = io.lines } local setmetatable = setmetatable local s...
mit