repo_name stringlengths 6 69 | path stringlengths 6 178 | copies stringclasses 278
values | size stringlengths 4 7 | content stringlengths 671 917k | license stringclasses 15
values |
|---|---|---|---|---|---|
ArcherSys/ArcherSys | Lua/examples/penlight/tests/test-tablex.lua | 1 | 3043 | local tablex = require 'pl.tablex'
local utils = require ('pl.utils')
local L = utils.string_lambda
-- bring tablex funtions into global namespace
utils.import(tablex)
local asserteq = require('pl.test').asserteq
local cmp = deepcompare
asserteq(
copy {10,20,30},
{10,20,30}
)
asserteq(
deepcopy {10,20,{30,40}},
... | mit |
psychon/awesome | lib/awful/wibar.lua | 4 | 13099 | ---------------------------------------------------------------------------
--- Wibox module for awful.
-- This module allows you to easily create wibox and attach them to the edge of
-- a screen.
--
-- @author Emmanuel Lepage Vallee <elv1313@gmail.com>
-- @copyright 2016 Emmanuel Lepage Vallee
-- @classmod awful... | gpl-2.0 |
crazyquark/cardpeek | dot_cardpeek_dir/scripts/etc/gsm-mobile-country-codes.lua | 16 | 7787 | -- from ITU Recommendation E.218 (05/04)
GSM_MCC = {
[202] = "Greece"
[204] = "Netherlands (Kingdom of the)"
[206] = "Belgium"
[208] = "France"
[212] = "Monaco (Principality of)"
[213] = "Andorra (Principality of)"
[214] = "Spain"
[216] = "Hungary (Republic of)"
[218] = "Bosnia and Herzegovina"
[219... | gpl-3.0 |
mmusial/prosody-modules | mod_sift/mod_sift.lua | 32 | 6448 |
local st = require "util.stanza";
local jid_bare = require "util.jid".bare;
-- advertise disco features
module:add_feature("urn:xmpp:sift:1");
-- supported features
module:add_feature("urn:xmpp:sift:stanzas:iq");
module:add_feature("urn:xmpp:sift:stanzas:message");
module:add_feature("urn:xmpp:sift:stanzas:presence"... | mit |
shingenko/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Zarfhid.lua | 34 | 1034 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Zarfhid
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
--------... | gpl-3.0 |
wagonrepairer/Zero-K | scripts/arm_venom.lua | 16 | 4422 | include "constants.lua"
include "spider_walking.lua"
--------------------------------------------------------------------------------
-- pieces
--------------------------------------------------------------------------------
local body = piece 'body'
local turret = piece 'turret'
local gun = piece 'gun'
local flare... | gpl-2.0 |
AleksCore/Mr.Green-MTA-Resources | resources/[maps]/coremarkers/chatbar_c.lua | 4 | 4366 | ------------------------------------------
-- TopBarChat --
------------------------------------------
-- Developer: Braydon Davis --
-- File: c.lua --
-- Copyright 2013 (C) Braydon Davis --
-- All rights reserved. --
------------------------------------------
-- Script Version: 1.4 --
------... | mit |
Illarion-eV/Illarion-Content | quest/aelfinn_515_wilderness.lua | 1 | 11252 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
telegrambot81/kingbot-sup | plugins/time.lua | 1 | 3105 | -- Implement a command time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "h... | gpl-2.0 |
ArcherSys/ArcherSys | Lua/SciTE/scite-debug/scite_lua/class.lua | 1 | 1992 | -- class.lua
function class(base,ctor)
local c = {} -- a new class instance
if not ctor and type(base) == 'function' then
ctor = base
base = nil
elseif type(base) == 'table' then
-- our new class is a shallow copy of the base class!
for i,v in pairs(base) do
c[i] = v
end
c._base = base
... | mit |
shingenko/darkstar | scripts/zones/Bastok_Mines/npcs/Sieglinde.lua | 24 | 1809 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Sieglinde
-- Alchemy Synthesis Image Support
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/crafti... | gpl-3.0 |
shingenko/darkstar | scripts/zones/North_Gustaberg/npcs/Heavy_Fog_IM.lua | 30 | 3055 | -----------------------------------
-- Area: North Gustaberg
-- NPC: Heavy Fog, I.M.
-- Type: Border Conquest Guards
-- @pos -520.704 38.75 560.258 106
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conque... | gpl-3.0 |
changjiashuai/vlc | share/lua/playlist/vimeo.lua | 65 | 3213 | --[[
$Id$
Copyright © 2009-2013 the VideoLAN team
Authors: Konstantin Pavlov (thresh@videolan.org)
François Revol (revol@free.fr)
Pierre Ynard
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 S... | gpl-2.0 |
shingenko/darkstar | scripts/commands/giveitem.lua | 27 | 1612 | ---------------------------------------------------------------------------------------------------
-- func: @giveitem <player> <itemId> <amount> <aug1> <v1> <aug2> <v2> <aug3> <v3> <aug4> <v4>
-- desc: Gives an item to the target player.
------------------------------------------------------------------------------... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Mhoti_Pyiahrs.lua | 38 | 1045 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Mhoti Pyiahrs
-- Type: Allegiance
-- @zone: 94
-- @pos 6.356 -2 26.677
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
----... | gpl-3.0 |
openwayne/chaos_theory | mods/nssm/spawn.lua | 1 | 11159 | --Before starting a new game write 6 or 7 in order to regulate the spawns (7 works also with flat and fractal).
local mymapgenis = nssm.mymapgenis
local mm = nssm.multimobs
if (mymapgenis~=6) and (mymapgenis~=7) then
mymapgenis = 7
end
-- Spawning parameters
if mm ~= 0 then
if mymapgenis == 6 then
-- ANTS
... | lgpl-2.1 |
Illarion-eV/Illarion-Content | content/climbing.lua | 4 | 3455 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
Ninjistix/darkstar | scripts/zones/Crawlers_Nest/npcs/qm10.lua | 5 | 1790 | -----------------------------------
-- Area: Crawlers' Nest
-- NPC: qm10 (??? - Exoray Mold Crumbs)
-- Involved in Quest: In Defiant Challenge
-- !pos -83.391 -8.222 79.065 197
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil;
-----------------------------------
require("... | gpl-3.0 |
mandersan/premake-core | binmodules/luasocket/etc/cookie.lua | 44 | 2586 | local socket = require"socket"
local http = require"socket.http"
local url = require"socket.url"
local ltn12 = require"ltn12"
local token_class = '[^%c%s%(%)%<%>%@%,%;%:%\\%"%/%[%]%?%=%{%}]'
local function unquote(t, quoted)
local n = string.match(t, "%$(%d+)$")
if n then n = tonumber(n) end
if quoted[n... | bsd-3-clause |
Ninjistix/darkstar | scripts/globals/weaponskills/slug_shot.lua | 10 | 1566 | -----------------------------------
-- Slug Shot
-- Marksmanship weapon skill
-- Skill Level: 175
-- Delivers an inparams.accurate attack that deals quintuple damage. params.accuracy varies with TP.
-- Despite the lack of a STR weaponskill mod, STR is still the most potent stat for increasing this weaponskill's damage ... | gpl-3.0 |
ASHRAF97/ASHRAFKASPER | plugins/map.lua | 16 | 1866 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ MAB : طقس ▀▄ ▄▀
▀▄▀▀▄▄... | gpl-2.0 |
eyezis/Rainmeter-WaterViz | @Resources/Rebuilder.lua | 1 | 4017 | function Initialize()
-- Class definitions
-- iniBuilder: Assists with creating a structured ini
iniBuilder = class(function(o)
o.tData = {}
end)
function iniBuilder:NewSection(sSectionName)
-- iniSectionBuilder: Sub class of iniBuilder, Assists with creating a structured ini section
iniSectionBuilder = clas... | mit |
ccyphers/kong | spec/03-plugins/99-oauth2/01-schema_spec.lua | 10 | 2040 | local validate_entity = require("kong.dao.schemas_validation").validate_entity
local oauth2_schema = require "kong.plugins.oauth2.schema"
describe("Plugin: oauth2 (schema)", function()
it("does not require `scopes` when `mandatory_scope` is false", function()
local ok, errors = validate_entity({enable_authorizat... | apache-2.0 |
eugenesan/openwrt-luci | modules/admin-full/luasrc/model/cbi/admin_system/fstab/mount.lua | 57 | 3205 | --[[
LuCI - Lua Configuration Interface
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
lo... | apache-2.0 |
Ninjistix/darkstar | scripts/zones/AlTaieu/npcs/_0x2.lua | 5 | 1871 | -----------------------------------
-- Area: Al'Taieu
-- NPC: Rubious Crystal (West Tower)
-- !pos -683.709 -6.250 -222.142 33
-----------------------------------
package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/AlTaieu/TextIDs");
require("scripts/zones/... | gpl-3.0 |
ogahara/esp8266-devkit | Espressif/examples/nodemcu-firmware/tools/build.lua | 48 | 28446 | -- eLua build system
module( ..., package.seeall )
local lfs = require "lfs"
local sf = string.format
utils = require "tools.utils"
-------------------------------------------------------------------------------
-- Various helpers
-- Return the time of the last modification of the file
local function get_ftime( pat... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/bluemagic/metallic_body.lua | 5 | 1402 | -----------------------------------------
-- Spell: Metallic Body
-- Absorbs an certain amount of damage from physical and magical attacks
-- Spell cost: 19 MP
-- Monster Type: Aquans
-- Spell Type: Magical (Earth)
-- Blue Magic Points: 1
-- Stat Bonus: None
-- Level: 8
-- Casting Time: 7 seconds
-- Recast Time: 60 sec... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Davoi/npcs/Quemaricond.lua | 5 | 1543 | -----------------------------------
-- Area: Davoi
-- NPC: Quemaricond
-- Involved in Mission: Infiltrate Davoi
-- !pos 23 0.1 -23 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/globa... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/mobskills/sand_blast.lua | 4 | 1135 | ---------------------------------------------
-- Sand Blast
-- Deals Earth damage to targets in a fan-shaped area of effect. Additional effect: Blind
-- Range: 8' cone
---------------------------------------------
require("scripts/globals/monstertpmoves");
require("scripts/globals/settings");
require("scripts/globals/s... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/shock.lua | 5 | 2064 | -----------------------------------------
-- Spell: Shock
-- Deals lightning damage that lowers an enemy's mind and gradually reduces its HP.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg")... | gpl-3.0 |
arca1n/cocos2d-x_nextpeer_integration | samples/Lua/TestLua/Resources/luaScript/BugsTest/BugsTest.lua | 4 | 19991 | local MAX_COUNT = 9;
local LINE_SPACE = 40;
local kItemTagBasic = 5432;
local Winsize = cc.Director:getInstance():getWinSize();
local testNames = {
"Bug-350",
"Bug-422",
"Bug-458",
"Bug-624",
"Bug-886",
"Bug-899",
"Bug-914",
"Bug-1159",
"Bug-1174"
}
local function CreateB... | mit |
athasach/waifu2x | lib/settings.lua | 33 | 2488 | require 'xlua'
require 'pl'
-- global settings
if package.preload.settings then
return package.preload.settings
end
-- default tensor type
torch.setdefaulttensortype('torch.FloatTensor')
local settings = {}
local cmd = torch.CmdLine()
cmd:text()
cmd:text("waifu2x")
cmd:text("Options:")
cmd:option("-seed", 11, '... | mit |
Ninjistix/darkstar | scripts/globals/items/earth_wand.lua | 7 | 1040 | -----------------------------------------
-- ID: 17076
-- Item: Earth Wand
-- Additional Effect: Earth Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------
function onAdditionalEffect(pl... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Norg/npcs/Marilleune.lua | 3 | 1383 | -----------------------------------
-- Area: Norg
-- NPC: Marilleune
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/chocobo");
require("scripts/globals/status");
-----------------------------------
function... | gpl-3.0 |
dinodeck/ninety_nine_days_of_dev | 002_bitmap_numbers/code/Textbox.lua | 6 | 4671 |
Textbox = {}
Textbox.__index = Textbox
function Textbox:Create(params)
params = params or {}
if type(params.text) == "string" then
params.text = {params.text}
end
local this =
{
-- mText = params.text, Removing this
mChunks = params.text,
mChunkInde... | mit |
EliasOenal/blobby | data/scripts/old/gintonicV7.lua | 4 | 8032 | --Gin Tonic v7 - No Comments, sorry :P
CT_ServeSelf = { 152, 163, 180, 195, 205, 240 }
CT_ServeOpp = { 140, 200, 240 }
CT_ServeIndex = 0
CT_Tolerance = 5
CT_Action = ""
CT_ShotDecision = 0
CT_NextGround = 9999
CT_LastTouches = 0
CT_LastHeight = 0
CT_WaitCounter = 0
CT_WaitName = ""
CT_WaitMoveTo = 0
function IsAt(po... | gpl-2.0 |
badboyam/hfghf | plugins/stats.lua | 1 | 4115 | 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 |
Ninjistix/darkstar | scripts/zones/Nyzul_Isle/IDs.lua | 7 | 6473 | NyzulIsle = {
text = {
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6381, -- You cannot obtain the <item>. Come back after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 6385, -- You cannot obtain the <item>. Try trading again after sorting your inventory.
ITEM_OBTAINED ... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Boneyard_Gully/bcnms/like_the_wind.lua | 5 | 1649 | -----------------------------------
-- Area: Boneyard_Gully
-- Name: like_the_wind
-- BCNM: 673
-- Mask: 1
-----------------------------------
package.loaded["scripts/zones/Boneyard_Gully/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/globals/keyitems");
requ... | gpl-3.0 |
istarIQ/Source | plugins/admin.lua | 381 | 7085 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(rec... | gpl-2.0 |
Ninjistix/darkstar | scripts/globals/items/chocolate_cake.lua | 3 | 1069 | -----------------------------------------
-- ID: 5633
-- Item: Chocolate Cake
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- MP +3% (cap 90)
-- HP Recovered while healing +1
-- MP Recovered while healing +6
-----------------------------------------
require("scripts/g... | gpl-3.0 |
SvenRoederer/openwrt-packages | utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/wifi_stations.lua | 58 | 2753 | local ubus = require "ubus"
local iwinfo = require "iwinfo"
local function scrape()
local metric_wifi_stations = metric("wifi_stations", "gauge")
local metric_wifi_station_signal = metric("wifi_station_signal_dbm","gauge")
local metric_wifi_station_inactive = metric('wifi_station_inactive_milliseconds', 'gauge... | gpl-2.0 |
arca1n/cocos2d-x_nextpeer_integration | external/lua/luajit/src/dynasm/dynasm.lua | 73 | 30945 | ------------------------------------------------------------------------------
-- DynASM. A dynamic assembler for code generation engines.
-- Originally designed and implemented for LuaJIT.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- See below for full copyright notice.
----------------------------... | mit |
eugenesan/openwrt-luci | applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwan.lua | 147 | 5025 | require("luci.tools.webadmin")
m = Map("multiwan", translate("Multi-WAN"),
translate("Multi-WAN allows for the use of multiple uplinks for load balancing and failover."))
s = m:section(NamedSection, "config", "multiwan", "")
e = s:option(Flag, "enabled", translate("Enable"))
e.rmempty = false
e.default = e.enabled
... | apache-2.0 |
chroteus/clay | misc/worldTime.lua | 1 | 2187 | worldTime = {
day = 01,
month = 01,
year = 2000,
dayLength = 0.5, -- length of world day in RL seconds
leapYearCount = 4, -- 4 because we start at 2000
prevMonthWas31 = false, -- handling July and August
stopProgress = true,
}
function worldTime:start(dayLength)
self.stopProgress = false
self:progress(d... | gpl-2.0 |
jamiepg1/MCServer | MCServer/Plugins/APIDump/Hooks/OnChat.lua | 3 | 1080 | return
{
HOOK_CHAT =
{
CalledWhen = "Player sends a chat message",
DefaultFnName = "OnChat", -- also used as pagename
Desc = [[
A plugin may implement an OnChat() function and register it as a Hook to process chat messages from
the players. The function is then called for every in-game message sent from ... | apache-2.0 |
Ninjistix/darkstar | scripts/globals/mobskills/grim_reaper.lua | 37 | 1024 | ---------------------------------------------
-- Grim Reaper
--
-- Description: Deals damage in a threefold attack to targets in a fan-shaped area of effect. Additional effect: Doom
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: Unknown cone
-- Notes: Used only by certain Lamia NMs (e.g. Lamia ... | gpl-3.0 |
dinodeck/ninety_nine_days_of_dev | 002_bitmap_numbers/code/EnemyDefs.lua | 8 | 4307 | gEnemyDefs =
{
goblin =
{
id = "goblin",
stats =
{
["hp_now"] = 60,
["hp_max"] = 60,
["mp_now"] = 0,
["mp_max"] = 0,
["strength"] = 15,
["speed"] = 6,
["intelligence"] = 2,
["counter"] = 0,
... | mit |
ccyphers/kong | kong/api/routes/plugins.lua | 4 | 2394 | local crud = require "kong.api.crud_helpers"
local cjson = require "cjson"
local utils = require "kong.tools.utils"
local reports = require "kong.core.reports"
local singletons = require "kong.singletons"
-- Remove functions from a schema definition so that
-- cjson can encode the schema.
local function remove_functio... | apache-2.0 |
Ninjistix/darkstar | scripts/globals/spells/knights_minne_iii.lua | 5 | 1473 | -----------------------------------------
-- Spell: Knight's Minne III
-- Grants Defense bonus to all allies.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
retu... | gpl-3.0 |
pooya7013/anti-spam | plugins/all.lua | 46 | 4833 | do
data = load_data(_config.moderation.data)
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_print... | gpl-2.0 |
TRex22/hawkthorne-journey | src/nodes/enemies/snowman.lua | 2 | 2771 | local Timer = require 'vendor/timer'
local sound = require 'vendor/TEsound'
return {
name = 'snowman',
attack_sound = 'acorn_growl',
die_sound = 'acorn_crush',
position_offset = { x = 0, y = 4 },
height = 55,
width = 38,
damage = 2,
hp = 1,
tokens = 4,
tokenTypes = { -- p is pro... | mit |
Ninjistix/darkstar | scripts/globals/spells/curaga_ii.lua | 5 | 1407 | -----------------------------------------
-- Spell: Curaga II
-- Restores HP of all party members within area of effect.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/_5c8.lua | 4 | 1534 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Sealed Portal
-- Involved in Quest: Making the Grade
-- Door should open when Whm+Blm+Rdm stand in correct regions (see \Inner_Horutoto_Ruins\zone.lua),
-- or if player has the KeyItem "portal charm".
-- !pos -259 -1 -20 192
--------------------... | gpl-3.0 |
hvbommel/domoticz | dzVents/runtime/integration-tests/stage2.lua | 6 | 27365 | local log
local dz
local _ = require('lodash')
local resTable = {}
local err = function(msg)
log(msg, dz.LOG_ERROR)
end
local tstMsg = function(msg, res)
print('Stage: 2, ' .. msg .. ': ' .. tostring(res and 'OK' or 'FAILED'))
end
local handleResult = function(msg,res)
tstMsg(msg,res)
if res then
resTable[msg]... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Davoi/npcs/qm1.lua | 5 | 1074 | -----------------------------------
-- Area: Davoi
-- NPC: ??? (qm1)
-- Involved in Quest: To Cure a Cough
-- !pos -115.830 -0.427 -184.289 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scri... | gpl-3.0 |
teeple/pns_server | work/install/node-v0.10.25/deps/v8/tools/gcmole/gcmole.lua | 32 | 11455 | -- Copyright 2011 the V8 project authors. All rights reserved.
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are
-- met:
--
-- * Redistributions of source code must retain the above copyright
-- notice, this list of ... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Dangruf_Wadi/npcs/_5b1.lua | 5 | 2864 | -----------------------------------
-- Area: Dangruf Wadi
-- NPC: Strange Apparatus
-- !pos -494 -4 -100 191
-----------------------------------
package.loaded["scripts/zones/Dangruf_Wadi/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Dangruf_Wadi/TextIDs");
require("scripts/globals/strang... | gpl-3.0 |
kbullaughey/lstm-play | toys/rnn/model-1_layer.lua | 1 | 6559 | #!/usr/bin/env th
-- This is an RNN model with one hidden layer. It consists of three units,
-- each of which expects one input and the units are recursively connected.
require 'nngraph'
toy = require '../toy/toy'
-- Allow for command-line control over the seed and number of examples.
cmd = torch.CmdLine()
cmd:text(... | mit |
Ninjistix/darkstar | scripts/zones/Giddeus/npcs/qm1.lua | 5 | 1412 | -----------------------------------
-- Area: Giddeus
-- NPC: ???
-- Involved In Quest: Dark Legacy
-- @zone 145
-- !pos -58 0 -449
-----------------------------------
package.loaded["scripts/zones/Giddeus/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals... | gpl-3.0 |
johnsoch/cuberite | Server/Plugins/APIDump/Hooks/OnSpawningEntity.lua | 42 | 1248 | return
{
HOOK_SPAWNING_ENTITY =
{
CalledWhen = "Before an entity is spawned in the world.",
DefaultFnName = "OnSpawningEntity", -- also used as pagename
Desc = [[
This hook is called before the server spawns an {{cEntity|entity}}. The plugin can either modify the
entity before it is spawned, or disable t... | apache-2.0 |
Ninjistix/darkstar | scripts/globals/weaponskills/insurgency.lua | 5 | 1572 | -----------------------------------
-- Insurgency
-- Scythe weapon skill
-- Skill level: N/A
-- Delivers a fourfold attack. Damage varies with TP. Liberator: Aftermath effect varies with TP.
-- Available only after completing the Unlocking a Myth (Dark Knight) quest.
-- Appears to be heavily modified by attack.
-- Alig... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Zeruhn_Mines/npcs/Makarim.lua | 5 | 1202 | -----------------------------------
-- Area: Zeruhn Mines
-- NPC: Makarim
-- Involved In Mission: The Zeruhn Report
-- !pos -58 8 -333 172
-----------------------------------
package.loaded["scripts/zones/Zeruhn_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("sc... | gpl-3.0 |
codedash64/Urho3D | Source/ThirdParty/toluapp/src/bin/lua/feature.lua | 24 | 2974 | -- tolua: abstract feature class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance, support, updates,
-- enh... | mit |
carnalis/Urho3D | bin/Data/LuaScripts/Utilities/2D/Sample2D.lua | 5 | 20053 | -- Convenient functions for Urho2D samples:
-- - Generate collision shapes from a tmx file objects
-- - Create Spriter Imp character
-- - Load Mover script object class from file
-- - Create enemies, coins and platforms to tile map placeholders
-- - Handle camera zoom using PageUp, PageDown and MouseWhee... | mit |
Ninjistix/darkstar | scripts/globals/weaponskills/tachi_koki.lua | 25 | 1431 | -----------------------------------
-- Tachi Koki
-- Great Katana weapon skill
-- Skill level: 175
-- Deals light elemental damage to enemy. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Aqua Gorget & Thunder Gorget.
-- Aligned with the Aqua Belt & Thunder Belt.
-- Element: Light
-- Modifi... | gpl-3.0 |
dinodeck/ninety_nine_days_of_dev | 006_magic_menu/code/combat_events/CESteal.lua | 6 | 4341 | CESteal = {}
CESteal.__index = CESteal
function CESteal:Create(state, owner, def, targets)
local this =
{
mState = state,
mOwner = owner,
mDef = def,
mFinished = false,
mCharacter = state.mActorCharMap[owner],
mTargets = targets,
mIsFinished = false,
... | mit |
codedash64/Urho3D | bin/Data/LuaScripts/12_PhysicsStressTest.lua | 24 | 12743 | -- Physics stress test example.
-- This sample demonstrates:
-- - Physics and rendering performance with a high (1000) moving object count
-- - Using triangle meshes for collision
-- - Optimizing physics simulation by leaving out collision event signaling
-- - Usage of Lua Coroutine to yield/resume... | mit |
mandersan/premake-core | binmodules/luasocket/etc/lp.lua | 45 | 11516 | -----------------------------------------------------------------------------
-- LPD support for the Lua language
-- LuaSocket toolkit.
-- Author: David Burgess
-- Modified by Diego Nehab, but David is in charge
-----------------------------------------------------------------------------
--[[
if you have any ques... | bsd-3-clause |
Ninjistix/darkstar | scripts/zones/Beaucedine_Glacier/npcs/relic.lua | 5 | 1557 | -----------------------------------
-- Area: Beaucedine Glacier
-- NPC: <this space intentionally left blank>
-- !pos -89 0 -374 111
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Beaucedine_Glacier/TextID... | gpl-3.0 |
karrots/nodemcu-firmware | lua_examples/u8glib/u8g_rotation.lua | 19 | 2694 | -- ***************************************************************************
-- Rotation Test
--
-- This script executes the rotation features of u8glib to test their Lua
-- integration.
--
-- Note: It is prepared for SSD1306-based displays. Select your connectivity
-- type by calling either init_i2c_display() ... | mit |
digirea/hpcpfGUI | lib/dxjob.lua | 1 | 9745 |
local dxjob = {}
local cxjob = require('cxjob')
math.randomseed( os.time() )
os.tmpname(); -- for win
local function uuid()
local random = math.random
local template ='xxxxxxxx'
return string.gsub(template, '[xy]', function (c)
local v = (c == 'x') and random(0, 0xf) or random(8, 0xb)
return... | bsd-2-clause |
Ninjistix/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Hagakoff.lua | 5 | 1799 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Hagakoff
-- Standard Merchant NPC
-- Partitionally Implemented
-- Difficult Shop Script needed
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("s... | gpl-3.0 |
mandersan/premake-core | src/tools/snc.lua | 21 | 2813 | --
-- snc.lua
-- Provides Sony SNC-specific configuration strings.
-- Copyright (c) 2010-2016 Jason Perkins and the Premake project
--
local p = premake
p.tools.snc = {}
local snc = p.tools.snc
local gcc = p.tools.gcc
--
-- Retrieve the CFLAGS for a specific configuration.
--
snc.shared = {
flags = {
Fat... | bsd-3-clause |
eugenesan/openwrt-luci | applications/luci-commands/luasrc/model/cbi/commands.lua | 77 | 1141 | --[[
LuCI - Lua Configuration Interface
Copyright 2012 Jo-Philipp Wich <jow@openwrt.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
local m,... | apache-2.0 |
Ninjistix/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Ezura-Romazura.lua | 5 | 1285 | -----------------------------------
-- Area: Windurst Waters [S]
-- NPC: Ezura-Romazura
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Windurst_Wa... | gpl-3.0 |
eugenesan/openwrt-luci | applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo.lua | 132 | 1057 | --[[
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 |
dinodeck/ninety_nine_days_of_dev | 002_bitmap_numbers/code/font/NumberFontDef.lua | 1 | 2161 | NumberFontDef =
{
texture = "number_font.png",
width = 8,
height = 8,
lookup =
{
['0'] = {0, 0},
['1'] = {1, 0},
['2'] = {2, 0},
['3'] = {3, 0},
['4'] = {4, 0},
['5'] = {5, 0},
['6'] = {6, 0},
['7'] = {7,... | mit |
otservme/global1051 | data/events/scripts/player.lua | 3 | 3323 | function Player:onBrowseField(position)
return true
end
function Player:onLook(thing, position, distance)
local description = "You see " .. thing:getDescription(distance)
if self:getGroup():getAccess() then
if thing:isItem() then
description = string.format("%s\nItemID: [%d]", description, thing:getId())
l... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Prince_Seere.lua | 7 | 1295 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Prince Seere
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
function onMobEngaged(mob,target)
end;
function onMobFight(mob,target)
en... | gpl-3.0 |
spam999/teleanony | plugins/invite.lua | 1111 | 1195 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
gmorishere/s | plugins/invite.lua | 1111 | 1195 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Lower_Jeuno/npcs/Creepstix.lua | 5 | 1311 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Creepstix
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Lower_Jeuno/TextIDs");
---------... | gpl-3.0 |
codedash64/Urho3D | bin/Data/LuaScripts/42_PBRMaterials.lua | 9 | 8289 | -- PBR materials example.
-- This sample demonstrates:
-- - Loading a scene that showcases physically based materials & shaders
--
-- To use with deferred rendering, a PBR deferred renderpath should be chosen:
-- CoreData/RenderPaths/PBRDeferred.xml or CoreData/RenderPaths/PBRDeferredHWDepth.xml
require "LuaScrip... | mit |
Ninjistix/darkstar | scripts/globals/abilities/pets/hydro_breath.lua | 2 | 1336 | ---------------------------------------------------
-- Hydro Breath
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/globals/ability");
------------------------------------------------... | gpl-3.0 |
dinodeck/ninety_nine_days_of_dev | 003_combat_numbers/code/ArenaState.lua | 6 | 5446 |
ArenaState = {}
ArenaState.__index = ArenaState
function ArenaState:Create(world, stack)
local this =
{
mWorld = world,
mStack = stack,
mRounds =
{
{
mName = "Round 1",
mLocked = false,
mEnemy =
{
... | mit |
TEAMvirus/ViRuS | plugins/me.lua | 3 | 1244 | do
local TIME_CHECK = 60
local function pre_process(msg)
local hash = 'per_sec'
local get = tonumber(redis:get(hash) or 0)
redis:setex(hash, TIME_CHECK, get)
return msg
end
local function run(msg, matches)
if matches[1] == "me" then
if msg.to.type == "user" then
return msg
end
local hash = '... | gpl-2.0 |
TRex22/hawkthorne-journey | src/nodes/savepoint.lua | 1 | 1541 | local app = require 'app'
local prompt = require 'prompt'
local Savepoint = {}
Savepoint.__index = Savepoint
local image = love.graphics.newImage('images/bust.png')
image:setFilter('nearest', 'nearest')
function Savepoint.new(node, collider, level)
local savepoint = {}
setmetatable(savepoint, Savepoint)
asse... | mit |
Ninjistix/darkstar | scripts/zones/Port_Bastok/npcs/Bodaway.lua | 4 | 1133 | -----------------------------------
-- Area: Port Bastok
-- NPC: Bodaway
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_Bastok/TextIDs");
-----------------------------------
function on... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/mobskills/rock_smash.lua | 33 | 1200 | ---------------------------------------------
-- Rock Smash
--
-- Description: Damages a single target. Additional effect: Petrification
-- Type: Physical
-- Utsusemi/Blink absorb: 1 shadow
-- Range: Melee
-- Notes:
---------------------------------------------
require("scripts/globals/settings");
require("scrip... | gpl-3.0 |
Ninjistix/darkstar | scripts/commands/hide.lua | 62 | 1164 | ---------------------------------------------------------------------------------------------------
-- func: hide
-- desc: Hides the GM from other players.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "s"
};
funct... | gpl-3.0 |
mandersan/premake-core | binmodules/luasocket/samples/cddb.lua | 46 | 1419 | local socket = require("socket")
local http = require("socket.http")
if not arg or not arg[1] or not arg[2] then
print("luasocket cddb.lua <category> <disc-id> [<server>]")
os.exit(1)
end
local server = arg[3] or "http://freedb.freedb.org/~cddb/cddb.cgi"
function parse(body)
local lines = string.gfind(bo... | bsd-3-clause |
Ninjistix/darkstar | scripts/zones/Gusgen_Mines/npcs/_5g7.lua | 5 | 2863 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: Strange Apparatus
-- !pos 219 -39 255 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Gusgen_Mines/TextIDs");
require("scripts/globals/strange... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/abilities/mug.lua | 7 | 1580 | -----------------------------------
-- Ability: Mug
-- Steal gil from enemy.
-- Obtained: Thief Level 35
-- Recast Time: 5:00
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/msg");
-----------------------------------
function onAbilit... | gpl-3.0 |
mandersan/premake-core | modules/gmake2/tests/test_gmake2_flags.lua | 8 | 3057 | --
-- test_gmake2_flags.lua
-- Tests compiler and linker flags for Makefiles.
-- (c) 2016-2017 Jason Perkins, Blizzard Entertainment and the Premake project
--
local suite = test.declare("gmake2_flags")
local p = premake
local gmake2 = p.modules.gmake2
local project = p.project
--
-- Setup
--
local wks, prj
... | bsd-3-clause |
bloodstalker/mutator | bruiser/lua-scripts/xobj.lua | 1 | 4565 | ------------------------------------------------Project Mutator-----------------------------------------------
--bruiser's xobj module
--Copyright (C) 2018 Farzad Sadeghi
--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 ... | gpl-3.0 |
coronalabs/framework-widget | widget_theme_ios.lua | 1 | 9465 | -----------------------------------------------------------------------------------------
-- theme_ios.lua
-----------------------------------------------------------------------------------------
local modname = ...
local theme = {}
package.loaded[modname] = theme
local imageSuffix = display.imageSuffix or ""
local s... | mit |
lovetoys/Lovetoys-Astar | src/algorithm/astar.lua | 2 | 2563 | AStar = class("AStar")
function AStar:find(start, goal)
self.openlist = {}
self.closedlist = {}
self.openlist[start.index] = start
start.h = distanceBetweenEntities(start.entity , goal.entity)
start.g = 0
start.f = start.g + start.h
while table.count(self.openlist) ~= 0 do
local ac... | mit |
uhvhugvhhbbh545hhhyg/rekjx | bot/creedbot.lua | 1 | 10428 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This function is ... | gpl-2.0 |
luadch/luadch | scripts/cmd_reg.lua | 1 | 16858 | --[[
cmd_reg.lua by blastbeat
- usage: [+!#]reg nick <NICK> <LEVEL> [<COMMENT>] / [+!#]reg desc <NICK> <COMMENT> (an empty comment removes an existing comment)
- this script adds a command "reg" to reg users
- note: be careful when using the nick prefix script: you should reg user ... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.