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 |
|---|---|---|---|---|---|
Stevie-O/SharpLua | test_suite/math.lua | 11 | 5437 | print("testing numbers and math lib")
do
local a,b,c = "2", " 3e0 ", " 10 "
assert(a+b == 5 and -b == -3 and b+"2" == 5 and "10"-c == 0)
assert(type(a) == 'string' and type(b) == 'string' and type(c) == 'string')
assert(a == "2" and b == " 3e0 " and c == " 10 " and -c == -" 10 ")
assert(c%a == 0 and a^b =... | mit |
Enignite/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Caiphimonride.lua | 37 | 1316 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Caiphimonride
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
require("scripts/zones/Tavnazian_Safehold/TextIDs");
---------... | gpl-3.0 |
haberman/gazelle | tests/test_minimize.lua | 1 | 1262 | --[[--------------------------------------------------------------------
Gazelle: a system for building fast, reusable parsers
tests/test_minimize.lua
Tests for DFA minimization.
--------------------------------------------------------------------]]--
require "luaunit"
require "data_structures"
require "fa"
... | bsd-3-clause |
TeleSudo/TeleRedStar | plugins/on_off.lua | 1 | 1938 | -- Checks if bot was disabled on specific chat
local function is_channel_disabled( receiver )
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable_channel(receiver)
if... | agpl-3.0 |
troopizer/ot-server | data/lib/compat/compat.lua | 1 | 36140 | TRUE = true
FALSE = false
result.getDataInt = result.getNumber
result.getDataLong = result.getNumber
result.getDataString = result.getString
result.getDataStream = result.getStream
LUA_ERROR = false
LUA_NO_ERROR = true
STACKPOS_GROUND = 0
STACKPOS_FIRST_ITEM_ABOVE_GROUNDTILE = 1
STACKPOS_SECOND_ITEM_ABOVE_GROUNDTILE... | gpl-2.0 |
Enignite/darkstar | scripts/zones/Northern_San_dOria/npcs/Fittesegat.lua | 38 | 1029 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Fittesegat
-- Type: Standard Dialogue NPC
-- @zone: 231
-- @pos 144.250 0.000 138.203
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs"... | gpl-3.0 |
Enignite/darkstar | scripts/globals/spells/bluemagic/sound_blast.lua | 18 | 1409 | -----------------------------------------
-- Spell: Sound Blast
-- Lowers Intelligence of enemies within range.
-- Spell cost: 25 MP
-- Monster Type: Birds
-- Spell Type: Magical (Fire)
-- Blue Magic Points: 1
-- Stat Bonus: None
-- Level: 32
-- Casting Time: 4 seconds
-- Recast Time: 30 seconds
-- Magic Bur... | gpl-3.0 |
Enignite/darkstar | scripts/zones/Bastok_Markets/npcs/Loulia.lua | 37 | 1076 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Loulia
-- Type: Room Renters
-- @zone: 235
-- @pos -176.212 -9 -25.049
--
-- Auto-Script: Requires Verification. Validated standard dialog - thrydwolf 12/8/2011
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/Tex... | gpl-3.0 |
fcpxhacks/fcpxhacks | src/tests/cp/spec/tests_spec.lua | 2 | 1517 | local spec = require "cp.spec"
local timer = require "hs.timer"
local describe, context, it = spec.describe, spec.context, spec.it
return describe "cp.spec.tests" {
it "passes when all asserts are true"
:doing(function()
assert(true, "OK")
end),
it "fails when an... | mit |
Enignite/darkstar | scripts/globals/spells/suiton_san.lua | 17 | 1629 | -----------------------------------------
-- Spell: Suiton: San
-- Deals water damage to an enemy and lowers its resistance against lightning.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCas... | gpl-3.0 |
troopizer/ot-server | data/npc/scripts/huntingbree.lua | 1 | 6599 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCre... | gpl-2.0 |
Enignite/darkstar | scripts/globals/items/bunny_ball.lua | 35 | 1739 | -----------------------------------------
-- ID: 4349
-- Item: Bunny Ball
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Health 10
-- Strength 2
-- Vitality 2
-- Intelligence -1
-- Attack % 30
-- Attack Cap 25
-- Ranged ATT % 30
-- Ranged ATT Cap 25
-------------------------... | gpl-3.0 |
sebbASF/infrastructure-puppet | modules/httpd_blocky/files/ip.lua | 2 | 16110 | --
-- IP address manipulation library in Lua
--
-- @author leite (xico@simbio.se)
-- @license MIT
-- @copyright Simbiose 2015, Mashape, Inc. 2017
local ok, bit = pcall(require, "bit")
if not ok and _VERSION > "Lua 5.2" then
bit = assert(load([[return {
band = function(a, b) return a & b end,
bor =... | apache-2.0 |
Enignite/darkstar | scripts/zones/Walk_of_Echoes/Zone.lua | 36 | 1119 | -----------------------------------
--
-- Zone: Walk_of_Echoes
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Walk_of_Echoes/TextIDs"] = nil;
require("scripts/zones/Walk_of_Echoes/TextIDs");
-----------------------------------
-- onInitialize
-... | gpl-3.0 |
troopizer/ot-server | data/spells/scripts/earth/earth enchantment.lua | 1 | 1368 | local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
function onCastSpell(creature, variant, isHotkey)
if(getPlayerStorageValue(creature,2090) == 0) then
--Axe
if(getPlayerItemCount(creature,2430) >= 1 and getPlayerItemCount(creatu... | gpl-2.0 |
sanger-pathogens/annot-nf | bin/genes_gff3_to_csv.lua | 4 | 3097 | #!/usr/bin/env gt
--[[
Author: Sascha Steinbiss <ss34@sanger.ac.uk>
Copyright (c) 2015 Genome Research Ltd
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all co... | isc |
troopizer/ot-server | data/talkactions/scripts/reload.lua | 4 | 3131 | local reloadTypes = {
["all"] = { targetType = RELOAD_TYPE_ALL, name = "all" },
["action"] = { targetType = RELOAD_TYPE_ACTIONS, name = "actions" },
["actions"] = { targetType = RELOAD_TYPE_ACTIONS, name = "actions" },
["chat"] = { targetType = RELOAD_TYPE_CHAT, name = "chatchannels" },
["channel"] = { targetTyp... | gpl-2.0 |
Enignite/darkstar | scripts/globals/mobskills/Trinary_Tap.lua | 13 | 2016 | ---------------------------------------------------
-- Trinary Tap
-- Attempts to absorb three buffs from a single target, or otherwise steals HP.
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores Shadows
-- Range: Melee
-- Notes: Can be any (positive) buff, including food. Will drain about 100HP if it can't take any ... | gpl-3.0 |
aqasaeed/telebot | plugins/rss.lua | 700 | 5434 | local function get_base_redis(id, option, extra)
local ex = ''
if option ~= nil then
ex = ex .. ':' .. option
if extra ~= nil then
ex = ex .. ':' .. extra
end
end
return 'rss:' .. id .. ex
end
local function prot_url(url)
local url, h = string.gsub(url, "http://", "")
local... | gpl-2.0 |
doofus-01/wesnoth | data/lua/wml/animate_unit.lua | 7 | 3461 | local T = wml.tag
local function add_animation(anim, cfg)
cfg = wml.shallow_parsed(cfg)
local flag = cfg.flag or wml.error("[animate_unit] is missing flag")
local filter = wml.get_child(cfg, "filter")
local unit
if filter then
unit = wesnoth.units.find_on_map{
limit = 1,
T["and"](filter)
}[1]
else
un... | gpl-2.0 |
Enignite/darkstar | scripts/zones/Beadeaux_[S]/Zone.lua | 28 | 1315 | -----------------------------------
--
-- Zone: Beadeaux_[S] (92)
--
-----------------------------------
package.loaded["scripts/zones/Beadeaux_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Beadeaux_[S]/TextIDs");
----------------------... | gpl-3.0 |
doofus-01/wesnoth | data/ai/micro_ais/cas/ca_messenger_attack.lua | 6 | 4825 | local AH = wesnoth.require "ai/lua/ai_helper.lua"
local messenger_next_waypoint = wesnoth.require "ai/micro_ais/cas/ca_messenger_f_next_waypoint.lua"
local best_attack
local function messenger_find_enemies_in_way(messenger, goal_x, goal_y, avoid_map)
-- Returns the first unit on or next to the path of the messeng... | gpl-2.0 |
fcpxhacks/fcpxhacks | src/extensions/cp/i18n/init.lua | 2 | 3132 | --- === cp.18n ===
---
--- CommandPost's Internationalisation & Localisation Manger.
local require = require
local log = require "hs.logger".new "i18n"
local fs = require "hs.fs"
local host = require "hs.host"
local json = require "hs.json"
local config = require ... | mit |
Enignite/darkstar | scripts/globals/abilities/fighters_roll.lua | 8 | 2245 | -----------------------------------
-- Ability: Fighter's Roll
-- Improves "Double Attack" rate for party members within area of effect
-- Optimal Job: Warrior
-- Lucky Number: 5
-- Unlucky Number: 9
-- Level: 49
--
-- Die Roll |No WAR |With WAR
-- -------- -------- -----------
-- 1 |2% ... | gpl-3.0 |
Enignite/darkstar | scripts/zones/Labyrinth_of_Onzozo/mobs/Goblin_Mercenary.lua | 23 | 1060 | -----------------------------------
-- Area: Labyrinth of Onzozo
-- MOB: Goblin Mercenary
-- Note: Place holder Soulstealer Skullnix
-----------------------------------
require("scripts/zones/Labyrinth_of_Onzozo/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------... | gpl-3.0 |
Enignite/darkstar | scripts/zones/Upper_Jeuno/npcs/Coumuna.lua | 37 | 1325 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Coumuna
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
require("scripts/zones/Upper_Jeuno/TextIDs");
-----------------------------------
... | gpl-3.0 |
Enignite/darkstar | scripts/globals/mobskills/Antimatter.lua | 18 | 1115 | ---------------------------------------------------
-- Antimatter
--
-- Description: Single-target ranged Light damage (~700-1500), ignores Utsusemi.
-- Type: Magical
--
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/g... | gpl-3.0 |
ntuhpc/modulefiles | all/libtool/2.4.6-GCC-5.4.0-2.26.lua | 1 | 1191 | help([[GNU libtool is a generic library support script. Libtool hides the complexity of using shared libraries
behind a consistent, portable interface. - Homepage: http://www.gnu.org/software/libtool]])
whatis([[Description: GNU libtool is a generic library support script. Libtool hides the complexity of using shared... | mit |
Enignite/darkstar | scripts/zones/Abyssea-La_Theine/npcs/Cavernous_Maw.lua | 17 | 1245 | -----------------------------------
-- Area: Abyssea - La Theine
-- NPC: Cavernous Maw
-- @pos -480.009, 0.000, 799.927 132
-- Teleports Players to La Theine Plateau
-----------------------------------
package.loaded["scripts/zones/Abyssea-La_Theine/TextIDs"] = nil;
-----------------------------------
requir... | gpl-3.0 |
Tri125/MCServer | MCServer/Plugins/NetworkTest/NetworkTest.lua | 13 | 15743 |
-- NetworkTest.lua
-- Implements a few tests for the cNetwork API
--- Map of all servers currently open
-- g_Servers[PortNum] = cServerHandle
local g_Servers = {}
--- Map of all UDP endpoints currently open
-- g_UDPEndpoints[PortNum] = cUDPEndpoint
local g_UDPEndpoints = {}
--- List of fortune messages for the... | apache-2.0 |
Enignite/darkstar | scripts/zones/Western_Altepa_Desert/npcs/_3h6.lua | 17 | 1870 | -----------------------------------
-- Area: Western Altepa Desert
-- NPC: _3h6 (Topaz Column)
-- Notes: Mechanism for Altepa Gate
-- @pos -260 10 -344 125
-----------------------------------
package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("s... | gpl-3.0 |
Enignite/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Ratihb.lua | 17 | 3326 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Ratihb
-- Standard Info NPC
-- @pos 75.225 -6.000 -137.203 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems"... | gpl-3.0 |
Zariel/zarielcastingbar | target.lua | 1 | 8153 | local print = function(str) return ChatFrame1:AddMessage("ZarielCastingBar: " .. tostring(str)) end
local addon = CreateFrame("Frame")
local parent, castBar
local GetTime = GetTime
local UnitName = UnitName
local UnitCastingInfo = UnitCastingInfo
local UnitChannelInfo = UnitChannelInfo
local floor = math.floor
local f... | bsd-3-clause |
Enignite/darkstar | scripts/zones/Mhaura/npcs/Koh_Lenbalalako.lua | 19 | 2176 | -----------------------------------
-- Area: Mhaura
-- NPC: Koh Lenbalalako
-- Type: Standard NPC
-- @pos -64.412 -17 29.213 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mhaura/TextIDs");
require("scripts/g... | gpl-3.0 |
aqasaeed/final | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
pezhmanEX/HellRobot | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
mohammad1234pv1234/mohammad1234pv1234 | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
zeus-ff/test | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
Enignite/darkstar | scripts/zones/Port_Bastok/npcs/Steel_Bones.lua | 36 | 1727 | -----------------------------------
-- Area: Port Bastok
-- NPC: Steel Bones
-- Standard Info NPC
-- Involved in Quest: Guest of Hauteur
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requir... | gpl-3.0 |
FracturedPlane/CharacterAnimation | bullet3/build3/premake4.lua | 6 | 4628 |
solution "0_Bullet3Solution"
local osversion = os.getversion()
print(string.format(" %d.%d.%d (%s)",
osversion.majorversion, osversion.minorversion, osversion.revision,
osversion.description))
-- Multithreaded compiling
if _ACTION == "vs2010" or _ACTION=="vs2008" then
buildoptions { "/MP" }
e... | gpl-2.0 |
Enignite/darkstar | scripts/zones/Windurst_Woods/npcs/Ominous_Cloud.lua | 19 | 5257 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Ominous Cloud
-- Type: Traveling Merchant NPC
-- @zone: 241
-- @pos -20.632 -3.939 -40.554
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = ... | gpl-3.0 |
Enignite/darkstar | scripts/globals/abilities/pets/ecliptic_growl.lua | 20 | 1809 | ---------------------------------------------------
-- Ecliptic Growl
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/globals/utils");
--------------------------------------... | gpl-3.0 |
florian-shellfire/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_status/processes.lua | 75 | 1236 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
f = SimpleForm("processes", translate("Processes"), translate("This list gives an overview over currently running system processes and their status."))
f.reset... | apache-2.0 |
apung/prosody-modules | mod_auth_external/mod_auth_external.lua | 31 | 4708 | --
-- Prosody IM
-- Copyright (C) 2010 Waqas Hussain
-- Copyright (C) 2010 Jeff Mitchell
-- Copyright (C) 2013 Mikael Nordfeldth
-- Copyright (C) 2013 Matthew Wild, finally came to fix it all
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local lpt... | mit |
Enignite/darkstar | scripts/zones/Garlaige_Citadel/npcs/qm1.lua | 17 | 1630 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: qm1 (???)
-- Involved In Quest: Altana's Sorrow
-- @pos -282.339 0.001 261.707 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
Enignite/darkstar | scripts/globals/items/forest_carp.lua | 18 | 1335 | -----------------------------------------
-- ID: 4289
-- Item: forest_carp
-- Food Effect: 30Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItem... | gpl-3.0 |
Enignite/darkstar | scripts/zones/Abyssea-Attohwa/Zone.lua | 32 | 1548 | -----------------------------------
--
-- Zone: Abyssea - Attohwa
--
-----------------------------------
package.loaded["scripts/zones/Abyssea-Attohwa/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/zones/Abyssea-... | gpl-3.0 |
idlenexusgaming/MoPRares | Locales/frFR.lua | 1 | 2113 | local L = LibStub("AceLocale-3.0"):NewLocale("MoPRares", "frFR", true)
if L then
L["Haywire Sunreaver Construct"] = "Assemblage saccage-soleil détraqué" --50358
L["Mumta"] = "Mumta" --69664
L["Ku'lai the Skyclaw"] = "Ku’lai, la Griffe du ciel " --69996
L["Progenitus"] = "Progénitus " --69997
L["Goda"] = "Goda" --6... | unlicense |
LingJiJian/UnityHotFixDemo | build/luajit-2.1.0/src/jit/v.lua | 78 | 5755 | ----------------------------------------------------------------------------
-- Verbose mode of the LuaJIT compiler.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
-------------------------------------------------------------------------... | mit |
Enignite/darkstar | scripts/globals/weaponskills/ukkos_fury.lua | 30 | 1805 | -----------------------------------
-- Ukko's Fury
-- Great Axe Weapon Skill
-- Skill Level: N/A
-- Description: Delivers a twofold attack that slows target. Chance of params.critical hit varies with TP. Ukonvasara: Aftermath.
-- Available only when equipped with Ukonvasara (85), Ukonvasara (90), Ukonvasara (95), ... | gpl-3.0 |
Enignite/darkstar | scripts/globals/items/baked_apple.lua | 35 | 1281 | -----------------------------------------
-- ID: 4406
-- Item: Baked Apple
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Magic 20
-- Agility -1
-- Intelligence 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------... | gpl-3.0 |
Stevie-O/SharpLua | Libraries/lbci/lbci_test.lua | 2 | 1282 | require"lbci"
local function inspect(f,all)
local F=inspector.getheader(f)
print("header",f)
for k,v in next,F do
print("",k,v)
end
print("constants",F.constants)
for i=1,F.constants do
local a=inspector.getconstant(f,i)
print("",i,a)
end
print("locals",F.locals)
for i=1,F.locals do
local a,b,c=insp... | mit |
WUTiAM/LUAnity | Source/LuaJIT-2.1.0-beta2/src/host/genminilua.lua | 9 | 11962 | ----------------------------------------------------------------------------
-- Lua script to generate a customized, minified version of Lua.
-- The resulting 'minilua' is used for the build process of LuaJIT.
----------------------------------------------------------------------------
-- Copyright (C) 2005-2016 Mike P... | mit |
fcpxhacks/fcpxhacks | src/plugins/core/language/init.lua | 1 | 3051 | --- === plugins.core.language ===
---
--- Language Module.
local require = require
local hs = _G.hs
local dialog = require "hs.dialog"
local host = require "hs.host"
local config = require "cp.config"
local i18n = require "cp.i18n"
local execute = hs.execute
l... | mit |
fcpxhacks/fcpxhacks | src/plugins/finalcutpro/browser/keywords.lua | 2 | 5726 | --- === plugins.finalcutpro.browser.keywords ===
---
--- Browser Keywords Presets.
local require = require
local pasteboard = require "hs.pasteboard"
local config = require "cp.config"
local dialog = require "cp.dialog"
local fcp = require "cp.... | mit |
takaaptech/lovetoys | src/Component.lua | 1 | 1081 | -- Collection of utilities for handling Components
Component = {}
Component.all = {}
-- Create a Component class with the specified name and fields
-- which will automatically get a constructor accepting the fields as arguments
function Component.create(name, fields, defaults)
local component = class(name)
if fiel... | mit |
Enignite/darkstar | scripts/zones/Southern_San_dOria/npcs/Carautia.lua | 36 | 2067 | -----------------------------------
-- Area: Carautia
-- NPC: Southern San d'Oria
-- Standard Merchant NPC
-- @zone 230
-- @pos 70 0 39
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings"... | gpl-3.0 |
Enignite/darkstar | scripts/zones/Garlaige_Citadel/npcs/qm13.lua | 34 | 1386 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: qm13 (???)
-- Involved in Quest: Hitting the Marquisate (THF AF3)
-- @pos -194.166 -5.500 139.969 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
r... | gpl-3.0 |
Enignite/darkstar | scripts/zones/Bastok_Mines/npcs/Gregory.lua | 38 | 1032 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Gregory
-- Type: ENM
-- @zone: 234
-- @pos 51.530 -1 -83.940
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scripts/zones/Basto... | gpl-3.0 |
Enignite/darkstar | scripts/zones/Caedarva_Mire/npcs/Nahshib.lua | 19 | 1979 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: Nahshib
-- Type: Assault
-- @pos -274.334 -9.287 -64.255 79
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/... | gpl-3.0 |
Enignite/darkstar | scripts/globals/magic.lua | 4 | 58352 | require("scripts/globals/magicburst")
require("scripts/globals/status")
require("scripts/globals/weather")
require("scripts/globals/utils")
MMSG_BUFF_FAIL = 75;
DIVINE_MAGIC_SKILL = 32;
HEALING_MAGIC_SKILL = 33;
ENHANCING_MAGIC_SKILL = 34;
ENFEEBLING_MAGIC_SKILL = 35;
ELEMEN... | gpl-3.0 |
rodrigoftw/Estagio1 | Total Destruction/Dusk/dusk_core/core.lua | 3 | 13174 | --------------------------------------------------------------------------------
--[[
Dusk Engine Component: Core
Wraps up all core libraries and provides an interface for them.
--]]
--------------------------------------------------------------------------------
local core = {}
-------------------------------------... | apache-2.0 |
Enignite/darkstar | scripts/globals/items/slice_of_lynx_meat.lua | 18 | 1293 | -----------------------------------------
-- ID: 5667
-- Item: Slice of Lynx Meat
-- Food Effect: 5 Min, Galka only
-----------------------------------------
-- Strength 5
-- Intelligence -7
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIte... | gpl-3.0 |
DipColor/mehrabon2 | plugins/search_youtube.lua | 674 | 1270 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
aqasaeed/telebot | plugins/search_youtube.lua | 674 | 1270 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
Enignite/darkstar | scripts/zones/Sacrarium/Zone.lua | 28 | 3727 | -----------------------------------
--
-- Zone: Sacrarium (28)
--
-----------------------------------
package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/settings");
require("scripts/zones/Sacrarium/TextIDs")... | gpl-3.0 |
jiasy/uiCoder | codeFrame/lua/mcChildObject.lua | 1 | 5195 | [<File_doc|ui|/src/app/base/ui/mcChildObject.lua|replace>]
local mcChildObject = class("mcChildObject")
--创建
function mcChildObject:ctor(params_)
self.displayObject=nil
self.beginFrame=0
self.endFrame=0
self.testUtils=testUtils:getInstance()
self.displayUtils=displayUtils:getInstance()
self.frameProperty={}
e... | mit |
doofus-01/wesnoth | data/lua/wml/endlevel.lua | 7 | 3198 | local already_ended = false
function wesnoth.wml_actions.endlevel(cfg)
local parsed = wml.parsed(cfg)
if already_ended then
wesnoth.interface.add_chat_message("Repeated [endlevel] execution, ignoring")
return
end
already_ended = true
local next_scenario = cfg.next_scenario
if next_scenario then
wesnoth.sc... | gpl-2.0 |
Enignite/darkstar | scripts/zones/Norg/npcs/Edal-Tahdal.lua | 17 | 4294 | -----------------------------------
-- Area: Norg
-- NPC: Edal-Tahdal
-- Starts and Finishes Quest: Trial by Water
-- @pos -13 1 -20 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("s... | gpl-3.0 |
aimingoo/ngx_cc | module/ngx_cc_core.lua | 1 | 9858 | -----------------------------------------------------------------------------
-- NGX_CC v2.0.0
-- Author: aimingoo@wandoujia.com
-- Copyright (c) 2015.02-2015.08
-- Descition: a framework of Nginx Communication Cluster. reliable
-- dispatch/translation messages in nginx nodes or processes.
--
-- core method or actions,... | apache-2.0 |
laozi2/nginx-tcp-lua-module | tcp/doc/conf_test/test_mysql.lua | 1 | 1137 | --local mysql = require("mysql")
--local db_ml = require("db_ml")
local cjson = require "cjson"
local cjson_safe = require "cjson.safe"
--db config
local db_user = {}
db_user.host = "127.0.0.1"
db_user.port = "3306"
db_user.database = "webusers"
db_user.user = "tmptest"
db_user.password = "tmptestQ"
db_user.max_packet... | bsd-2-clause |
QUSpilPrgm/cuberite | Server/webadmin/template.lua | 5 | 5593 | -- Use a table for fast concatenation of strings
local SiteContent = {}
function Output(String)
table.insert(SiteContent, String)
end
function GetTableSize(Table)
local Size = 0
for key,value in pairs(Table) do
Size = Size + 1
end
return Size
end
function GetDefaultPage()
local PM = cRoot:Get():GetPlu... | apache-2.0 |
sebbASF/infrastructure-puppet | modules/gitpubsub/files/app/gitpubsub.lua | 2 | 12404 | --[[
GitPubSub: A subscribable Git commit notification server.
Not nearly as awesome as SvnPubSub, but it works...
]]--
--[[ External dependencies ]]--
local JSON = require 'cjson'
local lfs = false -- LuaFileSystem
local socket = require "socket" -- Lua Sockets
local config = require "config" -- Configuration... | apache-2.0 |
Enignite/darkstar | scripts/zones/Ghelsba_Outpost/npcs/Logging_Point.lua | 29 | 1107 | -----------------------------------
-- Area: Ghelsba Outpost
-- NPC: Logging Point
-----------------------------------
package.loaded["scripts/zones/Ghelsba_Outpost/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/logging");
require("scripts/zones/Ghelsba_Outpost/TextIDs");
... | gpl-3.0 |
dcsan/telegram-bot | plugins/boobs.lua | 731 | 1601 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
Enignite/darkstar | scripts/zones/The_Boyahda_Tree/npcs/Treasure_Coffer.lua | 17 | 4279 | -----------------------------------
-- Area: The Boyahada Tree
-- NPC: Treasure Coffer
-- @pos 27 6 144 153
-----------------------------------
package.loaded["scripts/zones/The_Boyahda_Tree/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/key... | gpl-3.0 |
mraaaaaw/LISOGOLUB_Group-Butler-fork | plugins/admin.lua | 1 | 12172 | local config = require 'config'
local u = require 'utilities'
local api = require 'methods'
local plugin = {}
local triggers2 = {
'^%$(init)$',
'^%$(backup)$',
'^%$(save)$',
'^%$(stats)$',
'^%$(lua) (.*)$',
'^%$(run) (.*)$',
'^%$(admin)$',
'^%$(block)$',
'^%$(block) (%d+)$',
'^%$(blocked)$',
'^%$(unblock) ... | gpl-2.0 |
asfdfdfd/fceux | output/luaScripts/SMB-Jetpack.lua | 9 | 10618 | --Super Mario Bros. - Jetpack
--Written by XKeeper
--A fun script that gives mario a "Jetback"
require("x_functions");
if not x_requires then
-- Sanity check. If they require a newer version, let them know.
timer = 1;
while (true) do
timer = timer + 1;
for i = 0, 32 do
gui.drawbox( 6, 28 + i, 25... | gpl-2.0 |
Enignite/darkstar | scripts/zones/Balgas_Dais/npcs/Armoury_Crate.lua | 36 | 1024 | -----------------------------------
-- Area: Balgas Dais
-- NPC: Armoury Crate
-- Balgas Dais Burning Cicrcle Armoury Crate
-----------------------------------
package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/titles");
require("scripts/... | gpl-3.0 |
Enignite/darkstar | scripts/globals/items/plate_of_salmon_sushi_+1.lua | 35 | 1480 | -----------------------------------------
-- ID: 5664
-- Item: plate_of_salmon_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Strength 2
-- Accuracy % 15
-- Ranged ACC % 15
-----------------------------------------
require("scripts/globals/status");
----------------... | gpl-3.0 |
Enignite/darkstar | scripts/zones/PsoXja/npcs/_i9y.lua | 17 | 1310 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _i9y (Crystal Receptor)
-- @pos -389.980 -3.198 -203.595 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/PsoXja/TextIDs");
--------------------... | gpl-3.0 |
apung/prosody-modules | mod_auth_custom_http/mod_auth_custom_http.lua | 32 | 1346 | -- Prosody IM
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local new_sasl = require "util.sasl".new;
local json_encode = require "util.json";
local http = require "socket.http";
local options = module:get... | mit |
Enignite/darkstar | scripts/zones/Norg/npcs/Parlemaille.lua | 34 | 1924 | -----------------------------------
-- Area: Norg
-- NPC: Parlemaille
-- Standard Info NPC
-----------------------------------
require("scripts/globals/pathfind");
local path = {
-20.369047, 1.097733, -24.847025,
-20.327482, 1.097733, -25.914215,
-20.272402, 1.097733, -27.108938,
-20.094927, 1.097733, -26... | gpl-3.0 |
Enignite/darkstar | scripts/zones/Mhaura/npcs/Vera.lua | 17 | 2861 | -----------------------------------
-- Area: Mhaura
-- NPC: Vera
-- Finishes Quest: The Old Lady
-- @pos -49 -5 20 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/qu... | gpl-3.0 |
Enignite/darkstar | scripts/zones/Horlais_Peak/bcnms/hostile_herbivores.lua | 19 | 1703 | -----------------------------------
-- Area: Horlias peak
-- Name: Hostile Herbivores
-- BCNM50
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Horlais_Peak/TextIDs");
-----------------------------------
-- EXAM... | gpl-3.0 |
Enignite/darkstar | scripts/globals/items/red_curry_bun.lua | 14 | 2267 | -----------------------------------------
-- ID: 5759
-- Item: red_curry_bun
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- Health 25
-- Strength 7
-- Agility 1
-- Intelligence -2
-- Attack % 23
-- Attack Cap 150 (cap 150)
-- Ranged Atk % 23 (cap 150)
-- Demon Killer 4
-- HP... | gpl-3.0 |
Enignite/darkstar | scripts/globals/spells/bluemagic/zephyr_mantle.lua | 18 | 1329 | -----------------------------------------
-- Spell: Zephyr Mantle
-- Creates shadow images that each absorb a single attack directed at you
-- Spell cost: 31 MP
-- Monster Type: Dragons
-- Spell Type: Magical (Wind)
-- Blue Magic Points: 2
-- Stat Bonus: AGI+2
-- Level: 65
-- Casting Time: 7 seconds
-- Recast... | gpl-3.0 |
optimisez/gamecode4 | Assets/Scripts/TeapotAi.lua | 44 | 3132 | --========================================================================
-- TeapotAi.lua : Defines the state machine for AI teapots
--
-- Part of the GameCode4 Application
--
-- GameCode4 is the sample application that encapsulates much of the source code
-- discussed in "Game Coding Complete - 4th Edition" by ... | lgpl-3.0 |
Enignite/darkstar | scripts/zones/LaLoff_Amphitheater/npcs/qm1_4.lua | 19 | 2362 | -----------------------------------
-- Area: LaLoff_Amphitheater
-- NPC: Shimmering Circle (BCNM Entrances)
-------------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
package.loaded["scripts/globals/bcnm"] = nil;
-------------------------------------
require("scripts/glob... | gpl-3.0 |
Enignite/darkstar | scripts/zones/Kazham/npcs/Tatapp.lua | 15 | 11872 | -----------------------------------
-- Area: Kazham
-- NPC: Tatapp
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
require("scripts/globals/pathfind");
local path = {
15.005042, -8.000000, -104.34995... | gpl-3.0 |
fcpxhacks/fcpxhacks | src/extensions/cp/apple/finalcutpro/strings.lua | 1 | 7420 | --- === cp.apple.finalcutpro.strings ===
---
--- The `cp.strings` for I18N lookups related to Final Cut Pro.
--- This has been populated with common lookups for user interface values
--- that appear in Final Cut Pro.
-- NOTE:
-- /usr/bin/grep -r -i -s -F --include=\*.strings 'Undo %@' /System
local require ... | mit |
WUTiAM/LUAnity | Source/LuaJIT-2.0.4/src/jit/dump.lua | 84 | 19509 | ----------------------------------------------------------------------------
-- LuaJIT compiler dump module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
-... | mit |
asfdfdfd/fceux | output/luaScripts/JumpingFCEUXWindow.lua | 7 | 1202 | require 'winapi'
fceuxWindowDY = 0;
fceuxWindowDX = 0;
MIN_JUMP_POWER = -20;
function jumpingWindow()
desktopWidth, desktopHeight = winapi.get_desktop_window():get_bounds();
fceuxWindow = winapi.find_window("FCEUXWindowClass", nil);
fceuxWindowX, fceuxWindowY = fceuxWindow:get_position();
fceuxWindowW... | gpl-2.0 |
Enignite/darkstar | scripts/zones/Toraimarai_Canal/TextIDs.lua | 7 | 1157 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6425; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6429; -- Obtained: <item>.
GIL_OBTAINED = 6430; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6432; -- Obtained... | gpl-3.0 |
dani-sj/sarlashkar | plugins/bot_manager.lua | 89 | 6427 | 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(receiver, '... | gpl-2.0 |
vso2004/cardpeek | dot_cardpeek_dir/scripts/e-passport.lua | 16 | 19873 | --
-- This file is part of Cardpeek, the smartcard reader utility.
--
-- Copyright 2009-2013 by 'L1L1'
--
-- Cardpeek is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (a... | gpl-3.0 |
Enignite/darkstar | scripts/zones/Dynamis-Buburimu/bcnms/dynamis_Buburimu.lua | 16 | 1143 | -----------------------------------
-- Area: dynamis_Buburimu
-- Name: dynamis_Buburimu
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[DynaBuburimu]UniqueID",player:getDynamisUniqueID(1287));
SetServerVariabl... | gpl-3.0 |
Enignite/darkstar | scripts/zones/Cloister_of_Tremors/npcs/Earth_Protocrystal.lua | 19 | 1770 | -----------------------------------
-- Area: Cloister of Tremors
-- NPC: Earth Protocrystal
-- Involved in Quest: Trial by Earth
-- @pos -539 1 -493 209
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Tremors/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/k... | gpl-3.0 |
Tri125/MCServer | lib/tolua++/src/bin/lua/define.lua | 43 | 1317 | -- tolua: define class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: define.lua,v 1.2 1999/07/28 22:21:08 celes Exp $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide ... | apache-2.0 |
fcpxhacks/fcpxhacks | src/plugins/finalcutpro/tangent/clip.lua | 1 | 2827 | --- === plugins.finalcutpro.tangent.clip ===
---
--- Final Cut Pro Tangent View Group
local require = require
local log = require "hs.logger".new "fcptng_timeline"
local dialog = require "cp.dialog"
local fcp = require "cp.apple.finalcutpro"
local i18n = require "cp.i18n"
l... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.