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 |
|---|---|---|---|---|---|
AlexandreCA/update | scripts/zones/Upper_Jeuno/npcs/Renik.lua | 34 | 1376 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Renik
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Upper_Jeuno/TextIDs");
require("scripts/globals/quests");
---... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Temenos/mobs/Fire_Elemental.lua | 7 | 1734 | -----------------------------------
-- Area: Temenos E T
-- NPC: Fire_Elemental
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
------------------------------... | gpl-3.0 |
paly2/minetest-minetestforfun-server | minetestforfun_game/mods/farming/potato.lua | 1 | 2863 |
--= Potato (Original textures from DocFarming mod)
-- https://forum.minetest.net/viewtopic.php?id=3948
minetest.register_craftitem("farming:potato", {
description = "Potato",
inventory_image = "farming_potato.png",
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer,... | unlicense |
AlexandreCA/update | scripts/zones/Northern_San_dOria/npcs/Maurinne.lua | 38 | 1026 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Maurinne
-- Type: Standard Dialogue NPC
-- @zone: 231
-- @pos -127.185 0.000 179.193
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs")... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Bibiki_Bay/npcs/Fheli_Lapatzuo.lua | 19 | 4842 | -----------------------------------
-- Area: Bibiki Bay
-- NPC: Fheli Lapatzuo
-- Type: Manaclipper
-- @pos 488.793 -4.003 709.473 4
-----------------------------------
package.loaded["scripts/zones/Bibiki_Bay/TextIDs"] = nil;
require("scripts/zones/Bibiki_Bay/TextIDs");
-----------------------------------
-- o... | gpl-3.0 |
niedzielski/premake-4.4-beta4 | tests/actions/codelite/codelite_files.lua | 8 | 1140 | --
-- tests/actions/codelite/codelite_files.lua
-- Validate generation of files block in CodeLite C/C++ projects.
-- Copyright (c) 2011 Jason Perkins and the Premake project
--
T.codelite_files = { }
local suite = T.codelite_files
local codelite = premake.codelite
--
-- Setup
--
local sln, prj
function suit... | bsd-3-clause |
annulen/premake-annulen | tests/actions/codelite/codelite_files.lua | 8 | 1140 | --
-- tests/actions/codelite/codelite_files.lua
-- Validate generation of files block in CodeLite C/C++ projects.
-- Copyright (c) 2011 Jason Perkins and the Premake project
--
T.codelite_files = { }
local suite = T.codelite_files
local codelite = premake.codelite
--
-- Setup
--
local sln, prj
function suit... | bsd-3-clause |
incinirate/Riko4 | scripts/usr/bin/edit/highlighter.lua | 1 | 8027 | local highlighter = {}
local tableInsert = table.insert
local keywords = {
["local"] = true, ["function"] = true, ["for"] = true, ["if"] = true,
["then"] = true, ["in"] = true, ["do"] = true, ["else"] = true,
["elseif"] = true, ["end"] = true, ["break"] = true, ["return"] = true,
["no... | mit |
lancehilliard/TGNS | mods/tgns/output/lua/shine/extensions/gamestracker.lua | 1 | 3987 | local GameCountIncrementer = {}
GameCountIncrementer.Create = function(tableToUpdate, gamesCountTotalSetter, gamesCountAverageSetter, playersCountSetter)
local result = {}
result.Increment = function(steamId)
steamId = tostring(steamId)
tableToUpdate[steamId] = (tableToUpdate[steamId] or 0) + 1
local totalGames... | mit |
AlexandreCA/darkstar | scripts/zones/Ifrits_Cauldron/npcs/HomePoint#1.lua | 27 | 1269 | -----------------------------------
-- Area: Ifrit's Cauldron
-- NPC: HomePoint#1
-- @pos -63 50 81 205
-----------------------------------
package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Ifrits_Cauldron/TextIDs");
require("scripts/globals/ho... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Dynamis-San_dOria/mobs/Wyrmgnasher_Bjakdek.lua | 7 | 1080 | -----------------------------------
-- Area: Dynamis San d'Oria
-- NPC: Wyrmgnasher Bjakdek
-- Boss Trigger for Overlord's Tombstone
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
end;
------------------------... | gpl-3.0 |
abbasgh12345/extremenewedit | plugins/filter.lua | 32 | 4280 | do
TMP = {}
function First( msg )
local Xdata = load_data(_config.moderation.data);
if ( not Xdata[tostring(msg.to.id)]["settings"]["Blocked_Words"] ) then
Xdata[tostring(msg.to.id)]["settings"]["Blocked_Words"] = TMP
save_data(_config.moderation.data, Xdata);
print("i couldn't find the table so i cre... | gpl-2.0 |
AlexandreCA/darkstar | scripts/zones/La_Theine_Plateau/npcs/Vicorpasse.lua | 13 | 2247 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Vicorpasse
-- Involved in Mission: The Rescue Drill
-- @pos -344 37 266 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems"... | gpl-3.0 |
syhunt/hybrid-scx | src/PenTools/Commands.lua | 2 | 2822 | SyCommands = {}
function SyCommands:Add()
console.addcmd('enscript','SyCommands:EnableScriptCommands()','Enables additional script commands')
console.addcmd('myip','SyCommands:MyIP()','Displays the local IP address')
console.addcmd('rb [code]','ScriptRunner:runscript("rb",cmd.params)','Runs Ruby Code')
console.add... | bsd-3-clause |
AlexandreCA/update | scripts/zones/The_Shrine_of_RuAvitau/npcs/Grounds_Tome.lua | 34 | 1144 | -----------------------------------
-- Area: Shrine of Ru'Avitau
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function onT... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Port_San_dOria/npcs/Maunadolace.lua | 13 | 1058 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Maunadolace
-- Type: Standard NPC
-- @zone: 232
-- @pos -22.800 -9.3 -148.645
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
------... | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/items/viking_herring.lua | 18 | 1568 | -----------------------------------------
-- ID: 5183
-- Item: viking_herring
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Dexterity 4
-- Mind -3
-- Attack % 12
-- Attack Cap 40
-- Ranged ATT % 12
-- Ranged ATT Cap 40
-----------------------------------------
require("scripts/globals/s... | gpl-3.0 |
AlexandreCA/update | scripts/globals/items/chunk_of_goblin_chocolate.lua | 35 | 1343 | -----------------------------------------
-- ID: 4495
-- Item: chunk_of_goblin_chocolate
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Charisma -5
-- Health Regen While Healing 5
-- Lizard Killer 5
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Heavens_Tower/npcs/Kupipi.lua | 13 | 7287 | -----------------------------------
-- Area: Heaven's Tower
-- NPC: Kupipi
-- Involved in Mission 2-3
-- Involved in Quest: Riding on the Clouds
-- @pos 2 0.1 30 242
-----------------------------------
package.loaded["scripts/zones/Heavens_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
Kaixhin/Atari | async/AsyncMaster.lua | 1 | 6683 | local classic = require 'classic'
local threads = require 'threads'
local tds = require 'tds'
local signal = require 'posix.signal'
local AsyncModel = require 'async/AsyncModel'
local AsyncAgent = require 'async/AsyncAgent'
local QAgent = require 'async/QAgent'
local OneStepQAgent = require 'async/OneStepQAgent'
local ... | mit |
AlexandreCA/darkstar | scripts/zones/Port_Windurst/npcs/Puo_Rhen.lua | 13 | 1052 | -----------------------------------
-- Area: Port Windurst
-- NPC: Puo Rhen
-- Type: Mission Starter
-- @zone: 240
-- @pos -227.964 -9 187.087
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
------------... | gpl-3.0 |
paly2/minetest-minetestforfun-server | mods/bobblocks/health.lua | 1 | 2615 | local is_healthpack = function(node)
if node.name == 'bobblocks:health_off' or node.name == 'health_on' then
return true
end
return false
end
local update_healthpack = function (pos, node)
local nodename=""
local param2=""
--Switch HealthPack State
if node.name == 'bobblocks:health_... | unlicense |
paly2/minetest-minetestforfun-server | mods/mesecons/mesecons_blinkyplant/init.lua | 8 | 1381 | -- The BLINKY_PLANT
local toggle_timer = function (pos)
local timer = minetest.get_node_timer(pos)
if timer:is_started() then
timer:stop()
else
timer:start(mesecon.setting("blinky_plant_interval", 3))
end
end
local on_timer = function (pos)
local node = minetest.get_node(pos)
if(mesecon.flipstate(pos, node)... | unlicense |
AlexandreCA/darkstar | scripts/zones/Bastok_Markets_[S]/TextIDs.lua | 10 | 1074 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 11209; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6384; -- Obtained: <item>
GIL_OBTAINED = 6385; -- Obtained <number> gil
KEYITEM_OBTAINED = 6387; -- Obtai... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Port_Windurst/npcs/Panja-Nanja.lua | 53 | 1909 | -----------------------------------
-- Area: Port Windurst
-- NPC: Panja-Nanja
-- Type: Fishing Adv. Image Support
-- @pos -194.499 -3 58.692 240
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requ... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Spire_of_Vahzl/Zone.lua | 17 | 1582 | -----------------------------------
--
-- Zone: Spire_of_Vahzl (23)
--
-----------------------------------
package.loaded["scripts/zones/Spire_of_Vahzl/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Spire_of_Vahzl/TextIDs");
require("scripts/g... | gpl-3.0 |
heptal/hammerspoon | extensions/socket/init.lua | 9 | 8924 | --- === hs.socket ===
---
--- Talk to custom protocols using asynchronous TCP sockets
---
--- For UDP sockets see [`hs.socket.udp`](./hs.socket.udp.html)
---
--- `hs.socket` is implemented with [CocoaAsyncSocket](https://github.com/robbiehanson/CocoaAsyncSocket). CocoaAsyncSocket's [tagging features](https://github.com... | mit |
AlexandreCA/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Ekhu_Pesshyadha.lua | 13 | 1836 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Ekhu Pesshyadha
-- Type: Standard NPC
-- @pos -13.043 0.999 103.423 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/sett... | gpl-3.0 |
samboy/Oblige | scripts/layout.lua | 1 | 53031 | ------------------------------------------------------------------------
-- LAYOUTING UTILS
------------------------------------------------------------------------
--
-- Oblige Level Maker
--
-- Copyright (C) 2006-2017 Andrew Apted
--
-- This program is free software; you can redistribute it and/or
-- modify it u... | gpl-2.0 |
nwf/openwrt-luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/exec.lua | 68 | 2536 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("Exec Plugin Configuration"),
translate(
"The exec plugin starts external commands to read values " ..
"from or to notify external processes when cer... | apache-2.0 |
AlexandreCA/update | scripts/zones/Uleguerand_Range/npcs/HomePoint#1.lua | 19 | 1189 | -----------------------------------
-- Area: Uleguerand_Range
-- NPC: HomePoint#1
-- @pos
-----------------------------------
package.loaded["scripts/zones/Uleguerand_Range/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Uleguerand_Range/TextIDs");
require("scripts/globals/homepoint");
... | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/spells/cure_ii.lua | 26 | 4497 | -----------------------------------------
-- Spell: Cure II
-- Restores target's HP.
-- Shamelessly stolen from http://members.shaw.ca/pizza_steve/cure/Cure_Calculator.html
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic")... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Bastok_Markets/Zone.lua | 26 | 2766 | -----------------------------------
--
-- Zone: Bastok_Markets (235)
--
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/chocobo");
require("scripts/globals/events/harvest_festivals");
require("scripts/globals... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/The_Colosseum/npcs/_1e9.lua | 27 | 1102 | -----------------------------------
-- Area: The Colosseum
-- NPC: _1e9 (Gate: The Pit)
-- @pos -604 -1.949 40 71
-----------------------------------
package.loaded["scripts/zones/The_Colosseum/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Colosseum/TextIDs");
-----------------------... | gpl-3.0 |
LuaDist2/gimlet-cocktail | gimlet/classic.lua | 2 | 1759 | local Classic
do
local _obj_0 = require("gimlet.init")
Classic = _obj_0.Classic
end
local classic = Classic()
local handlers
handlers = function(...)
return classic:handlers(...)
end
local action
action = function(handler)
return classic:action(handler)
end
local use
use = function(handler)
return classic:use... | mit |
AlexandreCA/darkstar | scripts/zones/Temple_of_Uggalepih/npcs/_4fz.lua | 13 | 1510 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: Granite Door
-- Leads to painbrush room @ F-7
-- @pos 60 0.1 8 159
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
re... | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/items/dish_of_spaghetti_melanzane.lua | 18 | 1386 | -----------------------------------------
-- ID: 5213
-- Item: dish_of_spaghetti_melanzane
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health % 25
-- Health Cap 100
-- Vitality 2
-- Store TP 4
-----------------------------------------
require("scripts/globals/status");
--------------... | gpl-3.0 |
james2doyle/luvi-cli-starter | libs/exec.lua | 1 | 1377 | --[[
Copyright 2014-2015 The Luvit Authors. All Rights Reserved.
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
Unless required by applicable law o... | mit |
niedzielski/premake-4.4-beta4 | src/tools/gcc.lua | 1 | 6750 | --
-- gcc.lua
-- Provides GCC-specific configuration strings.
-- Copyright (c) 2002-2011 Jason Perkins and the Premake project
--
premake.gcc = { }
--
-- Set default tools
--
premake.gcc.cc = "gcc"
premake.gcc.cxx = "g++"
premake.gcc.ar = "ar"
--
-- Translation of Premake flags into GCC flags
... | bsd-3-clause |
regar007/OfflineNews | redis-stable/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 |
AlexandreCA/update | scripts/globals/items/tiger_cod.lua | 18 | 1319 | -----------------------------------------
-- ID: 4483
-- Item: tiger_cod
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChe... | gpl-3.0 |
Maxsteam/EE | plugins/help.lua | 27 | 4675 | do
function pairsByKeys(t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
end
end
return iter
end... | gpl-2.0 |
AlexandreCA/update | scripts/zones/Yuhtunga_Jungle/mobs/Rose_Garden.lua | 29 | 1648 | -----------------------------------
-- Area: Yuhtunga Jungle
-- MOB: Rose Garden
-----------------------------------
-----------------------------------
function onMobSpawn(mob)
local Voluptuous_Vilma = 17281358;
GetMobByID(Voluptuous_Vilma):setLocalVar("1",os.time() + math.random((36000), (37800)));
... | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/spells/hunters_prelude.lua | 27 | 1520 | -----------------------------------------
-- Spell: Hunter's Prelude
-- Gives party members ranged attack accuracy
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingChe... | gpl-3.0 |
martolini/Vana | scripts/instances/kftToLudiBoarding.lua | 1 | 1402 | --[[
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 |
AlexandreCA/darkstar | scripts/globals/abilities/repair.lua | 26 | 4408 | -----------------------------------
-- Ability: Repair
-- Uses oil to restore pet's HP.
-- Obtained: Puppetmaster Level 15
-- Recast Time: 3:00
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/pets");
------------... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Southern_San_dOria_[S]/npcs/Machionage.lua | 17 | 1586 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Machionage
-- @zone 80
-- @pos -255 -3 109
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
require("scripts/globals/quests... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Kazham/npcs/Kyun_Magopiteh.lua | 15 | 1054 | -----------------------------------
-- Area: Kazham
-- NPC: Kyun Magopiteh
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Western_Altepa_Desert/npcs/qm2.lua | 13 | 1774 | -----------------------------------
-- Area: Western Altepa Desert
-- NPC: qm2 (???)
-- Involved in Mission: Bastok 6-1
-- @pos -325 0 -111 125
-----------------------------------
package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Yhoator_Jungle/npcs/qm3.lua | 19 | 1717 | -----------------------------------
-- Area: Davoi
-- NPC: ??? (qm3)
-- Involved in Quest: True will
-- @pos 203 0.1 82 124
-----------------------------------
package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/global... | gpl-3.0 |
JiessieDawn/skynet | examples/login/gated.lua | 29 | 2208 | local msgserver = require "snax.msgserver"
local crypt = require "skynet.crypt"
local skynet = require "skynet"
local loginservice = tonumber(...)
local server = {}
local users = {}
local username_map = {}
local internal_id = 0
-- login server disallow multi login, so login_handler never be reentry
-- call by login ... | mit |
AlexandreCA/darkstar | scripts/zones/Lower_Jeuno/npcs/Chululu.lua | 25 | 5445 | -----------------------------------
-- 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 |
AlexandreCA/darkstar | scripts/zones/East_Ronfaure/TextIDs.lua | 15 | 1413 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6401; -- You cannot obtain the item <item> come back again after sorting your inventory.
ITEM_OBTAINED = 6406; -- Obtained: <item>.
GIL_OBTAINED = 6407; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6409; -- Obt... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Southern_San_dOria/npcs/Taumila.lua | 24 | 2350 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Taumila
-- Starts and Finishes Quest: Tiger's Teeth (R)
-- @pos -140 -5 -8 230
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/sett... | gpl-3.0 |
LuaDist2/love-ora | tests/main.lua | 3 | 3754 | local Ora = require('ora')
function assertEquals(actual, expected, msg)
assert(actual == expected, string.format('%s (%s != %s)', msg, actual or 'nil', expected or 'nil'))
end
function love.load()
assert(Ora, 'Could not load Ora module')
ora = Ora.load('test-cases')
assert(ora, 'Could not initialize O... | bsd-3-clause |
andresgutgon/dotfiles | nvim/lua/user/keymaps.lua | 1 | 4184 | local opts = { noremap = true, silent = true }
-- Shorten function name
local keymap = vim.api.nvim_set_keymap
-- Remap space as leader key
keymap("", "<Space>", "<Nop>", opts)
vim.g.mapleader = " "
vim.g.maplocalleader = " "
-- Edit vim config
keymap("n", "<leader>ec", ":e $MYVIMRC<cr>", opts)
keymap("n", "<leader>... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Windurst_Woods/npcs/Pew_Sahbaraef.lua | 3 | 1073 | ----------------------------------
-- Area: Windurst Woods
-- NPC: Pew Sahbaraef
-- Type: Item Deliverer
-- !pos 61.899 -2.5 -112.956 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Windurst_Woods/TextIDs")... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Selbina/npcs/Explorer_Moogle.lua | 17 | 1855 | -----------------------------------
-- Area: Selbina
-- NPC: Explorer Moogle
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
require("scripts/globals/settings");
require("scripts/globals/teleports"... | gpl-3.0 |
tommo/mock | mock/gfx/MSpriteAnimatorTrack.lua | 1 | 5042 | module 'mock'
--------------------------------------------------------------------
CLASS: MSpriteAnimatorKey ( AnimatorEventKey )
:MODEL{
Field 'clip' :string() :selection( 'getClipNames' ) :set( 'setClip' );
Field 'playMode' :enum( EnumTimerMode );
Field 'throttle' :number();
'----';
Field 'useRange' ... | mit |
gowadbd/DevDroid | bot/utils.lua | 7 | 31017 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = (loadfile "./libs/serpent.lua")()
feedparser = (loadfile "./libs/feedparser.lua")()
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.... | gpl-2.0 |
liwenzhong/Atlas | examples/tutorial-monitor.lua | 40 | 5362 | --[[ $%BEGINLICENSE%$
Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; version 2 of the
License.
This program is dis... | gpl-2.0 |
Qazzian/ufoai_suspend | contrib/installer/mojosetup/scripts/mojosetup_init.lua | 5 | 16018 | -- MojoSetup; a portable, flexible installation application.
--
-- Please see the file LICENSE.txt in the source's root directory.
--
-- This file written by Ryan C. Gordon.
-- !!! FIXME: go through the schema and ditch loki_setup things we don't want.
-- These are various things that need to be exposed to Lua, or ... | gpl-2.0 |
LGCaerwyn/QSanguosha-V2-mod | lang/zh_CN/Audio/YJCM2012PackageLines.lua | 2 | 2831 | -- lines for YJCM2012 Package
return {
-- 步练师
["cv:bulianshi"] = "蒲小猫",
["$anxu1"] = "和鸾雍雍,万福攸同。",
["$anxu2"] = "君子乐胥,万邦之屏。", -- 孙权
["$zhuiyi1"] = "终其永怀,恋心殷殷。",
["$zhuiyi2"] = "妾心所系,如月之恒。", -- 孙权
["~bulianshi"] = "江之永矣,不可方思。",
-- 曹彰
["$jiangchi1"] = "谨遵父训,不可逞匹夫之勇。", --额外摸一张牌
["$jiangchi2"] = "吾定当身先士卒,振魏武雄风!... | lgpl-3.0 |
GUI/lua-resty-auto-ssl | lib/resty/auto-ssl/storage.lua | 1 | 3860 | local resty_random = require "resty.random"
local str = require "resty.string"
local _M = {}
function _M.new(options)
assert(options)
assert(options["adapter"])
assert(options["json_adapter"])
return setmetatable(options, { __index = _M })
end
function _M.get_challenge(self, domain, path)
return self.adap... | mit |
LGCaerwyn/QSanguosha-V2-mod | lang/zh_CN/Audio/SPPackageLines.lua | 2 | 5083 | -- lines for SP Package
return {
-- 杨修
["$jilei1"] = "食之无肉,弃之有味。",
["$jilei2"] = "曹公之意我已了然。",
["$danlao2"] = "来来,一人一口。",
["$danlao1"] = "我喜欢。",
["~yangxiu"] = "我固自以死之晚也。",
-- 公孙瓒
["$yicong1"] = "冲啊!", -- +1 -> -1
["$yicong2"] = "众将听令,摆好阵势,御敌!", -- -1 -> +1
["~gongsunzan"] = "我军将败,我已无颜苟活于世……",
-- 袁术
["$y... | lgpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Bhaflau_Thickets/TextIDs.lua | 3 | 1158 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6386; -- Obtained: <item>.
GIL_OBTAINED = 6387; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6389; -- Obtained... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Spire_of_Dem/Zone.lua | 30 | 1399 | -----------------------------------
--
-- Zone: Spire_of_Dem (19)
--
-----------------------------------
package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Spire_of_Dem/TextIDs");
---------------------------------... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/globals/effects/warcry.lua | 34 | 1037 | -----------------------------------
--
-- EFFECT_WARCRY
--
-- Notes:
-- Savagery TP bonus not cut in half like ffxclopedia says.
-- ffxiclopedia is wrong, bg wiki right. See link where testing was done.
-- http://www.bluegartr.com/threads/108199-Random-Facts-Thread-Other?p=5367464&viewfull=1#post5367464
-----------... | gpl-3.0 |
iovisor/bcc | examples/lua/sock-parse-http.lua | 5 | 2026 | #!/usr/bin/env bcc-lua
--[[
Copyright 2016 Marek Vavrusa <mvavrusa@cloudflare.com>
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
Unless required by app... | apache-2.0 |
openwrt-es/openwrt-luci | modules/luci-mod-system/luasrc/model/cbi/admin_system/startup.lua | 74 | 2567 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2010-2012 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2010 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local sys = require "luci.sys"
local inits = { }
for _, name ... | apache-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Leujaoam_Sanctum/instances/leujaoam_cleansing.lua | 28 | 2422 | -----------------------------------
--
-- Assault: Leujaoam Cleansing
--
-----------------------------------
require("scripts/globals/instance")
local Leujaoam = require("scripts/zones/Leujaoam_Sanctum/IDs");
-----------------------------------
-- afterInstanceRegister
-----------------------------------
function ... | gpl-3.0 |
bdw/dynasm | dynasm.lua | 60 | 30989 | ------------------------------------------------------------------------------
-- DynASM. A dynamic assembler for code generation engines.
-- Originally designed and implemented for LuaJIT.
--
-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
-- See below for full copyright notice.
----------------------------... | mit |
heroiclabs/nakama | data/modules/p2prelayer.lua | 1 | 1764 | --[[
Copyright 2018 The Nakama Authors
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
Unless required by applicable law or agreed to in writing, soft... | apache-2.0 |
rafradek/wire | lua/entities/gmod_wire_expression2/core/custom/cl_prop.lua | 6 | 2977 | language.Add("Undone_e2_spawned_prop", "Undone E2 Spawned Prop")
language.Add("Undone_e2_spawned_seat", "Undone E2 Spawned Seat")
E2Helper.Descriptions["propManipulate"] = "Allows to do any single prop core function in one term.\n(position, rotation, freeze, gravity, notsolid)"
E2Helper.Descriptions["propSpawn"] = "Use... | apache-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Cape_Teriggan/npcs/Sarmistha_IM.lua | 3 | 3316 | -----------------------------------
-- Area: Cape Teriggan
-- NPC: Sarmistha, I.M.
-- Type: Outpost Conquest Guards
-- !pos -185 7 -63 113
-----------------------------------
package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
require("... | gpl-3.0 |
rafradek/wire | lua/entities/gmod_wire_weight.lua | 10 | 1062 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Weight"
ENT.WireDebugName = "Weight"
if CLIENT then return end -- No more client
local MODEL = Model("models/props_interiors/pot01a.mdl")
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
... | apache-2.0 |
tommo/mock | mock/tools/PolygonHelper.lua | 1 | 6024 | module 'mock'
local sqrt = math.sqrt
local cos = math.cos
local acos = math.acos
local pi = math.pi
local halfPi = pi*0.5
local doublePi = pi*2
local abs = math.abs
local atan2 = math.atan2
local function reversePath( path )
local verts = path:getVerts()
local count = #verts/2
local path1 = MOCKPolyPath.new()
pa... | mit |
mzguanglin/LuCI | modules/admin-mini/luasrc/model/cbi/mini/luci.lua | 81 | 1335 | --[[
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 |
wskplho/sl4a | lua/luasocket/src/ftp.lua | 144 | 9120 | -----------------------------------------------------------------------------
-- FTP support for the Lua language
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: ftp.lua,v 1.45 2007/07/11 19:25:47 diego Exp $
-----------------------------------------------------------------------------
-------------------... | apache-2.0 |
GladeRom/android_external_skia | tools/lua/scrape.lua | 145 | 2246 | function tostr(t)
local str = ""
for k, v in next, t do
if #str > 0 then
str = str .. ", "
end
if type(k) == "number" then
str = str .. "[" .. k .. "] = "
else
str = str .. tostring(k) .. " = "
end
if type(v) == "table" then
... | bsd-3-clause |
onpon4/naev | dat/factions/equip/pirate.lua | 1 | 2132 | require "factions/equip/generic"
-- Probability of cargo by class.
equip_classCargo["Yacht"] = .5
equip_classCargo["Luxury Yacht"] = .5
equip_classCargo["Scout"] = .5
equip_classCargo["Courier"] = .5
equip_classCargo["Freighter"] = .5
equip_classCargo["Armored Transport"] = .5
equip_classCargo["Fighter"] = .5
equip_c... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/globals/items/sausage.lua | 12 | 1754 | -----------------------------------------
-- ID: 4578
-- Item: sausage
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health % 3 (cap 130)
-- Strength 3
-- Intelligence -1
-- Attack % 27
-- Attack Cap 30
-- Ranged ATT % 27
-- Ranged ATT Cap 30
-----------------------------------------
re... | gpl-3.0 |
ys1045097987/Face-Experiments | stn/train.lua | 1 | 8843 | --convert grey to color
--subtract mean before enter the network
require 'nn'
require 'image'
local ffi = require 'ffi'
require 'optim'
require 'sys'
require 'cudnn'
require 'cunn'
require 'paths'
require 'torchx'
local image = require 'image'
local trainer = {}
local casia = {}
casia.root_folder = '/data/yann/Webface/... | apache-2.0 |
wskplho/sl4a | lua/luasocket/src/ltn12.lua | 127 | 8177 | -----------------------------------------------------------------------------
-- LTN12 - Filters, sources, sinks and pumps.
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: ltn12.lua,v 1.31 2006/04/03 04:45:42 diego Exp $
-----------------------------------------------------------------------------
-------... | apache-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Yughott_Grotto/npcs/Treasure_Chest.lua | 3 | 2947 | -----------------------------------
-- Area: Yughott Grotto
-- NPC: Treasure Chest
-- !zone 142
-----------------------------------
package.loaded["scripts/zones/Yughott_Grotto/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/treasure");
require("scrip... | gpl-3.0 |
jamesliu96/neuralart | main.lua | 3 | 8137 | --
-- An implementation of the method described in 'A Neural Algorithm of Artistic
-- Style' by Leon Gatys, Alexander Ecker, and Matthias Bethge.
--
-- http://arxiv.org/abs/1508.06576
--
require 'torch'
require 'cutorch'
require 'nn'
require 'cunn'
require 'image'
require 'paths'
require 'optim'
local pl = require('pl... | mit |
jyggen/storytime | Libs/AceGUI-3.0/widgets/AceGUIWidget-Keybinding.lua | 38 | 6512 | --[[-----------------------------------------------------------------------------
Keybinding Widget
Set Keybindings in the Config UI.
-------------------------------------------------------------------------------]]
local Type, Version = "Keybinding", 24
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not Ace... | mit |
sjmGithub/csi280LearningExperience | share/lua/intf/cli.lua | 35 | 31833 | --[==========================================================================[
cli.lua: CLI module for VLC
--[==========================================================================[
Copyright (C) 2007-2011 the VideoLAN team
$Id$
Authors: Antoine Cellerier <dionoea at videolan dot org>
Pierre Ynard
... | gpl-2.0 |
babymannen/theforgottenserver-7.4 | server/data/actions/scripts/other/food.lua | 1 | 2040 | local enableSound = false
local foods = {
[2362] = {5, "Crunch."}, -- carrot
[2666] = {15, "Munch."}, -- meat
[2667] = {12, "Munch."}, -- fish
[2668] = {10, "Mmmm."}, -- salmon
[2669] = {17, "Munch."}, -- northern pike
[2670] = {4, "Gulp."}, -- shrimp
[2671] = {30, "Chomp."}, -- ham
[2672] = {60, "Chomp."}, --... | gpl-2.0 |
Lysferd/rpg-love | lua/map/sprite.lua | 1 | 6807 | --[[
===============================================================================
** Sprite v1.2 **
By Lysferd (C) 2014
Summary:
Generates and draws movable characters on the map.
Features:
- Sprite movement and facing directions are based on graphical source
- Movement in 8 directions
- Supports ch... | mit |
solotimes/lsyncd | tests/l4rsyncdata.lua | 17 | 1554 | #!/usr/bin/lua
require("posix")
dofile("tests/testlib.lua")
cwriteln("****************************************************************")
cwriteln(" Testing layer 4 default rsync with simulated data activity ")
cwriteln("****************************************************************")
local tdir, srcdir, trgdir ... | gpl-2.0 |
samuelig/skia | tools/lua/paths.lua | 92 | 3129 | --
-- Copyright 2014 Google Inc.
--
-- Use of this source code is governed by a BSD-style license that can be
-- found in the LICENSE file.
--
-- Path scraping script.
-- This script is designed to count the number of times we fall back to software
-- rendering for a path in a given SKP. However, this script does not ... | bsd-3-clause |
RebootRevival/FFXI_Test | scripts/zones/Bastok_Mines/npcs/Ranpi-Pappi.lua | 3 | 1060 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Ranpi-Pappi
-- Type: Standard NPC
-- @zone 234
-- !pos -4.535 -1.044 49.881
--
-- Auto-Script: Requires Verification (Verified by Brando)
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("script... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/globals/items/tortilla_bueno.lua | 12 | 1180 | -----------------------------------------
-- ID: 5181
-- Item: tortilla_bueno
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 8
-- Vitality 4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----... | gpl-3.0 |
openwrt-es/openwrt-luci | modules/luci-mod-rpc/luasrc/controller/rpc.lua | 10 | 6510 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.rpc", package.seeall)
function session_retrieve(sid, allowed_users)
local util = require "luci.util"
local sdat = util.ubus("sessio... | apache-2.0 |
RebootRevival/FFXI_Test | scripts/globals/items/blind_bolt.lua | 1 | 1089 | -----------------------------------------
-- ID: 18150
-- Item: Blind Bolt
-- Additional Effect: Blindness
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------
-- onAdditionalEffect Action
----... | gpl-3.0 |
Goodzilam/Goodzila-bot_v1.5 | plugins/plugins.lua | 25 | 6122 | 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 |
RebootRevival/FFXI_Test | scripts/zones/East_Ronfaure/npcs/Field_Manual.lua | 29 | 1057 | -----------------------------------
-- Field Manual
-- Area: East Ronfaure
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/fieldsofvalor");
-----------------------------------
-- onTrigger Action
--------------------------------... | gpl-3.0 |
petoju/awesome | tests/examples/screen/template.lua | 1 | 12083 | -- This template draw the screens with detailed information about the size
-- of various reserved areas such as struts, workareas, padding and *boxes.
local file_path, image_path = ...
require("_common_template")(...)
screen._track_workarea = true
local cairo = require("lgi").cairo
local Pango = require("lgi").Pango
... | gpl-2.0 |
hanxi/LoveClear | Resources/DrawPrimitives.lua | 57 | 12038 | local dp_initialized = false
local dp_shader = nil
local dp_colorLocation = -1
local dp_color = { 1.0, 1.0, 1.0, 1.0 }
local dp_pointSizeLocation = -1
local dp_pointSize = 1.0
local SHADER_NAME_POSITION_U_COLOR = "ShaderPosition_uColor"
local targetPlatform = CCApplication:getInstance():getTargetPlatform()
loca... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.