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
mehrpouya81/giantbot
plugins/search_youtube.lua
674
1270
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end local function searchYoutubeVideos(text) local url = 'https://www.googleapis.com/youtube/v3/search?' u...
gpl-2.0
crazyboy11/botspamm
plugins/search_youtube.lua
674
1270
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end local function searchYoutubeVideos(text) local url = 'https://www.googleapis.com/youtube/v3/search?' u...
gpl-2.0
dtrip/awesome
tests/examples/wibox/container/defaults/margin.lua
5
1382
--DOC_HIDE_ALL --DOC_GEN_IMAGE local wibox = require("wibox") local beautiful = require("beautiful") return { nil, { nil, { { text = "Before", align = "center", valign = "center", widget = wibox.widget.textbox, ...
gpl-2.0
micdah/LrControl
Docs/Lightroom SDK 6.0/Sample Plugins/flickr.lrdevplugin/FlickrExportServiceProvider.lua
1
41055
--[[---------------------------------------------------------------------------- FlickrExportServiceProvider.lua Export service provider description for Lightroom Flickr uploader -------------------------------------------------------------------------------- ADOBE SYSTEMS INCORPORATED Copyright 2007 Adobe Systems ...
gpl-3.0
nyczducky/darkstar
scripts/zones/Lower_Jeuno/npcs/Zalsuhm.lua
18
4645
----------------------------------- -- Area: Lower Jeuno -- NPC: Zalsuhm -- Standard Info NPC ----------------------------------- require("scripts/globals/equipment"); require("scripts/globals/quests"); package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; require("scripts/zones/Lower_Jeuno/TextIDs"); function g...
gpl-3.0
nyczducky/darkstar
scripts/zones/Bastok_Mines/npcs/Explorer_Moogle.lua
17
1731
----------------------------------- -- Area: Bastok Mines -- NPC: Explorer Moogle -- ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/teleports"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,t...
gpl-3.0
nyczducky/darkstar
scripts/zones/Newton_Movalpolos/npcs/HomePoint#1.lua
27
1274
----------------------------------- -- Area: Newton Movalpolos -- NPC: HomePoint#1 -- @pos 444 27 -22 12 ----------------------------------- package.loaded["scripts/zones/Newton_Movalpolos/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Newton_Movalpolos/TextIDs"); require("scripts/globa...
gpl-3.0
nyczducky/darkstar
scripts/zones/Bhaflau_Thickets/npcs/qm1.lua
30
1349
----------------------------------- -- Area: Bhaflau Thickets -- NPC: ??? (Spawn Lividroot Amooshah(ZNM T2)) -- @pos 334 -10 184 52 ----------------------------------- package.loaded["scripts/zones/Bhaflau_Thickets/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bhaflau_Thickets/TextIDs"); ...
gpl-3.0
lgeek/koreader
frontend/apps/reader/modules/readerdictionary.lua
1
27299
local ConfirmBox = require("ui/widget/confirmbox") local DataStorage = require("datastorage") local Device = require("device") local DictQuickLookup = require("ui/widget/dictquicklookup") local Geom = require("ui/geometry") local InfoMessage = require("ui/widget/infomessage") local InputContainer = require("ui/widget/c...
agpl-3.0
nyczducky/darkstar
scripts/zones/Dynamis-Buburimu/bcnms/dynamis_Buburimu.lua
14
1269
----------------------------------- -- Area: dynamis_Buburimu -- Name: dynamis_Buburimu ----------------------------------- -- After registering the BCNM via bcnmRegister(bcnmid) function onBcnmRegister(player,instance) SetServerVariable("[DynaBuburimu]UniqueID",os.time()); SetServerVariable("[DynaBubur...
gpl-3.0
Goodzilam/Goodzila-bot_v1.3
plugins/owners.lua
284
12473
local function lock_group_namemod(msg, data, target) local group_name_set = data[tostring(target)]['settings']['set_name'] local group_name_lock = data[tostring(target)]['settings']['lock_name'] if group_name_lock == 'yes' then return 'Group name is already locked' else data[tostring(target)]['setting...
gpl-2.0
Arashbrsh/lifeeee
plugins/boobs.lua
731
1601
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
gpl-2.0
masterfeizz/EDuke3D
source/lunatic/test/test_dists.lua
1
2011
#!/usr/bin/env luajit local ffi = require "ffi" local math = require "math" local os = require "os" local xmath = require "xmath" local ldist = xmath.ldist local sqrt = math.sqrt local function printf(fmt, ...) print(string.format(fmt, ...)) end local function edist(p1, p2) return sqrt(p1.x*p1.x + p2.x*p2....
gpl-2.0
nyczducky/darkstar
scripts/globals/items/windurst_taco.lua
12
1644
----------------------------------------- -- ID: 5172 -- Item: windurst_taco -- Food Effect: 30Min, All Races ----------------------------------------- -- MP 20 -- Vitality -1 -- Agility 5 -- MP Recovered While Healing 1 -- Ranged Accuracy % 8 (cap 10) -- Ranged Attack +1 ----------------------------------------- requ...
gpl-3.0
nyczducky/darkstar
scripts/zones/Windurst_Walls/npcs/Chomomo.lua
14
1457
----------------------------------- -- Area: Windurst Walls -- NPC: Chomomo -- Type: Standard NPC -- @pos -1.262 -11 290.224 239 ----------------------------------- package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/...
gpl-3.0
nyczducky/darkstar
scripts/globals/items/serving_of_green_curry.lua
12
1853
----------------------------------------- -- ID: 4296 -- Item: serving_of_green_curry -- Food Effect: 180Min, All Races ----------------------------------------- -- Agility 2 -- Vitality 1 -- Health Regen While Healing 2 -- Magic Regen While Healing 1 -- Defense +9% (cap 160) -- Ranged ACC +5% (cap 25) -- Sleep Resist ...
gpl-3.0
nyczducky/darkstar
scripts/zones/The_Celestial_Nexus/mobs/Orbital.lua
23
2360
----------------------------------- -- Area: The Celestial Nexus -- NPC: Orbital -- Zilart Mission 16 BCNM Fight ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onMobInitialize Action --...
gpl-3.0
ahmedjabbar/uor
plugins/weather.lua
7
2501
--[[ # #ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ #:(( # For More Information ....! # Developer : Aziz < @TH3_GHOST > # our channel: @DevPointTeam # Version: 1.1 #:)) #ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ # ]] lo...
gpl-2.0
tenplus1/bonemeal
intllib.lua
53
1122
-- Fallback functions for when `intllib` is not installed. -- Code released under Unlicense <http://unlicense.org>. -- Get the latest version of this file at: -- https://raw.githubusercontent.com/minetest-mods/intllib/master/lib/intllib.lua local function format(str, ...) local args = { ... } local function repl...
mit
nyczducky/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Gavrie.lua
17
1534
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Gavrie -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); require("scripts/g...
gpl-3.0
nyczducky/darkstar
scripts/zones/Abyssea-Konschtat/npcs/qm10.lua
10
1346
----------------------------------- -- Zone: Abyssea-Konschtat -- NPC: qm10 (???) -- Spawns Fear Gorta -- @pos ? ? ? 15 ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) -...
gpl-3.0
nyczducky/darkstar
scripts/globals/weaponskills/ukkos_fury.lua
19
1877
----------------------------------- -- Ukko's Fury -- Great Axe Weapon Skill -- Skill Level: N/A -- Description: Delivers a twofold attack that slows target. Chance of params.critical hit varies with TP. Ukonvasara: Aftermath. -- Available only when equipped with Ukonvasara (85), Ukonvasara (90), Ukonvasara (95), Masch...
gpl-3.0
sevu/wesnoth
data/campaigns/World_Conquest/lua/map/postgeneration/4A_Thermal.lua
7
4185
-- Thermal function world_conquest_tek_map_repaint_4a() world_conquest_tek_map_rebuild("Uu,Uu^Tf,Uh,Uu^Tf,Uu,Uu^Tf,Uh,Ql,Ql,Ql", 3) world_conquest_tek_map_decoration_4a() world_conquest_tek_map_dirt("Gg^Tf,Gg^Tf,Gs^Tf") end function world_conquest_tek_map_decoration_4a() set_terrain { "Gs^Fmf", f.terrain("Gs^Ft...
gpl-2.0
samuelwbaird/bozo
example/generate_image_example.lua
1
1774
-- using bozo to create an empty image and then draw pixels and save the output -- using simple 1 colour drawing, followed by high quality down-scaling to get a nice anti-aliased result require 'math' require 'bozo' local radius = 512 local bar_width = radius / 3 local line_width = bar_width / 4 local image = bozo.i...
mit
jbeich/Aquaria
files/scripts/maps/node_enter_icecave.lua
6
1111
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 2 -- of the License, or (at your option) any later vers...
gpl-2.0
nyczducky/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Duke_Scox.lua
23
1566
----------------------------------- -- Area: Dynamis Xarcabard -- MOB: Duke Scox ----------------------------------- require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- -- onMobEngaged ----------------------------------- function onMobEngaged(m...
gpl-3.0
rthallisey/kolla-kubernetes-personal
kolla/docker/heka/plugins/modules/os_utils.lua
6
2279
-- Copyright 2015-2016 Mirantis, Inc. -- -- 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 agree...
apache-2.0
nyczducky/darkstar
scripts/zones/Pashhow_Marshlands/npcs/Beastmen_s_Banner.lua
14
1037
----------------------------------- -- Area: Pashhow Marshlands -- NPC: Beastmen_s_Banner -- @pos -172.764 25.119 93.640 109 ----------------------------------- package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Pashhow_Marshlands/TextIDs"); --...
gpl-3.0
jbeich/Aquaria
files/scripts/maps/node_sunwormcavebrain.lua
5
1839
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 2 -- of the License, or (at your option) any later vers...
gpl-2.0
nyczducky/darkstar
scripts/zones/The_Sanctuary_of_ZiTah/npcs/Cermet_Headstone.lua
14
3734
----------------------------------- -- Area: The Sanctuary of Zi'Tah -- NPC: Cermet Headstone -- Involved in Mission: ZM5 Headstone Pilgrimage (Light Headstone) -- @pos 235 0 280 121 ----------------------------------- package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil; ------------------------------...
gpl-3.0
ichiinisanshi/Learning-with-Penny-the-Pony
storyTagalog_balloonGame.lua
1
13510
local storyboard = require("storyboard") local widget = require("widget") local scene = storyboard.newScene() local external = require("external") function scene:willEnterScene( event ) local group = self.view storyboard.removeAll() end function scene:createScene( event ) local screenGroup = self.view ...
mit
dtrip/awesome
lib/awful/mouse/resize.lua
3
8299
--------------------------------------------------------------------------- --- An extensible mouse resizing handler. -- -- This module offers a resizing and moving mechanism for drawables such as -- clients and wiboxes. -- -- @author Emmanuel Lepage Vallee &lt;elv1313@gmail.com&gt; -- @copyright 2016 Emmanuel Lepage V...
gpl-2.0
Mariappan/rcfiles
home/.notion/looks/look_dusky.lua
1
2197
-- look_dusky.lua drawing engine configuration file for Notion. if not gr.select_engine("de") then return end de.reset() de.defstyle("*", { shadow_colour = "#404040", highlight_colour = "#707070", background_colour = "#505050", foreground_colour = "#a0a0a0", padding_pixels = 1, highlight_pixe...
gpl-2.0
abcdefg30/OpenRA
mods/cnc/maps/gdi06/gdi06.lua
6
4952
--[[ Copyright 2007-2022 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you 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) any later vers...
gpl-3.0
nyczducky/darkstar
scripts/globals/weaponskills/brainshaker.lua
18
1548
----------------------------------- -- Brainshaker -- Club weapon skill -- Skill level: 70 -- Stuns enemy. Duration of stun varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Aqua Gorget. -- Aligned with the Aqua Belt. -- Element: None -- Modifiers: STR:30% -- 100%TP 200%TP 300%TP -- 1.00 1...
gpl-3.0
abeschneider/nn
Sequential.lua
33
3921
local Sequential, _ = torch.class('nn.Sequential', 'nn.Container') function Sequential:__len() return #self.modules end function Sequential:add(module) if #self.modules == 0 then self.gradInput = module.gradInput end table.insert(self.modules, module) self.output = module.output return self en...
bsd-3-clause
sjznxd/lc-20121231
applications/luci-p910nd/luasrc/model/cbi/p910nd.lua
74
1512
--[[ LuCI p910nd (c) 2008 Yanira <forum-2008@email.de> (c) 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...
apache-2.0
dtrip/awesome
lib/naughty/init.lua
3
2901
--------------------------------------------------------------------------- -- @author Uli Schlachter &lt;psychon@znc.in&gt; -- @copyright 2014 Uli Schlachter -- @module naughty --------------------------------------------------------------------------- local naughty = require("naughty.core") local gdebug = require("g...
gpl-2.0
crazyboy11/botspamm
bot/creedbot.lua
2
15547
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
benloz10/FinalFrontier
gamemodes/finalfrontier/entities/entities/prop_ff_module/shared.lua
1
10308
-- Copyright (c) 2014 James King [metapyziks@gmail.com] -- -- This file is part of Final Frontier. -- -- Final Frontier 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 Software Foundation, either version 3 of -- the Licen...
lgpl-3.0
wenhulove333/ScutServer
Sample/ClientSource/samples/Lua/TestLua/Resources/luaScript/LabelTest/LabelTest.lua
1
49755
local size = CCDirector:sharedDirector():getWinSize() local scheduler = CCDirector:sharedDirector():getScheduler() local kTagTileMap = 1 local kTagSpriteManager = 1 local kTagAnimation1 = 1 local kTagBitmapAtlas1 = 1 local kTagBitmapAtlas2 = 2 local kTagBitmapAtlas3 = 3 local kTagSprite1 = 0 local kTagSprite...
mit
nyczducky/darkstar
scripts/zones/Lower_Jeuno/npcs/Yoskolo.lua
17
1785
----------------------------------- -- Area: Lower Jeuno -- NPC: Yoskolo -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; require("scripts/zones/Lower_Jeuno/TextIDs"); ----------------------------------- -- onTrade...
gpl-3.0
nyczducky/darkstar
scripts/globals/items/loaf_of_homemade_bread.lua
12
1872
----------------------------------------- -- ID: 5228 -- Item: loaf_of_homemade_bread -- Food Effect: 30Min, All Races ----------------------------------------- -- hMP +1 -- Accuracy +12% (cap 80) -- Attack +10% (cap 40) -- Ranged Accuracy +12% (cap 80) -- Ranged Attack +10% (cap 40) -----------------------------------...
gpl-3.0
nyczducky/darkstar
scripts/zones/East_Ronfaure_[S]/npcs/qm5.lua
29
1559
----------------------------------- -- Area: East Ronfaure [S] -- NPC: qm5 "???" -- Involved in Quests: Steamed Rams -- @pos 380.015 -26.5 -22.525 ----------------------------------- package.loaded["scripts/zones/East_Ronfaure_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"...
gpl-3.0
Ikesters/ArcPro
src/scripts/lua/Lua/0Misc/0LCF_Includes/LCF_Player.lua
18
2613
--[[ * ArcEmu MMORPG Server * Copyright (C) 2005-2007 Ascent Team <http://www.ascentemu.com/> * Copyright (C) 2008-2010 <http://www.ArcEmu.org/> * * 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 Softwa...
agpl-3.0
nyczducky/darkstar
scripts/zones/The_Eldieme_Necropolis/npcs/Brazier.lua
14
4015
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: Brazier -- Involved in Quests: Save my Sister -- @pos 101 -33 -59 195 (F-9) -- @pos 259 -33 99 195 (H-7) -- @pos 99 -33 98 195 (F-7) -- @pos 259 -33 -58 195 (H-9) ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Ne...
gpl-3.0
AquariaOSE/Aquaria
files/scripts/entities/seedcommon.lua
10
3064
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 2 -- of the License, or (at your option) any later vers...
gpl-2.0
lumail/lumail
lib/functional.lua
4
1437
-- -- Simple functional-programming examples -- local Functional = {} -- -- Call the given function on all members of the table. -- function Functional.map (func, array) if type(func) ~= "function" then error "The first argument must be a function" end local new_array = {} local i = #array while i > 0...
gpl-2.0
TheHipster/cwlourp
plugins/books/plugin/items/sh_book_tfoy.lua
1
2055
--[[ © 2013 CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). --]] ITEM = Clockwork.item:New("book_base"); ITEM.cost = 6; ITEM.name = "The Fountain of Youth"; ITEM.model = "models/props_lab/bindergreenlabel.mdl"; ITEM.uniqueID = "book_tfw"; ITEM.b...
unlicense
jbeich/Aquaria
files/scripts/entities/icechunksmall.lua
6
1251
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 2 -- of the License, or (at your option) any later vers...
gpl-2.0
nyczducky/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Naja_Salaheem.lua
3
8996
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Naja Salaheem -- Type: Standard NPC -- @pos 22.700 -8.804 -45.591 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_W...
gpl-3.0
nyczducky/darkstar
scripts/zones/Jade_Sepulcher/Zone.lua
32
1271
----------------------------------- -- -- Zone: Jade_Sepulcher (67) -- ----------------------------------- package.loaded["scripts/zones/Jade_Sepulcher/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Jade_Sepulcher/TextIDs"); ---------------------------...
gpl-3.0
Reisz/LoveGui
src/util/context/result.lua
1
3472
local set = require "util.set" local result, empty = {}, {} -- STATIC function result:clear() return setmetatable({context = self.context, set = {}}, { __index = result }) end -- ATTRIBUTE MANIPULATION function result:get(k) return (select(2, next(self.set)) or empty)[k] end function result:getResult(k, ...) ...
apache-2.0
jbeich/Aquaria
files/scripts/entities/cc_kid.lua
6
2039
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 2 -- of the License, or (at your option) any later vers...
gpl-2.0
AquariaOSE/Aquaria
game_scripts/_mods/aquariaeditortutorial/scripts/node_end.lua
6
2311
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 2 -- of the License, or (at your option) any later vers...
gpl-2.0
mehrpouya81/giantbot
plugins/time.lua
771
2865
-- 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
crazyboy11/botspamm
plugins/time.lua
771
2865
-- 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
Arashbrsh/lifeeee
plugins/time.lua
771
2865
-- 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
ArmanIr/restore
plugins/time.lua
771
2865
-- 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
abeschneider/nn
SpatialDivisiveNormalization.lua
39
5171
local SpatialDivisiveNormalization, parent = torch.class('nn.SpatialDivisiveNormalization','nn.Module') function SpatialDivisiveNormalization:__init(nInputPlane, kernel, threshold, thresval) parent.__init(self) -- get args self.nInputPlane = nInputPlane or 1 self.kernel = kernel or torch.Tensor(9,9):fill(...
bsd-3-clause
abcdefg30/OpenRA
mods/d2k/maps/atreides-02a/atreides02a-AI.lua
14
1137
--[[ Copyright 2007-2022 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you 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) any later vers...
gpl-3.0
nyczducky/darkstar
scripts/zones/Port_Bastok/npcs/Mine_Konte.lua
17
1124
----------------------------------- -- Area: Port Bastok -- NPC: Mine Konte -- Involved in Quest: Out of One's Shell ----------------------------------- require("scripts/globals/quests"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end;...
gpl-3.0
beemogmbh/osrm-backend
profiles/rasterbotinterp.lua
3
1486
-- Rasterbot profile -- Minimalist node_ and way_functions in order to test source_ and segment_functions function node_function (node, result) end function way_function (way, result) local highway = way:get_value_by_key("highway") local name = way:get_value_by_key("name") if name then result.name = name ...
bsd-2-clause
nyczducky/darkstar
scripts/globals/items/roast_carp.lua
12
1370
----------------------------------------- -- ID: 4537 -- Item: roast_carp -- Food Effect: 30Min, All Races ----------------------------------------- -- Dexterity 1 -- Mind -1 -- Ranged ATT % 14 (cap 40) ----------------------------------------- require("scripts/globals/status"); --------------------------------------...
gpl-3.0
nyczducky/darkstar
scripts/zones/Southern_San_dOria/npcs/Esmallegue.lua
14
1536
----------------------------------- -- Area: Southern San d'Oria -- NPC: Esmallegue -- General Info NPC -- @zone 230 -- @pos 0 2 -83 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Southern_San_dOria/Tex...
gpl-3.0
AquariaOSE/Aquaria
files/scripts/maps/node_singinghint.lua
6
1224
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 2 -- of the License, or (at your option) any later vers...
gpl-2.0
JohnWich/MEGA-john-wich
plugins/anti-spam.lua
8
2355
local NUM_MSG_MAX = 3 local TIME_CHECK = 4 local function kick_user(user_id, chat_id) local chat = 'channel#id'..chat_id local user = 'user#id'..user_id channel_kick_user(chat, user, function (data, success, result) if success ~= 1 then local text = 'I can\'t kick '..data.user..' but should be kicked' ...
gpl-2.0
dtrip/awesome
tests/examples/sequences/client/maximized_vertical.lua
4
2264
--DOC_GEN_IMAGE --DOC_NO_USAGE --DOC_ASTERISK local module = ... --DOC_HIDE local awful = {tag = require("awful.tag"), layout = require("awful.layout")} --DOC_HIDE awful.placement = require("awful.placement") --DOC_HIDE require("awful.permissions") --DOC_HIDE screen[1]:fake_resize(0, 0, 1024/2, 768/2) --DOC_HIDE scree...
gpl-2.0
nyczducky/darkstar
scripts/zones/Zeruhn_Mines/Zone.lua
12
2515
----------------------------------- -- -- Zone: Zeruhn_Mines (172) -- ----------------------------------- package.loaded["scripts/zones/Zeruhn_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/zone"); require("scripts/zones/Zeruhn_Mines/TextIDs"); -...
gpl-3.0
hacker44-h44/teleguard-v2
plugins/rae.lua
616
1312
do function getDulcinea( text ) -- Powered by https://github.com/javierhonduco/dulcinea local api = "http://dulcinea.herokuapp.com/api/?query=" local query_url = api..text local b, code = http.request(query_url) if code ~= 200 then return "Error: HTTP Connection" end dulcinea = json:decode(b) ...
gpl-2.0
nyczducky/darkstar
scripts/zones/Abyssea-Uleguerand/npcs/qm9.lua
14
1354
----------------------------------- -- Zone: Abyssea-Uleguerand -- NPC: qm9 (???) -- Spawns Chillwing Hwitti -- @pos ? ? ? 253 ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,t...
gpl-3.0
lgeek/koreader
frontend/apps/reader/modules/readerpanning.lua
11
1465
local InputContainer = require("ui/widget/container/inputcontainer") local Device = require("device") local _ = require("gettext") local ReaderPanning = InputContainer:new{ -- defaults panning_steps = { normal = 50, alt = 25, shift = 10, altshift = 5 }, } function ReaderPan...
agpl-3.0
dtrip/awesome
tests/examples/wibox/layout/manual/add_at.lua
6
1140
--DOC_GEN_IMAGE --DOC_HIDE local generic_widget = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local awful = {placement = require("awful.placement")} --DOC_HIDE local l = wibox.layout { layout = wibox.layout.manual } -- -- Option 1: Set the point directly in the widget local w1 = generic_wi...
gpl-2.0
master00041/maximus_bot
plugins/stats.lua
866
4001
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...
agpl-3.0
GSRMOHAMMAD/fortg
plugins/ip.lua
11
4571
local function run(msg, matches) if matches[1]:lower() == "config" then local data = http.request("http://ip-api.com/json/"..URL.escape(matches[2]).."?fields=262143") local jdat = JSON.decode(data) if jdat.status == "success" then local text = "مشخصات آی اس پی شخص-دامنه مورد نظر:\n" .."کشور: "..jdat.countr...
gpl-2.0
AquariaOSE/Aquaria
files/scripts/entities/_unused/kairam.lua
6
1764
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 2 -- of the License, or (at your option) any later vers...
gpl-2.0
nyczducky/darkstar
scripts/zones/East_Ronfaure/npcs/Signpost.lua
13
2323
----------------------------------- -- 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
nyczducky/darkstar
scripts/zones/Al_Zahbi/npcs/Danaaba.lua
14
1038
----------------------------------- -- Area: Al Zahbi -- NPC: Danaaba -- Type: Standard NPC -- @zone 48 -- @pos -17.375 -6.999 59.161 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; --------------------------...
gpl-3.0
nyczducky/darkstar
scripts/zones/Meriphataud_Mountains_[S]/npcs/qm1.lua
14
1257
----------------------------------- -- Area: Meriphataud Mountains [S] -- NPC: ??? -- @pos 757 -16 -446 ----------------------------------- package.loaded["scripts/zones/Meriphataud_Mountains_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/Meriphat...
gpl-3.0
abeschneider/nn
MarginRankingCriterion.lua
43
1963
local MarginRankingCriterion, parent = torch.class('nn.MarginRankingCriterion', 'nn.Criterion') function MarginRankingCriterion:__init(margin) parent.__init(self) margin=margin or 1 self.margin = margin self.gradInput = {torch.Tensor(1), torch.Tensor(1)} end function MarginRankingCriterion:updateOutput...
bsd-3-clause
nyczducky/darkstar
scripts/zones/Kazham/npcs/Thali_Mhobrum.lua
15
1659
----------------------------------- -- Area: Kazham -- NPC: Thali Mhobrum -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); local path = { 55.816410, -11.000000, -43.992680, 54.761787, -11.000000, -44.046181, 51.8058...
gpl-3.0
nyczducky/darkstar
scripts/globals/items/angler_stewpot.lua
12
1879
----------------------------------------- -- ID: 5611 -- Item: Angler's Stewpot -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +10% (cap 200) -- MP +10 -- HP Recoverd while healing 5 -- MP Recovered while healing 1 -- Accuracy +15% Cap 15 -- Ranged Accuracy 15% Ca...
gpl-3.0
nyczducky/darkstar
scripts/zones/Jugner_Forest/npcs/Alexius.lua
14
1619
----------------------------------- -- Area: Jugner Forest -- NPC: Alexius -- Involved in Quest: A purchase of Arms & Sin Hunting -- @pos 105 1 382 104 ----------------------------------- package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titl...
gpl-3.0
ameenetemady/DeepPep
app/app9_yeast_pl/experiment_3_multiArch.lua
1
1042
--[[ variations: 1) number of convolutional[+dropout,maxpooling,relu] layers: a: dropout rate, b: nChannels(input/output), c: nKwSize, d: nPoolingWindowSize --]] torch.manualSeed(1) require('../../CExperimentSparseBlockFlex.lua') require('../../CDataLoader.lua') local exprSetting = require('./lSettings.lua') loca...
apache-2.0
benloz10/FinalFrontier
gamemodes/finalfrontier/gamemode/sgui/securitybutton.lua
3
3750
-- Copyright (c) 2014 James King [metapyziks@gmail.com] -- -- This file is part of Final Frontier. -- -- Final Frontier 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 Software Foundation, either version 3 of -- the Lic...
lgpl-3.0
nyczducky/darkstar
scripts/zones/Windurst_Woods/npcs/Catalia.lua
14
1050
----------------------------------- -- Area: Windurst Woods -- NPC: Catalia -- Type: Standard NPC -- @zone 241 -- @pos -46.160 -0.501 -32.698 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; --------------...
gpl-3.0
aminba/bot
plugins/whosfree.lua
4
2376
function format_time(timestamp, format, tzoffset, tzname) if tzoffset == "local" then -- calculate local time zone (for the server) local now = os.time() local local_t = os.date("*t", now) local utc_t = os.date("!*t", now) local delta = (local_t.hour - utc_t.hour)*60 + (local_t.min - utc_t...
gpl-2.0
wenhulove333/ScutServer
Sample/Koudai/Client/lua/scenes/TrialScene.lua
1
8856
------------------------------------------------------------------ -- TrialScene.lua -- Author : Zonglin Liu -- Version : 1.0 -- Date : -- Description: ------------------------------------------------------------------ module("TrialScene", package.seeall) mScene = nil -- ³¡¾° acitv...
mit
Mariappan/rcfiles
home/.notion/looks/look_asm.lua
7
4238
-- Authors: Unknown -- License: Unknown -- Last Changed: Unknown if not gr.select_engine("de") then return end de.reset() de.defstyle("*", { foreground_colour = "#ffffff", background_colour = "#708090", shadow_colour = "#405060", highlight_colour = "#708090", padding_colour= "#405060", paddi...
gpl-2.0
AquariaOSE/Aquaria
files/scripts/entities/bloodcell-common.lua
6
2193
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 2 -- of the License, or (at your option) any later vers...
gpl-2.0
Tanmoytkd/vlc
share/lua/playlist/canalplus.lua
113
3501
--[[ $Id: $ Copyright (c) 2007 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distr...
gpl-2.0
sevu/wesnoth
data/multiplayer/eras.lua
6
4565
local T = wml.tag local res = {} res.quick_4mp_leaders = function(args) local make_4mp_leaders_quick = wml.variables["make_4mp_leaders_quick"] if make_4mp_leaders_quick == nil then make_4mp_leaders_quick = wesnoth.scenario.mp_settings and (wesnoth.scenario.mp_settings.mp_campaign == "") end if not make_4mp_lead...
gpl-2.0
nyczducky/darkstar
scripts/zones/The_Sanctuary_of_ZiTah/npcs/qm2.lua
14
1934
----------------------------------- -- Area: The Sanctuary of ZiTah -- NPC: qm2 (???) -- Involved in Quest: Forge Your Destiny -- @pos 639 -1 -151 121 ----------------------------------- package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil; ----------------------------------- require("scripts/globals/...
gpl-3.0
AquariaOSE/Aquaria
files/scripts/entities/deepcrawley.lua
6
5240
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 2 -- of the License, or (at your option) any later vers...
gpl-2.0
ruleless/skynet
test/testredis2.lua
82
1043
local skynet = require "skynet" local redis = require "redis" local db function add1(key, count) local t = {} for i = 1, count do t[2*i -1] = "key" ..i t[2*i] = "value" .. i end db:hmset(key, table.unpack(t)) end function add2(key, count) local t = {} for i = 1, count do ...
mit
nyczducky/darkstar
scripts/zones/Western_Adoulin/npcs/Mastan.lua
14
2128
----------------------------------- -- Area: Western Adoulin -- NPC: Virsaint -- Type: Standard NPC and Quest NPC -- Involved with Quests: 'Order Up' -- 'The Curious Case of Melvien' -- @zone 256 -- @pos -9 0 67 ----------------------------------- package.loaded["scripts/zones/Western_Adoul...
gpl-3.0
AquariaOSE/Aquaria
files/scripts/entities/queen-statue.lua
6
1822
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 2 -- of the License, or (at your option) any later vers...
gpl-2.0
nyczducky/darkstar
scripts/zones/Riverne-Site_A01/mobs/Heliodromos.lua
13
2198
----------------------------------- -- Area: Riverne Site A01 -- MOB: Heliodromos ----------------------------------- ----------------------------------- -- onMobRoam ----------------------------------- function onMobRoam(mob) local Heliodromos_Table = { 16900110, 16900111, 16900112...
gpl-3.0
sudheesh001/RFID-DBSync
cardpeek-0.8.3/dot_cardpeek_dir/scripts/calypso.lua
16
9370
-- -- This file is part of Cardpeek, the smartcard reader utility. -- -- Copyright 2009-2013 by 'L1L1' -- -- Cardpeek 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 -- (a...
gpl-2.0
Tanmoytkd/vlc
share/lua/meta/art/00_musicbrainz.lua
71
3091
--[[ Gets an artwork from the Cover Art Archive or Amazon $Id$ Copyright © 2007-2010 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at ...
gpl-2.0