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
SirFrancisBillard/stupid-ttt
stupid-ttt/lua/entities/ttt_map_settings.lua
2
2603
ENT.Type = "point" ENT.Base = "base_point" function ENT:Initialize() -- Backwards compatibility: TTT maps compiled before the addition of the -- propspec setting may expect it to be off, so default it to off if a map -- settings entity exists (a reliable way of identifying a TTT map) GAMEMODE.propspec_all...
gpl-3.0
pm234md/sbbs
bot/teleadvan.lua
1
17734
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") local f = assert(io.popen('/usr/bin/git describe --tags', 'r')) VERSION = assert(f:read('*a')) f:close() -- This function is ...
gpl-2.0
poire-z/koreader
frontend/ui/widget/closebutton.lua
4
2374
--[[-- Button widget that shows an "×" and handles closing window when tapped Example: local CloseButton = require("ui/widget/closebutton") local parent_widget = OverlapGroup:new{} table.insert(parent_widget, CloseButton:new{ window = parent_widget, }) UIManager:show(parent_widget) ]] lo...
agpl-3.0
lxl1140989/6291-xl
feeds/luci/applications/luci-asterisk/luasrc/model/cbi/asterisk-iax-connections.lua
80
2000
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 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 License at h...
gpl-2.0
ZhouJiaLinmumu/lstm-char-cnn
util/grad_check.lua
5
1438
require 'nn' require 'TensorProd' x1 = torch.randn(40,15) x2 = torch.randn(40,10) y = torch.randn(40,1) m = nn.Sequential() m:add(nn.TensorProd(15,10,5)) m:add(nn.Linear(5,1)) crit = nn.MSECriterion() m:zeroGradParameters() pred = m:forward({x1,x2}) loss = crit:forward(pred, y) dl_dp = crit:backward(pred,y) grad_input...
mit
Baylamon/Illarion-Content
monster/race_89_red_imp/id_893_mystic.lua
1
1349
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
salamader/ffxi-a
scripts/zones/Southern_San_dOria_[S]/npcs/AshmeaBGreinner1.lua
36
1124
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Ashmea B Greinner -- @zone 80 -- @pos 2 2 -81 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil; require("scripts/zones/Southern_San_dOria_[S]/TextIDs"); ------------------------...
gpl-3.0
ricker75/forgottenserver
data/spells/scripts/party/train.lua
11
1837
local combat = createCombatObject() local area = createCombatArea(AREA_CROSS5X5) setCombatArea(combat, area) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, COND...
gpl-2.0
nublet/WoWCache
WTF/Account/869497#2/Genjuros/Nodaddy/SavedVariables/EasyScrap.lua
59
1881
EasyScrap_IgnoreList = { [152632] = { ["isAzeriteArmor"] = false, [300] = { ["Surging Alchemist Stone"] = { { "4927", -- [1] }, -- [1] }, }, }, ["addonVersion"] = 24, [159268] = { ["isAzeriteArmor"] = true, [370] = { ["Inmate's Straight Robe"] = { { "5052", -- [1] "154...
mit
salamader/ffxi-a
scripts/globals/items/coin_cookie.lua
2
1281
----------------------------------------- -- ID: 4520 -- Item: coin_cookie -- Food Effect: 5Min, All Races ----------------------------------------- -- Magic Regen While Healing 6 -- Vermin Killer 5 -- Poison Resist 5 ----------------------------------------- require("scripts/globals/status"); -----------...
gpl-3.0
ricker75/forgottenserver
data/lib/core/position.lua
9
1759
Position.directionOffset = { [DIRECTION_NORTH] = {x = 0, y = -1}, [DIRECTION_EAST] = {x = 1, y = 0}, [DIRECTION_SOUTH] = {x = 0, y = 1}, [DIRECTION_WEST] = {x = -1, y = 0}, [DIRECTION_SOUTHWEST] = {x = -1, y = 1}, [DIRECTION_SOUTHEAST] = {x = 1, y = 1}, [DIRECTION_NORTHWEST] = {x = -1, y = -1}, [DIRECTION_NORTH...
gpl-2.0
g0g0dancer/searework
LuaUI/Widgets/cmd_ferry_points.lua
4
17912
function widget:GetInfo() return { name = "Ferry Points", desc = "Allow the creation of ferry routes for transports. Move transports and units to route entrance to assign them to the ferry route.", author = "Google Frog", date = "24 Nov 2010", license = "GNU GPL, v2 or later",...
gpl-2.0
cardentity/DarkRP
gamemode/modules/language/sh_language.lua
2
3433
local rp_languages = {} local selectedLanguage = GetConVarString("gmod_language") -- Switch language by setting gmod_language to another language function DarkRP.addLanguage(name, tbl) local old = rp_languages[name] or {} rp_languages[name] = tbl -- Merge the language with the translations added by DarkRP.addPhras...
mit
salamader/ffxi-a
scripts/zones/VeLugannon_Palace/npcs/Treasure_Coffer.lua
2
3555
----------------------------------- -- Area: Ve'Lugannon Palace -- NPC: Treasure Coffer -- @zone 177 -- @pos ----------------------------------- package.loaded["scripts/zones/VeLugannon_Palace/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals...
gpl-3.0
Xamla/torch-moveit
RobotState.lua
1
12094
--- LUA wrapper for moveit robot state environment -- dependency to tourch.ros -- @classmod RobotState local ffi = require 'ffi' local torch = require 'torch' local ros = require 'ros' local moveit = require 'moveit.env' local utils = require 'moveit.utils' local std = ros.std local tf = ros.tf local RobotState = torc...
bsd-3-clause
g0g0dancer/searework
LuaUI/Widgets/chili/Headers/skinutils.lua
4
32969
--//============================================================================= --// function _DrawTextureAspect(x,y,w,h ,tw,th) local twa = w/tw local tha = h/th local aspect = 1 if (twa < tha) then aspect = twa y = y + h*0.5 - th*aspect*0.5 h = th*aspect else aspect = tha x = x + w*0...
gpl-2.0
KohaiKhaos/modified-MWDF
MWDF Project/Dwarf Fortress/hack/scripts/names.lua
2
1694
--rename items or units --[====[ names ===== Rename units or items. Usage: :-help: print this help message :-item: if viewing an item :-unit: if viewing a unit :-first [Somename | "Some Names like This": if a first name is desired, leave blank to clear current first name ]====] l...
mit
salamader/ffxi-a
scripts/globals/spells/quake.lua
2
1214
----------------------------------------- -- Spell: Quake -- Deals earth damage to an enemy. ----------------------------------------- require("scripts/globals/magic"); require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- fu...
gpl-3.0
salamader/ffxi-a
scripts/zones/West_Ronfaure/npcs/Ballie_RK.lua
4
2891
----------------------------------- -- Area: West Ronfaure -- NPC: Ballie, R.K. -- Border Conquest Guards -- @pos -560.292 -0.961 -576.655 100 ----------------------------------- package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest"); requi...
gpl-3.0
salamader/ffxi-a
scripts/zones/Southern_San_dOria/npcs/Arpetion.lua
36
1469
----------------------------------- -- Area: Southern San d'Oria -- NPC: Arpetion -- General Info NPC -- @zone 230 -- @pos -11 1 -30 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings...
gpl-3.0
cardentity/DarkRP
gamemode/libraries/mysqlite/mysqlite.lua
1
5902
local debug = debug local error = error local Error = Error local ErrorNoHalt = ErrorNoHalt local hook = hook local include = include local pairs = pairs local require = require local sql = sql local string = string local table = table local timer = timer local tostring = tostring local print = print local GAMEMODE = G...
mit
remspoor/nodemcu-firmware
examples/fragment.lua
55
19918
pwm.setup(0,500,50) pwm.setup(1,500,50) pwm.setup(2,500,50) pwm.start(0) pwm.start(1) pwm.start(2) function led(r,g,b) pwm.setduty(0,g) pwm.setduty(1,b) pwm.setduty(2,r) end wifi.sta.autoconnect(1) a=0 tmr.alarm( 1000,1,function() if a==0 then a=1 led(50,50,50) else a=0 led(0,0,0) end end) sv:on("receive", function(s,...
mit
disslove/J.R-Bot
plugins/gnuplot.lua
622
1813
--[[ * Gnuplot plugin by psykomantis * dependencies: * - gnuplot 5.00 * - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html * ]] -- Gnuplot needs absolute path for the plot, so i run some commands to find where we are local outputFile = io.popen("pwd","r") io.input(outputFile...
gpl-2.0
ESX-Org/es_extended
modules/__core__/interact/client/module.lua
1
1404
-- Copyright (c) Jérémie N'gadi -- -- All rights reserved. -- -- Even if 'All rights reserved' is very clear : -- -- You shall not use any piece of this software in a commercial product / service -- You shall not resell this software -- You shall not provide any facility to install this particular software in a c...
gpl-3.0
nublet/WoWCache
WTF/Account/Poesboi/Genjuros/Absa/SavedVariables/EasyScrap.lua
38
1881
EasyScrap_IgnoreList = { [152632] = { ["isAzeriteArmor"] = false, [300] = { ["Surging Alchemist Stone"] = { { "4927", -- [1] }, -- [1] }, }, }, ["addonVersion"] = 24, [159268] = { ["isAzeriteArmor"] = true, [370] = { ["Inmate's Straight Robe"] = { { "5052", -- [1] "154...
mit
nublet/WoWCache
WTF/Account/Poesboi/Neptulon/Grimsheepér/SavedVariables/EasyScrap.lua
38
1881
EasyScrap_IgnoreList = { [152632] = { ["isAzeriteArmor"] = false, [300] = { ["Surging Alchemist Stone"] = { { "4927", -- [1] }, -- [1] }, }, }, ["addonVersion"] = 24, [159268] = { ["isAzeriteArmor"] = true, [370] = { ["Inmate's Straight Robe"] = { { "5052", -- [1] "154...
mit
nublet/WoWCache
WTFClassic/Account/Poesboi/Mirage Raceway/Monawr/SavedVariables/EasyScrap.lua
38
1881
EasyScrap_IgnoreList = { [152632] = { ["isAzeriteArmor"] = false, [300] = { ["Surging Alchemist Stone"] = { { "4927", -- [1] }, -- [1] }, }, }, ["addonVersion"] = 24, [159268] = { ["isAzeriteArmor"] = true, [370] = { ["Inmate's Straight Robe"] = { { "5052", -- [1] "154...
mit
g0g0dancer/searework
gamedata/weapondefs_post.lua
4
13204
-- $Id: weapondefs_post.lua 3171 2008-11-06 09:06:29Z det $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: weapondefs_post.lua -- brief: weaponDef post processing -- author: Dave Rodge...
gpl-2.0
ArmanIr/olalala
plugins/quotes.lua
651
1630
local quotes_file = './data/quotes.lua' local quotes_table function read_quotes_file() local f = io.open(quotes_file, "r+") if f == nil then print ('Created a new quotes file on '..quotes_file) serialize_to_file({}, quotes_file) else print ('Quotes loaded: '..quotes_file) f...
gpl-2.0
salamader/ffxi-a
scripts/globals/items/bottle_of_ascetics_gambir.lua
2
1175
----------------------------------------- -- ID: 5842 -- Item: Bottle of Ascetic's Gambir -- Item Effect: Temporarily increases magic atk power and acc ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck --------------------------------...
gpl-3.0
salamader/ffxi-a
scripts/zones/The_Eldieme_Necropolis/npcs/_5fr.lua
2
2415
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: South Plate -- @zone 195 -- @pos 180 -34 -31 -- 17576330 ----------------------------------- ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; -...
gpl-3.0
CapsAdmin/goluwa
game/lua/examples/benchmarks/ipairs_vs_for_i.lua
1
1117
local test = {} for i = 1, 10000 do test[i] = math.random() end local ipairs = ipairs LOOM("") profiler.MeasureFunctions( { ["ipairs"] = function() local lol = 0 for i, v in ipairs(test) do lol = lol + v end end, ["while i < #test"] = function() local lol = 0 local i = 1 while i < #tes...
gpl-3.0
kennykwok1/PlaygroundOSS
Tutorial/21.Form/.publish/iphone/Form.lua
3
1048
function setup() local x = 0 local y = 0 local pForm = UI_Form(nil, -- arg[1]: 親となるUIタスクのポインタ 7000, -- arg[2]: 基準表示プライオリティ x, y, -- arg[3,4]: 表示位置 "asset://form.json", -- arg[5]: composit jsonのパス false -- arg[6]: 排他フラグ ) --[[ arg[6]:排他フラグ は、省略可能です。 省略した場合は false と同じ挙動になります。 ]] TASK_StageOnly(pFo...
apache-2.0
NathanLawrence/keys
VSCOKeys.lrdevplugin/Shutdown.lua
11
1144
--[[---------------------------------------------------------------------------- VSCO Keys for Adobe Lightroom Copyright (C) 2015 Visual Supply Company Licensed under GNU GPLv2 (or any later version). This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Lic...
gpl-2.0
CapsAdmin/goluwa
core/lua/modules/nattlua/nattlua/other/base64.lua
1
4724
--[[# --ANALYZE local type Encoder = {[number] = number}]] local base64 = {} local extract = _G.bit32 and _G.bit32.extract -- Lua 5.2/Lua 5.3 in compatibility mode if not extract then if _G.bit then -- LuaJIT local shl, shr, band = _G.bit.lshift, _G.bit.rshift, _G.bit.band extract = function(v, from, width) ret...
gpl-3.0
salamader/ffxi-a
scripts/globals/abilities/pets/healing_breath_iii.lua
6
3166
--------------------------------------------------- -- Healing Breath III --------------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); require("/scripts/globals/monstertpmoves"); --------------------------------------------------- function On...
gpl-3.0
salamader/ffxi-a
scripts/zones/Beadeaux/npcs/The_Mute.lua
2
1285
----------------------------------- -- Area: Beadeaux -- NPC: The Mute -- @zone 147 -- @pos -166.230 -1 -73.685 -- @pos <many> ----------------------------------- package.loaded["scripts/zones/Beadeaux/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Beadeaux/TextIDs"); require("scripts/glo...
gpl-3.0
Baylamon/Illarion-Content
content/gatheringcraft/farming.lua
1
7075
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
KohaiKhaos/modified-MWDF
MWDF Project/Dwarf Fortress/hack/scripts/autolabor-artisans.lua
2
1546
-- Run an autolabor command for skill-affected labors. local help = [====[ autolabor-artisans ================== Runs an `autolabor` command, for all labors where skill level influences output quality. Examples:: autolabor-artisans 0 2 3 autolabor-artisans disable ]====] local artisan_labors =...
mit
codingabc/skynet
lualib/http/httpc.lua
12
3629
local skynet = require "skynet" local socket = require "http.sockethelper" local url = require "http.url" local internal = require "http.internal" local dns = require "skynet.dns" local string = string local table = table local httpc = {} local function request(fd, method, host, url, recvheader, header, content) loc...
mit
nublet/WoWCache
WTF/Account/869497#2/Neptulon/Tulafia/SavedVariables/Details.lua
1
14669
_detalhes_database = { ["savedbuffs"] = { }, ["mythic_dungeon_id"] = 0, ["tabela_historico"] = { ["tabelas"] = { { { ["combatId"] = 58, ["tipo"] = 2, ["_ActorTable"] = { { ["flag_original"] = 1297, ["totalabsorbed"] = 0.008921, ["damage_from"] = { ["Enviro...
mit
salamader/ffxi-a
scripts/zones/Selbina/npcs/Thunder_Hawk.lua
2
2281
----------------------------------- -- Area: Selbina -- NPC: Thunder Hawk -- Starts and Finishes Quest: The Rescue -- @zone 248 -- @pos -58, -10, 6 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/titles"); require("scripts/globals/quests"); --------------...
gpl-3.0
CapsAdmin/goluwa
game/lua/libraries/gmod/libraries/physics.lua
1
2970
function gine.env.util.TraceLine(info) local data = {} data.Entity = NULL -- [Entity] The entity hit by the trace data.Fraction = 0 -- [number] This indicates the how much of your trace length was used from 0-1 (resultLength/originalLength) data.FractionLeftSolid = 0 -- [number] Given the trace started in a solid e...
gpl-3.0
g0g0dancer/searework
effects/opticblast.lua
17
3409
return { ["opticblast_charge"] = { charge = { air = true, class = [[CSimpleParticleSystem]], ground = true, water = true, properties = { airdrag = .95, alwaysvisible = true, colormap ...
gpl-2.0
Wangyao14cyy/redis
deps/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
bsd-3-clause
mailz32/gmod-addon-share
lua/autorun/client/cl_addon_share.lua
1
3483
if game.SinglePlayer() then return end local categoryIcons = { ["Effects"] = "icon16/image.png", ["Entity"] = "icon16/bomb.png", ["Gamemode"] = "icon16/controller.png", ["map"] = "icon16/map.png", ["model"] = "icon16/sport_soccer.png", ["NPC"] = "...
mit
hurricup/WoW-Ace3
CallbackHandler-1.0/CallbackHandler-1.0.lua
35
8804
--[[ $Id: CallbackHandler-1.0.lua 1131 2015-06-04 07:29:24Z nevcairiel $ ]] 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} ...
bsd-3-clause
lxl1140989/6291-xl
feeds/luci/applications/luci-statistics/luasrc/model/cbi/luci_statistics/rrdtool.lua
80
3431
--[[ Luci configuration model for statistics - collectd rrdtool 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...
gpl-2.0
poire-z/koreader
spec/unit/readerui_spec.lua
4
2506
describe("Readerui module", function() local DocumentRegistry, ReaderUI, DocSettings, UIManager, Screen local sample_epub = "spec/front/unit/data/leaves.epub" local readerui setup(function() require("commonrequire") DocumentRegistry = require("document/documentregistry") ReaderUI...
agpl-3.0
salamader/ffxi-a
scripts/globals/spells/valor_minuet_iii.lua
2
1464
----------------------------------------- -- Spell: Valor Minuet III -- Grants Attack bonus to all allies. ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function OnMagicCasting...
gpl-3.0
salamader/ffxi-a
scripts/zones/Tavnazian_Safehold/npcs/Pradiulot.lua
19
2403
----------------------------------- -- Area: Tavnazian Safehold -- NPC: Pradiulot -- Involved in Quest: Unforgiven -- @zone 26 -- @pos -20.814 -22 8.399 ----------------------------------- package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil; ----------------------------------- require("scripts/zon...
gpl-3.0
salamader/ffxi-a
scripts/zones/Bastok_Mines/npcs/Gerbaum.lua
19
2167
----------------------------------- -- Area: Bastok Mines -- NPC: Gerbaum -- Starts & Finishes Repeatable Quest: Minesweeper (100%) ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require("sc...
gpl-3.0
salamader/ffxi-a
scripts/globals/spells/virus.lua
3
1179
----------------------------------------- -- Spell: Virus ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function OnMagicCastingCheck(caster,target,spell)...
gpl-3.0
salamader/ffxi-a
scripts/globals/items/timbre_timbers_salad.lua
2
1410
----------------------------------------- -- ID: 4321 -- Item: timbre_timbers_salad -- Food Effect: 240Min, All Races ----------------------------------------- -- Magic 20 -- Agility 5 -- Vitality -1 -- Ranged ACC % 8 -- Ranged ACC Cap 15 ----------------------------------------- require("scripts/globals/s...
gpl-3.0
salamader/ffxi-a
scripts/zones/Windurst_Waters_[S]/npcs/Gevarg.lua
4
1053
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Gevarg -- Type: Past Event Watcher -- @zone: 94 -- @pos: -46.448 -6.312 212.384 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = n...
gpl-3.0
SirFrancisBillard/stupid-ttt
stupid-ttt/lua/weapons/weapon_ttt_defib.lua
1
6200
local STATE_NONE, STATE_PROGRESS, STATE_ERROR = 0, 1, 2 local color_red = Color(255, 0, 0) SWEP.Base = "weapon_tttbase" SWEP.HoldType = "slam" SWEP.ViewModel = Model("models/weapons/v_c4.mdl") SWEP.WorldModel = Model("models/weapons/w_c4.mdl") --- TTT Vars SWEP.Kind = WEAPON_EQUIP2 SWEP.AutoSpawnable = false SWEP.Ca...
gpl-3.0
CapsAdmin/goluwa
core/lua/modules/nattlua/test/nattlua/analyzer/boolean_algebra.lua
1
4149
local T = require("test.helpers") local analyze = T.RunCode analyze[[ -- A local A = _ as true | false if A then attest.equal(A, true) end ]] analyze[[ -- A or B local A = _ as true | false local B = _ as true | false if A then attest.equal(A, true) attest.equal(B, _...
gpl-3.0
raboof/notion
contrib/scripts/net_client_list.lua
7
2805
-- Authors: Etan Reisner <deryni@gmail.com> -- License: MIT, see http://opensource.org/licenses/mit-license.php -- Last Changed: 2007-07-22 -- --[[ Author: Etan Reisner Email: deryni@unreliablesource.net Summary: Maintains the _NET_CLIENT_LIST property (and the _NET_CLIENT_LIST_STACKING property incorrectly) on the roo...
lgpl-2.1
nublet/WoWCache
WTF/Account/869497#2/SavedVariables/DataStore_Talents.lua
1
75365
DataStore_TalentsDB = { ["profileKeys"] = { ["Phantasm - Neptulon"] = "Poesboi", ["Morenoya - Neptulon"] = "Poesboi", ["Tulafia - Neptulon"] = "Poesboi", ["Classydma - Genjuros"] = "Poesboi", ["Ploxheal - Darksorrow"] = "Poesboi", ["Chamallow - Neptulon"] = "Poesboi", ["Classywwl - Genjuros"] = "Poesboi...
mit
nublet/WoWCache
WTF/Account/Poesboi/SavedVariables/BonusRollFilter.lua
1
3464
BRF_Data = { ["profileKeys"] = { ["Cloúd - Neptulon"] = "Poesboi", ["Buttercup - Neptulon"] = "Poesboi", ["Macked - Neptulon"] = "Poesboi", ["Nedbank - Darksorrow"] = "Poesboi", ["Crossblessér - Neptulon"] = "Poesboi", ["Bonniè - Darksorrow"] = "Poesboi", ["Shreduction - Neptulon"] = "Poesboi", ["Sick...
mit
Baylamon/Illarion-Content
base/townTreasure.lua
4
4883
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
carlosmarti/Polycode
examples/lua_rename/3D_Physics/3DPhysics_Character/Scripts/Main.lua
10
2640
scene = PhysicsScene(0, Vector3(200, 200, 200)) ground = ScenePrimitive(ScenePrimitive.TYPE_PLANE, 10, 10) ground:loadTexture("Resources/green_texture.png") scene:addPhysicsChild(ground, 6, 0) for i = 1, 1 do local box = ScenePrimitive(ScenePrimitive.TYPE_BOX, 0.8, 0.8, 0.8) box:loadTexture("Resources/pink_texture...
mit
1st8/prosody-modules
mod_block_registrations/mod_block_registrations.lua
21
1056
local st = require "util.stanza"; local nodeprep = require "util.encodings".stringprep.nodeprep; local block_users = module:get_option_set("block_registrations_users", { "admin" }); local block_patterns = module:get_option_set("block_registrations_matching", {}); local require_pattern = module:get_option_string("block...
mit
poire-z/koreader
frontend/ui/widget/buttondialogtitle.lua
4
4794
local Blitbuffer = require("ffi/blitbuffer") local ButtonTable = require("ui/widget/buttontable") local CenterContainer = require("ui/widget/container/centercontainer") local Device = require("device") local Font = require("ui/font") local FrameContainer = require("ui/widget/container/framecontainer") local Geom = requ...
agpl-3.0
carlosmarti/Polycode
examples/lua_rename/Graphics/MaterialsAndLighting/Scripts/AdvancedLighting.lua
10
1668
Services.ResourceManager:addDirResource("Resources", false) scene = Scene(Scene.SCENE_3D) ground = ScenePrimitive(ScenePrimitive.TYPE_PLANE, 5,5) ground:setMaterialByName("GroundMaterial", Services.ResourceManager:getGlobalPool()) scene:addEntity(ground) box = ScenePrimitive(ScenePrimitive.TYPE_TORUS, 0.8,0.3,30,20)...
mit
Baylamon/Illarion-Content
content/granorsHut.lua
1
8581
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope th...
agpl-3.0
salamader/ffxi-a
scripts/zones/The_Shrine_of_RuAvitau/mobs/Mother_Globe.lua
2
3042
----------------------------------- -- Area: The Shrine of Ru'Avitau -- NPC: Mother Globe ----------------------------------- package.loaded["scripts/zones/The_Shrine_of_RuAvitau/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); require( "scripts/zones/The_Shrine_of_RuAvit...
gpl-3.0
lisinge/dotfiles
config/nvim/lua/settings.lua
1
2447
local scopes = {o = vim.o, b = vim.bo, w = vim.wo} local function opt(scope, key, value) scopes[scope][key] = value if scope ~= "o" then scopes["o"][key] = value end end opt("o", "compatible", false) opt("o", "hidden", true) opt("o", "backup", false) opt("o", "autoindent", true) opt("o", "writebac...
mit
CapsAdmin/goluwa
game/lua/modules/luacheck/globbing.lua
1
3773
local fs = require("luacheck.fs") local utils = require("luacheck.utils") -- Only ?, *, ** and simple character classes (with ranges and negation) are supported. -- Hidden files are not treated specially. Special characters can't be escaped. local globbing = {} local function is_regular_path(glob) return not glob:fin...
gpl-3.0
hurricup/WoW-Ace3
AceGUI-3.0/widgets/AceGUIWidget-Label.lua
46
4441
--[[----------------------------------------------------------------------------- Label Widget Displays text and optionally an icon. -------------------------------------------------------------------------------]] local Type, Version = "Label", 23 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or...
bsd-3-clause
gittyRavi/NNChess
NN_example_mar-I-O/NEATEvolve.lua
1
33686
-- MarI/O by SethBling -- Feel free to use this code, but please do not redistribute it. -- Intended for use with the BizHawk emulator and Super Mario World or Super Mario Bros. ROM. -- For SMW, make sure you have a save state named "DP1.state" at the beginning of a level, -- and put a copy in both the Lua folder and t...
mit
male-puppies/luci
build/luadoc/luadoc/util.lua
46
5858
------------------------------------------------------------------------------- -- General utilities. -- @release $Id: util.lua,v 1.16 2008/02/17 06:42:51 jasonsantos Exp $ ------------------------------------------------------------------------------- local posix = require "nixio.fs" local type, table, string, io, as...
apache-2.0
poire-z/koreader
frontend/device/sdl/event_map_sdl2.lua
4
2383
return { [ 97] = "A", [ 98] = "B", [ 99] = "C", [100] = "D", [101] = "E", [102] = "F", [103] = "G", [104] = "H", [105] = "I", [106] = "J", [107] = "K", [108] = "L", [109] = "M", [110] = "N", [111] = "O", [112] = "P", [113] = "Q", [114] = "R", [115] = "S", [116] = "T", [117] = "U", [118] = "V", [119] = ...
agpl-3.0
LoEE/lpc17prl
uuenc.lua
1
1713
local D = require'util' local bit = require'bit32' local codes = "`!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_" local byte = string.byte local sub = string.sub local function encode3 (str, start, padding) start = start or 1 padding = padding or 0x00 local n = (byte(str, start) or padding)...
gpl-2.0
cardentity/DarkRP
gamemode/modules/fadmin/fadmin/playeractions/cloak/sv_init.lua
3
2501
local CloakThink local function Cloak(ply, cmd, args) local targets = FAdmin.FindPlayer(args[1]) or {ply} for _, target in pairs(targets) do if not FAdmin.Access.PlayerHasPrivilege(ply, "Cloak", target) then FAdmin.Messages.SendMessage(ply, 5, "No access!") return end if IsValid(target) and not target:FAdmin_Ge...
mit
Thermadyle/ships
entities/entities/ship/net.lua
1
2051
if SERVER then util.AddNetworkString("ship_hull") util.AddNetworkString("ship_download") function ENT:NetworkHull(index, ply) net.Start("ship_hull") net.WriteEntity(self) net.WriteUInt(index, 8) net.WriteUInt(#self.hulls[index].meshes, 10) for i, mesh in ipair...
mit
luakit/luakit
lib/settings.lua
2
16170
--- Centralized settings system. -- -- The `settings` module provides a central place to access and modify settings -- for all of luakit's modules. -- -- @module settings -- @author Aidan Holm -- @copyright 2017 Aidan Holm <aidanholm@gmail.com> local lousy = require("lousy") local _M = {} lousy.signal.setup(_M, true...
gpl-3.0
hafez16/mega-shield
libs/serpent.lua
656
7877
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
gpl-2.0
davedevils/MineClone
mods/default/craftitems.lua
3
3469
-- mods/default/craftitems.lua -- -- Crafting items -- minetest.register_craftitem("default:stick", { description = "Stick", inventory_image = "default_stick.png", stack_max = 64, }) minetest.register_craftitem("default:paper", { description = "Paper", inventory_image = "default_paper.png", stack_max = 64, }) ...
lgpl-2.1
alireza1998/Unlimited
bot/VGMbot.lua
3
11190
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 = '1.0' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then retu...
gpl-2.0
salamader/ffxi-a
scripts/zones/West_Sarutabaruta/npcs/Slow_Axe_IM.lua
4
2906
----------------------------------- -- Area: West Sarutabaruta -- NPC: Slow Axe, I.M. -- Border Conquest Guards -- @pos 399.450 -25.858 727.545 115 ----------------------------------- package.loaded["scripts/zones/West_Sarutabaruta/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest...
gpl-3.0
Baylamon/Illarion-Content
item/id_2937_skeleton.lua
3
3094
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
huan80s/muduo
premake4.lua
58
2093
solution "muduo" projectdir = basedir() builddir = path.join(projectdir, '../build') installdir = path.join(projectdir, '../install') bindir = path.join(installdir, 'bin') libdir = path.join(installdir, 'lib') includedir = path.join(installdir, 'include') curheadersdir = includedir -- s...
bsd-3-clause
salamader/ffxi-a
scripts/zones/Windurst_Walls/TextIDs.lua
2
1439
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6534; --Come back after sorting your inventory. ITEM_OBTAINED = 6537; --Obtained: <<<Unknown Parameter (Type: 80) 1>>><<<Possible Special Code: 01>>><<<Possible Special Code: 05>>> ITEMS_OBTAINED = 6546; --Y...
gpl-3.0
prife/ftk
script_binding/lua/demo_progressbar.lua
9
1174
app_win=nil function OnQuit(button) Ftk.Quit() return RET_OK end function OnTimer(data) percent=0 for i=1,3 do progress_bar=app_win:Lookup(i); percent = progress_bar:GetPercent() progress_bar:SetPercent(percent + 10) end print("percent:" .. percent) if percent >= 100 then return RET_REMOVE end re...
lgpl-3.0
salamader/ffxi-a
scripts/globals/weaponskills/tachi_yukikaze.lua
6
1617
----------------------------------- -- Tachi Yukikaze -- Great Katana weapon skill -- Skill Level: 200 (Samurai only.) -- Blinds target. Damage varies with TP. -- Blind effect duration is 60 seconds when unresisted. -- Will stack with Sneak Attack. -- Tachi: Yukikaze appears to have an attack bonus of 33%...
gpl-3.0
salamader/ffxi-a
scripts/zones/Dynamis-Xarcabard/mobs/Animated_Scythe.lua
2
1481
----------------------------------- -- Area: Dynamis Xarcabard -- NPC: Animated Scythe ----------------------------------- require("scripts/globals/status"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- -- onMobEngaged ----------------------------------- functi...
gpl-3.0
salamader/ffxi-a
scripts/zones/Uleguerand_Range/npcs/Chamneat_Spring.lua
2
1281
----------------------------------- -- Area: Uleguerand Range -- NPC: Chamneat Spring -- Quest: ENM Quest -- @zone 5 -- @pos -305, 4, 18 ----------------------------------- package.loaded["scripts/zones/Uleguerand_Range/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Uleguerand_...
gpl-3.0
ZhouJiaLinmumu/lstm-char-cnn
util/model_utils.lua
8
5115
-- adapted from https://github.com/wojciechz/learning_to_execute -- utilities for combining/flattening parameters in a model -- the code in this script is more general than it needs to be, which is -- why it is kind of a large require 'torch' local model_utils = {} function model_utils.combine_all_parameters(...) ...
mit
salamader/ffxi-a
scripts/zones/Rolanberry_Fields_[S]/npcs/Cavernous_Maw.lua
2
1803
----------------------------------- -- Area: Rolanberrry Fields S -- Name: Cavernous Maw -- Teleports Players to Rolanberry -- Fields -- @zone 91 -- @pos -198, 8, 360 ----------------------------------- package.loaded["scripts/zones/Rolanberry_Fields_[S]/TextIDs"] = nil; ----------------------------------- ...
gpl-3.0
remspoor/nodemcu-firmware
lua_examples/ucglib/GT_cross.lua
31
1442
local M, module = {}, ... _G[module] = M function M.run() -- make this a volatile module: package.loaded[module] = nil print("Running component cross...") local mx, my disp:setColor(0, 250, 0, 0) disp:setColor(1, 255, 255, 30) disp:setColor(2, 220, 235, 10) disp:setColor(3, 205, 0, 30...
mit
CapsAdmin/goluwa
game/lua/gui_panels/lemming.lua
1
5609
local gui = ... or _G.gui local META = prototype.CreateTemplate("lemming") local animations = { --sleep = {tiles = {Vec2(0,0), Vec2(1,0)}, speed = 1}, walk = { tiles = { Vec2(0, 0), Vec2(1, 0), Vec2(2, 0), Vec2(3, 0), Vec2(4, 0), Vec2(5, 0), Vec2(6, 0), Vec2(7, 0), Vec2(8, 0), Vec2(9, ...
gpl-3.0
g0g0dancer/searework
LuaRules/Gadgets/unit_stockpile.lua
4
5124
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function gadget:GetInfo() return { name = "Stockpile", desc = "Partial reimplementation of stockpile system.", author = "Google Fr...
gpl-2.0
hackres/hackrebot
plugins/lock_badword.lua
17
1307
--[[ # #ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ #:(( # For More Information ....! # Developer : Aziz < @TH3_GHOST > # our channel: @DevPointTeam # Version: 1.1 #:)) #ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ # ]] lo...
gpl-2.0
HarisunnYT/GraphicsEngine
dependencies/dep/glLoadGen_2_0_5/modules/FuncCpp_Struct.lua
2
5180
local struct = require "Structure" local common = require "CommonStruct" local my_struct = { { type="file", style="header", name="GetFilename", { type="write", name="FilePreamble", optional=true}, { type="block", name="IncludeGuard(hFile, spec, options)", { type="blank"}, { type="write", name="Init(hFile, ...
mit
itsTheFae/FaesMudlet2
src/old_mudlet-lua/lua/geyser/GeyserColor.lua
19
6003
-------------------------------------- -- -- -- The Geyser Layout Manager by guy -- -- -- -------------------------------------- Geyser.Color = {} --- Converts color to 3 hex values as a string, no alpha, css style -- @return The color formatted as a h...
gpl-2.0
g0g0dancer/searework
units/factorygunship.lua
2
3264
unitDef = { unitname = [[factorygunship]], name = [[Gunship Plant]], description = [[Produces Gunships, Builds at 10 m/s]], acceleration = 0, brakeRate = 0, buildCostEnergy = 600, buildCostMe...
gpl-2.0
LuaDist2/hdf5
gcc-lua/test/tree-cp.lua
5
4248
-- -- Lua plugin for the GNU Compiler Collection. -- Copyright © 2012–2015 Peter Colberg. -- Distributed under the MIT license. (See accompanying file LICENSE.) -- local gcc = require("gcc") local test = {} gcc.set_asm_file_name(gcc.HOST_BIT_BUCKET) gcc.register_callback(gcc.PLUGIN_FINISH_UNIT, function() local v...
mit
g0g0dancer/searework
LuaRules/Gadgets/unit_jumpjet_pilot.lua
12
6460
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- if (not gadgetHandler:IsSyncedCode()) then return false end function gadget:GetInfo() return { name = "Jumpjet Pilot", desc = "Steers ...
gpl-2.0
poire-z/koreader
frontend/ui/size.lua
6
3340
--[[-- This module provides a standardized set of sizes for use in widgets. There are values for borders, margins, paddings, radii, and lines. Have a look at the code for full details. If you are considering to deviate from one of the defaults, please take a second to consider: 1. Why you want to differ in the first ...
agpl-3.0