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
varunparkhe/Algorithm-Implementations
Newton_Raphson/Lua/Yonaba/newtonraphson_test.lua
26
1041
-- Tests for derivative.lua local nrsolver = require 'newtonraphson' 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 e...
mit
wizardbottttt/powerplus
plugins/spamgroup.lua
96
28863
do function run(msg, matches) return " Group have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hack...
gpl-2.0
dcourtois/premake-core
modules/gmake/tests/workspace/test_config_maps.lua
12
1377
-- -- tests/actions/make/test_config_maps.lua -- Validate handling of configuration maps in makefiles. -- Copyright (c) 2012 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("make_config_maps") local make = p.make -- -- Setup/teardown -- local wks, prj function suite.setup...
bsd-3-clause
dacrybabysuck/darkstar
scripts/globals/mobskills/condemnation.lua
11
1073
--------------------------------------------------- -- Condemnation -- Deals damage in a threefold attack to enemies within a fan-shaped area of effect. --------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/settings") require("scripts/globals/status") ---------...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/mobskills/pl_tidal_slash.lua
11
1158
--------------------------------------------- -- Tidal Slash -- -- Description: Deals Water damage in a threefold -- attack to targets in a fan-shaped area of effect. -- Type: Physical? -- Utsusemi/Blink absorb: 2-3 shadows -- Range: Melee? -- Notes: Used only by Merrows equipped with a spear. -- If they lost their spe...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Southern_San_dOria_[S]/npcs/Louxiard.lua
9
1999
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Louxiard -- !pos -93 -4 49 80 ----------------------------------- require("scripts/globals/quests"); ----------------------------------- function onTrade(player,npc,trade) if (player:getQuestStatus(CRYSTAL_WAR,dsp.quest.id.crystalWar.GIFTS...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Qulun_Dome/npcs/Magicite.lua
9
1294
----------------------------------- -- Area: Qulun Dome -- NPC: Magicite -- Involved in Mission: Magicite -- !pos 11 25 -81 148 ----------------------------------- require("scripts/globals/keyitems") local ID = require("scripts/zones/Qulun_Dome/IDs") ----------------------------------- function onTrade(player,npc,tra...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Door_Acolyte_Hostel_down.lua
10
1974
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Door Acolyte Hostel -- Type: Quest NPC -- !pos 124.000,-3.000,222.215 94 ----------------------------------- local ID = require("scripts/zones/Windurst_Waters_[S]/IDs") require("scripts/globals/keyitems") require("scripts/globals/missions") requ...
gpl-3.0
vlachoudis/sl4a
lua/json4lua/json/json.lua
20
15751
----------------------------------------------------------------------------- -- JSON4Lua: JSON encoding / decoding support for the Lua language. -- json Module. -- Author: Craig Mason-Jones -- Homepage: http://json.luaforge.net/ -- Version: 0.9.20 -- This module is released under the The GNU General Public Licen...
apache-2.0
hussian1997/hk-_bot
tg/test.lua
210
2571
started = 0 our_id = 0 function vardump(value, depth, key) local linePrefix = "" local spaces = "" if key ~= nil then linePrefix = "["..key.."] = " end if depth == nil then depth = 0 else depth = depth + 1 for i=1, depth do spaces = spaces .. " " end end if type(value) == 'tab...
gpl-2.0
dkogan/notion.xfttest
mod_xrandr/mod_xrandr.lua
4
1077
-- if package.loaded["mod_xrandr"] then return end if not notioncore.load_module("mod_xrandr") then return end local mod_xrandr=_G["mod_xrandr"] assert(mod_xrandr) if not package.loaded["mod_xinerama"] then dopath("mod_xinerama") end function filter(t, predicate) local result = {} for k,v in p...
lgpl-2.1
dkogan/notion.xfttest
contrib/styles/look_awesome_yaarg.lua
4
5383
-- Authors: James Gray <j.gray@ed.ac.uk> -- License: Unknown -- Last Changed: 2006-02-03 -- --[[ look_awesome_yaarg.lua (based on look awesome ) To completely yaargify Ion, the terminal emulator background is recommended to be set to gray25 as does the root window. Transparent frames by default wallpa...
lgpl-2.1
dacrybabysuck/darkstar
scripts/zones/Meriphataud_Mountains_[S]/npcs/Indescript_Markings.lua
9
1037
---------------------------------- -- Area: Meriphataud_Mountains_[S] -- NPC: Indescript Markings -- Type: Quest -- !pos -389 -9 92 97 ----------------------------------- local ID = require("scripts/zones/Meriphataud_Mountains_[S]/IDs") require("scripts/globals/keyitems") ----------------------------------- function ...
gpl-3.0
willswang/vlc
share/lua/sd/jamendo.lua
58
6732
--[[ $Id$ Copyright © 2010 VideoLAN and AUTHORS Authors: Fabio Ritrovato <sephiroth87 at videolan dot org> Rémi Duraffort <ivoire at videolan dot org> 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 So...
gpl-2.0
dacrybabysuck/darkstar
scripts/zones/Balgas_Dais/bcnms/shattering_stars.lua
9
1740
----------------------------------- -- Area: Balga's Dais -- Name: Shattering stars - Maat Fight -- !pos 299 -123 345 146 ----------------------------------- local ID = require("scripts/zones/Balgas_Dais/IDs") require("scripts/globals/battlefield") require("scripts/globals/quests") require("scripts/globals/titles") ---...
gpl-3.0
MrTheSoulz/NerdPack
conditions/azerite.lua
1
1616
local NeP, g = NeP, NeP._G local Azerite = {} local empowered = g.C_AzeriteEmpoweredItem.IsAzeriteEmpoweredItem local selected = g.C_AzeriteEmpoweredItem.IsPowerSelected local tierInfo = g.C_AzeriteEmpoweredItem.GetAllTierInfo local PowerInfo = g.C_AzeriteEmpoweredItem.GetPowerInfo local EquipType = { [1] = "Head", ...
mit
dacrybabysuck/darkstar
scripts/globals/abilities/equanimity.lua
12
1039
----------------------------------- -- Ability: Equanimity -- Your next black magic spell will generate less enmity. -- Obtained: Scholar Level 75 -- Recast Time: Stratagem Charge -- Duration: 1 black magic spell or 60 seconds, whichever occurs first -- -- Level |Charges |Recharge Time per Charge -- ----- -------- ...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/spells/cursna.lua
12
2355
----------------------------------------- -- Spell: Cursna -- Removes curse and bane from target. ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0 end func...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/weaponskills/combo.lua
10
1459
----------------------------------- -- Combo -- Hand-to-Hand weapon skill -- Skill level: 5 -- Delivers a threefold attack. Damage varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Thunder Gorget. -- Aligned with the Thunder Belt. -- Element: None -- Modifiers: STR:20% DEX:20% -- 100%TP 200%TP ...
gpl-3.0
andeandr100/Crumbled-World
Lua/Menu/MainMenu/mapListPanel.lua
1
6086
require("Menu/MainMenu/mainMenuStyle.lua") require("Menu/MainMenu/mapInformation.lua") --this = SceneNode() MapListPanel = {} function MapListPanel.new(panel, changeMapCallback) local self = {} local mapTable = {} local worker local firstButton = nil local curentDirectory = "Map" local mapListPanel lo...
mit
dacrybabysuck/darkstar
scripts/globals/items/behemoth_steak.lua
11
1728
----------------------------------------- -- ID: 6464 -- Item: behemoth_steak -- Food Effect: 180Min, All Races ----------------------------------------- -- HP +40 -- STR +7 -- DEX +7 -- INT -3 -- Attack +23% (cap 160) -- Ranged Attack +23% (cap 160) -- Triple Attack +1% -- Lizard Killer +4 -- hHP +4 ------------------...
gpl-3.0
Dev-TLN/T_L_N
libs/fakeredis.lua
650
40405
local unpack = table.unpack or unpack --- Bit operations local ok,bit if _VERSION == "Lua 5.3" then bit = (load [[ return { band = function(x, y) return x & y end, bor = function(x, y) return x | y end, bxor = function(x, y) return x ~ y end, bnot = function(x) return ~x end, rshift = function(x...
gpl-2.0
dacrybabysuck/darkstar
scripts/commands/promote.lua
22
1862
--------------------------------------------------------------------------------------------------- -- func: promote -- desc: Promotes the player to a new GM level. --------------------------------------------------------------------------------------------------- cmdprops = { permission = 1, parameters = "si"...
gpl-3.0
sdgdsffdsfff/WizRouter
resty/redis_iresty.lua
2
6264
local redis_c = require "resty.redis" local ok, new_tab = pcall(require, "table.new") if not ok or type(new_tab) ~= "function" then new_tab = function (narr, nrec) return {} end end local _M = new_tab(0, 155) _M._VERSION = '0.01' local commands = { "append", "auth", "bgrewriteaof",...
apache-2.0
dacrybabysuck/darkstar
scripts/globals/mobskills/double_kick.lua
11
1061
--------------------------------------------- -- Double Kick -- -- 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("script...
gpl-3.0
fiskio/dp
propagator/experiment.lua
1
9395
------------------------------------------------------------------------ --[[ Experiment ]]-- -- An experiment propagates DataSets through Models. The specifics -- such propagations are handled by Propagators. The propagation of -- a DataSet is called an epoch. At the end of each epoch, a monitoring -- step is perfor...
bsd-3-clause
dacrybabysuck/darkstar
scripts/zones/Mhaura/npcs/Nereus.lua
9
2918
----------------------------------- -- Area: Mhaura -- NPC: Nereus -- Starts and ends repeteable quest A_POTTER_S_PREFERENCE ----------------------------------- local ID = require("scripts/zones/Mhaura/IDs") require("scripts/globals/npc_util") require("scripts/globals/settings") require("scripts/globals/quests") -----...
gpl-3.0
skryabiin/core
engine/lua-core/texture-facet.lua
1
1724
TextureFacet = Facet:new() function TextureFacet:new(entity, o) o = o or {} return self:create(entity, o) end function TextureFacet:getType() return "TextureFacet" end function TextureFacet:isRenderableFacet() return true end function TextureFacet:setTextureName(textureName) self.name = textureName end f...
mit
dylanhart/PONG
main.lua
1
4168
function love.load() config = { psize = 50, poffset = 20, pwidth = 10, pspeed = 200, bspeed = 400, swidth = love.window.getWidth(), sheight = love.window.getHeight() } ball = { x = config.swidth/2, y = config.sheight/2, angle = math.pi } paddles = { a = { y = config.sheight/2, score ...
mit
kikito/Algorithm-Implementations
Levenshtein_distance/Lua/Yonaba/levenshtein.lua
25
1670
-- Levenshtein distance implementation -- See: http://en.wikipedia.org/wiki/Levenshtein_distance -- Iterative matrix-based method -- See: http://en.wikipedia.org/wiki/Levenshtein_distance#Iterative_with_full_matrix -- Return the minimum of three elements local function min(a, b, c) return math.min(math.min(a, b), c)...
mit
vlachoudis/sl4a
lua/luasocket/etc/forward.lua
61
2077
-- load our favourite library local dispatch = require("dispatch") local handler = dispatch.newhandler() -- make sure the user knows how to invoke us if table.getn(arg) < 1 then print("Usage") print(" lua forward.lua <iport:ohost:oport> ...") os.exit(1) end -- function to move data from one socket to t...
apache-2.0
kikito/Algorithm-Implementations
Bubble_Sort/Lua/Yonaba/bubble_sort_test.lua
27
2172
-- Tests for bubble_sort.lua local bubble_sort = require 'bubble_sort' 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 l...
mit
eagle14/kia12
plugins/media.lua
297
1590
do local function run(msg, matches) local receiver = get_receiver(msg) local url = matches[1] local ext = matches[2] local file = download_to_file(url) local cb_extra = {file_path=file} local mime_type = mimetype.get_content_type_no_sub(ext) if ext == 'gif' then print('send_file') send_docum...
gpl-2.0
andreasmcdermott/tiny-world
anim.lua
1
1261
anim = {} function anim:handle(dt) local anims = entitymgr:getEntitiesByComponent(cAnim.name) -- images for i, v in ipairs(anims) do local drw = entitymgr:getComponent(v.uid, cDraw.name) local ani = entitymgr:getComponent(v.uid, cAnim.name) if drw ~= nil and ani ~= nil then ani.time = ani.time + dt i...
mit
hamed9898/xxbot
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 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...
gpl-2.0
dacrybabysuck/darkstar
scripts/globals/mobskills/astral_flow_pet.lua
11
2217
--------------------------------------------- -- Astral Flow -- make existing pet use astral flow skill --------------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") --------------------------------------------- local function petInactive(pet) return pet:has...
gpl-3.0
nicwolff/asterisk-agi-mp3
utils/build-extensions-conf.lua
1
2040
#!/usr/bin/env lua --[[ This utility can be used to generate an extensions.conf file to match an existing extensions.lua file. As an argument it takes the patch of the extensions.lua file to read from, otherwise it uses /etc/asterisk/extensions.lua. This script can also be used to automatically include extensions.lu...
gpl-2.0
gabrielegiannini/torch-rnn-repo
LSTM.lua
13
8765
require 'torch' require 'nn' local layer, parent = torch.class('nn.LSTM', 'nn.Module') --[[ If we add up the sizes of all the tensors for output, gradInput, weights, gradWeights, and temporary buffers, we get that a SequenceLSTM stores this many scalar values: NTD + 6NTH + 8NH + 8H^2 + 8DH + 9H For N = 100, D = 51...
mit
nimaghorbani/dozdi1
plugins/groupmanager.lua
136
11323
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if not is_admin(msg) then return "You're not admin!" end local group_creator = msg.from.print_name create_group_chat (group_cr...
gpl-2.0
Noltari/openwrt-packages
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/bmx6.lua
78
1115
#!/usr/bin/lua local json = require "cjson" local function interpret_suffix(rate) local value = string.sub(rate, 1, -2) local suffix = string.sub(rate, -1) if suffix == "K" then return tonumber(value) * 10^3 end if suffix == "M" then return tonumber(value) * 10^6 end if suffix == "G" then return tonumber(va...
gpl-2.0
geminy/aidear
oss/cegui/cegui-0.8.7/cegui/src/ScriptModules/Lua/support/tolua++bin/lua/module.lua
14
1739
-- tolua: module class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id$ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to provide maintenance, support, updates, -- enhancements, o...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Bhaflau_Thickets/IDs.lua
12
2723
----------------------------------- -- Area: Bhaflau_Thickets ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.BHAFLAU_THICKETS] = { text = { NOTHING_HAPPENS = 119, -- Nothing happens... ITEM_...
gpl-3.0
varunparkhe/Algorithm-Implementations
Bellman_Ford_Search/Lua/Yonaba/bellmanford.lua
26
3025
-- Bellman Ford single source shortest path search algorithm implementation -- See : https://en.wikipedia.org/wiki/Bellman%E2%80%93Ford_algorithm -- Notes : this is a generic implementation of Bellman Ford search algorithm. -- It is devised to be used on waypoint graphs. -- The BellmanFord class expects a handler to b...
mit
fgielow/devenserver
data/actions/scripts/quests/poichest.lua
2
1036
function onUse(player, item, fromPosition, target, toPosition, isHotkey) if item.uid == 5306 then if player:getStorageValue(5310) == -1 then player:sendTextMessage(MESSAGE_INFO_DESCR, "You have found a Arcane Staff.") player:addItem(2453, 1) player:setStorageValue(5310, 1) else pla...
gpl-2.0
avrem/ardupilot
libraries/AP_Scripting/tests/math.lua
26
25303
-- $Id: math.lua,v 1.77 2016/06/23 15:17:20 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 documentati...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/items/dish_of_spaghetti_vongole_rosso_+1.lua
11
1382
----------------------------------------- -- ID: 5198 -- Item: Dish of Spaghetti Vongole Rosso +1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Health % 20 -- Health Cap 95 -- Vitality 2 -- Mind -1 -- Defense % 25 -- Defense Cap 35 -- Store TP 6 ----------------------------------------- ...
gpl-3.0
kikito/Algorithm-Implementations
Counting_Sort/Lua/Yonaba/countsort_test.lua
27
1206
-- Tests for countsort.lua local countsort = require 'countsort' 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
turingbot/B1
plugins/tools.lua
1
55564
local SUDO = 151499613 -- put Your ID here! <=== function exi_files(cpath) local files = {} local pth = cpath for k, v in pairs(scandir(pth)) do table.insert(files, v) end return files end local function file_exi(name, cpath) for k,v in pairs(exi_files(cpath)) do if name == v then ...
gpl-3.0
pSyChOoOo/TeleSeed
.luarocks/share/lua/5.2/luarocks/loader.lua
20
8685
--- A module which installs a Lua package loader that is LuaRocks-aware. -- This loader uses dependency information from the LuaRocks tree to load -- correct versions of modules. It does this by constructing a "context" -- table in the environment, which records which versions of packages were -- used to load previous...
gpl-2.0
dacrybabysuck/darkstar
scripts/zones/Windurst_Waters/Zone.lua
9
2599
----------------------------------- -- -- Zone: Windurst_Waters (238) -- ----------------------------------- local ID = require("scripts/zones/Windurst_Waters/IDs"); require("scripts/globals/events/harvest_festivals"); require("scripts/globals/conquest"); require("scripts/globals/missions"); require("scripts/globals/se...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Halvung/mobs/Wheel_Wamoura.lua
9
1248
----------------------------------- -- Area: Halvung -- Mob: Wheel Wamoura -- TODO: Damage resistances in streched and curled stances. Halting movement during stance change. ----------------------------------- require("scripts/globals/status"); ----------------------------------- function onMobSpawn(mob) mob:setL...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Arrapago_Reef/npcs/Cutter.lua
9
3104
----------------------------------- -- Area: Arrapago Reef -- NPC: Cutter -- The ship for The Black Coffin Battle (TOAU-15) -- !pos -462 -2 -394 54 ----------------------------------- local ID = require("scripts/zones/Arrapago_Reef/IDs") require("scripts/globals/keyitems") require("scripts/globals/missions") ---------...
gpl-3.0
nimaghorbani/dozdi1
bot/utils.lua
356
14963
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
andeandr100/Crumbled-World
Lua/Game/mapInfo.lua
1
6267
require("Game/campaignData.lua") require("Menu/MainMenu/mapInformation.lua") --this = SceneNode() MapInfo = {} function MapInfo.new() local self = {} local FIRSTTIMEVICTORYBONUS = 2 local FIRSTTIMEGAMEMODEVICTORYBONUS = 1 local BASEBONUS = 1 local billboard = false local increasedDifficultyMax = 0.0 local increa...
mit
eagle14/kia12
plugins/vote.lua
615
2128
do local _file_votes = './data/votes.lua' function read_file_votes () local f = io.open(_file_votes, "r+") if f == nil then print ('Created voting file '.._file_votes) serialize_to_file({}, _file_votes) else print ('Values loaded: '.._file_votes) f:close() end return loadfile (_file_votes)()...
gpl-2.0
fiskio/dp
test/test.lua
2
57387
local mytester local dptest = {} function dptest.uid() local uid1 = dp.uniqueID() mytester:asserteq(type(uid1), 'string', 'type(uid1) == string') local uid2 = dp.uniqueID() local uid3 = dp.uniqueID('mynamespace') mytester:assertne(uid1, uid2, 'uid1 ~= uid2') mytester:assertne(uid2, uid3, 'uid2 ~= ui...
bsd-3-clause
dacrybabysuck/darkstar
scripts/zones/Ghelsba_Outpost/npcs/Armoury_Crate.lua
9
8338
----------------------------------- -- Area: Ghelsba_Outpost -- NPC: Armoury Crate -- Ghelsba_Outpost Armoury_Crate ------------------------------------- require("scripts/globals/bcnm") require("scripts/globals/battlefield") ----------------------------------- local loot = { -- BCNM Wings of Fury [34] = {...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/abilities/super_jump.lua
12
1039
----------------------------------- -- Ability: Super Jump -- Performs a super jump. -- Obtained: Dragoon Level 50 -- Recast Time: 3:00 -- Duration: Instant ----------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/pets") require("scripts/globals/...
gpl-3.0
hussian1997/hk-_bot
plugins/ar-badword.lua
8
3422
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY(@AHMED_ALOBIDE) ▀▄ ▄▀ ▀▄ ▄▀ BY(@hussian_9) ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ (ملف منع الكلمات) ▀▄ ▄▀ ...
gpl-2.0
dacrybabysuck/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Animated_Dagger.lua
9
1177
----------------------------------- -- Area: Dynamis - Xarcabard -- Mob: Animated Dagger ----------------------------------- require("scripts/globals/status"); local ID = require("scripts/zones/Dynamis-Xarcabard/IDs"); ----------------------------------- function onMobEngaged(mob,target) if (mob:AnimationSub() =...
gpl-3.0
Teaonly/beginlearning
july/dl_tutorial/simple_lstm/model_utils.lua
11
5151
-- adapted from https://github.com/wojciechz/learning_to_execute -- utilities for combining/flattening parameters in a model -- the code in this script is more general than it needs to be, which is -- why it is kind of a large require 'torch' local model_utils = {} function model_utils.combine_all_parameters(...) ...
mit
dacrybabysuck/darkstar
scripts/globals/mobskills/claw_storm.lua
11
1066
--------------------------------------------- -- Claw Storm -- -- Description: Slashes a single target in a threefold attack. Additional effect: Poison -- Type: Physical -- Utsusemi/Blink absorb: 1 shadow -- Range: Melee -- Notes: --------------------------------------------- require("scripts/globals/settings") r...
gpl-3.0
mc-server/Essentials
functions.lua
2
1414
function GetPlayerLookPos(Player) local World = Player:GetWorld() local Start = Player:GetEyePosition() local End = Start + Player:GetLookVector() * 150 local HitCoords = nil local Callbacks = { OnNextBlock = function(BlockPos, BlockType) if BlockType ~= E_BLOCK_AIR then HitCoords = BlockPos return t...
apache-2.0
dacrybabysuck/darkstar
scripts/globals/items/bowl_of_salt_ramen.lua
11
1642
----------------------------------------- -- ID: 6462 -- Item: bowl_of_salt_ramen -- Food Effect: 30Min, All Races ----------------------------------------- -- DEX +5 -- VIT +5 -- AGI +5 -- Accuracy +5% (cap 90) -- Ranged Accuracy +5% (cap 90) -- Evasion +5% (cap 90) -- Resist Slow +10 ---------------------------------...
gpl-3.0
keviner2004/shoot-em-up
ui/Score.lua
1
1046
local ScaleText = require("ui.ScaleText") local Score = {} Score.new = function() local score = ScaleText.new({ text = "0", x = 0, y = 0, font = "kenvector_future_thin", fontSize = 30 }) score.value = 0 function score:gotScoreAnim() if self.animing then return end ...
mit
fakechris/Atlas
tests/unit/lua/proxy-commands.lua
4
3011
--[[ $%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
dacrybabysuck/darkstar
scripts/globals/weaponskills/blade_jin.lua
10
1462
----------------------------------- -- Blade Jin -- Katana weapon skill -- Skill Level: 200 -- Delivers a three-hit attack. Chance of params.critical varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Breeze Gorget & Thunder Gorget. -- Aligned with the Breeze Belt & Thunder Belt. -- Element: Wind -- M...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Western_Altepa_Desert/npcs/_3h6.lua
11
1262
----------------------------------- -- Area: Western Altepa Desert -- NPC: _3h6 (Topaz Column) -- Notes: Mechanism for Altepa Gate -- !pos -260 10 -344 125 ----------------------------------- local ID = require("scripts/zones/Western_Altepa_Desert/IDs") require("scripts/globals/status") -------------------------------...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Southern_San_dOria/npcs/Varchet.lua
8
2244
----------------------------------- -- Area: Southern San d'Oria -- NPC: Varchet -- !pos 116.484 -1 91.554 230 ----------------------------------- local ID = require("scripts/zones/Southern_San_dOria/IDs") require("scripts/globals/npc_util") require("scripts/globals/quests") ----------------------------------- local ...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Batallia_Downs_[S]/npcs/Thorben.lua
9
2375
----------------------------------- -- Area: Batallia Downs (S) -- NPC: Thorben -- Type: Quest NPC -- !pos 175.346,8.038,-419.244 84 ----------------------------------- require("scripts/globals/keyitems") require("scripts/globals/settings") require("scripts/globals/quests") require("scripts/globals/npc_util") -------...
gpl-3.0
ArIaNDeVeLoPeR/IDsearcher
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 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...
gpl-2.0
eagle14/kia12
plugins/lyrics.lua
695
2113
do local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs' local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5' local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect' local function getInfo(query) print('Getting info of ' .. query) local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY ...
gpl-2.0
sdgdsffdsfff/WizRouter
init.lua
1
1710
-- LOG cjson = require "cjson" function debuglog(...) local log_table = {} for i = 1, select("#", ...) do log_table[i] = select(i, ...) end ngx.log(ngx.ERR, "[WIZROUTER-DEBUG] ", cjson.encode(log_table)) end function ngxlog(...) ngx.log(ngx.ERR, "[WIZROUTER] ", ...) end -- LOG END -- UTI...
apache-2.0
Kelwing/pvpgn
lua/include/table.lua
7
6168
--[[ Copyright (C) 2014 HarpyWar (harpywar@gmail.com) This file is a part of the PvPGN Project http://pvpgn.pro Licensed under the same terms as Lua itself. ]]-- -- Clear table function table.clear(_table) for k in pairs(_table) do _table[k] = nil end end -- Get table size function table.count(T) if not T ...
gpl-2.0
dacrybabysuck/darkstar
scripts/globals/items/elshena.lua
11
1034
----------------------------------------- -- ID: 5886 -- Item: elshena -- Food Effect: 30Min, All Races ----------------------------------------- -- HP +7% (cap 120) -- Increases rate of combat skill gains by 40% ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ...
gpl-3.0
dacrybabysuck/darkstar
scripts/commands/npchere.lua
14
1615
--------------------------------------------------------------------------------------------------- -- func: npchere <npcId> -- desc: Spawns an NPC and then moves it to the current position, if in same zone. -- Errors will despawn the NPC unless "noDepop" was specified (any value works). -------------------------...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Dangruf_Wadi/IDs.lua
9
3577
----------------------------------- -- Area: Dangruf Wadi (191) ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.DANGRUF_WADI] = { text = { CONQUEST_BASE = 0, -- Tallying conquest results... ...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/mobskills/dreadstorm.lua
11
1174
--------------------------------------------- -- Dreadstorm -- -- Description: Deals magical damage in an area of effect. Additional effect: Terror -- Type: Magical -- Wipes Shadows -- Range: 13' radial --------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/sett...
gpl-3.0
andeandr100/Crumbled-World
Lua/Enviromental/islandMeshExporter.lua
1
10555
--this = Island() IslandMeshExporter = {} function IslandMeshExporter.new() local self = {} local navLines local meshTable local listOfAllCombinedMeshes local hidenNodes = {} local meshes local importentMeshes--a list of meshes thats always need to be renderd local minPos local maxPos local d...
mit
martinfelis/ggj15
utils/parsexml.lua
1
1432
--[[ -- taken from http://lua-users.org/wiki/LuaXml --]] local function parseargs(s) local arg = {} string.gsub(s, "([%-%w]+)=([\"'])(.-)%2", function (w, _, a) arg[w] = a end) return arg end local function parse_xml(s) local stack = {} local top = {} table.insert(stack, top) local ni,c,label...
apache-2.0
LuaDist2/lua-jet
src/jet/daemon/radix.lua
3
6129
-- Implements a radix tree for the jet-daemon local pairs = pairs local next = next local tinsert = table.insert local tremove = table.remove local new = function() local j = {} -- the table that holds the radix_tree j.radix_tree = {} -- elments that can be filled by several functions -- and be return...
mit
tung/doomrl
bin/lua/items/eitems.lua
2
28603
function DoomRL.loadexoticitems() -- Item sets -- register_itemset "gothic" { name = "Gothic Arms", trigger = 2, OnEquip = function (self,being) being.flags[ BF_SESSILE ] = true being.armor = being.armor + 4 being:msg( "Suddenly you feel immobilized. You feel like a fortress!" ) end, OnRemo...
gpl-2.0
pSyChOoOo/TeleSeed
plugins/banhammer.lua
1085
11557
local function pre_process(msg) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Checking invited user '..user_id) local banned ...
gpl-2.0
Whit3Tig3R/FuCk3R
plugins/banhammer.lua
1085
11557
local function pre_process(msg) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Checking invited user '..user_id) local banned ...
gpl-2.0
andeandr100/Crumbled-World
Lua/MapEditor/Tools/islandPaintTool.lua
1
6742
require("MapEditor/Tools/Tool.lua") require("MapEditor/menuStyle.lua") require("MapEditor/Tools/circleModel.lua") require("MapEditor/textureSelectionMenu.lua") function destroy() if textureSelectionMenu then textureSelectionMenu.destroy() end end function replaceTexture(textureName) if paintConfig["T...
mit
martinfelis/ggj15
Quickie/init.lua
17
1815
--[[ Copyright (c) 2012 Matthias Richter 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, merge, publish, distribu...
apache-2.0
fakechris/Atlas
examples/tutorial-resultset.lua
40
3110
--[[ $%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
dkogan/notion.xfttest
etc/cfg_notioncore.lua
1
14636
-- -- Notion core configuration file -- -- -- Bindings. This includes global bindings and bindings common to -- screens and all types of frames only. See modules' configuration -- files for other bindings. -- -- WScreen context bindings -- -- The bindings in this context are available all the time. -- -- The vari...
lgpl-2.1
birdbrainswagtrain/grid-sdk
src/shaders/gaussianblur.lua
1
3228
--========= Copyright © 2013-2015, Planimeter, All rights reserved. ==========-- -- -- Purpose: Gaussian Blur pixel shader -- --============================================================================-- --[[ The MIT License (MIT) Copyright (c) 2015 Matthias Richter Permission is hereby granted, free of charge, t...
mit
fgielow/devenserver
data/npc/scripts/tapete mark.lua
2
2383
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) ...
gpl-2.0
dacrybabysuck/darkstar
scripts/globals/items/plate_of_ic_pilav_+1.lua
11
1691
----------------------------------------- -- ID: 5585 -- Item: plate_of_ic_pilav_+1 -- Food Effect: 240Min, All Races ----------------------------------------- -- Health % 14 -- Health Cap 70 -- Strength 5 -- Vitality -2 -- Intelligence -2 -- Health Regen While Healing 1 -- Attack % 22 -- Attack Cap 70 -- Ranged ATT % ...
gpl-3.0
geminy/aidear
oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/third_party/skia/resources/slides_content2.lua
73
3377
Skia Update Skia : Access - https://skia.org - https://skia.googlesource.com/skia Skia : Overview - portable graphics engine - 2D transformations + perspective - primitives: text, geometry, images - effects: shaders, filters, antialiasing, blending Skia : Porting - C++ and some SIMD assembly - Fonts : CoreText, Free...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Southern_San_dOria/npcs/Femitte.lua
9
2758
----------------------------------- -- Area: Southern San d'Oria -- NPC: Femitte -- Involved in Quest: Lure of the Wildcat (San d'Oria), Distant Loyalties -- !pos -17 2 10 230 ------------------------------------- require("scripts/globals/quests"); require("scripts/globals/keyitems"); local ID = require("scripts/zones...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Northern_San_dOria/npcs/Abioleget.lua
9
2118
----------------------------------- -- Area: Northern San d'Oria -- NPC: Abioleget -- Type: Quest Giver (Her Memories: The Faux Pas and The Vicasque's Sermon) / Merchant -- !pos 128.771 0.000 118.538 231 -- ----------------------------------- local ID = require("scripts/zones/Northern_San_dOria/IDs"); require("scripts...
gpl-3.0
pSyChOoOo/TeleSeed
.luarocks/share/lua/5.2/feedparser/XMLElement.lua
569
4025
-- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence. -- updated for module-free world of lua 5.3 on April 2 2015 -- Not documented at all, but not interesting enough to warrant documentation anyway. local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ...
gpl-2.0
dacrybabysuck/darkstar
scripts/commands/adddynatime.lua
9
1519
--------------------------------------------------------------------------------------------------- -- func: adddynatime -- desc: Adds an amount of time to the given target. If no target then to the current player. --------------------------------------------------------------------------------------------------- cmdp...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/King_Ranperres_Tomb/npcs/_5a0.lua
9
2089
----------------------------------- -- Area: King Ranperre's Tomb -- DOOR: _5a0 (Heavy Stone Door) -- !pos -39.000 4.823 20.000 190 ----------------------------------- local ID = require("scripts/zones/King_Ranperres_Tomb/IDs") require("scripts/globals/missions") ----------------------------------- function onTrade(pl...
gpl-3.0
baishancloud/lua-acid
lib/acid/redis_proxy_cli.lua
1
8036
--example, how to use -- local opts = { -- nwr = {3, 2, 2}, -- ak_sk = {'accesskey', 'secret_key'}, -- timeouts = {1, 1, 1}, -- } -- local cli = redis_proxy_cli:new({{ip, port}}, opts) -- -- "retry(another N times) is optional" -- cli:get(key, retry) -- E.g. cli:get('key1') -- E.g. cli:get('key1',...
mit
dacrybabysuck/darkstar
scripts/zones/Riverne-Site_B01/IDs.lua
8
2071
----------------------------------- -- Area: Riverne-Site_B01 ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.RIVERNE_SITE_B01] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Come ...
gpl-3.0
25A0/Quadtastic
Quadtastic/Keybindings.lua
1
2314
-- Each entry is a table with the trigger key in the first element, and a -- list of modifiers in the second element. -- Modifiers that have a left and right equivalent can be specified as -- e.g. "*shift" when it doesn't matter which of the two modifiers was pressed -- Quick reference for modifiers: (from https://love...
mit