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 |
|---|---|---|---|---|---|
Sonicrich05/FFXI-Server | scripts/zones/Port_Bastok/npcs/Kurando.lua | 38 | 2161 | -----------------------------------
-- Area: Port Bastok
-- NPC: Kurando
-- Type: Quest Giver
-- @zone: 236
-- @pos -23.887 3.898 0.870
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
---------------------... | gpl-3.0 |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Buburimu_Peninsula/npcs/Craigine_RK.lua | 4 | 2909 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Craigine, R.K.
-- Border Conquest Guards
-- @pos -599.903 -41.441 165.776 118
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conqu... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/zones/Sea_Serpent_Grotto/npcs/Treasure_Chest.lua | 19 | 3486 | -----------------------------------
-- Area: Sea Serpent Grotto
-- NPC: Treasure Chest
-- @zone 176
-----------------------------------
package.loaded["scripts/zones/Sea_Serpent_Grotto/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
requir... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/zones/Windurst_Waters/npcs/Kopopo.lua | 33 | 1196 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Kopopo
-- Guild Merchant NPC: Cooking Guild
-- @pos -103.935 -2.875 74.304 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/zones/Northern_San_dOria/npcs/Chasalvige.lua | 19 | 1712 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Chasalvige
-- Type: Standard Info NPC
-- Involved in Mission: The Road Forks
-- Involved in Mission: Promathia Mission 5 - Three Paths
-- @zone: 231
-- @pos 96.432 -0.520 134.046
--
-----------------------------------
require("scripts/globa... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/zones/Metalworks/npcs/Fariel.lua | 34 | 2197 | -----------------------------------
-- Area: Metalworks
-- NPC: Fariel
-- Type: Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Metalworks/TextIDs");
require("scripts/globals/pathfind");... | gpl-3.0 |
cwarden/mysql-proxy | tests/suite/testenv/fileutils.lua | 1 | 1970 | --[[ $%BEGINLICENSE%$
Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; version 2 of the
License.
This program is dis... | gpl-2.0 |
parsaghx/t | plugins/stickermarker.lua | 28 | 2159 | local function run(msg, matches)
local text = URL.escape(matches[1])
local color = 'blue'
if matches[2] == 'red' then
color = 'red'
elseif matches[2] == 'black' then
color = 'black'
elseif matches[2] == 'blue' then
color = 'blue'
elseif matches... | gpl-2.0 |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/items/mushroom_salad.lua | 2 | 1292 | -----------------------------------------
-- ID: 5678
-- Item: mushroom_salad
-- Food Effect: 180Min, All Races
-----------------------------------------
-- MP 85
-- Agility 6
-- Mind 6
-- Strength -5
-- Vitality -5
-----------------------------------------
require("scripts/globals/status");
-------------------------... | gpl-3.0 |
fruitwasp/DarkRP | entities/entities/spawned_shipment/commands.lua | 1 | 3065 | --[[---------------------------------------------------------------------------
Create a shipment from a spawned_weapon
---------------------------------------------------------------------------]]
local function createShipment(ply, args)
local id = tonumber(args) or -1
local ent = Entity(id)
ent = IsValid... | mit |
Sonicrich05/FFXI-Server | scripts/zones/North_Gustaberg/npcs/Shigezane_IM.lua | 28 | 3150 | -----------------------------------
-- Area: North Gustaberg
-- NPC: Shigezane, I.M.
-- Type: Outpost Conquest Guards
-- @pos -584.687 39.107 54.281 106
-------------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
-------------------------------------
require("scripts/... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/globals/items/mercanbaligi.lua | 18 | 1262 | -----------------------------------------
-- ID: 5454
-- Item: Mercanbaligi
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 4
-- Mind -6
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----... | gpl-3.0 |
Servius/tfa-sw-weapons-repository | In Development/servius_development/low_rez_kotor_assets/lua/weapons/holdoutblaster2/shared.lua | 1 | 18059 | SWEP.Author = "Velian"
SWEP.Contact = "velianhailfrost@gmail.com"
--SWEP.Purpose = "What your SWep does."
--SWEP.Instructions = "How to operate your SWep"
SWEP.PrintName = "Holdout2"
SWEP.Spawnable = true -- Whether regular players can see it
SWEP.AdminSpawnable = true -- Whether Admins/Super Admins can see it
SWEP.... | apache-2.0 |
Servius/tfa-sw-weapons-repository | In Development/servius_development/low_rez_kotor_assets/lua/weapons/heavyrepeatingblaster2/shared.lua | 1 | 17589 | SWEP.Author = "Velian"
SWEP.Contact = "velianhailfrost@gmail.com"
--SWEP.Purpose = "What your SWep does."
--SWEP.Instructions = "How to operate your SWep"
SWEP.PrintName = "HeavyRepeatingBlaster2"
SWEP.Spawnable = true -- Whether regular players can see it
SWEP.AdminSpawnable = true -- Whether Admins/Super Admins can... | apache-2.0 |
bright-things/ionic-luci | applications/luci-app-adblock/luasrc/model/cbi/adblock.lua | 1 | 2909 | -- Copyright 2016 Openwrt.org
-- Licensed to the public under the Apache License 2.0.
m = Map("adblock", translate("Adblock"),
translate("Configuration of the adblock package to block ad/abuse domains by using DNS."))
-- General options
s = m:section(NamedSection, "global", "adblock", translate("Global options"))
... | apache-2.0 |
projectbismark/luci-bismark | applications/luci-ahcp/luasrc/controller/ahcp.lua | 13 | 1547 | --[[
LuCI - Lua Configuration Interface
Copyright 2011 Jo-Philipp Wich <xm@subsignal.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
$Id: init.lua... | apache-2.0 |
Sonicrich05/FFXI-Server | scripts/zones/Bhaflau_Thickets/npcs/qm1.lua | 16 | 1188 | -----------------------------------
-- Area: Bhaflau Thickets
-- NPC: ??? (Spawn Lividroot Amooshah(ZNM T2))
-- @pos 334 -10 184 52
-----------------------------------
package.loaded["scripts/zones/Bhaflau_Thickets/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bhaflau_Thickets/TextIDs");... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/globals/mobskills/Bilgestorm.lua | 12 | 1250 | ---------------------------------------------
-- Bilgestorm
--
-- Description: Deals damage in an area of effect. Additional effect: Lowers attack, accuracy, and defense
-- Type: Physical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: Unknown
-- Notes: Only used at low health.*Experienced the use at 75%... | gpl-3.0 |
mandrav/moai_pex_editor | src/hp/util/MOAIPropUtil.lua | 1 | 11370 | --------------------------------------------------------------------------------
-- This is a utility class for MOAIProp.<br>
--------------------------------------------------------------------------------
local M = {}
--------------------------------------------------------------------------------
-- Sets the positi... | mit |
emadni/launcherlordbot | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
Siliconsoul/mirror-askozia-svn | misc/luabash/md5/md5.lua | 4 | 1253 | -- --- T2-COPYRIGHT-NOTE-BEGIN ---
-- This copyright note is auto-generated by ./scripts/Create-CopyPatch.
--
-- T2 SDE: misc/luabash/md5/md5.lua
-- Copyright (C) 2006 The T2 SDE Project
-- Copyright (C) 2005 Roberto Ierusalimschy
--
-- More information can be found in the files COPYING and README.
--
-- This progra... | gpl-2.0 |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/The_Sanctuary_of_ZiTah/npcs/Credaurion_RK.lua | 4 | 2959 | -----------------------------------
-- Area: The Sanctuary of Zi'Tah
-- NPC: Credaurion, R.K.
-- Outpost Conquest Guards
-- @pos -40.079 -0.642 -148.785 121
-----------------------------------
package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Konschtat_Highlands/npcs/Telepoint.lua | 2 | 1563 | -----------------------------------
-- Area: Konschtat Highlands
-- NPC: Telepoint
-----------------------------------
package.loaded["scripts/zones/Konschtat_Highlands/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Konschtat_Highlands/TextIDs");
----... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/globals/items/smoked_salmon.lua | 35 | 1196 | -----------------------------------------
-- ID: 4380
-- Item: smoked_salmon
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 2
-- Mind -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItem... | gpl-3.0 |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Lower_Jeuno/npcs/Parike-Poranke.lua | 3 | 1045 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Parike-Poranke
-- Type: Adventurer's Assistant
-- @zone: 245
-- @pos: -33.161 -1 -61.303
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
----... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/zones/Northern_San_dOria/npcs/Danngogg.lua | 36 | 1427 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Danngogg
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/zones/Port_Jeuno/npcs/_6u4.lua | 17 | 1390 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Door: Departures Exit (for San D'Oria)
-- @zone 246
-- @pos -76 8 54
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require(... | gpl-3.0 |
correa/domoticz | dzVents/runtime/integration-tests/scScene.lua | 19 | 1493 | local log
local dz
local err = function(msg)
log(msg, dz.LOG_ERROR)
end
local tstMsg = function(msg, res)
print('Scene trigger, ' .. msg .. ': ' .. tostring(res and 'OK' or 'FAILED'))
end
local expectEql = function(attr, test, marker)
if (attr ~= test) then
local msg = tostring(attr) .. '~=' .. tostring(test)
... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/globals/items/marron_glace.lua | 35 | 1337 | -----------------------------------------
-- ID: 4502
-- Item: Marron Glace
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Magic % 13
-- Magic Cap 85
-- Magic Regen While Healing 1
-----------------------------------------
require("scripts/globals/status");
----------------... | gpl-3.0 |
bright-things/ionic-luci | protocols/luci-proto-3g/luasrc/model/cbi/admin_network/proto_3g.lua | 52 | 4346 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local device, apn, service, pincode, username, password, dialnumber
local ipv6, maxwait, defaultroute, metric, peerdns, dns,
keepalive_failure, keepalive_interval, demand
d... | apache-2.0 |
premake/premake-core | modules/vstudio/tests/vc200x/test_platforms.lua | 12 | 1318 | --
-- tests/actions/vstudio/vc200x/test_platforms.lua
-- Test the Visual Studio 2002-2008 project's Platforms block
-- Copyright (c) 2009-2012 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vstudio_vc200x_platforms")
local vc200x = p.vstudio.vc200x
--
-- Setup
--
local wk... | bsd-3-clause |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/items/scream_fungus.lua | 3 | 1084 | -----------------------------------------
-- ID: 4447
-- Item: scream_fungus
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Strength -4
-- Mind 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
--------... | gpl-3.0 |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/spells/noctohelix.lua | 2 | 1474 | --------------------------------------
-- Spell: Noctohelix
-- Deals dark damage that gradually reduces
-- a target's HP. Damage dealt is greatly affected by the weather.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/zones/Qufim_Island/npcs/Trodden_Snow.lua | 19 | 4780 | -----------------------------------
-- Area: Qufim Island
-- NPC: Trodden Snow
-- Mission: ASA - THAT_WHICH_CURDLES_BLOOD
-- Mission: ASA - SUGAR_COATED_DIRECTIVE
-- @zone 126
-- @pos -19 -17 104
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
----------------------------... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/zones/The_Eldieme_Necropolis/npcs/_5f4.lua | 34 | 1106 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Titan's Gate
-- @pos 180 -34 -15 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs")... | gpl-3.0 |
FelixPe/nodemcu-firmware | tests/NTest_file_lfs.lua | 4 | 2629 | -- luacheck: globals file
-- luacheck: new read globals node.LFS.resource
file = require("file_lfs")
local Nt = ...
Nt = (Nt or require "NTest")
-- check standard SPIFFS file functions
loadfile("NTest_file.lua")(Nt)
local N = Nt("file_lfs")
N.test('resource.lua in LFS', function()
ok(node.LFS.resource~=nil, "reso... | mit |
Sonicrich05/FFXI-Server | scripts/zones/Selbina/npcs/Vobo.lua | 17 | 1507 | -----------------------------------
-- Area: Selbina
-- NPC: Vobo
-- Involved in Quest: Riding on the Clouds
-- @pos 37 -14 81 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
requir... | gpl-3.0 |
ferisystem/TeleTard | plugins/banhammer.lua | 214 | 11956 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
Sonicrich05/FFXI-Server | scripts/zones/Windurst_Waters/npcs/Ohbiru-Dohbiru.lua | 5 | 9387 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Ohbiru-Dohbiru
-- Involved in quest: Food For Thought
-- Starts and finishes quest: Toraimarai Turmoil
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("scripts/globals/quests");... | gpl-3.0 |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Lower_Delkfutts_Tower/npcs/_545.lua | 2 | 1534 | -----------------------------------
-- Area: Lower Delkfutt's Tower
-- NPC: Cermet Door
-- Spawns a mob in CoP. Never opens.
-----------------------------------
package.loaded["scripts/zones/Lower_Delkfutts_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scrip... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/zones/Valkurm_Dunes/npcs/Song_Runes.lua | 17 | 1718 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: Song Runes
-- Finishes Quest: Path of the Bard
-- @pos -721 -7 102 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
package.loaded["scripts/globals/settings"] = nil;
--------------------------... | gpl-3.0 |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Northern_San_dOria/npcs/Prerivon.lua | 5 | 1026 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Prerivon
-- Type: Standard Dialogue NPC
-- @zone: 231
-- @pos: 142.324 0.000 132.515
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs")... | gpl-3.0 |
nrodriguez/SpellGainz | libs/AceGUI-3.0/widgets/AceGUIContainer-DropDownGroup.lua | 65 | 4515 | --[[-----------------------------------------------------------------------------
DropdownGroup Container
Container controlled by a dropdown on the top.
-------------------------------------------------------------------------------]]
local Type, Version = "DropdownGroup", 21
local AceGUI = LibStub and LibStub("AceGUI-... | gpl-3.0 |
ShmooDude/ovale | libs/AceGUI-3.0/widgets/AceGUIContainer-DropDownGroup.lua | 65 | 4515 | --[[-----------------------------------------------------------------------------
DropdownGroup Container
Container controlled by a dropdown on the top.
-------------------------------------------------------------------------------]]
local Type, Version = "DropdownGroup", 21
local AceGUI = LibStub and LibStub("AceGUI-... | gpl-2.0 |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Yuhtunga_Jungle/mobs/Overgrown_Rose.lua | 4 | 1327 | -----------------------------------
-- Area: Yuhtunga Jungle
-- MOB: Overgrown Rose
-----------------------------------
function OnMobRoam(mob)
local Rose_Garden = 17281357;
local Rose_Garden_PH = 0;
local Rose_Garden_PH_Table =
{
17281356
};
local Rose_Garden_ToD = GetMobByID(Rose_Garden):getExtraVar(1)... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/zones/Southern_San_dOria/npcs/Vemalpeau.lua | 17 | 2519 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Vemalpeau
-- Involved in Quests: Under Oath
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts... | gpl-3.0 |
resistor58/deaths-gmod-server | Mad Cows FoF Weapons/lua/weapons/weapon_mad_fof_coachgun/shared.lua | 1 | 1808 | // Variables that are used on both client and server
SWEP.Base = "weapon_mad_fof_base"
SWEP.ViewModelFOV = 55
SWEP.ViewModelFlip = false
SWEP.ViewModel = "models/weapons/v_coachgun.mdl"
SWEP.WorldModel = "models/weapons/w_coachgun.mdl"
SWEP.Spawnable = true
SWEP.AdminSpawnable = false
SWEP... | gpl-3.0 |
maxmax1/fooniks | resources/scoreboard/scoreboard_exports.lua | 2 | 3308 | local NAMECOLUMNSIZE = .55
local PINGCOLUMNSIZE = .1
resourceColumns = {}
isColumn = {name=true,ping=true}
scoreboardColumns = {
{name="name",size=NAMECOLUMNSIZE},
{name="ping",size=PINGCOLUMNSIZE},
}
local rootElement = getRootElement()
addEvent("onClientScoreboardLoaded", true)
addEvent("onClientVisib... | gpl-3.0 |
resistor58/deaths-gmod-server | Mad Cows Weapons/lua/weapons/weapon_mad_dual/shared.lua | 1 | 5954 | // Variables that are used on both client and server
SWEP.Base = "weapon_mad_base"
SWEP.ViewModelFOV = 70
SWEP.ViewModelFlip = true
SWEP.ViewModel = "models/weapons/v_pist_elite.mdl"
SWEP.WorldModel = "models/weapons/w_pist_elite.mdl"
SWEP.Spawnable = true
SWEP.AdminSpawnable = false
SWE... | gpl-3.0 |
oratory/wago.io | backend/api/lua/libs/AceGUI-3.0/widgets/AceGUIContainer-Window.lua | 52 | 9726 | local AceGUI = LibStub("AceGUI-3.0")
-- Lua APIs
local pairs, assert, type = pairs, assert, type
-- WoW APIs
local PlaySound = PlaySound
local CreateFrame, UIParent = CreateFrame, UIParent
-- Global vars/functions that we don't upvalue since they might get hooked, or upgraded
-- List them here for Mikk's FindGlobals... | mit |
oratory/wago.io | backend/api/lua/libs/AceGUI-3.0-SharedMediaWidgets/Libs/AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua | 30 | 7163 | --[[-----------------------------------------------------------------------------
EditBox Widget
-------------------------------------------------------------------------------]]
local Type, Version = "EditBox", 25
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or... | mit |
mahdib9/mahdi | bot/utils.lua | 646 | 23489 | 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 |
mamaddeveloper/mmddev | plugins/twitter_send.lua | 627 | 1555 | do
local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local client = OAuth.new(consumer_key, consumer_secret, {
RequestToken = "https://api.twitter.com/oauth/request_token",
AuthorizeUser = {"https://api.twitter.com/oauth/autho... | gpl-2.0 |
mamadtnt/bot | plugins/twitter_send.lua | 627 | 1555 | do
local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local client = OAuth.new(consumer_key, consumer_secret, {
RequestToken = "https://api.twitter.com/oauth/request_token",
AuthorizeUser = {"https://api.twitter.com/oauth/autho... | gpl-2.0 |
ReccaStudio/ActiveStar | cocos2d/external/lua/luajit/src/src/host/genminilua.lua | 73 | 11943 | ----------------------------------------------------------------------------
-- Lua script to generate a customized, minified version of Lua.
-- The resulting 'minilua' is used for the build process of LuaJIT.
----------------------------------------------------------------------------
-- Copyright (C) 2005-2013 Mike P... | gpl-2.0 |
webwlsong/ABTestingGateway | lib/abtesting/utils/utils.lua | 22 | 1231 | local modulename = "abtestingUtils"
local _M = {}
_M._VERSION = '0.0.1'
local cjson = require('cjson.safe')
--将doresp和dolog,与handler统一起来。handler将返回一个table,结构为:
--[[
handler———errinfo————errcode————code
| | |
| | |————info
| |
| |————er... | mit |
gameloses/cocos2dx_lua_skynet_client | src/cocos/cocos2d/DrawPrimitives.lua | 98 | 12024 |
local dp_initialized = false
local dp_shader = nil
local dp_colorLocation = -1
local dp_color = { 1.0, 1.0, 1.0, 1.0 }
local dp_pointSizeLocation = -1
local dp_pointSize = 1.0
local SHADER_NAME_POSITION_U_COLOR = "ShaderPosition_uColor"
local targetPlatform = cc.Application:getInstance():getTargetPlatform()
lo... | mit |
focusworld/bbb | plugins/id.lua | 50 | 4275 | local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
local function returnids(cb_extra, success, result)
local re... | gpl-2.0 |
chewi/Aquaria | game_scripts/_mods/aquariaeditortutorial/scripts/node_sit.lua | 12 | 1519 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 option) any later vers... | gpl-2.0 |
joehanchoi/hammerspoon | extensions/urlevent/init.lua | 3 | 4377 | --- === hs.urlevent ===
---
--- Allows Hammerspoon to respond to URLs
--- Hammerspoon is configured to react to URLs that start with `hammerspoon://` when they are opened by OS X.
--- This extension allows you to register callbacks for these URL events and their parameters, offering a flexible way to receive events fro... | mit |
RyanSquared/lua-http | http/request.lua | 1 | 19056 | local lpeg = require "lpeg"
local http_patts = require "lpeg_patterns.http"
local uri_patts = require "lpeg_patterns.uri"
local basexx = require "basexx"
local client = require "http.client"
local new_headers = require "http.headers".new
local http_hsts = require "http.hsts"
local http_socks = require "http.socks"
loca... | mit |
RyanSquared/lua-http | spec/stream_common_spec.lua | 2 | 3843 | describe("http.stream_common", function()
local h1_connection = require "http.h1_connection"
local new_headers = require "http.headers".new
local cqueues = require "cqueues"
local ca = require "cqueues.auxlib"
local cs = require "cqueues.socket"
local function new_pair(version)
local s, c = ca.assert(cs.pair())... | mit |
chewi/Aquaria | files/scripts/entities/seaturtle.lua | 6 | 5770 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 option) any later vers... | gpl-2.0 |
NOVAR1/DEV_NOVAR | plugins/locksexe.lua | 4 | 1418 |
local function iq_100k(msg, matches)
if not is_owner(msg) or not is_sudo(msg) then
delete_msg(msg.id, ok_cb, true)
local xxx = "لك لتفشر لا اجي اهينك 😼🌚 \n"..msg.from.first_name.."\n"
return xxx
-- by @iq_100k
end
end
return {
patterns = {
"^(كس)",
"^(عير)",
"^(ديس)",
"^(ديوس)",
"^(عيوره)",
"^(عيورة)",
"^(صرم)",
... | gpl-2.0 |
cgvarela/slurm | contribs/lua/job_submit.lua | 3 | 3372 | --[[
Example lua script demonstrating the SLURM job_submit/lua interface.
This is only an example, not meant for use in its current form.
Leave the function names, arguments, local varialbes and setmetatable
set up logic in each function unchanged. Change only the logic after
the line containing "*** YOUR LOGIC ... | gpl-2.0 |
resistor58/deaths-gmod-server | Nuke Pack 4/lua/effects/nuke_blastwave/old 1.lua | 3 | 1854 |
function EFFECT:Init( data )
self.Position = data:GetOrigin()
self.Yield = data:GetMagnitude()
self.YieldSlow = self.Yield^0.75
self.YieldSlowest = self.Yield^0.3
self.TimeLeft = CurTime() + self.Yield*6
self.SplodeDist = 3100
self.BlastSpeed = 4000
self.WaveResolution = 0.05
self.lastThi... | gpl-3.0 |
vividos/RemotePhotoTool | scripts/BulbShutterRelease.lua | 1 | 4090 | --
-- RemotePhotoTool - remote camera control software
-- Copyright (C) 2008-2016 Michael Fink
-- file BulbShutterRelease.lua - Demo script: Shutter release using Bulb release control
--
-- The App object is a global object, and its run() function is called by the Lua
-- scripting engine when starting the script.
App ... | bsd-2-clause |
zchengquan/nn | SpatialDeconvolution.lua | 1 | 4374 | local SpatialDeconvolution, parent = torch.class('nn.SpatialDeconvolution', 'nn.Module')
function SpatialDeconvolution:__init(nInputPlane, nOutputPlane, kW, kH, dW, dH, padW, padH)
parent.__init(self)
dW = dW or 1
dH = dH or 1
self.nInputPlane = nInputPlane
self.nOutputPlane = nOutputPlane
self.kW ... | bsd-3-clause |
sunxfancy/LR_Parser | test/c-1/init_pcode.lua | 2 | 2230 | -- kind 定义
func_kind = 1
var_kind = 2
param_kind = 3
const_kind = 4
-- 下面是type定义
int_type = 1
real_type = 2
struct_type = 3
class_type = 4
-- 指令定义
LIT = 1
OPR = 2
LOD = 3
STO = 4
CAL = 5
INT = 6
JMP = 7
JPC = 8
RED = 9
WRT = 10
RET = 11
REV = 12
-- 一些杂七杂八的定义
isconstdef = false --用于const标签的属性传递
paramsum = 0
i... | mit |
ruvolof/telegram-bot | plugins/anti-flood.lua | 281 | 2422 | local NUM_MSG_MAX = 5 -- Max number of messages per TIME_CHECK seconds
local TIME_CHECK = 5
local function kick_user(user_id, chat_id)
local chat = 'chat#id'..chat_id
local user = 'user#id'..user_id
chat_del_user(chat, user, function (data, success, result)
if success ~= 1 then
local text = 'I can\'t k... | gpl-2.0 |
Nottinghster/OTServ_SVN-0.6.4 | src/data/talkactions/scripts/createitembynamefront.lua | 1 | 1406 | function onSay( cid, words, param )
local playerPos = getPlayerPosition( cid )
local parameters = serializeParam( param )
local itemname = interpretStringAsWordParam(parameters[1])
if ( itemname == nil )then
doPlayerSendTextMessage( cid, MESSAGE_STATUS_CONSOLE_BLUE, "You need to type the name of the item!"... | gpl-2.0 |
resistor58/deaths-gmod-server | Mad Cows Weapons/lua/weapons/weapon_mad_m249/shared.lua | 1 | 1618 | // Variables that are used on both client and server
SWEP.Base = "weapon_mad_base"
SWEP.ViewModel = "models/weapons/v_mach_m249para.mdl"
SWEP.WorldModel = "models/weapons/w_mach_m249para.mdl"
SWEP.Spawnable = true
SWEP.AdminSpawnable = false
SWEP.Primary.Sound = Sound("Weapon_M249.Single")
S... | gpl-3.0 |
ld-test/loverocks | loverocks/util.lua | 1 | 4917 | local lfs = require 'lfs'
local datafile = require 'datafile'
local T = require 'loverocks.schema'
local log = require 'loverocks.log'
local util = {}
local function slurp_file(fname)
local file, err = io.open(fname, 'r')
assert(file, err)
local s = file:read('*a')
file:close()
return s
end
loca... | mit |
tehran980/tele_HSN | plugins/danbooru.lua | 616 | 1750 | do
local URL = "http://danbooru.donmai.us"
local URL_NEW = "/posts.json"
local URL_POP = "/explore/posts/popular.json"
local scale_day = "?scale=day"
local scale_week = "?scale=week"
local scale_month = "?scale=month"
local function get_post(url)
local b, c, h = http.request(url)
if c ~= 200 then return nil end
... | gpl-2.0 |
tkdrob/Battle-Tag | Packages/TheWolf/Data/Script/Lua/UATheWolf.lua | 1 | 5739 |
--[[--------------------------------------------------------------------------
--
-- File: UAThewolf.lua
-- Copyright (c) Ubisoft Entertainment. All rights reserved.
--
-- Project: Ubitoys.Tag
-- Date: August 29, 2010
--
---------------------------------------------------... | mit |
tehran980/https-github.com-uziins-uzzbot | plugins/banhammer.lua | 294 | 10470 | local function is_user_whitelisted(id)
local hash = 'whitelist:user#id'..id
local white = redis:get(hash) or false
return white
end
local function is_chat_whitelisted(id)
local hash = 'whitelist:chat#id'..id
local white = redis:get(hash) or false
return white
end
local function kick_user(user_id, chat_id)... | gpl-2.0 |
amirik22/uzzbot | plugins/banhammer.lua | 294 | 10470 | local function is_user_whitelisted(id)
local hash = 'whitelist:user#id'..id
local white = redis:get(hash) or false
return white
end
local function is_chat_whitelisted(id)
local hash = 'whitelist:chat#id'..id
local white = redis:get(hash) or false
return white
end
local function kick_user(user_id, chat_id)... | gpl-2.0 |
chewi/Aquaria | files/scripts/maps/node_hint_licombat.lua | 6 | 1144 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 option) any later vers... | gpl-2.0 |
tgclonerteam/goodday | plugins/ingroup.lua | 1 | 57213 | do
-- Check Member
local function check_member_autorealm(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostr... | gpl-2.0 |
petrkr/nodemcu-firmware | app/cjson/tests/bench.lua | 145 | 3247 | #!/usr/bin/env lua
-- This benchmark script measures wall clock time and should be
-- run on an unloaded system.
--
-- Your Mileage May Vary.
--
-- Mark Pulford <mark@kyne.com.au>
local json_module = os.getenv("JSON_MODULE") or "cjson"
require "socket"
local json = require(json_module)
local util = require "cjson.ut... | mit |
chewi/Aquaria | files/scripts/maps/map_forestvision.lua | 6 | 3437 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 option) any later vers... | gpl-2.0 |
resistor58/deaths-gmod-server | Explosives And Nukes/lua/entities/sent_nuke_missile/init.lua | 2 | 2690 | AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include( 'shared.lua' )
local sndThrustLoop = Sound("Missile.Accelerate")
local sndStop = Sound("ambient/_period.wav")
local Arm = function(EntTable)
EntTable.Armed = true
EntTable.Entity:SetNWBool("armed",true)
EntTable.PhysObj:EnableGravity(f... | gpl-3.0 |
zeta0134/LuaGB | love/panels/oam.lua | 1 | 3357 | local bit32 = require("bit")
local oam = {}
oam.width = 320
oam.init = function(gameboy)
oam.canvas = love.graphics.newCanvas(160, 400)
oam.gameboy = gameboy
oam.sprite_imagedata = love.image.newImageData(8, 16)
oam.sprite_image = love.graphics.newImage(oam.sprite_imagedata)
oam.background_8x8_image = love... | bsd-3-clause |
milos-korenciak/heroku-buildpack-tex | buildpack/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/control/ComponentOrder.lua | 3 | 3000 | -- Copyright 2012 by Till Tantau
--
-- This file may be distributed an/or modified
--
-- 1. under the LaTeX Project Public License and/or
-- 2. under the GNU Public License
--
-- See the file doc/generic/pgf/licenses/LICENSE for more information
-- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd... | mit |
tkdrob/Battle-Tag | Packages/TagThenShoot/Data/Script/Lua/UATagThenShoot.Ui.RoundLoop.lua | 1 | 11087 |
--[[--------------------------------------------------------------------------
--
-- File: UATagThenShoot.Ui.RoundLoop.lua
-- Copyright (c) Ubisoft Entertainment. All rights reserved.
--
-- Project: Ubitoys.Tag
-- Date: September 23, 2010
--
---------------------... | mit |
chewi/Aquaria | files/scripts/entities/creatorshadow.lua | 6 | 1740 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 option) any later vers... | gpl-2.0 |
resistor58/deaths-gmod-server | wire/lua/entities/base_wire_entity/cl_init.lua | 1 | 1469 | include("shared.lua")
ENT.RenderGroup = RENDERGROUP_OPAQUE//RENDERGROUP_TRANSLUCENT//RENDERGROUP_BOTH
local wire_drawoutline = CreateClientConVar("wire_drawoutline", 1, true, false)
local wire_drawoutline_bool = wire_drawoutline:GetBool()
cvars.AddChangeCallback("wire_drawoutline", function(...) return wire_c... | gpl-3.0 |
oratory/wago.io | backend/api/lua/wa2json.lua | 1 | 2778 | dofile( "./wago.lua" )
local JSON = (loadfile "./json.lua")()
function table.show(t, name, indent)
local cart -- a container
local autoref -- for self references
--[[ counts the number of elements in a table
local function tablecount(t)
local n = 0
for _, _ in pairs(t) do n = n+1 end
... | mit |
lsmoura/dtb | inc/LibSharedMedia-3.0/LibSharedMedia-3.0.lua | 1 | 8990 | --[[
Name: LibSharedMedia-3.0
Revision: $Revision: 62 $
Author: Elkano (elkano@gmx.de)
Inspired By: SurfaceLib by Haste/Otravi (troeks@gmail.com)
Website: http://www.wowace.com/projects/libsharedmedia-3-0/
Description: Shared handling of media data (fonts, sounds, textures, ...) between addons.
Dependencies: Li... | unlicense |
mSenyor/sl4a | lua/luasocket/samples/cddb.lua | 56 | 1415 | local socket = require("socket")
local http = require("socket.http")
if not arg or not arg[1] or not arg[2] then
print("luasocket cddb.lua <category> <disc-id> [<server>]")
os.exit(1)
end
local server = arg[3] or "http://freedb.freedb.org/~cddb/cddb.cgi"
function parse(body)
local lines = string.gfind(bo... | apache-2.0 |
bestroidd/advan | bot/WaderTGbot.lua | 1 | 15203 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This function is ... | gpl-2.0 |
chewi/Aquaria | files/scripts/maps/_unused/node_spikes.lua | 6 | 1273 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 option) any later vers... | gpl-2.0 |
joehanchoi/hammerspoon | extensions/http/init.lua | 8 | 23616 | -- Simple loader for the Objective C code
local http = require("hs.http.internal")
local utf8 = require("hs.utf8")
local fnutils = require("hs.fnutils")
--- === hs.http ===
---
--- Perform HTTP requests
--- hs.http.get(url, headers) -> int, string, table
--- Function
--- Sends an HTTP GET request to a URL
---
---... | mit |
eagle14/kia14 | plugins/stats.lua | 458 | 4098 | -- Saves the number of messages from a user
-- Can check the number of messages with !stats
do
local NUM_MSG_MAX = 5
local TIME_CHECK = 4 -- seconds
local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name.... | gpl-2.0 |
toxxin/packages | utils/luci-app-lxc/files/controller/lxc.lua | 77 | 2909 | --[[
LuCI LXC module
Copyright (C) 2014, Cisco Systems, Inc.
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: Petar Koretic <petar.koretic@sart... | gpl-2.0 |
resistor58/deaths-gmod-server | wire/lua/weapons/gmod_tool/stools/wire_wirelink.lua | 1 | 4228 | TOOL.Category = "Wire - Tools"
TOOL.Name = "Expression 2 - Wirelink"
TOOL.Command = nil
TOOL.ConfigName = ""
TOOL.Tab = "Wire"
if CLIENT then
language.Add( "Tool_wire_wirelink_name", "Expression 2 Wirelink Tool (Wire)" )
language.Add( "Tool_wire_wirelink_desc", "Adds a wirelink output to any wir... | gpl-3.0 |
Chessnut/moderator | lua/moderator/libs/sh_commands.lua | 3 | 9865 | moderator.commands = moderator.commands or {}
if (SERVER) then
util.AddNetworkString("mod_Command")
function moderator.GetArguments(text, noArrays, delimiter)
delimiter = delimiter or " "
local arguments = {}
local curString = ""
local inString = false
local escaping = 0
local inArray = false
for i ... | gpl-2.0 |
squilter/ardupilot | libraries/AP_Scripting/examples/plane-wind-failsafe.lua | 26 | 1195 | -- warn the user if wind speed exceeds a threshold, failsafe if a second threshold is exceeded
-- note that this script is only intended to be run on ArduPlane
-- tuning parameters
local warn_speed = 10 -- metres/second
local failsafe_speed = 15 -- metres/second
local warning_interval_ms = uint32_t(15000) -- send use... | gpl-3.0 |
GabrielNicolasAvellaneda/boundary-plugin-apache-tomcat | init.lua | 2 | 3793 | -- Copyright 2015 Boundary, Inc.
--
-- 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
--
-- Unless required by applicable law or agreed to i... | apache-2.0 |
chewi/Aquaria | files/scripts/maps/node_naija_singing.lua | 6 | 1163 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 option) any later vers... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.