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 |
|---|---|---|---|---|---|
Snazz2001/fbcunn | fbcunn/OneBitQuantization.lua | 9 | 1269 | -- Copyright 2004-present Facebook. All Rights Reserved.
require 'cutorch'
require 'nn'
--[[
CUDA implementation of the quantize/unquantize methods used by `nn.OneBitDataParallel`.
]]
local OneBitQuantization = torch.class('nn.OneBitQuantization')
function OneBitQuantization:__init()
self.quantized = torch.CudaTe... | bsd-3-clause |
Hostle/luci | applications/luci-app-ftp/luasrc/model/cbi/admin_ftp/ftp.lua | 1 | 2281 | --[[
LuCI - Lua Configuration Interface
$Id: FTP.lua 21/12/2014
$ hostle@fire-wrt.com
]]--
require ("uci")
require("luci.sys")
local uci = uci.cursor()
local ntm = require "luci.model.network".init()
local wan = ntm:get_wannet()
local lan_ip = uci:get("network", "lan", "ipaddr")
local wan_ip = uci:get("network", "wan... | apache-2.0 |
AdamGagorik/darkstar | scripts/globals/effects/int_boost.lua | 34 | 1027 | -----------------------------------
--
-- EFFECT_INT_BOOST
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_INT,effect:getPower());
end;
... | gpl-3.0 |
ReformedGeek/CodeEval | FizzBuzz/FizzBuzz.lua | 1 | 3422 | --[[
Challenge description: https://www.codeeval.com/open_challenges/1/
Solution description:
Generalized FizzBuzz generator with optimized routine for cases where one
divisor is an even divisor of the other or where the divisors are equal.
--]]
--[[
In the case that one divisor equals one, we can optimize FizzBuzz b... | gpl-2.0 |
delram/inx | plugins/TIME.lua | 120 | 2804 | -- 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 = "https://m... | gpl-2.0 |
Snazz2001/fbcunn | examples/imagenet/dataset.lua | 3 | 14930 | require 'torch'
torch.setdefaulttensortype('torch.FloatTensor')
local ffi = require 'ffi'
local class = require('pl.class')
local dir = require 'pl.dir'
local tablex = require 'pl.tablex'
local argcheck = require 'argcheck'
require 'sys'
require 'xlua'
require 'image'
local dataset = torch.class('dataLoader')
local i... | bsd-3-clause |
sjznxd/lc-20130204 | applications/luci-upnp/luasrc/controller/upnp.lua | 6 | 1943 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | apache-2.0 |
AdamGagorik/darkstar | scripts/zones/Port_Windurst/npcs/Pyo_Nzon.lua | 13 | 2857 | -----------------------------------
-- Area: Port Windurst
-- NPC: Pyo Nzon
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scripts/zones/Port_Windurst/T... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Port_Jeuno/npcs/Kochahy-Muwachahy.lua | 14 | 3674 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Kochahy-Muwachahy
-- @pos 40 0 6 246
-------------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scri... | gpl-3.0 |
TeleDALAD/test1 | bot/utils.lua | 646 | 23489 | 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 |
mohammad25253/seed238 | bot/utils.lua | 646 | 23489 | 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 |
hadirahimi1380/-AhRiMaN- | plugins/twitter_send.lua | 627 | 1555 | do
local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local client = OAuth.new(consumer_key, consumer_secret, {
RequestToken = "https://api.twitter.com/oauth/request_token",
AuthorizeUser = {"https://api.twitter.com/oauth/autho... | gpl-2.0 |
sjznxd/lc-20130204 | applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo_config.lua | 80 | 1153 | --[[
LuCI - Lua Configuration Interface
(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.controller.l... | apache-2.0 |
linux-man/lovefs | GspotDemo/main.lua | 1 | 2123 | gui = require('Gspot/Gspot')
require('lovefs/lovefs')
require('lovefs/gspotDialog')
love.load = function()
fs = lovefs()
local button = gui:button('Load Image', {0, 0, 200, 40})
button.click = function(this)
save = false
fs:loadDialog(gui, 'Load Image', {'All | *.*', 'Jpeg | *.jpg *.jpeg', 'Png | *.png', 'Bmp |... | mit |
AdamGagorik/darkstar | scripts/zones/Beadeaux/npcs/The_Mute.lua | 13 | 1276 | -----------------------------------
-- Area: Beadeaux
-- NPC: ???
-- @pos -166.230 -1 -73.685 147
-----------------------------------
package.loaded["scripts/zones/Beadeaux/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Beadeaux/TextIDs");
require("scripts/globals/quests");
require("scrip... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/items/cheese_sandwich_+1.lua | 18 | 1186 | -----------------------------------------
-- ID: 5687
-- Item: cheese_sandwich_+1
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP 10
-- Agility 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----... | gpl-3.0 |
ohmbase/OpenRA | mods/ra/maps/allies-03a/allies03a.lua | 18 | 9282 | ProductionUnits = { "e1", "e1", "e2" }
ProductionBuildings = { USSRBarracks1, USSRBarracks2 }
TransportReinforcements = { "e1", "e1", "e1", "e2", "e2" }
FirstUSSRBase = { USSRFlameTower1, USSRBarracks1, USSRPowerPlant1, USSRPowerPlant2, USSRConstructionYard1, USSRTechCenter, USSRBaseGuard1, USSRBaseGuard2, USSRBaseGuar... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Temenos/mobs/Temenos_Weapon.lua | 7 | 1276 | -----------------------------------
-- Area: Temenos Central 1floor
-- NPC: Temenos_Weapon
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Davoi/npcs/Disused_Well.lua | 13 | 1333 | -----------------------------------
-- Area: Davoi
-- NPC: Disused Well
-- Involved in Quest: A Knight's Test
-- @pos -221 2 -293 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones... | gpl-3.0 |
luveti/Urho3D | bin/Data/LuaScripts/Utilities/ScriptCompiler.lua | 29 | 1247 | -- Script to recursively compile lua files located in specified rootFolder to luc (bytecode)
-- Usage: require "LuaScripts/Utilities/LuaScriptCompiler"
-- Set root folder containing lua files to convert
local rootFolder = "Data/LuaScripts/" -- Starting from bin folder
if not fileSystem:DirExists(rootFolder) then log:... | mit |
AdamGagorik/darkstar | scripts/globals/items/cup_of_chocomilk.lua | 18 | 1139 | -----------------------------------------
-- ID: 4498
-- Item: cup_of_chocomilk
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Magic Regen While Healing 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChe... | gpl-3.0 |
sjznxd/lc-20130204 | modules/niu/luasrc/model/cbi/niu/network/ddns1.lua | 37 | 1993 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | apache-2.0 |
Dynosaur/dynosaur | system/modules/lualibs/socket/ltn12.lua | 33 | 8589 | -----------------------------------------------------------------------------
-- LTN12 - Filters, sources, sinks and pumps.
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
------------------------------------------------------------------------... | gpl-3.0 |
gnosygnu/luaj_xowa | test/lua/errors.lua | 7 | 6006 | -- tostring replacement that assigns ids
local ts,id,nid,types = tostring,{},0,{table='tbl',thread='thr',userdata='uda',['function']='func'}
tostring = function(x)
if not x or not types[type(x)] then return ts(x) end
if not id[x] then nid=nid+1; id[x]=types[type(x)]..'.'..nid end
return id[x]
end
-- test of common ... | mit |
AdamGagorik/darkstar | scripts/zones/Port_Bastok/npcs/Kurando.lua | 12 | 2343 | -----------------------------------
-- Area: Port Bastok
-- NPC: Kurando
-- Type: Quest Giver
-- @zone: 236
-- @pos -23.887 3.898 0.870
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
----------------------... | gpl-3.0 |
sjznxd/lc-20130204 | contrib/luadoc/lua/luadoc/taglet/standard.lua | 93 | 16319 | -------------------------------------------------------------------------------
-- @release $Id: standard.lua,v 1.39 2007/12/21 17:50:48 tomas Exp $
-------------------------------------------------------------------------------
local assert, pairs, tostring, type = assert, pairs, tostring, type
local io = require "io... | apache-2.0 |
delram/inx | plugins/dic.lua | 31 | 1662 | --[[
-- Translate text using Google Translate.
-- http://translate.google.com/translate_a/single?client=t&ie=UTF-8&oe=UTF-8&hl=en&dt=t&tl=en&sl=auto&text=hello
--]]
do
function translate(source_lang, target_lang, text)
local path = "http://translate.google.com/translate_a/single"
-- URL query parameters
local pa... | gpl-2.0 |
AdamGagorik/darkstar | scripts/globals/mobskills/Prishe_Item_2.lua | 53 | 1486 | ---------------------------------------------
-- Prishe Item 2
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/zones/Empyreal_Paradox/TextIDs");
--------------------------------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/mobskills/Corrosive_ooze.lua | 34 | 1192 | ---------------------------------------------------
-- Corrosive Ooze
-- Family: Slugs
-- Description: Deals water damage to an enemy. Additional Effect: Attack Down and Defense Down.
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Radial
-- Notes:
------------------------------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Mount_Zhayolm/mobs/Brass_Borer.lua | 29 | 1544 | -----------------------------------
-- Area: Mount Zhayolm
-- MOB: Brass Borer
-----------------------------------
require("scripts/globals/status");
-- TODO: Damage resistances in streched and curled stances. Halting movement during stance change.
-----------------------------------
-- OnMobSpawn Action
-----------... | gpl-3.0 |
rigeirani/bbb | plugins/stats.lua | 8 | 4194 | 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/Qufim_Island/npcs/Singing_Blade_IM.lua | 13 | 3326 | -----------------------------------
-- Area: Qufim Island
-- NPC: Singing Blade, I.M.
-- Type: Border Conquest Guards
-- @pos 179.093 -21.575 -15.282 126
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conques... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Port_Windurst/npcs/Ten_of_Clubs.lua | 13 | 1054 | -----------------------------------
-- Area: Port Windurst
-- NPC: Ten of Clubs
-- Type: Standard NPC
-- @zone: 240
-- @pos -229.393 -9.2 182.696
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
----------... | gpl-3.0 |
persandstrom/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 |
AdamGagorik/darkstar | scripts/zones/Mount_Zhayolm/npcs/qm4.lua | 30 | 1342 | -----------------------------------
-- Area: Mount Zhayolm
-- NPC: ??? (Spawn Khromasoul Bhurborlor(ZNM T3))
-- @pos 88 -22 70 61
-----------------------------------
package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mount_Zhayolm/TextIDs");
require(... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/Wooden_Ladder.lua | 13 | 3273 | -----------------------------------
-- Area: Phomiuna Aqueducts
-- NPC: Wooden Ladder
-- @pos 101.9 -1.5 -101.9
-- @pos 101.948 -1.5 -18.016
-- @pos -61.888 -1.5 -18.079
-- @pos -218.109 -1.499 18.081
-- @pos -61.903 -1.5 138.099
-- @pos 21.901 -1.5 138.096
-- @pos 101.902 -1.5 181.902
-- @pos -159.32 -2.5 60
-- @pos... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Northern_San_dOria/npcs/Lotine.lua | 13 | 1027 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Lotine
-- Type: Standard Info NPC
-- @zone: 231
-- @pos -137.504 11.999 171.090
--
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,tra... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Everbloom_Hollow/Zone.lua | 17 | 1071 | -----------------------------------
--
-- Zone: Everbloom_Hollow
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Everbloom_Hollow/TextIDs"] = nil;
require("scripts/zones/Everbloom_Hollow/TextIDs");
-----------------------------------
-- onInitialize
-------... | gpl-3.0 |
paritoshmmmec/kong | spec/unit/tools/syslog_spec.lua | 23 | 1838 | local spec_helper = require "spec.spec_helpers"
local constants = require "kong.constants"
local stringy = require "stringy"
local syslog = require "kong.tools.syslog"
local utils = require "kong.tools.utils"
local UDP_PORT = 8889
describe("Syslog", function()
it("should log", function()
local thread = spec_he... | mit |
wez2020/roh | bot/creedbot.lua | 1 | 16637 | 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 = '1.0'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
retu... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/Bastok_Mines/npcs/Tami.lua | 12 | 2870 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Tami
-- Starts & Finishes Repeatable Quest: Groceries
-- Note: Repeatable until proper completion
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Abyssea-Altepa/npcs/Cavernous_Maw.lua | 29 | 1099 | -----------------------------------
-- Area: Abyssea Altepa
-- NPC: Cavernous Maw
-- @pos 444.000 -0.500 320.000 218
-- Notes Teleports Players to South Gustaberg
-----------------------------------
package.loaded["scripts/zones/Abyssea-Altepa/TextIDs"] = nil;
-----------------------------------
---------------------... | gpl-3.0 |
hadirahimi1380/-AhRiMaN- | plugins/danbooru.lua | 616 | 1750 | 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 |
ioiasff/awqp | plugins/stats.lua | 1 | 3985 | 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/Rolanberry_Fields/Zone.lua | 10 | 4860 | -----------------------------------
--
-- Zone: Rolanberry_Fields (110)
--
-----------------------------------
package.loaded["scripts/zones/Rolanberry_Fields/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Rolanberry_Fields/TextIDs");
require("scripts/globals/icanheararainbow");
require("s... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/spells/aurorastorm.lua | 32 | 1189 | --------------------------------------
-- Spell: Aurorastorm
-- Changes the weather around target party member to "auroras."
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
---------------------------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Bhaflau_Remnants/Zone.lua | 19 | 1071 | -----------------------------------
--
-- Zone: Bhaflau_Remnants
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Bhaflau_Remnants/TextIDs"] = nil;
require("scripts/zones/Bhaflau_Remnants/TextIDs");
-----------------------------------
-- onInitialize
-------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Yhoator_Jungle/npcs/Logging_Point.lua | 13 | 1068 | -----------------------------------
-- Area: Yhoator Jungle
-- NPC: Logging Point
-----------------------------------
package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/logging");
require("scripts/zones/Yhoator_Jungle/TextIDs");
------------... | gpl-3.0 |
luveti/Urho3D | bin/Data/LuaScripts/16_Chat.lua | 18 | 7649 | -- Chat example
-- This sample demonstrates:
-- - Starting up a network server or connecting to it
-- - Implementing simple chat functionality with network messages
require "LuaScripts/Utilities/Sample"
-- Identifier for the chat network messages
local MSG_CHAT = 32
-- UDP port we will use
local CHA... | mit |
robertfoss/nodemcu-firmware | app/cjson/tests/bench.lua | 145 | 3247 | #!/usr/bin/env lua
-- This benchmark script measures wall clock time and should be
-- run on an unloaded system.
--
-- Your Mileage May Vary.
--
-- Mark Pulford <mark@kyne.com.au>
local json_module = os.getenv("JSON_MODULE") or "cjson"
require "socket"
local json = require(json_module)
local util = require "cjson.ut... | mit |
iotcafe/nodemcu-firmware | app/cjson/tests/bench.lua | 145 | 3247 | #!/usr/bin/env lua
-- This benchmark script measures wall clock time and should be
-- run on an unloaded system.
--
-- Your Mileage May Vary.
--
-- Mark Pulford <mark@kyne.com.au>
local json_module = os.getenv("JSON_MODULE") or "cjson"
require "socket"
local json = require(json_module)
local util = require "cjson.ut... | mit |
mynameiscraziu/karizma | plugins/anti_spam.lua | 30 | 4161 |
do
local NUM_MSG_MAX = 4
local TIME_CHECK = 4 -- seconds
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... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/East_Ronfaure/npcs/Signpost.lua | 13 | 2313 | -----------------------------------
-- Area: East Ronfaure
-- NPC: Signpost
-- Involved in Quest: To Cure a Cough
-- @pos 257 -45 212 101
-----------------------------------
package.loaded["scripts/zones/East_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("s... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Meriphataud_Mountains/npcs/Beastmen_s_Banner.lua | 13 | 1028 | -----------------------------------
-- Area: Meriphataud_Mountains
-- NPC: Beastmen_s_Banner
-- @pos 592.850 -16.765 -518.802 119
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Meriphataud_Mountains/Tex... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/LaLoff_Amphitheater/mobs/Ark_Angel_s_Mandragora.lua | 8 | 1252 | -----------------------------------
-- Area: LaLoff Amphitheater
-- MOB: Ark Angel's Mandragora
-----------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
require("scripts/globals/statu... | gpl-3.0 |
AdamGagorik/darkstar | scripts/commands/changesjob.lua | 3 | 1883 | ---------------------------------------------------------------------------------------------------
-- func: changesjob
-- desc: Changes the players current subjob.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "si"... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/abilities/shikikoyo.lua | 11 | 1076 | -----------------------------------
-- Ability: Shikikoyo
-- Share TP above 1000 with a party member.
-- Obtained: Samurai Level 75
-- Recast Time: 5:00
-- Duration: Instant
-- Target: Party member, cannot target self.
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/st... | gpl-3.0 |
Nathan22Miles/sile | languages/cs.lua | 4 | 32886 | SILE.hyphenator.languages["cs"] = {};
SILE.hyphenator.languages["cs"].patterns =
{
".a2",
".a4da",
".a4de",
".a4di",
".a4do",
".a4dé",
".a4kl",
".a4ko",
".a4kr",
".a4ku",
".ale3x",
".a4ra",
".a4re",
".a4ri",
".a4ro",
".a4ry",
".a4rá",
".a4sa",
".a4se",
".a4so",
".as3t3",
".a4sy",
".a4ta",
".a4te",
".at3l",
".a4to",
... | mit |
AdamGagorik/darkstar | scripts/zones/Bastok_Mines/npcs/Explorer_Moogle.lua | 13 | 1711 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Explorer Moogle
--
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/teleports");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,t... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Mazuro-Oozuro.lua | 13 | 1256 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Mazuro-Oozuro
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
require("scripts/zones/Tavnazian_Safehold/TextIDs");
-------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/mobskills/Stormwind.lua | 30 | 2237 | ---------------------------------------------
-- Stormwind
--
-- Description: Creates a whirlwind that deals Wind damage to targets in an area of effect.
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: Unknown radial
-- Notes:
---------------------------------------------
require("scripts/glob... | gpl-3.0 |
aquileia/wesnoth | data/ai/lua/patrol.lua | 9 | 1107 | function patrol_gen(n, wp)
-- n is the name of the unit, like Kiressh
-- wp - a table of waypoint tables of form {x,y}
wesnoth.message('data/ai/lua/patrol.lua is deprecated. Use the Patrols Micro AI instead.')
local unit = wesnoth.get_units({name=n})[1]
local x, y = unit.x, unit.y
local wpn =... | gpl-2.0 |
AdamGagorik/darkstar | scripts/globals/items/bunch_of_wild_pamamas.lua | 3 | 2389 | -----------------------------------------
-- ID: 4596
-- Item: Bunch of Wild Pamamas
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength -3
-- Intelligence 1
-- Additional Effect with Opo-Opo Crown
-- HP 50
-- MP 50
-- CHR 14
-- Additional Effect with Kinkobo or
-- Primate Staff
-- D... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Toraimarai_Canal/npcs/qm10.lua | 13 | 1607 | -----------------------------------
-- Area: Toraimarai Canal
-- NPC: ???
-- Involved In Quest: Wild Card
-- @zone 169 // not accurate
-- @pos 220 16 -50 // not accurate
-----------------------------------
package.loaded["scripts/zones/Toraimarai_Canal/TextIDs"] = nil;
-----------------------------------
require("scr... | gpl-3.0 |
githubtelebot/Bot-telebot | plugins/filterword.lua | 8 | 2738 | local function addword(msg, name)
local hash = 'chat:'..msg.to.id..':badword'
redis:hset(hash, name, 'newword')
return "انجام شد"
end
local function get_variables_hash(msg)
return 'chat:'..msg.to.id..':badword'
end
local function list_variablesbad(msg)
local hash = get_variables_hash(msg)
if h... | gpl-2.0 |
AdamGagorik/darkstar | scripts/globals/spells/bluemagic/spiral_spin.lua | 31 | 2001 | -----------------------------------------
-- Spell: Spiral Spin
-- Chance of effect varies with TP. Additional Effect: Accuracy Down
-- Spell cost: 39 MP
-- Monster Type: Vermin
-- Spell Type: Physical (Slashing)
-- Blue Magic Points: 3
-- Stat Bonus: STR+1 HP+5
-- Level: 60
-- Casting Time: 4 seconds
-- Recast Time: 4... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Vunkerl_Inlet_[S]/Zone.lua | 12 | 2365 | -----------------------------------
--
-- Zone: Vunkerl_Inlet_[S] (83)
--
-----------------------------------
package.loaded["scripts/zones/Vunkerl_Inlet_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Vunkerl_Inlet_[S]/TextIDs");
require("scripts/globals/settings");
require("scripts/gl... | gpl-3.0 |
luveti/Urho3D | Source/Urho3D/LuaScript/pkgs/ToCppHook.lua | 1 | 7914 | --
-- Copyright (c) 2008-2016 the Urho3D project.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, m... | mit |
AdamGagorik/darkstar | scripts/zones/Lufaise_Meadows/TextIDs.lua | 15 | 1194 | -- 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 = 6... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Stellar_Fulcrum/mobs/Kam_lanaut.lua | 6 | 1453 | -----------------------------------
-- Area: Stellar Fulcrum
-- MOB: Kam'lanaut
-- Zilart Mission 8 BCNM Fight
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/magic");
local blades = {823, 826, 828, 825, 824, 827};
------------------... | gpl-3.0 |
githubtelebot/Bot-telebot | plugins/setstick.lua | 7 | 1261 | local function tosticker(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'sticker.webp'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
send_document(get_receiver(msg), file, ok_cb, false)
send_large_msg(receiver, ... | gpl-2.0 |
githubtelebot/Bot-telebot | plugins/help_pv.lua | 4 | 2255 | do
function run(msg, matches)
if msg.to.type == 'user' then
return 'Tele Bd Team Command List'..[[
🔘دستورات پیوی ربات برای اداره کردن گروه🔘
این دستورات فقط مخصوص صاحبان گروه ها هستند:
♨اخراج،بن و حذف بن فرد مورد نظر♨
💭 [!/]owners group_id [kick|ban|unban] user_id
مثال :
💭 [!/]owners 1234567 kick 1234567... | gpl-2.0 |
killa78/ForgeUI | ForgeUI/Libs/LibJSON/LibJSON-2.5.lua | 13 | 18391 | --[==[
David Kolf's JSON module for Lua 5.1/5.2
Version 2.5
For the documentation see the corresponding readme.txt or visit
<http://dkolf.de/src/dkjson-lua.fsl/>.
You can contact the author by sending an e-mail to 'david' at the
domain 'dkolf.de'.
Copyright (C) 2010-2013 David Heiko Kolf
Permission is hereby gr... | mit |
AdamGagorik/darkstar | scripts/zones/Port_San_dOria/npcs/Eddy.lua | 13 | 1053 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Eddy
-- Type: NPC Quest Giver
-- @zone: 232
-- @pos -5.209 -8.999 39.833
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------... | gpl-3.0 |
Anarchid/Zero-K-Infrastructure | Benchmarker/Benchmarks/games/path_test.sdd/Luaui/pathTests/Config/Crossing_4_final.lua | 12 | 1412 | local test = {
{
delayToNextTest = 300,
unitList = {},
},
{
delayToNextTest = 300,
unitList = {},
},
{
delayToNextTest = 300,
unitList = {},
},
{
delayToNextTest = 300,
unitList = {},
},
}
local MAX_DELAY_FACTOR = 1.75
local stepSize = 128
local units = {
"corak",
"corraid",
"corsh",
"corr... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Wajaom_Woodlands/mobs/Tinnin.lua | 2 | 5519 | -----------------------------------
-- Area: Wajoam Woodlands
-- MOB: Tinnin
-- @pos 276 0 -694
-- Spawned with Monkey Wine: @additem 2573
-- Wiki: http://ffxiclopedia.wikia.com/wiki/Tinnin
-----------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
----------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/spells/sheepfoe_mambo.lua | 27 | 1608 | -----------------------------------------
-- Spell: Sheepfoe Mambo
-- Grants evasion bonus to all members.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caste... | gpl-3.0 |
sjznxd/lc-20130204 | libs/core/luasrc/ccache.lua | 82 | 1863 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
ht... | apache-2.0 |
AdamGagorik/darkstar | scripts/zones/Crawlers_Nest/Zone.lua | 13 | 1919 | -----------------------------------
--
-- Zone: Crawlers_Nest (197)
--
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Crawlers_Nest/TextIDs"... | gpl-3.0 |
likeleon/Cnc | mods/cnc/maps/cnc64gdi01/cnc64gdi01.lua | 19 | 6339 | CommandoReinforcements = { "rmbo" }
MCVReinforcements = { "mcv" }
inf1 = { "e4" }
AutocreateSquads =
{
{ "stnk", "stnk" },
{ "ftnk", "ftnk" },
{ "ltnk", "ltnk", "bike" },
{ "arty", "arty", "bike", "bike" },
{ "ltnk", "ltnk" },
{ "stnk", "stnk" },
{ "ltnk", "ltnk" },
{ "arty", "arty" }
}
HeliPatrolPaths =
{
... | gpl-2.0 |
adib1380/anti2 | bot/bot.lua | 2 | 7076 | 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 = '0.14.6'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
r... | gpl-2.0 |
Hostle/luci | protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua | 47 | 3729 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local username, password, ac, service
local ipv6, defaultroute, metric, peerdns, dns,
keepalive_failure, keepalive_interval, demand, mtu
username = section:taboption("gener... | apache-2.0 |
robertfoss/nodemcu-firmware | lua_examples/irsend.lua | 88 | 1803 | ------------------------------------------------------------------------------
-- IR send module
--
-- LICENCE: http://opensource.org/licenses/MIT
-- Vladimir Dronnikov <dronnikov@gmail.com>
--
-- Example:
-- dofile("irsend.lua").nec(4, 0x00ff00ff)
-----------------------------------------------------------------------... | mit |
likeleon/Cnc | mods/cnc/maps/funpark01/scj01ea.lua | 19 | 3578 | RifleReinforcments = { "e1", "e1", "e1", "bike" }
BazookaReinforcments = { "e3", "e3", "e3", "bike" }
BikeReinforcments = { "bike" }
ReinforceWithLandingCraft = function(units, transportStart, transportUnload, rallypoint)
local transport = Actor.Create("oldlst", true, { Owner = player, Facing = 0, Location = transpo... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/Port_Windurst/npcs/Shanruru.lua | 13 | 2884 | -----------------------------------
-- Area: Port Windurst
-- NPC: Shanruru
-- Involved in Quest: Riding on the Clouds
-- @zone 240
-- @pos -1 -6 187
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings")... | gpl-3.0 |
Hostle/luci | applications/luci-app-pbx/luasrc/model/cbi/pbx-advanced.lua | 18 | 14476 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | apache-2.0 |
AdamGagorik/darkstar | scripts/globals/mobskills/Gates_of_Hades.lua | 33 | 1414 | ---------------------------------------------
-- Gates of Hades
--
-- Description: Deals severe Fire damage to enemies within an area of effect. Additional effect: Burn
-- Type: Magical
--
--
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: 20' radial
-- Notes: Only used when a cerberus's health is 25% or lower... | gpl-3.0 |
nerdclub-tfg/telegram-bot | plugins/face.lua | 641 | 3073 | local https = require("ssl.https")
local ltn12 = require "ltn12"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function request(imageUrl)
local api_key = mashape.api_key
if api_key:isempt... | gpl-2.0 |
mohammad25253/seed238 | plugins/face.lua | 641 | 3073 | local https = require("ssl.https")
local ltn12 = require "ltn12"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function request(imageUrl)
local api_key = mashape.api_key
if api_key:isempt... | gpl-2.0 |
mahmedhany128/Mr_BOT | plugins/tagall.lua | 3 | 2005 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY faeder ▀▄ ▄▀
▀▄ ▄▀ BY faeder (@xXxDev_iqxXx) ▀▄ ▄▀
▀▄ ▄▀ Making the file by faeder ▀▄ ▄▀
▀▄ ▄▀ tagall : تاك للكل ... | gpl-2.0 |
D-m-L/evonara | modules/libs/dkjson.lua | 2 | 25175 | -- Module options:
local always_try_using_lpeg = true
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.2*
This module writes no global values, not even the module table.
Import it using
json = require ("dkjson")
Exported functions and values:
`js... | mit |
rigeirani/bbb | plugins/plugins.lua | 72 | 6113 | 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 |
shakib01/anonymous01 | bot/seedbot.lua | 1 | 10270 | 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 |
AdamGagorik/darkstar | scripts/zones/Qufim_Island/npcs/Matica_RK.lua | 13 | 3323 | -----------------------------------
-- Area: Qufim Island
-- NPC: Matica, R.K.
-- Type: Border Conquest Guards
-- @pos 179.093 -21.575 -15.282 126
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
re... | gpl-3.0 |
Laeeth/dub | test/function_test.lua | 4 | 2605 | --[[------------------------------------------------------
dub.Function
------------
...
--]]------------------------------------------------------
local lub = require 'lub'
local lut = require 'lut'
local dub = require 'dub'
local should = lut.Test 'dub.Function'
local ins = dub.Inspector {
doc_dir = 'tes... | mit |
AdamGagorik/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Qutiba.lua | 27 | 2282 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Qutiba
-- Type: Standard NPC
-- @pos 92.341 -7.5 -129.980 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require(... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/items/plate_of_barnacle_paella.lua | 18 | 1633 | -----------------------------------------
-- ID: 5974
-- Item: Plate of Barnacle Paella
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- HP 40
-- Vitality 5
-- Mind -1
-- Charisma -1
-- Defense % 25 Cap 150
-- Undead Killer 5
-----------------------------------------
require("scripts/globa... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/items/pot_of_honey.lua | 18 | 1119 | -----------------------------------------
-- ID: 4370
-- Item: pot_of_honey
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Magic Regen While Healing 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
---... | gpl-3.0 |
TrurlMcByte/docker-prosody | etc/prosody-modules/mod_turncredentials/mod_turncredentials.lua | 36 | 1415 | -- XEP-0215 implementation for time-limited turn credentials
-- Copyright (C) 2012-2013 Philipp Hancke
-- This file is MIT/X11 licensed.
local st = require "util.stanza";
local hmac_sha1 = require "util.hashes".hmac_sha1;
local base64 = require "util.encodings".base64;
local os_time = os.time;
local secret = module:ge... | mit |
iotcafe/nodemcu-firmware | lua_examples/yet-another-ds18b20.lua | 79 | 1924 | ------------------------------------------------------------------------------
-- DS18B20 query module
--
-- LICENCE: http://opensource.org/licenses/MIT
-- Vladimir Dronnikov <dronnikov@gmail.com>
--
-- Example:
-- dofile("ds18b20.lua").read(4, function(r) for k, v in pairs(r) do print(k, v) end end)
------------------... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.