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
GoogleCloudPlatform/ops-agent
confgenerator/testdata/valid/linux/logging-receiver_cassandra_custom/09a67e1fbab20939bb0be0aa08268842.lua
1
1176
function process(tag, timestamp, record) local __field_0 = (function() return record["agent.googleapis.com/log_file_path"] end)(); local __field_1 = (function() if record["logging.googleapis.com/labels"] == nil then return nil end return record["logging.googleapis.com/labels"]["compute.googleapis.com/resource_name"] e...
apache-2.0
Death15/SuperSwatch
plugins/rss.lua
700
5434
local function get_base_redis(id, option, extra) local ex = '' if option ~= nil then ex = ex .. ':' .. option if extra ~= nil then ex = ex .. ':' .. extra end end return 'rss:' .. id .. ex end local function prot_url(url) local url, h = string.gsub(url, "http://", "") local...
gpl-2.0
TeoTwawki/darkstar
scripts/globals/items/pipira.lua
11
1406
----------------------------------------- -- ID: 5787 -- Item: pipira -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Mind -4 -- Attack % 14.5 ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ------------------------...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/spells/cure_iii.lua
5
4987
----------------------------------------- -- Spell: Cure III -- Restores target's HP. -- Shamelessly stolen from http://members.shaw.ca/pizza_steve/cure/Cure_Calculator.html ----------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/magic") r...
gpl-3.0
wiremod/wire
lua/entities/gmod_wire_expression2/core/datasignal.lua
3
12411
--[[ dataSignal optimized Made by Divran dataSignals are a combination of signals and gvars. Instead of using one to trigger the E2, and the other to send the data, dataSignals can both trigger the E2 AND send the data at the same time. Have fun! ]] local groups = {} local queue = {} local isOwner = E2Lib.isOwner l...
apache-2.0
TeoTwawki/darkstar
scripts/zones/Ghelsba_Outpost/npcs/Armoury_Crate.lua
1
6430
----------------------------------- -- 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
AOSPA-L/android_external_skia
tools/lua/skia.lua
207
1863
-- Experimental helpers for skia -- function string.startsWith(String,Start) return string.sub(String,1,string.len(Start))==Start end function string.endsWith(String,End) return End=='' or string.sub(String,-string.len(End))==End end Sk = {} function Sk.isFinite(x) return x * 0 == 0 end ----------------...
bsd-3-clause
Elv13/awesome-1
lib/dynamite/layout/conditional.lua
1
4762
--------------------------------------------------------------------------- --- A specialised of the `wibox.container.conditional`. -- -- It adds: -- -- * Automatic reload when the client count changes -- * Dynamic resizing -- -- @author Emmanuel Lepage Vallee <elv1313@gmail.com> -- @copyright 2018 Emmanuel Lepag...
gpl-2.0
TeoTwawki/darkstar
scripts/globals/mobskills/armor_buster.lua
11
1155
--------------------------------------------------- -- Armor_Buster -- Description: -- Type: Magical -- additional effect: WEIGHT --------------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/settings") require("scripts/globals/status") --------------------------...
gpl-3.0
dxmgame/dxm-cocos
src/apps/lua-tests/Resources/src/VideoPlayerTest/VideoPlayerTest.lua
6
6001
local visibleRect = cc.Director:getInstance():getOpenGLView():getVisibleRect() local centerPos = cc.p(visibleRect.x + visibleRect.width / 2,visibleRect.y + visibleRect.height /2) local function VideoPlayerTest() local layer = cc.Layer:create() --createTestLayer("VideoPlayerTest", "") titleLabel = cc.Label:cr...
mit
TeoTwawki/darkstar
scripts/globals/mobskills/tachi_gekko.lua
11
1030
--------------------------------------------- -- Tachi: Gekko -- -- Description: Silences target. Damage varies with TP. -- Type: Physical -- Shadow per hit -- Range: Melee --------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/settings") require("scripts/...
gpl-3.0
cuit-zhaxin/quick-ng
quick/samples/bytearray/src/MainScene.lua
8
2777
cc.utils = require("framework.cc.utils.init") local ByteArray = cc.utils.ByteArray local ByteArrayVarint = cc.utils.ByteArrayVarint local MainScene = class("MainScene", function() return display.newScene("MainScene") end) function MainScene:ctor() cc.ui.UIPushButton.new() :setButtonLabel(cc.ui.UILabel.ne...
mit
mohamadaz/bot
plugins/all.lua
1321
4661
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
badboyam/cat
plugins/all.lua
1321
4661
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
dxmgame/dxm-cocos
src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/FadeIn.lua
11
1229
-------------------------------- -- @module FadeIn -- @extend FadeTo -- @parent_module cc -------------------------------- -- js NA -- @function [parent=#FadeIn] setReverseAction -- @param self -- @param #cc.FadeTo ac -- @return FadeIn#FadeIn self (return value: cc.FadeIn) -------------------------------- -...
mit
TeoTwawki/darkstar
scripts/globals/items/red_curry_bun.lua
11
1876
----------------------------------------- -- ID: 5759 -- Item: red_curry_bun -- Food Effect: 30 Min, All Races ----------------------------------------- -- TODO: Group effects -- Health 25 -- Strength 7 -- Agility 1 -- Intelligence -2 -- Attack % 23 (cap 150) -- Ranged Atk % 23 (cap 150) -- Demon Killer 4 -- Resist Sle...
gpl-3.0
DDuarte/IntWars2
bin/Scripts/Heroes/Karthus.lua
4
4297
--[[ NotSingleTargetSpell = true DoesntBreakShields = true DoesntTriggerSpellCasts = false CastingBreaksStealth = true IsDamagingSpell = true local R1 = {Function = BBPreloadParticle} R1["Params"] = {Name = 'laywaste_point.troy'} --R2 = {} / R2["Name"] = "laywaste_point.troy" / R1["Params"] = R2 local R2 = {Function ...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/spells/embrava.lua
11
1070
-------------------------------------- -- Spell: Embrava -- Consumes 20% of your maximum MP. Gradually restores -- target party member's HP and MP and increases attack speed. -------------------------------------- require("scripts/globals/magic") require("scripts/globals/msg") require("scripts/globals/status") ---...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Rabao/npcs/Rahi_Fohlatti.lua
2
2681
----------------------------------- -- Area: Rabao -- NPC: Rahi Fohlatti -- Starts Quest: Trial Size Trial by Wind -- !pos -17 7 -10 247 ----------------------------------- require("scripts/globals/status"); require("scripts/globals/quests"); require("scripts/globals/teleports"); local ID = require("scripts/zones/Raba...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Norg/npcs/Muzaffar.lua
11
2992
----------------------------------- -- Area: Norg -- NPC: Muzaffar -- Standard Info NPC -- Quests: Black Market -- !pos 16.678, -2.044, -14.600 252 ----------------------------------- local ID = require("scripts/zones/Norg/IDs"); require("scripts/globals/titles"); require("scripts/globals/quests"); -------------------...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Western_Altepa_Desert/npcs/_3h5.lua
11
1259
----------------------------------- -- Area: Western Altepa Desert -- NPC: _3h5 (Ruby Column) -- Notes: Mechanism for Altepa Gate -- !pos 59 10 -104 125 ----------------------------------- local ID = require("scripts/zones/Western_Altepa_Desert/IDs") require("scripts/globals/status") ----------------------------------...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/mobskills/nerve_gas.lua
12
1061
--------------------------------------------- -- Nerve Gas -- -- Description: Inflicts curse and powerful poison dsp.effect. -- Type: Magical -- Wipes Shadows -- Range: 10' Radial --------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/settings") require("scripts...
gpl-3.0
T4Larson/OpenTomb
scripts/strings/spanish/global_items.lua
1
3474
-- OPENTOMB INVENTORY GLOBAL ITEM NAMES - SPANISH -- by Lwmte, Sep 2014 -- Spanish Translation by: SuiKaze Raider. -- Translation Version: v1.0.1.0 (April 26th, 2015) -------------------------------------------------------------------------------- -- In this file, we list all the global item names used across al...
lgpl-3.0
TeoTwawki/darkstar
scripts/globals/mobskills/aegis_schism.lua
11
1043
--------------------------------------------- -- Aegis Schism -- -- Description: Damage varies with TP. Additional effect: defense down -- Type: Physical (Blunt) -- -- --------------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/monstert...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/mobskills/vitriolic_spray.lua
11
1113
--------------------------------------------- -- Vitriolic Spray -- Family: Wamouracampa -- Description: Expels a caustic stream at targets in a fan-shaped area of effect. Additional effect: Burn -- Type: Magical -- Utsusemi/Blink absorb: Wipes shadow -- Range: Cone -- Notes: Burn is 10-30/tic ------------------...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Maze_of_Shakhrami/npcs/Fossil_Rock.lua
2
2181
----------------------------------- -- Area: Maze of Shakhrami -- NPC: Fossil Rock -- Used in Mission: Windurst Mission 2-1 -- !pos 17 18 184 198 + <many pos> ----------------------------------- local ID = require("scripts/zones/Maze_of_Shakhrami/IDs") require("scripts/globals/keyitems") require("scripts/globals/missi...
gpl-3.0
IoveSunny/DreamBox
feeds/luci/luci/luci/contrib/luadoc/lua/luadoc/init.lua
172
1333
------------------------------------------------------------------------------- -- LuaDoc main function. -- @release $Id: init.lua,v 1.4 2008/02/17 06:42:51 jasonsantos Exp $ ------------------------------------------------------------------------------- local require = require local util = require "luadoc.util" log...
gpl-2.0
Elv13/awesome-1
tests/examples/shims/dbus.lua
5
1230
local lgi = require("lgi") local Gio = lgi.Gio local dbus = awesome._shim_fake_class() -- Monkeypatch away the real dbus support Gio.bus_own_name = function() end --HACK it used to be an internal API, which made testing easy, but now it uses -- GDBus, so this shims a small subset of its API and use some internal API...
gpl-2.0
GoogleCloudPlatform/ops-agent
confgenerator/testdata/valid/linux/logging-receiver_saphana/ee24df47eeef736d3295eb37a9c787d1.lua
2
1160
function process(tag, timestamp, record) local __field_0 = (function() return record["agent.googleapis.com/log_file_path"] end)(); local __field_1 = (function() if record["logging.googleapis.com/labels"] == nil then return nil end return record["logging.googleapis.com/labels"]["compute.googleapis.com/resource_name"] e...
apache-2.0
kooiot/GoIoT
apps/modbus/modbus/decode.lua
3
1196
-- modbus decode functions -- local bit32 = require 'shared.compat.bit' local _M = {} _M.int8 = function (data) local val = string.byte(data) return ((val + 128) % 256) - 128 end _M.uint8 = function (data) return string.byte(data) end _M.int16 = function (data) local hv = string.byte(data) local lv = string.by...
gpl-2.0
kooiot/GoIoT
apps/example/modbus/decode.lua
3
1196
-- modbus decode functions -- local bit32 = require 'shared.compat.bit' local _M = {} _M.int8 = function (data) local val = string.byte(data) return ((val + 128) % 256) - 128 end _M.uint8 = function (data) return string.byte(data) end _M.int16 = function (data) local hv = string.byte(data) local lv = string.by...
gpl-2.0
cuit-zhaxin/quick-ng
external/lua/luajit/luajit-2.1/src/jit/v.lua
78
5755
---------------------------------------------------------------------------- -- Verbose mode of the LuaJIT compiler. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
mit
celophi/melia
system/scripts/npc/trigger/field/f_pilgrimroad_46.lua
1
2692
----- 4th_ClericAdvancementQuest ----- ----- npcselectdialog.ies | ClassName: JOB_CLERIC_TRIGGER ----- ----- Enter | Dialog ----- ----- QuestIDs: JOB_CLERIC4_2 ----- addnpc(20026, "ETC_20150317_009385", "f_pilgrimroad_46", 362.91, 190.67, -511.62, 45, "npc_dummy") ----- For the 4th Necromancer Advancement ----- ----...
gpl-3.0
WeakAuras/WeakAuras2
WeakAurasOptions/AceGUI-Widgets/AceGUIWidget-WeakAurasImportButton.lua
2
6303
if not WeakAuras.IsLibsOK() then return end local Type, Version = "WeakAurasImportButton", 21 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end local L = WeakAuras.L; local function Hide_Tooltip() GameTooltip:Hide(); end local f...
gpl-2.0
notcake/gcad
lua/gcad/actions/action.lua
1
2305
local self = {} GCAD.Actions.Action = GCAD.MakeConstructor (self, GCAD.Actions.IAction) --[[ Events: NameChanged (oldName, newName) Fired when this action's name has changed. ]] local function trueFunction () return true end function self:ctor (id) self.Id = id self.Name = nil ...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Abyssea-Grauberg/npcs/Dominion_Tactician.lua
12
3893
----------------------------------- -- Area: Abyssea - Grauberg -- NPC: Dominion Tactician ----------------------------------- local ID = require("scripts/zones/Abyssea-Grauberg/IDs") require("scripts/globals/abyssea") ----------------------------------- function onTrade(player,npc,trade) end function onTrigger(play...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/armorstorage.lua
9
12751
----------------------------------- -- -- Armor Storage -- ----------------------------------- require("scripts/globals/keyitems") ----------------------------------- dsp = dsp or {} dsp.armorStorage = dsp.armorStorage or {} -- {SetId,SetGroup,SetMask,SetCount,Head,Body,Hands,Legs,Feet,StorageCost,KeyItem} local arm...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Tahrongi_Canyon/Zone.lua
2
2472
----------------------------------- -- -- Zone: Tahrongi_Canyon (117) -- ----------------------------------- local ID = require("scripts/zones/Tahrongi_Canyon/IDs") require("scripts/globals/icanheararainbow") require("scripts/globals/chocobo_digging") require("scripts/globals/conquest") require("scripts/globals/mission...
gpl-3.0
mikosz/coconut
premake5.lua
1
1567
include "premake5.cfg.lua" structure = require "structure" include "boost.lua" include "gmock.lua" include "coconut-tools.lua" workspace "coconut" -- configurations { "DebugStatic", "DebugShared", "ReleaseStatic", "ReleaseShared" } configurations { "DebugStatic", "ReleaseStatic" } -- dllexport not set up platf...
apache-2.0
cuit-zhaxin/quick-ng
quick/framework/init.lua
8
5870
--[[ Copyright (c) 2011-2014 chukong-inc.com 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...
mit
TeoTwawki/darkstar
scripts/zones/The_Eldieme_Necropolis/npcs/Brazier.lua
2
2937
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: Brazier -- Involved in Quests: Save my Sister -- !pos 101 -33 -59 195 (F-9) -- !pos 259 -33 99 195 (H-7) -- !pos 99 -33 98 195 (F-7) -- !pos 259 -33 -58 195 (H-9) ----------------------------------- local ID = require("scripts/zones/The_Eldiem...
gpl-3.0
soulik/LuaBox2D
addClass.lua
1
1499
local templates = { hpp = [[#ifndef LUABOX2D_{{CNAME}}_H #define LUABOX2D_{{CNAME}}_H namespace LuaBox2D { class {{CLASS}} : public Object<{{ORIG_CLASS}}> { public: explicit {{CLASS}}(State * state) : Object<{{ORIG_CLASS}}>(state){ } {{ORIG_CLASS}} * constructor(State & state, bool & managed); void destr...
gpl-2.0
jozeff3/devill
plugins/mm.lua
1
1026
do local function oscar(extra, success, result) -- function result local oscar_id = result.from.peer_id local r = extra.r if result.from then if result.from.username then username = result.from.username else username = "nil" end --@iq_plus end local msg = result local reply = ...
gpl-2.0
Death15/SuperSwatch
plugins/search_youtube.lua
674
1270
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end local function searchYoutubeVideos(text) local url = 'https://www.googleapis.com/youtube/v3/search?' u...
gpl-2.0
xxMRXxx/M-R-X
plugins/badword.lua
1
3345
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ block word : منع كلمات ▀▄ ▄▀ ▀▄▀▀...
gpl-2.0
wiremod/wire
lua/wire/stools/soundemitter.lua
1
2980
WireToolSetup.setCategory( "Other/Sound" ) WireToolSetup.open( "soundemitter", "Sound Emitter", "gmod_wire_soundemitter", nil, "Sound Emitters" ) if CLIENT then language.Add( "tool.wire_soundemitter.name", "Sound Emitter Tool (Wire)" ) language.Add( "tool.wire_soundemitter.desc", "Spawns a sound emitter for use with...
apache-2.0
TeoTwawki/darkstar
scripts/globals/pets/wyvern.lua
12
7305
----------------------------------- -- PET: Wyvern ----------------------------------- require("scripts/globals/status") require("scripts/globals/msg") local WYVERN_OFFENSIVE = 1 local WYVERN_DEFENSIVE = 2 local WYVERN_MULTI = 3 local wyvernTypes = { [dsp.job.WAR] = WYVERN_OFFENSIVE, [dsp.job.MNK] = WYVERN_O...
gpl-3.0
voydz/vektor
libs/AceComm-3.0/ChatThrottleLib.lua
22
15434
-- -- ChatThrottleLib by Mikk -- -- Manages AddOn chat output to keep player from getting kicked off. -- -- ChatThrottleLib:SendChatMessage/:SendAddonMessage functions that accept -- a Priority ("BULK", "NORMAL", "ALERT") as well as prefix for SendChatMessage. -- -- Priorities get an equal share of available bandwidth...
mit
TeoTwawki/darkstar
scripts/zones/Northern_San_dOria/npcs/Greubaque.lua
12
1423
----------------------------------- -- Area: Northern San d'Oria -- NPC: Greubaque -- Type: Smithing Adv. Synthesis Image Support -- !pos -179.400 10.999 150.000 231 ----------------------------------- require("scripts/globals/status"); require("scripts/globals/crafting"); local ID = require("scripts/zones/Northern_Sa...
gpl-3.0
cecile/Cecile_QuickTalents
src/Cecile_QuickTalents/modules/miscellaneous.lua
1
6490
---------------------------------------------------------------------------------------------------- -- miscellaneous module --get the engine and create the module local Engine = select(2,...); local mod = Engine.AddOn:NewModule("miscellaneous"); --get the locale local L=Engine.Locale; --module defaults mod.Defaults...
artistic-2.0
TeoTwawki/darkstar
scripts/globals/shop.lua
5
2707
----------------------------------- -- -- Functions for Shop system -- ----------------------------------- require("scripts/globals/conquest") require("scripts/globals/settings") ----------------------------------- dsp = dsp or {} dsp.shop = { --[[ **************************************************************...
gpl-3.0
crafter2d/crafter2d
premake5.lua
1
1264
-- Crafter 2D PreMake 5 configuration file -- Copyright 2010-2019, Jeroen Broekhuizen newoption { trigger = "libdir", value = "path", description = "Path to the external libraries" } newoption { trigger = "travis", description = "Generates make files for Travis-testing" } if not _OPTIONS["libdir"...
lgpl-2.1
TeoTwawki/darkstar
scripts/zones/Periqia/instances/requiem.lua
12
1729
----------------------------------- -- -- Assault: Requiem -- ----------------------------------- local ID = require("scripts/zones/Periqia/IDs") require("scripts/globals/instance") ----------------------------------- -- Todo random the chest locations function afterInstanceRegister(player) local instance = player...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Alzadaal_Undersea_Ruins/npcs/_20u.lua
12
2710
----------------------------------- -- Area: Alzadaal Undersea Ruins -- Door: Gilded Gateway (Arrapago) -- !pos -580 0 -159 72 ----------------------------------- require("scripts/globals/keyitems") require("scripts/globals/missions") require("scripts/globals/besieged") local ID = require("scripts/zones/Alzadaal_Unders...
gpl-3.0
cuit-zhaxin/quick-ng
cocos/scripting/lua-bindings/auto/api/EventDispatcher.lua
10
6285
-------------------------------- -- @module EventDispatcher -- @extend Ref -- @parent_module cc -------------------------------- -- Pauses all listeners which are associated the specified target.<br> -- param target A given target node.<br> -- param recursive True if pause recursively, the default value is false. --...
mit
detect00r/zes
plugins/boobs.lua
731
1601
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
gpl-2.0
TeoTwawki/darkstar
scripts/zones/Northern_San_dOria/npcs/Beadurinc.lua
12
1327
----------------------------------- -- Area: Northern San d'Oria -- NPC: Beadurinc -- Type: Smithing Synthesis Image Support -- !pos -182.300 10.999 146.650 231 ----------------------------------- require("scripts/globals/status"); require("scripts/globals/crafting"); local ID = require("scripts/zones/Northern_San_dOr...
gpl-3.0
dxmgame/dxm-cocos
src/apps/lua-simulator/Resources/src/cocos/framework/extends/UIScrollView.lua
55
2042
--[[ Copyright (c) 2011-2014 chukong-inc.com 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, di...
mit
callmeStriking/ilovecolors
src/luaComponents/physics.lua
1
7474
--[[ PHYSICS LIBRARY THING WRITTEN BY MAURICE GUEGAN FOR MARI0 DON'T STEAL MY SHIT Licensed under the same license as the game itself. ]]-- --MASK REFERENCE LIST function physicsupdate(dt,maxyspeed,lobjects) for j, w in pairs(lobjects) do if j ~= "tile" then for i, v in pairs(w) do if v.static == false ...
mit
dxmgame/dxm-cocos
src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/TransitionShrinkGrow.lua
11
1057
-------------------------------- -- @module TransitionShrinkGrow -- @extend TransitionScene,TransitionEaseScene -- @parent_module cc -------------------------------- -- -- @function [parent=#TransitionShrinkGrow] easeActionWithAction -- @param self -- @param #cc.ActionInterval action -- @return ActionInterval#Actio...
mit
ReWrite94/iLife
client/Classes/Hud/Handy/Apps/cHandyApp_LockScreen.lua
2
5177
-- ####################################### -- ## Project: HUD iLife ## -- ## For MTA: San Andreas ## -- ## Name: HandyApp_LockScreen.lua ## -- ## Author: Noneatme ## -- ## Version: 1.0 ## -- ## License: See top Folder ## -- ####################################### -- FUNCTIONS / METHODS -- local c...
mit
TeoTwawki/darkstar
scripts/globals/moghouse.lua
2
10381
-- -- Mog House related functions -- require("scripts/globals/npc_util") require("scripts/globals/quests"); require("scripts/globals/status") require("scripts/globals/titles") ------------------------------------ -- Mog Locker constants ------------------------------------ MOGLOCKER_START_TS = 1009810800 -- unix times...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Apollyon/bcnms/cs_apollyon_ii.lua
10
1055
----------------------------------- -- Area: Appolyon -- Name: ----------------------------------- require("scripts/globals/limbus"); require("scripts/globals/battlefield") -- After registering the BCNM via bcnmRegister(bcnmid) function onBattlefieldRegister(player,battlefield) end; function onBattlefieldTic...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/abilities/pets/attachments/target_marker.lua
11
2742
----------------------------------- -- Attachment: Target Marker ----------------------------------- require("scripts/globals/status") ----------------------------------- function onEquip(pet) pet:addListener("ENGAGE", "AUTO_TARGETMARKER_ENGAGE", function(pet, target) local ignored = pet:getLocalVar("targe...
gpl-3.0
WeakAuras/WeakAuras2
WeakAurasOptions/AceGUI-Widgets/AceGUIWidget-WeakAurasPendingInstallButton.lua
1
7213
if not WeakAuras.IsLibsOK() then return end local AddonName, OptionsPrivate = ... local pairs, next, type, unpack = pairs, next, type, unpack local Type, Version = "WeakAurasPendingInstallButton", 3 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Versio...
gpl-2.0
ReWrite94/iLife
client/Classes/Shop/cEinkaufszentrum.lua
4
2593
-- ####################################### -- ## Project: MTA iLife ## -- ## Name: Einkaufszentrum.lua ## -- ## Author: Noneatme ## -- ## Version: 1.0 ## -- ## License: See top Folder ## -- ####################################### -- FUNCTIONS / METHODS -- local cFunc = {}; -- Local Functions local c...
mit
jozeff3/devill
plugins/ar-en-zhrafa_arab.lua
6
30216
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY jOker ▀▄ ▄▀ ▀▄ ▄▀ BY joker (@fuck_8_you) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY joker ▀▄ ▄▀ ▀▄ ▄▀ broadcast : زخرفة عربي و نكلش ▀▄ ▄▀ ▀▄▀...
gpl-2.0
TeoTwawki/darkstar
scripts/zones/Chamber_of_Oracles/npcs/Pedestal_of_Earth.lua
2
2170
----------------------------------- -- Area: Chamber of Oracles -- NPC: Pedestal of Earth -- Involved in Zilart Mission 7 -- !pos 199 -2 36 168 ------------------------------------- require("scripts/globals/titles"); require("scripts/globals/keyitems"); require("scripts/globals/missions"); local ID = require("scripts/...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/items/federation_signet_staff.lua
3
1178
----------------------------------------- -- ID: 17585 -- Item: Federation Signet Staff -- Effect: Signet ----------------------------------------- require("scripts/globals/status") require("scripts/globals/conquest") require("scripts/globals/zone") require("scripts/globals/msg") ---------------------------------------...
gpl-3.0
TeoTwawki/darkstar
scripts/globals/weaponskills/fast_blade.lua
10
1382
----------------------------------- -- Fast Blade -- Sword weapon skill -- Skill Level: 5 -- Delivers a two-hit attack. Damage varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Soil Gorget. -- Aligned with the Soil Belt. -- Element: None -- Modifiers: STR:20% DEX:20% -- 100%TP 200%TP 300%TP --...
gpl-3.0
czfshine-self/ds_mod_creator
tool/批量动画/re.lua
4
24598
return { -- Table: {1} { ["maxwelllight"]={2}, ["spiderden"]={3}, ["batbat"]={4}, ["mole"]={5}, ["cave_banana_tree"]={6}, ["pond"]={7}, ["walrus_camp"]={8}, ["boomerang"]={9}, ["walrus"]={10}, ["mosquito"]={11}, ["plant_normal"]={12}, ["firepit"]={13}, ["papyrus"]={14}, ["rabbi...
gpl-2.0
Death15/SuperSwatch
plugins/get.lua
613
1067
local function get_variables_hash(msg) if msg.to.type == 'chat' then return 'chat:'..msg.to.id..':variables' end if msg.to.type == 'user' then return 'user:'..msg.from.id..':variables' end end local function list_variables(msg) local hash = get_variables_hash(msg) if hash then local names =...
gpl-2.0
cuit-zhaxin/quick-ng
quick/samples/drag/src/app/Utility.lua
8
5183
---获取大小宽高,或者宽高的一半 --常用代码段,用于返回不需要处理的node , #if not node then return nil end# --获取大小的方法对于gui也适用。 SIZE = function(node) if not node then return nil end local size = node:getContentSize() if size.width == 0 and size.height == 0 then local w,h = node:getLayoutSize() return cc.size(w,h) else return size end ...
mit
TeoTwawki/darkstar
scripts/globals/items/skewer_of_m&p_chicken.lua
11
1088
----------------------------------------- -- ID: 5639 -- Item: Skewer of M&P Chicken -- Food Effect: 3Min, All Races ----------------------------------------- -- Strength 5 -- Intelligence -5 -- Attack % 25 -- Attack Cap 154 ----------------------------------------- require("scripts/globals/status") require("scripts/gl...
gpl-3.0
kaszubowski/nadzoru
class/des/graphviz_simulator.lua
1
19999
--[[ This file is part of nadzoru. nadzoru is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. nadzoru is distri...
lgpl-3.0
981213/luci-1
modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/backupfiles.lua
75
2451
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. if luci.http.formvalue("cbid.luci.1._list") then luci.http.redirect(luci.dispatcher.build_url("admin/system/flashops/backupfiles") .. "?display=list") elseif ...
apache-2.0
TeoTwawki/darkstar
scripts/zones/Grauberg_[S]/npcs/Indescript_Markings.lua
3
1496
---------------------------------- -- Area: Grauberg [S] -- NPC: Indescript Markings -- Type: Quest ----------------------------------- local ID = require("scripts/zones/Grauberg_[S]/IDs"); require("scripts/globals/keyitems"); require("scripts/globals/npc_util"); require("scripts/globals/status"); --------------------...
gpl-3.0
massimobernava/torch7
Tensor.lua
57
16339
-- additional methods for Storage local Storage = {} -- additional methods for Tensor local Tensor = {} -- types local types = {'Byte', 'Char', 'Short', 'Int', 'Long', 'Float', 'Double'} -- Lua 5.2 compatibility local log10 = math.log10 or function(x) return math.log(x, 10) end -- tostring() functions for Tensor an...
bsd-3-clause
TeoTwawki/darkstar
scripts/zones/East_Ronfaure/npcs/Andelain.lua
2
1573
----------------------------------- -- Area: East Ronfaure -- NPC: Andelain -- Type: Standard NPC -- !pos 664.231 -12.849 -539.413 101 -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quests"); ---------------...
gpl-3.0
abbasgh12345/extremeboss
plugins/ingroup.lua
2
9165
lock_group_fosh(msg, data, target) end if matches[2] == 'leave' then savelog(msg.to.id, name_log.." ["..msg.from.id.."] unlocked leaving ") return unlock_group_leave(msg, data, target) end if matches[2] == 'join' then savelog(msg.to.id, name_log.." ["..msg.from.id.."] unlocked...
gpl-2.0
TeoTwawki/darkstar
scripts/globals/mobskills/fear_touch.lua
11
1044
--------------------------------------------------- -- Fear Touch -- Touches a single target. Additional effect: Slow --------------------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/monstertpmoves") --------------------------------------...
gpl-3.0
981213/luci-1
applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua
2
3739
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" local sys = require "luci.sys" local uci = require "luci.model.uci".cursor() local testfullps = luci.sys.exec("ps --help 2>&1 | grep BusyBox") --check which ps do we have local pss...
apache-2.0
TeoTwawki/darkstar
scripts/zones/Lower_Delkfutts_Tower/npcs/_542.lua
2
1631
----------------------------------- -- Area: Lower Delkfutt's Tower -- NPC: Cermet Door -- Cermet Door for Basty Ambassador -- Bastok Mission 3.3 "Appointment to Jeuno" -- !pos 596 16 -19 184 ----------------------------------- local ID = require("scripts/zones/Lower_Delkfutts_Tower/IDs") require("scripts/globals/keyi...
gpl-3.0
kooiot/GoIoT
shared/system/init.lua
2
3489
--- System operation functions module -- local download = require 'shared.util.download' local platform = require 'shared.platform' local delay_exec = require('shared.util.delay_exec') local log = require 'shared.log' local _M = {} --- Get the current system version -- @treturn string version string _M.version = func...
gpl-2.0
notcake/gcad
lua/gcad/space/spatialnode3d.lua
1
1810
local self = {} GCAD.SpatialNode3d = GCAD.MakeConstructor (self, GCAD.ISpatialNode3d) function self:ctor () self.AABB = GCAD.AABB3d () self.BoundingSphere = GCAD.Sphere3d () self.OBB = GCAD.OBB3d () self.NativeOBB = GCAD.NativeOBB3d () self.AABBValid = false self.BoundingSph...
gpl-3.0
soheildiss/sodism
bot/utils.lua
473
24167
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
asqbtcupid/unreal.lua
Plugins/UnrealLua/LuaSource/ui/activity/dailyactivitypanel.lua
1
2010
DailyActivityPanel = Inherit(NZLuaSimpleViewClass) DailyActivityPanel.BpClassPath = "/Game/UI/UIBP/FrontEnd/ActivityUI/Lua/DailyActivityPanel.DailyActivityPanel_C" function DailyActivityPanel:Ctor() self.m_ActivityTime = self:Wnd("ActivityTime") self.m_ActivityDescText = self:Wnd("ActivityDescText") self.m_Activity...
mit
mahdib9/mah1
plugins/stats.lua
15
3956
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
GoogleCloudPlatform/ops-agent
confgenerator/testdata/valid/linux/logging-receiver_cassandra_custom/218da44381e6085e935a2fec92a1349e.lua
1
1173
function process(tag, timestamp, record) local __field_0 = (function() return record["agent.googleapis.com/log_file_path"] end)(); local __field_1 = (function() if record["logging.googleapis.com/labels"] == nil then return nil end return record["logging.googleapis.com/labels"]["compute.googleapis.com/resource_name"] e...
apache-2.0
rowellx68/nodemcu-firmware-custom
lua_modules/redis/redis.lua
86
2621
------------------------------------------------------------------------------ -- Redis client module -- -- LICENCE: http://opensource.org/licenses/MIT -- Vladimir Dronnikov <dronnikov@gmail.com> -- -- Example: -- local redis = dofile("redis.lua").connect(host, port) -- redis:publish("chan1", foo") -- redis:subscribe("...
mit
TeoTwawki/darkstar
scripts/globals/weaponskills/knights_of_round.lua
10
1784
----------------------------------- -- Knights Of Round -- Sword Weapon Skill -- Skill Level: N/A -- Caliburn/Excalibur: Additional Effect: Regen. -- Regen 10HP/Tick, duration varies with TP. -- Available only when equipped with the Relic Weapons Caliburn (Dynamis use only) or Excalibur. -- Also available without after...
gpl-3.0
amyvmiwei/skia
tools/lua/paths_agg.lua
92
1207
clips = 0 draws = 0 clipPaths = 0 drawPaths = 0 swClipPaths = 0 swDrawPaths = 0 skpsTotal = 0 skpsWithPath = 0 skpsWithSWPath = 0 dofile("/tmp/lua-output") io.write("Number of clips: ", clips, "\n"); io.write("Number of draws: ", draws, "\n"); io.write("Number of clipped paths: ", clipPaths, "\n"); io.write("Number...
bsd-3-clause
TeoTwawki/darkstar
scripts/globals/weaponskills/sidewinder.lua
10
1445
----------------------------------- -- Sidewinder -- Archery weapon skill -- Skill level: 175 -- Delivers an inparams.accurate attack that deals quintuple damage. params.accuracy varies with TP. -- Aligned with the Aqua Gorget, Light Gorget & Breeze Gorget. -- Aligned with the Aqua Belt, Light Belt & Breeze Belt. -- El...
gpl-3.0
TeoTwawki/darkstar
scripts/zones/Promyvion-Holla/Zone.lua
2
2269
----------------------------------- -- -- Zone: Promyvion-Holla (16) -- ----------------------------------- local ID = require("scripts/zones/Promyvion-Holla/IDs") require("scripts/globals/promyvion") require("scripts/globals/keyitems") require("scripts/globals/missions") require("scripts/globals/settings") require("sc...
gpl-3.0
ReWrite94/iLife
client/Guis/Util/infobox.lua
2
1648
sX,sY = guiGetScreenSize() Infobox = { ["Window"] = false, ["Label"] = {}, ["Image"] = {}, } Infobox["Window"] = new(CDxWindow, "Information", 310, 137, true, false, "Center|Top") Infobox["Image"][1] = new(CDxImage, 5, 5, 95, 95, "res/images/infobox/info.png",tocolor(255,255,255,255), Infobox["Window"]) Infobox["Labe...
mit
czfshine-self/ds_mod_creator
tool/批量动画/tablesave.lua
4
3721
-- coding: UTF-8----------------- --将table 保存进文件,与读取保存文件 --------------------------------- --[[ Save Table to File Load Table from File v 1.0 Lua 5.2 compatible Only Saves Tables, Numbers and Strings Insides Table References are saved Does not save Userdata, Metatables, Functions and indices of t...
gpl-2.0
prapin/premake-core
src/tools/snc.lua
13
2669
-- -- snc.lua -- Provides Sony SNC-specific configuration strings. -- Copyright (c) 2010-2012 Jason Perkins and the Premake project -- premake.tools.snc = {} local snc = premake.tools.snc local gcc = premake.tools.gcc local config = premake.config -- -- Retrieve the CFLAGS for a specific configuration. -- snc....
bsd-3-clause
TeoTwawki/darkstar
scripts/globals/items/crab_stewpot.lua
11
1476
----------------------------------------- -- ID: 5544 -- Item: Crab Stewpot -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +10% Cap 50 -- MP +10 -- HP Recoverd while healing 5 -- MP Recovered while healing 1 -- Defense +20% Cap 50 -- Evasion +5 -------------------...
gpl-3.0
dxmgame/dxm-cocos
src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/EventListener.lua
3
1445
-------------------------------- -- @module EventListener -- @extend Ref -- @parent_module cc -------------------------------- -- Enables or disables the listener.<br> -- note Only listeners with `enabled` state will be able to receive events.<br> -- When an listener was initialized, it's enabled by default.<br> -- ...
mit
steveklabnik/FrameworkBenchmarks
frameworks/Lua/lapis/web.lua
72
5957
local lapis = require("lapis") local db = require("lapis.db") local Model do local _obj_0 = require("lapis.db.model") Model = _obj_0.Model end local config do local _obj_0 = require("lapis.config") config = _obj_0.config end local insert do local _obj_0 = table insert = _obj_0.insert end local sort do loc...
bsd-3-clause