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
elijah513/Atlas
lib/xtab.lua
40
13591
--[[ $%BEGINLICENSE%$ Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved. 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; version 2 of the License. This program is dis...
gpl-2.0
fakechris/Atlas
lib/xtab.lua
40
13591
--[[ $%BEGINLICENSE%$ Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved. 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; version 2 of the License. This program is dis...
gpl-2.0
MrTheSoulz/NerdPack
system/buttons.lua
1
1675
local NeP = NeP NeP.Buttons = { buttons = {} } local nBars = { "ActionButton", "MultiBarBottomRightButton", "MultiBarBottomLeftButton", "MultiBarRightButton", "MultiBarLeftButton" } -- this seems to be missing now.... -- added this from old dumps and seems to work... local function ActionButton_CalculateAction...
mit
dacrybabysuck/darkstar
scripts/globals/items/pork_cutlet_rice_bowl_+1.lua
11
1785
----------------------------------------- -- ID: 6407 -- Item: pork_cutlet_rice_bowl_+1 -- Food Effect: 240Min, All Races ----------------------------------------- -- HP +65 -- MP +65 -- STR +8 -- VIT +4 -- AGI +6 -- INT -8 -- Fire resistance +21 -- Attack +24% (cap 130) -- Ranged Attack +24% (cap 130) -- Store TP +5 -...
gpl-3.0
xpol/luacheck
src/luacheck/stages/detect_cyclomatic_complexity.lua
3
3999
local utils = require "luacheck.utils" local stage = {} local function cyclomatic_complexity_message_format(warning) local template = "cyclomatic complexity of %s is too high ({complexity} > {max_complexity})" local function_descr if warning.function_type == "main_chunk" then function_descr = "main c...
mit
fegimanam/uzrep
plugins/moderation.lua
336
9979
do local function check_member(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then local username = v.username data[tostring(m...
gpl-2.0
varunparkhe/Algorithm-Implementations
Golden_Ratio_Algorithms/Lua/Yonaba/golden_ratio_test.lua
26
1059
-- Tests for golden_ratio.lua local GN = require 'golden_ratio' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total = total + 1 local ok, err = pcall(f) if ok then pass = pass + 1 end ...
mit
mosy210/shadow-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
dacrybabysuck/darkstar
scripts/globals/weaponskills/burning_blade.lua
10
1308
----------------------------------- -- Burning Blade -- Sword weapon skill -- Skill Level: 30 -- Desription: Deals Fire elemental damage to enemy. Damage varies with TP. -- Aligned with the Flame Gorget. -- Aligned with the Flame Belt. -- Element: Fire -- Modifiers: STR:20% INT:20% -- 100%TP 200%TP 300%TP -- 1.0...
gpl-3.0
MrTheSoulz/NerdPack
Libs/DiesalGUI-1.0/Objects/Accordian.lua
6
2763
local DiesalGUI = LibStub("DiesalGUI-1.0") -- ~~| Libraries |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ local DiesalTools = LibStub("DiesalTools-1.0") local DiesalStyle = LibStub("DiesalStyle-1.0") -- | Lua Upvalues |~~~~...
mit
dacrybabysuck/darkstar
scripts/zones/Nashmau/npcs/Kyokyoroon.lua
9
1194
----------------------------------- -- Area: Nashmau -- NPC: Kyokyoroon -- Standard Info NPC -- !pos 18.020 -6.000 10.467 53 ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/settings"); ----------------------------------- function onTrade(player,npc,trade) if (playe...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/items/aspir_knife.lua
12
1125
----------------------------------------- -- ID: 16509 -- Item: Aspir Knife -- Additional effect: MP Drain ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") ----------------------------------- function onAdditionalEffect(player,t...
gpl-3.0
mehrpouya81/gamermir
plugins/help.lua
25
4629
do function pairsByKeys(t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] end end return iter end...
gpl-2.0
dacrybabysuck/darkstar
scripts/globals/spells/blind.lua
12
1512
----------------------------------------- -- Spell: Blind ----------------------------------------- require("scripts/globals/magic") require("scripts/globals/msg") require("scripts/globals/status") require("scripts/globals/utils") ----------------------------------------- function onMagicCastingCheck(caster, target, s...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/spells/absorb-chr.lua
12
1564
-------------------------------------- -- Spell: Absorb-CHR -- Steals an enemy's Charism. -------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") ----------------------------------------- function onMag...
gpl-3.0
ambethia/LCD
lua/lcd.lua
1
1699
LCD = {} LCD.__index = LCD; local TABLE = { 119, 36, 93, 109, 46, 107, 123, 37, 127, 111 } -- Binary notation is not available in Lua. local H_SYM = "-" local V_SYM = "|" local S_SYM = " " function LCD.create(input, segments) local self = {} setmetatable(self, LCD); self.numbers = {} for i = 1, #input do ...
mit
25A0/Quadtastic
Quadtastic/fun.lua
1
2746
local unpack = unpack or table.unpack local fun = {} -- Applies the given function f to each element of the table t in-place function fun.map(f, t) for i,v in ipairs(t) do t[i] = f(v) end return t end -- Returns whether one or more of the values in table t pass the given filter function fun.any(filter, t) ...
mit
dacrybabysuck/darkstar
scripts/globals/mobskills/chemical_bomb.lua
12
1125
--------------------------------------------- -- Chemical_Bomb -- -- Description: slow + elegy --------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/settings") require("scripts/globals/status") --------------------------------------------- function onMobSkillC...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Port_Windurst/npcs/Hohbiba-Mubiba.lua
12
1078
----------------------------------- -- Area: Port Windurst -- NPC: Hohbiba-Mubiba -- Standard Merchant NPC ----------------------------------- local ID = require("scripts/zones/Port_Windurst/IDs") require("scripts/globals/shop") function onTrade(player,npc,trade) end function onTrigger(player,npc) local stock = ...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/abilities/pets/judgment_bolt.lua
11
1212
--------------------------------------------------- -- Judgment Bolt --------------------------------------------------- require("/scripts/globals/settings") require("/scripts/globals/status") require("/scripts/globals/monstertpmoves") require("/scripts/globals/magic") -------------------------------------------------...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/spells/bluemagic/sub-zero_smash.lua
8
1815
----------------------------------------- -- Spell: Sub-zero Smash -- Additional Effect: Paralysis. Damage varies with TP -- Spell cost: 44 MP -- Monster Type: Aquans -- Spell Type: Physical (Blunt) -- Blue Magic Points: 4 -- Stat Bonus: HP+10 VIT+3 -- Level: 72 -- Casting Time: 1 second -- Recast Time: 30 seconds -- S...
gpl-3.0
Dingf/Icewrack
game/dota_addons/icewrack/scripts/vscripts/maps/map101.lua
1
1459
--[[ Map 101 - Expedition Base Camp ]] require("maps/transition") require("game_states") if CIcewrackMap1_01 == nil then CIcewrackMap1_01 = class({}) end function Precache(context) PrecacheResource("particle", "particles/rain_fx/econ_snow_heavy.vpcf", context) end function Activate() CIcewrackMap1_01:InitMap() ...
mit
simoncozens/lunamark
lunamark/writer/docbook.lua
4
4326
-- (c) 2009-2011 John MacFarlane. Released under MIT license. -- See the file LICENSE in the source for details. --- DocBook writer for lunamark. -- Extends [lunamark.writer.xml]. local M = {} local xml = require("lunamark.writer.xml") local util = require("lunamark.util") --- Returns a new DocBook writer. -- For a...
mit
dacrybabysuck/darkstar
scripts/zones/Crawlers_Nest_[S]/IDs.lua
9
1081
----------------------------------- -- Area: Crawlers_Nest_[S] ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.CRAWLERS_NEST_S] = { text = { ITEM_CANNOT_BE_OBTAINED = 6904, -- You cannot obtain the <item>. Come ...
gpl-3.0
tung/doomrl
bin/godmode.lua
1
9562
-- ---------------------------------------------------------------------- -- This is the DoomRL initialization file. Modify at your own risk :). -- If you mess up something overwrite with a new godmode.lua. -- ---------------------------------------------------------------------- dofile "core/commands.lua" dofile "...
gpl-2.0
ArIaNDeVeLoPeR/IDsearcher
plugins/stats.lua
2
4688
plugins/stats.lua -- Saves the number of messages from a user -- Can check the number of messages with !stats do local NUM_MSG_MAX = 5 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 th...
gpl-2.0
dacrybabysuck/darkstar
scripts/zones/Southern_San_dOria/npcs/Aveline.lua
11
1242
----------------------------------- -- Area: Southern San d'Oria -- NPC: Aveline -- Standard Merchant NPC -- !pos -139 -6 46 230 ----------------------------------- local ID = require("scripts/zones/Southern_San_dOria/IDs") require("scripts/globals/npc_util") require("scripts/globals/quests") require("scripts/globals/...
gpl-3.0
dkogan/notion.xfttest
ioncore/ioncore_winprops.lua
6
3337
-- -- ion/share/ioncore_winprops.lua -- -- Copyright (c) Tuomo Valkonen 2004-2009. -- -- See the included file LICENSE for details. -- local ioncore=_G.ioncore local winprops={} local function ifnil(...) local arg={...} local n=#arg local function nxt(_, i) local j=i+1 if i==n then ...
lgpl-2.1
shultays/bloodworks
game/resources/guns/railgun/railgun.lua
1
1811
function Railgun.init(gun) gun.spreadAngle = 0.0 gun.crosshairDistance = 350.0 ShootTimer.initGun(gun, 0.85) SpreadHelper.initGun(gun) gun.data.maxSpread = 0.05 gun.data.spreadDecreaseStartTime = 0.35 gun.data.spreadDecreaseSpeed = 0.40 gun.data.spreadIncreasePerShoot = 0.03 gu...
gpl-3.0
turingbot/B1
plugins/info.lua
1
8151
local Solid = 151499613 local function setrank(msg, user_id, value,chat_id) local hash = nil hash = 'rank:'..msg.to.id..':variables' if hash then redis:hset(hash, user_id, value) return tdcli.sendMessage(chat_id, '', 0, '_set_ *Rank* _for_ *[ '..user_id..' ]* _To :_ *'..value..'*', 0, "md") ...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Periqia/instances/seagull_grounded.lua
12
4157
----------------------------------- -- -- Assault: Seagull Grounded -- ----------------------------------- local ID = require("scripts/zones/Periqia/IDs") ----------------------------------- function afterInstanceRegister(player) local instance = player:getInstance(); player:messageSpecial(ID.text.ASSAULT_31_S...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Northern_San_dOria/npcs/Eugballion.lua
11
1092
----------------------------------- -- Area: Northern San d'Oria -- NPC: Eugballion -- Only sells when San d'Oria controlls Qufim Region ----------------------------------- local ID = require("scripts/zones/Northern_San_dOria/IDs") require("scripts/globals/npc_util") require("scripts/globals/conquest") require("script...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Windurst_Waters/npcs/Yuli_Yaam.lua
11
1261
----------------------------------- -- Area: Windurst Waters -- NPC: Yuli Yaam -- Involved In Quest: Wondering Minstrel -- !pos -61 -4 23 238 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require("scripts/globals/quests"); require("scripts/globals/titles"...
gpl-3.0
OpenMusicKontrollers/Tjost
examples/tcp.lua
1
1139
#!/usr/bin/env tjost --[[ * Copyright (c) 2015 Hanspeter Portner (dev@open-music-kontrollers.ch) * * This is free software: you can redistribute it and/or modify * it under the terms of the Artistic License 2.0 as published by * The Perl Foundation. * * This source is distributed in the hope that it will be use...
artistic-2.0
extreme01/extreme
plugins/admin.lua
46
6101
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(receiver, '...
gpl-2.0
CCAAHH/pm
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
gpedro/otclient
modules/client_stats/stats.lua
7
4012
UUID = nil HOST = 'otclient.herokuapp.com' PORT = 80 FIRST_REPORT_DELAY = 15 REPORT_DELAY = 60 sendReportEvent = nil firstReportEvent = nil function initUUID() UUID = g_settings.getString('report-uuid') if not UUID or #UUID ~= 36 then UUID = g_crypt.genUUID() g_settings.set('report-uuid', UUID) end end ...
mit
kikito/Algorithm-Implementations
Boyer_Moore_Horspool/Lua/Yonaba/bmh_test.lua
27
1111
-- Tests for bmh.lua local bmh = require 'bmh' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total = total + 1 local ok, err = pcall(f) if ok then pass = pass + 1 end local status = ok and 'PA...
mit
dacrybabysuck/darkstar
scripts/globals/spells/knights_minne_iii.lua
10
1505
----------------------------------------- -- Spell: Knight's Minne III -- Grants Defense bonus to all allies. ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return...
gpl-3.0
KittyCookie/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
gpedro/otclient
modules/corelib/ui/uiscrollbar.lua
7
8098
-- @docclass UIScrollBar = extends(UIWidget, "UIScrollBar") -- private functions local function calcValues(self) local slider = self:getChildById('sliderButton') local decrementButton = self:getChildById('decrementButton') local incrementButton = self:getChildById('incrementButton') local pxrange, center if...
mit
pSyChOoOo/TeleSeed
.luarocks/lib/luarocks/rocks/luasocket/3.0rc1-2/test/smtptest.lua
44
5376
local sent = {} local from = "diego@localhost" local server = "localhost" local rcpt = "luasocket@localhost" local files = { "/var/spool/mail/luasocket", "/var/spool/mail/luasock1", "/var/spool/mail/luasock2", "/var/spool/mail/luasock3", } local t = socket.time() local err dofile("mbox.lua") local p...
gpl-2.0
dacrybabysuck/darkstar
scripts/zones/FeiYin/npcs/Underground_Pool.lua
9
1702
----------------------------------- -- Area: FeiYin -- NPC: Underground Pool -- Involved In Quest: Scattered into Shadow -- Offset 0 (H-5) !pos 7 0 247 204 -- Offset 1 (F-5) !pos -168 0 247 204 -- Offset 2 (H-8) !pos 7 0 32 204 ----------------------------------- local ID = require("scripts/zones/FeiYin/IDs") require(...
gpl-3.0
avrem/ardupilot
libraries/AP_Scripting/tests/strings.lua
26
13753
-- $Id: strings.lua,v 1.86 2016/11/07 13:11:28 roberto Exp roberto $ --[[ ***************************************************************************** * Copyright (C) 1994-2016 Lua.org, PUC-Rio. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated document...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/items/plate_of_squid_sushi.lua
11
1515
----------------------------------------- -- ID: 5148 -- Item: plate_of_squid_sushi -- Food Effect: 30Min, All Races ----------------------------------------- -- Health 30 -- Dexterity 6 -- Agility 5 -- Mind -1 -- Accuracy % 15 -- Ranged ACC % 15 -- Sleep Resist 1 ----------------------------------------- require("scri...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/spells/tornado_ii.lua
6
1270
----------------------------------------- -- Spell: Tornado II -- Deals wind damage to an enemy and lowers its resistance against ice. ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") ----------------------------------------- function onMagicCastingCheck(cast...
gpl-3.0
Flatlander57/TheImaginedOTClient
init.lua
1
1784
-- this is the first file executed when the application starts -- we have to load the first modules form here -- setup logger g_logger.setLogFile(g_resources.getWorkDir() .. g_app.getCompactName() .. ".log") g_logger.info(os.date("== application started at %b %d %Y %X")) -- print first terminal message g_logger.info(...
mit
dacrybabysuck/darkstar
scripts/zones/Waughroon_Shrine/bcnms/hills_are_alive.lua
9
1072
----------------------------------- -- The Hills are Alive -- Waughroon Shrine KSNM99, Themis Orb -- !additem 1553 ----------------------------------- require("scripts/globals/battlefield") ----------------------------------- function onBattlefieldInitialise(battlefield) battlefield:setLocalVar("loot", 1) end fun...
gpl-3.0
baishancloud/lua-acid
lib/acid/chash.lua
1
11736
local strutil = require('acid.strutil') local tableutil = require('acid.tableutil') local time = require('acid.time') local to_str = strutil.to_str local NR_BUCKET = math.pow(2, 32) local _M = {} local _mt = {__index = _M} local function compare_position(point1, point2) if point1.position < point2.position the...
mit
arsjac/DotaClassic
game/dota_addons/dotaclassic/scripts/vscripts/item_lavabuster.lua
1
1191
--adapted by arsjac from original code by: --[[ ============================================================================================================ Author: Rook Date: January 26, 2015 Called when Dagon is cast. Damages the target. Additional parameters: keys.Damage ========================================...
gpl-3.0
fiskio/dp
propagator/optimizer.lua
2
2340
------------------------------------------------------------------------ --[[ Optimizer ]]-- -- Propagator subclass -- Trains a model using a sampling distribution. ------------------------------------------------------------------------ local Optimizer, parent = torch.class("dp.Optimizer", "dp.Propagator") Optimizer.i...
bsd-3-clause
dacrybabysuck/darkstar
scripts/zones/Lower_Jeuno/npcs/Derrick.lua
9
4176
----------------------------------- -- Area: Lower Jeuno -- NPC: Derrick -- Involved in Quests and finish : Save the Clock Tower -- !pos -32 -1 -7 245 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/titles"); require("scripts/globals/keyitems"); require("scripts/global...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/mobskills/hiden_sokyaku.lua
11
1054
--------------------------------------------- -- Hiden Sokyaku -- -- Description: Deals damage to a single target. Additional effect: Stun -- Type: Physical -- Utsusemi/Blink absorb: 1 shadow -- Range: Melee -- Notes: Stun may or may not take dsp.effect. --------------------------------------------- require("scripts/gl...
gpl-3.0
pSyChOoOo/TeleSeed
.luarocks/share/lua/5.2/lub/Param.lua
3
9094
--[[------------------------------------------------------ # Parameter save and restore This class acts as a proxy around lua tables allowing paramter save and recall. --]]------------------------------------------------------ local lub = require 'lub' local yaml = require 'yaml' -- We keep table keys sorted...
gpl-2.0
dacrybabysuck/darkstar
scripts/globals/items/breath_mantle.lua
12
1072
----------------------------------------- -- ID: 15486 -- Item: Breath Mantle -- Item Effect: HP+18 / Enmity+3 ----------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") ----------------------------------------- function onItemCheck(target) local effect = targe...
gpl-3.0
baishancloud/lua-acid
lib/acid/chash_conf.lua
1
1980
local acid_chash = require("acid.chash") local ngx_timer = require("acid.ngx_timer") local semaphore = require("ngx.semaphore") local _M = { _VERSION = "0.1" } local mt = { __index = _M } local servers_expires_seconds = 600 local servers_updates_seconds = 300 function _M.update_chash(self) local conf = self.conf...
mit
dacrybabysuck/darkstar
scripts/zones/Kazham-Jeuno_Airship/npcs/Oslam.lua
12
1848
----------------------------------- -- Area: Kazham-Jeuno Airship -- NPC: Oslam -- Standard Info NPC ----------------------------------- local ID = require("scripts/zones/Kazham-Jeuno_Airship/IDs"); ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) local ...
gpl-3.0
dormantor/ofxCogEngine
COGengine/data/COGAssets/Scripts/json.lua
1
59884
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2017 Jeffrey Friedl -- http://regex.info/blog/ -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses/by...
mit
aboshosho/aboshosho
plugins/time.lua
3
2836
--[[ $ :) -- - ( #ابو_شهوده ) - -- $ :) -- - ( @abo_shosho98 ) - -- $ :) --Channel-( @aboaloshbot )-- $ :) ]]-- api_key = nil base_api = "https://maps.googleapis.com/maps/api" dateFormat = "%A %d %B - %H:%M:%S" -- Need the utc time for the google api function utctime() return os.time(os.date("!*t")) ...
agpl-3.0
mosy210/shadow-bot
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
shayanchabok007/antispam_yogob
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
hussian1997/hk-_bot
plugins/azan.lua
8
3829
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY(@AHMED_ALOBIDE) ▀▄ ▄▀ ▀▄ ▄▀ BY(@hussian_9) ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ (ملف الاذان انكلش) ▀▄ ▄▀...
gpl-2.0
Flatlander57/TheImaginedOTClient
tools/lua-binding-generator/generate_lua_bindings.lua
11
6792
#!/usr/bin/lua -- parse options if #arg == 0 then print('usage: ' .. arg[0] .. ' <headers> [--doc]') os.exit(1) end gendoc = false for i=1,#arg do if arg[i] == '--doc' then table.remove(arg, i) gendoc = true break end end if #arg == 0 then print('Specify a file.') os.exit(1) end -- string ut...
mit
arsjac/DotaClassic
game/dota_addons/dotaclassic/scripts/vscripts/whirlwind.lua
1
1066
--adapted by arsjac from original code by MNoya function BladestormDamage(event) local caster = event.caster local ability = event.ability local damage = ability:GetAbilityDamage() * ability:GetSpecialValueFor("bladestorm_damage_tick") local radius = ability:GetSpecialValueFor("bladestorm_radius") l...
gpl-3.0
Flatlander57/TheImaginedOTClient
modules/corelib/const.lua
11
6266
-- @docconsts @{ AnchorNone = 0 AnchorTop = 1 AnchorBottom = 2 AnchorLeft = 3 AnchorRight = 4 AnchorVerticalCenter = 5 AnchorHorizontalCenter = 6 LogDebug = 0 LogInfo = 1 LogWarning = 2 LogError = 3 LogFatal = 4 MouseFocusReason = 0 KeyboardFocusReason = 1 ActiveFocusReason = 2 OtherFocusReason = 3 AutoFocusNone = ...
mit
Dingf/Icewrack
game/dota_addons/icewrack/scripts/vscripts/abilities/dragon_knight/modifier_iw_dragon_knight_razorscales.lua
1
2006
modifier_iw_dragon_knight_razorscales = class({}) function modifier_iw_dragon_knight_razorscales:DeclareExtEvents() local funcs = { [IW_MODIFIER_EVENT_ON_TAKE_ATTACK_DAMAGE] = 1, } return funcs end function modifier_iw_dragon_knight_razorscales:RecalculateArmorValue() local hEntity = self:GetParent() local hA...
mit
akbooer/openLuup
openLuup/whisper.lua
1
31441
local ABOUT = { NAME = "openLuup.whisper", VERSION = "2022.11.05", DESCRIPTION = "openLuup Whisper time-series databasa", AUTHOR = "@akbooer", COPYRIGHT = "(c) 2013-2012 AKBooer", DOCUMENTATION = "http://graphite.readthedocs.io/en/latest/whisper.html", DEBUG = false, ...
apache-2.0
dacrybabysuck/darkstar
scripts/commands/hp.lua
22
1359
--------------------------------------------------------------------------------------------------- -- func: hp <amount> <player> -- desc: Sets the GM or target players health. --------------------------------------------------------------------------------------------------- cmdprops = { permission = 1, param...
gpl-3.0
willswang/vlc
share/lua/playlist/pluzz.lua
105
3740
--[[ $Id$ Copyright © 2011 VideoLAN Authors: Ludovic Fauvet <etix at l0cal dot com> 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 l...
gpl-2.0
dkogan/notion.xfttest
contrib/scripts/autoprop.lua
6
1785
-- Authors: pinko, Etan Reisner <deryni@gmail.com> -- License: Unknown -- Last Changed: Unknown -- -- Automatically create a winprop for the WClientWin given. -- Basic functionality by pinko -- Extended by Etan Reisner <deryni@gmail.com> --defbindings("WFrame", { ---- add winprop permanentlu -- kpress(META.."W", "a...
lgpl-2.1
dacrybabysuck/darkstar
scripts/globals/items/plate_of_fish_and_chips.lua
11
1255
----------------------------------------- -- ID: 5145 -- Item: plate_of_fish_and_chips -- Food Effect: 180Min, All Races ----------------------------------------- -- Dexterity 3 -- Vitality 3 -- Mind -3 -- defense 5 -- Ranged ATT % 7 -- Ranged ATT Cap 10 ----------------------------------------- require("scripts/global...
gpl-3.0
ralucah/splay-daemon-lua5.2
modules/splay/json.lua
1
2331
--[[ Splay ### v1.2 ### Copyright 2006-2011 http://www.splay-project.org ]] --[[ This file is part of Splay. Splay 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 L...
gpl-3.0
cmingjian/skynet
lualib/skynet/db/redis/crc16.lua
30
2687
--/* -- This is the CRC16 algorithm used by Redis Cluster to hash keys. -- Implementation according to CCITT standards. -- -- This is actually the XMODEM CRC 16 algorithm, using the -- following parameters: -- -- Name : "XMODEM", also known as "ZMODEM", "CRC-16/ACORN" -- Width ...
mit
skogler/GearHelper
libs/Ace3.lua
4
2786
-- This file is only there in standalone Ace3 and provides handy dev tool stuff I guess -- for now only /rl to reload your UI :) -- note the complete overkill use of AceAddon and console, ain't it cool? -- GLOBALS: next, loadstring, ReloadUI, geterrorhandler -- GLOBALS: BINDING_HEADER_ACE3, BINDING_NAME_RELOADU...
mit
dacrybabysuck/darkstar
scripts/zones/Davoi/npcs/Quemaricond.lua
9
1387
----------------------------------- -- Area: Davoi -- NPC: Quemaricond -- Involved in Mission: Infiltrate Davoi -- !pos 23 0.1 -23 149 ----------------------------------- require("scripts/globals/missions"); require("scripts/globals/keyitems"); local ID = require("scripts/zones/Davoi/IDs"); require("scripts/globals/pa...
gpl-3.0
ovh/overthebox-feeds
luci-base/luasrc/model/uci.lua
49
4995
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local os = require "os" local uci = require "uci" local util = require "luci.util" local table = require "table" local setmetatable, rawget, rawset = setmetatable, rawget, rawset local require, getmetata...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/items/humpty_dumpty_effigy.lua
11
1096
----------------------------------------- -- ID: 5683 -- Item: humpty_dumpty_effigy -- Food Effect: 3 hours, All Races ----------------------------------------- -- Max HP % 6 (cap 160) -- Max MP % 6 (cap 160) ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ----...
gpl-3.0
andeandr100/Crumbled-World
Lua/Projectile/Spear.lua
1
6162
require("NPC/deathManager.lua") require("NPC/state.lua") require("Game/particleEffect.lua") require("Game/targetSelector.lua") --this = SceneNode() Spear = {name="Spear"} function Spear.new() local self = {} local attacked = {} local sparkCenter local pointLight local speed = 8.0 local range = 1.25 ...
mit
keviner2004/shoot-em-up
apiHelper.lua
1
5356
local gameConfig = require("gameConfig") local logger = require("logger") local TAG = "API Helper" local helper = {} local json = require("json") local ADD_RECORD_URL = gameConfig.rankServerUrl.."/zzrank/api/record" local LEADERBOARD_URL = gameConfig.rankServerUrl.."/zzrank/api/leaderboard" local PLAYLOG_URL = gameConf...
mit
andeandr100/Crumbled-World
Lua/Projectile/fireStorm.lua
1
3437
require("NPC/state.lua") require("Game/particleEffect.lua") --this = SceneNode() FireStorm = {} function FireStorm.new(pNode) local self = {} local node = pNode local fireStorm1 = ParticleSystem( ParticleEffect.fireStormFlame ) local fireStorm2 = ParticleSystem( ParticleEffect.fireStormSparks ) local fi...
mit
Squ34k3rZ/SamsBday
cocos2d/external/lua/luajit/src/src/jit/bc.lua
78
5606
---------------------------------------------------------------------------- -- LuaJIT bytecode listing module. -- -- Copyright (C) 2005-2013 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -...
mit
dacrybabysuck/darkstar
scripts/globals/mobskills/chains_of_envy.lua
12
1259
--------------------------------------------- -- Chains of Envy -- --------------------------------------------- local ID = require("scripts/zones/Empyreal_Paradox/IDs") require("scripts/globals/monstertpmoves") require("scripts/globals/keyitems") require("scripts/globals/settings") require("scripts/globals/status") re...
gpl-3.0
dcourtois/premake-core
modules/xcode/tests/test_xcode4_project.lua
7
2776
--- -- tests/actions/xcode/test_xcode4_project.lua -- Automated test suite for Xcode project generation. -- Copyright (c) 2011-2015 Jason Perkins and the Premake project --- local suite = test.declare("xcode4_proj") local p = premake local xcode = p.modules.xcode -------------------------------------------------...
bsd-3-clause
nimaghorbani/dozdi1
plugins/stats.lua
458
4098
-- Saves the number of messages from a user -- Can check the number of messages with !stats do local NUM_MSG_MAX = 5 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....
gpl-2.0
xq262144/hue
tools/wrk-scripts/lib/cookie.lua
22
2724
-- The MIT License (MIT) -- -- Copyright (c) 2014 Cyril David <cyx@cyx.is> -- -- 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...
apache-2.0
dacrybabysuck/darkstar
scripts/globals/spells/valor_minuet_iii.lua
10
1567
----------------------------------------- -- Spell: Valor Minuet III -- Grants Attack bonus to all allies. ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0 ...
gpl-3.0
arsjac/DotaClassic
game/dota_addons/dotaclassic/scripts/vscripts/paralyshock.lua
1
2726
--adapted by arsjac from original code by: --[[ ============================================================================================================ Author: wFX, based on Noya/Rook code. ================================================================================================================= ]] fu...
gpl-3.0
JFonS/Cult
lib/beholder.lua
8
4868
-- beholder.lua - v2.1.1 (2011-11) -- Copyright (c) 2011 Enrique García Cota -- 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,...
gpl-3.0
NielsH/FindYourHealers
Libs/GeminiAddon/GeminiAddon.lua
5
25272
--- GeminiAddon-1.1 -- Formerly DaiAddon -- Inspired by AceAddon -- Modules and packages embeds are based heavily on AceAddon's functionally, so credit goes their authors. -- -- Allows the addon to have modules -- Allows for packages to be embedded (if supported) into the addon and it's modules -- -- The core callbacks...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/abilities/fighters_roll.lua
12
2893
----------------------------------- -- Ability: Fighter's Roll -- Improves "Double Attack" rate for party members within area of effect -- Optimal Job: Warrior -- Lucky Number: 5 -- Unlucky Number: 9 -- Level: 49 -- Phantom Roll +1 Value: 1 -- -- Die Roll |No WAR |With WAR -- -------- -------- ----------- -- 1 ...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/spells/doton_san.lua
12
1346
----------------------------------------- -- Spell: Doton: San -- Deals earth damage to an enemy and lowers its resistance against wind. ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") function onMagicCastingCheck(caster,target,spell) return 0 end func...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/QuBia_Arena/bcnms/die_by_the_sword.lua
9
1062
----------------------------------- -- Die by the Sword -- Qu'Bia Arena BCNM30, Sky Orb -- !additem 1552 ----------------------------------- require("scripts/globals/battlefield") ----------------------------------- function onBattlefieldInitialise(battlefield) battlefield:setLocalVar("loot", 1) end function onBa...
gpl-3.0
hjelmeland/luacrc32
pureLua/crc32lua.lua
3
6118
--[[ LUA MODULE digest.crc32 - CRC-32 checksum implemented entirely in Lua. SYNOPSIS local CRC = require 'digest.crc32lua' print(CRC.crc32 'test') --> 0xD87F7E0C or -662733300 assert(CRC.crc32('st', CRC.crc32('te')) == CRC.crc32 'test') DESCRIPTION This can be used to compute CRC-32 checksums on st...
mit
dacrybabysuck/darkstar
scripts/globals/spells/bluemagic/corrosive_ooze.lua
12
1952
----------------------------------------- -- Spell: Corrosive Ooze -- Deals water damage to an enemy. Additional Effect: Attack Down and Defense Down -- Spell cost: 55 MP -- Monster Type: Amorphs -- Spell Type: Magical (Water) -- Blue Magic Points: 4 -- Stat Bonus: HP-10 MP+10 -- Level: 66 -- Casting Time: 5 seconds --...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Port_Windurst/npcs/Ohruru.lua
9
4583
----------------------------------- -- Area: Port Windurst -- NPC: Ohruru -- Starts & Finishes Repeatable Quest: Catch me if you can -- Involved in Quest: Wonder Wands -- Note: Animation for his "Cure" is not functioning. Unable to capture option 1, so if the user says no, he heals them anyways. -- !pos -108 -5 94 240...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Grand_Palace_of_HuXzoi/mobs/Ixaern_MNK.lua
9
2302
----------------------------------- -- Area: Grand Palace of HuXzoi -- Mob: Ix'aern MNK ----------------------------------- local ID = require("scripts/zones/Grand_Palace_of_HuXzoi/IDs"); require("scripts/globals/settings"); require("scripts/globals/status"); ----------------------------------- function onMobSpawn(mo...
gpl-3.0
xpol/luacheck
src/luacheck/stages/detect_unreachable_code.lua
3
1106
local stage = {} stage.warnings = { ["511"] = {message_format = "unreachable code", fields = {}}, ["512"] = {message_format = "loop is executed at most once", fields = {}} } local function noop_callback() end local function detect_unreachable_code(chstate, line) local reachable_indexes = {} -- Mark all ...
mit
dacrybabysuck/darkstar
scripts/zones/Windurst_Woods/npcs/Bopa_Greso.lua
9
1153
----------------------------------- -- Area: Windurst Woods -- NPC: Bopa Greso -- Type: Standard NPC -- !pos 59.773 -6.249 216.766 241 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- require("scripts/globals/quests") ----------------------------------- function onTra...
gpl-3.0
TheAncientGoat/cCCommunity-L-VE-Project-Base
states/game.lua
1
4238
Gamestate.game = Gamestate.new() local state = Gamestate.game blockStore = {} --keeps inactive blocks activeShape = {} --keeps active (moving) blocks activePos = {} --keeps position of active block controlls = {} --table of controls angle = 0 --remnant of stupid rotation difficulty = 0.1 --smooth falling, better way t...
mit
dkogan/notion.xfttest
ioncore/ioncore_bindings.lua
6
7492
-- -- ion/share/ioncore-bindings.lua -- -- Copyright (c) Tuomo Valkonen 2004-2009. -- -- See the included file LICENSE for details. -- local ioncore=_G.ioncore local warn=ioncore.warn local compiled2str=setmetatable({}, {__mode="k"}) --DOC -- Compile string \var{cmd} into a bindable function. Within \var{cmd}, the...
lgpl-2.1