repo_name
stringlengths
6
78
path
stringlengths
4
206
copies
stringclasses
281 values
size
stringlengths
4
7
content
stringlengths
625
1.05M
license
stringclasses
15 values
caohongtao/quick-cocos-demo
runtime/mac/PrebuiltRuntimeLua.app/Contents/Resources/src/framework/cc/ui/UIPageViewItem.lua
19
1319
--[[ Copyright (c) 2011-2014 chukong-inc.com 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, di...
apache-2.0
1yvT0s/wrk
deps/luajit/dynasm/dasm_arm.lua
120
34598
------------------------------------------------------------------------------ -- DynASM ARM module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ -- Module information: local _in...
apache-2.0
lizh06/premake-4.x
tests/actions/vstudio/vc2010/test_filters.lua
10
4344
-- -- tests/actions/vstudio/vc2010/test_filters.lua -- Validate generation of filter blocks in Visual Studio 2010 C/C++ projects. -- Copyright (c) 2011 Jason Perkins and the Premake project -- T.vs2010_filters = { } local suite = T.vs2010_filters local vc2010 = premake.vstudio.vc2010 -- -- Setup/tear...
bsd-3-clause
maikerumine/aftermath
mods/mg_villages/map_of_world.lua
5
5713
-- villages up to this many nodes in each direction are shown on the map mg_villages.MAP_RANGE = 1000; mg_villages.draw_tile = function( content_id, image, x, z, dx, dz, tile_nr ) if( not( image )) then local node_name = minetest.get_name_from_content_id( content_id ); if( not( node_name )) then return ''; ...
lgpl-2.1
ntop/ntopng
scripts/lua/modules/alert_definitions/other/alert_snmp_interface_errors.lua
1
2416
-- -- (C) 2019-22 - ntop.org -- -- ############################################## local other_alert_keys = require "other_alert_keys" -- Import the classes library. local classes = require "classes" -- Make sure to import the Superclass! local alert = require "alert" local alert_entities = require "alert_entities" -...
gpl-3.0
blr246/midi-machine
lua/SgdMomentum.lua
1
8200
require "os" require "math" require "string" require "nn" local SgdMomentum = torch.class('nn.SgdMomentum') function SgdMomentum:__init(module, criterion, kwargs) self.module = module self.criterion = criterion kwargs = kwargs or {} self.learning_rate = kwargs.learning_rate or 1e-5 self.learning_...
bsd-3-clause
icetoggle/skynet
lualib/http/httpc.lua
5
4551
local skynet = require "skynet" local socket = require "http.sockethelper" local internal = require "http.internal" local dns = require "skynet.dns" local string = string local table = table local httpc = {} local async_dns function httpc.dns(server,port) async_dns = true dns.server(server,port) end local funct...
mit
matinbeigi97/tabchi
bot.lua
1
34824
redis = (loadfile "redis.lua")() redis = redis.connect('127.0.0.1', 6379) function dl_cb(arg, data) end function get_admin () if redis:get('botBOT-IDadminset') then return true else print("\n\27[32m لازمه کارکرد صحیح ، فرامین و امورات مدیریتی ربات تبلیغ گر <<\n تعریف کاربری به عنوان مدیر ا...
gpl-3.0
adib1380/BotiSmylife
plugins/anti-spam7.lua
13
2433
local NUM_MSG_MAX = 7 -- Max number of messages per TIME_CHECK seconds local TIME_CHECK = 7 local function kick_user(user_id, chat_id) local chat = 'chat#id'..chat_id local user = 'user#id'..user_id chat_del_user(chat, user, function (data, success, result) if success ~= 1 then local text = 'I can\'t k...
gpl-2.0
mohammadspemmer/mamad
libs/dkjson.lua
3282
26558
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
gpl-3.0
mandla99/the_king98
libs/dkjson.lua
3282
26558
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
gpl-2.0
Bierbuikje/Mr.Green-MTA-Resources
resources/[race]/race_rank/board_c.lua
4
12437
g_SplitTimes = {} g_DrawList = {} g_Rank = nil --[[ g_DrawList ={ {rank = 1, name = "#FF0000SDK1"}, {rank = 2, name = "8888888888888888888888"}, {rank = 3, name = "SD#FFF000K3", line = true}, {rank = 8, name = "SDK8"}, {rank = 9, name = "SDK9"}, {rank = 10, name = "SDK10", player = getLocalPlayer()}, {rank = 11, name =...
mit
shayanchabok555/tigerantispam
libs/dkjson.lua
3282
26558
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
gpl-2.0
tcmug/kello
objects/hand.lua
1
3228
-- A clock hand. module = {} local hand = {} function clampRotation(degrees) return degrees - (math.floor(degrees / 360) * 360) end function hand:step() self.step_value = self.step_value + 1 if (self.step_value == self.steps) then self.step_value = 0 end self:set(self.step_value, true) ...
gpl-3.0
ntop/ntopng
scripts/lua/rest/v1/delete/all/alerts.lua
1
1267
-- -- (C) 2013-22 - ntop.org -- local dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path package.path = dirs.installdir .. "/scripts/lua/modules/alert_store/?.lua;" .. package.path local alert_utils = require "alert_utils" local alert_consts = require "alert_consts" ...
gpl-3.0
shadowmourne/vicious
widgets/mpd.lua
16
2221
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Adrian C. <anrxc@sysphere.org> --------------------------------------------------- -- {{{ Grab environment local tonumber = tonumber local io = { popen = io.popen } local setmetatable = setmetatable ...
gpl-2.0
Scoth42/rfkasm
fceux-2.2.2-win32/luaScripts/Multitrack.lua
3
26787
-- Multi-track rerecording for FCEUX 2.1.2 or later (script V2) -- To make up for the lack of an internal multi-track rerecording in FCEUX. -- It may get obsolete when TASEdit comes around. --FatRatKnight -- Rewind (by Antony Lavelle) added by DarkKobold -- Instructions: -- The script has its own buttons, defined in...
gpl-2.0
lizh06/premake-4.x
src/actions/codeblocks/codeblocks_cbp.lua
23
5957
-- -- codeblocks_cbp.lua -- Generate a Code::Blocks C/C++ project. -- Copyright (c) 2009, 2011 Jason Perkins and the Premake project -- local codeblocks = premake.codeblocks -- -- Write out a list of the source code files in the project. -- function codeblocks.files(prj) local pchheader if (prj.pchheader) the...
bsd-3-clause
facebokiii/ghost
libs/dkjson.lua
3282
26558
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
gpl-2.0
telematin/telematinweb
libs/dkjson.lua
3282
26558
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
gpl-2.0
Arashbrsh/copymer
libs/dkjson.lua
3282
26558
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
gpl-2.0
Altenius/cuberite
Server/Plugins/APIDump/Hooks/OnPlayerUsedItem.lua
30
2444
return { HOOK_PLAYER_USED_ITEM = { CalledWhen = "A player has used an item in hand (bucket...)", DefaultFnName = "OnPlayerUsedItem", -- also used as pagename Desc = [[ This hook is called after a {{cPlayer|player}} has right-clicked a block with an {{cItem|item}} that can be used (is not placeable, is no...
apache-2.0
corbinmunce/domoticz
scripts/dzVents/examples/plant watering notification.lua
17
3461
--[[ This script can be used to get notification message when plant sensor exceed specified tresholds. It is specifically build to be used with the Xiaomi Mi Flora (https://www.domoticz.com/wiki/Mi_Flora_Bluetooth_LE), but can also be used with similar sensors For the script to work correctly it is recomme...
gpl-3.0
Banderi/OpenTomb
scripts/loadscript.lua
2
1374
-- OPENTOMB SCRIPT LOADING ORDER -- By Lwmte, Jun 2015 -------------------------------------------------------------------------------- -- This is the core of Lua script loading, all script files should be loaded via -- this file. -- DO NOT CHANGE SCRIPT ORDER, unless you're completely sure what you're doing! -------...
lgpl-3.0
mtyzaq/extra
luci/applications/luci-vsftpd/luasrc/model/cbi/vsftpd/anonymous.lua
11
1305
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2014 HackPascal <hackpascal@gmail.com> 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://ww...
gpl-2.0
shadowmourne/vicious
widgets/org.lua
17
1992
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Adrian C. <anrxc@sysphere.org> -- * (c) org-awesome, Damien Leone --------------------------------------------------- -- {{{ Grab environment local io = { lines = io.lines } local setmetatable = set...
gpl-2.0
focusworld/focus
plugins/torrent_search.lua
223
1059
local https = require ('ssl.https') local ltn12 = require ("ltn12") local function search_kickass(query) local url = 'https://kat.cr/json.php?q='..URL.escape(query) local resp = {} local b,c = https.request { url = url, protocol = "tlsv1", sink = ltn12.sink.table(resp) } resp = table.concat(...
gpl-2.0
MRAHS/seed
plugins/anti_spam.lua
435
3886
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds local data = load_data(_config.moderation.data) -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id =...
gpl-2.0
ntop/ntopng
scripts/lua/rest/v1/export/pool/config.lua
1
1425
-- -- (C) 2019-22 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path package.path = dirs.installdir .. "/scripts/lua/modules/import_export/?.lua;" .. package.path require "lua_utils" local snmp_import_export = require "snmp_import_export" local am_impor...
gpl-3.0
corbinmunce/domoticz
dzVents/runtime/device-adapters/kodi_device.lua
25
2144
return { baseType = 'device', name = 'Kodi device', matches = function (device, adapterManager) local res = (device.hardwareType == 'Kodi Media Server') if (not res) then adapterManager.addDummyMethod(device, 'kodiSwitchOff') adapterManager.addDummyMethod(device, 'kodiStop') adapterManager.addDummyMe...
gpl-3.0
maikerumine/aftermath
mods/default/mapgen.lua
2
45396
-- -- Aliases for map generator outputs -- minetest.register_alias("mapgen_stone", "default:stone") minetest.register_alias("mapgen_dirt", "default:dirt") minetest.register_alias("mapgen_dirt_with_grass", "default:dry_dirt") minetest.register_alias("mapgen_sand", "default:sand") minetest.register_alias("mapgen_water_s...
lgpl-2.1
caohongtao/quick-cocos-demo
runtime/ios/PrebuiltRuntimeLua.app/src/framework/cocos2dx/Event.lua
22
1457
--[[ Copyright (c) 2011-2014 chukong-inc.com 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, dis...
apache-2.0
noa/nn
SpatialSubtractiveNormalization.lua
39
4102
local SpatialSubtractiveNormalization, parent = torch.class('nn.SpatialSubtractiveNormalization','nn.Module') function SpatialSubtractiveNormalization:__init(nInputPlane, kernel) parent.__init(self) -- get args self.nInputPlane = nInputPlane or 1 self.kernel = kernel or torch.Tensor(9,9):fill(1) local ...
bsd-3-clause
ntop/ntopng
scripts/lua/modules/alert_definitions/other/alert_nfq_flushed.lua
1
1728
-- -- (C) 2019-22 - ntop.org -- -- ############################################## local other_alert_keys = require "other_alert_keys" -- Import the classes library. local classes = require "classes" -- Make sure to import the Superclass! local alert = require "alert" local alert_entities = require "alert_entities" -...
gpl-3.0
graydon/monotone
tests/include()_includedir()_and_includedirpattern()_lua_functions/__driver__.lua
1
1377
mtn_setup() mkdir("gongolo") writefile("include.lua", 'include("../gongolo/aaa.rc")') writefile("includedir.lua", 'includedir("../gongolo")') writefile("includedirpattern.lua", 'includedirpattern("../gongolo","*.rc")') -- write two files and check that they will be invoked in alphabetic order check(get("aaa.rc", ...
gpl-2.0
vikas17a/Algorithm-Implementations
Minimax/Lua/Yonaba/minimax_test.lua
26
1073
-- Tests for minimax.lua local minimax = require 'minimax' 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 end local...
mit
numo16/wesnoth
data/ai/lua/move_to_any_target.lua
32
1498
return { init = function(ai) local AH = wesnoth.require "ai/lua/ai_helper.lua" local move_to_any_target = {} function move_to_any_target:move_to_enemy_eval() local units = wesnoth.get_units { side = wesnoth.current.side, canrecruit = 'no', ...
gpl-2.0
mehrpouya81/gamerv2
plugins/helppv.lua
3
1839
do function run(msg, matches) return " دستورات پي وي ربات:\n\nکيک,بن,ان بن کردن شخص از گروه\n/owners [ايدي گروه] [kick|ban|unban] [ايدي شخص]\n\nمثال:\n/owners 1234567 kick 1234567\n\n\nپاک کردن ادمين ها,قوانين و توضيحات گروه\n/owners [ايدي گروه] clean [modlist|rules|about]\n\nمثال:\n/owners 1234567 clean modlist\n\n...
gpl-2.0
fusion809/fusion809.github.io-old
vendor/bundle/ruby/2.1.0/gems/pygments.rb-0.6.3/vendor/pygments-main/tests/examplefiles/example.lua
102
8677
--[[ Auctioneer Advanced Version: <%version%> (<%codename%>) Revision: $Id: CoreMain.lua 2233 2007-09-25 03:57:33Z norganna $ URL: http://auctioneeraddon.com/ This is an addon for World of Warcraft that adds statistical history to the auction data that is collected when the auction is scanned, so that you can ea...
gpl-3.0
FelixMaxwell/ReDead
entities/weapons/rad_hammer/shared.lua
1
10244
if SERVER then AddCSLuaFile("shared.lua") end if CLIENT then SWEP.ViewModelFOV = 80 SWEP.ViewModelFlip = false SWEP.PrintName = "Hammer" SWEP.IconLetter = "j" SWEP.Slot = 1 SWEP.Slotpos = 0 end SWEP.HoldType = "melee" SWEP.Base = "rad_base" SWEP.ViewModel = "models/weapons/v_hammer/v_hammer.mdl" ...
mit
corbinmunce/domoticz
dzVents/runtime/device-adapters/temperature_humidity_barometer_device.lua
7
1393
local constMapping = { ['noinfo'] = 0, ['sunny'] = 1, ['partlycloudy'] = 2, ['cloudy'] = 3, ['rain'] = 4 } local humidityMapping = { ['dry'] = 2, ['normal'] = 0, ['comfortable'] = 1, ['wet'] = 3 } return { baseType = 'device', name = 'Temperature+humidity+barometer device adapter', matches = function ...
gpl-3.0
icetoggle/skynet
test/testhttp.lua
6
1490
local skynet = require "skynet" local httpc = require "http.httpc" local dns = require "skynet.dns" local function http_test(protocol) --httpc.dns() -- set dns server httpc.timeout = 100 -- set timeout 1 second print("GET baidu.com") protocol = protocol or "http" local respheader = {} local host = string.format(...
mit
ArmanIr/restore
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
jbeich/Aquaria
files/scripts/entities/piranha.lua
6
4700
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 2 -- of the License, or (at your option) any later vers...
gpl-2.0
esbullington/snabbp4
syntax/symbols/declarations/action_declarations.lua
1
3724
local class = require("snabbp4.syntax.utils.middleclass") -- base symbol local base = require("snabbp4.syntax.symbols.base") local BaseSymbol = base.BaseSymbol -- precedence values local precedence = require("snabbp4.syntax.precedence") local PrimitiveActionDeclaration = class("PrimitiveActionDeclaration", ...
apache-2.0
nyczducky/darkstar
scripts/globals/spells/bluemagic/magnetite_cloud.lua
26
1913
----------------------------------------- -- Spell: Magnetite Cloud -- Deals earth damage to enemies within a fan-shaped area originating from the caster. Additional effect: Weight -- Spell cost: 86 MP -- Monster Type: Beastmen -- Spell Type: Magical (Earth) -- Blue Magic Points: 3 -- Stat Bonus: VIT+2 -- Level: 46 -- ...
gpl-3.0
nyczducky/darkstar
scripts/zones/Northern_San_dOria/npcs/Belgidiveau.lua
25
2335
----------------------------------- -- Area: Northern San d'Oria -- NPC: Belgidiveau -- Starts and Finishes Quest: Trouble at the Sluice -- @zone 231 -- @pos -98 0 69 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scrip...
gpl-3.0
ld-test/luarepl
repl/plugins/keep_last_eval.lua
4
1626
-- Copyright (c) 2011-2015 Rob Hoelz <rob@hoelz.ro> -- -- 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,...
mit
guangbin79/Lua_5.1.5-iOS
wsapi-xavante-1.6.1-1/src/wsapi/response.lua
2
2790
local util = require "wsapi.util" local date = os.date local format = string.format local _M = {} local methods = {} methods.__index = methods _M.methods = methods local unpack = table.unpack or unpack function methods:write(...) for _, s in ipairs{ ... } do if type(s) == "table" then self:write(unpac...
mit
dtrip/awesome
lib/naughty/layout/legacy.lua
3
21064
---------------------------------------------------------------------------- --- A notification popup widget. -- -- This is the legacy notification widget. It was the default until Awesome -- v4.3 but is now being deprecated in favor of a more flexible widget. -- -- The reason for this is/was that this widget is inflex...
gpl-2.0
jbeich/Aquaria
files/scripts/entities/predatorytunicate.lua
3
5883
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 2 -- of the License, or (at your option) any later vers...
gpl-2.0
benloz10/FinalFrontier
gamemodes/finalfrontier/gamemode/sgui/overridenode.lua
3
3330
-- Copyright (c) 2014 James King [metapyziks@gmail.com] -- -- This file is part of Final Frontier. -- -- Final Frontier is free software: you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as -- published by the Free Software Foundation, either version 3 of -- the Lic...
lgpl-3.0
abosalah22/memo
plugins/aboshosho2.lua
1
1730
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ help2 : مساعدة2 ▀▄ ▄▀ ▀▄▀...
gpl-2.0
aliarshad2000/telehunter
plugins/anti_spam.lua
102
3744
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds local data = load_data(_config.moderation.data) -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id =...
gpl-2.0
nyczducky/darkstar
scripts/globals/items/wedge_of_chalaimbille.lua
12
1214
----------------------------------------- -- ID: 5684 -- Item: wedge_of_chalaimbille -- Food Effect: 30Min, All Races ----------------------------------------- -- Health % 6 (cap 40) ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -...
gpl-3.0
guangbin79/Lua_5.1.5-iOS
lua-script/wsapi/mock.lua
2
4834
----------------------------------------------------------------------------- -- Mock WSAPI handler for Unit testing -- -- Author: Norman Clarke -- Copyright (c) 2010 Kepler Project -- ----------------------------------------------------------------------------- local _M = {} local common = require "wsapi.common" lo...
mit
sjznxd/lc-20121231
applications/luci-asterisk/luasrc/model/cbi/asterisk/phone_sip.lua
80
3813
--[[ LuCI - Lua Configuration Interface Copyright 2008 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$ ]]-- l...
apache-2.0
dtrip/awesome
tests/_client.lua
2
5414
local spawn = require("awful.spawn") -- This file provide a simple, yet flexible, test client. -- It is used to test the `ruled.client` local test_client_source = [[ pcall(require, 'luarocks.loader') local lgi = require 'lgi' local Gdk = lgi.require('Gdk') local Gtk = lgi.require('Gtk') local Gio = lgi.require('Gio')...
gpl-2.0
ld-test/lzmq-ffi
script/getsockopt.lua
11
1633
local api = require "lzmq.ffi.api" local printf = function(...) print(string.format(...)) end local function rfit(str, n) if #str >= n then return str end return str .. (' '):rep(n-#str) end local options = {} local max_len = 0 for opt in pairs(api.SOCKET_OPTIONS) do options[#options + 1] = opt if #opt > max...
mit
Wiladams/LJIT2libc
libc/sys/socket.lua
1
7050
local ffi = require("ffi") local utils = require("libc_utils") require("sys/types") local octal = utils.octal require("bits/socket") ffi.cdef[[ struct linger { int l_onoff; int l_linger; }; struct sockaddr { sa_family_t sa_family; char sa_data[14]; }; struct sockaddr_storage { sa_family_t ss_family; unsign...
mit
nimaghorbani/nimabotv2.2
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
aliarshad2000/telehunter
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
sjznxd/lc-20121231
applications/luci-firewall/luasrc/model/cbi/firewall/rules.lua
23
7165
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010-2012 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 htt...
apache-2.0
nyczducky/darkstar
scripts/globals/items/shining_trout.lua
12
1328
----------------------------------------- -- ID: 5791 -- Item: shining_trout -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Mind -4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -----...
gpl-3.0
nyczducky/darkstar
scripts/globals/spells/bluemagic/wild_carrot.lua
27
1735
----------------------------------------- -- Spell: Wild Carrot -- Restores HP for the target party member -- Spell cost: 37 MP -- Monster Type: Beasts -- Spell Type: Magical (Light) -- Blue Magic Points: 3 -- Stat Bonus: HP+5 -- Level: 30 -- Casting Time: 2.5 seconds -- Recast Time: 6 seconds -- -- Combos: Resist Sle...
gpl-3.0
stipple/stipple_lightroom_plugin
StippleAPI.lua
1
15385
-- Lightroom SDK local LrBinding = import 'LrBinding' local LrDate = import 'LrDate' local LrDialogs = import 'LrDialogs' local LrErrors = import 'LrErrors' local LrFunctionContext = import 'LrFunctionContext' local LrHttp = import 'LrHttp' local LrMD5 = import 'LrMD5' local LrPathUtils = import 'LrPathUtils' local Lr...
mit
jbeich/Aquaria
files/scripts/entities/_unused/collectiblebabycrib.lua
6
1319
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 2 -- of the License, or (at your option) any later vers...
gpl-2.0
benloz10/FinalFrontier
gamemodes/finalfrontier/entities/weapons/weapon_ff_repair_tool/shared.lua
1
10565
-- Copyright (c) 2014 Michael Ortmann [micha.ortmann@yahoo.de] -- -- This file is part of Final Frontier. -- -- Final Frontier is free software: you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as -- published by the Free Software Foundation, either version 3 of -- th...
lgpl-3.0
nyczducky/darkstar
scripts/zones/La_Theine_Plateau/npcs/FallenEgg.lua
14
1730
----------------------------------- -- Area: La Theine Plateau -- NPC: FallenEgg -- Spawns NM ----------------------------------- package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil; ----------------------------------- require("scripts/globals/npc_util"); require("scripts/zones/La_Theine_Plateau/TextID...
gpl-3.0
jbeich/Aquaria
game_scripts/_mods/aquariaeditortutorial/scripts/node_obstruct05.lua
6
1808
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 2 -- of the License, or (at your option) any later vers...
gpl-2.0
dtrip/awesome
tests/examples/awful/tooltip/textclock.lua
6
1065
--DOC_GEN_IMAGE --DOC_NO_USAGE require("_date") --DOC_HIDE screen[1]._resize {width = 300, height = 75} --DOC_HIDE local awful = {tooltip = require("awful.tooltip"), wibar = require("awful.wibar")} --DOC_HIDE local wibox = { widget = { textclock = require("wibox.widget.textclock") }, --DOC_HIDE layout = { align = r...
gpl-2.0
francot514/CardGamePRO-Simulator
data/cards/c1222.lua
1
1150
--Stables function c1222.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --special summon local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetCountLimit(1)...
gpl-2.0
Mariappan/rcfiles
home/.notion/looks/look_cleanwhite.lua
7
1963
-- Authors: René van Bevern <rvb@debian.org> -- License: Unknown -- Last Changed: Unknown -- -- look_cleanwhite.lua a bright theme fitting white terminals -- -- uses Terminus fonts -- -- -- René van Bevern <rvb@debian.org> if not gr.select_engine("de") then return end de.reset() de.defstyle("*", { shadow_colo...
gpl-2.0
nyczducky/darkstar
scripts/zones/Caedarva_Mire/npcs/_272.lua
27
3655
----------------------------------- -- Area: Caedarva Mire -- Door: Runic Seal -- @pos 486 -23 -500 79 ----------------------------------- package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/missions"); require(...
gpl-3.0
nyczducky/darkstar
scripts/zones/Cirdas_Caverns_U/Zone.lua
17
1103
----------------------------------- -- -- Zone: Cirdas Caverns U -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Cirdas_Caverns_U/TextIDs"] = nil; require("scripts/zones/Cirdas_Caverns_U/TextIDs"); ----------------------------------- -- onInitialize -------...
gpl-3.0
nyczducky/darkstar
scripts/globals/items/m&p_doner_kebab.lua
12
1533
----------------------------------------- -- ID: 5717 -- Item: M&P Doner Kabob -- Food Effect: 5Min, All Races ----------------------------------------- -- HP 5% (cap 150) -- MP 5% (cap 150) -- hHP +2 -- hMP +2 ----------------------------------------- require("scripts/globals/status"); ------------------------------...
gpl-3.0
nyczducky/darkstar
scripts/zones/Bastok_Mines/npcs/Neigepance.lua
17
1598
----------------------------------- -- Area: Bastok Mines -- NPC: Neigepance -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; require("scripts/zones/Bastok_Mines/TextIDs"); ----------------------------------- -- o...
gpl-3.0
sevu/wesnoth
data/ai/lua/ca_move_to_any_enemy.lua
4
4550
------- Move To Any Enemy CA -------------- -- Move AI units toward any enemy on the map. This has a very low CA score and -- only kicks in when the AI would do nothing else. It prevents the AI from -- being inactive on maps without enemy leaders and villages. -- It has a very simple algorithm that does well enough in ...
gpl-2.0
nyczducky/darkstar
scripts/globals/spells/sleep.lua
27
1086
----------------------------------------- -- Spell: Sleep I ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target,spell)...
gpl-3.0
ichiinisanshi/Learning-with-Penny-the-Pony
config.lua
1
1536
if display.pixelHeight > 960 then -- for device with longer height e.g. iPhone 5 and most Android Devices. application = { content = { width = 640, height = 1136, scale = "zoomEven ", -- Stretch to fit entire screen. This will cause some objects to look flat or stretched....
mit
BeyondTeam/Self-Bot
libs/XMLElement.lua
569
4025
-- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence. -- updated for module-free world of lua 5.3 on April 2 2015 -- Not documented at all, but not interesting enough to warrant documentation anyway. local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ...
gpl-2.0
dddaaaddd/teleiran_new
libs/XMLElement.lua
569
4025
-- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence. -- updated for module-free world of lua 5.3 on April 2 2015 -- Not documented at all, but not interesting enough to warrant documentation anyway. local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ...
gpl-2.0
sjznxd/lc-20121231
modules/niu/luasrc/model/cbi/niu/network/lan1.lua
37
5033
--[[ LuCI - Lua Configuration Interface Copyright 2009 Steven Barth <steven@midlink.org> Copyright 2009 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
wenhulove333/ScutServer
Sample/Koudai/Client/lua/scenes/MailScene.lua
1
7256
------------------------------------------------------------------ -- MailScene.lua -- Author :JUNM CHEN -- Version : 1.0 -- Date :Ðżþ -- Description: , ------------------------------------------------------------------ module("MailScene", package.seeall) -- ³¡¾°ÖÐÓõ½µÄ³ÉÔ±±äÁ¿ÒªÔÚÎļþÍ·²¿ÏÈÉêÃ...
mit
nyczducky/darkstar
scripts/zones/Port_Bastok/npcs/Bodaway.lua
30
1432
----------------------------------- -- Area: Port Bastok -- NPC: Bodaway -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; require("scripts/zones/Port_Bastok/TextIDs"); ----------------------------------- -- onTrade Action ----------------------------...
gpl-3.0
guangbin79/Lua_5.1.5-iOS
cgilua-5.2.1/src/cgilua/cookies.lua
2
3169
---------------------------------------------------------------------------- -- Cookies Library -- -- @release $Id: cookies.lua,v 1.8 2008/04/24 13:42:04 mascarenhas Exp $ ---------------------------------------------------------------------------- local cgilua = require"cgilua" local os = require"os" local string = r...
mit
nyczducky/darkstar
scripts/zones/Rabao/npcs/Leodarion.lua
9
3703
----------------------------------- -- Area: Rabao -- NPC: Leodarion -- Involved in Quest: 20 in Pirate Years, I'll Take the Big Box, True Will -- @pos -50 8 40 247 ----------------------------------- package.loaded["scripts/zones/Rabao/TextIDs"] = nil; ----------------------------------- require("scripts/globals/sett...
gpl-3.0
nyczducky/darkstar
scripts/zones/Den_of_Rancor/npcs/_4g3.lua
27
2358
----------------------------------- -- Area: Den of Rancor -- NPC: Lantern (SW) -- @pos -59 45 24 160 ----------------------------------- package.loaded["scripts/zones/Den_of_Rancor/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Den_of_Rancor/TextIDs")...
gpl-3.0
bgshih/crnn
third_party/lmdb-lua-ffi/src/underscore.lua
22
9838
-- Copyright (c) 2009 Marcus Irven -- -- 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, publ...
mit
nyczducky/darkstar
scripts/zones/Valkurm_Dunes/npcs/qm1.lua
14
1246
----------------------------------- -- Area: Valkurm Dunes -- NPC: qm1 (???) -- Involved In Quest: An Empty Vessel -- @pos 238.524 2.661 -148.784 103 ----------------------------------- package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Valkurm_Dune...
gpl-3.0
nyczducky/darkstar
scripts/zones/Throne_Room/npcs/_4l4.lua
66
1207
----------------------------------- -- Area: Throne Room -- NPC: Ore Door ------------------------------------- require("scripts/globals/bcnm"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) if (TradeBCNM(player,player:getZoneID...
gpl-3.0
nyczducky/darkstar
scripts/zones/Rabao/npcs/Pakhi_Churhebi.lua
14
1034
---------------------------------- -- Area: Rabao -- NPC: Pakhi Churhebi -- Type: Item Deliverer -- @zone 247 -- @pos 158.428 7.999 78.009 -- ----------------------------------- package.loaded["scripts/zones/Rabao/TextIDs"] = nil; require("scripts/zones/Rabao/TextIDs"); ----------------------------------- -...
gpl-3.0
nyczducky/darkstar
scripts/globals/items/stick_of_pepperoni.lua
12
1596
----------------------------------------- -- ID: 5660 -- Item: stick_of_pepperoni -- Food Effect: 30Min, All Races ----------------------------------------- -- HP % 3 (assuming 3% from testing, no known cap) -- Strength 3 -- Intelligence -1 -- Attack % 60 (assuming 60%, cap 30) -----------------------------------------...
gpl-3.0
abosalah22/memo
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
TahaLord/tahalord
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
matinbot/webamooz
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
nyczducky/darkstar
scripts/zones/Quicksand_Caves/npcs/HomePoint#1.lua
27
1271
----------------------------------- -- Area: Quicksand_Caves -- NPC: HomePoint#1 -- @pos -984 17 -289 208 ----------------------------------- package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Quicksand_Caves/TextIDs"); require("scripts/globals/...
gpl-3.0
nyczducky/darkstar
scripts/globals/abilities/accession.lua
27
1203
----------------------------------- -- Ability: Accession -- Extends the effect of your next healing or enhancing white magic spell to party members within range. -- MP cost and casting time are doubled. -- Obtained: Scholar Level 40 -- Recast Time: Stratagem Charge -- Duration: 1 compatible white magic spell or 60 sec...
gpl-3.0
jbeich/Aquaria
files/scripts/entities/castlecrab.lua
6
4168
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 2 -- of the License, or (at your option) any later vers...
gpl-2.0
nyczducky/darkstar
scripts/zones/Quicksand_Caves/Zone.lua
10
6759
----------------------------------- -- -- Zone: Quicksand_Caves (208) -- ----------------------------------- package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Quicksand_Caves/TextIDs"); require("scripts/globals/settings"); require("scripts/globals/...
gpl-3.0