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 |
|---|---|---|---|---|---|
iRGBit/Dato-Core | src/unity/python/graphlab/lua/pl/func.lua | 13 | 10437 | --- Functional helpers like composition, binding and placeholder expressions.
-- Placeholder expressions are useful for short anonymous functions, and were
-- inspired by the Boost Lambda library.
--
-- > utils.import 'pl.func'
-- > ls = List{10,20,30}
-- > = ls:map(_1+1)
-- {11,21,31}
--
-- They can also b... | agpl-3.0 |
rpetit3/darkstar | scripts/globals/items/bowl_of_quadav_stew.lua | 18 | 1377 | -----------------------------------------
-- ID: 4569
-- Item: Bowl of Quadav Stew
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Agility -4
-- Vitality 2
-- Defense % 17
-- Defense Cap 60
-----------------------------------------
require("scripts/globals/status");
--------------------... | gpl-3.0 |
emoon/docking_system | bin/macosx/tundra/scripts/tundra/environment.lua | 28 | 6748 | module(..., package.seeall)
local util = require 'tundra.util'
local path = require 'tundra.path'
local depgraph = require 'tundra.depgraph'
local nenv = require 'tundra.environment.native'
local os = require 'os'
local global_setup = {}
--[==[
The environment is a holder for variables and their a... | bsd-3-clause |
MHK-BOT/copy | system/libs/url.lua | 567 | 9183 | --[[
Copyright 2004-2007 Diego Nehab.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute,... | gpl-2.0 |
root4r08/RoOt3r08 | libs/url.lua | 567 | 9183 | --[[
Copyright 2004-2007 Diego Nehab.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute,... | gpl-2.0 |
nokizorque/ucd | UCDsettings/settings.lua | 1 | 6833 | local settings = {
-- ["category"] = {["settingName"] = {default = value, len = length, chars = {{from, to}, individual}}}
-- USE STRING.BYTE(CHAR) FOR ASII NUMBERS OF CHARACTERS
-- A-Z = 65, 90 | a-z 97, 122 | 0-9 = 48, 57 | 1-9 = 49, 57
-- EXAMPLES:
-- ["test1"] = {
-- ["test11"] = {name = "Test 11", desc = "W... | mit |
schidler/ionic-luci | applications/luci-app-mjpg-streamer/luasrc/model/cbi/mjpg-streamer.lua | 52 | 7621 | -- Copyright 2014 Roger D <rogerdammit@gmail.com>
-- Licensed to the public under the Apache License 2.0.
m = Map("mjpg-streamer", "MJPG-streamer", translate("mjpg streamer is a streaming application for Linux-UVC compatible webcams"))
--- General settings ---
section_gen = m:section(TypedSection, "mjpg-streamer", t... | apache-2.0 |
BooM-amour/TM_VIRUS | plugins/invite.lua | 393 | 1225 | 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 |
tonkah/Browser | config/theme.lua | 9 | 1668 | --------------------------
-- Default luakit theme --
--------------------------
local theme = {}
-- Default settings
theme.font = "monospace normal 9"
theme.fg = "#fff"
theme.bg = "#000"
-- Genaral colours
theme.success_fg = "#0f0"
theme.loaded_fg = "#33AADD"
theme.error_fg = "#FFF"
theme.error_bg = "#F00"
--... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/spells/kurayami_ichi.lua | 27 | 1145 | -----------------------------------------
-- Spell: Kurayami:Ichi
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,targe... | gpl-3.0 |
omid1212/wez | plugins/tweet.lua | 634 | 7120 | local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local twitter_url = "https://api.twitter.com/1.1/statuses/user_timeline.json"
local client = OAuth.new(consumer_key,
consumer_secret,
... | gpl-2.0 |
vlapsley/outback | mods/bones/init.lua | 1 | 8254 | -- Minetest 0.4 mod: bones
-- See README.txt for licensing and other information.
bones = {}
local function is_owner(pos, name)
local owner = minetest.get_meta(pos):get_string("owner")
if owner == "" or owner == name or minetest.check_player_privs(name, "protection_bypass") then
return true
end
return false
end... | lgpl-2.1 |
rpetit3/darkstar | scripts/globals/spells/bind.lua | 27 | 1125 | -----------------------------------------
-- Spell: Bind
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
... | gpl-3.0 |
vfedoroff/prosody-modules | mod_watchuntrusted/mod_watchuntrusted.lua | 20 | 2595 | local jid_prep = require "util.jid".prep;
local secure_auth = module:get_option_boolean("s2s_secure_auth", false);
local secure_domains, insecure_domains =
module:get_option_set("s2s_secure_domains", {})._items, module:get_option_set("s2s_insecure_domains", {})._items;
local untrusted_fail_watchers = module:get_opti... | mit |
tvandijck/premake-core | scripts/package.lua | 7 | 4407 | ---
-- Create a source or binary release package.
---
---
-- Helper function: run a command while hiding its output.
---
local function execQuiet(cmd, ...)
cmd = string.format(cmd, ...) .. " > _output_.log 2> _error_.log"
local z = os.execute(cmd)
os.remove("_output_.log")
os.remove("_error_.log")
return ... | bsd-3-clause |
TakingInitiative/wesnoth | data/ai/lua/retreat.lua | 3 | 8254 | --[=[
Functions to support the retreat of injured units
]=]
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 retreat_functions = {}
function retreat_functions.min_h... | gpl-2.0 |
opentechinstitute/luci-commotion-linux | libs/nixio/docsrc/nixio.fs.lua | 156 | 7907 | --- Low-level and high-level filesystem manipulation library.
module "nixio.fs"
--- Check user's permission on a file.
-- @class function
-- @name nixio.fs.access
-- @param path Path
-- @param mode1 First Mode to check ["f", "r", "w", "x"]
-- @param ... More Modes to check [-"-]
-- @return true
--- Strip the dire... | apache-2.0 |
Kowh/RareTimer | libs/GeminiConfig/GeminiConfigGUI-1.0/widgets/GeminiConfigGUIWidget-MultiLineEditBox.lua | 2 | 11423 | -- -*- lua-indent-level: 4; -*-
local Type, Version = "MultiLineEditBox", 27
local GeminiConfigGUIPkg = Apollo.GetPackage("Gemini:ConfigGUI-1.0")
local GeminiConfigGUI = GeminiConfigGUIPkg and GeminiConfigGUIPkg.tPackage
if not GeminiConfigGUI or (GeminiConfigGUI:GetWidgetVersion(Type) or 0) >= Version then return end
... | mit |
ManStache/PokeBotBad | BizHawk-1.11.6/Lua/NES/NinjaGaiden_Hitbox.lua | 7 | 2810 | --Author Pasky13
--Player
local px = 0x0086
local py = 0x008A
local projxbase = 0x4BB -- Object X speed base is 0x4C1
local projybase = 0x4BE -- Object Y speed base ix 0x4C4
--Enemies
local ex = 0x0460
local ey = 0x0480
local efacing = 0x440
local etype = 0x0438
--Objects
local ox = 0x4D9
local oy = 0x4E1
memory... | mit |
root4r08/RoOt3r08 | plugins/cleanmsg.lua | 2 | 1340 | --[[
#
#ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#:((
# For More Information ....!
# Developer : reza < @Yagop >
# our channel: @Ntflight
# Version: 1.1
#:))
#ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#
]]
local func... | gpl-2.0 |
gligneul/FastLua | benchmarks/mandel.lua | 1 | 1159 | local Complex={type="package"}
local function complex(x,y)
return setmetatable({ re=x, im=y }, Complex.metatable)
end
function Complex.conj(x,y)
return complex(x.re,-x.im)
end
function Complex.norm2(x)
local n=Complex.mul(x,Complex.conj(x))
return n.re
end
function Complex.abs(x)
return sqrt(Co... | mit |
padrinoo1/geek | plugins/plugins.lua | 285 | 6096 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Dynamis-Valkurm/mobs/Cirrate_Christelle.lua | 23 | 4336 | -----------------------------------
-- Area: Dynamis Valkurm
-- MOB: Cirrate_Christelle
-----------------------------------
package.loaded["scripts/zones/Dynamis-Valkurm/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Valkurm/TextIDs");
require("... | gpl-3.0 |
atkinson137/lootmasterplus | Libs/AceSerializer-3.0/AceSerializer-3.0.lua | 6 | 9050 | --- **AceSerializer-3.0** can serialize any variable (except functions or userdata) into a string format,
-- that can be send over the addon comm channel. AceSerializer was designed to keep all data intact, especially
-- very large numbers or floating point numbers, and table structures. The only caveat currently is, ... | mit |
rpetit3/darkstar | scripts/globals/abilities/light_shot.lua | 27 | 2802 | -----------------------------------
-- Ability: Light Shot
-- Consumes a Light Card to enhance light-based debuffs. Additional effect: Light-based Sleep
-- Dia Effect: Defense Down Effect +5% and DoT + 1
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require... | gpl-3.0 |
Tesla-Redux/android_external_skia | tools/lua/scrape_dashing_full.lua | 159 | 4610 | local canvas -- holds the current canvas (from startcanvas())
--[[
startcanvas() is called at the start of each picture file, passing the
canvas that we will be drawing into, and the name of the file.
Following this call, there will be some number of calls to accumulate(t)
where t is a tabl... | bsd-3-clause |
TakingInitiative/wesnoth | data/campaigns/The_Rise_Of_Wesnoth/ai/ca_aggressive_attack_no_suicide.lua | 7 | 2009 | local AH = wesnoth.require "ai/lua/ai_helper.lua"
local ca_aggressive_attack_no_suicide = {}
function ca_aggressive_attack_no_suicide:evaluation(cfg, data)
local units = wesnoth.get_units {
side = wesnoth.current.side,
formula = 'attacks_left > 0'
}
--print('#units', #units)
if (not u... | gpl-2.0 |
rpetit3/darkstar | scripts/globals/items/forest_carp.lua | 18 | 1332 | -----------------------------------------
-- ID: 4289
-- Item: forest_carp
-- Food Effect: 30Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
------... | gpl-3.0 |
msva/verse | client.lua | 1 | 5498 | local verse = require "verse";
local stream = verse.stream_mt;
local jid_split = require "util.jid".split;
local adns = require "net.adns";
local lxp = require "lxp";
local st = require "util.stanza";
-- Shortcuts to save having to load util.stanza
verse.message, verse.presence, verse.iq, verse.stanza, verse.reply, v... | mit |
schidler/ionic-luci | applications/luci-app-polipo/luasrc/model/cbi/polipo.lua | 45 | 5753 | -- Copyright 2008 Aleksandar Krsteski <alekrsteski@gmail.com>
-- Licensed to the public under the Apache License 2.0.
m = Map("polipo", translate("Polipo"),
translate("Polipo is a small and fast caching web proxy."))
-- General section
s = m:section(NamedSection, "general", "polipo", translate("Proxy"))
s:tab("gene... | apache-2.0 |
dwmw2/luci | applications/luci-app-polipo/luasrc/model/cbi/polipo.lua | 45 | 5753 | -- Copyright 2008 Aleksandar Krsteski <alekrsteski@gmail.com>
-- Licensed to the public under the Apache License 2.0.
m = Map("polipo", translate("Polipo"),
translate("Polipo is a small and fast caching web proxy."))
-- General section
s = m:section(NamedSection, "general", "polipo", translate("Proxy"))
s:tab("gene... | apache-2.0 |
tvandijck/premake-core | modules/vstudio/tests/vc2010/test_globals.lua | 5 | 9507 | --
-- tests/actions/vstudio/vc2010/test_globals.lua
-- Validate generation of the Globals property group.
-- Copyright (c) 2011-2014 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vstudio_vs2010_globals")
local vc2010 = p.vstudio.vc2010
--
-- Setup
--
local wks, prj
fun... | bsd-3-clause |
nokizorque/ucd | UCDjobsTable/jobsTable.lua | 1 | 9925 | local jobsTable =
{
-- Other jobs
["Gangster"] =
{
team = "Gangsters",
},
["Criminal"] =
{
team = "Criminals",
},
[""] =
{
team = "Citizens",
},
["Unoccupied"] =
{
team = "Unoccupied",
},
-- Proper jobs
["Aviator"] =
{
team = "Citizens",
markers =
{
{x = -1868.595, y = 46.0555, ... | mit |
dkogan/notion | etc/look_dusky.lua | 6 | 2071 | -- look_dusky.lua drawing engine configuration file for Notion.
if not gr.select_engine("de") then return end
de.reset()
de.defstyle("*", {
shadow_colour = "#404040",
highlight_colour = "#707070",
background_colour = "#505050",
foreground_colour = "#a0a0a0",
padding_pixels = 1,
highlight_pixe... | lgpl-2.1 |
rpetit3/darkstar | scripts/zones/Kamihr_Drifts/npcs/HomePoint#1.lua | 27 | 1267 | -----------------------------------
-- Area: Kamihr Drifts
-- NPC: HomePoint#1
-- @pos 210 20.299 315 267
-----------------------------------
package.loaded["scripts/zones/Kamihr_Drifts/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Kamihr_Drifts/TextIDs");
require("scripts/globals/home... | gpl-3.0 |
lukego/snabbswitch | src/lib/protocol/gre.lua | 7 | 4929 | module(..., package.seeall)
local ffi = require("ffi")
local C = ffi.C
local header = require("lib.protocol.header")
local lib = require("core.lib")
local bitfield = lib.bitfield
local ipsum = require("lib.checksum").ipsum
local ntohs, htons, ntohl, htonl =
lib.ntohs, lib.htons, lib.ntohl, lib.htonl
-- GRE uses a v... | apache-2.0 |
lexa/awesome | lib/gears/surface.lua | 6 | 2272 | ---------------------------------------------------------------------------
-- @author Uli Schlachter
-- @copyright 2012 Uli Schlachter
-- @release @AWESOME_VERSION@
-- @module gears.surface
---------------------------------------------------------------------------
local setmetatable = setmetatable
local type = type
... | gpl-2.0 |
martinrotter/textilosaurus | src/libtextosaurus/3rd-party/scintilla-lt/lexlua/javascript.lua | 2 | 1929 | -- Copyright 2006-2019 Mitchell mitchell.att.foicica.com. See License.txt.
-- JavaScript LPeg lexer.
local lexer = require('lexer')
local token, word_match = lexer.token, lexer.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local lex = lexer.new('javascript')
-- Whitespace.
lex:add_rule('whitespace', token(lexer.... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Bastok-Jeuno_Airship/Zone.lua | 32 | 1399 | -----------------------------------
--
-- Zone: Bastok-Jeuno_Airship
--
-----------------------------------
-----------------------------------
-- onInitialize
-----------------------------------
function onInitialize(zone)
end;
-----------------------------------
-- onZoneIn
-----------------------------------
fu... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/RuAun_Gardens/npcs/Field_Manual.lua | 29 | 1067 | -----------------------------------
-- Field Manual
-- Area: RuAun Gardens
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/fieldsofvalor");
-----------------------------------
-- onTrigger Action
--------------------------------... | gpl-3.0 |
SnakeSVx/sbep | lua/autorun/sbep_part_data.lua | 2 | 136814 | --[[ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PART ASSEMBLER
------... | apache-2.0 |
sepehr5000/NOD32-BOT | plugins/kickall.lua | 125 | 1670 | local function kick_user(user_id, chat_id)
local chat = 'chat#id'..chat_id
local user = 'user#id'..user_id
chat_del_user(chat, user, ok_cb, true)
end
local function returnids(cb_extra, success, result)
local receiver = cb_extra.receiver
local chat_id = result.id
local chatname = result.print_name
loc... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Selbina/npcs/Zaldon.lua | 16 | 73227 | -----------------------------------
-- Area: Selbina
-- NPC: Zaldon
-- Involved in Quests: Under the sea, A Boy's Dream
-- Starts and Finishes: Inside the Belly
-- @pos -13 -7 -5 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require(... | gpl-3.0 |
victorbriz/omim | 3party/osrm/osrm-backend/profile.lua | 25 | 13034 | -- Begin of globals
--require("lib/access") --function temporarily inlined
barrier_whitelist = { ["cattle_grid"] = true, ["border_control"] = true, ["checkpoint"] = true, ["toll_booth"] = true, ["sally_port"] = true, ["gate"] = true, ["lift_gate"] = true, ["no"] = true, ["entrance"] = true }
access_tag_whitelist = { [... | apache-2.0 |
rpetit3/darkstar | scripts/globals/items/bastore_sweeper.lua | 18 | 1502 | -----------------------------------------
-- ID: 5473
-- Item: Bastore Sweeper
-- Food Effect: 5 Min, Mithra only
-----------------------------------------
-- Dexterity -5
-- Vitality +3
-- Defense +15% Cap 50
-----------------------------------------
require("scripts/globals/status");
-------------------------------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Count_Zaebos.lua | 23 | 1603 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Count Zaebos
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
----------------------... | gpl-3.0 |
opentechinstitute/luci-commotion-linux | libs/lucid-http/luasrc/lucid/http/server.lua | 50 | 14678 | --[[
LuCId HTTP-Slave
(c) 2009 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$
]]--
local ipairs, pairs =... | apache-2.0 |
rpetit3/darkstar | scripts/zones/Konschtat_Highlands/npcs/Stone_Monument.lua | 13 | 1287 | -----------------------------------
-- Area: Konschtat Highlands
-- NPC: Stone Monument
-- Involved in quest "An Explorer's Footsteps"
-- @pos -102.355 7.981 253.706 108
-----------------------------------
package.loaded["scripts/zones/Konschtat_Highlands/TextIDs"] = nil;
-----------------------------------
requi... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Port_Windurst/npcs/Hakkuru-Rinkuru.lua | 25 | 7634 | -----------------------------------
-- Area: Port Windurst
-- NPC: Hakkuru-Rinkuru
-- Involved In Quest: Making Amends
-- Starts and Ends Quest: Wonder Wands
-- @pos -111 -4 101 240
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
package.loaded["scripts/globals/missions... | gpl-3.0 |
tommo/gii | lib/mock/asset/tools/SpineAtlas2Json.lua | 1 | 2179 | local function gsplit(s, sep, plain )
sep = sep or '\n'
local start = 1
local done = false
local function pass(i, j, ...)
if i then
local seg = s:sub(start, i - 1)
start = j + 1
return seg, ...
else
done = true
return s:sub(start)
end
end
return function()
if do... | mit |
bacsmar/Urho3D | bin/Data/LuaScripts/25_Urho2DParticle.lua | 5 | 4746 | -- Urho2D particle example.
-- This sample demonstrates:
-- - Creating a 2D scene with particle
-- - Displaying the scene using the Renderer subsystem
-- - Handling mouse move to move particle
require "LuaScripts/Utilities/Sample"
local particleNode = nil
function Start()
-- Execute the common startu... | mit |
greasydeal/darkstar | scripts/zones/Upper_Jeuno/npcs/Sibila-Mobla.lua | 34 | 1377 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Sibila-Mobla
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Upper_Jeuno/TextIDs");
require("scripts/globals/quests");... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Jugner_Forest/npcs/Takamoto_IM.lua | 14 | 3322 | -----------------------------------
-- Area: Jugner Forest
-- NPC: Takamoto, I.M.
-- Outpost Conquest Guards
-- @pos 60.087 -0.602 -11.847 104
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
requi... | gpl-3.0 |
gwlim/luci | applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-chan.lua | 80 | 1726 | --[[
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 |
ibm2431/darkstar | scripts/zones/Northern_San_dOria/npcs/Charlaimagnat.lua | 9 | 2517 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Charlaimagnat
-- Standard Info NPC
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/globals/keyitems");
local ID = require("scripts/zones/Northern_San_dOria/IDs");
------... | gpl-3.0 |
bittorf/luci | applications/luci-app-ahcp/luasrc/controller/ahcp.lua | 73 | 1282 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.ahcp", package.seeall)
function index()
if not nixio.fs.access("/etc/config/ahcpd") then
return
end
entry({"admin", "network", "ahcpd"}, cbi("ahcp"), _("AHCP Server"), 90)
entry({... | apache-2.0 |
naclander/tome | game/modules/tome/data/zones/south-beach/grids.lua | 3 | 2354 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- 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, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
ricker75/Global-Server | data/npc/scripts/Mortis.lua | 1 | 4293 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) ... | gpl-2.0 |
greasydeal/darkstar | scripts/globals/spells/foe_lullaby.lua | 11 | 1176 | -----------------------------------------
-- Spell: Foe Lullaby
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Vanguard_Eye.lua | 17 | 2925 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Vanguard_Eye
-- Map Position: http://images.wikia.com/ffxi/images/c/cc/Xar.jpg
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/dynamis");
-----------------------------------
-- onMobInitialize Actio... | gpl-3.0 |
icyxp/kong | spec/03-plugins/10-key-auth/01-api_spec.lua | 2 | 9874 | local cjson = require "cjson"
local helpers = require "spec.helpers"
describe("Plugin: key-auth (API)", function()
local consumer
local admin_client
setup(function()
helpers.run_migrations()
assert(helpers.dao.apis:insert {
name = "keyauth1",
upstream_url = helpers.mock_upstream_url,... | apache-2.0 |
LegionXI/darkstar | scripts/zones/Lebros_Cavern/instances/wamoura_farm_raid.lua | 29 | 3949 | -----------------------------------
--
-- Assault: Wamoura Farm Raid
--
-----------------------------------
require("scripts/zones/Lebros_Cavern/IDs");
-----------------------------------
-- afterInstanceRegister
-----------------------------------
function afterInstanceRegister(player)
local instance = player... | gpl-3.0 |
kai771/kindlepdfviewer | unireader.lua | 1 | 111502 | require "keys"
require "settings"
require "selectmenu"
require "commands"
require "helppage"
require "dialog"
require "defaults"
UniReader = {
-- "constants":
ZOOM_BY_VALUE = 0,
ZOOM_FIT_TO_PAGE = -1,
ZOOM_FIT_TO_PAGE_WIDTH = -2,
ZOOM_FIT_TO_PAGE_HEIGHT = -3,
ZOOM_FIT_TO_CONTENT = -4,
ZOOM_FIT_TO_CONTENT_WIDTH ... | gpl-3.0 |
nicholas-leonard/rnn | examples/sequence-to-one.lua | 7 | 2189 | require 'rnn'
-- hyper-parameters
batchSize = 8
rho = 10 -- sequence length
hiddenSize = 100
nIndex = 100 -- input words
nClass = 7 -- output classes
lr = 0.1
-- build simple recurrent neural network
r = nn.Recurrent(
hiddenSize, nn.Identity(),
nn.Linear(hiddenSize, hiddenSize), nn.Sigmoid(),
rho
)
rnn ... | bsd-3-clause |
greasydeal/darkstar | scripts/globals/items/bataquiche_+1.lua | 35 | 1474 | -----------------------------------------
-- ID: 5169
-- Item: Bataquiche +1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Magic 10
-- Agility 1
-- Vitality -1
-- Ranged ATT % 7
-- Ranged ATT Cap 20
-----------------------------------------
require("scripts/globals/status");... | gpl-3.0 |
mahdikord/mahdibk9 | plugins/help.lua | 290 | 1653 | do
-- Returns true if is not empty
local function has_usage_data(dict)
if (dict.usage == nil or dict.usage == '') then
return false
end
return true
end
-- Get commands for that plugin
local function plugin_help(name)
local plugin = plugins[name]
if not plugin then return nil end
local text = ""
if ... | gpl-2.0 |
ibm2431/darkstar | scripts/zones/Bhaflau_Thickets/npcs/Kamih_Mapokhalam.lua | 12 | 1304 | -----------------------------------
-- Area: Bhaflau Thickets
-- NPC: Kamih Mapokhalam
-- 20 -30 597 z 52
-----------------------------------
require("scripts/globals/keyitems");
local ID = require("scripts/zones/Bhaflau_Thickets/IDs");
-----------------------------------
function onTrade(player,npc,trade)
count... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/South_Gustaberg/Zone.lua | 6 | 4514 | -----------------------------------
--
-- Zone: South_Gustaberg (107)
--
-----------------------------------
package.loaded["scripts/zones/South_Gustaberg/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require("scripts/globals/zone");
require("sc... | gpl-3.0 |
alerque/sile | packages/lorem/init.lua | 1 | 5148 | local base = require("packages.base")
local package = pl.class(base)
package._name = "lorem"
local lorem = [[
lorem ipsum dolor sit amet consetetur sadipscing elitr sed diam nonumy
eirmod tempor invidunt ut labore et dolore magna aliquyam erat sed diam
voluptua at vero eos et accusam et justo duo dolores et ea rebum ... | mit |
CuteOne/meta | Libs/DiesalGUI-1.0/Objects/ScrollingMessageFrame.lua | 5 | 10872 | -- $Id: ScrollingMessageFrame.lua 60 2016-11-04 01:34:23Z diesal2010 $
local DiesalGUI = LibStub('DiesalGUI-1.0')
-- ~~| Libraries |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
local DiesalTools = LibStub('DiesalTools-1.0'... | gpl-3.0 |
ibm2431/darkstar | scripts/zones/Apollyon/mobs/NaQba_Chirurgeon.lua | 9 | 1922 | -----------------------------------
-- Area: Apollyon CS
-- Mob: Na'Qba Chirurgeon
-----------------------------------
require("scripts/globals/limbus");
-----------------------------------
function onMobSpawn(mob)
mob:setMobMod(dsp.mobMod.SUPERLINK, mob:getShortID());
end;
function onMobEngaged(mob,target)
... | gpl-3.0 |
alerque/sile | languages/ja.lua | 1 | 7279 | -- "jlreq" refers to http://www.w3.org/TR/jlreq/
-- "JIS" refers to JIS X 4051
local hiragana = function (c) return c > 0x3040 and c <= 0x309f end
local katakana = function (c) return c > 0x30a0 and c <= 0x30ff end
local kanji = function (c) return c >= 0x4e00 and c <= 0x9fcc end
local classes = { -- from jlreq
[0x... | mit |
bittorf/luci | applications/luci-app-aria2/luasrc/model/cbi/aria2.lua | 16 | 7911 | --[[
LuCI - Lua Configuration Interface - Aria2 support
Copyright 2014-2016 nanpuyue <nanpuyue@gmail.com>
Modified by maz-1 <ohmygod19993@gmail.com>
Modified by kuoruan <kuoruan@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
... | apache-2.0 |
ibm2431/darkstar | scripts/globals/spells/bluemagic/mandibular_bite.lua | 8 | 1524 | -----------------------------------------
-- Spell: Mandibular Bite
-- Damage varies with TP
-- Spell cost: 38 MP
-- Monster Type: Vermin
-- Spell Type: Physical (Slashing)
-- Blue Magic Points: 2
-- Stat Bonus: INT+1
-- Level: 44
-- Casting Time: 0.5 seconds
-- Recast Time: 19.25 seconds
-- Skillchain property(ies): I... | gpl-3.0 |
gwlim/luci | protocols/3g/luasrc/model/cbi/admin_network/proto_3g.lua | 74 | 4349 | --[[
LuCI - Lua Configuration Interface
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
local ma... | apache-2.0 |
greasydeal/darkstar | scripts/zones/Norg/npcs/Keal.lua | 17 | 4228 | -----------------------------------
-- Area: Norg
-- NPC: Keal
-- Starts and Ends Quest: It's Not Your Vault
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
re... | gpl-3.0 |
ibm2431/darkstar | scripts/globals/abilities/earth_maneuver.lua | 9 | 1886 | -----------------------------------
-- Ability: Earth Maneuver
-- Enhances the effect of earth attachments. Must have animator equipped.
-- Obtained: Puppetmaster level 1
-- Recast Time: 10 seconds (shared with all maneuvers)
-- Duration: 1 minute
-----------------------------------
require("scripts/globals/status")
re... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Sacrificial_Chamber/Zone.lua | 30 | 1663 | -----------------------------------
--
-- Zone: Sacrificial_Chamber (163)
--
-----------------------------------
package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/miss... | gpl-3.0 |
naclander/tome | game/modules/tome/data/lore/dreadfell.lua | 3 | 12683 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- 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, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
evrooije/beerarchy | mods/00_bt_mobs/mobs_animal/sheep.lua | 1 | 4693 |
local S = mobs.intllib
local all_colours = {
{"black", S("Black"), "#000000b0"},
{"blue", S("Blue"), "#015dbb70"},
{"brown", S("Brown"), "#663300a0"},
{"cyan", S("Cyan"), "#01ffd870"},
{"dark_green", S("Dark Green"), "#005b0770"},
{"dark_grey", S("Dark Grey"), "#30... | lgpl-2.1 |
LegionXI/darkstar | scripts/zones/Pashhow_Marshlands/npcs/Mesachedeau_RK.lua | 14 | 3350 | -----------------------------------
-- Area: Pashhow Marshlands
-- NPC: Mesachedeau, R.K.
-- Type: Outpost Conquest Guards
-- @pos 470.843 23.465 415.520 109
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil;
-----------------------------------
require("scripts/globa... | gpl-3.0 |
drewr/cmd-key-happy | lua-5.1.4/test/life.lua | 888 | 2635 | -- life.lua
-- original by Dave Bollinger <DBollinger@compuserve.com> posted to lua-l
-- modified to use ANSI terminal escape sequences
-- modified to use for instead of while
local write=io.write
ALIVE="¥" DEAD="þ"
ALIVE="O" DEAD="-"
function delay() -- NOTE: SYSTEM-DEPENDENT, adjust as necessary
for i=1,10000 do... | mit |
squeek502/BWAPI-Lua | tests/TestBindings/Lua/TestUpgradeType.lua | 1 | 2730 | function constructors()
unknown = BWAPI.UpgradeType(BWAPI.UpgradeTypes.Enum.Unknown)
weapons = BWAPI.UpgradeType(BWAPI.UpgradeTypes.Enum.Terran_Infantry_Weapons)
end
function equality()
unknown = BWAPI.UpgradeType(BWAPI.UpgradeTypes.Enum.Unknown)
weapons = BWAPI.UpgradeType(BWAPI.UpgradeTypes.Enum.Terran_Infan... | lgpl-3.0 |
ibm2431/darkstar | scripts/globals/items/tavnazian_goby.lua | 11 | 1053 | -----------------------------------------
-- ID: 5130
-- Item: Tavnazian Goby
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 4
-- Mind -4
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
---------------------------------... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/Temenos/mobs/Telchines_Monk.lua | 17 | 1133 | -----------------------------------
-- Area: Temenos N T
-- NPC: Telchines_Monk
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
----------------------... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Port_Bastok/npcs/Kurando.lua | 14 | 2341 | -----------------------------------
-- Area: Port Bastok
-- NPC: Kurando
-- Type: Quest Giver
-- @zone 236
-- @pos -23.887 3.898 0.870
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
------------------------... | gpl-3.0 |
ibm2431/darkstar | scripts/globals/effects/bust.lua | 12 | 1529 | -----------------------------------
--
--
--
-----------------------------------
require("scripts/globals/status")
-----------------------------------
function onEffectGain(target,effect)
if (effect:getSubType() == dsp.mod.DMG) then
target:addMod(dsp.mod.DMG, effect:getPower())
else
if (effect:... | gpl-3.0 |
ibm2431/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/RongeloutsNDistaud.lua | 9 | 1079 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Rongelouts N Distaud
-- !pos 0.067 2 -22 80
-----------------------------------
require("scripts/globals/quests");
-----------------------------------
function onTrade(player,npc,trade)
if (player:getQuestStatus(CRYSTAL_WAR,dsp.quest.id.cr... | gpl-3.0 |
Disslove-bot/D.J-BOT | plugins/groupmanager.lua | 166 | 11272 | -- 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 not is_admin(msg) then
return "You're not admin!"
end
local group_creator = msg.from.print_name
create_group_chat (group_cr... | gpl-2.0 |
greasydeal/darkstar | scripts/zones/Selbina/npcs/Dohdjuma.lua | 34 | 1424 | -----------------------------------
-- Area: Selbina
-- NPC: Dohdjuma
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
require("scripts/globals/shop");
----------... | gpl-3.0 |
DummySphere/AiGD-CaptureTheFlag-lua-pack | api/json.lua | 1 | 26511 |
----------------------------------------------------------------------
-- JSON base
JSON = { null = {}, codec = {} }
function JSON.register(_class, _name, _object_to_table, _table_to_object)
local codec = { class = _class, name = _name, serialize = _object_to_table, unserialize = _table_to_object }
JSON.codec[_cla... | mit |
liguangsheng/dotfiles | .config/nvim/plugin/packer_compiled.lua | 1 | 3760 | -- Automatically generated packer.nvim plugin loader code
if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then
vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"')
return
end
vim.api.nvim_command('packadd packer.nvim')
local no_errors, error_msg = pcal... | mit |
pokemoncentral/wiki-lua-modules | test/Stats.spec.lua | 1 | 1398 | -- "Test cases" for stats
local stats = require('Stats')
-- =========== StatsBox ==============
print(stats.statsBox{args = {
hp = 255,
atk = 5,
def = 10,
spatk = 93,
spdef = 135,
spe = 63,
type1 = 'elettro',
type2 = 'fuoco',
bounds = 'yes',
gen = 2,
listLink = 'yes'
}})
print(stats.statsBox{args = {
hp ... | cc0-1.0 |
softer/prosody-modules | mod_isolate_host/mod_isolate_host.lua | 31 | 1667 | local jid = require "util.jid";
local jid_bare, jid_split = jid.bare, jid.split;
local is_admin = require "core.usermanager".is_admin;
local set = require "util.set";
local st = require "util.stanza";
local stanza_types = set.new{"message", "presence", "iq"};
local jid_types = set.new{"bare", "full", "host"};
local e... | mit |
LegionXI/darkstar | scripts/zones/Temenos/bcnms/Central_Temenos_Basement.lua | 35 | 1202 | -----------------------------------
-- Area: Temenos
-- Name:
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[C_Temenos_Base]UniqueID",GenerateLimbusKey());
HideArmouryCrates(GetInstanceRegion(1301),T... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Abyssea-Uleguerand/npcs/qm11.lua | 9 | 1346 | -----------------------------------
-- Zone: Abyssea-Uleguerand
-- NPC: qm11 (???)
-- Spawns Koghatu
-- @pos ? ? ? 253
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
--... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/Southern_San_dOria/npcs/Balasiel.lua | 17 | 6045 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Balasiel
-- Starts and Finishes: A Squire's Test, A Squire's Test II, A Knight's Test
-- @zone 230
-- @pos -136 -11 64
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
---------------... | gpl-3.0 |
ricker75/Global-Server | data/actions/scripts/inquisition quest/inquisitionQuestBrotherLever3.lua | 3 | 1457 | local config = {
WallPositions = {
[1] = Position({x=33226, y=31735, z=11}),
[2] = Position({x=33227, y=31735, z=11}),
[3] = Position({x=33228, y=31735, z=11}),
[4] = Position({x=33229, y=31735, z=11}),
[5] = Position({x=33230, y=31735, z=11}),
[6] = Position({x=33231, y=31735, z=11}),
[7] = Position({x=... | gpl-2.0 |
evrooije/beerarchy | mods/00_bt_mobs/dmobs/mobs/tortoise.lua | 1 | 1139 |
mobs:register_mob("dmobs:tortoise", {
type = "animal",
passive = false,
reach = 1,
damage = 2,
attack_type = "dogfight",
hp_min = 6,
hp_max = 12,
armor = 130,
collisionbox = {-0.2, 0, -0.2, 0.2, 0.3, 0.2},
visual = "mesh",
mesh = "tortoise.b3d",
textures = {
{"dmobs_tortoise.png"},
},
blood_texture = "... | lgpl-2.1 |
LegionXI/darkstar | scripts/globals/items/temple_truffle.lua | 12 | 1200 | -----------------------------------------
-- ID: 5916
-- Item: Temple Truffle
-- Food Effect: 3 Min, All Races
-----------------------------------------
-- Strength 1
-- Speed 12.5%
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
--... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.