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 |
|---|---|---|---|---|---|
AdamGagorik/darkstar | scripts/zones/Ship_bound_for_Mhaura/Zone.lua | 13 | 1451 | -----------------------------------
--
-- Zone: Ship_bound_for_Mhaura (221)
--
-----------------------------------
package.loaded["scripts/zones/Ship_bound_for_Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Ship_bound_for_Mhaura/TextIDs");
---... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/Brazier.lua | 13 | 3995 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Brazier
-- Involved in Quests: Save my Sister
-- @pos 101 -33 -59 195 (F-9)
-- @pos 259 -33 99 195 (H-7)
-- @pos 99 -33 98 195 (F-7)
-- @pos 259 -33 -58 195 (H-9)
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Ne... | gpl-3.0 |
josemrb/dotfiles | nvim/lua/plugins/completion.lua | 1 | 2124 | --local
local luasnip = require("luasnip")
local lspkind = require("lspkind")
local cmp = require("cmp")
local has_words_before = _G.has_words_before
cmp.setup {
formatting = {
format = lspkind.cmp_format({
mode = "symbol",
}),
},
mapping = {
["<C-p>"] = cmp.mapping.select_prev_item(),
["<... | mit |
luveti/Urho3D | Source/ThirdParty/toluapp/src/bin/lua/feature.lua | 24 | 2974 | -- tolua: abstract feature class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance, support, updates,
-- enh... | mit |
AdamGagorik/darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/_5ce.lua | 13 | 1057 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: _5ce (Gate of Earth)
-- @pos -228 0 140 192
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Inner_Horutoto_Ruins/TextIDs")... | gpl-3.0 |
sjznxd/lc-20130204 | libs/web/luasrc/cbi/datatypes.lua | 16 | 6003 | --[[
LuCI - Configuration Bind Interface - Datatype Tests
(c) 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... | apache-2.0 |
m27frogy/rbxobfusc | XFuscator/init.lua | 1 | 4353 | require 'LuaMinify.ParseLua'
require 'LuaMinify.FormatMini'
require 'LAT'
XFuscator = { }
XFuscator.ExtractConstants = require'XFuscator.ConstantExtractor'
XFuscator.GenerateFluff = require'XFuscator.FluffGenerator'
XFuscator.Uglify = require'XFuscator.Uglifier'
XFuscator.Precompile = require'XFuscator.Precompile'
XFu... | mit |
AdamGagorik/darkstar | scripts/globals/items/wild_onion.lua | 18 | 1172 | -----------------------------------------
-- ID: 4387
-- Item: wild_onion
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility 4
-- Vitality -6
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
--------... | gpl-3.0 |
sjznxd/lc-20130204 | applications/luci-statistics/luasrc/model/cbi/luci_statistics/irq.lua | 78 | 1245 | --[[
Luci configuration model for statistics - collectd irq 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 a... | apache-2.0 |
raymoo/magical_realm | combat_spells/magic_missile.lua | 1 | 6551 |
-- Spell Info
--
-- Metadata: A table with two numerical fields:
-- count: The number of missiles
-- uses: The number of uses (nil for infinite)
--
-- Result Data: A table containing a reference to a target object, "target",
-- as well as the count field from the metadata, and the player, as player.
--
-- Smart Fo... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Renten-Tonten.lua | 13 | 1068 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Renten-Tonten
-- Type: Standard NPC
-- @zone: 94
-- @pos 133.840 -6.75 173.305
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = n... | gpl-3.0 |
master00041/gpsuper | bot/utils.lua | 54 | 15973 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
http.TIMEOUT = 10
funct... | gpl-2.0 |
iotcafe/nodemcu-firmware | app/cjson/tests/test.lua | 112 | 18076 | #!/usr/bin/env lua
-- Lua CJSON tests
--
-- Mark Pulford <mark@kyne.com.au>
--
-- Note: The output of this script is easier to read with "less -S"
local json = require "cjson"
local json_safe = require "cjson.safe"
local util = require "cjson.util"
local function gen_raw_octets()
local chars = {}
for i = 0, ... | mit |
xbRead/admin-helper | admin-helper/lua/autorun/client/sh.lua | 1 | 5268 | --[[
Name: admin-help.lua
Purpose: helping admins become just a bit better.
By: bread
For: Public
Install:
Place into your addons folder
]]
local blur = Material("pp/blurscreen")
local function DrawBlur(panel, amount)
local x, y = panel:LocalToScreen(0, 0)
local scrW, scrH = ScrW(), ScrH()
... | gpl-2.0 |
AdamGagorik/darkstar | scripts/globals/items/serving_of_frog_flambe.lua | 18 | 1738 | -----------------------------------------
-- ID: 4326
-- Item: serving_of_frog_flambe
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Dexterity 3
-- Agility 2
-- Mind -2
-- Attack % 14
-- Attack Cap 65
-- Evasion 5
-- Ranged ATT % 14
-- Ranged ATT Cap 65
-----------------------------------... | gpl-3.0 |
TrurlMcByte/docker-prosody | etc/prosody-modules/mod_storage_muc_log/mod_storage_muc_log.lua | 16 | 5308 |
local datamanager = require"core.storagemanager".olddm;
local xml_parse = require"util.xml".parse;
local data_load, data_store = datamanager.load, datamanager.store;
local datastore = "muc_log";
local datetime = require"util.datetime"
local lfs = require"lfs";
local noop = function () end;
local os_date = os.date;
lo... | mit |
AdamGagorik/darkstar | scripts/zones/Metalworks/npcs/Romualdo.lua | 33 | 1377 | -----------------------------------
-- Area: Metalworks
-- NPC: Romualdo
-- Involved in Quest: Stamp Hunt
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Metalworks/TextIDs");
-... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/spells/valor_minuet_v.lua | 27 | 1566 | -----------------------------------------
-- Spell: Valor Minuet V
-- Grants Attack bonus to all allies.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,... | gpl-3.0 |
Hostle/luci | applications/luci-app-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo.lua | 132 | 1057 | --[[
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 |
sjznxd/lc-20130204 | applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo.lua | 132 | 1057 | --[[
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 |
mohammad25253/seed238 | plugins/qr.lua | 60 | 1731 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/Kazham/npcs/Swift.lua | 13 | 1029 | -----------------------------------
-- Area: Kazham
-- NPC: Swift
-- Type: Standard NPC
-- @zone: 250
-- @pos 2.017 -5 -1.880
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-----------------------------------... | gpl-3.0 |
aqasaeed/hesam | plugins/invite.lua | 1111 | 1195 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
saeeidbeygi/saeedbot012 | plugins/invite.lua | 1111 | 1195 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
ghtalpo/json_cache | json_cache.lua | 1 | 1078 | require 'table_utils'
require 'lfs'
json_cache = json_cache or {}
json_cache.registry = {}
function json_cache.register(json_file_name)
print (json_file_name .. ' registered')
table.insert(json_cache.registry, json_file_name)
end
function json_cache.build(json_decoder)
for _, json_file_name in ipairs(json_cache.... | mit |
AdamGagorik/darkstar | scripts/zones/Chamber_of_Oracles/npcs/Pedestal_of_Fire.lua | 13 | 2379 | -----------------------------------
-- 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/titles")... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Mhaura/npcs/Take.lua | 29 | 4533 | -----------------------------------
-- Area: Mhaura
-- NPC: Take
-- Involved In Quest: RYCHARDE_THE_CHEF
-- Starts and finishes quest: Expertice
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scr... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Western_Altepa_Desert/npcs/relic.lua | 13 | 1872 | -----------------------------------
-- Area: Western Altepa Desert
-- NPC: <this space intentionally left blank>
-- @pos -152 -16 20 125
-----------------------------------
package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Western_Altepa_De... | gpl-3.0 |
darktable-org/darktable | tools/lua_doc/old_api/dt_api500.lua | 7 | 254160 | API = {
["__text"] = [==[To access the darktable specific functions you must load the darktable environment:<code>darktable = require "darktable"</code>All functions and data are accessed through the darktable module.
This documentation for API version 5.0.0.]==],
["__attributes"] = {
["reported_type"] = [==[documentat... | gpl-3.0 |
Nathan22Miles/sile | lua-libraries/std/functional.lua | 6 | 4438 | --[[--
Functional programming.
@module std.functional
]]
local list = require "std.base"
local functional -- forward declaration
--- Return given metamethod, if any, or nil.
-- @param x object to get metamethod of
-- @param n name of metamethod to get
-- @return metamethod function or nil if no metamethod or not ... | mit |
AdamGagorik/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5fr.lua | 13 | 2636 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: South Plate
-- @pos 180 -34 -31 195
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Leujaoam_Sanctum/IDs.lua | 29 | 3167 | Leujaoam = {
text = {
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6378, -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6381, -- Obtained: <item>
GIL_OBTAINED = 6384, -- Obtained <number> gil
KEYITEM_OBTAINED = 6384, -- Obtain... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/items/m&p_cracker.lua | 18 | 1358 | -----------------------------------------
-- ID: 5640
-- Item: M&P Cracker
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Vitality 5
-- Mind -5
-- Defense % 25
-- Attack Cap 154
-----------------------------------------
require("scripts/globals/status");
---------------------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Port_San_dOria/npcs/Pomilla.lua | 13 | 1718 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Pomilla
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- @pos -38 -4 -55 232
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/ques... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/items/loaf_of_pain_de_neige.lua | 18 | 1182 | -----------------------------------------
-- ID: 4292
-- Item: loaf_of_pain_de_neige
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 18
-- Vitality 4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChe... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Port_Bastok/npcs/Nokkhi_Jinjahl.lua | 13 | 13101 | -----------------------------------
-- Area: Port Bastok
-- NPC: Nokkhi Jinjahl
-- Type: Travelling Merchant NPC / NPC Quiver Maker / Bastok 1st Place
-- @zone: 236
-- @pos 112.667 7.455 -46.174
--
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
----------------------... | gpl-3.0 |
aquileia/wesnoth | data/ai/micro_ais/cas/ca_simple_attack.lua | 4 | 2427 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local BC = wesnoth.require "ai/lua/battle_calcs.lua"
local LS = wesnoth.require "lua/location_set.lua"
local ca_simple_attack, best_attack = {}
function ca_simple_attack:evaluation(cfg)
local units = AH.get_units_with_att... | gpl-2.0 |
GoogleFrog/Zero-K | LuaUI/Widgets/gui_lasso_terraform.lua | 1 | 51315 | function widget:GetInfo()
return {
name = "Lasso Terraform GUI",
desc = "Interface for lasso terraform.",
author = "Google Frog",
version = "v1",
date = "Nov, 2009",
license = "GNU GPL, v2 or later",
layer = math.huge,
enabled = true,
handler = true,
}
end
include("key... | gpl-2.0 |
Invertika/data | scripts/maps/ow-o0000-n0010-o0000.lua | 1 | 1403 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
rcurtin/shogun | examples/undocumented/lua_modular/serialization_complex_example.lua | 21 | 2932 | require 'os'
require 'modshogun'
require 'load'
parameter_list={{5,1,10, 2.0, 10}, {10,0.3,2, 1.0, 0.1}}
function check_status(status)
assert(status == true)
-- if status:
-- print "OK reading/writing .h5\n"
--else:
-- print "ERROR reading/writing .h5\n"
end
function concatenate(...)
local result = ...
for... | gpl-3.0 |
zjohn4/PD2-lua-src | lib/managers/chatmanager.lua | 1 | 35591 | ChatManager = ChatManager or class()
ChatManager.GAME = 1
ChatManager.CREW = 2
ChatManager.GLOBAL = 3
-- User ID Channels are undecided at the moment
function ChatManager:init()
self:_setup()
end
function ChatManager:_setup()
self._chatlog = {} -- Contains all recent messages and user, grouped by channel_ids
se... | gpl-2.0 |
Maui-84/seven | seven.lua | 1 | 8558 | _addon.author = 'siete';
_addon.name = 'seven';
_addon.version = '0.2';
require 'common';
local config = require('config');
local debug_packet = require('debug_packet');
local commands = require('commands');
local actions = require('actions');
local packets = require('packets');
local combat = require('combat')... | apache-2.0 |
pmarkus/backpack | libs/AceGUI-3.0/widgets/AceGUIContainer-TabGroup.lua | 50 | 10384 | --[[-----------------------------------------------------------------------------
TabGroup Container
Container that uses tabs on top to switch between groups.
-------------------------------------------------------------------------------]]
local Type, Version = "TabGroup", 35
local AceGUI = LibStub and LibStub("AceGUI... | gpl-3.0 |
irr/luajit.io | lib/ljio/core/utils.lua | 2 | 1679 | -- Copyright (C) Jinhua Luo
local C = require("ljio.cdef")
local ffi = require("ffi")
local bit = require("bit")
ffi.cdef[[
struct fd_guard {int fd;};
]]
local fd_guard = ffi.metatype("struct fd_guard", {
__gc = function(g)
if g.fd > 0 then ffi.C.close(g.fd) end
end
})
local FIONBIO=0x5421
local non... | bsd-2-clause |
zjohn4/PD2-lua-src | lib/states/ingamedialogstate.lua | 1 | 1240 | require "lib/states/GameState"
IngameDialogState = IngameDialogState or class( GameState )
function IngameDialogState:init( game_state_machine )
GameState.init( self, "ingame_dialog", game_state_machine )
self._ws = Overlay:newgui():create_screen_workspace()
self._panel = self._ws:panel()
self._text = self._pan... | gpl-2.0 |
remakeelectric/luci | protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua | 5 | 4050 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local encaps, atmdev, vci, vpi, username, password
local ipv6, defaultroute, metric, peerdns, dns,
keepalive_failure, keepalive_interval, demand, mtu
encaps = section:tabop... | apache-2.0 |
Invertika/data | scripts/maps/ow-n0023-n0022-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
dvdvideo1234/wire | lua/entities/gmod_wire_friendslist.lua | 6 | 3780 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Friends List"
ENT.WireDebugName = "Friends List"
if CLIENT then return end -- No more client
function ENT:Initialize()
BaseClass.Initialize( self )
WireLib.CreateInputs( self, {"CheckEntity [ENTITY]", "CheckSteamID [STRING]", "CheckE... | apache-2.0 |
GoogleFrog/Zero-K | LuaRules/Configs/REC_order_q.lua | 17 | 195856 | --order queue
return {
[1] = {
cmdID = 20,
key = "222648913176",
tag = 36,
uID = 20694,
options = {
coded = 0,
},
params = {
[1] = 0,
},
},
[2] = {
cmdID = 16,
key = "222648913176",
tag = 35,
uID = 20694,
options = {
coded = 0,
},
params = {
[1] = 728.00256347656,
[2] = 9... | gpl-2.0 |
Dual-Boxing/MultiBoxMaster | MultiBoxMaster/libs/LibGratuity-3.0/LibStub/tests/test.lua | 86 | 2013 | debugstack = debug.traceback
strmatch = string.match
loadfile("../LibStub.lua")()
local lib, oldMinor = LibStub:NewLibrary("Pants", 1) -- make a new thingy
assert(lib) -- should return the library table
assert(not oldMinor) -- should not return the old minor, since it didn't exist
-- the following is to create data ... | mit |
omidgolmohammadi/freeze_bot_2 | lang/italian_lang.lua | 13 | 20143 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
Invertika/data | scripts/maps/uw-vacare-o0000-o0000-o0000.lua | 1 | 13624 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
mendsley/premake-core | src/base/tree.lua | 16 | 7128 | --
-- tree.lua
-- Functions for working with the source code tree.
-- Copyright (c) 2009-2013 Jason Perkins and the Premake project
--
local p = premake
p.tree = {}
local tree = p.tree
--
-- Create a new tree.
--
-- @param n
-- The name of the tree, applied to the root node (optional).
--
function tree.new(n... | bsd-3-clause |
Invertika/data | scripts/maps/ow-p0015-p0009-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
bestofkeeperbot/yourkeeperbot | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
teleofis/OpenWRT | feeds/luci/applications/luci-app-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... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0006-n0015-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
TheSuperAlaa/TheSuperBot | plugins/banbot.lua | 2 | 1358 | --[[
_____ _ _ _ _____ Dev @lIMyIl
|_ _|__| |__ / \ | | _| ____| Dev @li_XxX_il
| |/ __| '_ \ / _ \ | |/ / _| Dev @h_k_a
| |\__ \ | | |/ ___ \| <| |___ Dev @Aram_omar22
|_||___/_| |_/_/ \_\_|\_\_____| Dev @IXX_I_XXI
CH > @lTSHAKEl_CH
--]]
... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0023-p0007-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-n0019-p0019-o0000.lua | 1 | 1403 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | LuaUI/Configs/marking_menu_menu_armcom.lua | 6 | 3784 | local menu_armcom = {
items = {
{
angle = 0,
unit = "cormex",
label = "Economy",
items = {
{
angle = 45,
unit = "cafus"
},
{
angle= 90,
unit = "armfus",
},
{
angle= 135,
unit = "geo",
},
--{
-- angle = -... | gpl-2.0 |
jpetrie/quip | Dependencies/lpeg/lpeg-1.0.1/re.lua | 160 | 6286 | -- $Id: re.lua,v 1.44 2013/03/26 20:11:40 roberto Exp $
-- imported functions and modules
local tonumber, type, print, error = tonumber, type, print, error
local setmetatable = setmetatable
local m = require"lpeg"
-- 'm' will be used to parse expressions, and 'mm' will be used to
-- create expressions; that is, 're' ... | mit |
chuenlungwang/skynet | 3rd/lpeg/re.lua | 160 | 6286 | -- $Id: re.lua,v 1.44 2013/03/26 20:11:40 roberto Exp $
-- imported functions and modules
local tonumber, type, print, error = tonumber, type, print, error
local setmetatable = setmetatable
local m = require"lpeg"
-- 'm' will be used to parse expressions, and 'mm' will be used to
-- create expressions; that is, 're' ... | mit |
PaulosV/ntopng | scripts/lua/modules/influx_utils.lua | 4 | 1737 | --
-- (C) 2014-15 - ntop.org
--
-- Enable/disable Influx DB
use_influx = false
influx_user = ""
influx_pwd = ""
influx_url = "http://localhost:8086/db/ntopng/series?u=ntopng&p=ntopng"
-- Local variables
local influx_debug = false
local influx_old_value = { }
local influx_curr_value = { }
local json = require ("d... | gpl-3.0 |
tehran980/Telehsn | plugins/weather.lua | 274 | 1531 | do
local BASE_URL = "http://api.openweathermap.org/data/2.5/weather"
local function get_weather(location)
print("Finding weather in ", location)
location = string.gsub(location," ","+")
local url = BASE_URL
url = url..'?q='..location
url = url..'&units=metric'
url = url..'&appid=bd82977b86bf27fb59a04b61b6... | gpl-2.0 |
mortezamosavy999/mm | plugins/ingroup.lua | 527 | 44020 | 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 |
BooM-amour/hedie | plugins/ingroup.lua | 527 | 44020 | 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 |
GoogleFrog/Zero-K | units/sprinkler.lua | 2 | 6060 | unitDef = {
unitname = [[sprinkler]],
name = [[Sprinkler]],
description = [[Important irrigation structure]],
acceleration = 0,
brakeRate = 0,
buildCostEnergy = 400,
buildCostMetal ... | gpl-2.0 |
omidgolmohammadi/freeze_bot_2 | libs/redis.lua | 566 | 1214 | local Redis = require 'redis'
local FakeRedis = require 'fakeredis'
local params = {
host = os.getenv('REDIS_HOST') or '127.0.0.1',
port = tonumber(os.getenv('REDIS_PORT') or 6379)
}
local database = os.getenv('REDIS_DB')
local password = os.getenv('REDIS_PASSWORD')
-- Overwrite HGETALL
Redis.commands.hgetall = ... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0001-p0015-o0000.lua | 1 | 1401 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-n0003-p0012-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Reda9991/DevRode | plugins/ar-sudo.lua | 2 | 2711 | do
local function run(msg,macthes)
local reply_id = msg ['id']
if is_sudo(msg) and macthes[1] == 'م المطور' then
local text = [[
💢أّوٌأّمًر أّلَمًطِوٌريِّنِ💢
🃏💢 Đèv moñ§tēr 💢🃏
✨🎌✨🎌✨🎌✨
💢- تٌـفُـعٌيِّلَ :: تٌـفُـعٌيِّلَ أّلَبًوٌتٌـ | ✅
💢- أّلَغُأّء تٌـفُـعٌيِّلَ :: تٌـعٌطِيِّلَ أّلَبًوٌتٌـ | 🚫
💢... | gpl-2.0 |
zjohn4/PD2-lua-src | lib/managers/localizationmanager.lua | 1 | 5087 | core:import( "CoreLocalizationManager" )
core:import( "CoreClass" )
LocalizationManager = LocalizationManager or class( CoreLocalizationManager.LocalizationManager )
function LocalizationManager:init()
LocalizationManager.super.init( self )
self:_setup_macros()
Application:set_default_letter( 95 ) -- The unicode ... | gpl-2.0 |
zjohn4/PD2-lua-src | core/lib/managers/menu/coremenunode.lua | 1 | 6905 | core:module("CoreMenuNode")
core:import("CoreSerialize")
core:import("CoreMenuItem")
core:import("CoreMenuItemToggle")
MenuNode = MenuNode or class()
function MenuNode:init( data_node )
-- Load parameters
local parameters = {}
for key,value in pairs( data_node ) do
if( ( key ~= "_meta" ) and ( type( value ) ~= "... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0016-n0021-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
CCAAHH/creed | plugins/google.lua | 336 | 1323 | do
local function googlethat(query)
local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&'
local parameters = 'q='..(URL.escape(query) or '')
-- Do the request
local res, code = https.request(url..parameters)
if code ~=200 then return nil end
loca... | gpl-2.0 |
teleofis/OpenWRT | feeds/luci/applications/luci-app-pollmydevice/luasrc/model/cbi/pollmydevice_edit.lua | 1 | 5536 | local sys = require "luci.sys"
local uci = require "luci.model.uci".cursor()
local d = require "luci.dispatcher"
local section_name
if arg[1] then
section_name = arg[1]
else
luci.http.redirect(luci.dispatcher.build_url("admin", "services", "pollmydevice"))
end
local m = Map("pollmydevice", translate("PollMyDevice"... | gpl-2.0 |
openwrt-1983/my_openwrt_mod | luci/applications/luci-chinadns/luasrc/model/cbi/chinadns.lua | 8 | 1329 | --[[
RA-MOD
]]--
local fs = require "nixio.fs"
local running=(luci.sys.call("pidof chinadns > /dev/null") == 0)
if running then
m = Map("chinadns", translate("chinadns"), translate("chinadns is running"))
else
m = Map("chinadns", translate("chinadns"), translate("chinadns is not running"))
end
s = m:section(Typed... | mit |
Invertika/data | scripts/maps/ow-p0004-p0006-o0000.lua | 1 | 1403 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
anoidgit/Simple-RNN | experiment/NMT/designn.lua | 1 | 3066 | --[[
The GNU GENERAL PUBLIC LICENSE Version 3
Copyright (c) 2016 Hongfei Xu
This scripts defines the NMT model to train
Version 0.0.3
]]
require "dpnn"
require "rnn"
require "nngraph"
require "SeqDropout"
require "vecLookup"
require "maskZerovecLookup"
require "ASequencerCriterion"
require "nngraph"
require "... | gpl-3.0 |
steveyen/moxilua | protocol_memcached/protocol_binary_prep.lua | 1 | 2634 | -- More post-processing on memcached_protocol_binary.
--
memcached_protocol_binary.type = {
REQ = 'request',
RES = 'response',
request = 'REQ',
response = 'RES'
}
memcached_protocol_binary.magic.request =
memcached_protocol_binary.magic.REQ
memcached_protocol_binary.magic.response =
memcached_protocol_bin... | apache-2.0 |
zjohn4/PD2-lua-src | lib/network/matchmaking/networkmatchmakingsteam.lua | 1 | 27850 | --[[-----------------------------------------------------------------------------------------------
Match making abstraction layer
To do:
find_game(settings): id
This method should always return a valid game. If the matchmaking service fails to find a
game then the AL needs to create a game and make it availabl... | gpl-2.0 |
remakeelectric/luci | modules/luci-mod-freifunk/luasrc/controller/freifunk/freifunk.lua | 6 | 5893 | -- 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 |
herrybiscuit/MyProjects | Love2d/sight/conf.lua | 1 | 1403 | function love.conf(t)
t.title = "Sight" -- The title of the window the game is in (string)
t.author = "HerryBiscuit" -- The author of the game (string)
t.identity = nil -- The name of the save directory (string)
--t.version = 0.9 -- The LÖVE version this game was made for ... | mit |
pmarkus/backpack | libs/AceGUI-3.0/widgets/AceGUIWidget-Slider.lua | 42 | 8139 | --[[-----------------------------------------------------------------------------
Slider Widget
Graphical Slider, like, for Range values.
-------------------------------------------------------------------------------]]
local Type, Version = "Slider", 21
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not Ace... | gpl-3.0 |
Invertika/data | scripts/maps/ow-p0017-n0018-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
chandra1087/vpn989group | plugins/help.lua | 4 | 23654 | local config = require 'config'
local u = require 'utilities'
local api = require 'methods'
local plugin = {}
local function get_helped_string(key)
if key == 'start' then
return _([[
Hello %s 👋🏼, nice to meet you!
I'm Group Butler, the first administration bot using the official Bot API.
*I can do a lot of cool... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0019-p0011-o0000.lua | 1 | 1403 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-p0019-n0008-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
BloodyKnight/nginx-openresty-windows | LuaJIT-2.1-20150622/src/jit/dump.lua | 8 | 19845 | ----------------------------------------------------------------------------
-- LuaJIT compiler dump module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
-... | bsd-2-clause |
leetking/configures | config/awesome/rc.lua | 2 | 26523 | local gears = require("gears")
local awful = require("awful")
local wibox = require("wibox")
local beautiful = require("beautiful")
local naughty = require("naughty")
local menubar = require("menubar")
local hotkeys_popup = require("awful.hotkeys_popup").widget
require("awful.autofocus")
-- Enable VIM help for hotkeys ... | gpl-2.0 |
teleofis/OpenWRT | feeds/luci/applications/luci-app-dump1090/luasrc/model/cbi/dump1090.lua | 37 | 4987 | -- Copyright 2014 Álvaro Fernández Rojas <noltari@gmail.com>
-- Licensed to the public under the Apache License 2.0.
m = Map("dump1090", "dump1090", translate("dump1090 is a Mode S decoder specifically designed for RTLSDR devices, here you can configure the settings."))
s = m:section(TypedSection, "dump1090", "")
s.a... | gpl-2.0 |
linxiulei/sysdig | userspace/sysdig/chisels/v_directories.lua | 2 | 3146 | --[[
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 |
aleksey-sinos/ardupilot | Tools/CHDK-Scripts/kap_uav.lua | 183 | 28512 | --[[
KAP UAV Exposure Control Script v3.1
-- Released under GPL by waterwingz and wayback/peabody
http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script
@title KAP UAV 3.1
@param i Shot Interval (sec)
@default i 15
@range i 2 120
@param s Total Shots (0=infinite)
@default s 0
@range ... | gpl-3.0 |
Invertika/data | scripts/maps/ow-p0024-p0009-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-n0007-p0024-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
PaulosV/ntopng | scripts/lua/sprobe_flow_data.lua | 10 | 3800 | --
-- (C) 2014-15-15 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
require "flow_utils"
require "voip_utils"
require "sqlite_utils"
sendHTTPHeader('text/json')
flow_key = _GET["flow_key"]
if(flow_key == nil) then
flow = ni... | gpl-3.0 |
GoogleFrog/Zero-K | units/factoryhover.lua | 4 | 3816 | unitDef = {
unitname = [[factoryhover]],
name = [[Hovercraft Platform]],
description = [[Produces Hovercraft, Builds at 10 m/s]],
acceleration = 0,
brakeRate = 0,
buildCostEnergy = 600,
buildCostMetal = 600,
builder = true,
buildoptions = {
[[co... | gpl-2.0 |
BloodyKnight/nginx-openresty-windows | LuaJIT-2.1-20150622/src/host/genlibbc.lua | 51 | 4965 | ----------------------------------------------------------------------------
-- Lua script to dump the bytecode of the library functions written in Lua.
-- The resulting 'buildvm_libbc.h' is used for the build process of LuaJIT.
----------------------------------------------------------------------------
-- Copyright (... | bsd-2-clause |
linxiulei/sysdig | userspace/sysdig/chisels/v_file_opens.lua | 2 | 2343 | --[[
Copyright (C) 2013-2014 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.