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 |
|---|---|---|---|---|---|
rolpereira/auto-complete-lua.el | lua-documentation/data/package.lua | 3 | 9713 | -------------------------------------------------------------------------------
-- The package library provides basic facilities for loading and building modules in Lua.
-- It exports two of its functions directly in the global environment
-- require and module. Everything else is exported in a table package.
-- @... | gpl-3.0 |
pd2-linux/tina | feeds/xwrt/webif-iw-lua/files/usr/lib/lua/lua-xwrt/xwrt/init.lua | 18 | 1593 | old_require = require
function exists(file)
local f = io.open( file, "r" )
if f then
io.close( f )
return true
else
return false
end
end
function require (str)
local fstr = string.gsub(str,"[.]","/")
for path in string.gmatch(package.path,"[^;]+") do
local path = string.gsu... | gpl-2.0 |
HeavensSword/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Marquis_Decarabia.lua | 7 | 1300 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Marquis Decarabia
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
function onMobEngaged(mob,target)
end;
function onMobFight(mob,targe... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Abyssea-Vunkerl/MobIDs.lua | 4 | 3267 | require("scripts/globals/keyitems");
-- [QM] = {'name', {list of required trades}, {list of required KIs}, nmID}
-- uncomment lines as NMs are implemented
NM_POPS =
{
-- [17666576] = { 'qm1', {3098}, {}, 17666487}, -- Khalkotaur
-- [17666577] = { 'q... | gpl-3.0 |
vmercierfr/kong | spec/plugins/ratelimiting/daos_spec.lua | 12 | 3625 | local spec_helper = require "spec.spec_helpers"
local timestamp = require "kong.tools.timestamp"
local uuid = require "uuid"
local env = spec_helper.get_env()
local dao_factory = env.dao_factory
local ratelimiting_metrics = dao_factory.ratelimiting_metrics
describe("Rate Limiting Metrics", function()
local api_id =... | mit |
cogwerkz/gUI4 | gUI4_Minimap/elements/garrison.lua | 1 | 8979 | local ADDON = ...
local GP_LibStub = _G.GP_LibStub
local gUI4 = GP_LibStub("GP_AceAddon-3.0"):GetAddon("gUI4", true)
if not gUI4 then return end
local parent = gUI4:GetModule(ADDON, true)
if not parent then return end
-- Lua API
local _G = _G
local tostring = tostring
-- WoW API
local CreateFrame = _... | mit |
HeavensSword/darkstar | scripts/globals/spells/bluemagic/frypan.lua | 2 | 2238 | -----------------------------------------
-- Spell: Frypan
-- Delivers an area attack. Additional effect: "Stun." Accuracy varies with TP
-- Spell cost: 65 MP
-- Monster Type: Beastmen
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 3
-- Stat Bonus: DEX+2
-- Level: 63
-- Casting Time: 1 seconds
-- Recast Time: 26... | gpl-3.0 |
nsuke/thrift | lib/lua/TMemoryBuffer.lua | 100 | 2266 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | apache-2.0 |
HeavensSword/darkstar | scripts/globals/spells/tornado.lua | 4 | 1033 | -----------------------------------------
-- Spell: Tornado
-- Deals wind damage to an enemy and lowers its resistance against ice.
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Dragons_Aery/Zone.lua | 4 | 1328 | -----------------------------------
--
-- Zone: Dragons_Aery (154)
--
-----------------------------------
package.loaded["scripts/zones/Dragons_Aery/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Dragons_Aery/TextIDs");
require("scripts/zones/Dragons_Aery/MobIDs");
require("scripts/globals/... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/caedarva_frog.lua | 3 | 1119 | -----------------------------------------
-- ID: 5465
-- Item: Caedarva Frog
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Agility 2
-- Mind -4
-- Evasion 5
-----------------------------------------
require("scripts/globals/status");
--------------------------------------... | gpl-3.0 |
Openarl/PathOfBuilding | Classes/SharedItemListControl.lua | 1 | 2743 | -- Path of Building
--
-- Class: Item list
-- Shared item list control.
--
local pairs = pairs
local t_insert = table.insert
local t_remove = table.remove
local SharedItemListClass = newClass("SharedItemListControl", "ListControl", function(self, anchor, x, y, width, height, itemsTab)
self.ListControl(anchor, x, y, w... | mit |
HeavensSword/darkstar | scripts/zones/Bastok_Mines/npcs/Rodellieux.lua | 5 | 1153 | -----------------------------------
-- Area: Bastok_Mines
-- NPC: Rodellieux
-- Only sells when Bastok controlls Fauregandi Region
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Mines/TextIDs");
require("... | gpl-3.0 |
GPUOpen-LibrariesAndSDKs/MLAA11 | amd_sdk/premake/premake5.lua | 8 | 1255 | dofile ("../../premake/amd_premake_util.lua")
workspace "AMD_SDK"
configurations { "Debug", "Release" }
platforms { "x64" }
location "../build"
filename ("AMD_SDK" .. _AMD_VS_SUFFIX)
startproject "AMD_SDK"
filter "platforms:x64"
system "Windows"
architecture "x64"
project "AMD_SDK"
k... | mit |
ind9/kong | kong/dao/cassandra/consumers.lua | 7 | 1141 | local BaseDao = require "kong.dao.cassandra.base_dao"
local query_builder = require "kong.dao.cassandra.query_builder"
local consumers_schema = require "kong.dao.schemas.consumers"
local Consumers = BaseDao:extend()
function Consumers:new(properties)
self._table = "consumers"
self._schema = consumers_schema
Co... | apache-2.0 |
Deiz/naev | dat/ai/proteron.lua | 6 | 2651 | include("dat/ai/tpl/generic.lua")
include("dat/ai/personality/patrol.lua")
-- Settings
mem.armour_run = 40
mem.armour_return = 70
mem.aggressive = true
function create ()
-- Not too many credits.
ai.setcredits( rnd.rnd(ai.pilot():ship():price()/300, ai.pilot():ship():price()/70) )
-- Get refuel chance
... | gpl-3.0 |
LuaDevelopmentTools/luadocumentor | lddextractor.lua | 4 | 4004 | --------------------------------------------------------------------------------
-- Copyright (c) 2012 Sierra Wireless.
-- All rights reserved. This program and the accompanying materials
-- are made available under the terms of the Eclipse Public License v1.0
-- which accompanies this distribution, and is availabl... | epl-1.0 |
HeavensSword/darkstar | scripts/globals/items/death_scythe_+1.lua | 7 | 1036 | -----------------------------------------
-- ID: 16791
-- Item: Death Scythe +1
-- Additional Effect: Drains HP
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------
function onAdditionalEffect(... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Tabar.lua | 7 | 1140 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Animated Tabar
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
function onMobEngaged(mob,target)
if (mob:AnimationSub() == 3) then
... | gpl-3.0 |
DavadDi/flatbuffers | samples/sample_binary.lua | 17 | 3431 | -- need to update the Lua path to point to the local flatbuffers implementation
package.path = string.format("../lua/?.lua;%s",package.path)
package.path = string.format("./lua/?.lua;%s",package.path)
-- require the library
local flatbuffers = require("flatbuffers")
local binaryArray = flatbuffers.binaryArray-- for h... | apache-2.0 |
qwook/dpsht | libs/loveframes/objects/grid.lua | 7 | 9629 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- grid object
local newobject = loveframes.NewObject("grid", "loveframes_object_grid", true)
--[[-------------------------... | mit |
fjardon/pandoc | data/sample.lua | 22 | 8328 | -- This is a sample custom writer for pandoc. It produces output
-- that is very similar to that of pandoc's HTML writer.
-- There is one new feature: code blocks marked with class 'dot'
-- are piped through graphviz and images are included in the HTML
-- output using 'data:' URLs.
--
-- Invoke with: pandoc -t sample.... | gpl-2.0 |
HeavensSword/darkstar | scripts/zones/Rolanberry_Fields/TextIDs.lua | 5 | 1272 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6402; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6408; -- Obtained: <item>.
GIL_OBTAINED = 6409; -- Obtained <number> gil.
NOT_ENOUGH_GIL = 6413; -- You ... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/spells/bluemagic/light_of_penance.lua | 4 | 2359 | -----------------------------------------
-- Spell: Light of Penance
-- Reduces an enemy's TP. Additional effect: Blindness and "Bind"
-- Spell cost: 53 MP
-- Monster Type: Beastmen
-- Spell Type: Magical (Light)
-- Blue Magic Points: 5
-- Stat Bonus: CHR+1, HP+15
-- Level: 58
-- Casting Time: 3 seconds
-- Recast Time:... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/_5c5.lua | 5 | 1688 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Gate: Magical Gizmo
-- Involved In Mission: The Horutoto Ruins Experiment
-- !pos 419 0 -27 192
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require(... | gpl-3.0 |
rahmalik/trafficserver | plugins/experimental/ts_lua/business/sethost.lua | 17 | 1188 | -- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); y... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Metalworks/npcs/Leonhardt.lua | 5 | 1161 | -----------------------------------
-- Area: Metalworks
-- NPC: Leonhardt
-- Involved in Quest: Too Many Chefs
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Metalworks/TextIDs");
---------------------------------... | gpl-3.0 |
shahifaqeer/my-luci-bismark-0.11 | libs/json/luasrc/json.lua | 10 | 12644 | --[[
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
ht... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Cloister_of_Storms/bcnms/trial_by_lightning.lua | 5 | 2226 | -----------------------------------
-- Area: Cloister of Storms
-- BCNM: Trial by Lightning
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Storms/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("script... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Metalworks/npcs/High_Bear.lua | 5 | 1543 | -----------------------------------
-- Area: Metalworks
-- NPC: High Bear
-- Type: Quest Giver
-- @zone 237
-- !pos 25.231 -14.999 4.552
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/keyitems");
require("scripts/globals/titles");
-----------------------------------
f... | gpl-3.0 |
gwx/tome-grayswandir-illusion | data/libs/displacement-0.lua | 1 | 1550 | -- 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 version.
--
-- This program is distributed in the hope that it will be useful... | gpl-3.0 |
ignacio/LuaNode | lib/lunit.lua | 21 | 17500 |
--[[--------------------------------------------------------------------------
This file is part of lunit 0.5.
For Details about lunit look at: http://www.mroth.net/lunit/
Author: Michael Roth <mroth@nessie.de>
Copyright (c) 2004, 2006-2009 Michael Roth <mroth@nessie.de>
Permission is hereby g... | mit |
HeavensSword/darkstar | scripts/zones/Monastic_Cavern/npcs/qm1.lua | 5 | 1085 | -----------------------------------
-- Area: Monastic Cavern
-- NPC: ???
-- Used In Quest: Whence Blows the Wind
-- !pos 168 -1 -22 150
-----------------------------------
package.loaded["scripts/zones/Monastic_Cavern/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("sc... | gpl-3.0 |
christakahashi/nodemcu-firmware | examples/fragment.lua | 55 | 19918 | pwm.setup(0,500,50) pwm.setup(1,500,50) pwm.setup(2,500,50)
pwm.start(0) pwm.start(1) pwm.start(2)
function led(r,g,b) pwm.setduty(0,g) pwm.setduty(1,b) pwm.setduty(2,r) end
wifi.sta.autoconnect(1)
a=0
tmr.alarm( 1000,1,function() if a==0 then a=1 led(50,50,50) else a=0 led(0,0,0) end end)
sv:on("receive", function(s,... | mit |
icrazyboy/- | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
HeavensSword/darkstar | scripts/zones/RuLude_Gardens/npcs/relic.lua | 5 | 1547 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: <this space intentionally left blank>
-- !pos 0 8 -40 243
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/RuLude_Gardens/TextIDs");
---------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/West_Sarutabaruta/TextIDs.lua | 5 | 3258 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item> come back again after sorting your inventory.
ITEM_OBTAINED = 6386; -- Obtained: <item>.
GIL_OBTAINED = 6387; -- Obtained <number> gil.
KEYITEM_OBTA... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/bowl_of_loach_gruel.lua | 3 | 1468 | -----------------------------------------
-- ID: 5670
-- Item: Bowl of Loach Gruel
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Make Group Effect
-- Dexterity 2
-- Agility 2
-- Accuracy 7% Cap 30
-- Ranged Accuracy 7% Cap 30
-- HP 7% Cap 30
-- Evasion 4
---------------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Misareaux_Coast/npcs/_0p4.lua | 4 | 1242 | -----------------------------------
-- Area: Misareaux Coast
-- NPC: Storage Compartment
-- COP spawn Boggelmann.
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Misareaux_Coast/TextIDs");
require("scripts/zo... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Batallia_Downs/npcs/qm4.lua | 5 | 1257 | -----------------------------------
-- Area: Batallia Downs
-- NPC: qm4 (???)
--
-----------------------------------
package.loaded["scripts/zones/Batallia_Downs/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Batallia_Downs/TextIDs");
require("scripts/globals/missions");
require("scripts/g... | gpl-3.0 |
msva/LDoc | ldoc/doc.lua | 2 | 43356 | ------
-- Defining the ldoc document model.
local class = require 'pl.class'
local utils = require 'pl.utils'
local List = require 'pl.List'
local Map = require 'pl.Map'
local doc = {}
local global = require 'ldoc.builtin.globals'
local tools = require 'ldoc.tools'
local split_dotted_name = tools.split_dotted_name
... | mit |
HeavensSword/darkstar | scripts/zones/Caedarva_Mire/mobs/Lamia_Idolater.lua | 13 | 1235 | -----------------------------------
-- Area: Arrapago Reef
-- NPC: Lamia Idolator
-----------------------------------
require("scripts/globals/status");
-----------------------------------
function onMobInitialize(mob)
end;
function onMobSpawn(mob)
end;
function onMobFight(mob, target)
local swapTimer = mob:get... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Arrapago_Reef/mobs/Lamia_Idolater.lua | 13 | 1235 | -----------------------------------
-- Area: Arrapago Reef
-- NPC: Lamia Idolator
-----------------------------------
require("scripts/globals/status");
-----------------------------------
function onMobInitialize(mob)
end;
function onMobSpawn(mob)
end;
function onMobFight(mob, target)
local swapTimer = mob:get... | gpl-3.0 |
Wedmer/luci | applications/luci-app-dump1090/luasrc/model/cbi/dump1090.lua | 30 | 7206 | -- Copyright 2014-2015 Á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", ""... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Attohwa_Chasm/npcs/Jakaka.lua | 5 | 2116 | -----------------------------------
-- Area: Attohwa Chasm
-- NPC: Jakaka
-- Type: ENM
-- !pos -144.711 6.246 -250.309 7
-----------------------------------
package.loaded["scripts/zones/Attohwa_Chasm/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Attohwa_Chasm/TextIDs");
require("scripts/... | gpl-3.0 |
nicholaskh/codis | extern/redis-2.8.21/deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | mit |
HeavensSword/darkstar | scripts/zones/PsoXja/npcs/_092.lua | 5 | 1047 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _092 (Stone Gate)
-- Notes: Spawns Gargoyle when triggered
-- !pos 338.399 -1.925 -70.000 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/PsoXja/globals");... | gpl-3.0 |
shahifaqeer/my-luci-bismark-0.11 | modules/niu/luasrc/model/cbi/niu/traffic/portfw1.lua | 49 | 2263 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
loca... | apache-2.0 |
Deiz/naev | dat/missions/shark/sh06_arandon.lua | 3 | 4434 | --[[
This is the seventh mission of the Shark's teeth campaign. The player has to meet the FLF in Arandon.
Stages :
0) Way to Arandon
1) Way back to Darkshed
--]]
include "numstring.lua"
lang = naev.lang()
if lang == "es" then
else -- default english
title = {}
text = {}
osd_msg = {}... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Mhaura/npcs/Lacia.lua | 5 | 2941 | -----------------------------------
-- Area: Mhaura
-- NPC: Lacia
-- Starts Quest: Trial Size Trial By Lightning
-- The "TrialSizeLightning_date" still needs to be set at the BCNM/Mob level to reflect defeat by the Avatar
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
------... | gpl-3.0 |
shahifaqeer/my-luci-bismark-0.11 | applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua | 76 | 3146 | --[[
Luci diag - Diagnostics controller module
(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
]]--
module("luci.cont... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/West_Ronfaure/npcs/Kyanta-Pakyanta_WW.lua | 3 | 2977 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Kyanta-Pakyanta, W.W.
-- Type: Outpost Conquest Guards
-- !pos -450.571 -20.807 -219.970 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/c... | gpl-3.0 |
Deiz/naev | dat/factions/spawn/pirate.lua | 6 | 3704 | include("dat/factions/spawn/common.lua")
include("pilot/pirate.lua") -- Uniques
function pirate_unique()
local p = pirate_create( true )
return {p}
end
-- @brief Spawns a small patrol fleet.
function spawn_patrol ()
local pilots = {}
local r = rnd.rnd()
if r < 0.3 then
scom.addPilot( pilots,... | gpl-3.0 |
Dota-2-5v5v5v5/GameFolder | scripts/vscripts/heroes/hero_slark/essence_shift.lua | 1 | 5056 | --[[ ============================================================================================================
Author: Rook
Date: January 28, 2015
Called whenever one of Slark's autoattack lands. If it hit an enemy hero, it steals attribute points from them
and leaves a counter on their modifier HUD.
Addition... | gpl-3.0 |
qwook/dpsht | entities_/trampoline.lua | 1 | 4698 |
BaseEntity = require("entities.core.baseentity")
Trampoline = class("Trampoline", BaseEntity)
Trampoline.spritesheet = SpriteSheet:new("sprites/trampoline_angled.png", 32, 32)
function Trampoline:initialize(x, y, w, h)
BaseEntity.initialize(self)
self.width = w
self.height = h
self.solid = false
... | mit |
mahdib9/99 | plugins/time.lua | 94 | 3004 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
xtao/ntopng | scripts/lua/get_geo_hosts.lua | 2 | 3435 | --
-- (C) 2013-14 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
--sendHTTPHeader('text/html; charset=iso-8859-1')
sendHTTPHeader('application/json')
host_info = url2hostinfo(_GET)
interface.find(ifname)
print [[
{"center":[0... | gpl-3.0 |
rahmalik/trafficserver | lib/luajit/dynasm/dasm_mips.lua | 120 | 28080 | ------------------------------------------------------------------------------
-- DynASM MIPS module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _i... | apache-2.0 |
HeavensSword/darkstar | scripts/globals/items/saltena.lua | 3 | 1090 | -----------------------------------------
-- ID: 5885
-- Item: saltena
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP +6% (cap 100)
-- Increases rate of combat skill gains by 20%
-----------------------------------------
require("scripts/globals/status");
------------------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Valkurm_Dunes/npcs/Nyata-Mobuta_WW.lua | 3 | 2971 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: Nyata-Mobuta, W.W.
-- Type: Outpost Conquest Guards
-- !pos 139.394 -7.885 100.384 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conques... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/spells/sinewy_etude.lua | 5 | 1810 | -----------------------------------------
-- Spell: Sinewy Etude
-- Static STR Boost, BRD 24
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,targe... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/dish_of_spaghetti_nero_di_seppia_+1.lua | 3 | 1550 | -----------------------------------------
-- ID: 5202
-- Item: Dish of Spaghetti Nero Di Seppia +1
-- Food Effect: 60 Mins, All Races
-----------------------------------------
-- HP % 17 (cap 140)
-- Dexterity 3
-- Vitality 2
-- Agility -1
-- Mind -2
-- Charisma -1
-- Double Attack 1
-- Store TP 6
---------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/West_Sarutabaruta/npcs/Ipupu.lua | 5 | 1087 | -----------------------------------
-- Area: West Sarutabaruta
-- NPC: Ipupu
-- Involved in Quest: Glyph Hanger
-- !pos 251.745 -5.5 35.539 115
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
... | gpl-3.0 |
natuan241/Algorithm-Implementations | Successive_Over_Relaxation/Lua/Yonaba/sor.lua | 26 | 1264 | -- Successive Over Relaxation algorithm implementation
-- See : http://en.wikipedia.org/wiki/Successive_over-relaxation
-- Creates a vector of values
local function vector(len, v)
local x = {}
for i = 1, len do x[i] = v end
return x
end
-- Computes the norm of a given vector
local function norm(v)
local n = 0... | mit |
dlannan/webdruino | deps/turbo-1.0.0/turbo/httpserver.lua | 2 | 16278 | --- Turbo.lua HTTP Server module
-- A non-blocking HTTPS Server based on the TCPServer class.
-- Supports HTTP/1.0 and HTTP/1.1.
-- Includes SSL support.
-- Copyright 2011, 2012, 2013 John Abrahamsen
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance... | mit |
Max-pbot/Maxbot | plugins/inpm.lua | 1 | 3065 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
jesboat/fbthrift | thrift/test/lua/test_basic_client.lua | 2 | 4135 | -- Copyright 2004-present Facebook. All Rights Reserved.
local client
function luaunit:teardown()
if client then
-- Shuts down the server
client:testVoid()
-- close the connection
client:close()
end
end
function luaunit:testBasicClient()
local socket = TSocket:new{
port = 30118
}
self:... | apache-2.0 |
Lily-Ayta/aosc-os-abbs | extra-tex/texlive/autobuild/overrides/usr/share/texmf-dist/web2c/texmfcnf.lua | 5 | 8269 | -- public domain
-- ConTeXt needs a properly expanded TEXMFLOCAL, so here is a
-- bit of lua code to make that happen
local texmflocal = resolvers.prefixes.selfautoparent();
texmflocal = string.gsub(texmflocal, "20%d%d$", "texmf-local");
return {
type = "configuration",
version = "1.1.0",
date = "... | gpl-2.0 |
christakahashi/nodemcu-firmware | lua_examples/ucglib/GT_cross.lua | 31 | 1442 | local M, module = {}, ...
_G[module] = M
function M.run()
-- make this a volatile module:
package.loaded[module] = nil
print("Running component cross...")
local mx, my
disp:setColor(0, 250, 0, 0)
disp:setColor(1, 255, 255, 30)
disp:setColor(2, 220, 235, 10)
disp:setColor(3, 205, 0, 30... | mit |
dlannan/webdruino | deps/turbo-1.0.0/turbo/3rdparty/middleclass/spec/metamethods_spec.lua | 3 | 4033 | require 'middleclass'
context('Metamethods', function()
context('Custom Metamethods', function()
-- Tests all metamethods. Note that __len is missing (lua makes table length unoverridable)
-- I'll use a() to note the length of vector "a" (I would have preferred to use #a, but it's not possible)
-- I'll ... | mit |
HeavensSword/darkstar | scripts/globals/weaponskills/blade_kamu.lua | 3 | 1912 | -----------------------------------
-- Blade Kamu
-- Katana weapon skill
-- Skill Level: N/A
-- Lowers target's params.accuracy. Duration of effect varies with TP. Nagi: Aftermath effect varies with TP.
-- Effect lasts 60 seconds @ 100 TP, 90 seconds @ 200 TP, and 120 seconds @ 300 TP
-- Available only after completing... | gpl-3.0 |
serbyy/MozDef | examples/heka-lua-syslog/syslog_tab_delimited.lua | 10 | 1403 | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
-- Copyright (c) 2014 Mozilla Corporation
--
-- Contributors:
-- Anthony Verez averez@mozilla.com
-- Mike Trinkala mtr... | mpl-2.0 |
HeavensSword/darkstar | scripts/zones/Southern_San_dOria/npcs/Ashene.lua | 5 | 1918 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Ashene
-- Standard Merchant NPC
-- @zone 230
-- !pos 70 0 61
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("s... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Wajaom_Woodlands/mobs/Tinnin.lua | 4 | 5057 | -----------------------------------
-- Area: Wajoam Woodlands
-- MOB: Tinnin
-- !pos 276 0 -694
-- Spawned with Monkey Wine: @additem 2573
-- Wiki: http://ffxiclopedia.wikia.com/wiki/Tinnin
-----------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
------------------------... | gpl-3.0 |
ignacio/LuaNode | test/simple/test-event-emitter-remove-all-listeners.lua | 2 | 1288 | module(..., lunit.testcase, package.seeall)
local function listener() end
function test()
local EventEmitter = require "luanode.event_emitter"
local e1 = EventEmitter()
e1:on("foo", listener)
e1:on("bar", listener)
e1:on("baz", listener)
e1:on("baz", listener)
local fooListeners = e1:listeners("... | mit |
DipColor/test | plugins/rss.lua | 700 | 5434 | local function get_base_redis(id, option, extra)
local ex = ''
if option ~= nil then
ex = ex .. ':' .. option
if extra ~= nil then
ex = ex .. ':' .. extra
end
end
return 'rss:' .. id .. ex
end
local function prot_url(url)
local url, h = string.gsub(url, "http://", "")
local... | gpl-2.0 |
natuan241/Algorithm-Implementations | Dijkstra_Search/Lua/Yonaba/dijkstra.lua | 26 | 3785 | -- Generic Dijkstra graph search algorithm implementation
-- See : http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm
-- Notes : this is a generic implementation of Dijkstra graph search algorithm.
-- It is devised to be used on any type of graph (point-graph, tile-graph,
-- or whatever. It expects to be initialized ... | mit |
HeavensSword/darkstar | scripts/zones/Waughroon_Shrine/bcnms/up_in_arms.lua | 5 | 1811 | -----------------------------------
-- Area: Waughroon_Shrine
-- Name: up in arms
-- BCNM60
-----------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/zone... | gpl-3.0 |
vmercierfr/kong | kong/plugins/response_transformer/header_filter.lua | 18 | 1441 | local utils = require "kong.tools.utils"
local stringy = require "stringy"
local _M = {}
local APPLICATION_JSON = "application/json"
local CONTENT_TYPE = "content-type"
local CONTENT_LENGTH = "content-length"
local function get_content_type()
local header_value = ngx.header[CONTENT_TYPE]
if header_value then
... | mit |
HeavensSword/darkstar | scripts/zones/Western_Altepa_Desert/npcs/Dreamrose.lua | 5 | 1476 | -----------------------------------
-- Area: Western Altepa Desert
-- NPC: Dreamrose
-- Involved in Mission: San D'Oria 6-1
-----------------------------------
package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Western_Altepa_Desert/TextIDs")... | gpl-3.0 |
pd2-linux/tina | feeds/routing/luci-app-bmx6/files/usr/lib/lua/luci/model/cbi/bmx6/interfaces.lua | 20 | 2085 | --[[
Copyright (C) 2011 Pau Escrich <pau@dabax.net>
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 2 of the License, or
(at your option) any later version.
Th... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/items/plate_of_friture_de_la_misareaux.lua | 3 | 1302 | -----------------------------------------
-- ID: 5159
-- Item: plate_of_friture_de_la_misareaux
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Dexterity 3
-- Vitality 3
-- Mind -3
-- Defense 5
-- Ranged ATT % 7
-- Ranged ATT Cap 15
-----------------------------------------
require("scrip... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Nyzul_Isle/mobs/Raubahn.lua | 5 | 4802 | -----------------------------------
-- Area: Nyzul Isle (Nashmeira's Plea)
-- MOB: Raubahn
-----------------------------------
require("scripts/zones/Nyzul_Isle/IDs");
require("scripts/globals/status");
-----------------------------------
function onMobSpawn(mob)
mob:addListener("WEAPONSKILL_STATE_ENTER", "WS_STA... | gpl-3.0 |
pd2-linux/tina | feeds/luci/applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/mactodevinfo.lua | 80 | 1260 | --[[
LuCI - Lua Configuration Interface
(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$
]]--
m = Map("mactodevinfo", lu... | gpl-2.0 |
HeavensSword/darkstar | scripts/commands/additem.lua | 8 | 1451 | ---------------------------------------------------------------------------------------------------
-- func: additem <itemId> <quantity> <aug1> <v1> <aug2> <v2> <aug3> <v3> <aug4> <v4> <trial>
-- desc: Adds an item to the GMs inventory.
-----------------------------------------------------------------------------------... | gpl-3.0 |
Deiz/naev | dat/factions/equip/nasin.lua | 13 | 5011 | --more of a dummy file to avoid errors.
-- Generic equipping routines, helper functions and outfit definitions.
include("dat/factions/equip/generic.lua")
--[[
-- @brief Does sirius pilot equipping
--
-- @param p Pilot to equip
--]]
function equip( p )
-- Start with an empty ship
p:rmOutfit("all")
p:rmOutf... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/weaponskills/heavy_swing.lua | 25 | 1367 | -----------------------------------
-- Heavy Swing
-- Staff weapon skill
-- Skill Level: 5
-- Deacription:Delivers a single-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Thunder Gorget.
-- Aligned with the Thunder Belt.
-- Element: None
-- Modifiers: STR:30%
-- 100%TP 200%TP... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/North_Gustaberg_[S]/npcs/Cavernous_Maw.lua | 5 | 1074 | -----------------------------------
-- Area: North Gustaberg [S]
-- NPC: Cavernous Maw
-- !pos 466 0 479 88
-- Teleports Players to North Gustaberg
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitem... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/wild_cookie.lua | 3 | 1082 | -----------------------------------------
-- ID: 4577
-- Item: wild_cookie
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Aquan killer +12
-- Silence resistance +12
-- MP recovered while healing +5
-----------------------------------------
require("scripts/globals/status");
---------------... | gpl-3.0 |
ind9/kong | kong/tools/faker.lua | 11 | 3216 | local Object = require "classic"
local Faker = Object:extend()
function Faker:new(dao_factory)
self.dao_factory = dao_factory
end
-- Generate a fake entity.
-- @param `type` Type of the entity to generate.
-- @return An valid entity (a table) complying to the defined schema.
function Faker:fake_entity(type... | apache-2.0 |
cogwerkz/gUI4 | gUI4_ActionBars/libs/LibBabble-SubZone-3.0/LibBabble-SubZone-3.0_deDE.lua | 1 | 278665 | --[[
$Id: LibBabble-SubZone-3.0_deDE.lua 192 2016-08-31 14:08:00Z arith $
Name: LibBabble-SubZone-3.0
Revision: $Rev: 192 $
Maintainers: arith, dynaletik
Last updated by: $Author: arith $
Website: http://www.wowace.com/addons/libbabble-subzone-3-0/
Dependencies: None
License: MIT
]]
local _, private = ...
... | mit |
HeavensSword/darkstar | scripts/globals/mobskills/astral_flow_pet.lua | 5 | 2855 | ---------------------------------------------
-- Astral Flow
-- Will make existing pet use astral flow skill
---------------------------------------------
require("scripts/globals/monstertpmoves");
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/msg");
------------------... | gpl-3.0 |
natuan241/Algorithm-Implementations | Josephus_Problem/Lua/Yonaba/josephus.lua | 26 | 1689 | -- Josephus problem implementation
-- See: http://en.wikipedia.org/wiki/Josephus_problem
-- Returns the survivor
-- n : the initial number of people
-- k : the count for each step
-- returns : the survivor's number
local function josephus_recursive(n, k)
if n == 1 then return 1
else
return ((joseph... | mit |
HeavensSword/darkstar | scripts/zones/La_Theine_Plateau/npcs/Cermet_Headstone.lua | 5 | 2461 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Cermet Headstone
-- Involved in Mission: ZM5 Headstone Pilgrimage (Water Fragment)
-- !pos -170 39 -504 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
req... | gpl-3.0 |
pd2-linux/tina | feeds/luci/applications/luci-hd-idle/luasrc/model/cbi/hd_idle.lua | 36 | 1043 | --[[
LuCI hd-idle
(c) 2008 Yanira <forum-2008@email.de>
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("nixio.fs")
m = Map... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/items/bravura.lua | 3 | 3340 | -----------------------------------------
-- ID: 18294, 18295, 18642, 18656, 18670, 19751, 19844, 20835, 20836, 21756
-- Item: Bravura
-- Additional Effect: Impairs evasion
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
requ... | gpl-3.0 |
weloxux/ludumdare-33 | lib/HUMP/vector-light.lua | 53 | 3560 | --[[
Copyright (c) 2012-2013 Matthias Richter
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, dis... | gpl-3.0 |
msva/LDoc | ldoc/builtin/globals.lua | 3 | 3451 | -------
-- global functions and tables
local tools = require 'ldoc.tools'
local globals = {}
local lua52 = _VERSION:match '5.2'
globals.functions = {
assert = true,
collectgarbage = true,
dofile = true,
getmetatable = true,
setmetatable = true,
pairs = true,
ipairs = true,
load = true,
load... | mit |
HeavensSword/darkstar | scripts/globals/items/sleep_dagger.lua | 5 | 1030 | -----------------------------------------
-- ID: 16497
-- Item: Sleep Dagger
-- Additional Effect: Sleep
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------
function onAdditionalEffect(player,... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Cloister_of_Frost/mobs/Shiva_Prime.lua | 5 | 1496 | -----------------------------------
-- Area: Cloister of Frost
-- MOB: Shiva Prime
-- Involved in Quest: Trial by Ice
-- Involved in Mission: ASA-4 Sugar Coated Directive
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/status");
---... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.