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 |
|---|---|---|---|---|---|
aminkinghakerlifee/wolf-team | plugins/status.lua | 3 | 3989 | 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-3.0 |
shahabsaf1/uzz-bot | plugins/id.lua | 355 | 2795 | local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
local function returnids(cb_extra, success, resu... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Port_Bastok/npcs/Bodaway.lua | 12 | 1429 | -----------------------------------
-- Area: Port Bastok
-- NPC: Bodaway
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/zones/Port_Bastok/TextIDs");
-----------------------------------
-- onTrade Action
----------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Western_Altepa_Desert/npcs/Cermet_Headstone.lua | 17 | 2670 | -----------------------------------
-- Area: Western Altepa Desert
-- NPC: Cermet Headstone
-- Involved in Mission: ZM5 Headstone Pilgrimage (Earth Fragment)
-- @pos -108 10 -216 125
-----------------------------------
package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil;
------------------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Spear.lua | 17 | 1476 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Animated Spear
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
functio... | gpl-3.0 |
apletnev/koreader | frontend/ui/quickstart.lua | 3 | 4193 | --[[--This module is responsible for generating the quickstart guide.
]]
local DataStorage = require("datastorage")
local FileConverter = require("apps/filemanager/filemanagerconverter")
local DocSettings = require("docsettings")
local Version = require("version")
local FFIUtil = require("ffi/util")
local T = FFIUtil.t... | agpl-3.0 |
kitala1/darkstar | scripts/zones/Spire_of_Vahzl/Zone.lua | 17 | 1579 | -----------------------------------
--
-- 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 |
benranco/SNPpipeline | tools/samtools-1.3.1/misc/r2plot.lua | 28 | 2877 | #!/usr/bin/env luajit
function string:split(sep, n)
local a, start = {}, 1;
sep = sep or "%s+";
repeat
local b, e = self:find(sep, start);
if b == nil then
table.insert(a, self:sub(start));
break
end
a[#a+1] = self:sub(start, b - 1);
start = e... | mit |
kitala1/darkstar | scripts/zones/Metalworks/npcs/Hungry_Wolf.lua | 19 | 2040 | -----------------------------------
-- Area: Metalworks
-- NPC: Hungry Wolf
-- Type: Quest Giver
-- @pos -25.861 -11 -30.172 237
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-- Updated for "Smoke on the Mountain" by EccentricAnata 03.22.13
-----------------------------------
package.loaded["scri... | gpl-3.0 |
umbrellaTG/sphero | plugins/github2.lua | 1 | 2757 | local function run(msg, matches)
if matches[1]:lower() == "github>" then
local dat = https.request("https://api.github.com/repos/"..matches[2])
local jdat = JSON.decode(dat)
if jdat.message then
return "Not Found!\nExample:\ngithub username/project\ngithub 3pehrdev/spammer-bot\n\nSphe... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Apollyon/mobs/Apollyon_Scavenger.lua | 17 | 1403 | -----------------------------------
-- Area: Apollyon NW
-- NPC: Kaiser Behemoth
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Apollyon/TextIDs");
-----------------------------------
-- onMobSpawn Act... | gpl-3.0 |
kitala1/darkstar | scripts/zones/The_Garden_of_RuHmet/mobs/Aw_zdei.lua | 12 | 1904 | -----------------------------------
-- Area: The Garden of Ru'Hmet
-- MOB: Aw'Zdei
-- Animation Sub 0 Pot Form
-- Animation Sub 1 Pot Form (reverse eye position)
-- Animation Sub 2 Bar Form
-- Animation Sub 3 Ring Form
-----------------------------------
require("scripts/globals/status");
---------------------------... | gpl-3.0 |
crabman77/minetest-minetestforfun-server | mods/maptools/nodes.lua | 6 | 12330 | --[[
Map Tools: node definitions
Copyright (c) 2012-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
local S = maptools.intllib
maptools.creative = maptools.config["hide_from_creative_inventory"]
-- Redefine cloud so that the admin pickaxe can mine it:
minete... | unlicense |
kitala1/darkstar | scripts/zones/Lower_Delkfutts_Tower/npcs/_540.lua | 16 | 2171 | -----------------------------------
-- Area: Lower Delkfutt's Tower
-- NPC: Cermet Door
-- Cermet Door for Windy Ambassador
-- Windurst Mission 3.3 "A New Journey"
-- @pos 636 16 59 184
-----------------------------------
package.loaded["scripts/zones/Lower_Delkfutts_Tower/TextIDs"] = nil;
------------------... | gpl-3.0 |
lvdmaaten/nn | Euclidean.lua | 24 | 5711 | local Euclidean, parent = torch.class('nn.Euclidean', 'nn.Module')
function Euclidean:__init(inputSize,outputSize)
parent.__init(self)
self.weight = torch.Tensor(inputSize,outputSize)
self.gradWeight = torch.Tensor(inputSize,outputSize)
-- state
self.gradInput:resize(inputSize)
self.output:resize(o... | bsd-3-clause |
paulosalvatore/maruim_server | data/spells/scripts/party/enchant.lua | 1 | 1990 | local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
combat:setArea(createCombatArea(AREA_CROSS5X5))
local condition = Condition(CONDITION_ATTRIBUTES)
condition:setParameter(CONDITION_PARAM_SUBID, 3)
condition:setParameter(CONDITION_P... | gpl-2.0 |
Roblox/Core-Scripts | CoreScriptsRoot/Modules/Server/ServerChat/DefaultChatModules/PrivateMessaging.lua | 2 | 6041 | -- // FileName: PrivateMessaging.lua
-- // Written by: Xsitsu
-- // Description: Module that handles all private messaging.
local Chat = game:GetService("Chat")
local RunService = game:GetService("RunService")
local ReplicatedModules = Chat:WaitForChild("ClientChatModules")
local ChatConstants = require(ReplicatedModu... | apache-2.0 |
lvdmaaten/nn | Threshold.lua | 42 | 1158 | local Threshold, parent = torch.class('nn.Threshold','nn.Module')
function Threshold:__init(th,v,ip)
parent.__init(self)
self.threshold = th or 1e-6
self.val = v or 0
if (th and type(th) ~= 'number') or (v and type(v) ~= 'number') then
error('nn.Threshold(threshold, value)')
end
-- default for ... | bsd-3-clause |
kitala1/darkstar | scripts/zones/Woh_Gates/Zone.lua | 34 | 1270 | -----------------------------------
--
-- Zone: Woh Gates
--
-----------------------------------
package.loaded["scripts/zones/Woh_Gates/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Woh_Gates/TextIDs");
-----------------------------------
... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Carpenters_Landing/npcs/Beugungel.lua | 19 | 1189 | -----------------------------------
-- Area: Carpenters' Landing
-- NPC: Beugungel
-- Type: Guild Merchant NPC (Woodworking Guild)
-- @pos -333.729, -5.512, 475.647 2
-----------------------------------
package.loaded["scripts/zones/Carpenters_Landing/TextIDs"] = nil;
-----------------------------------
require("... | gpl-3.0 |
kitala1/darkstar | scripts/zones/FeiYin/npcs/Dry_Fountain.lua | 17 | 1453 | -----------------------------------
-- Area: FeiYin
-- NPC: Dry Fountain
-- Involved In Quest: Peace for the Spirit
-- @pos -17 -16 71 204
-----------------------------------
package.loaded["scripts/zones/FeiYin/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
requir... | gpl-3.0 |
m13790115/AVENGERRS | plugins/cpu.lua | 244 | 1893 | function run_sh(msg)
name = get_name(msg)
text = ''
-- if config.sh_enabled == false then
-- text = '!sh command is disabled'
-- else
-- if is_sudo(msg) then
-- bash = msg.text:sub(4,-1)
-- text = run_bash(bash)
-- else
-- text = name .. ' you... | gpl-2.0 |
aminkinghakerlifee/wolf-team | plugins/spanish_lang.lua | 5 | 19230 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-3.0 |
thibaultCha/lua-resty-cassandra | spec/functional_spec.lua | 8 | 20510 | package.path = "src/?.lua;spec/?.lua;" .. package.path
_G.ngx = require("fake_ngx")
local cassandra = require("cassandra")
local constants = require("cassandra.constants")
describe("cassandra", function()
before_each(function()
session = cassandra.new()
session:set_timeout(1000)
connected, err = sessi... | mit |
kitala1/darkstar | scripts/zones/Southern_San_dOria/npcs/Glenne.lua | 13 | 3792 | -------------------------------------
-- Area: Southern San d'Oria
-- NPC: Glenne
-- Starts and Finishes Quest: A Sentry's Peril
-- @zone 230
-- @pos -122 -2 15
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require(... | gpl-3.0 |
kitala1/darkstar | scripts/globals/spells/sword_madrigal.lua | 13 | 1535 | -----------------------------------------
-- Spell: Sword Madrigal
-- Gives party members accuracy
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target... | gpl-3.0 |
luciouskami/war3-lua-engine | war3-lua-engine/LuaJIT/src/jit/bcsave.lua | 20 | 18123 | ----------------------------------------------------------------------------
-- LuaJIT module to save/list bytecode.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
-------------------------------------------------------------------------... | gpl-2.0 |
Sean-Der/thrift | lib/lua/TBinaryProtocol.lua | 90 | 6141 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | apache-2.0 |
kitala1/darkstar | scripts/zones/The_Boyahda_Tree/npcs/HomePoint#1.lua | 12 | 1203 | -----------------------------------
-- Area: The Boyahda Tree
-- NPC: HomePoint#1
-- @pos 88 -15 -217 153
-----------------------------------
package.loaded["scripts/zones/The_Boyahda_Tree/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/The_Boyahda_Tree/TextIDs");
require("scripts/global... | gpl-3.0 |
kitala1/darkstar | scripts/globals/spells/bluemagic/asuran_claws.lua | 28 | 1798 | -----------------------------------------
-- Spell: Asuran Claws
-- Delivers a sixfold attack. Accuracy varies with TP
-- Spell cost: 81 MP
-- Monster Type: Beasts
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 2
-- Stat Bonus: AGI +3
-- Level: 70
-- Casting Time: 3 seconds
-- Recast Time: 60 seconds
... | gpl-3.0 |
fqrouter/luci | modules/niu/luasrc/model/cbi/niu/wireless/ap.lua | 51 | 1406 | local cursor = require "luci.model.uci".cursor()
if not cursor:get("wireless", "ap") then
cursor:section("wireless", "wifi-iface", "ap",
{device = "_", doth = "1", _niu = "1", mode = "ap"})
cursor:save("wireless")
end
local function deviceroute(self)
cursor:unload("wireless")
local d = cursor:get("wireless", "a... | apache-2.0 |
iglugo/corona_sdk_template | template/splash.lua | 1 | 1297 | local composer = require( "composer" )
local personal_lib = require( "personal_lib" )
local scene = composer.newScene()
-- -----------------------------------------------------------------------------------------------------------------
local function comenzar()
composer.gotoScene("menu", "fade", 840)
end
-- "sce... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/loach_gruel.lua | 35 | 1674 | -----------------------------------------
-- ID: 5670
-- Item: loach_soup
-- Food Effect: 4Hour,Group Food, All Races
-----------------------------------------
-- Dexterity 2
-- Agility 2
-- Accuracy % 7
-- Accuracy Cap 30
-- HP % 7
-- HP Cap 30
-- Evasion 4
-- (Did Not Add Group Food Effect)
-------------... | gpl-3.0 |
speedata/publisher | src/lua/publisher/grid.lua | 1 | 40020 | --
-- grid.lua
-- speedata publisher
--
-- For a list of authors see `git blame'
-- See file COPYING in the root directory for license info.
file_start("grid.lua")
module(...,package.seeall)
_M.__index = _M
local function to_sp(arg)
tex.dimen[0] = arg
return tex.dimen[0]
end
-- pagenumber is only for d... | agpl-3.0 |
Mechaniston/FibaroHC_mechHomeBcfg | lightsDim (261, manual, maxInst = 2).lua | 1 | 7856 | --[[
%% properties
%% events
%% globals
--]]
--[[
Global var <lightsDimming> format:
pwrChecking [1 symb, num, 0|1]
StepSign [1 symb, +|-]
MaxValue [2 symb, num, 00(=99)-99]
StepValue [2 symb, num, 01-99]
dimStepPause [4 symb, num, 0000-9999 msec]
Endless [1 symb, num, 0|1]
{devID;..}
]]--
-- CONST
local debugMod... | mit |
NiFiLocal/nifi-minifi-cpp | thirdparty/civetweb-1.10/test/page3.lua | 10 | 1626 | -- This test checks if a query string has been given.
-- It sends the file identified by the query string.
-- Do not use it in a real server in this way!
if not mg.request_info.query_string then
mg.write("HTTP/1.0 200 OK\r\n")
mg.write("Connection: close\r\n")
mg.write("Content-Type: text/html; char... | apache-2.0 |
paulosalvatore/maruim_server | data/talkactions/scripts/verificarItensSemNome.lua | 1 | 1260 | function onSay(player, words, param)
if not player:getGroup():getAccess() then
return true
end
if player:getAccountType() < ACCOUNT_TYPE_GOD then
return false
end
if param == "zerar" then
itensSemNomeAtual[player:getId()] = nil
else
if not itensSemNomeVerificados then
verificarItensSemNome()
end
... | gpl-2.0 |
DangerCove/libquvi-scripts | share/lua/website/pluzz.lua | 4 | 1917 |
-- libquvi-scripts
-- Copyright (C) 2011 Toni Gundogdu <legatvs@gmail.com>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free So... | lgpl-2.1 |
crabman77/minetest-minetestforfun-server | mods/pipeworks/models.lua | 9 | 1620 | -----------------------------------
-- The various pipe select boxes
pipeworks.pipe_selectboxes = {
{ -32/64, -8/64, -8/64, 8/64, 8/64, 8/64 },
{ -8/64 , -8/64, -8/64, 32/64, 8/64, 8/64 },
{ -8/64 , -32/64, -8/64, 8/64, 8/64, 8/64 },
{ -8/64 , -8/64, -8/64, 8/64, 32/64, 8/64 },
{ -8/64 , -8/64, ... | unlicense |
leezhongshan/skynet | service/bootstrap.lua | 29 | 1191 | local skynet = require "skynet"
local harbor = require "skynet.harbor"
require "skynet.manager" -- import skynet.launch, ...
local memory = require "memory"
skynet.start(function()
local sharestring = tonumber(skynet.getenv "sharestring")
memory.ssexpand(sharestring or 4096)
local standalone = skynet.getenv "stand... | mit |
kitala1/darkstar | scripts/zones/Port_Windurst/npcs/Odilia.lua | 38 | 1029 | -----------------------------------
-- Area: Port Windurst
-- NPC: Odilia
-- Type: Standard NPC
-- @zone: 240
-- @pos 78.801 -6 118.653
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
--------------------... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/wizard_cookie.lua | 35 | 1345 | -----------------------------------------
-- ID: 4576
-- Item: wizard_cookie
-- Food Effect: 5Min, All Races
-----------------------------------------
-- MP Recovered While Healing 7
-- Plantoid Killer 7
-- Slow Resist 7
-----------------------------------------
require("scripts/globals/status");
--------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Sealions_Den/npcs/Jovial_Rat.lua | 38 | 1034 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Jovial Rat
-- Type: Past Event Watcher
-- @zone: 32
-- @pos
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
---------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/The_Boyahda_Tree/mobs/Demonic_Rose.lua | 23 | 1477 | -----------------------------------
-- Area: The Boyahda Tree
-- Mob: Demonic Rose
-- Note: Placeholder V. Vivian
-----------------------------------
require("scripts/zones/The_Boyahda_Tree/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
function onMo... | gpl-3.0 |
crabman77/minetest-minetestforfun-server | mods/homedecor_modpack/homedecor/tables.lua | 12 | 5672 | -- Various kinds of tables
local S = homedecor.gettext
local materials = {
{"glass","Glass"},
{"wood","Wood"}
}
local tables_cbox = {
type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4375, 0.5 },
}
for i in ipairs(materials) do
local m = materials[i][1]
local d = materials[i][2]
local s = nil
if ... | unlicense |
kitala1/darkstar | scripts/zones/Temenos/mobs/Earth_Elemental.lua | 17 | 1708 | -----------------------------------
-- Area: Temenos E T
-- NPC: Earth_Elemental
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
----------------------... | gpl-3.0 |
leezhongshan/skynet | examples/watchdog.lua | 53 | 1286 | local skynet = require "skynet"
local netpack = require "netpack"
local CMD = {}
local SOCKET = {}
local gate
local agent = {}
function SOCKET.open(fd, addr)
skynet.error("New client from : " .. addr)
agent[fd] = skynet.newservice("agent")
skynet.call(agent[fd], "lua", "start", { gate = gate, client = fd, watchdog... | mit |
kitala1/darkstar | scripts/globals/spells/foe_requiem_v.lua | 11 | 1622 | -----------------------------------------
-- Spell: Foe Requiem V
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,... | gpl-3.0 |
kitala1/darkstar | scripts/globals/ability.lua | 17 | 15202 | -----------------------------------
--
-- ABILITIES
--
-----------------------------------
ABILITY_MIGHTY_STRIKES = 0;
ABILITY_HUNDRED_FISTS = 1;
ABILITY_BENEDICTION = 2;
ABILITY_MANAFONT = 3;
ABILITY_CHAINSPELL = 4;
ABILITY_PERFECT_DODGE = 5;
ABILITY_... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Lower_Jeuno/npcs/_6tc.lua | 17 | 3947 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Door: "Neptune's Spire"
-- Starts and Finishes Quest: Beat Around the Bushin
-- @zone 245
-- @pos 35 0 -15
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
package.loaded["scripts/globals/settings"] =... | gpl-3.0 |
darrenatdesignory/CG | config.lua | 1 | 2753 | if string.sub(system.getInfo("model"),1,4) == "iPad" then
application =
{
content =
{
width = 360,
height = 480,
scale = "letterBox",
xAlign = "center",
yAlign = "center",
imageSuffix =
{
... | mit |
fastmailops/prosody | plugins/mod_pubsub/mod_pubsub.lua | 1 | 6287 | local pubsub = require "util.pubsub";
local st = require "util.stanza";
local jid_bare = require "util.jid".bare;
local usermanager = require "core.usermanager";
local xmlns_pubsub = "http://jabber.org/protocol/pubsub";
local xmlns_pubsub_event = "http://jabber.org/protocol/pubsub#event";
local xmlns_pubsub_owner = "h... | mit |
DangerCove/libquvi-scripts | share/lua/website/quvi/url.lua | 2 | 10072 |
-- libquvi-scripts
-- A slightly modified copy of:
-- URI parsing, composition and relative URL resolution
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: url.lua,v 1.38 2006/04/03 04:45:42 diego Exp $
-- License: MIT
-- http://w3.impa.br/~diego/software/luasocket/url.html
local base = _G
local M = {}
... | lgpl-2.1 |
apletnev/koreader | plugins/autosuspend.koplugin/main.lua | 4 | 3451 | local Device = require("device")
if not Device:isKobo() and not Device:isSDL() then return { disabled = true, } end
local DataStorage = require("datastorage")
local LuaSettings = require("luasettings")
local PluginShare = require("pluginshare")
local UIManager = require("ui/uimanager")
local WidgetContainer = require... | agpl-3.0 |
xsolinsx/AISashaAPI | plugins/pokedex.lua | 1 | 1376 | local function run(msg, matches)
local query = URL.escape(matches[1])
local url = "https://pokeapi.co/api/v2/pokemon/" .. query .. "/"
local dat, code = http.request(url)
sendLog(vardumptext(dat))
sendLog(vardumptext(code))
if not dat then
return false, code
end
local ... | gpl-2.0 |
d-o/LUA-LIB | C500Examples/myApp.lua | 2 | 5544 | #!/usr/bin/env lua
-------------------------------------------------------------------------------
-- myApp
--
-- Application template
--
-- Copy this file to your project directory and insert the specific code of
-- your application
-------------------------------------------------------------------------------
local ... | gpl-3.0 |
fastmailops/prosody | util/sasl.lua | 1 | 3962 | -- sasl.lua v0.4
-- Copyright (C) 2008-2010 Tobias Markmann
--
-- 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 ... | mit |
kitala1/darkstar | scripts/globals/items/serving_of_yellow_curry.lua | 35 | 2067 | -----------------------------------------
-- ID: 4517
-- Item: serving_of_yellow_curry
-- Food Effect: 3hours, All Races
-----------------------------------------
-- Health Points 20
-- Strength 5
-- Agility 2
-- Intelligence -4
-- HP Recovered While Healing 2
-- MP Recovered While Healing 1
-- Attack 20% (... | gpl-3.0 |
kaustavha/rackspace-monitoring-agent | tests/schedule/init.lua | 4 | 10960 | --[[
Copyright 2012 Rackspace
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, software
dis... | apache-2.0 |
kitala1/darkstar | scripts/globals/abilities/dark_arts.lua | 28 | 1588 | -----------------------------------
-- Ability: Dark Arts
-- Optimizes black magic capability while lowering white magic proficiency. Grants a bonus to enfeebling, elemental, and dark magic. Also grants access to Stratagems.
-- Obtained: Scholar Level 10
-- Recast Time: 1:00
-- Duration: 2:00:00
-----------------... | gpl-3.0 |
kitala1/darkstar | scripts/globals/mobskills/Impale.lua | 7 | 1210 | ---------------------------------------------
-- Impale
--
-- Description: Deals damage to a single target. Additional effect: Paralysis
-- Type: Physical
-- Utsusemi/Blink absorb: 1 shadow
-- Range: Melee
-- Notes:
---------------------------------------------
require("scripts/globals/settings");
requi... | gpl-3.0 |
pfzim/openwrt-packages | net/acme/files/acme-cbi.lua | 20 | 3086 | --[[
LuCI - Lua Configuration Interface
Copyright 2016 Toke Høiland-Jørgensen <toke@toke.dk>
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 3 of the License, or (at your option... | gpl-2.0 |
kitala1/darkstar | scripts/globals/items/plate_of_dorado_sushi.lua | 21 | 1679 | -----------------------------------------
-- ID: 5178
-- Item: plate_of_dorado_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 5
-- Accuracy % 15
-- Accuracy Cap 75
-- Ranged ACC % 15
-- Ranged ACC Cap 75
-- Sleep Resist 5
----------------------------------------... | gpl-3.0 |
eriche2016/torch7 | test/test.lua | 23 | 98116 | --require 'torch'
local mytester
local torchtest = {}
local msize = 100
local precision
-- Lua 5.2 compatibility
local loadstring = loadstring or load
local unpack = unpack or table.unpack
local function maxdiff(x,y)
local d = x-y
if x:type() == 'torch.DoubleTensor' or x:type() == 'torch.FloatTensor' then
... | bsd-3-clause |
kitala1/darkstar | scripts/zones/Upper_Jeuno/npcs/Paya-Sabya.lua | 19 | 1333 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Paya-Sabya
-- Involved in Mission: Magicite
-- @zone 244
-- @pos 9 1 70
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
re... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Apollyon/mobs/Thunder_Elemental.lua | 119 | 2423 | -----------------------------------
-- Area: Apollyon SW
-- NPC: elemental
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
--------------------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Apollyon/mobs/Earth_Elemental.lua | 119 | 2423 | -----------------------------------
-- Area: Apollyon SW
-- NPC: elemental
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
--------------------------... | gpl-3.0 |
Aeprox/ESPLogger | src/bh1750/bh1750.lua | 8 | 1363 | -- ***************************************************************************
-- BH1750 module for ESP8266 with nodeMCU
-- BH1750 compatible tested 2015-1-22
--
-- Written by xiaohu
--
-- MIT license, http://opensource.org/licenses/MIT
-- ***************************************************************************
-- ... | mit |
paulosalvatore/maruim_server | data/npc/scripts/Comerciante.lua | 1 | 2245 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Yorcia_Weald_U/Zone.lua | 36 | 1119 | -----------------------------------
--
-- Zone: Yorcia Weald U
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Yorcia_Weald_U/TextIDs"] = nil;
require("scripts/zones/Yorcia_Weald_U/TextIDs");
-----------------------------------
-- onInitialize
-... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/steamed_crayfish.lua | 35 | 1239 | -----------------------------------------
-- ID: 4338
-- Item: steamed_crayfish
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Defense % 30
-- Defense Cap 30
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------... | gpl-3.0 |
m13790115/AVENGERRS | plugins/anti-flood.lua | 281 | 2422 | local NUM_MSG_MAX = 5 -- Max number of messages per TIME_CHECK seconds
local TIME_CHECK = 5
local function kick_user(user_id, chat_id)
local chat = 'chat#id'..chat_id
local user = 'user#id'..user_id
chat_del_user(chat, user, function (data, success, result)
if success ~= 1 then
local text = 'I can\'t k... | gpl-2.0 |
kitala1/darkstar | scripts/globals/mobskills/freezebite.lua | 26 | 1287 | -----------------------------------
-- Freezebite
-- Great Sword weapon skill
-- Skill Level: 100
-- Delivers an ice elemental attack. Damage varies with TP.
-- Aligned with the Snow Gorget & Breeze Gorget.
-- Aligned with the Snow Belt & Breeze Belt.
-- Element: Ice
-- Modifiers: STR:30% ; INT:20%
-- 100%TP ... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Cloister_of_Gales/mobs/Ogmios.lua | 12 | 1272 | -----------------------------------
-- Area: Cloister of Gales
-- NPC: Ogmios
-- Involved in Quest: Carbuncle Debacle
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
-----------------------------------
-- OnMobSpawn Action
--------------------------------... | gpl-3.0 |
d-o/LUA-LIB | src/rinLibrary/GenericAnalog.lua | 2 | 10931 | -------------------------------------------------------------------------------
--- Analogue Functions.
-- Functions to control M4401 analogue output
-- @module rinLibrary.Device.Analog
-- @author Darren Pearson
-- @author Merrick Heley
-- @copyright 2014 Rinstrum Pty Ltd
-----------------------------------------------... | gpl-3.0 |
fqrouter/luci | libs/lucid-rpc/luasrc/lucid/rpc.lua | 52 | 1197 | --[[
LuCI - Lua Development Framework
Copyright 2009 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]
local re... | apache-2.0 |
kitala1/darkstar | scripts/zones/Windurst_Walls/npcs/Tsuaora-Tsuora.lua | 38 | 1043 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Tsuaora-Tsuora
-- Type: Standard NPC
-- @zone: 239
-- @pos 71.489 -3.418 -67.809
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
------... | gpl-3.0 |
d-o/LUA-LIB | C500Examples/marquee.lua | 2 | 3052 | #!/usr/bin/env lua
-------------------------------------------------------------------------------
-- myApp
--
-- Application template
--
-- Copy this file to your project directory and insert the specific code of
-- your application
-------------------------------------------------------------------------------
local... | gpl-3.0 |
tetoali605/THETETOO_A7A | plugins/kickall1.lua | 7 | 1415 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY tetoo ▀▄ ▄▀
▀▄ ▄▀ BY nmore (@l_l_lo) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY l_l_ll ▀▄ ▄▀
▀▄ ▄▀ broadcast : طـرد الكــل ▀▄ ▄▀
▀▄▀▀▄▄▀▀▄▄▀▄▄▀▀... | gpl-2.0 |
dani-sj/danyalevil | bot/nod32bot.lua | 1 | 11256 | 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")
VERSION = '2'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
return... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Pashhow_Marshlands/npcs/Cavernous_Maw.lua | 29 | 1512 | -----------------------------------
-- Area: Pashhow Marshlands
-- NPC: Cavernous Maw
-- @pos 418 25 27 109
-- Teleports Players to Pashhow Marshlands [S]
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
rokf/lgi-dump | examples/player.lua | 1 | 1459 | local lgi = require 'lgi'
local Gtk = lgi.Gtk
local Gdk = lgi.Gdk
local GLib = lgi.GLib
local window
local data = {20,10,30,50,40,20}
local pause = false
local bar = Gtk.ActionBar {}
bar:pack_start(Gtk.Button {
Gtk.Image {
icon_name = 'media-playback-start-symbolic'
},
on_clicked = function (_)
pause =... | mit |
kitala1/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Mariyaam.lua | 38 | 1063 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Mariyaam
-- Type: Item Deliverer
-- @pos -125 -6 90 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/T... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Port_Bastok/npcs/Tilian.lua | 38 | 1380 | -----------------------------------
-- Area: Port Bastok
-- NPC: Tilian
-- Type: Quest NPC
-- @pos -118.460 4.999 -68.090 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Bastok_Mines/npcs/Sodragamm.lua | 38 | 1086 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Sodragamm
-- Type: Item Deliverer
-- @zone: 234
-- @pos -24.741 -1 -64.944
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scrip... | gpl-3.0 |
DangerCove/libquvi-scripts | share/lua/website/blip.lua | 4 | 4771 |
-- libquvi-scripts
-- Copyright (C) 2011-2012 Toni Gundogdu <legatvs@gmail.com>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Fr... | lgpl-2.1 |
kitala1/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Mainchelite.lua | 6 | 5597 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Mainchelite
-- @zone 80
-- @pos -16 1 -30
-- CS IDs:
-- 0x005 = Generic Greeting for Iron Ram members
-- 0x006 = Mid Initiation of other nation
-- 0x007 = Ask player to Join Iron Rams
-- 0x008 = Ask if changed mind about joining Iron ra... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Ceizak_Battlegrounds/Zone.lua | 34 | 1262 | -----------------------------------
--
-- Zone: Ceizak Battlegrounds
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Ceizak_Battlegrounds/TextIDs"] = nil;
require("scripts/zones/Ceizak_Battlegrounds/TextIDs");
-----------------------------------
-... | gpl-3.0 |
Roblox/Core-Scripts | CoreScriptsRoot/Modules/Server/ServerChat/ChatChannel.lua | 1 | 21934 | -- // FileName: ChatChannel.lua
-- // Written by: Xsitsu
-- // Description: A representation of one channel that speakers can chat in.
local forceNewFilterAPI = false
local IN_GAME_CHAT_USE_NEW_FILTER_API
do
local textServiceExists = (game:GetService("TextService") ~= nil)
local success, enabled = pcall(function() r... | apache-2.0 |
m13790115/AVENGERRS | bot/utils.lua | 1 | 23559 | 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 |
crabman77/minetest-minetestforfun-server | mods/homedecor_modpack/computer/recipes.lua | 15 | 4611 |
-- Copyright (C) 2012-2013 Diego Martínez <kaeza@users.sf.net>
-- License is WTFPL (see README.txt).
minetest.register_craft({
output = "computer:shefriendSOO",
recipe = {
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
{ "homedecor:plastic_sheeting", "default:glass... | unlicense |
kitala1/darkstar | scripts/zones/Bastok_Markets/npcs/Shamarhaan.lua | 38 | 1856 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Shamarhaan
-- Type: Quest Starter
-- Involved in quest: No Strings Attached
-- @zone: 235
-- @pos -285.382 -13.021 -84.743
--
-- Auto-Script: Requires Verification. Verified standard dialog - thrydwolf 12/8/2011
--------------------------------... | gpl-3.0 |
rickerliang/face_filter | face_detector/run.lua | 1 | 4961 | require 'torch'
require 'image'
require 'nn'
require 'pl'
require 'trepl'
local function nilling(module)
module.gradBias = nil
if module.finput then module.finput = torch.Tensor() end
module.gradWeight = nil
module.output = torch.Tensor()
module.fgradInput = nil
module.gradInput = nil
en... | unlicense |
kitala1/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Kabihyam.lua | 34 | 1033 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Kabihyam
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
---------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Kazham/npcs/Lulupp.lua | 21 | 1844 | -----------------------------------
-- Area: Kazham
-- NPC: Lulupp
-- Type: Standard NPC
-- @zone: 250
-- @pos -26.567 -3.5 -3.544
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-------------------------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Port_Bastok/npcs/Ronan.lua | 19 | 2559 | -----------------------------------
-- 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/... | gpl-3.0 |
idevz/vanilla | vanilla/v/views/rtpl.lua | 1 | 1681 | -- dep
-- https://github.com/bungle/lua-resty-template
local template = require "resty.template"
-- perf
local error = error
local pairs = pairs
local setmetatable = setmetatable
local app_root = Registry['APP_NAME']
local View = {}
function View:new(view_config)
ngx.var.template_root = view_config.path or app_r... | mit |
hanxi/cocos2d-x-v3.1 | src/util.lua | 1 | 17298 | require("AudioEngine")
util = {}
function util.createScale9Sprite()
return cc.Scale9Sprite:create("block.9.png",cc.rect(1,1,4,4))
end
function util.createLine()
return cc.Scale9Sprite:create("line.9.png",cc.rect(1,1,2,2))
end
function util.createLabel(str,fontsize)
local label = cc.Label:createWithTTF(s... | mit |
kitala1/darkstar | scripts/globals/items/butterpear.lua | 36 | 1246 | -----------------------------------------
-- ID: 5908
-- Item: Butterpear
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility +4
-- Vitality +1
-- Resist Amnesia +20
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
... | gpl-3.0 |
kitala1/darkstar | scripts/zones/The_Garden_of_RuHmet/mobs/Jailer_of_Faith.lua | 24 | 1296 | -----------------------------------
-- Area: The Garden of Ru'Hmet
-- NPC: Jailer_of_Faith
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
-- Give it two hour
mob:setMod(MOBMOD_MAIN_2HOUR, 1);
-- Change anima... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.