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 |
|---|---|---|---|---|---|
FFXIOrgins/FFXIOrgins | scripts/globals/excavation.lua | 4 | 4823 | -------------------------------------------------
-- Author: Ezekyel
-- Excavation functions
-- Info from:
-- http://wiki.ffxiclopedia.org/wiki/Excavation
-------------------------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/quests");
require("scripts/globals/se... | gpl-3.0 |
daofeng2015/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/ipkg.lua | 48 | 1667 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local ipkgfile = "/etc/opkg.conf"
local distfeeds = "/etc/opkg/distfeeds.conf"
local customfeeds = "/etc/opkg/customfeeds.conf"
f = SimpleForm("ipkgconf"... | apache-2.0 |
SegFault22/res | core/tool.lua | 1 | 2370 | res_tool_types = {}
function res.add_tool_type(id,name)
table.insert(res_tool_types,{id,name})
res.log("verbose","Added tool class \""..name.."\" with id: "..id)
end
function res.add_tool(type,headmaterial,handlematerial,maxdroplevel,groupcaps,damagegroups)
local toolid = "res:"..type.."_"..headmaterial.."_h"..ha... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/mobskills/Seismostomp.lua | 10 | 1155 | ---------------------------------------------
-- Seismostomp
--
-- Description: Damage varies with TP. Additional effect: "Stun."
-- Type: Physical (Blunt)
--
--
---------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertp... | gpl-3.0 |
TW1STaL1CKY/pac3 | lua/pac3/editor/client/translations/french.lua | 2 | 8450 | return {
["trail"] = "trainee",
["texture filter"] = "filtre de texture",
["show only with active weapon"] = "montrer seulement avec l'arme activee",
["parent velocity length"] = "vitesse du parent",
["operator"] = "operateur",
["equal"] = "egal a",
["owner velocity right"] = "vitesse droite du proprietaire",
["owner v... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/PsoXja/npcs/_094.lua | 9 | 1610 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _094 (Stone Gate)
-- Notes: Spawns Gargoyle when triggered
-- @pos 310.000 -1.925 -101.600 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/PsoX... | gpl-3.0 |
sjznxd/luci-0.11-aa | applications/luci-statistics/luasrc/model/cbi/luci_statistics/unixsock.lua | 11 | 1500 | --[[
Luci configuration model for statistics - collectd unixsock 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 Lice... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Windurst_Waters_[S]/npcs/Amfafa.lua | 38 | 1044 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Amfafa
-- Type: Standard NPC
-- @zone: 94
-- @pos -24.938 -2 -185.729
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-----... | gpl-3.0 |
Laendasill/waifu2x | web.lua | 10 | 6537 | _G.TURBO_SSL = true
local turbo = require 'turbo'
local uuid = require 'uuid'
local ffi = require 'ffi'
local md5 = require 'md5'
require 'pl'
require './lib/portable'
require './lib/LeakyReLU'
local cmd = torch.CmdLine()
cmd:text()
cmd:text("waifu2x-api")
cmd:text("Options:")
cmd:option("-port", 8812, 'listen port')
... | mit |
FFXIOrgins/FFXIOrgins | scripts/globals/abilities/curing_waltz_v.lua | 5 | 1681 | -----------------------------------
-- Ability: Curing Waltz V
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- OnUseAbility
-----------------------------------
function OnAbilityCheck(player,target,ability)
if (ta... | gpl-3.0 |
mihacooper/luacc | src/luacc.lua | 1 | 3218 | #!/usr/bin/env lua
package.path = 'argparse/src/?.lua;templates/lib/resty/?.lua;' .. package.path
argparse = require 'argparse'
helpers = require 'helpers'
templates = require 'template'
local parser = argparse("luacc", "Lua Code Combine tool")
parser:argument("main", "Main file of project")
parser:argument("modules... | mit |
FFXIOrgins/FFXIOrgins | scripts/globals/abilities/gallants_roll.lua | 6 | 1410 | -----------------------------------
-- Ability: Choral Roll
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- OnUseAbility
-----------------------------------
function OnAbilityCheck(player,target,ability)
lo... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/keen_zaghnal.lua | 37 | 1120 | -----------------------------------------
-- ID: 18067
-- Equip: Keen Zaghnal
-- Enchantment: Accuracy +3
-- Enchantment will wear off if weapon is unequipped.
-- Effect lasts for 30 minutes
-----------------------------------------
require("scripts/globals/status");
--------------------------------------... | gpl-3.0 |
subzrk/BadRotations | System/Libs/DiesalGUI-1.0/Objects/ScrollingEditBox.lua | 6 | 10628 | -- $Id: ScrollingEditBox.lua 52 2014-04-08 11:52:40Z diesal@reece-tech.com $
local DiesalGUI = LibStub('DiesalGUI-1.0')
-- ~~| Libraries |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
local DiesalTools = LibStub('DiesalTool... | gpl-3.0 |
maximilianofaccone/puppy-siberian | root/.Conky/.lua.lua | 2 | 6118 | --[[
Ring Meters by londonali1010 (2009)
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 145 uses a d... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Bastok_Mines/npcs/Roh_Latteh.lua | 34 | 2602 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Roh Latteh
-- Involved in Quest: Mom, The Adventurer?
-- Finishes Quest: The Signpost Marks the Spot
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
Messael/Firewolf | src/1.58/client.lua | 4 | 77100 |
--
-- Firewolf
-- Made by GravityScore and 1lann
--
-- 1.58 Wrapper
-- Rednet
local rednet = {}
rednet.CHANNEL_BROADCAST = 65535
rednet.CHANNEL_REPEAT = 65533
local tReceivedMessages = {}
local tReceivedMessageTimeouts = {}
local tHostnames = {}
function rednet.open( sModem )
if type( sModem ) ~= "stri... | mit |
devilrap978/devil_rap65 | plugins/en-badword.lua | 1 | 3111 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄▀... | gpl-2.0 |
lytedev/worldspark | lib/hooks/init.lua | 1 | 1197 | --[[
File: src/hooks/init.lua
Author: Daniel "lytedev" Flanagan
Website: http://dmf.me
A manager for scripting hooks.
]]--
local function __NULL__() end
local all_callbacks = { 'update', 'draw', 'focus', 'keypressed', 'textinput', 'keyreleased', 'mousepressed', 'mousereleased', 'joystickpressed', 'j... | apache-2.0 |
mpeterv/luassert | src/formatters/init.lua | 1 | 4178 | -- module will not return anything, only register formatters with the main assert engine
local assert = require('luassert.assert')
local function fmt_string(arg)
if type(arg) == "string" then
return string.format("(string) '%s'", arg)
end
end
-- A version of tostring which formats numbers more precisely.
loca... | mit |
groupforspeed/TeleSniper | bot/TeleSniperbot.lua | 1 | 12100 | 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 = '2'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
return... | gpl-2.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/items/furniture_lamp_spot.lua | 1 | 2114 |
local ITEM = {};
ITEM.ID = 61;
ITEM.Reference = "furniture_lamp_spot";
ITEM.Name = "Spotlight";
ITEM.Description = "Excelent for lighting things up during the night.\n\nLeft click to spawn as prop.\nUse + ALT to pickup after dropped as prop.";
ITEM.Weight = 10;
ITEM.Cost = 500;
ITEM.... | mit |
joshimoo/Algorithm-Implementations | Iterative_Deepening_Depth_First_Search/Lua/Yonaba/handlers/linear_handler.lua | 182 | 1721 | -- A linear boundless 1D space map handler
-- This handler is devised for 1-directional continuous space, where
-- nodes are represented with consecutive integer values: 0, 1, 2, etc.
-- Similar to a range (interval) with no bounds.
-- i.e., the path from 5 to 0 would be 5, 4, 3, 2, 1, 0.
local PATH = (...):gsub('han... | mit |
teahouse/FWServer | skynet/lualib/dns.lua | 5 | 8970 | --[[
lua dns resolver library
See https://github.com/xjdrew/levent/blob/master/levent/dns.lua for more detail
-- resource record type:
-- TYPE value and meaning
-- A 1 a host address
-- NS 2 an authoritative name server
-- MD 3 a mail destination (Obsolete - use MX... | mit |
punisherbot/test | plugins/trivia.lua | 647 | 6784 | do
-- Trivia plugin developed by Guy Spronck
-- Returns the chat hash for storing information
local function get_hash(msg)
local hash = nil
if msg.to.type == 'chat' then
hash = 'chat:'..msg.to.id..':trivia'
end
if msg.to.type == 'user' then
hash = 'user:'..msg.from.id..':trivia'
end
return hash
en... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Nashmau/npcs/Poporoon.lua | 34 | 1242 | -----------------------------------
-- Area: Nashmau
-- NPC: Poporoon
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/shop");
----------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Temenos/mobs/Skadi.lua | 17 | 1191 | -----------------------------------
-- Area: Temenos N T
-- NPC: Skadi
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-------------------------------... | gpl-3.0 |
tullamods/OmniCC | OmniCC_Config/preview.lua | 1 | 3790 | local AddonName, Addon = ...
local OmniCC = _G.OmniCC
local L = LibStub("AceLocale-3.0"):GetLocale("OmniCC")
local DEFAULT_DURATION = 30
local function getRandomIcon()
local icons = {}
for i = 1, GetNumSpellTabs() do
local offset, numSpells = select(3, GetSpellTabInfo(i))
local tabEnd = offset... | mit |
FFXIOrgins/FFXIOrgins | scripts/globals/items/plate_of_ic_pilav_+1.lua | 35 | 1945 | -----------------------------------------
-- ID: 5585
-- Item: plate_of_ic_pilav_+1
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Health % 14
-- Health Cap 65
-- Strength 4
-- Vitality -1
-- Intelligence -1
-- Health Regen While Healing 1
-- Attack % 22
-- Attack Cap 65
-- ... | gpl-3.0 |
chungy/RetroArch | libretro-db/dat_converter.lua | 28 | 6289 | local dat_obj = {}
local match_key = nil
local function dat_lexer(f, fname)
local line, err = f:read("*l")
local location = {line_no = 1, column = 1, fname = fname}
return function()
local tok = nil
while not tok do
if not line then
return nil
end
... | gpl-3.0 |
punisherbot/test | plugins/service_entergroup.lua | 279 | 2147 | local add_user_cfg = load_from_file('data/add_user_cfg.lua')
local function template_add_user(base, to_username, from_username, chat_name, chat_id)
base = base or ''
to_username = '@' .. (to_username or '')
from_username = '@' .. (from_username or '')
chat_name = chat_name or ''
chat_id = "chat#id" .. (... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Sacrarium/npcs/qm2.lua | 9 | 1735 | -----------------------------------
-- Area: Sacrarium
-- NPC: qm2 (???)
-- Notes: Used to spawn Old Prof. Mariselle
-- @pos 102.669 -3.111 127.279 28
-----------------------------------
package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Sacr... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/tachi_gekko.lua | 6 | 1499 | -----------------------------------
-- Tachi Gekko
-- Great Katana weapon skill
-- Skill Level: 225
-- Silences target. Damage varies with TP.
-- Silence effect duration is 60 seconds when unresisted.
-- Will stack with Sneak Attack.
-- Tachi: Gekko has a high attack bonus of +100%. [1]
-- Aligned with ... | gpl-3.0 |
UserXYZ/nodemcu-httpserver | httpserver.lua | 1 | 3807 | -- httpserver
-- Author: Marcos Kirsch
-- Starts web server in the specified port.
return function (port)
local s = net.createServer(net.TCP, 30)
-- 30 seconds client timeout
s:listen(
port,
function (connection)
-- This variable holds the thread used for sending data back to the user.
... | gpl-2.0 |
daofeng2015/luci | modules/luci-mod-freifunk/luasrc/controller/freifunk/freifunk.lua | 59 | 5943 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.freifunk.freifunk", package.seeall)
function index()
local uci = require "luci.model.uci".cursor()
local page
-- Frontend
page = node()
page.lock = true
page.target ... | apache-2.0 |
suchipi/pac3 | lua/pac3/core/client/parts/clip.lua | 1 | 1054 | local PART = {}
PART.ClassName = "clip"
function PART:OnParent(part)
part:AddModifier(self)
-- this is only really for halos..
if IsEntity(part.Entity) and part.Entity:IsValid() then
function part.Entity.pacDrawModel(ent)
self:PreOnDraw()
ent:DrawModel()
self:PostOnDraw()
end
end
end... | gpl-3.0 |
daofeng2015/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-res.lua | 68 | 2884 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
cbimap = Map("asterisk", "asterisk", "")
module = cbimap:section(TypedSection, "module", "Modules", "")
module.anonymous = true
res_config_mysql = module:opt... | apache-2.0 |
TW1STaL1CKY/pac3 | lua/pac3/editor/client/render_scores.lua | 1 | 1779 | local enable = CreateClientConVar("pac_show_profiling_info", 1, true, true)
local font = "pac_render_score"
surface.CreateFont(font, {font = "Arial", shadow = true, size = 14, antialias = false})
pace.RenderTimes = {} -- render times in seconds
function pace.GetProfilingData(ent)
local profile_data = pac.profile_i... | gpl-3.0 |
togolwb/skynet | lualib/skynet/debug.lua | 6 | 1505 | local io = io
local table = table
local debug = debug
return function (skynet, export)
local internal_info_func
function skynet.info_func(func)
internal_info_func = func
end
local dbgcmd = {}
function dbgcmd.MEM()
local kb, bytes = collectgarbage "count"
skynet.ret(skynet.pack(kb,bytes))
end
function dbgcmd.GC... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Chamber_of_Oracles/npcs/Pedestal_of_Wind.lua | 7 | 2260 | -----------------------------------
-- Area: Chamber of Oracles
-- NPC: Pedestal of Wind
-- 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 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/trail_cookie.lua | 36 | 1258 | -----------------------------------------
-- ID: 5940
-- Item: Trail Cookie
-- Food Effect: 5Min, All Races
-----------------------------------------
-- MP Healing 5
-- Aquan Killer 12
-- Sleep Resist 10
-----------------------------------------
require("scripts/globals/status");
-------------------------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Beaucedine_Glacier_[S]/npcs/Watchful_Pixie.lua | 38 | 1058 | -----------------------------------
-- Area: Beaucedine Glacier (S)
-- NPC: Watchful Pixie
-- Type: Quest NPC
-- @zone: 136
-- @pos -56.000 -1.3 -392.000
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier_[S]/TextIDs"... | gpl-3.0 |
TW1STaL1CKY/pac3 | lua/pac3/editor/client/panels/scrollpanel_horizontal.lua | 2 | 8484 | do
local PANEL = vgui.Register("pac_horizontal_scrollbar", {}, "Panel")
AccessorFunc( PANEL, "m_HideButtons", "HideButtons" )
function PANEL:Init()
self.Offset = 0
self.Scroll = 0
self.CanvasSize = 1
self.BarSize = 1
self.btnLeft = vgui.Create( "DButton", self )
self.btnLeft:SetText( "" )
self.btnL... | gpl-3.0 |
suchipi/pac3 | lua/pac3/core/client/drawing.lua | 1 | 13235 | jit.on(true, true)
local FrameNumber = FrameNumber
local RealTime = RealTime
local GetConVarNumber = GetConVarNumber
local pac = pac
pac.drawn_entities = pac.drawn_entities or {}
local pairs = pairs
pac.LocalPlayer = LocalPlayer()
pac.RealTime = 0
pac.FrameNumber = 0
local sort = function(a, b)
if a... | gpl-3.0 |
satreix/awesome | vicious/widgets/cpu.lua | 16 | 2057 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2011, Adrian C. <anrxc@sysphere.org>
-- * (c) 2009, Lucas de Vries <lucas@glacicle.com>
-- * (c) 2011, Jörg Thalheim <jthalheim@gmail.com>
---------------------------------------------------
-- {{{ Grab ... | mit |
m2mselect/owrt | feeds/luci/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_hnet.lua | 68 | 1416 | -- Copyright 2013 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local mode = section:taboption("general", ListValue, "mode", translate("Category"))
mode:value("auto", translate("Automatic"))
mode:value("external", translate("External"))
mode:va... | gpl-2.0 |
daofeng2015/luci | protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_hnet.lua | 68 | 1416 | -- Copyright 2013 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local mode = section:taboption("general", ListValue, "mode", translate("Category"))
mode:value("auto", translate("Automatic"))
mode:value("external", translate("External"))
mode:va... | apache-2.0 |
Aethaeryn/wesnoth-umc | Aethaeryns_Mod/lua/menu.lua | 1 | 43761 | #define MOD_MENU
<<
-- This file is built on top of the gui2.lua wrapper over the game's
-- GUI2 API. The menus here use the other lua files in lua/ to do
-- actions in the game engine. By convention, menu_ functions are
-- triggered by right click menu items and submenu_ functions are
-- triggered by other menu_ funct... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/abilities/pets/aero_iv.lua | 6 | 1159 | ---------------------------------------------------
-- Aero 4
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
require("/scripts/globals/magic");
------------------------------------------... | gpl-3.0 |
sjznxd/lc-20130127 | applications/luci-qos/luasrc/model/cbi/qos/qos.lua | 28 | 2629 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
loc... | apache-2.0 |
ho3einkj/boti | plugins/invite.lua | 84 | 2540 | --[[
Invite other user to the chat group.
Use !invite ********* (where ********* is id_number) to invite a user by id_number.
This is the most reliable method.
Use !invite @username to invite a user by @username.
Less reliable. Some users don't have @username.
Use !invite Type print_name Here to invite a user by ... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Horlais_Peak/bcnms/double_dragonian.lua | 6 | 1770 | -----------------------------------
-- Area: Horlias peak
-- Name: double_dragonian
-- KSNM30
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/zones/... | gpl-3.0 |
zhouxiaoxiaoxujian/skynet | examples/agent.lua | 20 | 2212 | local skynet = require "skynet"
local socket = require "skynet.socket"
local sproto = require "sproto"
local sprotoloader = require "sprotoloader"
local WATCHDOG
local host
local send_request
local CMD = {}
local REQUEST = {}
local client_fd
function REQUEST:get()
print("get", self.what)
local r = skynet.call("SIM... | mit |
FFXIOrgins/FFXIOrgins | scripts/globals/mobskills/Chains_of_Cowardice.lua | 5 | 1184 | ---------------------------------------------
-- Chains of Apathy
--
---------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
require("/scripts/globals/keyitems");
require("/scripts/zones/Empyreal_Paradox/TextIDs... | gpl-3.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/mesecons/mesecons_button/init.lua | 12 | 2819 | -- WALL BUTTON
-- A button that when pressed emits power for 1 second
-- and then turns off again
mesecon.button_turnoff = function (pos)
local node = minetest.get_node(pos)
if node.name=="mesecons_button:button_on" then --has not been dug
minetest.swap_node(pos, {name = "mesecons_button:button_off", param2=node.p... | unlicense |
sjznxd/luci-0.11-aa | libs/lucid-http/luasrc/lucid/http/handler/file.lua | 44 | 7477 | --[[
HTTP server implementation for LuCI - file handler
(c) 2008 Steven Barth <steven@midlink.org>
(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 cop... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Port_Windurst/npcs/Kameel.lua | 7 | 1043 | -----------------------------------
-- Area: Port Windurst
-- NPC: Kameel
-- Type: Adventurer's Assistant
-- @zone: 240
-- @pos 220.994 -6.834 89.828
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Sacrarium/npcs/qm4.lua | 9 | 1734 | -----------------------------------
-- Area: Sacrarium
-- NPC: qm4 (???)
-- Notes: Used to spawn Old Prof. Mariselle
-- @pos 22.669 -3.111 127.279 28
-----------------------------------
package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Sacra... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Bastok_Markets/npcs/Aquillina.lua | 36 | 2383 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Aquillina
-- Starts & Finishes Repeatable Quest: A Flash In The Pan
-- Note: Reapeatable every 15 minutes.
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
r... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/rolanberry_pie.lua | 35 | 1274 | -----------------------------------------
-- ID: 4414
-- Item: rolanberry_pie
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Magic 50
-- Agility -1
-- Intelligence 2
-----------------------------------------
require("scripts/globals/status");
--------------------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Western_Adoulin/npcs/HomePoint#1.lua | 3 | 1665 | -----------------------------------
-- Area: Western_Adoulin
-- NPC: HomePoint#1
-- @pos
-----------------------------------
package.loaded["scripts/zones/Western_Adoulin/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Western_Adoulin/TextIDs"... | gpl-3.0 |
marcovr/T-Bot | modules/disabled/shell.lua | 1 | 4072 | -- Interactive shell module
-- Kann noch ne Weile dauern bis das fertig is
local ScreenName = "shell" -- Name des Screens
local ScreenLogfile = "/home/pi/telegram/screenlog.0" -- Pfad des Screenlogs
local NoScreenErrMsg = "No Sockets found in /var/run/screen/S-www-data." -- Error welcher kommt, wenn g... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Nyzul_Isle/Zone.lua | 34 | 1150 | -----------------------------------
--
-- Zone: Nyzul_Isle
--
-----------------------------------
package.loaded["scripts/zones/Nyzul_Isle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Nyzul_Isle/TextIDs");
-------------------------------... | gpl-3.0 |
nehz/busted | busted/languages/ja.lua | 15 | 1464 | local s = require('say')
s:set_namespace('ja')
-- 'Pending: test.lua @ 12 \n description
s:set('output.pending', '保留')
s:set('output.failure', '失敗')
s:set('output.success', '成功')
s:set('output.pending_plural', '保留')
s:set('output.failure_plural', '失敗')
s:set('output.success_plural', '成功')
s:set('output.pending_zero... | mit |
FFXIOrgins/FFXIOrgins | scripts/globals/items/serving_of_royal_jelly.lua | 36 | 1106 | -----------------------------------------
-- ID: 4508
-- Item: Serving of Royal Jelly
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- MP Recovery while healing 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIt... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Port_San_dOria/npcs/Phersula.lua | 36 | 1376 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Phersula
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Port_San_dOria/Text... | gpl-3.0 |
brianbennett/fpga_nes | sw/scripts/cpu_jmp.lua | 3 | 3921 | ----------------------------------------------------------------------------------------------------
-- Script: cpu_jmp.lua
-- Description: CPU test. Directed test for JMP instructions.
----------------------------------------------------------------------------------------------------
dofile("../scripts/inc/nesd... | bsd-2-clause |
msburgess3200/PERP | gamemodes/perp/gamemode/vgui/inventory.lua | 1 | 3225 |
local PANEL = {};
function PANEL:Init ( )
GAMEMODE.InventoryBlocks = {};
GAMEMODE.InventoryBlocks_Linear = {};
for x = 1, INVENTORY_WIDTH do
GAMEMODE.InventoryBlocks[x] = {};
for y = 1, INVENTORY_HEIGHT do
GAMEMODE.InventoryBlocks[x][y] = vgui.Create("perp2_inventory_block", self);
GAMEMODE.Inventor... | mit |
m2mselect/owrt | feeds/luci/modules/luci-base/luasrc/model/ipkg.lua | 10 | 3842 | -- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local os = require "os"
local io = require "io"
local fs = require "nixio.fs"
local util = require "luci.util"
local type = type
local pairs = pai... | gpl-2.0 |
daofeng2015/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk.lua | 68 | 5120 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
cbimap = Map("asterisk", "asterisk", "")
asterisk = cbimap:section(TypedSection, "asterisk", "Asterisk General Options", "")
asterisk.anonymous = true
agidir... | apache-2.0 |
devilrap978/devil_rap65 | plugins/ar-robot.lua | 5 | 2582 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ تشغيل او اطفاء البوت في دردشة مجدد ▀▄ ▄▀
▀▄▀▀... | gpl-2.0 |
m2mselect/owrt | feeds/luci/applications/luci-app-diag-devinfo/luasrc/controller/luci_diag/luci_diag_devinfo.lua | 61 | 1933 | -- Copyright 2009 Daniel Dickinson
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.luci_diag.luci_diag_devinfo", package.seeall)
function index()
local e
e = entry({"admin", "voice", "diag", "phones"}, arcombine(cbi("luci_diag/smap_devinfo"), cbi("luci_diag/smap_devinfo_config")... | gpl-2.0 |
m2mselect/owrt | feeds/luci/libs/luci-lib-json/luasrc/json.lua | 17 | 11000 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local nixio = require "nixio"
local util = require "luci.util"
local table = require "table"
local string = require "string"
local coroutine = ... | gpl-2.0 |
hb9cwp/snabbswitch | lib/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 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/windurst_taco.lua | 35 | 1560 | -----------------------------------------
-- ID: 5172
-- Item: windurst_taco
-- Food Effect: 30Min, All Races
-----------------------------------------
-- MP 20
-- Vitality -1
-- Agility 5
-- MP Recovered While Healing 1
-- Ranged Accuracy % 8 (cap 10)
-----------------------------------------
require("scr... | gpl-3.0 |
daofeng2015/luci | modules/luci-mod-admin-full/luasrc/controller/admin/network.lua | 7 | 10712 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2011-2015 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.admin.network", package.seeall)
function index()
local uci = require("luci.model.uci").cursor()
local page
page = node("admin... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Garlaige_Citadel/Zone.lua | 2 | 3531 | -----------------------------------
--
-- Zone: Garlaige_Citadel (200)
--
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Garlaige_Citadel/TextIDs");
banishing... | gpl-3.0 |
zhouxiaoxiaoxujian/skynet | test/testcoroutine.lua | 22 | 1221 | local skynet = require "skynet"
-- You should use skynet.coroutine instead of origin coroutine in skynet
local coroutine = require "skynet.coroutine"
local profile = require "skynet.profile"
local function status(co)
repeat
local status = coroutine.status(co)
print("STATUS", status)
skynet.sleep(100)
until sta... | mit |
FFXIOrgins/FFXIOrgins | scripts/globals/mobskills/Acrid_Stream.lua | 6 | 1027 | ---------------------------------------------
-- Acrid Stream
--
-- Description: Deals water damage to enemies within a fan-shaped area originating from the caster. Additional effect: Lowers target's Magic Defense.
-- Type: Magical (Water)
--
--
---------------------------------------------
require("/scripts... | gpl-3.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/maptools/aliases.lua | 11 | 5597 | --[[
Map Tools: alias definitions
Copyright (c) 2012-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
minetest.register_alias("adminpick", "maptools:pick_admin")
minetest.register_alias("adminpickaxe", "maptools:pick_admin")
minetest.register_alias("admin_pick"... | unlicense |
FFXIOrgins/FFXIOrgins | scripts/zones/Temenos/mobs/Beli.lua | 17 | 1186 | -----------------------------------
-- Area: Temenos N T
-- NPC: Beli
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
--------------------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Windurst_Waters/npcs/Jacodaut.lua | 12 | 1785 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Jacodaut
-- Type: Cooking Image Support
-- @pos -125.890 -2.999 62.499 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Windurst_Wat... | gpl-3.0 |
teahouse/FWServer | skynet/service/debug_console.lua | 4 | 8393 | local skynet = require "skynet"
local codecache = require "skynet.codecache"
local core = require "skynet.core"
local socket = require "socket"
local snax = require "snax"
local memory = require "memory"
local httpd = require "http.httpd"
local sockethelper = require "http.sockethelper"
local arg = table.pack(...)
ass... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Windurst_Walls/npcs/Shinchai-Tocchai.lua | 38 | 1051 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Shinchai-Tocchai
-- Type: Moghouse Renter
-- @zone: 239
-- @pos -220.551 -0.001 -116.916
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/items/furniture_wood_empty_bookcase.lua | 1 | 1240 |
local ITEM = {};
ITEM.ID = 72;
ITEM.Reference = "furniture_wood_empty_bookcase";
ITEM.Name = "Chest of Drawers";
ITEM.Description = "Now you can stack your pointless, unread books with style.\n\nLeft click to spawn as prop.";
ITEM.Weight = 30;
ITEM.Cost = 300;
ITEM.MaxStack = 100... | mit |
msburgess3200/PERP | gamemodes/perp/gamemode/vehicles/ChevroletCamaro.lua | 1 | 2674 | ///////////////////////////////
// © 2009-2010 Pulsar Effect //
// All rights reserved //
///////////////////////////////
// This material may not be //
// reproduced, displayed, //
// modified or distributed //
// without the express prior //
// written permission of the //
// the copyright holder. //
... | mit |
userzimmermann/MSYS2-cmd | clink/pacman.lua | 1 | 3767 | -- CMD shell integration for MSYS2
--
-- Copyright (C) 2015-2016 Stefan Zimmermann <zimmermann.code@gmail.com>
--
-- Licensed under the Apache License, Version 2.0
new_parser = clink.arg.new_parser
-- dummy parser for disabling completion
local none = new_parser({})
-- create an override parser doing de... | apache-2.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/vehicles/Ferrari.lua | 2 | 2732 | ///////////////////////////////
// © 2009-2010 Pulsar Effect //
// All rights reserved //
///////////////////////////////
// This material may not be //
// reproduced, displayed, //
// modified or distributed //
// without the express prior //
// written permission of the //
// the copyright holder. //
... | mit |
elt11bot/seed-sup | plugins/get.lua | 8 | 1868 | local _file_values = './data/values.lua'
function read_file_values( )
local f = io.open(_file_values, "r+")
-- If file doesn't exists
if f == nil then
-- Create a new empty table
print ('Created value file '.._file_values)
serialize_to_file({}, _file_values)
else
print ('Stats loaded: '.._file_... | gpl-2.0 |
mahdikord/kd | 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 |
mehrpouya81/gamer1 | 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 |
FFXIOrgins/FFXIOrgins | scripts/globals/spells/virus.lua | 5 | 1083 | -----------------------------------------
-- Spell: Virus
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function OnMagicCastingCheck(caster,target,spell)... | gpl-3.0 |
daofeng2015/luci | build/luadoc/luadoc/taglet/standard.lua | 78 | 16474 | -------------------------------------------------------------------------------
-- @release $Id: standard.lua,v 1.39 2007/12/21 17:50:48 tomas Exp $
-------------------------------------------------------------------------------
local assert, pairs, tostring, type = assert, pairs, tostring, type
local io = require "io... | apache-2.0 |
ho3einkj/boti | 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 |
FFXIOrgins/FFXIOrgins | scripts/globals/abilities/corsairs_roll.lua | 6 | 1327 | -----------------------------------
-- Ability: Corsair's Roll
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- OnUseAbility
-----------------------------------
function OnAbilityCheck(player,target,ability)
... | gpl-3.0 |
dargosch/home_center_2_addons | Scenes/old_structure/window_lights_off.lua | 1 | 3345 | --[[
%% autostart
%% properties
54 sceneActivation
396 sceneActivation
%% globals
--]]
function timestringToTable (time)
local dateTable = os.date("*t");
-- Get an iterator that extracts date fields
local g = string.gmatch(time, "%d+");
local hour = g() ;
local minute = g() or 0;
local secon... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/dish_of_spaghetti_arrabbiata.lua | 35 | 1719 | -----------------------------------------
-- ID: 5211
-- Item: dish_of_spaghetti_arrabbiata
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength 5
-- Vitality 2
-- Intelligence -7
-- Attack % 22
-- Attack Cap 120
-- Store TP 5
-----------------------------------------
req... | gpl-3.0 |
m2mselect/owrt | feeds/luci/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/nut.lua | 26 | 2126 | -- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.nut",package.seeall)
function rrdargs( graph, plugin, plugin_instance, dtype )
local voltages = {
title = "%H: Voltages on UPS \"%pi\"",
vlabel = "V",
number_format = "%5.1lfV",
data = {
instances = {
... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Ordelles_Caves/npcs/Ruillont.lua | 17 | 2177 | -----------------------------------
-- Area: Ordelles Caves
-- NPC: Ruillont
-- Involved in Mission: The Rescue Drill
-- @pos -70 1 607 193
-----------------------------------
package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions")... | gpl-3.0 |
Lukc/OOP-Calculator | ui/column.lua | 1 | 1089 |
local Object = require "object"
local Widget = require "ui.widget"
local _M = {}
function _M:new(arg)
Widget.new(self, arg)
end
function _M:addChild(child)
Widget.addChild(self, child)
if child.height == math.huge then
io.stderr:write("<Column.addChild> child.height == math.huge\n")
end
end
function _M:upda... | bsd-3-clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.