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 |
|---|---|---|---|---|---|
bmscoordinators/FFXI-Server | scripts/zones/Windurst_Waters/npcs/Lago-Charago.lua | 14 | 1483 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Lago-Charago
-- Type: Adventurer's Assistant
-- @pos -57.271 -11.75 92.503 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests"... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/The_Garden_of_RuHmet/Zone.lua | 10 | 12490 | -----------------------------------
--
-- Zone: The_Garden_of_RuHmet (35)
--
-----------------------------------
package.loaded["scripts/zones/The_Garden_of_RuHmet/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/zones/The_Gar... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/spells/sleep.lua | 27 | 1086 | -----------------------------------------
-- Spell: Sleep I
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)... | gpl-3.0 |
rizaumami/tdcliBot | plugins/id.lua | 1 | 2877 | do
local function getUserIds(chat_id, msg_id, user)
local fname = util.escapeHtml(user.first_name_)
local name = _msg("<b>%s</b>\nFirst name: %s"):format(fname, fname)
if user.last_name_ then
local lname = util.escapeHtml(user.last_name_)
name = _msg("<b>%s %s</b>\nFirst name: %s\nLast name:... | gpl-3.0 |
mohammadrezatitan/maikel | libs/XMLElement.lua | 569 | 4025 | -- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence.
-- updated for module-free world of lua 5.3 on April 2 2015
-- Not documented at all, but not interesting enough to warrant documentation anyway.
local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ... | gpl-3.0 |
blackops97/KING_TELE | libs/XMLElement.lua | 569 | 4025 | -- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence.
-- updated for module-free world of lua 5.3 on April 2 2015
-- Not documented at all, but not interesting enough to warrant documentation anyway.
local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ... | gpl-2.0 |
diamondo25/Vana | scripts/portals/timeQuest.lua | 3 | 2595 | --[[
Copyright (C) 2008-2015 Vana Development Team
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 distributed in the hope that it will be useful,
but WITHO... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/ham_and_cheese_crepe.lua | 12 | 1619 | -----------------------------------------
-- ID: 5771
-- Item: ham_and_cheese_crepe
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- HP +10% (cap 25)
-- STR +2
-- VIT +1
-- Magic Accuracy +10
-- Magic Defense +3
-- hHP +2
-----------------------------------------
require("scripts/globals/... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/The_Garden_of_RuHmet/npcs/HomePoint#1.lua | 14 | 1284 | -----------------------------------
-- Area: The_Garden_of_RuHmet
-- NPC: HomePoint#1
-- @pos -426 0 368 35
-----------------------------------
package.loaded["scripts/zones/The_Garden_of_RuHmet/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/The_Garden_of_RuHmet/TextIDs");
require("scr... | gpl-3.0 |
bigboyq/proxmark3 | client/scripts/didump.lua | 4 | 12179 | local cmds = require('commands')
local getopt = require('getopt')
local utils = require('utils')
local lib14a = require('read14a')
example =[[
script run didump
script run didump -k aabbccddeeff
]]
author = "Iceman"
usage = "script run didump -k <key> "
desc = [[
This is a script to dump and decrypt the data of a sp... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Dynamis-Tavnazia/bcnms/dynamis_tavnazia.lua | 14 | 1256 | -----------------------------------
-- Area: dynamis_Tavnazia
-- Name: dynamis_Tavnazia
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[DynaTavnazia]UniqueID",os.time());
SetServerVariable("[DynaTavnazia]... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Quicksand_Caves/npcs/Grounds_Tome.lua | 30 | 1100 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Ifrits_Cauldron/Zone.lua | 8 | 2361 | -----------------------------------
--
-- Zone: Ifrits_Cauldron (205)
--
-----------------------------------
package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Ifrits_Cauldron/Te... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Bastok_Markets_[S]/npcs/HomePoint#1.lua | 27 | 1292 | -----------------------------------
-- Area: Bastok_Markets_[S]
-- NPC: HomePoint#1
-- @pos -293.048 -10.000 -102.558 87
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Bastok_Markets_[S]/TextIDs");
requ... | gpl-3.0 |
mehrpouya81/masterbot | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Hall_of_the_Gods/npcs/_6z0.lua | 14 | 1780 | -----------------------------------
-- Area: Hall of the Gods
-- NPC: Cermet Gate
-- Gives qualified players access to Ru'Aun Gardens.
-- @pos 0 -12 48 251
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/keyitems");
require("scripts/globals/missions");
----------------... | gpl-3.0 |
cypherkey/AvorionMission | lib/shiputility.lua | 1 | 6149 | package.path = package.path .. ";data/scripts/lib/?.lua"
package.path = package.path .. ";data/scripts/?.lua"
require ("galaxy")
require ("goods")
require ("stringutility")
local ShipUtility = {}
function ShipUtility.getMaxVolumes()
local maxVolumes = {}
local base = 2000
local scale = 2.5
-- base... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/plate_of_octopus_sushi_+1.lua | 12 | 1589 | -----------------------------------------
-- ID: 5694
-- Item: plate_of_octopus_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Strength 2
-- Accuracy % 15 (cap 72)
-- Ranged Accuracy % 15 (cap 72)
-- Resist Sleep +2
-----------------------------------------
require("scripts/glob... | gpl-3.0 |
wingo/snabb | src/program/lwaftr/control/control.lua | 2 | 1309 | module(..., package.seeall)
local lib = require("core.lib")
local channel = require("apps.lwaftr.channel")
local messages = require("apps.lwaftr.messages")
local command_names = {
reload = messages.lwaftr_message_reload,
dump_config = messages.lwaftr_message_reload
}
function show_usage(code)
print(require(... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Rolanberry_Fields/npcs/Stone_Monument.lua | 14 | 1302 | -----------------------------------
-- Area: Rolanberry Fields
-- NPC: Stone Monument
-- Involved in quest "An Explorer's Footsteps"
-- @pos 362.479 -34.894 -398.994 110
-----------------------------------
package.loaded["scripts/zones/Rolanberry_Fields/TextIDs"] = nil;
-----------------------------------
require(... | gpl-3.0 |
Mogli12/GearboxAddon | FS17_GearboxAddon/register.lua | 2 | 21483 | local load_gearboxMogliScreen = true
gearboxMogliRegister = {}
gearboxMogliRegister.isLoaded = true
gearboxMogliRegister.modName = g_currentModName
gearboxMogliRegister.g_currentModDirectory = g_currentModDirectory
gearboxMogliRegister.requestConfigurations = false
if load_gearboxMogliScreen then
source(Utils.getF... | gpl-3.0 |
suxinde2009/wesnoth | data/ai/micro_ais/micro_ai_wml_tag.lua | 3 | 2100 | local H = wesnoth.require "lua/helper.lua"
local W = H.set_wml_action_metatable {}
local MAIH = wesnoth.require("ai/micro_ais/micro_ai_helper.lua")
wesnoth.micro_ais = {}
-- Load all default MicroAIs
wesnoth.require("ai/micro_ais/mai-defs/animals.lua")
wesnoth.require("ai/micro_ais/mai-defs/bottleneck.lua")
wesnoth.r... | gpl-2.0 |
pakozm/april-ann | profile_build_scripts/package_list.lua | 2 | 1079 | return {
-- UNIT TESTING
"util",
"gtest",
"utest",
-- BASIC PACAKGES
-- "plotter",
"stats",
"dataset",
"matrix",
"random",
"cmdOpt",
"complex",
"mathcore",
"matlab",
"stats.MI",
"autodiff",
"autodiff.ann",
"data_frame",
"ee5_base64",
-- INPUT/OUTPUT
"aprilio",
"gzio",
... | gpl-3.0 |
midnightviking/simple-rotation | Libs/AceGUI-3.0/widgets/AceGUIContainer-ScrollFrame.lua | 37 | 6549 | --[[-----------------------------------------------------------------------------
ScrollFrame Container
Plain container that scrolls its content and doesn't grow in height.
-------------------------------------------------------------------------------]]
local Type, Version = "ScrollFrame", 23
local AceGUI = LibStub an... | gpl-2.0 |
fps-vogel/maccer | scripts/mac.lua | 1 | 13459 | --[[
mac.lua
by Felipe Vogel
fps.vogel@gmail.com
Macronize. Primary functionality of Maccer. Adds macrons to a text based on the macron-form key.
Copyright 2015 Felipe Vogel. Distributed under the terms of the GNU General Public License.
This file is part of Maccer.
Maccer is free software: you can redistribu... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Port_San_dOria/npcs/Thierride.lua | 14 | 2630 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Thierride
-- Type: Quest Giver
-- @zone 232
-- @pos -67 -5 -28
--
-- Starts and Finishes Quest: A Taste For Meat
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
r... | gpl-3.0 |
LinusU/nngraph | ModuleFromCriterion.lua | 4 | 1208 |
--[[ A wrapper to turn a criterion into a module.
The gradient with respect to the target will be zero.
--]]
local ModuleFromCriterion, parent = torch.class('nn.ModuleFromCriterion','nn.Module')
function ModuleFromCriterion:__init(criterion)
self.criterion = criterion
self.output = torch.Tensor(1)
self.gradI... | bsd-3-clause |
saeid0034/New | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
bnetcc/darkstar | scripts/zones/Waughroon_Shrine/bcnms/hills_are_alive.lua | 5 | 1816 | -----------------------------------
-- Area: Waughroon_Shrine
-- Name: Hills are Alive
-- KSNM99
-----------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts... | gpl-3.0 |
knewron-technologies/1btn | firmware/release v4/setup.lua | 1 | 1053 | -- gpio pin mapping
RED = 1;
GREEN = 2;
YELLOW = 3;
BLUE = 4;
MAGENTA = 5;
CYAN = 6
WHITE = 7;
redLED = 7;
greenLED = 6;
blueLED = 5;
node.setcpufreq(node.CPU160MHZ);
-- set LED pins as output
gpio.mode(redLED, gpio.OUTPUT);
gpio.mode(greenLED, gpio.OUTPUT);
gpio.mode(blueLED, gpio.OUTPUT);
function setLED(ledColor... | mit |
bnetcc/darkstar | scripts/globals/mobskills/cryo_jet_custom.lua | 18 | 1243 | ---------------------------------------------------
-- Cryo_Jet
-- Description:
-- Type: Magical
-- additional effect : Paralyze
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
----------------... | gpl-3.0 |
bnetcc/darkstar | scripts/globals/items/bowl_of_sprightly_soup.lua | 3 | 1115 | -----------------------------------------
-- ID: 5930
-- Item: Bowl of Sprightly Soup
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- MP 30
-- Mind 4
-- HP Recovered While Healing 4
-- Enmity -4
-----------------------------------------
require("scripts/globals/status");
------------------... | gpl-3.0 |
bnetcc/darkstar | scripts/globals/mobskills/dragon_breath.lua | 34 | 1375 | ---------------------------------------------
-- Dragon Breath
--
-- Description: Deals Fire damage to enemies within a fan-shaped area.
-- Type: Breath
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Unknown cone
-- Notes: Used only by Fafnir, Nidhogg, Cynoprosopi, and Wyrm. Because of the high damage output... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Eastern_Altepa_Desert/Zone.lua | 5 | 3362 | -----------------------------------
--
-- Zone: Eastern_Altepa_Desert (114)
--
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Eastern_Altepa_Desert/TextIDs");
require("scripts/zones/Eastern_Altepa_Desert... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Abyssea-Uleguerand/mobs/Resheph.lua | 1 | 2165 | -----------------------------------
-- Area: Abyssea - Uleguerand (253)
-- NM: Resheph
-----------------------------------
package.loaded["scripts/zones/Abyssea-Uleguerand/TextIDs"] = nil;
require("scripts/zones/Abyssea-Uleguerand/TextIDs");
require("scripts/globals/abyssea");
require("scripts/globals/status");
requi... | gpl-3.0 |
TurkeyMan/premake-core | binmodules/luasocket/test/ftptest.lua | 19 | 3735 | local socket = require("socket")
local ftp = require("socket.ftp")
local url = require("socket.url")
local ltn12 = require("ltn12")
-- use dscl to create user "luasocket" with password "password"
-- with home in /Users/diego/luasocket/test/ftp
-- with group com.apple.access_ftp
-- with shell set to /sbin/nologin
-- se... | bsd-3-clause |
footoflove/coship | TestCase/bin/tools/luaRsaModule/release/base64.lua | 2 | 3127 | local string = string
local print=print
local pairs=pairs
local math=math
module("base64")
-- bitshift functions (<<, >> equivalent)
-- shift left
local function lsh(value,shift)
return (value*(2^shift)) % 256
end
-- shift right
local function rsh(value,shift)
return math.floor(value/2^shift) % 256
... | gpl-3.0 |
pavgup/packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/interfaceconfig.lua | 26 | 7228 | -- ------ extra functions ------ --
function interfaceCheck()
metricValue = ut.trim(sys.exec("uci get -p /var/state network." .. arg[1] .. ".metric"))
if metricValue == "" then -- no metric
errorNoMetric = 1
else -- if metric exists create list of interface metrics to compare against for duplicates
uci.cursor()... | gpl-2.0 |
awesomeWM/awesome | lib/wibox/widget/textclock.lua | 1 | 5747 | ---------------------------------------------------------------------------
--- Display the time (and date) in a text box.
--
-- The `wibox.widget.textclock` widget is part of the Awesome WM's widget
-- system (see @{03-declarative-layout.md}).
--
-- This widget displays a text clock formatted by the
-- [GLib Date Time... | gpl-2.0 |
Atebite/NutScript | gamemode/core/sv_data.lua | 6 | 2374 | nut.data = nut.data or {}
nut.data.stored = nut.data.stored or {}
-- Create a folder to store data in.
file.CreateDir("nutscript")
-- Set and save data in the nutscript folder.
function nut.data.set(key, value, global, ignoreMap)
-- Get the base path to write to.
local path = "nutscript/"..(global and "" or SCHEMA.... | mit |
Taiwar/OpenComputers-Scripts | projects/security/radar.lua | 1 | 4644 | local comp = require "component"
local event = require "event"
local serialization = require "serialization"
local ghelper = require "glasses_helper"
local computer = require "computer"
local authorized = {"Peter"}
local g = comp.glasses
local m = comp.modem
local rfid = comp.os_rfidreader
local e = comp.os_entdetect... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Windurst_Waters/npcs/Mashuu-Ajuu.lua | 5 | 5827 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Mashuu-Ajuu
-- Starts and Finished Quest: Reap What You Sow
-- Involved in Quest: Making the Grade
-- !pos 129 -6 167 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------... | gpl-3.0 |
Atebite/NutScript | gamemode/core/derma/cl_inventory.lua | 3 | 9700 | -- The queue for the rendered icons.
renderdIcons = renderdIcons or {}
-- To make making inventory variant, This must be followed up.
function renderNewIcon(panel, itemTable)
-- re-render icons
if ((itemTable.iconCam and !renderdIcons[string.lower(itemTable.model)]) or itemTable.forceRender) then
local iconCam = i... | mit |
bnetcc/darkstar | scripts/zones/Abyssea-Attohwa/mobs/Warbler.lua | 1 | 1457 | -----------------------------------
-- Area: Abyssea - Attohwa (215)
-- Mob: Warbler
-----------------------------------
package.loaded["scripts/zones/Abyssea-Attohwa/TextIDs"] = nil;
require("scripts/globals/abyssea");
require("scripts/zones/Abyssea-Attohwa/TextIDs");
require("scripts/globals/status");
require("scr... | gpl-3.0 |
bnetcc/darkstar | scripts/globals/spells/foe_requiem_v.lua | 5 | 1801 | -----------------------------------------
-- Spell: Foe Requiem V
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;... | gpl-3.0 |
bnetcc/darkstar | scripts/commands/mobhere.lua | 22 | 1600 | ---------------------------------------------------------------------------------------------------
-- func: mobhere <mobId>
-- desc: Spawns a MOB and then moves it to the current position, if in same zone.
-- Errors will despawn the MOB unless "noDepop" was specified (any value works).
--------------------------... | gpl-3.0 |
kostajaitachi/shogun | examples/undocumented/lua_modular/kernel_comm_word_string_modular.lua | 21 | 1375 | require 'modshogun'
require 'load'
traindat = load_dna('../data/fm_train_dna.dat')
testdat = load_dna('../data/fm_test_dna.dat')
parameter_list = {{traindat,testdat,4,0,false, false},{traindat,testdat,4,0,False,False}}
function kernel_comm_word_string_modular (fm_train_dna,fm_test_dna, order, gap, reverse, use_sign)
... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/The_Sanctuary_of_ZiTah/npcs/Ochocho_WW.lua | 3 | 2987 | -----------------------------------
-- Area: The Sanctuary of Zi'Tah
-- NPC: Ochocho, W.W.
-- Border Conquest Guards
-- !pos -252.454 -1.958 624.366 121
-----------------------------------
package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
bnetcc/darkstar | scripts/globals/effects/int_boost.lua | 34 | 1027 | -----------------------------------
--
-- EFFECT_INT_BOOST
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_INT,effect:getPower());
end;
... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Gustav_Tunnel/mobs/Baobhan_Sith.lua | 1 | 1375 | ----------------------------------
-- Area: Gustav Tunnel
-- NM: Baobhan Sith
-----------------------------------
require("scripts/globals/status");
function onMobInitialize(mob)
mob:addMod(MOD_MATT,20);
mob:addMod(MOD_MACC,400);
end;
function onMobSpawn(mob)
local RND1 = math.random(1,5);
if (RND... | gpl-3.0 |
motherfscker/minetest_game | mods/bones/init.lua | 8 | 6776 | -- Minetest 0.4 mod: bones
-- See README.txt for licensing and other information.
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
local bone... | lgpl-2.1 |
yswifi/APlan | build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/libs/nixio/lua/nixio/util.lua | 179 | 5824 | --[[
nixio - Linux I/O library for lua
Copyright 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... | gpl-2.0 |
LNTakeshi/beatoraja | skin/default/play_parts.lua | 2 | 1195 |
local judges = { "pf", "gr", "gd", "bd", "pr", "ms" }
local timings = { "", "-e", "-l" }
local timings_early_late = { "-e", "-l" }
local function value_jc(j, t)
if j <= 5 then
if t == 1 then
return 109 + j
else
return 410 + (j - 1)*2 + (t - 2)
end
else
return 420 + (t - 1)
end
end
return {
judge_co... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/qm9.lua | 5 | 1852 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: qm9 (??? - Ancient Papyrus Shreds)
-- Involved in Quest: In Defiant Challenge
-- !pos 92.272 -32 -64.676 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
----------------------------... | gpl-3.0 |
Benjji/wesnoth | data/ai/micro_ais/cas/ca_protect_unit_move.lua | 26 | 3509 | local H = wesnoth.require "lua/helper.lua"
local LS = wesnoth.require "lua/location_set.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local BC = wesnoth.require "ai/lua/battle_calcs.lua"
local function get_protected_units(cfg)
local units = {}
for _,id in ipairs(cfg.id) do
table.insert(units, ... | gpl-2.0 |
yswifi/APlan | build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/ipkg-ramips_24kec/luci-lib-core/usr/lib/lua/luci/ltn12.lua | 83 | 11303 | --[[
LuaSocket 2.0.2 license
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, me... | gpl-2.0 |
deepmind/torch-distributions | distributions/tests/testNormalWishart.lua | 1 | 1694 | require 'totem'
require 'distributions'
require 'torch'
require 'pl.strict'
local myTests = {}
local tester = totem.Tester()
torch.manualSeed(1234567890)
function myTests.testNormalWishartRnd()
local D = 5
local loc = torch.randn(D)
local beta = 10
local nu = D + 10
local V = torch.randn(D,D)
V = V * V:t(... | bsd-3-clause |
soulik/luabrotli | addClass.lua | 1 | 1467 | local templates = {
hpp =
[[#ifndef LUA_BROTLI_OBJECTS_{{CNAME}}_H
#define LUA_BROTLI_OBJECTS_{{CNAME}}_H
#include "common.hpp"
namespace luabrotli {
class {{CLASS}} : public Object<{{ORIG_CLASS}}> {
public:
explicit {{CLASS}}(State * state) : Object<{{ORIG_CLASS}}>(state){
}
{{ORIG_CLASS}} * constructor(St... | gpl-2.0 |
mwoz123/koreader | plugins/coverbrowser.koplugin/covermenu.lua | 2 | 34084 | local BD = require("ui/bidi")
local DocumentRegistry = require("document/documentregistry")
local DocSettings = require("docsettings")
local FileManagerBookInfo = require("apps/filemanager/filemanagerbookinfo")
local ImageViewer = require("ui/widget/imageviewer")
local InfoMessage = require("ui/widget/infomessage")
loc... | agpl-3.0 |
bnetcc/darkstar | scripts/zones/Sea_Serpent_Grotto/npcs/_4w3.lua | 5 | 2529 | -----------------------------------
-- Area: Sea Serpent Grotto
-- NPC: Mythril Beastcoin Door
-- @zone 176
-- !pos 40 8.6 20.012
-----------------------------------
package.loaded["scripts/zones/Sea_Serpent_Grotto/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scrip... | gpl-3.0 |
manon-cortial/pypot | pypot/vrep/child_script/inject_code.lua | 6 | 2437 | -- DO NOT WRITE CODE OUTSIDE OF THE if-then-end SECTIONS BELOW!! (unless the code is a function definition)
if (sim_call_type==sim_childscriptcall_initialization) then
-- Put some initialization code here
-- Make sure you read the section on "Accessing general-type objects programmatically"
-- For instance... | gpl-3.0 |
yinlei/tgame | tengine/helper/timer.lua | 1 | 2437 | --------------------------------------------------------------------------------
--- timer.lua
--------------------------------------------------------------------------------
local _PACKAGE = (...):match("^(.+)[%./][^%./]+") or ""
local c = tengine.c
local now = c.now
local timer = tengine.timer
local priority_queue ... | mit |
bnetcc/darkstar | scripts/zones/Abyssea-Konschtat/mobs/Mesa_Wivre.lua | 1 | 1153 | -----------------------------------
-- Area: Abyssea - Konschtat (15)
-- Mob: Mesa_Wivre
-----------------------------------
package.loaded["scripts/globals/abyssea"] = nil;
-----------------------------------
require("scripts/zones/Abyssea-Konschtat/textIDs");
require("scripts/globals/abyssea");
require("scripts/g... | gpl-3.0 |
awesomeWM/awesome | tests/examples/wibox/nwidget/actionlist/icon_only.lua | 4 | 1226 | --DOC_GEN_IMAGE
local parent = ... --DOC_HIDE --DOC_NO_USAGE
local naughty = { --DOC_HIDE
list = {actions = require("naughty.list.actions")}, --DOC_HIDE
notification = require("naughty.notification"), --DOC_HIDE
action = require("naughty.action") --DOC_HIDE
} --DOC_HIDE
local wibox = requir... | gpl-2.0 |
mrvigeo/uzzbot | plugins/twitter_send.lua | 627 | 1555 | do
local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local client = OAuth.new(consumer_key, consumer_secret, {
RequestToken = "https://api.twitter.com/oauth/request_token",
AuthorizeUser = {"https://api.twitter.com/oauth/autho... | gpl-2.0 |
TurkeyMan/premake-core | modules/vstudio/tests/cs2005/test_build_events.lua | 14 | 2032 | --
-- tests/actions/vstudio/cs2005/test_build_events.lua
-- Check generation of pre- and post-build commands for C# projects.
-- Copyright (c) 2012-2013 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vstudio_cs2005_build_events")
local dn2005 = p.vstudio.dotnetbase
--
-- Se... | bsd-3-clause |
yswifi/APlan | build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/libs/sys/luasrc/sys/zoneinfo/tzoffset.lua | 72 | 3904 | --[[
LuCI - Autogenerated Zoneinfo Module
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.sys.zoneinfo.tzoffset"
OFFSET = {
gmt =... | gpl-2.0 |
mwoz123/koreader | frontend/apps/reader/modules/readerrotation.lua | 5 | 1031 | local InputContainer = require("ui/widget/container/inputcontainer")
local Device = require("device")
local Event = require("ui/event")
local _ = require("gettext")
local ReaderRotation = InputContainer:new{
current_rotation = 0
}
function ReaderRotation:init()
if Device:hasKeyboard() then
self.key_ev... | agpl-3.0 |
yswifi/APlan | build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/modules/niu/luasrc/model/cbi/niu/network/ddns1.lua | 37 | 1993 | --[[
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... | gpl-2.0 |
TurkeyMan/premake-core | modules/vstudio/tests/vc2010/test_fxcompile_settings.lua | 8 | 3956 | --
-- tests/actions/vstudio/vc2010/test_fxcompile_settings.lua
-- Validate FxCompile settings in Visual Studio 2010 C/C++ projects.
-- Copyright (c) 2014 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vstudio_vs2010_fxcompile_settings")
local vc2010 = p.vstudio.vc2010
local ... | bsd-3-clause |
bnetcc/darkstar | scripts/zones/Dangruf_Wadi/npcs/qm3.lua | 5 | 1604 | -----------------------------------
-- NPC: ??? (QM3)
-- Type: Saltvix dice roll game part 2
-- @zone 191
-- Involved in quest "As Thick As Thieves"
-----------------------------------
package.loaded["scripts/zones/Dangruf_Wadi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
r... | gpl-3.0 |
bnetcc/darkstar | scripts/zones/Abyssea-Vunkerl/mobs/Lord_Varney.lua | 1 | 1166 | -----------------------------------
-- Area: Abyssea - Vunkerl (217)
-- Mob: Lord_Varney
-----------------------------------
require("scripts/zones/Abyssea-Vunkerl/textIDs");
require("scripts/globals/abyssea");
require("scripts/globals/status");
require("scripts/globals/keyitems");
---------------------------------... | gpl-3.0 |
paulcuth/starlight | test/lua/lib-require/sub-module.lua | 4 | 1348 | --------------------------------------------------------------------------
-- Moonshine - a Lua virtual machine.
--
-- Email: moonshine@gamesys.co.uk
-- http://moonshinejs.org
--
-- Copyright (c) 2013-2015 Gamesys Limited. All rights reserved.
--
-- Permission is hereby granted, free of charge, to any person obtaining
... | mit |
amirazadi/BDReborn | plugins/msg-checks.lua | 1 | 11966 | --Begin msg_checks.lua
local TIME_CHECK = 2
local function pre_process(msg)
local data = load_data(_config.moderation.data)
local chat = msg.to.id
local user = msg.from.id
local is_channel = msg.to.type == "channel"
local is_chat = msg.to.type == "chat"
local auto_leave = 'auto_leave_bot'
local hash = "gp_lang:"..chat... | gpl-3.0 |
yinlei/tgame | tengine/base/class.lua | 1 | 4045 | --[[
lua class
--]]
local assert = assert
local error = error
local getmetatable = getmetatable
local rawget = rawget
local setmetatable = setmetatable
local string_format = string.format
local type = type
if tolua then
local tolua_getpeer = tolua.getpeer
local tolua_... | mit |
yswifi/APlan | build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/contrib/luadoc/lua/luadoc/util.lua | 93 | 5826 | -------------------------------------------------------------------------------
-- General utilities.
-- @release $Id: util.lua,v 1.16 2008/02/17 06:42:51 jasonsantos Exp $
-------------------------------------------------------------------------------
local posix = require "nixio.fs"
local type, table, string, io, as... | gpl-2.0 |
mwoz123/koreader | frontend/document/pdfdocument.lua | 1 | 12867 | local CacheItem = require("cacheitem")
local CanvasContext = require("document/canvascontext")
local DocCache = require("document/doccache")
local DocSettings = require("docsettings")
local Document = require("document/document")
local DrawContext = require("ffi/drawcontext")
local logger = require("logger")
local util... | agpl-3.0 |
knyghtmare/War_of_Legends | ai/lua/jinx.lua | 1 | 9993 | local helper = wesnoth.require "lua/helper.lua"
local utils = wesnoth.require "~add-ons/War_of_Legends/ai/lua/utils.lua"
local jinx = { }
local ai_stdlib = wesnoth.require('ai/lua/stdlib.lua');
ai_stdlib.init(ai)
ai.say_hello()
local function get_jinx_attack_parameters(unit, attack)
index = 0
for att in help... | gpl-2.0 |
bnetcc/darkstar | scripts/zones/Lower_Jeuno/npcs/Chululu.lua | 5 | 5057 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Chululu
-- Starts and Finishes Quests: Collect Tarut Cards, Rubbish Day
-- Optional Cutscene at end of Quest: Searching for the Right Words
-- !pos -13 -6 -42 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = n... | gpl-3.0 |
Etiene/Algorithm-Implementations | Bogosort/Lua/Yonaba/bogosort.lua | 27 | 1070 | -- A custom array shuffle implementation
-- This is not part of the Bogosort algorithm
local function shuffle(list)
local n = #list
for i = 1, n do
local j, k = math.random(1,n), math.random(1,n)
list[j], list[k] = list[k], list[j]
end
return list
end
-- Checks if an array is sorted
local function is_sorted... | mit |
JabJabJab/Sledgehammer | src/main/lua/module/core.chat/ChatMessage.lua | 1 | 8289 | -- This file is part of Sledgehammer.
--
-- Sledgehammer is free software: you can redistribute it and/or modify
-- it under the terms of the GNU Lesser General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- ... | lgpl-3.0 |
awesomeWM/awesome | tests/examples/wibox/widget/imagebox/vertical_fit_policy.lua | 2 | 2190 | --DOC_HIDE_ALL
--DOC_GEN_IMAGE
local parent = ...
local wibox = require( "wibox" )
local beautiful = require( "beautiful" )
local lgi = require("lgi")
local cairo = lgi.cairo
-- A simple Awesome logo
local function demo()
local img = cairo.ImageSurface.create(cairo.Format.ARGB32, 32, 22)
local cr = ... | gpl-2.0 |
LuaAV/libluaav | libluaav/wtest.lua | 1 | 5906 |
-- an interesting possibility to do the windows version entirely in luajit
-- @see http://pastebin.com/XAyU1srh
package.preload['extern.mswindows'] = function()
local bit = require 'bit'
local ffi = require 'ffi'
ffi.cdef [[
typedef int32_t bool32;
typedef intptr_t (__stdcall *WNDPROC)(void* hwn... | mit |
bnetcc/darkstar | scripts/globals/abilities/water_shot.lua | 3 | 3377 | -----------------------------------
-- Ability: Water Shot
-- Consumes a Water Card to enhance water-based debuffs. Deals water-based magic damage
-- Drown Effect: Enhanced DoT and STR-
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/... | gpl-3.0 |
mwoz123/koreader | frontend/ui/elements/menu_activate.lua | 9 | 2297 | local InfoMessage = require("ui/widget/infomessage")
local UIManager = require("ui/uimanager")
local _ = require("gettext")
local function activateMenu() return G_reader_settings:readSetting("activate_menu") end
return {
text = _("Activate menu"),
sub_item_table = {
{
text = _("Swipe and t... | agpl-3.0 |
awesomeWM/awesome | lib/awful/widget/tasklist.lua | 1 | 43310 | ---------------------------------------------------------------------------
--- Tasklist widget module for awful.
--
-- <a name="status_icons"></a>
-- **Status icons:**
--
-- By default, the tasklist prepends some symbols in front of the client name.
-- This is used to notify that the client has some specific propertie... | gpl-2.0 |
bnetcc/darkstar | scripts/zones/Al_Zahbi/npcs/Famatar.lua | 3 | 2701 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Famatar
-- Type: Imperial Gate Guard
-- !pos -105.538 0.999 75.456 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals... | gpl-3.0 |
deepmind/torch-distributions | distributions/tests/testChi2Test.lua | 3 | 5079 | require 'totem'
require 'distributions'
local mytest = {}
local tester = totem.Tester()
function mytest.testChiSquareGaussian()
local nPoints = 1000
local mu = 5
local sigma = 10
local x = torch.randn(nPoints)
x = x * sigma + mu
-- Chi-square test at 99.9%
local p, chi2 = distributions.chi... | bsd-3-clause |
yswifi/APlan | build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/libs/lucid-rpc/luasrc/lucid/rpc.lua | 52 | 1197 | --[[
LuCI - Lua Development Framework
Copyright 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 re... | gpl-2.0 |
yswifi/APlan | build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/applications/luci-pbx/luasrc/model/cbi/pbx-google.lua | 146 | 5490 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx 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
... | gpl-2.0 |
bnetcc/darkstar | scripts/zones/Port_Jeuno/npcs/Purequane.lua | 5 | 1026 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Purequane
-- @zone 246
-- !pos -76 8 54
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("sc... | gpl-3.0 |
syershov/omim | 3party/osrm/osrm-backend/profiles/bicycle.lua | 59 | 12992 | require("lib/access")
require("lib/maxspeed")
-- Begin of globals
barrier_whitelist = { [""] = true, ["cycle_barrier"] = true, ["bollard"] = true, ["entrance"] = true, ["cattle_grid"] = true, ["border_control"] = true, ["toll_booth"] = true, ["sally_port"] = true, ["gate"] = true, ["no"] = true }
access_tag_whitelist ... | apache-2.0 |
awesomeWM/awesome | tests/examples/awful/wibar/defaultwibar.lua | 1 | 4282 | --DOC_GEN_IMAGE
--DOC_HIDE_ALL
--DOC_NO_USAGE
--DOC_NO_DASH
require("_date")
local gears = require("gears")
local wibox = require("wibox")
local beautiful = require("beautiful") --DOC_HIDE
local look = require("_default_look")
local color = require("gears.color")
local offset = 60
screen[1]._resize {... | gpl-2.0 |
bnetcc/darkstar | scripts/zones/Maquette_Abdhaljs-Legion/mobs/Paramount_Harpeia.lua | 1 | 2311 | -----------------------------------
-- Area: Legion
-- Paramount_Harpeia
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/utils");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function... | gpl-3.0 |
etienne-gauvin/projet-tut | core/libs/vector.lua | 6 | 5242 | --[[
Copyright (c) 2010-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... | mit |
bnetcc/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Iruki-Waraki.lua | 5 | 6426 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Iruki-Waraki
-- Type: Standard NPC
-- Involved in quest: No Strings Attached
-- !pos 101.329 -6.999 -29.042 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------... | gpl-3.0 |
Benjji/wesnoth | data/ai/micro_ais/cas/ca_lurkers.lua | 25 | 3877 | local LS = wesnoth.require "lua/location_set.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local H = wesnoth.require "lua/helper.lua"
local function get_lurker(cfg)
-- We simply pick the first of the lurkers, they have no strategy
local lurker = AH.get_units_with_moves {
side = wesnoth.current... | gpl-2.0 |
tiagosr/ld27-train | hump/camera.lua | 47 | 3388 | --[[
Copyright (c) 2010-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... | mit |
bnetcc/darkstar | scripts/zones/Valkurm_Dunes/TextIDs.lua | 5 | 2229 | -- 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.
KEYITEM_... | gpl-3.0 |
gamebytes/pioneer | data/models/ships/talon/fighter.lua | 1 | 11510 | define_model('fighter_bot', {
info = {
materials={'medsteel'},
bounding_radius = 2,
},
static = function(lod)
set_material('medsteel', .4,.4,.4,1,.65,.68,.72,30)
use_material('medsteel')
texture('fighter.png')
load_obj('fighter_bot.obj')
texture(nil)
end
})
define_model('fighter_guns', ... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.