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
KayMD/Illarion-Content
item/id_72_fishingrod.lua
2
3855
--[[ 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
miralireza2/gpf
plugins/stats.lua
4
3698
do local NUM_MSG_MAX = 3 local TIME_CHECK = 4 -- seconds local function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name..' ' end if user.lastname then text = text..user.last_name end return text end -- Returns a table with `...
gpl-2.0
damoguyan8844/ABTestingGateway
lib/abtesting/adapter/runtime.lua
22
3599
--- -- @classmod abtesting.adapter.runtime -- @release 0.0.1 local modulename = "abtestingAdapterRuntime" local _M = {} local metatable = {__index = _M} _M._VERSION = "0.0.1" local ERRORINFO = require('abtesting.error.errcode').info --- -- @field fields -- @warning this is a conf, may other file later local fi...
mit
litnimax/luci
modules/base/luasrc/cbi.lua
76
40152
--[[ LuCI - Configuration Bind Interface Description: Offers an interface for binding configuration values to certain data types. Supports value and range validation and basic dependencies. FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "Li...
apache-2.0
cecile/Cecile_QuickLaunch
src/Cecile_QuickLaunch/libs/AceGUI-3.0/widgets/AceGUIWidget-Label.lua
11
4774
--[[----------------------------------------------------------------------------- Label Widget Displays text and optionally an icon. -------------------------------------------------------------------------------]] local Type, Version = "Label", 27 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or...
artistic-2.0
KayMD/Illarion-Content
monster/race_63_bone_dragon/id_637_golden.lua
3
1044
--[[ 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
KayMD/Illarion-Content
triggerfield/noobia_viola.lua
4
2503
--[[ 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
gajop/Zero-K
lups/loadConfig.lua
14
1234
-- $Id: loadConfig.lua 3171 2008-11-06 09:06:29Z det $ --------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- -- -- file: loadConfig.lua -- brief: loads LUPS config files -- autho...
gpl-2.0
gajop/Zero-K
LuaRules/Deploy/draw.lua
8
15493
-- $Id: draw.lua 3171 2008-11-06 09:06:29Z det $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: LuaRules/Deploy/draw.lua -- brief: deployment game mode -- author: Dave Rodgers -- -- C...
gpl-2.0
coral-framework/coral
tests/lua/modules/lua/services/lua.services.lua
1
2593
require "lua.test" -------------------------------------------------------------------------------- -- Auxiliary Lua component that implements a dummy service -------------------------------------------------------------------------------- local DummyProvider = co.Component{ name = "lua.test.DummyProvider", pro...
mit
Rawa/dotfiles
common/.config/nvim/lua/plugins.lua
1
2397
local use = require('packer').use local packer = require('packer') return packer.startup(function() -- PackerSync after save vim.cmd([[ augroup packer_user_config autocmd! autocmd BufWritePost plugins.lua source <afile> | PackerSync augroup end ]]) use 'wbthomason/packer.nvim' -- Packer M...
mit
Mutos/NAEV-StarsOfCall
dat/missions/neutral/reynir.lua
5
5171
--[[ MISSION: Hot dogs from space DESCRIPTION: An old man who owns a hot dog factory wants to go to space The old man has elevated pressure in his cochlea so he can't go to space. He's getting old and wants to go to space before he dies. He owns a hot dog factory and will pay you in hot dogs (food). Be...
gpl-3.0
mt246/mt246
plugins/plugins.lua
325
6164
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
gpl-2.0
Flourish-Team/Flourish
Premake/source/binmodules/luasocket/src/tp.lua
51
3766
----------------------------------------------------------------------------- -- Unified SMTP/FTP subsystem -- LuaSocket toolkit. -- Author: Diego Nehab ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- -- Declare...
mit
Flourish-Team/Flourish
Premake/source/modules/vstudio/tests/vc200x/test_project_refs.lua
16
1831
-- -- tests/actions/vstudio/vc200x/test_project_refs.lua -- Validate project references in Visual Studio 200x C/C++ projects. -- Copyright (c) 2011-2012 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("vstudio_vs200x_project_refs") local vc200x = p.vstudio.vc200x -- -- Setup ...
mit
LinusU/cunnx
LazyKBest.lua
4
1252
local LazyKBest, parent = torch.class('nn.LazyKBest', 'nn.Module') ------------------------------------------------------------------------ --[[ LazyKBest ]]-- -- For example, divides the input into k sub-arrays and takes the -- max value of each. Allowed value for k are, 1, 2, 4, 8, 16 and 32. -- Returns a table of t...
bsd-3-clause
gajop/Zero-K
LuaRules/Gadgets/unit_dont_fire_at_radar.lua
7
7244
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- if not gadgetHandler:IsSyncedCode() then return end -------------------------------------------------------------------------------- ------------------------...
gpl-2.0
gajop/Zero-K
lups/ParticleClasses/Sphere.lua
14
4521
-- $Id: Sphere.lua 3171 2008-11-06 09:06:29Z det $ ----------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------- local SphereParticle = {} SphereParticle...
gpl-2.0
indexTM/index
plugins/boobs.lua
1
1596
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
KayMD/Illarion-Content
lte/teachmagic.lua
3
1748
--[[ 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
nobie/sesame_fw
feeds/luci/applications/luci-statistics/luasrc/model/cbi/luci_statistics/ping.lua
80
1397
--[[ Luci configuration model for statistics - collectd ping 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 License ...
gpl-2.0
trappi-stone/Factorio-Stdlib
stdlib/area/position.lua
1
12588
--- Tools for working with `<x,y>` coordinates. -- The tables passed into the Position functions are mutated in-place. -- @module Position -- @usage local Position = require('stdlib/area/position') -- @see Area -- @see Concepts.Position -- @see defines.direction local Game = require 'stdlib/game' Position = {} --luac...
isc
artfullyContrived/wrk
deps/luajit/src/jit/bcsave.lua
87
18141
---------------------------------------------------------------------------- -- LuaJIT module to save/list bytecode. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
apache-2.0
Mutos/NAEV-StarsOfCall
dat/missions/neutral/cargo.lua
8
4208
--[[ -- These are regular cargo delivery missions. Pay is low, but so is difficulty. -- Most of these missions require BULK ships. Not for small ships! --]] include "dat/scripts/cargo_common.lua" include "dat/scripts/numstring.lua" lang = naev.lang() if lang == "es" then else -- default english misn_desc = "%s in...
gpl-3.0
LuaDist2/lua-jet
spec/radix_spec.lua
2
9595
local radix = require'jet.daemon.radix' describe( 'The jet.daemon.radix module', function() describe('Can add path',function() local match setup(function() local radix_tree = radix.new() radix_tree.add('abc') local radix_fetchers = {} ...
mit
dacrybabysuck/darkstar
scripts/globals/weaponskills/glory_slash.lua
10
1635
----------------------------------- -- Glory Slash -- Sword weapon skill -- Skill Level: NA -- Only avaliable during Campaign Battle while weilding Lex Talionis. -- Delivers and area attack that deals triple damage. Damage varies with TP. Additional effect Stun. -- Will stack with Sneak Attack. -- Aligned with the Flam...
gpl-3.0
dormantor/ofxCogEngine
COGengine/data/COGAssets/Scripts/base.lua
1
2750
--[[ -- methods for testing in lua console function BehaviorPrototype() return { RegisterDelegate = function(self, tb) print("Registering delegate "..tb.classname) end } end function CogRegisterBehaviorPrototype(tb) print("Registering behavior prototype "..tb.classname) end --]] -- create behavior...
mit
Squ34k3rZ/SamsBday
Resources/DeprecatedClass.lua
15
74670
-- This is the DeprecatedClass DeprecatedClass = {} or DeprecatedClass --tip local function deprecatedTip(old_name,new_name) print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********") end --CCProgressTo class will be Deprecated,begin function DeprecatedClass.CCProgres...
mit
dacrybabysuck/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Yahsra.lua
11
2569
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Yahsra -- Type: Assault Mission Giver -- !pos 120.967 0.161 -44.002 50 ----------------------------------- require("scripts/globals/keyitems") local ID = require("scripts/zones/Aht_Urhgan_Whitegate/IDs") require("scripts/globals/besieged") requi...
gpl-3.0
lovelock/workspace
lua/functions.lua
1
2317
#!/usr/bin/env lua --[[ [function fib(n) [ if n < 2 then return 1 end [ return fib(n-2) + fib(n-1) [end [ [print(fib(6)) ]] --[[ [function newCounter() [ local i = 0 [ return function() [ i = i + 1 [ return i [ end [end [ [c1 = newCounter() ...
gpl-2.0
dacrybabysuck/darkstar
scripts/zones/Pashhow_Marshlands/IDs.lua
8
2651
----------------------------------- -- Area: Pashhow_Marshlands ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.PASHHOW_MARSHLANDS] = { text = { NOTHING_HAPPENS = 141, -- Nothing happens... IT...
gpl-3.0
cmusatyalab/openface
training/attic/train.lua
8
10883
-- Copyright 2015-2016 Carnegie Mellon University -- -- 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 ...
apache-2.0
jnhwkim/rnn
examples/simple-bisequencer-network.lua
7
2590
require 'rnn' -- hyper-parameters batchSize = 8 rho = 5 -- sequence length hiddenSize = 7 nIndex = 10 lr = 0.1 -- forward rnn -- build simple recurrent neural network local fwd = nn.Recurrent( hiddenSize, nn.LookupTable(nIndex, hiddenSize), nn.Linear(hiddenSize, hiddenSize), nn.Sigmoid(), rho ) -- backw...
bsd-3-clause
cmingjian/skynet
test/testsocket.lua
20
1085
local skynet = require "skynet" local socket = require "skynet.socket" local mode , id = ... local function echo(id) socket.start(id) while true do local str = socket.read(id) if str then socket.write(id, str) else socket.close(id) return end end end if mode == "agent" then id = tonumber(id) ...
mit
dacrybabysuck/darkstar
scripts/globals/mobskills/saucepan.lua
11
1123
--------------------------------------------- -- Saucepan -- Force feeds an unsavory dish. --------------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/monstertpmoves") --------------------------------------------- function onMobSkillCheck...
gpl-3.0
cmingjian/skynet
lualib/http/internal.lua
95
2613
local table = table local type = type local M = {} local LIMIT = 8192 local function chunksize(readbytes, body) while true do local f,e = body:find("\r\n",1,true) if f then return tonumber(body:sub(1,f-1),16), body:sub(e+1) end if #body > 128 then -- pervent the attacker send very long stream without ...
mit
dacrybabysuck/darkstar
scripts/globals/items/crayfish.lua
11
1162
----------------------------------------- -- ID: 4472 -- Item: crayfish -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity -3 -- Vitality 1 -- defense +10% (unknown cap) ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") -----...
gpl-3.0
nimaghorbani/dozdi1
plugins/bugzilla.lua
611
3983
do local BASE_URL = "https://bugzilla.mozilla.org/rest/" local function bugzilla_login() local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password print("accessing " .. url) local res,code = https.request( url ) local data = json:decode(res) return data ...
gpl-2.0
eagle14/kia12
plugins/bugzilla.lua
611
3983
do local BASE_URL = "https://bugzilla.mozilla.org/rest/" local function bugzilla_login() local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password print("accessing " .. url) local res,code = https.request( url ) local data = json:decode(res) return data ...
gpl-2.0
worldforge/ember
src/components/ogre/widgets/ActionBarCreator.lua
1
6231
--[[ ActionBarCreator Responsible for creating and managing action bars. The use can create either horizontal or vertical action bars, as well as deleting existing bars by selecting them in the list and clicking delete. ]]-- ActionBarCreator = {} loadScript("DefaultEntityActions.lua") --Build the action bar creator w...
gpl-3.0
deepmind/deepmind-research
tvt/dmlab/key_to_door_to_match.lua
1
1212
-- Copyright 2019 DeepMind Technologies Limited. All Rights Reserved. -- 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 a...
apache-2.0
MrTheSoulz/NerdPack
Libs/DiesalTools-1.0/DiesalTools-1.0.lua
6
18632
-- $Id: DiesalTools-1.0.lua 61 2017-03-28 23:13:41Z diesal2010 $ local MAJOR, MINOR = "DiesalTools-1.0", "$Rev: 61 $" local DiesalTools, oldminor = LibStub:NewLibrary(MAJOR, MINOR) if not DiesalTools then return end -- No Upgrade needed. -- ~~| Libraries |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
mit
baishancloud/lua-acid
lib/acid/paxoshelper.lua
2
4861
local _M = { _VERSION = require("acid.paxos._ver") } local tableutil = require( "acid.tableutil" ) local base = require( "acid.paxos.base" ) local errors = base.errors local nr_retry = 5 function _M.get_or_elect_leader(paxos, lease) local rst, err, errmes = paxos:local_get( 'leader' ) if err then pax...
mit
dacrybabysuck/darkstar
scripts/zones/San_dOria-Jeuno_Airship/npcs/qm1.lua
11
1036
----------------------------------- -- Area: San d'Oria-Jeuno Airship -- NPC: ??? -- Involved In Quest: The Stars Of Ifrit -- !pos -9 -5 -13 223 ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/keyitems"); require("scripts/globals/weather"); local ID = require("scripts/zo...
gpl-3.0
hussian1997/hk-_bot
plugins/anti-spam.lua
8
5854
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY(@AHMED_ALOBIDE ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY(@hussian_9 ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄▀...
gpl-2.0
dacrybabysuck/darkstar
scripts/zones/PsoXja/npcs/_i98.lua
9
1161
----------------------------------- -- Area: Pso'Xja -- NPC: Stone Gate ----------------------------------- local ID = require("scripts/zones/PsoXja/IDs"); require("scripts/globals/missions"); ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) if (player:ge...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Balgas_Dais/bcnms/royal_succession.lua
9
1063
----------------------------------- -- Royal Succession -- Balga's Dais BCNM40, Star Orb -- !additem 1131 ----------------------------------- require("scripts/globals/battlefield") ----------------------------------- function onBattlefieldInitialise(battlefield) battlefield:setLocalVar("loot", 1) end function onB...
gpl-3.0
geminy/aidear
oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/third_party/skia/tools/lua/scrape_dashing.lua
160
2495
function tostr(t) local str = "" for k, v in next, t do if #str > 0 then str = str .. ", " end if type(k) == "number" then str = str .. "[" .. k .. "] = " else str = str .. tostring(k) .. " = " end if type(v) == "table" then ...
gpl-3.0
Zorbash/linguaphone
lua/sieve_atkin.lua
1
1053
N = tonumber(arg[1]) or 1000 nsqrt = N^(0.5) is_prime = {} --Initialize array for i=1, N do is_prime[i] = false end for x = 1, nsqrt do for y = 1, nsqrt do n = 4 * (x^2) + y^2 if n <= N and (n % 12 == 1 or n % 12 == 5) then if is_prime[n] == true then is_prime[n] = false else ...
mit
uleelx/lupy
lupy.lua
1
1699
local metamethods = { "__add", "__sub", "__mul", "__div", "__mod", "__pow", "__unm", "__concat", "__len", "__eq", "__lt", "__le", "__newindex", "__call", "__pairs", "__ipairs", "__gc" } local function new(class, ...) local o = setmetatable({__class__ = class}, class) if class.__init__ then class.__init__(o, .....
mit
jonleopard/dotfiles
nvim/.config/nvim/after/plugin/keymap/init.lua
1
1228
local Remap = require("jon.keymap") local nnoremap = Remap.nnoremap local vnoremap = Remap.vnoremap local inoremap = Remap.inoremap local xnoremap = Remap.xnoremap local nmap = Remap.nmap ---- UndoTree nnoremap("<leader>u", ":UndotreeToggle<CR>") -- greatest remap ever -- xnoremap("<leader>p", "\"_dP") -- next grea...
mit
dcourtois/premake-core
src/_premake_init.lua
2
32533
-- -- _premake_init.lua -- -- Prepares the runtime environment for the add-ons and user project scripts. -- -- Copyright (c) 2012-2015 Jason Perkins and the Premake project -- local p = premake local api = p.api local DOC_URL = "See https://github.com/premake/premake-core/wiki/" ---------------------------------...
bsd-3-clause
Kelwing/pvpgn
lua/handle_command.lua
7
3050
--[[ 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. ]]-- -- List of available lua commands -- (To create a new command - create a new file in directory "commands") local lua_command_table = { [1] = { ["/w...
gpl-2.0
dacrybabysuck/darkstar
scripts/zones/Castle_Oztroja/IDs.lua
9
5125
----------------------------------- -- Area: Castle_Oztroja ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.CASTLE_OZTROJA] = { text = { CANNOT_REACH_TARGET = 0, -- Cannot reach target. IT...
gpl-3.0
SHIELDPOWER/power-team
plugins/inrealm.lua
850
25085
-- 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_g...
gpl-2.0
zenedge/lua-resty-http
lib/resty/http_headers.lua
1
1790
local rawget, rawset, setmetatable = rawget, rawset, setmetatable local str_lower, str_gsub = string.lower, string.gsub local _M = { _VERSION = '0.10', } local function hyphenate(k) return str_gsub(k, "_", "-") end -- Returns an empty headers table with internalised case normalisation. -- Supports the ...
bsd-2-clause
dacrybabysuck/darkstar
scripts/globals/mobskills/impale.lua
8
1342
--------------------------------------------- -- Impale -- -- Description: Deals damage to a single target. Additional effect: Paralysis (NM version AE applies a strong poison effect and resets enmity on target) -- Type: Physical -- Utsusemi/Blink absorb: 1 shadow (NM version ignores shadows) -- Range: Melee -- N...
gpl-3.0
akbooer/openLuup
openLuup/wsapi.lua
1
32823
local ABOUT = { NAME = "openLuup.wsapi", VERSION = "2019.08.12", DESCRIPTION = "a WSAPI application connector for the openLuup port 3480 server", AUTHOR = "@akbooer", COPYRIGHT = "(c) 2013-2019 AKBooer", DOCUMENTATION = "https://github.com/akbooer/openLuup/tree/master/Documentati...
apache-2.0
KittyCookie/skynet
service/launcher.lua
51
3199
local skynet = require "skynet" local core = require "skynet.core" require "skynet.manager" -- import manager apis local string = string local services = {} local command = {} local instance = {} -- for confirm (function command.LAUNCH / command.ERROR / command.LAUNCHOK) local function handle_to_address(handle) retu...
mit
aboshosho/aboshosho
plugins/ar-plugins.lua
13
7118
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ plugins : تفعيل الملفات ▀▄ ▄▀ ▀▄▀...
agpl-3.0
fredcadete/meta-openembedded
meta-gnome/recipes-gnome/devilspie/files/default.lua
40
1194
-- Copyright (c) 2012 Andreas Müller <schnitzeltony@googlemail.com> -- -- this is an example -- * undecorating all windows opened maximized -- * maximizing and undecorating all appplication's windows in apps_list -- for further information see -- http://www.gusnan.se/devilspie2/manual.php wnd_type = get_window_type()...
mit
ralucah/splay-daemon-lua5.2
modules/splay/benc.lua
1
5232
--[[ Splay ### v1.2 ### Copyright 2006-2011 http://www.splay-project.org ]] --[[ This file is part of Splay. Splay 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 L...
gpl-3.0
dacrybabysuck/darkstar
scripts/commands/jail.lua
9
2044
--------------------------------------------------------------------------------------------------- -- func: jail -- desc: Sends the target player to jail. (Mordion Gaol) --------------------------------------------------------------------------------------------------- cmdprops = { permission = 1, parameters ...
gpl-3.0
cmingjian/skynet
lualib/skynet/datasheet/builder.lua
4
3802
local skynet = require "skynet" local dump = require "skynet.datasheet.dump" local core = require "skynet.datasheet.core" local service = require "skynet.service" local builder = {} local cache = {} local dataset = {} local address local unique_id = 0 local function unique_string(str) unique_id = unique_id + 1 ret...
mit
dacrybabysuck/darkstar
scripts/zones/The_Eldieme_Necropolis/npcs/Brazier.lua
9
2985
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: Brazier -- Involved in Quests: Save my Sister -- !pos 101 -33 -59 195 (F-9) -- !pos 259 -33 99 195 (H-7) -- !pos 99 -33 98 195 (F-7) -- !pos 259 -33 -58 195 (H-9) ----------------------------------- local ID = require("scripts/zones/The_Eldiem...
gpl-3.0
dcourtois/premake-core
src/tools/msc.lua
2
8887
--- -- msc.lua -- Interface for the MS C/C++ compiler. -- Author Jason Perkins -- Modified by Manu Evans -- Copyright (c) 2009-2015 Jason Perkins and the Premake project --- local p = premake p.tools.msc = {} local msc = p.tools.msc local project = p.project local config = p.config -- -- Returns list of C pre...
bsd-3-clause
avrem/ardupilot
libraries/AP_Scripting/examples/easter-egg.lua
12
2145
-- This script will select a random location (as defined from a lat long coordinate) -- and will play a set of tunes to navigate you towards that point, and select a new once -- once the point has been found. -- -- This script primarily serves to demo how to work with Locations, as well as how to -- use the tonealarm t...
gpl-3.0
andeandr100/Crumbled-World
Lua/Custom/event_world0_tut3.lua
1
2623
require("Game/eventBase.lua") --this = SceneNode() local event = EventBase.new() function create() local mapInfo = MapInfo.new() local numWaves = mapInfo.getWaveCount() local goldEstimationEarnedPerWave = 500+(numWaves*5) local startGold = 1000 local interestOnKill = 0.0020 local goldMultiplayerOnKills = 1.0 loc...
mit
dacrybabysuck/darkstar
scripts/zones/King_Ranperres_Tomb/IDs.lua
9
2326
----------------------------------- -- Area: King Ranperres Tomb (190) ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.KING_RANPERRES_TOMB] = { text = { CONQUEST_BASE = 0, -- Tallying conquest res...
gpl-3.0
fetchbot/nodemcu-firmware
lua_modules/yeelink/yeelink_lib.lua
73
3136
-- *************************************************************************** -- Yeelink Updata Libiary Version 0.1.2 r1 -- -- Written by Martin -- but based on a script of zhouxu_o from bbs.nodemcu.com -- -- MIT license, http://opensource.org/licenses/MIT -- **********************************************************...
mit
JFonS/Cult
lib/trailmesh.lua
1
4278
trailmesh = class:new() function trailmesh:init(x, y, img, width, lifetime, interval, method) self.type = "trailmesh" self.x = x self.y = y self.img = img self.width = width self.lifetime = lifetime self.interval = interval self.method = method or "stretch" self:reset() self.mesh = love.gra...
gpl-3.0
shultays/bloodworks
game/resources/guns/plasmagun/plasmagun.lua
1
3902
function PlasmaGun.init(gun) gun.spreadAngle = 0.0 gun.crosshairDistance = 400.0 ShootTimer.initGun(gun, 0.35) SpreadHelper.initGun(gun) gun.data.maxSpread = 0.10 gun.data.spreadDecreaseStartTime = 0.0 gun.data.spreadDecreaseSpeed = 0.05 gun.data.checkAchievement = true gun.dat...
gpl-3.0
shahabsaf12/x
plugins/banhammer.lua
44
9652
local function is_user_whitelisted(id) local hash = 'whitelist:user#id'..id local white = redis:get(hash) or false return white end local function is_chat_whitelisted(id) local hash = 'whitelist:chat#id'..id local white = redis:get(hash) or false return white end local function kick_user(user_id, chat_id)...
gpl-2.0
dacrybabysuck/darkstar
scripts/globals/items/bibikibo.lua
11
1047
----------------------------------------- -- ID: 4314 -- Item: Bibikibo -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 1 -- Mind -3 ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ---------------------------------------...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/abilities/pets/tail_whip.lua
11
1358
--------------------------------------------------- -- Tail Whip M=5 --------------------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/monstertpmoves") require("scripts/globals/summon") --------------------------------------------------- ...
gpl-3.0
varunparkhe/Algorithm-Implementations
Lempel_Ziv_Welch/Lua/Yonaba/lzw.lua
24
1387
-- Lempel-Ziv Welch compression data algorithm implementation -- See : http://en.wikipedia.org/wiki/LZW local function lzw_encode(str) local w = '' local result = {} local dict_size = 256 -- Builds the dictionnary local dict = {} for i = 0, dict_size-1 do dict[string.char(i)] = i end local i = di...
mit
martinfelis/ggj15
Quickie/group.lua
15
4523
--[[ Copyright (c) 2012 Matthias Richter 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, publish, distribu...
apache-2.0
varunparkhe/Algorithm-Implementations
Gale_Shapely/Lua/Yonaba/gale_shapely_test.lua
53
1896
-- Tests for binary_search.lua local binary_search = require 'binary_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
dkogan/notion.xfttest
contrib/statusbar/legacy/statusbar_workspace.lua
3
3451
-- Authors: Rico Schiekel <fire@paranetic.de>, Canaan Hadley-Voth, Kevin Granade <kevin.granade@gmail.com> -- License: Unknown -- Last Changed: 2007-05-09 -- -- statusbar_workspace.lua -- -- Show current workspace name or number in the statusbar. -- -- Put any of these in cfg_statusbar.lua's template-line: -- %worksp...
lgpl-2.1
dacrybabysuck/darkstar
scripts/globals/mobskills/throat_stab.lua
11
1190
--------------------------------------------- -- Throat Stab -- -- Description: Deals damage to a single target reducing their HP to 5%. Resets enmity. -- Type: Physical -- Utsusemi/Blink absorb: No -- Range: Single Target -- Notes: Very short range, easily evaded by walking away from it. ------------------------...
gpl-3.0
Noltari/openwrt-packages
net/dynapoint/src/dynapoint.lua
94
6369
#!/usr/bin/lua --[[ Copyright (C) 2016 Tobias Ilte <tobias.ilte@campus.tu-berlin.de> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later v...
gpl-2.0
Whit3Tig3R/FuCk3R
bot/seedbot.lua
1
9997
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
dacrybabysuck/darkstar
scripts/zones/Korroloka_Tunnel/globals.lua
10
1289
----------------------------------- -- Zone: Korroloka Tunnel (173) -- Desc: this file contains functions that are shared by multiple luas in this zone's directory ----------------------------------- local ID = require("scripts/zones/Korroloka_Tunnel/IDs") require("scripts/globals/status") -----------------------------...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Mhaura/npcs/Dieh_Yamilsiah.lua
12
1612
----------------------------------- -- Area: Mhaura -- NPC: Dieh Yamilsiah -- Reports the time remaining before boat arrival. -- !pos 7.057 -2.364 2.489 249 ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) -- Each boat comes every 1152 seconds/8 game hou...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Inner_Horutoto_Ruins/npcs/_5c5.lua
8
1533
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: Gate: Magical Gizmo -- Involved In Mission: The Horutoto Ruins Experiment -- !pos 419 0 -27 192 ----------------------------------- local ID = require("scripts/zones/Inner_Horutoto_Ruins/IDs") require("scripts/globals/missions") ----------------...
gpl-3.0
thivod/forgottenserver
data/spells/scripts/party/enchant.lua
15
1811
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
dacrybabysuck/darkstar
scripts/globals/mobskills/crystal_weapon_water.lua
11
1048
--------------------------------------------- -- Crystal Weapon -- -- Description: Invokes the power of a crystal to deal magical damage of a random element to a single target. -- Type: Magical -- Utsusemi/Blink absorb: Ignores shadows -- Range: Unknown -- Notes: Can be Fire, Earth, Wind, or Water element. Funct...
gpl-3.0
eagle14/kia12
bot/utils.lua
239
13499
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() http.TIMEOUT = 10 funct...
gpl-2.0
22333322/i4bot
bot/utils.lua
239
13499
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() http.TIMEOUT = 10 funct...
gpl-2.0
25A0/Quadtastic
Quadtastic/res/style.lua
1
7448
return { _META = { image_path = "./style.png", version = "v0.6.2-15-gc6047cf", }, background = {x = 48, y = 16, w = 2, h = 2}, button_border = { b = {x = 3, y = 13, w = 1, h = 3}, bl = {x = 0, y = 13, w = 3, h = 3}, br = {x = 29, y = 13, w = 3, h = 3}, c = {x = 3, y = 3, w = 1, h = 1}, ...
mit
dacrybabysuck/darkstar
scripts/globals/items/istiridye.lua
11
1149
----------------------------------------- -- ID: 5456 -- Item: Istiridye -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity -5 -- Vitality 4 -- Defense +17.07% ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ---------------...
gpl-3.0
SHIELDPOWER/power-team
plugins/inpm.lua
1114
3008
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
MrTheSoulz/NerdPack
conditions/general.lua
1
4421
local NeP, g = NeP, NeP._G local function checkChanneling(target) local name, _, _, startTime, endTime, _, notInterruptible = g.UnitChannelInfo(target) if name then return name, startTime, endTime, notInterruptible end end local function checkCasting(target) local name, startTime, endTime, notInterruptible = ch...
mit
LuaDist2/lua-jet
src/jet/daemon/value_matcher.lua
2
3019
local jutils = require'jet.utils' local tinsert = table.insert local less_than = function(other) return function(x) return x < other end end local greater_than = function(other) return function(x) return x > other end end local equals = function(other) return function(x) return x == other end...
mit
dacrybabysuck/darkstar
scripts/zones/Gusgen_Mines/npcs/qm2.lua
9
1607
----------------------------------- -- Area: Gusgen Mines -- NPC: qm2 (???) -- Involved In Mission: Bastok 3-2 -- !pos 206 -60 -101 196 ----------------------------------- local ID = require("scripts/zones/Gusgen_Mines/IDs"); require("scripts/globals/keyitems"); require("scripts/globals/missions"); require("scripts/gl...
gpl-3.0
andeandr100/Crumbled-World
Lua/Game/camera.lua
1
15768
require("Menu/settings.lua") --this = Camera() local ZOOM_LEVEL_MIN = 9.5 local ZOOM_LEVEL_MAX = 30.0 --Achievements local music = {} function restore(data) end function create() --Protection in multiplayer environment where multiple instances of this script is loaded local node = this:findNodeByTypeTowards...
mit
dacrybabysuck/darkstar
scripts/zones/Lufaise_Meadows/Zone.lua
9
2242
----------------------------------- -- -- Zone: Lufaise_Meadows (24) -- ----------------------------------- local ID = require("scripts/zones/Lufaise_Meadows/IDs"); require("scripts/globals/conquest"); require("scripts/globals/keyitems"); require("scripts/globals/missions"); require("scripts/globals/npc_util"); require...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/pets.lua
14
30487
----------------------------------- -- -- PETS ID -- ----------------------------------- dsp = dsp or {} dsp.pet = dsp.pet or {} ----------------------------------- -- Pet types ----------------------------------- dsp.pet.type = { AVATAR = 0, WYVERN = 1, JUGPET = 2, ...
gpl-3.0
varunparkhe/Algorithm-Implementations
Hamming_Weight/Lua/Yonaba/numberlua.lua
115
13399
--[[ LUA MODULE bit.numberlua - Bitwise operations implemented in pure Lua as numbers, with Lua 5.2 'bit32' and (LuaJIT) LuaBitOp 'bit' compatibility interfaces. SYNOPSIS local bit = require 'bit.numberlua' print(bit.band(0xff00ff00, 0x00ff00ff)) --> 0xffffffff -- Interface providing strong Lua 5.2 '...
mit
dacrybabysuck/darkstar
scripts/zones/Upper_Jeuno/npcs/Glyke.lua
12
1041
----------------------------------- -- Area: Upper Jeuno -- NPC: Glyke -- Standard Merchant NPC ----------------------------------- local ID = require("scripts/zones/Upper_Jeuno/IDs") require("scripts/globals/shop") function onTrade(player,npc,trade) end function onTrigger(player,npc) local stock = { ...
gpl-3.0