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 |
|---|---|---|---|---|---|
rinstrum/LUA-LIB | K400Examples/recipe.lua | 2 | 4522 | #!/usr/local/bin/lua
-------------------------------------------------------------------------------
-- recipe
--
-- Sample recipe application showing the manipulation of registers and other
-- values and the saving and restoring of these from a database.
----------------------------------------------------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5fc.lua | 13 | 1077 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Titan's Gate
-- @pos 260 -34 -71 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs");
-----... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Nashmau/npcs/Mamaroon.lua | 13 | 1504 | -----------------------------------
-- Area: Nashmau
-- NPC: Mamaroon
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/shop");
---------------------... | gpl-3.0 |
dlnichols/LibDebugger | lib/LibStub/LibStub.lua | 9 | 1535 | -- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info
-- LibStub is hereby placed in the Public Domain Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke
-- LibStub developed for World of Warcraft by above members of the WowAce communi... | mit |
mohammad25253/seed238 | plugins/bugzilla.lua | 289 | 1375 | -- See https://bitcoinaverage.com/api
local function getBTCX(amount,currency)
local base_url = 'https://api.bitcoinaverage.com/ticker/global/'
-- Do request on bitcoinaverage, the final / is critical!
local res,code = https.request(base_url..currency.."/")
if code ~= 200 then return nil end
local data = j... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/Windurst_Woods/npcs/Nokkhi_Jinjahl.lua | 13 | 13166 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Nokkhi Jinjahl
-- Type: Travelling Merchant NPC / NPC Quiver Maker / Windurst 1st Place
-- @zone: 241
-- @pos 3.306 0.84 -41.601
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scr... | gpl-3.0 |
Hostle/luci | modules/luci-base/luasrc/sys/zoneinfo/tzoffset.lua | 14 | 4023 | -- Licensed to the public under the Apache License 2.0.
module "luci.sys.zoneinfo.tzoffset"
OFFSET = {
gmt = 0, -- GMT
eat = 10800, -- EAT
cet = 3600, -- CET
wat = 3600, -- WAT
cat = 7200, -- CAT
eet = 7200, -- EET
wet = 0, -- WET
sast = 7200, -- SAST
hst = -36000, -- HS... | apache-2.0 |
AdamGagorik/darkstar | scripts/zones/Port_Bastok/npcs/Ronan.lua | 29 | 2734 | -----------------------------------
-- Area: Port Bastok
-- NPC: Ronan
-- Start & Finishes Quest: Out of One's Shell
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
... | gpl-3.0 |
rinstrum/LUA-LIB | src/rinLibrary/K400Reg.lua | 2 | 5622 | -------------------------------------------------------------------------------
--- Register Functions.
-- Functions to read, write and execute commands on instrument registers directly
-- @module rinLibrary.Device.Reg
-- @author Darren Pearson
-- @author Merrick Heley
-- @copyright 2014 Rinstrum Pty Ltd
--------------... | gpl-3.0 |
Wiladams/cream | ovs/ovsdb/ovsdb_ffi.lua | 1 | 3480 |
local ffi = require("ffi")
--require ("compiler")
require ("ovs.lib.hmap")
require ("ovs.lib.list")
require ("ovs.lib.shash")
ffi.cdef[[
struct json;
struct ovsdb_log;
struct ovsdb_session;
struct ovsdb_txn;
struct simap;
struct uuid;
]]
ffi.cdef[[
/* Database schema. */
struct ovsdb_schema {
char *name;
ch... | mit |
Laeeth/dub | dub/CTemplate.lua | 4 | 3603 | --[[------------------------------------------------------
# A C++ template definition.
(internal) C++ template definition. This is a sub-class of dub.Class.
--]]------------------------------------------------------
local lub = require 'lub'
local dub = require 'dub'
local lib = lub.class 'dub.CTemplate'
local ... | mit |
AdamGagorik/darkstar | scripts/zones/Northern_San_dOria/npcs/Pursuivant.lua | 13 | 1064 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Pursuivant
-- Type: Standard NPC
-- @zone: 231
-- @pos 54.000 -1.199 11.937
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
... | gpl-3.0 |
codyopel/dotfiles | config/nvim/init.lua | 1 | 22473 | local intToBool = { [0]=false, [1]=true }
local isWindows = intToBool[vim.fn.has('win32')]
local isUnix = intToBool[vim.fn.has('unix')]
-- TODO: look for local file or environment variable to toggle
local isMinimal = false
vim.opt.clipboard = 'unnamedplus'
vim.opt.colorcolumn = { '81', '121' }
vim.opt.cursorline = tru... | bsd-3-clause |
almeidaxan/MegaNEAT | scripts/MegaNEAT2-elvis.lua | 1 | 38484 |
function getBulletsX()
local bullets = {}
for slot=0,7 do
-- Status is used to determine if the object is currently rendered
local status = memory.readbyte(0x1228 + slot * 64)
if status ~= 0 then
bullets[#bullets+1] = {
["action1"] = memory.readbyte(0x1228 + slot * 64 + 1),
["action2"] = ... | gpl-3.0 |
mohammad25253/seed238 | plugins/danbooru.lua | 31 | 1751 | do
local URL = "http://danbooru.donmai.us"
local URL_NEW = "/posts.json"
local URL_POP = "/explore/posts/popular.json"
local scale_day = "?scale=day"
local scale_week = "?scale=week"
local scale_month = "?scale=month"
local function get_post(url)
local b, c, h = http.request(url)
if c ~= 200 then return nil end
... | gpl-2.0 |
Mr-Pi/nodemcu-extended-httpserver | httpserver/handler.lua | 1 | 1487 | -- vim: sw=4 ts=4
--
-- http request handler
require "class"
require "console"
require "httpserver/request"
local Handler=class(function(handler, socket)
console.log("http handler connection opened")
handler.socket=socket
handler.payload=""
handler.package=0
handler.header=false
handler.bytesReceived=0
handl... | mit |
mahmedhany128/Mr_BOT | libs/fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-2.0 |
erfanteam/tabchi | fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-3.0 |
teamactivebot/team-active | plugins/arabic_lock.lua | 22 | 1379 | antiarabic = {}-- An empty table for solving multiple kicking problem
do
local function run(msg, matches)
if is_momod(msg) then -- Ignore mods,owner,admins
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)]['settings']['lock_arabic'] then
if data[tostring(msg.to.id)... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/Al_Zahbi/npcs/Macici.lua | 53 | 2304 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Macici
-- Type: Smithing Normal/Adv. Image Support
-- @pos -35.163 -1 -31.351 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scr... | gpl-3.0 |
nopsky/waifu2x | lib/pairwise_transform.lua | 33 | 9919 | require 'image'
local gm = require 'graphicsmagick'
local iproc = require './iproc'
local reconstruct = require './reconstruct'
local pairwise_transform = {}
local function random_half(src, p, min_size)
p = p or 0.5
local filter = ({"Box","Blackman", "SincFast", "Jinc"})[torch.random(1, 4)]
if p > torch.unifo... | mit |
Lexicality/gmmodules | sourcebans.lua | 1 | 28372 | --[[
~ Sourcebans GLua Module ~
Copyright (c) 2011-2013 Lex Robinson
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 rig... | mit |
hadirahimi1380/-AhRiMaN- | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/Lower_Jeuno/npcs/Fephita.lua | 27 | 1735 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Fephita
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/chocobo");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- ... | gpl-3.0 |
likeleon/Cnc | mods/cnc/maps/nod02a/nod02a.lua | 15 | 7806 | NodUnits = { "bggy", "e1", "e1", "e1", "e1", "e1", "bggy", "e1", "e1", "e1", "bggy" }
NodBaseBuildings = { "hand", "fact", "nuke" }
DfndActorTriggerActivator = { Refinery, Barracks, Powerplant, Yard }
Atk3ActorTriggerActivator = { Guard1, Guard2, Guard3, Guard4, Guard5, Guard6, Guard7 }
Atk1CellTriggerActivator = { C... | gpl-2.0 |
Hostle/luci | applications/luci-app-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo_mini.lua | 141 | 1054 | --[[
netdiscover_devinfo - SIP Device Information
(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$
]]--
require("luci.i1... | apache-2.0 |
AdamGagorik/darkstar | scripts/zones/Attohwa_Chasm/npcs/qm1.lua | 13 | 1613 | -----------------------------------
-- Area: Attohwa Chasm
-- NPC: ??? (qm1)
-- @pos -402.574 3.999 -202.750 7
-----------------------------------
package.loaded["scripts/zones/Attohwa_Chasm/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Attohwa_Chasm/TextIDs");
--------------------... | gpl-3.0 |
rinstrum/LUA-LIB | tests/network/digital.lua | 2 | 3644 | -------------------------------------------------------------------------------
-- Digital IO network test.
-- @author Pauli
-- @copyright 2014 Rinstrum Pty Ltd
-------------------------------------------------------------------------------
describe("Digital #digital", function ()
local net = require "tests.networ... | gpl-3.0 |
mohammad25253/seed238 | plugins/media.lua | 297 | 1590 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
Nathan22Miles/sile | lua-libraries/imagesize/format/tiff.lua | 9 | 3389 | local Util = require "imagesize.util"
local MIME_TYPE = "image/tiff"
local function _get_uint8 (s, p) return s:byte(p) end
local function _get_int8 (s, p)
local n = s:byte(p)
return (n >= 128) and -(256 - n) or n
end
-- Contributed by Cloyce Spradling <cloyce@headgear.org>
local function size (stream, optio... | mit |
mohammadrassoul/roborsevenn | 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-3.0 |
tahashakiba/xx | plugins/weather.lua | 274 | 1531 | do
local BASE_URL = "http://api.openweathermap.org/data/2.5/weather"
local function get_weather(location)
print("Finding weather in ", location)
location = string.gsub(location," ","+")
local url = BASE_URL
url = url..'?q='..location
url = url..'&units=metric'
url = url..'&appid=bd82977b86bf27fb59a04b61b6... | gpl-2.0 |
ashkanpj/firebot | plugins/ingroup.lua | 527 | 44020 | do
-- Check Member
local function check_member_autorealm(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostr... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/Metalworks/npcs/HomePoint#2.lua | 13 | 1254 | -----------------------------------
-- Area: Metalworks
-- NPC: HomePoint#2
-- @pos: -78 2 2 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Metalworks/TextIDs");
require("scripts/globals/homepoint");
----... | gpl-3.0 |
mynameiscraziu/karizma | plugins/groupmanager.lua | 136 | 11323 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if not is_admin(msg) then
return "You're not admin!"
end
local group_creator = msg.from.print_name
create_group_chat (group_cr... | gpl-2.0 |
mosy210/PERSION-BOT | plugins/groupmanager.lua | 136 | 11323 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if not is_admin(msg) then
return "You're not admin!"
end
local group_creator = msg.from.print_name
create_group_chat (group_cr... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/Windurst_Woods/npcs/HomePoint#3.lua | 27 | 1265 | -----------------------------------
-- Area: Windurst Woods
-- NPC: HomePoint#3
-- @pos -92 -5 62 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Windurst_Woods/TextIDs");
require("scripts/globals/homepo... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/items/simit.lua | 19 | 1289 | -----------------------------------------
-- ID: 5596
-- Item: simit
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 16
-- Dexterity -1
-- Vitality 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChe... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/items/serving_of_golden_royale.lua | 18 | 1474 | -----------------------------------------
-- ID: 5558
-- Item: Serving of Golden Royale
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10
-- MP +10
-- Intelligence +2
-- HP Recoverd while healing 2
-- MP Recovered while healing 2
---------------------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Gustav_Tunnel/mobs/Macroplasm.lua | 8 | 1198 | ----------------------------------
-- Area: Gustav Tunnel
-- MOB: macroplasm
-----------------------------------
package.loaded["scripts/zones/Gustav_Tunnel/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Gustav_Tunnel/TextIDs");
require("scripts/globals/settings");
require("scripts/globals... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Windurst_Woods/npcs/Zahsa_Syalmhaia.lua | 13 | 1067 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Zahsa Syalmhaia
-- Type: Great War Veteran NPC
-- @zone: 241
-- @pos 13.710 1.422 -83.198
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = ni... | gpl-3.0 |
grzegorznyga/hen-hero | scene_game_pause.lua | 1 | 3538 | ----------------------------------------------------------------------------------
--
-- scenetemplate.lua
--
----------------------------------------------------------------------------------
local storyboard = require( "storyboard" )
local scene = storyboard.newScene()
----------------------------------------------... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/Sea_Serpent_Grotto/npcs/Grounds_Tome.lua | 30 | 1109 | -----------------------------------
-- Area: Sea Serpent Grotto
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,n... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Western_Altepa_Desert/npcs/_3h5.lua | 13 | 1873 | -----------------------------------
-- Area: Western Altepa Desert
-- NPC: _3h5 (Ruby Column)
-- Notes: Mechanism for Altepa Gate
-- @pos 59 10 -104 125
-----------------------------------
package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/zones... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/abilities/shadowbind.lua | 26 | 1929 | -----------------------------------
-- Ability: Shadowbind
-- Roots enemy in place.
-- Obtained: Ranger Level 40
-- Recast Time: 5:00
-- Duration: 00:30
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- onAbilityCheck
---... | gpl-3.0 |
TrurlMcByte/docker-prosody | etc/prosody-modules/mod_vjud/vcard.lib.lua | 32 | 9198 | -- Copyright (C) 2011-2012 Kim Alvefur
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-- TODO
-- Fix folding.
local st = require "util.stanza";
local t_insert, t_concat = table.insert, table.concat;
local type = type;
local next, pairs, ipairs = n... | mit |
aquileia/wesnoth | join.lua | 1 | 3763 | -- join.lua --
-- Try to join a game called "Test"
local function plugin()
local function log(text)
std_print("join: " .. text)
end
local counter = 0
local events, context, info
local helper = wesnoth.require("lua/helper.lua")
local function find_test_game(info)
local g = info.game_list()
... | gpl-2.0 |
mamadtnt/new4 | plugins/stats.lua | 81 | 4126 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/Kazham/npcs/Majjih_Bakrhamab.lua | 30 | 1383 | -----------------------------------
-- Area: Kazham
-- NPC: Majjih Bakrhamab
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
----------------------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_nf4.lua | 13 | 3000 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Strange Apparatus
-- @pos: 104 0 -179 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
require("scripts/zones/The_Eldieme_Necropolis/TextIDs");
require("scripts/globals/strangeappar... | gpl-3.0 |
kuzetsa/NEAT_PERCEPTRON | lunajson/decoder.lua | 11 | 8775 | local error = error
local byte, char, find, gsub, match, sub = string.byte, string.char, string.find, string.gsub, string.match, string.sub
local tonumber = tonumber
local tostring, setmetatable = tostring, setmetatable
-- The function that interprets JSON strings is separated into another file so as to
-- use bitwise... | lgpl-3.0 |
chrwi/ardupilot | Tools/CHDK-Scripts/kap_uav.lua | 183 | 28512 | --[[
KAP UAV Exposure Control Script v3.1
-- Released under GPL by waterwingz and wayback/peabody
http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script
@title KAP UAV 3.1
@param i Shot Interval (sec)
@default i 15
@range i 2 120
@param s Total Shots (0=infinite)
@default s 0
@range ... | gpl-3.0 |
fenixbinario/ardupilot | Tools/CHDK-Scripts/kap_uav.lua | 183 | 28512 | --[[
KAP UAV Exposure Control Script v3.1
-- Released under GPL by waterwingz and wayback/peabody
http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script
@title KAP UAV 3.1
@param i Shot Interval (sec)
@default i 15
@range i 2 120
@param s Total Shots (0=infinite)
@default s 0
@range ... | gpl-3.0 |
hadirahimi1380/-AhRiMaN- | bot/utils.lua | 356 | 14963 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
Nathan22Miles/sile | languages/en.lua | 3 | 40984 | SILE.hyphenator.languages["en"] = {};
SILE.hyphenator.languages["en"].patterns = {".ach4", ".ad4der", ".af1t", ".al3t", ".am5at", ".an5c", ".ang4",
".ani5m", ".ant4", ".an3te", ".anti5s", ".ar5s", ".ar4tie", ".ar4ty",
".as3c", ".as1p", ".as1s", ".aster5", ".atom5", ".au1d", ".av4i",
".awn4", ".ba4g", ".ba5na", ".bas4e"... | mit |
AdamGagorik/darkstar | scripts/zones/South_Gustaberg/npcs/Field_Manual.lua | 29 | 1063 | -----------------------------------
-- Field Manual
-- Area: South Gustaberg
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/fieldsofvalor");
-----------------------------------
-- onTrigger Action
------------------------------... | gpl-3.0 |
Anarchid/Zero-K-Infrastructure | Benchmarker/Benchmarks/games/fps_war2.sdd/LuaRules/Gadgets/dbg_fps_log.lua | 12 | 1749 |
function gadget:GetInfo()
return {
name = "Gadget_Fps_Log",
desc = "Some random logging",
author = "Licho",
date = "2013",
license = "GNU GPL, v2 or later",
layer = 1,
enabled = true -- loaded by default?
}
end
local GetTimer = Spring.GetTimer
local DiffTime... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Southern_San_dOria/npcs/Luthiaque.lua | 13 | 1426 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Luthiaque
-- General Info NPC
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests"... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Lower_Jeuno/npcs/_l03.lua | 13 | 1554 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Streetlamp
-- Involved in Quests: Community Service
-- @zone 245
-- @pos -81.310 0 -109.947
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/setti... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Norg/npcs/HomePoint#2.lua | 27 | 1236 | -----------------------------------
-- Area: Norg
-- NPC: HomePoint#2
-- @pos -65 -5 54 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Norg/TextIDs");
require("scripts/globals/homepoint");
----------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Windurst_Waters/npcs/Puroiko-Maiko_WW.lua | 12 | 5545 | -----------------------------------
-- Area: Windurst Water
-- NPC: Puroiko-Maiko, W.W.
-- X Grant Signet
-- X Recharge Emperor Band, Empress Band, or Chariot Band
-- X Accepts traded Crystals to fill up the Rank bar to open new Missions.
-- X Sells items in exchange for Conquest Points
-- X Start Supply Run Mi... | gpl-3.0 |
ToxicFrog/gtkspellcast | server/eventjoin.lua | 1 | 1039 | function server.event.join(evt)
local game = server.game
local sock = evt.sock
local player = game.clients[sock]
player.name = evt.name
player.gender = evt.gender
player.observer = not not evt.observe
if player.observer then
return
end
if game.players[evt.name] the... | gpl-3.0 |
m27frogy/rbxobfusc | LAT_src/init.lua | 1 | 1806 | LAT = { }
LAT.Lua51 = { }
local bit = require 'Lua51.bin'
LAT.Lua51.bit = bit[1]
LAT.Lua51.DumpBinary = bit[2]
LAT.Lua51.GetNumberType = require 'Lua51.PlatformConfig'
LAT.Lua51.Verifier = require 'Lua51.Verifier'
LAT.Lua51.Chunk = require 'Lua51.Chunk'
LAT.Lua51.LuaFile = require 'Lua51.LuaFile'
local ins = require '... | mit |
aqasaeed/hesam | plugins/inrealm.lua | 114 | 25001 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
sjznxd/lc-20130204 | applications/luci-statistics/luasrc/statistics/rrdtool/definitions/olsrd.lua | 85 | 3643 | --[[
Luci statistics - olsrd plugin diagram definition
Copyright 2011 Manuel Munz <freifunk at somakoma dot 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/licen... | apache-2.0 |
TrurlMcByte/docker-prosody | etc/prosody-modules/mod_incidents_handling/incidents_handling/mod_incidents_handling.lua | 32 | 13288 | -- This plugin implements XEP-268 (Incidents Handling)
-- (C) 2012-2013, Marco Cirillo (LW.Org)
-- Note: Only part of the IODEF specifications are supported.
module:depends("adhoc")
local datamanager = require "util.datamanager"
local dataforms_new = require "util.dataforms".new
local st = require "util.stanza"
loca... | mit |
TrurlMcByte/docker-prosody | etc/prosody-modules/mod_statistics/top.lua | 32 | 6810 | module("prosodytop", package.seeall);
local array = require "util.array";
local it = require "util.iterators";
local curses = require "curses";
local stats = require "stats".stats;
local time = require "socket".gettime;
local sessions_idle_after = 60;
local stanza_names = {"message", "presence", "iq"};
local top = {... | mit |
LuaDist2/luasocket-unix | src/mime.lua | 118 | 2433 | -----------------------------------------------------------------------------
-- MIME support for the Lua language.
-- Author: Diego Nehab
-- Conforming to RFCs 2045-2049
-- RCS ID: $Id: mime.lua,v 1.29 2007/06/11 23:44:54 diego Exp $
-----------------------------------------------------------------------------
------... | mit |
Hostle/luci | build/luadoc/doc.lua | 78 | 3419 | #!/usr/bin/env lua
-------------------------------------------------------------------------------
-- LuaDoc launcher.
-- @release $Id: luadoc.lua.in,v 1.1 2008/02/17 06:42:51 jasonsantos Exp $
-------------------------------------------------------------------------------
--local source = debug.getinfo(1).source or "... | apache-2.0 |
Wiladams/cream | ovs/testy/test_json.lua | 1 | 1582 | --test_json.lua
local ffi = require("ffi")
local libovs = require("lib.libopenvswitch");
libovs(); -- make things global
local jsonsample1 = [[
{
"glossary": {
"title": "example glossary",
"GlossDiv": {
"title": "S",
"GlossList": {
"GlossEntry": {
"ID": ... | mit |
AdamGagorik/darkstar | scripts/zones/Northern_San_dOria/npcs/Belgidiveau.lua | 25 | 2335 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Belgidiveau
-- Starts and Finishes Quest: Trouble at the Sluice
-- @zone 231
-- @pos -98 0 69
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scrip... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Port_San_dOria/TextIDs.lua | 14 | 4857 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED_1 = 6422; -- You cannot obtain the <<<Possible Special Code: 01>>><<<Possible Special Code: 05>>>#<<<BAD CHAR: 8280>>><<<BAD CHAR: 80>>><<<BAD CHAR: 80>>>.<<<Prompt>>>
ITEM_CANNOT_BE_OBTAINED_2 = 6423; -- You cannot obtain the <<<Possib... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Port_Jeuno/npcs/Karl.lua | 26 | 2503 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Karl
-- Starts and Finishes Quest: Child's Play
-- @pos -60 0.1 -8 246
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/g... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Hall_of_Transference/npcs/_0e2.lua | 32 | 1335 | -----------------------------------
-- Area: Hall of Transference
-- NPC: Cermet Gate - Mea
-- @pos 280 -86 -19
-----------------------------------
package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Hall_o... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Apollyon/mobs/Borametz.lua | 7 | 1124 | -----------------------------------
-- Area: Apollyon NE
-- NPC: Borametz
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
---------------------------------... | gpl-3.0 |
Nathan22Miles/sile | core/parserbits.lua | 2 | 1415 | lpeg = require("lpeg")
local R = lpeg.R
local S = lpeg.S
local P = lpeg.P
local C = lpeg.C
local V = lpeg.V
local Cg = lpeg.Cg
local Ct = lpeg.Ct
local number = {}
local digit = R("09")
number.integer = (S("+-") ^ -1) * (digit ^ 1)
number.fractional = (P(".") ) * (digit ^ 1)
number.decimal =
(number.integer *... | mit |
AdamGagorik/darkstar | scripts/zones/Wajaom_Woodlands/TextIDs.lua | 15 | 1135 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6384; -- Obtained: <item>.
GIL_OBTAINED = 6385; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6387; -- Obtained... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/The_Garden_of_RuHmet/npcs/_0zs.lua | 13 | 1229 | -----------------------------------
-- Area: The_Garden_of_RuHmet
-- NPC: _0zs
-----------------------------------
package.loaded["scripts/zones/The_Garden_of_RuHmet/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/The_Garden_of_RuHmet/TextIDs");
------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/La_Theine_Plateau/npcs/Field_Manual.lua | 29 | 1049 | -----------------------------------
-- Field Manual
-- Area: La Theine Plateau
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/fieldsofvalor");
-----------------------------------
-- onTrigger Action
----------------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/excavation.lua | 14 | 5252 | -------------------------------------------------
-- Excavation functions
-- Info from:
-- http://wiki.ffxiclopedia.org/wiki/Excavation
-------------------------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/quests");
require("scripts/globals/settings");
--------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/items/flask_of_holy_water.lua | 21 | 1811 | -----------------------------------------
-- ID: 4154
-- Item: Flask of Holy Water
-- Item Effect: Removes curse
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----------------------------------------
function onItemCheck(target)... | gpl-3.0 |
iotcafe/nodemcu-firmware | lua_examples/http_server.lua | 53 | 3696 | --
-- Simple NodeMCU web server (done is a not so nodeie fashion :-)
--
-- Highly modified by Bruce Meacham, based on work by Scott Beasley 2015
-- Open and free to change and use. Enjoy. [Beasley/Meacham 2015]
--
-- Meacham Update: I streamlined/improved the parsing to focus on simple HTTP GET request and their simple... | mit |
mohammadrassoul/roborsevenn | plugins/expire.lua | 1 | 2289 | -----my_name_is_ehsan*#@RsEvEn
-----@RsEvEn FOR UPDATE
-----لطفا پیام بالا رو پاک نکنید
local function pre_process(msg)
msg.text = msg.content_.text
local timetoexpire = 'unknown'
local expiretime = redis:hget ('expiretime', msg.chat_id_)
local now = tonumber(os.time())
if expiretime then
timetoexpire = m... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Southern_San_dOria/npcs/Arvilauge.lua | 13 | 1501 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Arvilauge
-- Optional Involvement in Quest: A Squire's Test II
-- @zone 230
-- @pos -11 1 - 94
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("s... | gpl-3.0 |
shakib01/anonymous01 | 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 |
wwww1233/wwww | 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 |
nerdclub-tfg/telegram-bot | 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 |
master00041/gpsuper | 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 |
sjznxd/lc-20130204 | applications/luci-firewall/luasrc/model/cbi/firewall/rules.lua | 23 | 7165 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010-2012 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
htt... | apache-2.0 |
dmccuskey/lua-events-mixin | dmc_lua/lua_events_mix.lua | 32 | 8316 | --====================================================================--
-- dmc_lua/lua_events_mix.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (C) 2014-2015 David McCuskey. All Rights Reserved.
... | mit |
AdamGagorik/darkstar | scripts/zones/Kuftal_Tunnel/Zone.lua | 13 | 2329 | -----------------------------------
--
-- Zone: Kuftal_Tunnel (174)
--
-----------------------------------
package.loaded["scripts/zones/Kuftal_Tunnel/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Kuftal_Tunnel/TextIDs"... | gpl-3.0 |
sini370/jellytg | plugins/plugins.lua | 2 | 6004 | 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 |
AdamGagorik/darkstar | scripts/zones/Port_Windurst/npcs/Eya_Bhithroh.lua | 59 | 1047 | -----------------------------------
-- Area: Port Windurst
-- NPC: Eya Bhithroh
-- Type: Weather Reporter
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Port_Windurst/TextID... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/spells/regen_iv.lua | 14 | 1416 | -----------------------------------------
-- Spell: Regen IV
-- Gradually restores target's HP.
-----------------------------------------
-- Cleric's Briault enhances the effect
-- Scale down duration based on level
-- Composure increases duration 3x
-----------------------------------------
require("scripts/globals/s... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Dynamis-Windurst/mobs/Tzee_Xicu_Idol.lua | 6 | 1300 | -----------------------------------
-- Area: Dynamis Windurst
-- MOB: Tzee Xicu Idol
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/dynamis");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
end;
... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Windurst_Woods/npcs/Bopa_Greso.lua | 13 | 1857 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Bopa Greso
-- Type: Standard NPC
-- @zone: 241
-- @pos 59.773 -6.249 216.766
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
----------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/items/serving_of_snowy_rolanberry.lua | 18 | 1387 | -----------------------------------------
-- ID: 4594
-- Item: serving_of_snowy_rolanberry
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Magic % 18
-- Magic Cap 60
-- Intelligence 2
-- Wind Res 5
-----------------------------------------
require("scripts/globals/status");
------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/abilities/stay.lua | 6 | 1383 | -----------------------------------
-- Ability: Stay
-- Commands the Pet to stay in one place.
-- Obtained: Beastmaster Level 15
-- Recast Time: 5 seconds
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
----------------------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/HomePoint#1.lua | 27 | 1300 | -----------------------------------
-- Area: Southern_San_dOria_[S]
-- NPC: HomePoint#1
-- @pos -85.468 1.000 -66.454 80
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Southern_San_dOria_[S]/TextIDs... | gpl-3.0 |
sbuettner/kong | spec/unit/tools/utils_spec.lua | 13 | 3243 | local utils = require "kong.tools.utils"
describe("Utils", function()
describe("strings", function()
local first = utils.random_string()
assert.truthy(first)
assert.falsy(first:find("-"))
local second = utils.random_string()
assert.falsy(first == second)
end)
describe("tables", function()
... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.