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
Ninjistix/darkstar
scripts/zones/North_Gustaberg/npcs/Shigezane_IM.lua
3
2975
----------------------------------- -- Area: North Gustaberg -- NPC: Shigezane, I.M. -- Type: Outpost Conquest Guards -- !pos -584.687 39.107 54.281 106 ------------------------------------- package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil; ------------------------------------- require("scripts/globals/co...
gpl-3.0
Ninjistix/darkstar
scripts/globals/items/bunch_of_wild_pamamas.lua
3
1050
----------------------------------------- -- ID: 4596 -- Item: Bunch of Wild Pamamas -- Food Effect: 30Min, All Races ----------------------------------------- -- Strength -3 -- Intelligence 1 -- Additional Effect with Opo-Opo Crown -- HP 50 -- MP 50 -- CHR 14 -- Additional Effect with Kinkobo or -- Primate Staff -- D...
gpl-3.0
lytedev/ld27
lib/hump/signal.lua
24
2729
--[[ Copyright (c) 2012-2013 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, dis...
apache-2.0
dafei2015/hugular_cstolua
Client/Assets/Lua/core/person_pb.lua
6
3534
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('person_pb') local PERSON = protobuf.Descriptor(); local PERSON_ID_FIELD = protobuf.FieldDescriptor(); local PERSON_NAME_FIELD = protobuf.FieldDescriptor(); local PERSON_EMAIL_FIELD = protobuf.FieldDescriptor(); local PHONE = protob...
mit
Ninjistix/darkstar
scripts/zones/Heavens_Tower/npcs/_6q1.lua
5
1097
----------------------------------- -- Area: Heaven's Tower -- NPC: Starway Stairway -- !pos -10 0.1 30 242 ----------------------------------- package.loaded["scripts/zones/Heavens_Tower/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/Heavens_Tower/Text...
gpl-3.0
DEVll190ll/DEV_HR
plugins/DEV_19.lua
1
1362
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY ADOLF_HITLER (@LL190LL) ▀▄ ▄▀ ▀▄ ▄▀ BY ADOLF_HITLER (@LLSNLL) ▀▄ ▄▀ ▀▄ ▄▀ Broadcasting : اذاعه ▀▄ ▄▀ ▀▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄...
gpl-2.0
imashkan/seedfire
plugins/inrealm.lua
8
25065
-- 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 is_sudo(msg) or is_realm(msg) and is_admin(msg) then local group_creator = msg.from.print_name create_g...
gpl-2.0
trezker/Cumulate
premake4.lua
1
1342
solution ("Cumulate") configurations { "Debug", "Release" } project ("common") kind "StaticLib" language "C++" location "build" files { "common/*.cpp" } targetdir "build/lib" configuration "Debug" defines { "DEBUG" } flags { "Symbols" } configuration "Release" defines { "NDEBUG" } flags...
mit
mandersan/premake-core
src/base/global.lua
21
2163
--- -- global.lua -- The global container holds workspaces and rules. -- Copyright (c) 2014-2015 Jason Perkins and the Premake project --- local p = premake p.global = p.api.container("global") local global = p.global --- -- Create a new global container instance. --- function global.new(name) return p.contai...
bsd-3-clause
dmekersa/create2Dmobilegames
FrameBall - collide/main.lua
1
2844
----------------------------------------------------------------------------------------- -- -- main.lua -- ----------------------------------------------------------------------------------------- -- Your code here physics = require("physics") --physics.setDrawMode( "hybrid" ) physics.start( ) physics.setGravity(0,...
unlicense
codedash64/Urho3D
bin/Data/LuaScripts/38_SceneAndUILoad.lua
26
5306
-- Scene & UI load example. -- This sample demonstrates: -- - Loading a scene from a file and showing it -- - Loading a UI layout from a file and showing it -- - Subscribing to the UI layout's events require "LuaScripts/Utilities/Sample" function Start() -- Execute the common startup for samples ...
mit
mt246/mt24679
plugins/face.lua
641
3073
local https = require("ssl.https") local ltn12 = require "ltn12" -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local mashape = load_from_file('data/mashape.lua', { api_key = '' }) local function request(imageUrl) local api_key = mashape.api_key if api_key:isempt...
gpl-2.0
mandersan/premake-core
modules/codelite/codelite_project.lua
3
14378
-- -- Name: codelite/codelite_project.lua -- Purpose: Generate a CodeLite C/C++ project file. -- Author: Ryan Pusztai -- Modified by: Andrea Zanellato -- Manu Evans -- Tom van Dijck -- Created: 2013/05/06 -- Copyright: (c) 2008-2016 Jason Perkins and the Premake project -...
bsd-3-clause
mandersan/premake-core
modules/vstudio/vs2005_dotnetbase.lua
7
19278
-- -- vs2005_dotnetbase.lua -- Generate a Visual Studio 2005+ .NET project. -- Copyright (c) Jason Perkins and the Premake project -- local p = premake p.vstudio.dotnetbase = {} local vstudio = p.vstudio local dotnetbase = p.vstudio.dotnetbase local project = p.project local config = p.config local fileconfig...
bsd-3-clause
Ninjistix/darkstar
scripts/zones/Xarcabard/npcs/qm5.lua
5
1067
----------------------------------- -- Area: Xarcabard -- NPC: qm5 (???) -- Involved in Quests: Breaking Barriers -- !pos 179 -33 82 112 ----------------------------------- package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Xarcabard/TextIDs"); require("...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Port_San_dOria/npcs/Gournaie.lua
5
1071
----------------------------------- -- Area: Port San d'Oria -- NPC: Gournaie -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Port_San_dOria/TextIDs"); require("scripts/globals/quests"); --...
gpl-3.0
Armin041/antiflood
plugins/stats.lua
236
3989
do -- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_prin...
gpl-2.0
mandersan/premake-core
src/base/http.lua
17
1300
-- -- http.lua -- Additions to the http namespace. -- Copyright (c) 2008-2014 Jason Perkins and the Premake project -- if http == nil then return end --- -- Simple progress bar on stdout for curl downloads. --- function http.reportProgress(total, current) local width = 70 local progress = math.floor(current...
bsd-3-clause
TRex22/hawkthorne-journey
src/nodes/enemies/wipe.lua
1
1856
local Timer = require 'vendor/timer' local sound = require 'vendor/TEsound' return { name = 'wipe', position_offset = { x = 0, y = 0 }, height = 24, width = 24, damage = 2, hp = 3, tokens = 1, tokenTypes = { -- p is probability ceiling and this list should be sorted by it, with the last...
mit
ld-test/dromozoa-http
test/test_oauth.lua
3
2828
-- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com> -- -- This file is part of dromozoa-http. -- -- dromozoa-http 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 -...
gpl-3.0
TurboGit/darktable
tools/lua_doc/old_api/dt_api400.lua
7
250080
API = { ["__text"] = [==[To access the darktable specific functions you must load the darktable environment:<code>darktable = require "darktable"</code>All functions and data are accessed through the darktable module. This documentation for API version 4.0.0.]==], ["__attributes"] = { ["reported_type"] = [==[documentat...
gpl-3.0
dafei2015/hugular_cstolua
Client/tools/luaTools/win/lua/jit/vmdef.lua
56
6676
-- This is a generated file. DO NOT EDIT! module(...) bcnames = "ISLT ISGE ISLE ISGT ISEQV ISNEV ISEQS ISNES ISEQN ISNEN ISEQP ISNEP ISTC ISFC IST ISF MOV NOT UNM LEN ADDVN SUBVN MULVN DIVVN MODVN ADDNV SUBNV MULNV DIVNV MODNV ADDVV SUBVV MULVV DIVVV MODVV POW CAT KSTR KCDATAKSHORTKNUM KPRI K...
mit
Ninjistix/darkstar
scripts/zones/Southern_San_dOria/npcs/Trail_Markings.lua
3
2728
----------------------------------- -- Area: Southern San d'Oria -- NPC: Trail Markings -- Dynamis-San d'Oria Enter -- !pos 139 -2 122 230 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); requi...
gpl-3.0
Ninjistix/darkstar
scripts/globals/abilities/divine_waltz.lua
2
2628
----------------------------------- -- Ability: Divine Waltz -- Heals party members within area of effect. -- Obtained: Dancer Level 25 -- TP Required: 40% -- Recast Time: 00:13 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/msg"); --...
gpl-3.0
karrots/nodemcu-firmware
lua_examples/yet-another-ds18b20.lua
79
1924
------------------------------------------------------------------------------ -- DS18B20 query module -- -- LICENCE: http://opensource.org/licenses/MIT -- Vladimir Dronnikov <dronnikov@gmail.com> -- -- Example: -- dofile("ds18b20.lua").read(4, function(r) for k, v in pairs(r) do print(k, v) end end) ------------------...
mit
dinodeck/ninety_nine_days_of_dev
005_bitmap_text/code/StatusMenuState.lua
4
4163
StatusMenuState = {} StatusMenuState.__index = StatusMenuState function StatusMenuState:Create(parent, world) local layout = Layout:Create() layout:Contract('screen', 118, 40) layout:SplitHorz('screen', "title", "bottom", 0.12, 2) local this = { mParent = parent, mStateMachine = pa...
mit
TEAMvirus/ViRuS
plugins/TextSticker.lua
7
2177
local function run(msg, matches) local text = URL.escape(matches[1]) local color = 'black' if matches[2] == 'red' then color = 'red' elseif matches[2] == 'black' then color = 'black' elseif matches[2] == 'blue' then color = 'blue' elseif matche...
gpl-2.0
Ninjistix/darkstar
scripts/zones/Port_San_dOria/npcs/Pomilla.lua
5
1372
----------------------------------- -- Area: Port San d'Oria -- NPC: Pomilla -- Involved in Quest: Lure of the Wildcat (San d'Oria) -- !pos -38 -4 -55 232 ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Port_Sa...
gpl-3.0
davidbuzz/ardupilot
libraries/AP_Scripting/examples/protected_call.lua
22
1154
-- this shows how to protect against faults in your scripts -- you can wrap your update() call (or any other call) in a pcall() -- which catches errors, allowing you to take an appropriate action -- example main loop function function update() local t = 0.001 * millis():tofloat() gcs:send_text(0, string.format(...
gpl-3.0
otservme/global1051
data/npc/scripts/addons.lua
12
2219
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
area31/telegram-bot
plugins/bugzilla.lua
611
3983
do local BASE_URL = "https://bugzilla.mozilla.org/rest/" local function bugzilla_login() local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password print("accessing " .. url) local res,code = https.request( url ) local data = json:decode(res) return data ...
gpl-2.0
Ninjistix/darkstar
scripts/globals/items/moogle_pie.lua
3
1451
----------------------------------------- -- ID: 5561 -- Item: Moogle Pie -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- HP 20 -- MP 20 -- Strength 1 -- Dexterity 1 -- Vitality 1 -- Agility 1 -- Intelligence 1 -- Mind 1 -- Charisma 1 ----------------------------------------- require("scri...
gpl-3.0
mamad-ali/xilibot
plugins/qr.lua
637
1730
--[[ * qr plugin uses: * - http://goqr.me/api/doc/create-qr-code/ * psykomantis ]] local function get_hex(str) local colors = { red = "f00", blue = "00f", green = "0f0", yellow = "ff0", purple = "f0f", white = "fff", black = "000", gray = "ccc" } for color, value in pairs(colors)...
gpl-2.0
charles-l/LD29
libs/tweener/base.lua
1
6965
local easing = require("libs.tweener.easing") local tostring = tostring -- Valid anim modes, associated with true values for easy validation of -- params. local animModes = { forward = true, backward = true, loopforward = true, loopbackward = true, pingpong = true, } local tweenMeta = { __t...
mit
Ninjistix/darkstar
scripts/zones/Misareaux_Coast/npcs/_0p8.lua
5
1464
----------------------------------- -- Area: Misareaux Coast -- NPC: Iron Gate -- Entrance to Sacrarium ----------------------------------- package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zones/Misareaux_Coast/Tex...
gpl-3.0
Ninjistix/darkstar
scripts/globals/weaponskills/power_slash.lua
25
1730
----------------------------------- -- Power Slash -- Great Sword weapon skill -- Skill level: 30 -- Delivers a single-hit attack. params.crit varies with TP. -- Modifiers: STR:60% ; VIT:60% -- 100%TP 200%TP 300%TP -- 1.0 1.0 1.0 ----------------------------------- require("scripts/globals/status...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Grand_Palace_of_HuXzoi/mobs/Eo_zdei.lua
5
2641
----------------------------------- -- Area: Grand Palace of Hu'Xzoi -- MOB: Eo'Zdei -- Animation Sub 0 Pot Form -- Animation Sub 1 Pot Form (reverse eye position) -- Animation Sub 2 Bar Form -- Animation Sub 3 Ring Form ----------------------------------- require("scripts/zones/Grand_Palace_of_HuXzoi/MobIDs"); requir...
gpl-3.0
EliasOenal/blobby
data/scripts/Union.lua
1
10606
--UNION --27.3.2007 - version 2 --Enormator -- 11.1.12 - insert game-provided physic constants where possible - by ngc92 --Startwerte setzen --set starting values OOSinit=false OSinit=false OGinit=false decision=0 funcs=4 oldtouches=0 oldbspeedx=0 serve=false --Weltkonstanten definieren --define world constants middl...
gpl-2.0
jagu-sayan/42Premake
src/base/cmdline.lua
6
1946
-- -- cmdline.lua -- Functions to define and handle command line actions and options. -- Copyright (c) 2002-2009 Jason Perkins and the Premake project -- -- -- Built-in command line options -- newoption { trigger = "cc", value = "VALUE", description = "Choose a C/C++ compiler set", allowed = { ...
bsd-3-clause
LuaDist2/llui
testy/draw_crtc_lines.lua
2
1625
--[[ Draw on the frame buffer of the current default crtc The way to go about drawing to the current screen, without changing modes is: Create a card From that card, get the first connection that's actually connected to something From there, get the encoder it's using From there, get the crt controller...
mit
eugenesan/openwrt-luci
applications/luci-statistics/luasrc/model/cbi/luci_statistics/email.lua
78
1934
--[[ Luci configuration model for statistics - collectd email plugin configuration (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License...
apache-2.0
xboybigcampishere/Full
plugins/english_lang.lua
1
17386
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
ccyphers/kong
spec/03-plugins/10-acl/03-hooks_spec.lua
2
7380
local helpers = require "spec.helpers" local cache = require "kong.tools.database_cache" describe("Plugin: ACL (hooks)", function() local admin_client, proxy_client local consumer1, acl1 before_each(function() helpers.dao:truncate_tables() consumer1 = assert(helpers.dao.consumers:insert { usernam...
apache-2.0
dinodeck/ninety_nine_days_of_dev
004_stat_numbers/code/Actor.lua
2
7731
Actor = { EquipSlotLabels = { "Weapon:", "Armor:", "Accessory:", "Accessory:" }, EquipSlotId = { "weapon", "armor", "acces1", "acces2" }, ActorStats = { "strength", "speed", "intelligence" }, ...
mit
neofob/sile
lua-libraries/std/object.lua
6
6618
--[[-- Prototype-based objects. This module creates the root prototype object from which every other object is descended. There are no classes as such, rather new objects are created by cloning an existing object, and then changing or adding to the clone. Further objects can then be made by cloning the changed ...
mit
mohammad25253/persianguard12
plugins/invite.lua
26
1071
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) or is_gbanned(result.id) then -- Ignore bans and globall bans send_large_msg(chat, 'User is banned.') else ch...
gpl-2.0
ignacio/Moses
spec/func_spec.lua
5
6745
require 'luacov' local _ = require 'moses' context('Utility functions specs', function() context('identity', function() test('returns the received value',function() assert_equal(_.identity(1),1) local v = {x = 0} assert_equal(_.identity(v),v) assert_not_equal(v,{x = 0}) end)...
mit
DGA-MI-SSI/YaCo
deps/swig-3.0.7/Examples/test-suite/lua/static_const_member_2_runme.lua
6
1033
require("import") -- the import fn import("static_const_member_2") -- import lib scm=static_const_member_2 -- catch "undefined" global variables local env = _ENV -- Lua 5.2 if not env then env = getfenv () end -- Lua 5.1 setmetatable(env, {__index=function (t,i) error("undefined global variable `"..i.."'",2) end}) as...
gpl-3.0
dinodeck/ninety_nine_days_of_dev
002_bitmap_numbers/code/combat_events/CESlash.lua
10
3716
CESlash = {} CESlash.__index = CESlash function CESlash:Create(state, owner, def, targets) local this = { mState = state, mOwner = owner, mDef = def, mFinished = false, mCharacter = state.mActorCharMap[owner], mTargets = targets, mIsFinished = false }...
mit
eugenesan/openwrt-luci
applications/luci-statistics/luasrc/statistics/i18n.lua
69
2405
--[[ Luci statistics - diagram i18n helper (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licen...
apache-2.0
Ninjistix/darkstar
scripts/zones/Valkurm_Dunes/npcs/Medicine_Axe.lua
5
1516
----------------------------------- -- Area: Valkurm Dunes -- NPC: Medicine Axe -- Type: Outpost Vendor -- !pos 144 -7 104 103 ----------------------------------- package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/c...
gpl-3.0
johnsoch/cuberite
Server/Plugins/APIDump/Hooks/OnChunkUnloading.lua
28
1082
return { HOOK_CHUNK_UNLOADING = { CalledWhen = " A chunk is about to be unloaded from the memory. Plugins may refuse the unload.", DefaultFnName = "OnChunkUnloading", -- also used as pagename Desc = [[ Cuberite calls this function when a chunk is about to be unloaded from the memory. A plugin may force ...
apache-2.0
Ninjistix/darkstar
scripts/zones/Upper_Jeuno/npcs/Antonia.lua
4
1415
----------------------------------- -- Area: Upper Jeuno -- NPC: Antonia -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Upper_Jeuno/TextIDs"); ----------------------------------- require(...
gpl-3.0
SHIELDTM/shieldbot
plugins/inrealm.lua
850
25085
-- 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 is_sudo(msg) or is_realm(msg) and is_admin(msg) then local group_creator = msg.from.print_name create_g...
gpl-2.0
Ninjistix/darkstar
scripts/globals/items/rolanberry_daifuku_+1.lua
3
1933
----------------------------------------- -- ID: 6340 -- Item: rolanberry_daifuku_+1 -- Food Effect: 60 Min, All Races ----------------------------------------- -- HP +30 -- VIT +4 -- Accuracy +11% (cap 54) -- Ranged Accuracy +11% (cap 54) -- Magic Accuracy +4 -- Pet: -- HP +30 -- VIT +4 -- Accuracy +11% (cap 81) -- Ra...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Port_Jeuno/npcs/Karl.lua
5
2141
----------------------------------- -- Area: Port Jeuno -- NPC: Karl -- Starts and Finishes Quest: Child's Play -- !pos -60 0.1 -8 246 ----------------------------------- package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/...
gpl-3.0
dinodeck/ninety_nine_days_of_dev
007_map_cure/code/MoveState.lua
10
3261
MoveState = { mName = "move" } MoveState.__index = MoveState function MoveState:Create(character, map) local this = { mCharacter = character, mMap = map, mTileWidth = map.mTileWidth, mEntity = character.mEntity, mController = character.mController, mMove...
mit
dinodeck/ninety_nine_days_of_dev
003_combat_numbers/code/MoveState.lua
10
3261
MoveState = { mName = "move" } MoveState.__index = MoveState function MoveState:Create(character, map) local this = { mCharacter = character, mMap = map, mTileWidth = map.mTileWidth, mEntity = character.mEntity, mController = character.mController, mMove...
mit
ccyphers/kong
spec/02-integration/03-admin_api/08-targets_routes_spec.lua
1
8817
local helpers = require "spec.helpers" --local cjson = require "cjson" local function it_content_types(title, fn) local test_form_encoded = fn("application/x-www-form-urlencoded") local test_json = fn("application/json") it(title.." with application/www-form-urlencoded", test_form_encoded) it(title.." with app...
apache-2.0
rofehr/meta-openembedded
meta-gnome/recipes-gnome/devilspie/files/default.lua
40
1194
-- Copyright (c) 2012 Andreas Müller <schnitzeltony@googlemail.com> -- -- this is an example -- * undecorating all windows opened maximized -- * maximizing and undecorating all appplication's windows in apps_list -- for further information see -- http://www.gusnan.se/devilspie2/manual.php wnd_type = get_window_type()...
mit
istarIQ/Source
ar-devhelp.lua
1
1945
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ help dev : اوامر المطور ▀▄ ▄▀ ▀▄▀...
gpl-2.0
anonbyte/pvpgn
lua/quiz/command.lua
1
3423
--[[ 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. ]]-- -- /quiz <start|stop|stats> function command_quiz(account, text) if not config.quiz then return 0 end local args = split_command(text, 2) if (...
gpl-2.0
JimmyS83/packages
net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/rule.lua
80
4829
-- ------ extra functions ------ -- function ruleCheck() -- determine if rules needs a proper protocol configured uci.cursor():foreach("mwan3", "rule", function (section) local sourcePort = ut.trim(sys.exec("uci -p /var/state get mwan3." .. section[".name"] .. ".src_port")) local destPort = ut.trim(sys.exec("...
gpl-2.0
JimmyS83/packages
net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/interfaceconfig.lua
74
7228
-- ------ extra functions ------ -- function interfaceCheck() metricValue = ut.trim(sys.exec("uci -p /var/state get network." .. arg[1] .. ".metric")) if metricValue == "" then -- no metric errorNoMetric = 1 else -- if metric exists create list of interface metrics to compare against for duplicates uci.cursor()...
gpl-2.0
eugenesan/openwrt-luci
libs/nixio/docsrc/nixio.File.lua
173
4457
--- Large File Object. -- Large file operations are supported up to 52 bits if the Lua number type is -- double (default). -- @cstyle instance module "nixio.File" --- Write to the file descriptor. -- @class function -- @name File.write -- @usage <strong>Warning:</strong> It is not guaranteed that all data -- in the bu...
apache-2.0
mamad-majhol/TeleSecret
plugins/ingroup.lua
371
44212
do -- Check Member local function check_member_autorealm(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 -- Group configuration data[tostr...
gpl-2.0
Ninjistix/darkstar
scripts/zones/Ghelsba_Outpost/bcnms/save_the_children.lua
5
2037
----------------------------------- -- Area: Ghelsba Outpost -- Name: San d'Oria Mission 1-3 Save the children -- !pos -162 -11 78 140 ----------------------------------- package.loaded["scripts/zones/Ghelsba_Outpost/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require("scrip...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Mhaura/npcs/Graine.lua
5
1330
----------------------------------- -- Area: Mhaura -- NPC: Graine -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Mhaura/TextIDs"); require("scripts/globals/shop"); ---------------------------...
gpl-3.0
Ninjistix/darkstar
scripts/globals/items/galette_des_rois.lua
3
1257
----------------------------------------- -- ID: 5875 -- Item: Galette Des Rois -- Food Effect: 180 Min, All Races ----------------------------------------- -- HP +8 -- MP +3% (cap13) -- Intelligence +2 -- Random Jewel ----------------------------------------- require("scripts/globals/status"); require("scripts/zones/...
gpl-3.0
mandersan/premake-core
tests/base/test_criteria.lua
15
10408
-- -- tests/base/test_criteria.lua -- Test suite for the criteria matching API. -- Copyright (c) 2012-2015 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("criteria") local criteria = p.criteria -- -- Setup and teardown -- local crit -- -- A criteria with no terms should ...
bsd-3-clause
eugenesan/openwrt-luci
modules/base/luasrc/http/protocol/mime.lua
88
2933
--[[ HTTP protocol implementation for LuCI - mime handling (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www....
apache-2.0
Ninjistix/darkstar
scripts/zones/Windurst_Woods/npcs/Nya_Labiccio.lua
5
1225
----------------------------------- -- Area: Windurst Woods -- NPC: Nya Labiccio -- Only sells when Windurst controlls Gustaberg Region -- Confirmed shop stock, August 2013 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scr...
gpl-3.0
abosalah22/zak
plugins/tagall.lua
3
1486
--[[ $ :) -- - ( #ابو_شهوده ) - -- $ :) -- - ( @abo_shosho98 ) - -- $ :) --Channel-( @aboaloshbot )-- $ :) ]]-- local function tagall(cb_extra, success, result) local receiver = cb_extra.receiver local text = '' local msgss = 0 for k,v in pairs(result.members) do if v.username then ...
gpl-2.0
Ninjistix/darkstar
scripts/globals/spells/silencega.lua
3
1324
----------------------------------------- -- Spell: Silence ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0; end; func...
gpl-3.0
Ninjistix/darkstar
scripts/globals/items/burning_cesti.lua
7
1036
----------------------------------------- -- ID: 16398 -- Item: Burning Cesti -- Additional Effect: Fire Damage ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------- function onAdditionalEffect(...
gpl-3.0
Xamla/torch-ros
lua/console.lua
1
7476
--- Wrapper for the ROS logging system -- @module console local ffi = require 'ffi' local torch = require 'torch' local ros = require 'ros.env' local utils = require 'ros.utils' local std = ros.std local console = {} ros.console = console console.trace_once_stack = {} console.trace_throttle_stack = {} function init()...
bsd-3-clause
Ninjistix/darkstar
scripts/zones/Windurst_Waters/npcs/Otete.lua
5
1143
----------------------------------- -- Area: Windurst_Waters -- NPC: Otete -- Only sells when Windurst controlls Li'Telor Region -- Confirmed shop stock, August 2013 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------------------------------- require("scripts/z...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Promyvion-Dem/mobs/Memory_Receptacle.lua
5
2074
----------------------------------- -- Area: Promyvion-Dem -- MOB: Memory Receptacle ----------------------------------- require("scripts/zones/Promyvion-Dem/MobIDs"); require("scripts/globals/status"); function onMobInitialize(mob) mob:addMod(MOD_REGAIN, 100); -- 10% Regain for now mob:SetAutoAttackEnabled(f...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Upper_Jeuno/npcs/Mailloquetat.lua
5
1074
----------------------------------- -- Area: Upper Jeuno -- NPC: Mailloquetat -- Involved in Quests: Save my Sister -- @zone 244 -- !pos -31 -1 8 ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); requi...
gpl-3.0
dinodeck/ninety_nine_days_of_dev
007_map_cure/code/TitleScreenState.lua
4
2292
TitleScreenState = {} TitleScreenState.__index = TitleScreenState function TitleScreenState:Create(stack, storyboard) local this this = { mTitleBanner = Sprite.Create(), mStack = stack, mStoryboard = storyboard, } this.mTitleBanner:SetTexture(Texture.Find("title...
mit
Ninjistix/darkstar
scripts/globals/mobskills/nerve_gas.lua
5
1059
--------------------------------------------- -- Nerve Gas -- -- Description: Inflicts curse and powerful poison effect. -- Type: Magical -- Wipes Shadows -- Range: 10' Radial --------------------------------------------- require("scripts/globals/monstertpmoves"); require("scripts/globals/settings"); require("scripts/g...
gpl-3.0
Ninjistix/darkstar
scripts/globals/mobskills/fuscous_ooze.lua
34
1073
--------------------------------------------------- -- Fuscous Ooze -- Family: Slugs -- Description: A dusky slime inflicts encumberance and weight. -- Type: Magical -- Utsusemi/Blink absorb: Ignores shadows -- Range: Cone -- Notes: --------------------------------------------------- require("scripts/globals/se...
gpl-3.0
THEGENRRAL/GENERAL
plugins/helo.lua
2
1802
--[[ -- تم التعديل و التعريب بواسطه @KNSLTHM --[[ Dev @KNSLTHM Dev @NAHAR2_BOT CH > @NENO_CH --]] do local function mohammedboss(msg,matches) if matches[1] == "chat_add_user" then return ...
gpl-3.0
dafei2015/hugular_cstolua
Client/Assets/Lua/lib/timer.lua
7
2690
--[[ -- 时间cd函数 2013-05-10编写 --]]-- local Timer = {} Timer.__index = Timer local function new() return setmetatable({functions = {}}, Timer) end -- 每次减少一个 -- 间隔,这个timer效率不高 function Timer:update(dt) local to_remove = {} -- 更新时间 for func, delay in pairs(self.functions) do delay = delay - dt -- 每次减少一...
mit
jagu-sayan/42Premake
tests/test_premake.lua
66
1038
-- -- tests/test_premake.lua -- Automated test suite for the Premake support functions. -- Copyright (c) 2008-2009 Jason Perkins and the Premake project -- T.premake = { } -- -- premake.checktools() tests -- function T.premake.checktools_SetsDefaultTools() _ACTION = "gmake" premake.checktools() test.isequa...
bsd-3-clause
Armin041/antiflood
plugins/all.lua
264
4202
do data = load_data(_config.moderation.data) 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_print...
gpl-2.0
amir1213/tamir
plugins/stats.lua
49
3698
do local NUM_MSG_MAX = 4 local TIME_CHECK = 4 -- seconds local function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name..' ' end if user.lastname then text = text..user.last_name end return text end -- Returns a table with `...
gpl-2.0
Ninjistix/darkstar
scripts/zones/Southern_San_dOria/npcs/Benaige.lua
5
1818
----------------------------------- -- Area: Southern San d'Oria -- NPC: Benaige -- Standard Merchant NPC -- !pos -142 -6 47 230 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("script...
gpl-3.0
badboyam/hfghf
plugins/inpm.lua
14
3149
do local 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]] ...
gpl-2.0
Ninjistix/darkstar
scripts/zones/Waughroon_Shrine/mobs/Maat.lua
4
1461
----------------------------------- -- Area: Waughroom Shrine -- MOB: Maat -- Genkai 5 Fight ----------------------------------- package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Waughroon_Shrine/TextIDs"); ----------------------------------- fu...
gpl-3.0
mohammad25253/persianguard12
bot/utils.lua
239
13499
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")() http.TIMEOUT = 10 funct...
gpl-2.0
kbullaughey/lstm-play
toys/lstm/model-1_layer-variable-bi.lua
1
10758
#!/usr/bin/env th toy = require '../toy/toy' check = require '../scripts/check_gradients' require 'lstm' -- Allow for command-line control over the seed and number of examples. cmd = torch.CmdLine() cmd:text() cmd:text('Train single-layer LSTM model using toy data.') cmd:text() cmd:text('Options') cmd:option('-seed',...
mit
Ninjistix/darkstar
scripts/zones/Promyvion-Dem/MobIDs.lua
7
1748
-- [receptacle] = {group, numStrays, portal} DEM_MEMORY_RECEPTACLES = { [16850971] = {1, 3, 16851268}, [16851025] = {2, 5, 16851272}, [16851032] = {2, 5, 16851273}, [16851039] = {2, 5, 16851274}, [16851046] = {2, 5, 16851275}, [16851072] = {3, 7, 16851269}, [16851081] = {3, 7, 16851270}, ...
gpl-3.0
Ninjistix/darkstar
scripts/globals/abilities/sublimation.lua
4
2112
----------------------------------- -- Ability: Sublimation -- Gradually creates a storage of MP while reducing your HP. The effect ends once an MP limit is reached, or your HP has gone too low. The stored MP is then transferred to your MP pool by using the ability a second time. -- Obtained: Scholar Level 35 -- Recast...
gpl-3.0
dinodeck/ninety_nine_days_of_dev
006_magic_menu/code/combat_events/CECastSpell.lua
8
2997
CECastSpell = {} CECastSpell.__index = CECastSpell function CECastSpell:Create(state, owner, spell, targets) local this = { mState = state, mOwner = owner, mSpell = spell, mTargets = targets, mIsFinished = false, mCharacter = state.mActorCharMap[owner], } ...
mit
Ninjistix/darkstar
scripts/globals/weaponskills/black_halo.lua
25
1568
----------------------------------- -- Black Halo -- Club weapon skill -- Skill level: 230 -- In order to obtain Black Halo, the quest Orastery Woes must be completed. -- Delivers a two-hit attack. Damage varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Shadow Gorget, Thunder Gorget & Breeze Gorget....
gpl-3.0
ccyphers/kong
kong/core/balancer.lua
1
10710
local cache = require "kong.tools.database_cache" local pl_tablex = require "pl.tablex" local responses = require "kong.tools.responses" local singletons = require "kong.singletons" local dns_client = require "resty.dns.client" -- due to startup/require order, cannot use the one from 'singletons' here local ring_balan...
apache-2.0
mandersan/premake-core
modules/self-test/test_helpers.lua
15
1665
--- -- test_helpers.lua -- -- Helper functions for setting up workspaces and projects, etc. -- -- Author Jason Perkins -- Copyright (c) 2008-2016 Jason Perkins and the Premake project. --- local p = premake local m = p.modules.self_test function m.createWorkspace() local wks = workspace("MyWorkspace") confi...
bsd-3-clause
Ninjistix/darkstar
scripts/zones/Lower_Jeuno/TextIDs.lua
5
5616
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6386; -- Obtained: <item>. GIL_OBTAINED = 6387; -- Obtained <number> gil. KEYITEM_OBTAINED = 6389; -- Obta...
gpl-3.0
Inorizushi/DDR-SN1HD
BGAnimations/ScreenGameplay decorations.lua
1
2644
local t = Def.ActorFrame{}; t[#t+1] = StandardDecorationFromFileOptional("StageFrame","StageFrame"); t[#t+1] = StandardDecorationFromFile("LifeFrame","LifeFrame") t[#t+1] = StandardDecorationFromFile("ScoreFrame","ScoreFrame") -- stage display (normal) t[#t+1] = StandardDecorationFromFile("StageDisplay","Stage...
gpl-3.0