repo_name
stringlengths
6
78
path
stringlengths
4
206
copies
stringclasses
281 values
size
stringlengths
4
7
content
stringlengths
625
1.05M
license
stringclasses
15 values
TheAnswer/FirstTest
bin/scripts/items/bluefrog/belts.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
thkhxm/TGame
Assets/LuaFramework/ToLua/Lua/System/coroutine.lua
7
2582
-------------------------------------------------------------------------------- -- Copyright (c) 2015 - 2016 , 蒙占志(topameng) topameng@gmail.com -- All rights reserved. -- Use, modification and distribution are subject to the "MIT License" -----------------------------------------------------------------...
apache-2.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/dantooine/creatures/hostileThuneMother.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
dani-sj/xy
plugins/info.lua
12
2022
do local function action_by_reply(extra, success, result) local user_info = {} local uhash = 'user:'..result.from.id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..result.from.id..':'..result.to.id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print_name(user)..' ['....
gpl-2.0
TheAnswer/FirstTest
bin/scripts/object/tangible/ship/components/shield_generator/objects.lua
1
180764
--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/items/objects/instruments/slitherhorn.lua
1
2262
--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
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/tailor/casualWearIvComplexClothing/pilotsJacket.lua
1
4327
--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
meysamx0/Crazy
plugins/plugins.lua
1
6429
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
agpl-3.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/tatooine/creatures/bocatt.lua
1
4776
--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/weapons/2H/main.lua
1
2507
--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/tatooine/creatures/rontoFurious.lua
1
4760
--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
perusio/lua-uri
uri/data.lua
2
3391
local M = { _NAME = "uri.data" } local Util = require "uri._util" local URI = require "uri" Util.subclass_of(M, URI) -- This implements the 'data' scheme defined in RFC 2397. local Filter = Util.attempt_require("datafilter") local function _valid_base64 (data) return data:find("^[0-9a-zA-Z/+]*$") end local function...
mit
Andrettin/Wyrmsun
scripts/map_templates/nidavellir/outskirts_of_kal_kartha.lua
1
1656
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//...
gpl-2.0
PAPAGENO-devels/papageno
test/benchmarks/Lua/lua-regression-test/grim/pi.lua
2
7101
CheckFirstTime("pi.lua") pi = Set:create("pi.set", "police interior", { pi_jalws = 0, pi_ovrhd = 1 }) pi.shrinkable = 0.12 pi.talk_to_terry = function() -- line 13 START_CUT_SCENE() start_script(pi.terry_stop_pace, pi) if not pi.talked_to_terry then pi.talked_to_terry = TRUE manny:say_line("...
gpl-2.0
JarnoVgr/ZombieSurvival
gamemodes/zombiesurvival/gamemode/maps/zm_westwood_final.lua
1
1194
hook.Add("InitPostEntityMap", "Adding", function() local ent2 = ents.Create("prop_dynamic_override") if ent2:IsValid() then ent2:SetPos(Vector(-263, -566, -116)) ent2:SetAngles(Angle(90, 0, 0)) ent2:SetKeyValue("solid", SOLID_VPHYSICS) ent2:SetModel(Model("models/props_lab/blastdoor001b.mdl")) e...
gpl-2.0
B1GAPTEAM/B1GAPBOT
plugins/leave_ban.lua
11
2873
local function run(msg, matches) local data = load_data(_config.moderation.data) if msg.action and msg.action.type then local action = msg.action.type if data[tostring(msg.to.id)] then if data[tostring(msg.to.id)]['settings'] then if data[tostring(msg.to.id)]['settings']['leave_ban'] then ...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/endor/creatures/swirlProngPackLeader.lua
1
4688
--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
PAPAGENO-devels/papageno
test/benchmarks/Lua/lua-regression-test/grim/dlg_angelitos.lua
1
17402
CheckFirstTime("dlg_angelitos.lua") an1 = Dialog:create() an1.execute_line = function(arg1, arg2) -- line 10 Dialog.execute_line(an1, arg2, bDontWait) end an1.intro = function(arg1) -- line 15 an1.node = "n1" start_script(manny.walkto_object, manny, fo.pugsy_obj) if bibi.crying then an1[95].off ...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/object/tangible/deed/generator_deed/objects.lua
1
7289
--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/_coresetup/_coresetup.lua
4
28910
--- === hs === --- --- Core Hammerspoon functionality return {setup=function(...) local modpath, frameworkspath, prettypath, fullpath, configdir, docstringspath, hasinitfile, autoload_extensions = ... local tostring,pack,tconcat,sformat,tsort=tostring,table.pack,table.concat,string.format,table.sort local traceb...
mit
Hammerspoon/hammerspoon
extensions/_coresetup/_coresetup.lua
4
28910
--- === hs === --- --- Core Hammerspoon functionality return {setup=function(...) local modpath, frameworkspath, prettypath, fullpath, configdir, docstringspath, hasinitfile, autoload_extensions = ... local tostring,pack,tconcat,sformat,tsort=tostring,table.pack,table.concat,string.format,table.sort local traceb...
mit
REZATITAN/XY
plugins/help.lua
4
4652
do function pairsByKeys(t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] end end return iter end...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/talus/npcs/binayre/binayrePirate.lua
1
4576
--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/admin/destroy.lua
1
2425
--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
bgould/thrift
lib/lua/THttpTransport.lua
16
4749
-- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you ma...
apache-2.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/tatooine/npcs/mosEisley/figrinDan.lua
1
4569
--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
REZATITAN/XY
plugins/id.lua
11
5732
--[[ Print user identification/informations by replying their post or by providing their username or print_name. !id <text> is the least reliable because it will scan trough all of members and print all member with <text> in their print_name. chat_info can be displayed on group, send it into PM, or save as file then...
gpl-2.0
thkhxm/TGame
LuaEncoder/luajit_ios/x86_64/jit/dump.lua
48
19744
---------------------------------------------------------------------------- -- LuaJIT compiler dump module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -- -...
apache-2.0
frioux/awesome-vicious
widgets/net.lua
15
2702
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Adrian C. <anrxc@sysphere.org> -- * (c) 2009, Lucas de Vries <lucas@glacicle.com> --------------------------------------------------- -- {{{ Grab environment local tonumber = tonumber local os = { t...
gpl-2.0
bnwn/ardupilot
Tools/CHDK-Scripts/kap_uav.lua
96
28513
--[[ KAP UAV Exposure Control Script v3.1 -- Released under GPL by waterwingz and wayback/peabody http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script @title KAP UAV 3.1 @param i Shot Interval (sec) @default i 15 @range i 2 120 @param s Total Shots (0=infinite) @default s 0 @range ...
gpl-3.0
TheAnswer/FirstTest
bin/scripts/slashcommands/admin/gmForceCommand.lua
1
2459
--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/civilizations/frankish/upgrade_faction.lua
1
3217
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/talus/creatures/giantDecayMiteQueen.lua
1
4725
--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/cl_deathnotice.lua
1
14791
if not killicon.GetFont then killicon.OldAddFont = killicon.AddFont killicon.OldAddAlias = killicon.AddAlias killicon.OldAdd = killicon.Add local storedfonts = {} local storedicons = {} function killicon.AddFont(sClass, sFont, sLetter, cColor) storedfonts[sClass] = {sFont, sLetter, cColor} return ...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/endor/creatures/boarWolf.lua
1
4682
--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/admin/setFaction.lua
1
2437
--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
aminbotmaker/1283
plugins/xkcd.lua
628
1374
do function get_last_id() local res,code = https.request("http://xkcd.com/info.0.json") if code ~= 200 then return "HTTP ERROR" end local data = json:decode(res) return data.num end function get_xkcd(id) local res,code = http.request("http://xkcd.com/"..id.."/info.0.json") if code ~= 200 then return "HT...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/npcs/imperial/imperialFirstLieutenant.lua
1
4622
--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
frioux/sysdig
userspace/sysdig/chisels/table_generator.lua
18
4388
--[[ 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 e...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/talus/npcs/aakuan/aakuanChampion.lua
1
4673
--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
TheAnswer/FirstTest
bin/scripts/sceneobjects/objects/lairs/corellia/vreltLair.lua
1
2505
--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
Andrettin/Wyrmsun
scripts/civilizations/germanic/upgrade.lua
1
6983
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//...
gpl-2.0
B1GAPTEAM/B1GAPBOT
plugins/me.lua
12
2913
do local function run(msg, matches) if matches[1]:lower() == 'me' or "wai" then if is_sudo(msg) then send_document(get_receiver(msg), "./data/me/sudo.webp", ok_cb, false) return "Your Rank is : SuDo" elseif is_admin(msg) then send_document(get_receiver(msg), "./data/me/admin.webp", ok_cb, false...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/items/objects/campkit/campKit.lua
1
2270
--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/slashcommands/skills/forceKnockdown.lua
1
2576
--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/tailor/fieldWearIiiMartialGear/multipocketBandolier.lua
1
4592
--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/creatures/spawns/dantooine/citys/pirateOutpost.lua
1
3696
--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 version. ...
lgpl-3.0
xboot/xboot
examples/graphics/bmfont-graphic-design/DisplayBmtext.lua
1
1297
local DisplayObject = DisplayObject local DisplayImage = DisplayImage local Image = Image local Xfs = Xfs local M = Class(DisplayObject) local function startsWith(str1, str2) return str1:sub(1, #str2) == str2 end local function lineToTable(line) local result = {} for pair in line:gmatch("%a+=[-%d]+")...
mit
jesstelford/time-prototype
Scenery/Wall.lua
1
1203
Scenery_Wall = {} -- avoid circular dependancies Scenery_Abstract = Scenery_Abstract or require "Scenery.Abstract" Collidable_Abstract = Collidable_Abstract or require "Collidable.Abstract" Collidable_Polygon = Collidable_Polygon or require "hardoncollider.polygon" Collidable_Shapes = Collidable_Shapes or require "hard...
bsd-2-clause
TheAnswer/FirstTest
bin/scripts/slashcommands/generic/setMood.lua
1
2457
--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/corellia/npcs.lua
1
7725
--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/naboo/creatures/veermokSentry.lua
1
4688
--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
raffomania/MAVE
src/main.lua
1
3429
local lovetoys = require("lib/lovetoys/lovetoys") lovetoys.initialize({ debug = true, globals = true }) require("helper/saves") require("helper/tables") require("helper/menu") require("helper/math") require("core/resources") require("core/stackhelper") require("core/gameplay") require("core/util") require("co...
gpl-3.0
aqasaeed/kirekhar
plugins/inrealm.lua
10
24043
-- 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
weiDDD/WSSParticleSystem
cocos2d/cocos/scripting/lua-bindings/script/framework/extends/MenuEx.lua
1
1259
--[[ 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, publi...
apache-2.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/talus/npcs/fedDub/fedDubCaptain.lua
1
4558
--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/skills/creatureSkills/lok/creatures/gurnasetAttacks.lua
1
2797
--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
bartvm/Penlight
tests/test-func.lua
7
2091
require 'pl' asserteq = require('pl.test').asserteq utils.import('pl.func') -- _DEBUG = true function pprint (t) print(pretty.write(t)) end function test (e) local v = {} print('test',collect_values(e,v)) if #v > 0 then pprint(v) end local rep = repr(e) print(rep) end function teste (...
mit
fkaa/iceball
pkg/iceball/config/main_client.lua
1
9226
--[[ This file is part of Ice Lua Components. Ice Lua Components 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. ...
gpl-3.0
JarnoVgr/ZombieSurvival
gamemodes/zombiesurvival/entities/weapons/weapon_zs_base_dual/animations.lua
4
13850
--[[******************************************************* SWEP Construction Kit base code Created by Clavus Available for public use, thread at: facepunch.com/threads/1032378 DESCRIPTION: This script is meant for experienced scripters that KNOW WHAT THEY ARE DOING. Don't come to me with bas...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/skills/creatureSkills/rori/npcs/cobralAttacks.lua
1
2833
--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
Entware/openwrt-packages
net/smartsnmpd/files/mibs/system.lua
158
6428
-- -- This file is part of SmartSNMP -- Copyright (C) 2014, Credo Semiconductor Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 2 of the License, or -- (at your optio...
gpl-2.0
gabrielPeart/keys
VSCOKeys.lrdevplugin/halfway_server/coxpcall.lua
19
1940
------------------------------------------------------------------------------- -- Coroutine safe xpcall and pcall versions -- -- Encapsulates the protected calls with a coroutine based loop, so errors can -- be dealed without the usual Lua 5.x pcall/xpcall issues with coroutines -- yielding inside the call to pcall or...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/architect/installationsiFactories/Copy of deedForWearablesFactory.lua
1
4376
--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
yunfan/packages
net/luci-app-squid/files/squid-cbi.lua
95
1822
--[[ LuCI Squid module Copyright (C) 2015, OpenWrt.org 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/licenses/LICENSE-2.0 Author: Marko Ratkaj <marko.ratkaj@sartura.hr> ...
gpl-2.0
PAPAGENO-devels/papageno
test/benchmarks/Lua/lua-regression-test/grim/mf.lua
1
7448
CheckFirstTime("mf.lua") mf = Set:create("mf.set", "Meadow Flowers", { mf_medoh = 0, mf_ovrhd = 1 }) dofile("md_dying.lua") mf.look_right_point = { x = -0.03975, y = -0.1272, z = 0.456 } mf.look_left_point = { x = 0.18425, y = -0.1272, z = 0.456 } mf.look_heart_point = { x = 0.12225, y = -0.2462, z = 0.279 } mf.look_ha...
gpl-2.0
miralireza2/xili_bot
plugins/exchange.lua
352
2076
local ltn12 = require "ltn12" local https = require "ssl.https" -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local function comma_value(n) -- credit http://richard.warburton.it local left,num,right = string.match(n,'^([^%d]*%d)(%d*)(.-)$') return left..(num:reverse():gsub('...
gpl-2.0
zhityer/zhityer1
plugins/anti-bot.lua
369
3064
local function isBotAllowed (userId, chatId) local hash = 'anti-bot:allowed:'..chatId..':'..userId local banned = redis:get(hash) return banned end local function allowBot (userId, chatId) local hash = 'anti-bot:allowed:'..chatId..':'..userId redis:set(hash, true) end local function disallowBot (userId, ch...
gpl-2.0
Modified-MW-DF/modified-MDF
MWDF Project/Dwarf Fortress/hack/lua/plugins/eventful.lua
2
7354
local _ENV = mkmodule('plugins.eventful') --[[ --]] local function getShopName(btype,bsubtype,bcustom) local typenames_shop={[df.workshop_type.Carpenters]="CARPENTERS",[df.workshop_type.Farmers]="FARMERS", [df.workshop_type.Masons]="MASONS",[df.workshop_type.Craftsdwarfs]="CRAFTSDWARFS", [...
mit
TheAnswer/FirstTest
bin/scripts/creatures/objects/endor/npcs/pubam/pubamBattlelord.lua
1
4589
--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/object/static/structure/dathomir/objects.lua
1
19539
--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
gamelogic/lua_for_server/data/skill_data.lua
1
12677
--------------------------- --the data's from an Excel, don't edit it here --------------------------- local value_list = {} value_list[20100] = {id = 20100, name = "魂器天赋", learn_level = 1, learn_quity = nil, price = 26, level_count = 1, skill_level = 1, target = 1, section_count = nil, damage_factor = nil, damage...
mit
shahabsaf1/test
plugins/yoda.lua
642
1199
local ltn12 = require "ltn12" local https = require "ssl.https" -- 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(text) local api = "https://yoda.p.mashape.com/yoda?" text = ...
gpl-2.0
devilrap97/alirap97
plugins/inrealm.lua
30
36636
-- 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_admin1(msg) then local group_creator = msg.from.print_name create_group_chat (group_creator, group_na...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/items/objects/clothing/dresses/dress5.lua
1
2279
--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
TheAnswer/FirstTest
bin/scripts/creatures/objects/talus/npcs/lostAqualish/lostAqualishCaptain.lua
1
4621
--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/armorsmith/layersIvExoticProtection/acidProtectionArmorLayer.lua
1
4424
--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/settlements_hungary.lua
1
3414
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/object/tangible/mission/quest_item/objects.lua
1
377651
--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/tailor/formalWearIvHighFashion/ithorianKhakis.lua
1
4486
--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
devilrap97/alirap97
plugins/admin.lua
41
9539
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(rec...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/slashcommands/skills/volleyFireAttack.lua
1
2571
--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/map_templates/earth/france.lua
1
1864
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/lok/creatures/feralGurk.lua
1
4716
--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/talus/creatures/crazedRoba.lua
1
4695
--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
mramir8274/goldnbot
plugins/inv.lua
30
1026
-- Invite other user to the chat group. -- Use !invite name User_name or !invite id id_number -- The User_name is the print_name (there are no spaces but _) do local function callback(extra, success, result) vardump(success) vardump(result) end local function run(msg, matches) local user = matches[2] -- Use...
gpl-2.0
Andrettin/Wyrmsun
scripts/civilizations/kobold/upgrade_dependencies.lua
1
1499
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/object/tangible/loot/collectible/collectible_rewards/objects.lua
1
10246
--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
chrisdugne/ludum-dare-36
src/components/Banner.lua
1
1861
-------------------------------------------------------------------------------- local Banner = {} -------------------------------------------------------------------------------- function Banner:large(options) local banner = display.newGroup() options.parent:insert(banner) local image = display.newIma...
bsd-3-clause
Xeltor/ovale
libs/AceGUI-3.0/widgets/AceGUIContainer-Frame.lua
7
9342
--[[----------------------------------------------------------------------------- Frame Container -------------------------------------------------------------------------------]] local Type, Version = "Frame", 26 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidgetVersion(Type) or ...
mit
weiDDD/WSSParticleSystem
cocos2d/cocos/scripting/lua-bindings/auto/api/SkewTo.lua
1
1233
-------------------------------- -- @module SkewTo -- @extend ActionInterval -- @parent_module cc -------------------------------- -- Creates the action.<br> -- param t Duration time, in seconds.<br> -- param sx Skew x angle.<br> -- param sy Skew y angle.<br> -- return An autoreleased SkewTo object. -- @f...
apache-2.0
mkwia/jc2atc
scripts/poll/server/poll_server.lua
1
1557
function chat(args) if string.sub(args.text, 1, 6) == "/poll " then local id = args.player:GetSteamId().string local text = args.text local query = SQL:Query("SELECT steamID FROM acl_members WHERE steamID = ? and (groups = ? or groups = ? or groups = ?)") query:Bind ( 1, id ) query:Bind ( 2, "[".."\""....
mit
JarnoVgr/ZombieSurvival
gamemodes/zombiesurvival/entities/weapons/weapon_zs_mine/shared.lua
1
8561
-- © Limetric Studios ( www.limetricstudios.com ) -- All rights reserved. -- See LICENSE.txt for license information AddCSLuaFile() SWEP.HoldType = "melee" --Ported by Duby if CLIENT then SWEP.PrintName = "Explosive" SWEP.Slot = 4 SWEP.SlotPos = 1 SWEP.DrawCrosshair = false SWEP.ShowViewModel = tru...
gpl-2.0
BILLPC2684/TGR-PRTO-Love2D
DEV-BUILD-May-Crash/bin/init.lua
1
5720
--###########################-- --###########################-- --# THE GAME RAZER #-- --# INIT STARTUP FILE #-- --# **DO NOT EDIT** #-- --###########################-- --###########################-- --###########################-- --private RAM location 0x7FF0000-0x8000000 --ffi = ...
mit
TheAnswer/FirstTest
bin/scripts/creatures/objects/lok/creatures/langlatchHatchling.lua
1
4713
--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
wangfakang/ABTestingGateway
diversion/diversion.lua
22
7762
local runtimeModule = require('abtesting.adapter.runtime') local redisModule = require('abtesting.utils.redis') local systemConf = require('abtesting.utils.init') local handler = require('abtesting.error.handler').handler local ERRORINFO = require('abtesting.error.errcode').info local cjson = requi...
mit
hamode-Aliraq/HAMODE_ALIRAQE
plugins/sudolist.lua
1
1505
do local function run(msg, matches) if is_sudo(msg) and matches[1]== "vip" then return [[ 🃏🔱 SUPER BOT IRAQ 🔱🃏 ________________________ /add :: تفعيل البوت | 📢 /rem :: الغاء تفعيل البوت | 🔕 /creategroup :: صنع كروب | ☑️ /banall :: حضر عام | 📛 /unbanall :: الغاء الحضر العام | 🚫 /gbanlist :: قائمة المحضورين عا...
gpl-2.0
Andrettin/Wyrmsun
scripts/tilesets/dungeon.lua
1
8700
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//...
gpl-2.0
Andrettin/Wyrmsun
scripts/civilizations/ettin/factions.lua
1
2295
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//...
gpl-2.0
ArashFaceBook/Virus
plugins/youtube.lua
644
1722
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 function get_yt_data (yt_code) local url = 'https://www.googleapis.com/yo...
gpl-2.0