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
Mahyar0098/Cj-Bot
plugins/ingroup.lua
371
44212
do -- Check Member local function check_member_autorealm(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostr...
gpl-2.0
Kthulupwns/darkstar
scripts/globals/weaponskills/freezebite.lua
30
1263
----------------------------------- -- Freezebite -- Great Sword weapon skill -- Skill Level: 100 -- Delivers an ice elemental attack. Damage varies with TP. -- Aligned with the Snow Gorget & Breeze Gorget. -- Aligned with the Snow Belt & Breeze Belt. -- Element: Ice -- Modifiers: STR:30% ; INT:20% -- 100%TP ...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Silver_Sea_route_to_Nashmau/npcs/Qudamahf.lua
38
1136
----------------------------------- -- Area: Silver_Sea_route_to_Nashmau -- NPC: Qudamahf -- Notes: Tells ship ETA time -- @pos 0.340 -12.232 -4.120 58 ----------------------------------- package.loaded["scripts/zones/Silver_Sea_route_to_Nashmau/TextIDs"] = nil; ----------------------------------- require("scripts/...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/The_Garden_of_RuHmet/npcs/Home_Point#1.lua
16
1202
----------------------------------- -- Area: The_Garden_of_RuHmet -- NPC: HomePoint#1 -- @pos ----------------------------------- package.loaded["scripts/zones/The_Garden_of_RuHmet/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/The_Garden_of_RuHmet/TextIDs"); require("scripts/globals...
gpl-3.0
awhitesong/rspamd
conf/lua/rspamd.lua
1
3608
--[[ Copyright (c) 2011-2015, Vsevolod Stakhov <vsevolod@highsecure.ru> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this lis...
bsd-2-clause
Velkon/DarkRP
gamemode/modules/language/sh_english.lua
5
23549
/*--------------------------------------------------------------------------- English (example) language file --------------------------------------------------------------------------- This is the english language file. The things on the left side of the equals sign are the things you should leave alone The parts bet...
mit
Kthulupwns/darkstar
scripts/zones/Nashmau/npcs/Leleroon.lua
17
2992
----------------------------------- -- Area: Nashmau -- NPC: Leleroon -- Standard Info NPC -- Corsair SideQuests -- @pos -14.687 0.000 25.114 53 ----------------------------------- package.loaded["scripts/zones/Nashmau/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Nashmau/TextIDs...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Chamber_of_Oracles/npcs/Pedestal_of_Fire.lua
12
2258
----------------------------------- -- Area: Chamber of Oracles -- NPC: Pedestal of Fire -- Involved in Zilart Mission 7 -- @pos 199 -2 36 168 ------------------------------------- package.loaded["scripts/zones/Chamber_of_Oracles/TextIDs"] = nil; ------------------------------------- require("scripts/globals...
gpl-3.0
daned33/NodeMCU-ESP8266-WeatherNode
weathernode.lua
1
1525
dht22 = require("dht22_mun") PIN = 0 -- data pin, GPIO2 host = "" port = 8086 location = 'indoors' cycle_time = 30000 -- How often data is read and sent in ms function sendData() dht22.read(PIN) t = dht22.getTemperature() h = dht22.getHumidity() if h == nil then print("Error reading from DHT...
mit
rohanp/Algorithm-Implementations
Euclidean_algorithm/Lua/Yonaba/euclidian_test.lua
27
1896
-- Tests for euclidian.lua local gcd = require 'euclidian' 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 status ...
mit
junrw/ember-gsoc2012
src/components/ogre/widgets/ActionBarDefaultAction.lua
5
1835
--[[ Responsible for managing the default action executed when a user clicks on an action bar icon. ]]-- ActionBarDefaultAction = {} --Executed on entities that can be equipped. function ActionBarDefaultAction:wieldableCommandObject() if self.mCommandObject ~= nil then self.wearFunction = self.mDefaultActionList:g...
gpl-3.0
Velkon/DarkRP
entities/weapons/weapon_p2282/shared.lua
12
1089
AddCSLuaFile() if CLIENT then SWEP.PrintName = "P228" SWEP.Author = "DarkRP Developers" SWEP.Slot = 1 SWEP.SlotPos = 1 SWEP.IconLetter = "y" killicon.AddFont("weapon_p2282", "CSKillIcons", SWEP.IconLetter, Color(255, 80, 0, 255)) end SWEP.Base = "weapon_cs_base2" SWEP.Spawnable = true SWEP.A...
mit
telbbs/luci-0.12
applications/luci-coovachilli/luasrc/model/cbi/coovachilli_network.lua
79
1639
--[[ 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...
apache-2.0
GabrielNicolasAvellaneda/luvit-upstream
tests/to-convert/test-tls-remote.lua
5
1493
--[[ Copyright 2012 The Luvit Authors. 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 applicable law or agre...
apache-2.0
Kthulupwns/darkstar
scripts/zones/Mhaura/npcs/HomePoint#1.lua
12
1238
----------------------------------- -- Area: Mhaura -- NPC: HomePoint#1 -- @pos -12.750 -15.791 87.286 249 ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Mhaura/TextIDs"); require("scripts/globals/homepoi...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Churacoco.lua
38
1049
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Churacoco -- Type: Standard NPC -- @zone: 94 -- @pos -76.139 -4.499 20.986 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil; ...
gpl-3.0
tanema/light_world.lua
examples/lib/object.lua
1
3620
local inspect = require 'examples.vendor.inspect' local ImageObject, Rect, Circle, Refraction = {}, {}, {}, {} ImageObject.__index = ImageObject Rect.__index = Rect Circle.__index = Circle Refraction.__index = Refraction local imageCache = {} local function loadImg(path) if imageCache[path] == nil and love.filesyste...
mit
dpino/snabb
src/lib/lua/StackTracePlus.lua
44
12501
-- tables local _G = _G local string, io, debug, coroutine = string, io, debug, coroutine -- functions local tostring, print, require = tostring, print, require local next, assert = next, assert local pcall, type, pairs, ipairs = pcall, type, pairs, ipairs local error = error assert(debug, "debug table must...
apache-2.0
dpino/snabb
src/apps/ipv6/echo.lua
3
4628
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. -- ICMPv6 echo request ("ping") responder (RFC 4443) module(..., package.seeall) local bit = require("bit") local ffi = require("ffi") local lib = require("core.lib") local packet = require("core.packet") local co...
apache-2.0
Kthulupwns/darkstar
scripts/zones/RuLude_Gardens/npcs/Pursuivant.lua
38
1034
----------------------------------- -- Area: Ru'Lude Gardens -- NPC: Pursuivant -- Type: Pursuivant -- @zone: 243 -- @pos 52.020 -1 -17.813 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil; ---------------...
gpl-3.0
Kthulupwns/darkstar
scripts/globals/weaponskills/blade_ku.lua
30
1680
----------------------------------- -- Blade Ku -- Katana weapon skill -- Skill level: N/A -- Description: Delivers a five-hit attack. params.accuracy varies with TP. -- In order to obtain Blade: Ku, the quest Bugi Soden must be completed. -- Will stack with Sneak Attack. -- Aligned with the Shadow Gorget, Soil ...
gpl-3.0
aa65535/luci
applications/luci-app-lxc/luasrc/controller/lxc.lua
26
4082
--[[ LuCI LXC module Copyright (C) 2014, Cisco Systems, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Author: Petar Koretic <petar.koretic@sart...
apache-2.0
Malyonsus/sanieui
unitframes/tot.lua
1
4040
--[[ Create the ToT unit frame. --]] if(SanieUI.debug == true) then print("Loading ToT data") end local uf = SanieUI.unitframes local height = uf.targettarget.height local width = uf.targettarget.width local scale = uf.targettarget.scale local texture = uf.bartexture local xpos = uf.targettarget.xpos ...
mit
Kthulupwns/darkstar
scripts/zones/Windurst_Walls/npcs/Pakke-Pokke.lua
38
1040
----------------------------------- -- Area: Windurst Walls -- NPC: Pakke-Pokke -- Type: Standard NPC -- @zone: 239 -- @pos -3.464 -17.25 125.635 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil; ---------...
gpl-3.0
sirnuke/soup-kitchen-love
soup-kitchen/world/coordinate.lua
1
1338
-- Soup Kitchen -- Bryan DeGrendel (c) 2016 require "world.position" Coordinate = Class("Position") function Coordinate:init(x, y) assert(Utilities:isInteger(x) and Utilities:isInteger(y)) assert(x >= 0 and x < Settings.Map.Dimensions.Width, string.format("x:%i is out of range [0..%i)", x, Settings.Map.Dimen...
gpl-2.0
AttacqueSuperior/Engine
mods/d2k/maps/atreides-04/atreides04.lua
2
8057
--[[ Copyright 2007-2021 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you 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 vers...
gpl-3.0
Velkon/DarkRP
gamemode/modules/hud/sv_admintell.lua
1
1455
/*--------------------------------------------------------------------------- Messages ---------------------------------------------------------------------------*/ local function ccTell(ply, arg) local args = string.Explode(" ", arg) local target = DarkRP.findPlayer(args[1]) if target then local ...
mit
LuaDist/lzmq
test/test_threads_fork_arg.lua
16
1024
local TEST_FFI = ("ffi" == os.getenv("LZMQ")) local LZMQ = "lzmq" .. (TEST_FFI and ".ffi" or "") local zmq = require (LZMQ) local zthreads = require (LZMQ .. ".threads" ) local thread = zthreads.fork(zmq.context(), [[ local function assert_equal(name, a, b, ...) if a == b then return b, ... end pri...
mit
dpino/snabb
src/lib/yang/value.lua
3
4967
-- Use of this source code is governed by the Apache 2.0 license; see -- COPYING. module(..., package.seeall) local util = require("lib.yang.util") local ipv4 = require("lib.protocol.ipv4") local ipv6 = require("lib.protocol.ipv6") local ffi = require("ffi") local bit = require("bit") local ethernet = require("lib.pro...
apache-2.0
fegimanam/kurdbot
plugins/groupmanager.lua
12
16925
-- data saved to data/moderation.json do local function export_chat_link_cb(extra, success, result) local msg = extra.msg local data = extra.data if success == 0 then return send_large_msg(get_receiver(msg), 'Cannot generate invite link for this group.\nMake sure you are an admin or a sudoer.') ...
gpl-2.0
Kthulupwns/darkstar
scripts/zones/Aydeewa_Subterrane/mobs/Pandemonium_Warden.lua
10
8584
----------------------------------- -- Area: -- NPC: Pandemonium_Warden ----------------------------------- require("scripts/globals/titles"); ----------------------------------- -- onMobEngaged ----------------------------------- function onMobEngaged(mob,target) -- Uncomment if you're testing with ...
gpl-3.0
dpino/snabb
lib/ljsyscall/test/bsd.lua
18
16048
-- General BSD tests local function init(S) local helpers = require "syscall.helpers" local types = S.types local c = S.c local abi = S.abi local bit = require "syscall.bit" local ffi = require "ffi" local t, pt, s = types.t, types.pt, types.s local assert = helpers.assert local function fork_assert(cond, err, .....
apache-2.0
AGTMADCAT/naev
dat/scripts/pilot/empire.lua
12
10256
include("pilot/generic.lua") include("dat/factions/equip/helper.lua") include("dat/factions/equip/outfits.lua") --[[ -- @brief Creates a mighty Empire warship. -- -- @param empire_create If nil or true actually creates a Empire warship -- with a random name and all, otherwise it'll give ship type and -- ...
gpl-3.0
MarginC/sregex
dynasm/dynasm.lua
15
30945
------------------------------------------------------------------------------ -- DynASM. A dynamic assembler for code generation engines. -- Originally designed and implemented for LuaJIT. -- -- Copyright (C) 2005-2012 Mike Pall. All rights reserved. -- See below for full copyright notice. ----------------------------...
bsd-3-clause
Eyedema/taytay
plugins/rae.lua
2
1285
function getDulcinea( text ) -- Powered by https://github.com/javierhonduco/dulcinea local api = "http://dulcinea.herokuapp.com/api/?query=" local query_url = api..text b = http.request(query_url) dulcinea = json:decode(b) if dulcinea.status == "error" then return "Error: " .. dulcinea.message end w...
gpl-2.0
GabrielNicolasAvellaneda/luvit-upstream
tests/to-convert/test-http-get-url.lua
6
1108
--[[ Copyright 2012 The Luvit Authors. 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 applicable law or agr...
apache-2.0
Kthulupwns/darkstar
scripts/zones/Riverne-Site_A01/npcs/HomePoint#1.lua
12
1188
----------------------------------- -- Area: Riverne-Site A01 -- NPC: HomePoint#1 -- @pos ----------------------------------- package.loaded["scripts/zones/Riverne-Site_A01/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Riverne-Site_A01/TextIDs"); require("scripts/globals/homepoint"); ...
gpl-3.0
Kthulupwns/darkstar
scripts/globals/spells/bio_ii.lua
5
2113
----------------------------------------- -- Spell: Bio II -- Deals dark damage that weakens an enemy's attacks and gruadually reduces its HP. ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ------------------...
gpl-3.0
Kthulupwns/darkstar
scripts/globals/spells/foe_requiem_ii.lua
11
1622
----------------------------------------- -- Spell: Foe Requiem II ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target...
gpl-3.0
ma137292/mostafa-Bot
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
ashkan1996/hunter002
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
Kthulupwns/darkstar
scripts/zones/Meriphataud_Mountains_[S]/npcs/Telepoint.lua
18
1231
----------------------------------- -- Area: Meriphataud Mountains [S] -- NPC: Telepoint ----------------------------------- package.loaded["scripts/zones/Meriphataud_Mountains_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/Meriphataud_Mountains_[...
gpl-3.0
telbbs/luci-0.12
modules/admin-full/luasrc/controller/admin/uci.lua
85
1975
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
apache-2.0
Kthulupwns/darkstar
scripts/globals/items/boiled_crayfish.lua
35
1248
----------------------------------------- -- ID: 4535 -- Item: Boiled Crayfish -- Food Effect: 30Min, All Races ----------------------------------------- -- defense % 30 -- defense % 25 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -...
gpl-3.0
alioshii/KASBAR
plugins/owners.lua
13
23863
--[[ # For More Information ....! # Developer : Aziz < @devss_bot > #Dev # our channel: @help_tele ]] local function lock_group_namemod(msg, data, target) local group_name_set = data[tostring(target)]['settings']['set_name'] local group_name_lock = data[tostring(target)]['settings']['lock_name'] if group_na...
gpl-2.0
cedlemo/blingbling
triangular_progress_graph.lua
2
9346
-- @author cedlemo local setmetatable = setmetatable local ipairs = ipairs local math = math --local table = table local type = type local string = string local color = require("gears.color") local base = require("wibox.widget.base") local helpers = require("blingbling.helpers") local superproperties = require('blingb...
gpl-2.0
Kthulupwns/darkstar
scripts/zones/Arrapago_Reef/npcs/qm10.lua
19
2978
----------------------------------- -- Area: Arrapago Reef -- NPC: ??? -- Starts: Corsair Af1 ,AF2 ,AF3 -- @pos 457.128 -8.249 60.795 54 ----------------------------------- require("scripts/globals/status"); require("scripts/globals/quests"); require("scripts/globals/titles"); require("scripts/zones/Arrapag...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Cape_Teriggan/npcs/Bright_Moon.lua
17
1860
----------------------------------- -- Area: Cape Teriggan -- NPC: Bright Moon -- Type: Outpost Vendor -- @pos -185 7 -63 113 ----------------------------------- package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts...
gpl-3.0
aa65535/luci
modules/luci-base/luasrc/sys/zoneinfo/tzoffset.lua
12
1053
-- Licensed to the public under the Apache License 2.0. module "luci.sys.zoneinfo.tzoffset" OFFSET = { gmt = 0, -- GMT eat = 10800, -- EAT cet = 3600, -- CET wat = 3600, -- WAT cat = 7200, -- CAT eet = 7200, -- EET wet = 0, -- WET sast = 7200, -- SAST hst = -36000, -- HS...
apache-2.0
telbbs/luci-0.12
modules/admin-full/luasrc/model/cbi/admin_network/iface_add.lua
79
3091
--[[ LuCI - Lua Configuration Interface Copyright 2009-2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]...
apache-2.0
rohanp/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
rohanp/Algorithm-Implementations
Ranrot-B-Pseudo_Random_Number_Generator/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
dios-game/dios-cocos-samples
src/lua-coin-tree/Resources/src/cocos/framework/init.lua
9
2729
--[[ Copyright (c) 2011-2015 chukong-incc.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...
mit
kuoruan/luci
applications/luci-app-polipo/luasrc/model/cbi/polipo.lua
32
5755
-- Copyright 2008 Aleksandar Krsteski <alekrsteski@gmail.com> -- Licensed to the public under the Apache License 2.0. m = Map("polipo", translate("Polipo"), translate("Polipo is a small and fast caching web proxy.")) -- General section s = m:section(NamedSection, "general", "polipo", translate("Proxy")) s:tab("gene...
apache-2.0
Mleaf/mleaf_luci
modules/base/luasrc/model/network.lua
47
33988
--[[ LuCI - Network model Copyright 2009-2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by app...
apache-2.0
kuoruan/luci
protocols/luci-proto-ppp/luasrc/model/network/proto_ppp.lua
4
2167
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local netmod = luci.model.network local _, p for _, p in ipairs({"ppp", "pptp", "pppoe", "pppoa", "l2tp", "pppossh"}) do local proto = netmod:register_protocol(p) function proto.get_i18n(self) if p == "pp...
apache-2.0
Kthulupwns/darkstar
scripts/zones/Quicksand_Caves/npcs/_5sc.lua
19
1275
----------------------------------- -- Area: Quicksand Caves -- NPC: Ornate Door -- Door blocked by Weight system -- @pos -410 0 662 208 ----------------------------------- package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Quicksand_Cave...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Ship_bound_for_Mhaura/npcs/Lokhong.lua
17
1223
----------------------------------- -- Area: Ship bound for Mhaura -- NPC: Lokhong -- Type: Guild Merchant: Fishing Guild -- @pos 1.841 -2.101 -9.000 221 ----------------------------------- package.loaded["scripts/zones/Ship_bound_for_Mhaura/TextIDs"] = nil; ----------------------------------- require("scri...
gpl-3.0
scottcs/wyx
wyx/kit/Rect.lua
1
2719
local Class = require 'lib.hump.class' local math_floor, math_ceil = math.floor, math.ceil local round = function(x) return math_floor(x + 0.5) end local format = string.format -- Rect -- provides position and size of a rectangle -- Note: coordinates are not floored or rounded and may be floats local Rect = Class{nam...
mit
Kthulupwns/darkstar
scripts/zones/Port_Jeuno/npcs/Jaipal.lua
12
1269
----------------------------------- -- Area: Port Jeuno -- NPC: Jaipal -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; require("scripts/zones/Port_Jeuno/TextIDs"); ----------------------------------- -- onTrade Action --------------------...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Port_Jeuno/npcs/Narsha.lua
28
1796
----------------------------------- -- Area: Port Jeuno -- NPC: Narsha -- Type: Chocobo Renter ----------------------------------- require("scripts/globals/chocobo"); require("scripts/globals/keyitems"); require("scripts/globals/settings"); require("scripts/globals/status"); ------------------------------...
gpl-3.0
AGTMADCAT/naev
dat/events/tutorial/tutorial.lua
11
3115
-- Master tutorial script. -- This script allows the player to choose a tutorial module to run, or return to the main menu. -- localization stuff, translators would work here lang = naev.lang() if lang == "es" then else -- default english menutitle = "Tutorial Menu" menutext = "Welcome to the Naev tutorial men...
gpl-3.0
DonJuanito99/ESP8266
MeteoESP/src/startup.lua
1
4093
-- Adapted from user "draco"'s source (http://www.esp8266.com/viewtopic.php?p=16176) cC = 0 nf = "cfg.txt" sts = { [0]="Attente", [1]="Connection", [2]="Erreur de mot de passe", [3]="AP introuvable", [4]="Echec de connection", [5]="IP recue", [255...
mit
Kthulupwns/darkstar
scripts/zones/Metalworks/npcs/Glarociquet_TK.lua
30
4750
----------------------------------- -- Area: Metalworks -- NPC: Glarociquet, T.K. -- @pos 19 -16 -28 237 -- X Grant Signet -- X Recharge Emperor Band, Empress Band, or Chariot Band -- X Accepts traded Crystals to fill up the Rank bar to open new Missions. -- X Sells items in exchange for Conquest Points -- X Start Sup...
gpl-3.0
Mleaf/mleaf_luci
applications/luci-splash/luasrc/model/cbi/splash/splash.lua
52
3212
--[[ LuCI - Lua Configuration Interface 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 ]]-- require("luci.model.uci") m = Map("luci_splash", translate...
apache-2.0
ged/mongrel2
examples/bbs/ui.lua
96
2026
local coroutine = coroutine module 'ui' local SCREENS = { ['welcome'] = [[ __ __ ____ ____ ____ ____ | \/ |___ \| __ )| __ ) ___| | |\/| | __) | _ \| _ \___ \ | | | |/ __/| |_) | |_) |__) | |_| |_|_____|____/|____/____/ Welcome to the Mongrel2 BBS. ]], ['name']...
bsd-3-clause
kinzhang/cocos2d-js-v3.2
frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/SimpleAudioEngine.lua
10
7002
-------------------------------- -- @module SimpleAudioEngine -- @parent_module cc -------------------------------- -- brief Preload background music<br> -- param pszFilePath The path of the background music file.<br> -- js preloadMusic<br> -- lua preloadMusic -- @function [parent=#SimpleAudioEngine] preloadBackgroun...
mit
drakmaniso/Flapoline
src/obstacle.lua
1
2358
Obstacle = {} Obstacle.__index = Obstacle --------------------------------------------------------------------------------------------------- function Obstacle:initialize() self.image = love.graphics.newImage("data/obstacle.png") self.currentNumber = 0 end -------------------------------------------------...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Metalworks/npcs/Lexun-Marixun_WW.lua
30
4752
----------------------------------- -- Area: Metalworks -- NPC: Lexun-Maxirun, W.W. -- @pos 28 -16 28 237 -- X Grant Signet -- X Recharge Emperor Band, Empress Band, or Chariot Band -- X Accepts traded Crystals to fill up the Rank bar to open new Missions. -- X Sells items in exchange for Conquest Points -- X Start Su...
gpl-3.0
Kthulupwns/darkstar
scripts/globals/items/garlic_cracker_+1.lua
35
1345
----------------------------------------- -- ID: 4280 -- Item: garlic_cracker_+1 -- Food Effect: 5Min, All Races ----------------------------------------- -- Magic Regen While Healing 8 -- Undead Killer 5 -- Blind Resist 5 ----------------------------------------- require("scripts/globals/status"); ------...
gpl-3.0
punisherbot/punisherbot
plugins/btc.lua
289
1375
-- See https://bitcoinaverage.com/api local function getBTCX(amount,currency) local base_url = 'https://api.bitcoinaverage.com/ticker/global/' -- Do request on bitcoinaverage, the final / is critical! local res,code = https.request(base_url..currency.."/") if code ~= 200 then return nil end local data = j...
gpl-2.0
Velkon/DarkRP
gamemode/modules/base/sv_purchasing.lua
5
13902
function DarkRP.hooks:canBuyPistol(ply, shipment) local price = shipment.getPrice and shipment.getPrice(ply, shipment.pricesep) or shipment.pricesep or 0 if not GAMEMODE:CustomObjFitsMap(shipment) then return false, false, "Custom object does not fit map" end if ply:isArrested() then r...
mit
kuoruan/luci
protocols/luci-proto-relay/luasrc/model/cbi/admin_network/proto_relay.lua
70
1945
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local ipaddr, network local forward_bcast, forward_dhcp, gateway, expiry, retry, table ipaddr = section:taboption("general", Value, "ipaddr", translate("Local IPv4 address"), t...
apache-2.0
mlody1039/ModernOts
data/globalevents/scripts/init.lua
2
3385
local config = { creationTime = 7 * 86400, checkTime = 7 * 86400, viceCount = 4, memberCount = 10 } function onStartup() local data, time, result = {}, os.time(), db.getResult("SELECT `id`, `ownerid`, `creationdata`, `checkdata` FROM `guilds` WHERE `world_id` = " .. getConfigValue('worldId') .. ";") if(result:ge...
gpl-3.0
AttacqueSuperior/Engine
mods/d2k/maps/ordos-03a/ordos03a-AI.lua
4
1862
--[[ Copyright 2007-2021 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you 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 vers...
gpl-3.0
rsergiu2003/Jump-Engine
Monster.lua
1
1674
--[[ Created by Rosu Sergiu on 27/Jun/2011 Jump Engine it's a game engine for createing jumping games for mobile devices. This file is part of Jump Engine. Jump Engine 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...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Dynamis-Buburimu/mobs/Apocalyptic_Beast.lua
17
1492
----------------------------------- -- Area: Dynamis Buburimu -- NPC: Apocalyptic_Beast ----------------------------------- package.loaded["scripts/zones/Dynamis-Buburimu/TextIDs"] = nil; ----------------------------------- require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Buburimu/TextIDs"...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Toraimarai_Canal/npcs/qm10.lua
23
1509
----------------------------------- -- Area: Toraimarai Canal -- NPC: ??? -- Involved In Quest: Wild Card -- @zone 169 // not accurate -- @pos 220 16 -50 // not accurate ----------------------------------- package.loaded["scripts/zones/Toraimarai_Canal/TextIDs"] = nil; ----------------------------------- require("scr...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Mathlouq.lua
37
1029
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Mathlouq -- Type: Standard NPC -- @pos -92.892 -7 129.277 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_White...
gpl-3.0
letoram/awb
awbwnd_modelview.lua
1
5713
-- -- AWB 3D Model Viewer -- local shader_seqn = 1; local function set_shader(modelv) local lshdr = load_shader("shaders/dir_light.vShader", "shaders/dir_light.fShader", "media3d_" .. tostring(shader_seqn)); shader_seqn = shader_seqn + 1; shader_uniform(lshdr, "map_diffuse", "i", PERSIST, 0); shader_uniform(lsh...
gpl-3.0
FPtje/DarkRP
gamemode/modules/base/cl_fonts.lua
1
3497
--[[--------------------------------------------------------------------------- The fonts that DarkRP uses ---------------------------------------------------------------------------]] local function loadFonts() surface.CreateFont("DarkRPHUD1", { size = 20, weight = 600, antialias = true, ...
mit
StepDevelop/Minetest_Vanilla_Decor
vanilla_decor/tables_craft.lua
2
2007
--[[ Copyright (C) 2016 Stefano <StepDevelop> Peris <stefanop.dev@gmail.com> vanilla_decor 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 ver...
gpl-3.0
jwyang/joint-unsupervised-learning
models_def/MNIST-test.lua
2
1141
require 'nn' require 'cunn' local backend_name = 'nn' local backend if backend_name == 'cudnn' then require 'cudnn' backend = cudnn else backend = nn end local model = nn.Sequential() -- building block local function ConvBNReLU(module, nInputPlane, nOutputPlane) module:add(backend.SpatialConvolution(nInpu...
mit
xvaara/kong
kong/core/resolver.lua
2
9043
local url = require "socket.url" local cache = require "kong.tools.database_cache" local stringy = require "stringy" local constants = require "kong.constants" local responses = require "kong.tools.responses" local table_insert = table.insert local string_match = string.match local string_find = string.find local stri...
apache-2.0
Mleaf/mleaf_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 ...
apache-2.0
AttacqueSuperior/Engine
mods/ra/maps/allies-04/allies04.lua
2
4365
--[[ Copyright 2007-2021 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you 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 vers...
gpl-3.0
naader1380/n2
plugins/spanish_lang.lua
5
18683
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
jamesbrink/sysdig
userspace/sysdig/chisels/v_directories.lua
3
3159
--[[ Copyright (C) 2013-2015 Draios inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without...
gpl-2.0
Kthulupwns/darkstar
scripts/globals/items/cream_puff.lua
35
1313
----------------------------------------- -- ID: 5718 -- Item: Cream Puff -- Food Effect: 30 mintutes, All Races ----------------------------------------- -- Intelligence +7 -- HP -10 -- Resist Slow ----------------------------------------- require("scripts/globals/status"); ------------------------------...
gpl-3.0
Nefarix/Nefarix.github.io
RMTCore/Encounters/RMT/Robomination.lua
1
11611
---------------------------------------------------------------------------------------------------- -- Robomination encounter script -- -- Copyright (C) 2016 Joshua Shaffer ---------------------------------------------------------------------------------------------------- local core = Apollo.GetPackage("Gemini:Addon-...
agpl-3.0
siilaas/TiGER
plugins/mute-all.lua
6
1413
-- by @Blackwolf_admin -- channel : @open_sources do local function pre_process(msg) local hash = 'muteall:'..msg.to.id if redis:get(hash) and msg.to.type == 'channel' and not is_momod(msg) then delete_msg(msg.id, ok_cb, false) end return msg end local function run(msg, matches) if matches[1] == ...
gpl-2.0
Kthulupwns/darkstar
scripts/zones/Northern_San_dOria/npcs/Pikiki.lua
36
1425
----------------------------------- -- Area: Northern San d'Oria -- NPC: Pikiki -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quests")...
gpl-3.0
pinne/cards
lunit-0.5/lunit-tests.lua
9
34836
--[[-------------------------------------------------------------------------- This file is part of lunit 0.5. For Details about lunit look at: http://www.mroth.net/lunit/ Author: Michael Roth <mroth@nessie.de> Copyright (c) 2004, 2006-2009 Michael Roth <mroth@nessie.de> Permission is hereby g...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Quicksand_Caves/npcs/_5s7.lua
19
1272
----------------------------------- -- Area: Quicksand Caves -- NPC: Ornate Door -- Door blocked by Weight system -- @pos -259 0 745 208 ----------------------------------- package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Quicksand_Cave...
gpl-3.0
telbbs/luci-0.12
applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo_mini.lua
141
1054
--[[ netdiscover_devinfo - SIP Device Information (c) 2009 Daniel Dickinson 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$ ]]-- require("luci.i1...
apache-2.0
Kthulupwns/darkstar
scripts/globals/items/greedie.lua
17
1316
----------------------------------------- -- ID: 4500 -- Item: greedie -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 1 -- Mind -3 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck...
gpl-3.0
redxdev/xtlbot
src/stringutils.lua
1
2763
local find = string.find local insert = table.insert local sub = string.sub function string.explode(div, str) if (div=='') then return false end local pos,arr = 0,{} -- for each divider found for st,sp in function() return find(str,div,pos,true) end do insert(arr,sub(str,pos,st-1)) -- Attach ch...
mit
Kthulupwns/darkstar
scripts/zones/Northern_San_dOria/npcs/Lucretia.lua
17
1230
----------------------------------- -- Area: Northern San d'Oria -- NPC: Lucretia -- Guild Merchant NPC: Blacksmithing Guild -- @pos -193.729 3.999 159.412 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Windurst_Walls/npcs/Burute-Sorute.lua
16
4636
----------------------------------- -- Area: Windurst Walls -- NPC: Burute-Sorute -- Type: Title Change NPC -- @zone: 239 -- @pos 0.080 -10.765 5.394 239 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- require("scripts/globals/titles"); local title2 = { NEW_ADVEN...
gpl-3.0
Death15/NormalSwatch
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