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 |
|---|---|---|---|---|---|
jsenellart-systran/OpenNMT | lm.lua | 7 | 2453 | require('onmt.init')
local cmd = onmt.utils.ExtendedCmdLine.new('lm.lua')
local options = {
{
'mode', 'string',
[['score' apply lm to input text, 'sample' samples output based on input text.]],
{
enum = { 'score', 'sample' }
}
},
{
'-src', '',
[[Source sequences to sample/score.]],... | mit |
RedSnake64/openwrt-luci-packages | modules/luci-base/luasrc/model/firewall.lua | 67 | 10658 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local type, pairs, ipairs, table, luci, math
= type, pairs, ipairs, table, luci, math
local tpl = require "luci.template.parser"
local utl = require "luci.util"
local uci = require "luci.model.uci"
module "lu... | apache-2.0 |
torque/mpv | player/lua/options.lua | 25 | 3450 | local msg = require 'mp.msg'
local function val2str(val)
if type(val) == "boolean" then
if val then val = "yes" else val = "no" end
end
return val
end
-- converts val to type of desttypeval
local function typeconv(desttypeval, val)
if type(desttypeval) == "boolean" then
if val == "yes"... | gpl-2.0 |
typechaos/ultra-compact-image | TestUCI.lua | 3 | 1385 | -- for LuaJIT 2.0-beta6 or later
local ffi = require("ffi")
ffi.cdef[[
int __stdcall UCIDecode(const void* src, int srclen, void** dst, int* stride, int* width, int* height, int* bit);
void __stdcall UCIFree(void* p);
void __stdcall UCIDebug(int level);
]]
local ucidec = ffi.load("ucidec")
if not ucidec... | lgpl-3.0 |
snabbnfv-goodies/snabbswitch | lib/ljsyscall/syscall/lfs.lua | 24 | 3075 | -- this is intended to be compatible with luafilesystem https://github.com/keplerproject/luafilesystem
-- currently does not implement locks
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
... | apache-2.0 |
Nexela/autofill | stdlib/core.lua | 1 | 3186 | --- The Core module loads some helper functions useful in all stages
-- of a mods life cycle. All modules have an __index method into core.
-- @module Core
-- @usage local Core = require('stdlib/core')
--Global mutates
require('stdlib/utils/globals')
local Is = require('stdlib/utils/is')
local Core = {
_VERSION ... | mit |
adminomega/exterme-orginal | plugins/isup.lua | 741 | 3095 | do
local socket = require("socket")
local cronned = load_from_file('data/isup.lua')
local function save_cron(msg, url, delete)
local origin = get_receiver(msg)
if not cronned[origin] then
cronned[origin] = {}
end
if not delete then
table.insert(cronned[origin], url)
else
for k,v in pairs(cronned[... | gpl-2.0 |
facebokiii/arman | plugins/block.lua | 1 | 1115 | do
local function res_user_callback(cb_extra, success, result)
local receiver = cb_extra.receiver
local user = 'user#id'..result.id
local chat = 'chat#id'..cb_extra.chat_id
if success == 0 then
return send_large_msg(receiver, "I cant block user.")
end
block_user(user, cb_ok, false)
end
local function ... | gpl-2.0 |
RedSnake64/openwrt-luci-packages | libs/luci-lib-nixio/docsrc/nixio.TLSContext.lua | 173 | 1393 | --- Transport Layer Security Context Object.
-- @cstyle instance
module "nixio.TLSContext"
--- Create a TLS Socket from a socket descriptor.
-- @class function
-- @name TLSContext.create
-- @param socket Socket Object
-- @return TLSSocket Object
--- Assign a PEM certificate to this context.
-- @class function
-- @nam... | apache-2.0 |
hnyman/luci | libs/luci-lib-nixio/docsrc/nixio.TLSContext.lua | 173 | 1393 | --- Transport Layer Security Context Object.
-- @cstyle instance
module "nixio.TLSContext"
--- Create a TLS Socket from a socket descriptor.
-- @class function
-- @name TLSContext.create
-- @param socket Socket Object
-- @return TLSSocket Object
--- Assign a PEM certificate to this context.
-- @class function
-- @nam... | apache-2.0 |
dismantl/luci-0.12 | libs/nixio/docsrc/nixio.TLSContext.lua | 173 | 1393 | --- Transport Layer Security Context Object.
-- @cstyle instance
module "nixio.TLSContext"
--- Create a TLS Socket from a socket descriptor.
-- @class function
-- @name TLSContext.create
-- @param socket Socket Object
-- @return TLSSocket Object
--- Assign a PEM certificate to this context.
-- @class function
-- @nam... | apache-2.0 |
eagle14/Snippy | plugins/channels.lua | 356 | 1732 | -- Checks if bot was disabled on specific chat
local function is_channel_disabled( receiver )
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable_channel(receiver)
if... | gpl-2.0 |
astrofra/amiga-experiments | game-shop-shop-galaxy/python-version/pkg.core/lua/sky_scatter.lua | 1 | 2820 | execution_context = gs.ScriptContextAll
--------------------------------------------------------------------------------
latitude = 0.0 --> float
longitude = 0.3 --> float
rayleigh_strength = 0.3 --> float
rayleigh_brightness = 2.5 --> float
rayleigh_collection_power = 0.20 --> float
mie_strength = 0.01 --> float
mi... | mit |
LaFamiglia/Illarion-Content | quest/cormac_74_galmair.lua | 1 | 2555 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
venturesomestone/unsung-anthem | script/anthem/world/test/map.lua | 1 | 63849 | -- Copyright (c) 2018–2020 Antti Kivi
-- Licensed under the Effective Elegy Licence
test = {
version = "1.1",
luaversion = "5.1",
tiledversion = "1.1.5",
orientation = "orthogonal",
renderorder = "right-down",
width = 100,
height = 100,
tilewidth = 16,
tileheight = 16,
nextobjectid = 4,
propertie... | agpl-3.0 |
soundsrc/premake-core | src/tools/msc.lua | 8 | 7959 | ---
-- msc.lua
-- Interface for the MS C/C++ compiler.
-- Author Jason Perkins
-- Modified by Manu Evans
-- Copyright (c) 2009-2015 Jason Perkins and the Premake project
---
local p = premake
p.tools.msc = {}
local msc = p.tools.msc
local project = p.project
local config = p.config
--
-- Returns list of C pre... | bsd-3-clause |
dismantl/luci-0.12 | applications/luci-statistics/luasrc/model/cbi/luci_statistics/unixsock.lua | 80 | 1455 | --[[
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 |
LaFamiglia/Illarion-Content | item/id_2745_parchment.lua | 1 | 17813 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
spark0511/blueteambot | plugins/torrent_search.lua | 411 | 1622 | --[[ NOT USED DUE TO SSL ERROR
-- See https://getstrike.net/api/
local function strike_search(query)
local strike_base = 'http://getstrike.net/api/v2/torrents/'
local url = strike_base..'search/?phrase='..URL.escape(query)
print(url)
local b,c = http.request(url)
print(b,c)
local search = json:decode(b)
v... | gpl-2.0 |
Noltari/luci | applications/luci-app-p910nd/luasrc/model/cbi/p910nd.lua | 78 | 1340 | -- Copyright 2008 Yanira <forum-2008@email.de>
-- Copyright 2012 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local uci = luci.model.uci.cursor_state()
local net = require "luci.model.network"
local m, s, p, b
m = Map("p910nd", translate("p910nd - Printer server"),
... | apache-2.0 |
otalk/convert-jingle-lua | src/utils.lua | 1 | 1865 | local M = {}
function M.printTable(T)
for _,line in pairs(T) do
if type(line) == "table" then
M.printTable(line)
else
print(line)
end
end
end
function indentString(indent)
local indentString = " "
for i=1,indent do
indentString = indentString ..... | mit |
RedSnake64/openwrt-luci-packages | libs/luci-lib-nixio/docsrc/nixio.Socket.lua | 157 | 6508 | --- Socket Object.
-- Supports IPv4, IPv6 and UNIX (POSIX only) families.
-- @cstyle instance
module "nixio.Socket"
--- Get the local address of a socket.
-- @class function
-- @name Socket.getsockname
-- @return IP-Address
-- @return Port
--- Get the peer address of a socket.
-- @class function
-- @name Socket.getpe... | apache-2.0 |
LaFamiglia/Illarion-Content | npc/base/condition/questtime.lua | 1 | 2232 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
flybird119/Atlas | lib/commit-obfuscator.lua | 39 | 1677 | --[[ $%BEGINLICENSE%$
Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; version 2 of the
License.
This program is distribut... | gpl-2.0 |
Snazz2001/fbcunn | test/benchmark_cublas.lua | 8 | 3885 | -- Copyright 2004-present Facebook. All Rights Reserved.
require('fb.luaunit')
require 'cunn'
require 'fbcunn'
torch.setdefaulttensortype('torch.FloatTensor')
local test = {}
-- Let C = m-by-n and A = m-by-k
-- Format is m, n, k, seqIter, batch, numHandles, numStreams
local problemSize = {
-- Sanity tests
-- Trivi... | bsd-3-clause |
D-m-L/evonara | maps/map01.lua | 1 | 144816 | return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 128,
height = 128,
tilewidth = 32,
tileheight = 32,
backgroundcolor = { 128, 128, 128 },
properties = {},
tilesets = {
{
name = "tilesheet",
firstgid = 1,
tilewidth = 32,
tileheight = 32,
... | mit |
nerdclub-tfg/telegram-bot | plugins/torrent_search.lua | 411 | 1622 | --[[ NOT USED DUE TO SSL ERROR
-- See https://getstrike.net/api/
local function strike_search(query)
local strike_base = 'http://getstrike.net/api/v2/torrents/'
local url = strike_base..'search/?phrase='..URL.escape(query)
print(url)
local b,c = http.request(url)
print(b,c)
local search = json:decode(b)
v... | gpl-2.0 |
paritoshmmmec/kong | kong/cli/db.lua | 22 | 1420 | #!/usr/bin/env lua
local Faker = require "kong.tools.faker"
local constants = require "kong.constants"
local cutils = require "kong.cli.utils"
local IO = require "kong.tools.io"
local lapp = require("lapp")
local args = lapp(string.format([[
For development purposes only.
Seed the database with random data or drop i... | mit |
luveti/Urho3D | bin/Data/LuaScripts/18_CharacterDemo.lua | 24 | 21387 | -- Moving character example.
-- This sample demonstrates:
-- - Controlling a humanoid character through physics
-- - Driving animations using the AnimationController component
-- - Manual control of a bone scene node
-- - Implementing 1st and 3rd person cameras, using raycasts to avoid the 3rd pers... | mit |
AdamGagorik/darkstar | scripts/zones/Toraimarai_Canal/npcs/Grounds_Tome.lua | 30 | 1103 | -----------------------------------
-- Area: Toraimarai Canal
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Lower_Jeuno/npcs/Navisse.lua | 13 | 4725 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Navisse
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
require("scripts/globals/pathfind");
local path = {
-- -59.562683, 6.000051, -90.89... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Kazham-Jeuno_Airship/npcs/Oslam.lua | 30 | 2299 | -----------------------------------
-- Area: Kazham-Jeuno Airship
-- NPC: Oslam
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham-Jeuno_Airship/TextIDs"] = nil;
require("scripts/zones/Kazham-Jeuno_Airship/TextIDs");
-----------------------------------
-- onTrade Action
--... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/AlTaieu/mobs/Ul_hpemde.lua | 7 | 2794 | -----------------------------------
-- Area: Al'Taieu
-- MOB: Ul'Hpemde
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(mob)
end;
-----------------------------------
-- on... | gpl-3.0 |
Nathan22Miles/sile | languages/bg.lua | 4 | 17441 | SILE.hyphenator.languages["bg"] = {};
SILE.hyphenator.languages["bg"].patterns =
{
"1а1",
"1б1",
"1в1",
"1г1",
"1д1",
"1е1",
"1ж1",
"1з1",
"1и1",
"1й1",
"1к1",
"1л1",
"1м1",
"1н1",
"1о1",
"1п1",
"1р1",
"1с1",
"1т1",
"1у1",
"1ф1",
"1х1",
"1ц1",
"1ч1",
"1ш1",
"1щ1",
"1ъ1",
"0ь0",
"1ю1",
"1я1",
"б4а б4е б4и б4о б4у б4ъ... | mit |
AdamGagorik/darkstar | scripts/globals/items/bowl_of_optical_soup.lua | 18 | 1562 | -----------------------------------------
-- ID: 4340
-- Item: bowl_of_optical_soup
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- HP % 6 (cap 75)
-- Charisma -15
-- HP Recovered While Healing 5
-- Accuracy 15
-- Ranged Accuracy 15
-----------------------------------------
require("script... | gpl-3.0 |
aquileia/wesnoth | data/lua/wml/find_path.lua | 6 | 5035 | local helper = wesnoth.require "lua/helper.lua"
local utils = wesnoth.require "lua/wml-utils.lua"
function wesnoth.wml_actions.find_path(cfg)
local filter_unit = helper.get_child(cfg, "traveler") or helper.wml_error("[find_path] missing required [traveler] tag")
-- only the first unit matching
local unit = wesnoth.... | gpl-2.0 |
karottenreibe/luapdf | lib/index.lua | 1 | 2111 | ----------------------------------------------------------------
-- Document index menu --
-- @author Fabian Streitel (luapdf@rottenrei.be) --
----------------------------------------------------------------
-- Add index command
local cmd = lousy.bind.cmd
add_cmds({
... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Port_Jeuno/npcs/HomePoint#1.lua | 27 | 1262 | -----------------------------------
-- Area: Port Jeuno
-- NPC: HomePoint#1
-- @pos 37.076 0.001 8.831 246
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Port_Jeuno/TextIDs");
require("scripts/globals/homepoint... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/weaponskills/wheeling_thrust.lua | 11 | 1571 | -----------------------------------
-- Wheeling Thrust
-- Polearm weapon skill
-- Skill Level: 225
-- Ignores enemy's defense. Amount ignored varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Flame Gorget & Light Gorget.
-- Aligned with the Flame Belt & Light Belt.
-- Element: None
-- Modifiers: STR:... | gpl-3.0 |
r1k/vlc | share/lua/intf/cli.lua | 2 | 32520 | --[==========================================================================[
cli.lua: CLI module for VLC
--[==========================================================================[
Copyright (C) 2007-2011 the VideoLAN team
$Id$
Authors: Antoine Cellerier <dionoea at videolan dot org>
Pierre Ynard
... | gpl-2.0 |
rinstrum/LUA-LIB | src/rinLibrary/GenericReg.lua | 2 | 24305 | -------------------------------------------------------------------------------
--- Register Functions.
-- Functions to read, write and execute commands on instrument registers directly
-- @module rinLibrary.Device.Reg
-- @author Merrick Heley
-- @copyright 2016 Rinstrum Pty Ltd
----------------------------------------... | gpl-3.0 |
aquileia/wesnoth | data/ai/micro_ais/cas/ca_bottleneck_attack.lua | 4 | 3171 | local AH = wesnoth.require "ai/lua/ai_helper.lua"
local H = wesnoth.require "lua/helper.lua"
local ca_bottleneck_attack = {}
function ca_bottleneck_attack:evaluation(cfg, data)
local attackers = AH.get_units_with_attacks {
side = wesnoth.current.side,
{ "filter_adjacent", {
{ "filter_s... | gpl-2.0 |
mohammad25253/seed238 | plugins/vote.lua | 83 | 2129 | do
local _file_votes = './data/votes.lua'
function read_file_votes ()
local f = io.open(_file_votes, "r+")
if f == nil then
print ('Created voting file '.._file_votes)
serialize_to_file({}, _file_votes)
else
print ('Values loaded: '.._file_votes)
f:close()
end
return loadfile (_file_votes)()... | gpl-2.0 |
Nathan22Miles/sile | languages/pl.lua | 4 | 42908 | SILE.hyphenator.languages["pl"] = {};
SILE.hyphenator.languages["pl"].patterns =
{
".ćć8",
".ćł8",
".ćń8",
".ćś8",
".ćź8",
".ćż8",
".ć8",
".ćb8",
".ćc8",
".ćd8",
".ćf8",
".ćg8",
".ćh8",
".ćj8",
".ćk8",
".ćl8",
".ćm8",
".ćn8",
".ćp8",
".ćr8",
".ćs8",
".ćt8",
".ćv8",
".ćw8",
".ćwier2ć3",
".ćx8",
".ćz8",
".łć8",
".łł8"... | mit |
Hostle/luci | applications/luci-app-diag-devinfo/luasrc/controller/luci_diag/smap_common.lua | 61 | 3184 | -- Copyright 2009 Daniel Dickinson
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.luci_diag.smap_common", package.seeall)
require("luci.i18n")
require("luci.util")
require("luci.sys")
require("luci.cbi")
require("luci.model.uci")
local translate = luci.i18n.translate
local DummyValue... | apache-2.0 |
AdamGagorik/darkstar | scripts/zones/Mount_Zhayolm/npcs/qm2.lua | 30 | 1322 | -----------------------------------
-- Area: Mount Zhayolm
-- NPC: ??? (Spawn Claret(ZNM T1))
-- @pos 497 -9 52 61
-----------------------------------
package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mount_Zhayolm/TextIDs");
require("scripts/global... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/items/homemade_steak.lua | 18 | 1100 | -----------------------------------------
-- ID: 5226
-- Item: homemade_steak
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----------------... | gpl-3.0 |
sbuettner/kong | kong/dao/cassandra/migrations.lua | 12 | 2666 | local cassandra = require "cassandra"
local stringy = require "stringy"
local BaseDao = require "kong.dao.cassandra.base_dao"
local Migrations = BaseDao:extend()
function Migrations:new(properties)
self._table = "schema_migrations"
self.queries = {
add_migration = [[
UPDATE schema_migrations SET migrati... | mit |
AdamGagorik/darkstar | scripts/globals/spells/aspir_ii.lua | 21 | 1315 | -----------------------------------------
-- Spell: Aspir
-- Drain functions only on skill level!!
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Bastok_Mines/npcs/Proud_Beard.lua | 13 | 1668 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Proud Beard
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scripts/zones/Bastok_Mines/TextIDs");
require("scripts/globals/events/harvest_... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Metalworks/npcs/Fariel.lua | 13 | 2130 | -----------------------------------
-- Area: Metalworks
-- NPC: Fariel
-- Type: Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Metalworks/TextIDs");
require("scripts/globals/pathfind");
local p... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Windurst_Waters/npcs/Jourille.lua | 16 | 1510 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Jourille
-- Only sells when Windurst controlls Ronfaure Region
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Windurst_Wate... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Chamber_of_Oracles/npcs/Pedestal_of_Lightning.lua | 13 | 2410 | -----------------------------------
-- Area: Chamber of Oracles
-- NPC: Pedestal of Lightning
-- Involved in Zilart Mission 7
-- @pos 199 -2 36 168
-------------------------------------
package.loaded["scripts/zones/Chamber_of_Oracles/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/tit... | gpl-3.0 |
mohammad25253/seed238 | plugins/LinkPv.lua | 46 | 31163 | do
local function check_member(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[tostring(msg.to.id)] = {
... | gpl-2.0 |
wez2020/roh | plugins/inrealm.lua | 287 | 25005 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
githubtelebot/Bot-telebot | plugins/MAP.lua | 9 | 2677 | do
local api_key = nil
local base_api = "https://maps.googleapis.com/maps/api"
local function get_staticmap(area)
local api = base_api.."/staticmap?"
local lat,lng,acc,types = get_latlong(area)
local scale = types[1]
if scale=="locality" then
zoom=8
elseif scale=="country" then
zoom=4
else
zoom = 13
end
l... | gpl-2.0 |
gnosygnu/luaj_xowa | test/lua/errors/stringlibargs.lua | 5 | 4891 | package.path = "?.lua;test/lua/errors/?.lua"
require 'args'
-- arg type tests for string library functions
-- string.byte
banner('string.byte')
checkallpass('string.byte',{somestring})
checkallpass('string.byte',{somestring,somenumber})
checkallpass('string.byte',{somestring,somenumber,somenumber})
checkallerrors('st... | mit |
sbuettner/kong | kong/constants.lua | 3 | 1191 | local VERSION = "0.4.1"
return {
NAME = "kong",
VERSION = VERSION,
ROCK_VERSION = VERSION.."-1",
SYSLOG = {
ADDRESS = "kong-hf.mashape.com",
PORT = 61828,
API = "api"
},
CLI = {
GLOBAL_KONG_CONF = "/etc/kong/kong.yml",
NGINX_CONFIG = "nginx.conf",
NGINX_PID = "kong.pid",
DNSMASQ... | mit |
Nathan22Miles/sile | languages/id.lua | 4 | 2459 | SILE.hyphenator.languages["id"] = {};
SILE.hyphenator.languages["id"].patterns =
{
"a1",
"e1",
"i1",
"o1",
"u1",
-- allow hyphens after vowels
"2b1d",
"2b1j",
"2b1k",
"2b1n",
"2b1s",
"2b1t",
"2c1k",
"2c1n",
"2d1k",
"2d1n",
"2d1p",
"2f1d",
"2f1k",
"2f1n",
"2f1t",
"2g1g",
"2g1k",
"2g1n",
"2h1k",
"2h1l",
"2h1m",
"2h1n"... | mit |
Snazz2001/fbcunn | examples/imagenet/models/overfeat_fbcunn.lua | 8 | 1822 | require 'fbcunn'
require 'cudnn'
function createModel(nGPU)
local features = nn.Sequential()
features:add(cudnn.SpatialConvolution(3, 96, 11, 11, 4, 4))
features:add(cudnn.ReLU(true))
features:add(cudnn.SpatialMaxPooling(2, 2, 2, 2))
features:add(nn.SpatialConvolutionCuFFT(96, 256, 5, 5, 1, 1))
fea... | bsd-3-clause |
AdamGagorik/darkstar | scripts/globals/weaponskills/skullbreaker.lua | 11 | 1493 | -----------------------------------
-- Skullbreaker
-- Club weapon skill
-- Skill level: 150
-- Lowers enemy's INT. Chance of lowering INT varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Snow Gorget & Aqua Gorget.
-- Aligned with the Snow Belt & Aqua Belt.
-- Element: None
-- Modifiers: STR:100%
--... | gpl-3.0 |
mynameiscraziu/karizma | plugins/help.lua | 337 | 5009 | do
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 |
D-m-L/evonara | modules/libs/3d2/lib/math/vec3.lua | 1 | 6231 | -- Copyright (C) 2012 Nicholas Carlson
--
-- 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, publi... | mit |
AdamGagorik/darkstar | scripts/globals/items/cone_of_homemade_gelato.lua | 18 | 1113 | -----------------------------------------
-- ID: 5223
-- Item: cone_of_homemade_gelato
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Intelligence 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
----... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Mearuru.lua | 13 | 1059 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Mearuru
-- Type: Standard NPC
-- @zone: 94
-- @pos 153.798 -1 153.712
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-----... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Windurst_Waters/npcs/Hakeem.lua | 53 | 1824 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Hakeem
-- Type: Cooking Image Support
-- @pos -123.120 -2.999 65.472 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requir... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Riverne-Site_A01/mobs/Hippogryph.lua | 8 | 1639 | -----------------------------------
-- Area: Riverne Site A01
-- MOB: Hippogryph
-----------------------------------
-----------------------------------
-- onMobRoam
-----------------------------------
function onMobRoam(mob)
local Heliodromos_Table =
{
16900110,
16900111,
16900112
... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/spells/bluemagic/animating_wail.lua | 28 | 1226 | -----------------------------------------
-- Spell: Animating Wail
-- Increases attack speed
-- Spell cost: 53 MP
-- Monster Type: Undead
-- Spell Type: Magical (Wind)
-- Blue Magic Points: 5
-- Stat Bonus: HP+20
-- Level: 79
-- Casting Time: 2 Seconds
-- Recast Time: 45 Seconds
-- 5 minutes
--
-- Combos: Dual Wield
-... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Ranguemont_Pass/npcs/Grounds_Tome.lua | 30 | 1100 | -----------------------------------
-- Area: Ranguemont Pass
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/items/dish_of_spaghetti_pescatora.lua | 18 | 1653 | -----------------------------------------
-- ID: 5191
-- Item: dish_of_spaghetti_pescatora
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health % 15
-- Health Cap 150
-- Vitality 3
-- Mind -1
-- Defense % 22
-- Defense Cap 65
-- Store TP 6
-----------------------------------------
requi... | gpl-3.0 |
kahluamods/kore | Libs/LibDeformat-3.0.lua | 3 | 9216 | --[[
Name: LibDeformat-3.0
Author(s): ckknight (ckknight@gmail.com)
Website: http://www.wowace.com/projects/libdeformat-3-0/
Description: A library to convert a post-formatted string back to its original arguments given its format string.
License: MIT
]]
local LibDeformat = LibStub:NewLibrary("LibDeformat-3.0", 1)
if... | apache-2.0 |
Nathan22Miles/sile | lua-libraries/unicode-bidi-algorithm.lua | 2 | 12512 | bidi = bidi or { }
bidi.module = {
name = "bidi",
version = 0.003,
date = "2011/09/05",
description = "Unicode Bidirectional Algorithm implementation for LuaTeX",
author = "Khaled Hosny",
copyright = "Khaled Hosny",
license = "CC0",
}
if not modules then modul... | mit |
AdamGagorik/darkstar | scripts/zones/La_Theine_Plateau/npcs/Coumaine.lua | 27 | 1692 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Coumaine
-- Type: Chocobo Vendor
-----------------------------------
require("scripts/globals/chocobo");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/globals/status");
--------------------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/items/eel_kabob.lua | 18 | 1258 | -----------------------------------------
-- ID: 4457
-- Item: eel_kabob
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 4
-- Mind -3
-- Evasion 5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChe... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Castle_Oztroja/TextIDs.lua | 15 | 2162 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6564; -- You cannot obtain the item <item>. Come back after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 6568; -- You cannot obtain the #. Try trading again after sorting your inventory.
ITEM_OBTAINED = 6569; -- Ob... | gpl-3.0 |
D-m-L/evonara | modules/heroes/cam.lua | 1 | 6510 | cam = {}
function cam:init(target1, target2)
self.tx,self.ty = 0,0
self.alt = 100
self.mode = "one"
self.lastmode = "one"
self.target1 = target1
self.target2 = target2
self.zoom = 1
self.zit = 6
self.zsteps = {.042, .12, .2, .4, .6, 1, 1.4, 2, 3.4, 4, 8}
self.ox = 0
self.oy = 0
self.r = 0
self.fps... | mit |
AdamGagorik/darkstar | scripts/globals/items/melon_snowcone.lua | 18 | 1219 | -----------------------------------------
-- ID: 5712
-- Item: Melon Snowcone
-- Food Effect: 5 Min, All Races
-----------------------------------------
-- MP % 10 Cap 200
-- HP Healing 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCh... | gpl-3.0 |
Hostle/luci | modules/luci-base/luasrc/dispatcher.lua | 1 | 21086 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008-2015 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local sys = require "luci.sys"
local util = require "luci.util"
local http = require "luci.http"
local nixio = require "nixi... | apache-2.0 |
rinstrum/LUA-LIB | src/rinLibrary/K400USB.lua | 2 | 13147 | -------------------------------------------------------------------------------
--- USB Helper Infrastructure.
-- Support routines to provide a semi-standard interface to USB file copying
-- and package installation.
-- @module rinLibrary.Device.USB
-- @author Pauli
-- @copyright 2014 Rinstrum Pty Ltd
-----------------... | gpl-3.0 |
TrurlMcByte/docker-prosody | etc/prosody-modules/mod_auth_phpbb3/mod_auth_phpbb3.lua | 1 | 8699 | -- phpbb3 authentication backend for Prosody
--
-- Copyright (C) 2011 Waqas Hussain
--
local log = require "util.logger".init("auth_sql");
local new_sasl = require "util.sasl".new;
local nodeprep = require "util.encodings".stringprep.nodeprep;
local saslprep = require "util.encodings".stringprep.saslprep;
local DBI = ... | mit |
rinstrum/LUA-LIB | src/autostart.lua | 2 | 5603 | -------------------------------------------------------------------------------
--- Autostart support and failure recovery.
--
-- This can never be called from an application, it exists to start applications
-- only.
--
-- @module autostart
-- @author Pauli
-- @copyright 2014 Rinstrum Pty Ltd
--------------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/weaponskills/vidohunir.lua | 6 | 2086 | -----------------------------------
-- Vidohunir
-- Staff weapon skill
-- Skill Level: N/A
-- Lowers target's magic defense. Duration of effect varies with TP. Laevateinn: Aftermath effect varies with TP.
-- Reduces enemy's magic defense by 10%.
-- Available only after completing the Unlocking a Myth (Black Mage) quest... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/Treasure_Chest.lua | 13 | 3257 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Treasure Chest
-- @zone 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/treasure")... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Chateau_dOraguille/npcs/Rahal.lua | 13 | 6274 | -----------------------------------
-- Area: Chateau d'Oraguille
-- NPC: Rahal
-- Involved in Quests: The Holy Crest, Lure of the Wildcat (San d'Oria)
-- @pos -28 0.1 -6 233
-----------------------------------
package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil;
-----------------------------------
requir... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Cirdas_Caverns_U/Zone.lua | 19 | 1071 | -----------------------------------
--
-- Zone: Cirdas Caverns U
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Cirdas_Caverns_U/TextIDs"] = nil;
require("scripts/zones/Cirdas_Caverns_U/TextIDs");
-----------------------------------
-- onInitialize
-------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/spells/fire_carol.lua | 27 | 1532 | -----------------------------------------
-- Spell: Fire Carol
-- Increases fire resistance for party members within the area of effect.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Western_Altepa_Desert/npcs/_3h7.lua | 13 | 1925 | -----------------------------------
-- Area: Western Altepa Desert
-- NPC: _3h7 (Emerald Column)
-- Notes: Mechanism for Altepa Gate
-- @pos -775 2 -460 125
-----------------------------------
package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/z... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Great_Axe.lua | 7 | 1515 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Animated Great Axe
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
function onMobE... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Xarcabard/Zone.lua | 19 | 3027 | -----------------------------------
--
-- Zone: Xarcabard (112)
--
-----------------------------------
package.loaded[ "scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Xarcabard/TextIDs");
require("scripts/globals/icanheararainbow");
require("scripts/globals/keyitems... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Moh_Gates/Zone.lua | 16 | 1174 | -----------------------------------
--
-- Zone: Moh Gates
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Moh_Gates/TextIDs"] = nil;
require("scripts/zones/Moh_Gates/TextIDs");
-----------------------------------
-- onInitialize
----------------------------... | gpl-3.0 |
sjznxd/lc-20130204 | modules/admin-mini/luasrc/model/cbi/mini/dhcp.lua | 82 | 2998 | --[[
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 |
AdamGagorik/darkstar | scripts/zones/Windurst_Waters/npcs/Npopo.lua | 13 | 1468 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Npopo
-- Type: Standard NPC
-- @pos -35.464 -5.999 239.120 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scr... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Quicksand_Caves/Zone.lua | 12 | 6617 | -----------------------------------
--
-- Zone: Quicksand_Caves (208)
--
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/zone");
requ... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/The_Shrouded_Maw/bcnms/waking_dreams.lua | 30 | 2828 | -----------------------------------
-- Area: The_Shrouded_Maw
-- Name: waking_dreams
-----------------------------------
package.loaded["scripts/zones/The_Shrouded_Maw/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/keyitems");
require("scripts/globals/q... | gpl-3.0 |
Nathan22Miles/sile | languages/ro.lua | 4 | 5473 | SILE.hyphenator.languages["ro"] = {};
SILE.hyphenator.languages["ro"].patterns =
{
".a3ic",
".a4n3is",
".a2z",
".cre1",
".de2aj",
".de2z1",
".g4",
".i2a",
".i2e",
".i3ț",
".i4u3",
".i3v",
".î4m",
".n2",
".ni2",
".p4",
".pre3ș",
".s4",
".ș4",
".u4i",
".u5ni",
".z2",
"a1",
"2acă",
"achi5",
"a3e",
"afo3",
"a3i2a",
"a3i... | mit |
chfg007/skynet | service/cdummy.lua | 94 | 1797 | local skynet = require "skynet"
require "skynet.manager" -- import skynet.launch, ...
local globalname = {}
local queryname = {}
local harbor = {}
local harbor_service
skynet.register_protocol {
name = "harbor",
id = skynet.PTYPE_HARBOR,
pack = function(...) return ... end,
unpack = skynet.tostring,
}
skynet.reg... | mit |
mosy210/PERSION-BOT | plugins/isX.lua | 605 | 2031 | local https = require "ssl.https"
local ltn12 = require "ltn12"
local function request(imageUrl)
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local api_key = mashape.api_key
if ... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/Jugner_Forest_[S]/npcs/Roiloux_RK.lua | 13 | 1046 | -----------------------------------
-- Area: Jugner Forest (S)
-- NPC: Roiloux, R.K.
-- Type: Campaign Arbiter
-- @pos 70.493 -0.602 -9.185 82
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Jugner_Fore... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Upper_Jeuno/npcs/Shiroro.lua | 13 | 1357 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Shiroro
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Upper_Jeuno/TextIDs");
require("scripts/globals/quests");
------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/La_Theine_Plateau/npcs/Narvecaint.lua | 13 | 1768 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Narvecaint
-- Involved in Mission: The Rescue Drill
-- @pos -263 22 129 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions"... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.