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
TheAnswer/FirstTest
bin/scripts/creatures/objects/talus/npcs/sleemo/sleemoScamp.lua
1
4500
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later versio...
lgpl-3.0
JarnoVgr/ZombieSurvival
gamemodes/zombiesurvival/gamemode/zombieclasses/boss_pukepus.lua
1
3776
CLASS.Name = "Puke Pus" CLASS.TranslationName = "class_pukepus" CLASS.Description = "description_pukepus" CLASS.Help = "controls_pukepus" CLASS.Wave = 0 CLASS.Threshold = 0 CLASS.Unlocked = true CLASS.Hidden = true CLASS.Boss = true CLASS.FearPerInstance = 1 CLASS.Health = 3100 CLASS.SWEP = "weapon_zs_...
gpl-2.0
vgire/nn
L1HingeEmbeddingCriterion.lua
63
1160
local L1HingeEmbeddingCriterion, parent = torch.class('nn.L1HingeEmbeddingCriterion', 'nn.Criterion') function L1HingeEmbeddingCriterion:__init(margin) parent.__init(self) margin = margin or 1 self.margin = margin self.gradInput = {torch.Tensor(), torch.Tensor()} end function L1HingeEmbeddingCriterion:upd...
bsd-3-clause
TheAnswer/FirstTest
bin/scripts/object/tangible/ship/attachment/weapon/objects.lua
1
307108
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later ve...
lgpl-3.0
ludi1991/skynet
lualib/sproto.lua
56
5136
local core = require "sproto.core" local assert = assert local sproto = {} local host = {} local weak_mt = { __mode = "kv" } local sproto_mt = { __index = sproto } local sproto_nogc = { __index = sproto } local host_mt = { __index = host } function sproto_mt:__gc() core.deleteproto(self.__cobj) end function sproto...
mit
TheAnswer/FirstTest
bin/scripts/creatures/objects/dathomir/creatures/youngMalkloc.lua
1
4697
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later versio...
lgpl-3.0
weiDDD/WSSParticleSystem
cocos2d/cocos/scripting/lua-bindings/auto/api/PhysicsShapeCircle.lua
1
2398
-------------------------------- -- @module PhysicsShapeCircle -- @extend PhysicsShape -- @parent_module cc -------------------------------- -- Get the circle's radius.<br> -- return A float number. -- @function [parent=#PhysicsShapeCircle] getRadius -- @param self -- @return float#float ret (return value...
apache-2.0
thkhxm/TGame
Assets/StreamingAssets/lua/protobuf/listener.lua
15
1299
-- -------------------------------------------------------------------------------- -- FILE: listener.lua -- DESCRIPTION: protoc-gen-lua -- Google's Protocol Buffers project, ported to lua. -- https://code.google.com/p/protoc-gen-lua/ -- -- Copyright (c) 2010 , 林卓毅 (Zhuoyi Lin) netsnail@gmail.com -- ...
apache-2.0
weiDDD/WSSParticleSystem
cocos2d/external/lua/luajit/src/src/jit/bc.lua
1
5797
---------------------------------------------------------------------------- -- LuaJIT bytecode listing module. -- -- Copyright (C) 2005-2014 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
apache-2.0
mynameis123/uzzbot
plugins/giphy.lua
633
1796
-- Idea by https://github.com/asdofindia/telegram-bot/ -- See http://api.giphy.com/ do local BASE_URL = 'http://api.giphy.com/v1' local API_KEY = 'dc6zaTOxFJmzC' -- public beta key local function get_image(response) local images = json:decode(response).data if #images == 0 then return nil end -- No images loca...
gpl-2.0
aminbotmaker/1283
plugins/giphy.lua
633
1796
-- Idea by https://github.com/asdofindia/telegram-bot/ -- See http://api.giphy.com/ do local BASE_URL = 'http://api.giphy.com/v1' local API_KEY = 'dc6zaTOxFJmzC' -- public beta key local function get_image(response) local images = json:decode(response).data if #images == 0 then return nil end -- No images loca...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/naboo/npcs/naboo/nabooPirateArmsman.lua
1
4583
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later versio...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/dantooine/npcs/janta/jantaHunter.lua
1
4850
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later versio...
lgpl-3.0
thkhxm/TGame
Assets/LuaFramework/Lua/3rd/pbc/protobuf.lua
13
12815
local c = require "protobuf.c" local setmetatable = setmetatable local type = type local table = table local assert = assert local pairs = pairs local ipairs = ipairs local string = string local print = print local io = io local tinsert = table.insert local rawget = rawget module "protobuf" local _pattern_cache = {}...
apache-2.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/endor/creatures/arachneWidow.lua
1
4683
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later versio...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/slashcommands/generic/repairBattlefieldStructure.lua
1
2724
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later version. ...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/dantooine/npcs/warren/warrenAgroDroidAtst.lua
1
4718
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later versio...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/naboo/npcs/skaakTipper/skaakTipperBandit.lua
1
4538
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later versio...
lgpl-3.0
Xeltor/ovale
libs/LibDataBroker-1.1/LibDataBroker-1.1.lua
78
3139
assert(LibStub, "LibDataBroker-1.1 requires LibStub") assert(LibStub:GetLibrary("CallbackHandler-1.0", true), "LibDataBroker-1.1 requires CallbackHandler-1.0") local lib, oldminor = LibStub:NewLibrary("LibDataBroker-1.1", 4) if not lib then return end oldminor = oldminor or 0 lib.callbacks = lib.callbacks or LibStu...
mit
Wargus/stargus
scripts/zerg/unit-zerg-hydralisk.lua
1
3478
-- -- unit-zerg-hydralisk -- DefineAnimations("animations-zerg-hydralisk-death", { Death = { "unbreakable begin", "frame 0", "wait 50", "frame 1", "wait 50", "frame 2", "wait 50", "frame 3", "wait 50", "unbreakable end", "wait 1", }, }) DefineUnitType("unit-zerg-hydralisk-death", { Image = ima...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/corellia/creatures/plumedRasp.lua
1
4616
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later versio...
lgpl-3.0
zain211/zain.aliraqe
block.lua
9
2416
local function addword(msg, name) local hash = 'chat:'..msg.to.id..':badword' redis:hset(hash, name, 'newword') return "word has been add\n>"..name end local function get_variables_hash(msg) return 'chat:'..msg.to.id..':badword' end local function list_variablesbad(msg) local hash = get_variable...
gpl-3.0
thkhxm/TGame
Assets/StreamingAssets/lua/UnityEngine/Touch.lua
8
2019
-------------------------------------------------------------------------------- -- Copyright (c) 2015 - 2016 , 蒙占志(topameng) topameng@gmail.com -- All rights reserved. -- Use, modification and distribution are subject to the "MIT License" -----------------------------------------------------------------...
apache-2.0
mkwia/jc2atc
scripts/warpgui/client/gui.lua
1
10300
class 'WarpGui' function WarpGui:__init() -- Variables self.textColor = Color(200, 50, 200) self.admins = {} self.rows = {} self.acceptButtons = {} self.whitelistButtons = {} self.whitelist = {} self.whitelistAll = false self.warpRequests = {} self.windowShown = false -- Admins self:AddAdmin("STEAM_0:0:5...
mit
Modified-MW-DF/modified-MDF
MWDF Project/Dwarf Fortress/hack/scripts/combine-plants.lua
2
4033
-- Merge plant stacks in the selected container or stockpile --[====[ combine-plants ============== Merge stacks of plants or plant growths in the selected container or stockpile. ]====] local utils = require 'utils' validArgs = validArgs or utils.invert({ 'max', 'stockpile', 'container' }) local args = u...
mit
IchyTheDev/invaders
main.lua
2
2364
function love.load() hero = {} hero.x = 300 hero.y = 450 hero.speed = 100 hero.shots = {} hero.width = 30 hero.height = 15 enemies = {} for i=0,7 do enemy = {} enemy.width = 40 enemy.height = 20 enemy.x = i * (enemy.width + 60) + 100 enemy.y = enemy.height + 100 table.insert(enem...
mit
TheAnswer/FirstTest
bin/scripts/slashcommands/entertainer/changeDance.lua
1
2669
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later version. ...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/object/static/installation/objects.lua
1
18020
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later ve...
lgpl-3.0
weiDDD/WSSParticleSystem
cocos2d/cocos/scripting/lua-bindings/auto/api/RichText.lua
1
2808
-------------------------------- -- @module RichText -- @extend Widget -- @parent_module ccui -------------------------------- -- brief Insert a RichElement at a given index.<br> -- param element A RichElement type.<br> -- param index A given index. -- @function [parent=#RichText] insertElement -- @param ...
apache-2.0
TheAnswer/FirstTest
bin/scripts/slashcommands/auction/auctionAccept.lua
1
2449
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later version. ...
lgpl-3.0
Bubbus/ACFGamemode
gamemode/aaa_autoincludes.lua
1
1118
AddCSLuaFile("autorun/aaa_autoincludes.lua") aaa_debug = false function aaa_IncludeHere(dir) //print("hi from "..dir) local files, folders = file.Find(dir.."/*", "LUA") for k,v in pairs(file.Find(dir.."/*.lua", "LUA")) do if aaa_debug then Msg("AAA: including file \""..dir.."/"..v.."\"!\n") end include(dir.."...
apache-2.0
JarnoVgr/ZombieSurvival
gamemodes/zombiesurvival/entities/weapons/swep_construction_kit/server.lua
1
3735
local function CanPickup( pl, wep ) if (wep:GetClass() == sck_class) then return pl:KeyDown(IN_RELOAD) or !wep.Dropped end end hook.Add("PlayerCanPickupWeapon","SCKPickup",CanPickup) function SWEP:Deploy() self.LastOwner = self.Owner end function SWEP:Holster() self:SetThirdPerson( false ) ...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/artisan/domesticArtsIvClothingRepair/frock.lua
1
4137
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any lat...
lgpl-3.0
Andrettin/Wyrmsun
scripts/languages/armenian_loanwords.lua
1
2548
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/items/objects/tools/smuggler/precisionLaserKnife.lua
1
2275
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later versi...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/object/tangible/space/special_loot/objects.lua
1
15334
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later ve...
lgpl-3.0
asmagill/hammerspoon
extensions/expose/expose.lua
4
45034
--- === hs.expose === --- --- Keyboard-driven expose replacement/enhancement --- --- Warning: this module is still somewhat experimental. --- Should you encounter any issues, please feel free to report them on https://github.com/Hammerspoon/hammerspoon/issues --- or #hammerspoon on irc.libera.chat --- --- With this mod...
mit
TheAnswer/FirstTest
bin/scripts/object/installation/battlefield/destructible/objects.lua
1
87214
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later ve...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/sceneobjects/objects/lairs/naboo/ikopiLair.lua
2
2506
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any lat...
lgpl-3.0
RockySeven3161/Unknown
plugins/location.lua
625
1564
-- Implement a command !loc [area] which uses -- the static map API to get a location image -- Not sure if this is the proper way -- Intent: get_latlong is in time.lua, we need it here -- loadfile "time.lua" -- Globals -- If you have a google api key for the geocoding/timezone api do local api_key = nil local base_...
gpl-2.0
miralireza2/xili_bot
plugins/location.lua
625
1564
-- Implement a command !loc [area] which uses -- the static map API to get a location image -- Not sure if this is the proper way -- Intent: get_latlong is in time.lua, we need it here -- loadfile "time.lua" -- Globals -- If you have a google api key for the geocoding/timezone api do local api_key = nil local base_...
gpl-2.0
devilrap97/alirap97
plugins/ar-onservice.lua
9
1361
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ KICK BOT : طرد البوت ▀▄ ▄▀ ▀▄▀...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/items/objects/weapons/pistols/tanglePistol.lua
1
2417
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any lat...
lgpl-3.0
weiDDD/WSSParticleSystem
cocos2d/cocos/scripting/lua-bindings/auto/api/TiledGrid3D.lua
1
1298
-------------------------------- -- @module TiledGrid3D -- @extend GridBase -- @parent_module cc -------------------------------- -- @overload self, size_table -- @overload self, size_table, cc.Texture2D, bool -- @function [parent=#TiledGrid3D] create -- @param self -- @param #size_table ...
apache-2.0
Andrettin/Wyrmsun
scripts/languages/germanic/bavarian.lua
1
1726
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/naboo/creatures/gnort.lua
1
4610
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later versio...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/tailor/fieldWearIiiMartialGear/ithorianSportsPullover.lua
1
4479
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any lat...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/items/objects/weapons/heavyweapons/main.lua
1
2500
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later versi...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/talus/creatures/fearfulFynockYouth.lua
1
4629
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later versio...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/naboo/npcs/gungan/gunganScout.lua
1
4548
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later versio...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/tatooine/creatures/mountainDewback.lua
1
4755
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later versio...
lgpl-3.0
mkwia/jc2atc
scripts/vehiclemech/client/cVinfo.lua
1
2704
class "vinfo" enabled = false function vinfo:__init() Events:Subscribe("Render", self, self.Render) Events:Subscribe("LocalPlayerChat", self, self.chat) end function vinfo:chat(args) if args.text == "/vinfo" and not enabled then Chat:Print("On.", Color.Orange) enabled = true return false elseif args.text =...
mit
miralireza2/xili_bot
plugins/tweet.lua
634
7120
local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local twitter_url = "https://api.twitter.com/1.1/statuses/user_timeline.json" local client = OAuth.new(consumer_key, consumer_secret, ...
gpl-2.0
bartvm/Penlight
tests/test-list.lua
8
1658
local List = require 'pl.List' local class = require 'pl.class' local test = require 'pl.test' local asserteq, T = test.asserteq, test.tuple -- note that a _plain table_ is made directly into a list local t = {10,20,30} local ls = List(t) asserteq(t,ls) -- you may derive classes from pl.List, and the result...
mit
TheAnswer/FirstTest
bin/scripts/creatures/objects/endor/npcs/gundula/naiveGundulaWorkling.lua
1
4594
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later versio...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/artisan/engineeringITinkering/foodAndChemicalCraftingTool.lua
1
3840
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any lat...
lgpl-3.0
frioux/sysdig
userspace/sysdig/chisels/fdtime_by.lua
18
1437
--[[ Copyright (C) 2013-2014 Draios inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/slashcommands/skills/blindAttack.lua
1
2563
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later version. ...
lgpl-3.0
Andrettin/Wyrmsun
scripts/languages/celtic/irish.lua
1
12528
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//...
gpl-2.0
PAPAGENO-devels/papageno
test/benchmarks/Lua/lua-regression-test/WoW/PetFrame.lua
1
4847
--PET_WARNING_TIME = 55; --PET_FLASH_ON_TIME = 0.5; --PET_FLASH_OFF_TIME = 0.5; function PetFrame_OnLoad() this.attackModeCounter = 0; this.attackModeSign = -1; --this.flashState = 1; --this.flashTimer = 0; CombatFeedback_Initialize(PetHitIndicator, 30); PetFrame_Update(); this:RegisterEvent("UNIT_PE...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/dathomir/npcs/nightsister/nightsisterProtector.lua
1
5096
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later versio...
lgpl-3.0
weiDDD/WSSParticleSystem
cocos2d/cocos/scripting/lua-bindings/auto/api/RotateBy.lua
1
1258
-------------------------------- -- @module RotateBy -- @extend ActionInterval -- @parent_module cc -------------------------------- -- @overload self, float, float, float -- @overload self, float, float -- @overload self, float, vec3_table -- @function [parent=#RotateBy] create ...
apache-2.0
catwell/lua-http-digest
http-digest.lua
1
5023
local md5sum, md5_library local fmt = string.format do -- select MD5 library local ok, mod = pcall(require, "crypto") if ok then local digest = (mod.evp or mod).digest if digest then md5sum = function(str) return digest("md5", str) end md5_library = "crypto" end...
mit
PAPAGENO-devels/papageno
test/benchmarks/Lua/lua-regression-test/grim/dlg_bomb.lua
1
2777
CheckFirstTime("dlg_bomb.lua") bo1 = Dialog:create() bo1.intro = function(arg1) -- line 11 bo1.node = "bomb_node" enable_head_control(FALSE) manny:head_look_at(sl.carla_obj) if not bo1.tried then bo1.tried = TRUE carla:say_line("/slca001/") else carla:say_line("/slca002/") ...
gpl-2.0
fkaa/iceball
pkg/gm/dct/dct.lua
4
4553
--[[ DCT + IDCT mod for Iceball WARNING: This mod is covered by software patents. Not that I actually know which ones, but due to the nature of this being useful for any possible video application whatsoever, it's guaranteed to be covered by some stupid bullshit patent that doesn't have any right to exist, but exists...
gpl-3.0
TheAnswer/FirstTest
bin/scripts/slashcommands/admin/createSpawningElement.lua
1
2481
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later version. ...
lgpl-3.0
Hammerspoon/hammerspoon
extensions/osascript/osascript.lua
4
5177
--- === hs.osascript === --- --- Execute Open Scripting Architecture (OSA) code - AppleScript and JavaScript --- local module = require("hs.libosascript") local fnutils = require("hs.fnutils") -- private variables and methods ----------------------------------------- local processResults = function(ok, object, rawDe...
mit
meysamx0/Crazy
plugins/whitelist.lua
1
2855
do local function get_message_callback (extra , success, result) if result.service then local action = result.action.type if action == 'chat_add_user' or action == 'chat_del_user' or action == 'chat_rename' or action == 'chat_change_photo' then if result.action.user then user_id = result.action.user.peer_...
agpl-3.0
mramir8274/goldnbot
googleimg.lua
42
3165
do local mime = require("mime") local google_config = load_from_file('data/google.lua') local cache = {} --[[ local function send_request(url) local t = {} local options = { url = url, sink = ltn12.sink.table(t), method = "GET" } local a, code, headers, status = http.request(options) return tabl...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/slashcommands/admin/teleport.lua
1
2429
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later version. ...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/naboo/npcs/gungan/gunganGeneral.lua
1
4557
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later versio...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/items/objects/clothing/dresses/dress32.lua
1
2282
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any lat...
lgpl-3.0
praveenjha527/Algorithm-Implementations
Weighted_Random_Distribution/Lua/Yonaba/weighted_random.lua
27
1445
-- Weighted/Biased random distribution implementation -- See : http://codetheory.in/weighted-biased-random-number-generation-with-javascript-based-on-probability/ -- Note: The sum of weights should be 1. That is, all -- weights are decimal values lower than 1. -- Note: As all the implementations given below uses -- ...
mit
TheAnswer/FirstTest
bin/scripts/sceneobjects/objects/lairs/endor/barkMiteLair.lua
1
2516
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any lat...
lgpl-3.0
mrRomeoT/LifeOfOrangeFish
cocos2d/plugin/luabindings/auto/api/FacebookAgent.lua
130
1488
-------------------------------- -- @module FacebookAgent -- @parent_module plugin -------------------------------- -- brief Notifies the events system that the app has launched & logs an activatedApp event. -- @function [parent=#FacebookAgent] activateApp -- @param self -------------------------------- --...
unlicense
weiDDD/WSSParticleSystem
cocos2d/cocos/scripting/lua-bindings/auto/api/TransitionSplitCols.lua
1
1448
-------------------------------- -- @module TransitionSplitCols -- @extend TransitionScene,TransitionEaseScene -- @parent_module cc -------------------------------- -- Returns the action that will be performed.<br> -- return The action that will be performed. -- @function [parent=#TransitionSplitCols] actio...
apache-2.0
technomancy/ss-calandria
mods/orb/init.lua
1
2088
-- a fake lil' OS orb = orb or { mod_dir = (minetest and minetest.get_modpath("orb")) or debug.getinfo(1,"S").source:sub(2, -9):gsub("(/+)$", "/") } if(orb.mod_dir == "") then orb.mod_dir = "." end dofile(orb.mod_dir .. "/utils.lua") dofile(orb.mod_dir .. "/fs.lua") dofile(orb.mod_dir .. "/shell.lua") dofil...
gpl-3.0
yejr/MyDBAtools
bench-tools/sysbench/sysbench/tests/db/oltp.lua
6
2925
pathtest = string.match(test, "(.*/)") or "" dofile(pathtest .. "common.lua") function thread_init(thread_id) set_vars() if (db_driver == "mysql" and mysql_table_engine == "myisam") then begin_query = "LOCK TABLES sbtest WRITE" commit_query = "UNLOCK TABLES" else begin_query = "BEGIN" ...
bsd-3-clause
TheAnswer/FirstTest
bin/scripts/slashcommands/admin/gmRevive.lua
1
2429
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later version. ...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/armorsmith/personalArmorIvPadded/ithorianDefenderGloves.lua
1
5168
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any lat...
lgpl-3.0
Lunovox/minetest_nibirus_game
mods/base/default/trees.lua
5
14612
local random = math.random -- -- Grow trees from saplings -- -- 'can grow' function function default.can_grow(pos) local node_under = minetest.get_node_or_nil({x = pos.x, y = pos.y - 1, z = pos.z}) if not node_under then return false end local name_under = node_under.name local is_soil = minetest.get_item_gro...
agpl-3.0
giltene/wrk2
deps/luajit/src/jit/dump.lua
74
19509
---------------------------------------------------------------------------- -- LuaJIT compiler dump module. -- -- Copyright (C) 2005-2014 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -- -...
apache-2.0
weiDDD/WSSParticleSystem
cocos2d/cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_ui_auto_api.lua
1
6915
-------------------------------- -- @module ccui -------------------------------------------------------- -- the ccui LayoutParameter -- @field [parent=#ccui] LayoutParameter#LayoutParameter LayoutParameter preloaded module -------------------------------------------------------- -- the ccui LinearLayoutPar...
apache-2.0
JarnoVgr/ZombieSurvival
gamemodes/zombiesurvival/gamemode/sv_sigils.lua
1
2959
function GM:OnSigilDestroyed(ent, dmginfo) local numsigils = self:NumSigils() if numsigils > 0 then for _, pl in pairs(player.GetAll()) do pl:CenterNotify({killicon = "default"}, " ", COLOR_RED, translate.ClientGet(pl, "sigil_destroyed"), {killicon = "default"}) if numsigils == 1 then pl:CenterNotif...
gpl-2.0
Hammerspoon/hammerspoon
extensions/base64/base64.lua
4
1408
--- === hs.base64 === --- --- Base64 encoding and decoding --- --- Portions sourced from (https://gist.github.com/shpakovski/1902994). local module = require("hs.libbase64") -- private variables and methods ----------------------------------------- -- Public interface -----------------------------------------------...
mit
zain211/zain.aliraqe
ar-azan.lua
1
3825
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY jOker ▀▄ ▄▀ ▀▄ ▄▀ BY joker (@fuck_8_you) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY joker ▀▄ ▄▀ ▀▄ ▄▀ broadcast : الاذان ▀▄ ▄▀ ▀...
gpl-3.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/rori/creatures/frailSquallMeekAvenger.lua
1
4665
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later versio...
lgpl-3.0
asmagill/hammerspoon
extensions/hints/hints.lua
4
8597
--- === hs.hints === --- --- Switch focus with a transient per-application keyboard shortcut local hints = require "hs.libhints" local window = require "hs.window" local hotkey = require "hs.hotkey" local modal_hotkey = hotkey.modal --- hs.hints.hintChars --- Variable --- This controls the set of characters that will...
mit
Modified-MW-DF/modified-MDF
MWDF Project/Dwarf Fortress/hack/scripts/gui/confirm-opts.lua
2
1922
-- confirm plugin options --[====[ gui/confirm-opts ================ A basic configuration interface for the `confirm` plugin. ]====] confirm = require 'plugins.confirm' gui = require 'gui' Opts = defclass(Opts, gui.FramedScreen) Opts.ATTRS = { frame_style = gui.GREY_LINE_FRAME, frame_title...
mit
TheAnswer/FirstTest
bin/scripts/slashcommands/admin/remote.lua
1
2421
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later version. ...
lgpl-3.0
technomancy/ss-calandria
mods/mesecons/mesecons_extrawires/corner.lua
2
2194
local corner_nodebox = { type = "fixed", fixed = {{ -16/32-0.001, -17/32, -3/32, 0, -13/32, 3/32 }, { -3/32, -17/32, -16/32+0.001, 3/32, -13/32, 3/32}} } local corner_selectionbox = { type = "fixed", fixed = { -16/32-0.001, -18/32, -16/32, 5/32, -12/32, 5/32 }, } local corner_get_rules = function (node) l...
gpl-3.0
chrisdugne/ludum-dare-36
CBE/cbe_core/misc/vs-t.lua
7
4108
-------------------------------------------------------------------------------- --[[ CBE Component: VS-T The VS-T data structure. This implementation is adapted for CBE. VS-T originally stood for something cool, but I can't remember what it is now. Too bad. Bummer. --]] ----------------------------------------------...
bsd-3-clause
gabrielPeart/keys
Build/VSCOKeys.lrplugin/halfway_server/socket/smtp.lua
142
7961
----------------------------------------------------------------------------- -- SMTP client support for the Lua language. -- LuaSocket toolkit. -- Author: Diego Nehab -- RCS ID: $Id: smtp.lua,v 1.46 2007/03/12 04:08:40 diego Exp $ ----------------------------------------------------------------------------- ---------...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/object/tangible/loot/misc/objects.lua
1
93651
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later ve...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/artisan/domesticArtsIiSimpleTailoring/plainShortRobe.lua
1
3848
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any lat...
lgpl-3.0
Andrettin/Wyrmsun
scripts/civilizations/teuton/upgrade.lua
1
11497
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//...
gpl-2.0
praveenjha527/Algorithm-Implementations
Best_First_Search/Lua/Yonaba/handlers/linear_handler.lua
182
1721
-- A linear boundless 1D space map handler -- This handler is devised for 1-directional continuous space, where -- nodes are represented with consecutive integer values: 0, 1, 2, etc. -- Similar to a range (interval) with no bounds. -- i.e., the path from 5 to 0 would be 5, 4, 3, 2, 1, 0. local PATH = (...):gsub('han...
mit
TheAnswer/FirstTest
bin/scripts/creatures/objects/lok/npcs/misc/kole.lua
1
4489
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later versio...
lgpl-3.0
B1GAPTEAM/B1GAPBOT
plugins/lock_eng.lua
14
3154
local function run(msg, matches) if msg.to.type == 'chat' then if is_momod(msg) then return end local data = load_data(_config.moderation.data) if data[tostring(msg.to.id)] then if data[tostring(msg.to.id)]['settings'] then if data[tostring(msg.to.id)]['settings']['lock_eng'...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/object/static/particle/objects.lua
1
242126
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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 2 of the License, --or (at your option) any later ve...
lgpl-3.0