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 |
|---|---|---|---|---|---|
alireza98/z | 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 |
satanoff/testantispam | 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 |
Squeakz/darkstar | scripts/globals/items/prime_angler_stewpot.lua | 18 | 2000 | -----------------------------------------
-- ID: 5612
-- Item: Prime Angler Stewpot
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10%
-- MP +15
-- Dexterity 2
-- Agility 1
-- Mind 1
-- HP Recovered while healing 7
-- MP Recovered while healing 2
-- Accuracy 15% ... | gpl-3.0 |
smartdevicelink/sdl_atf_test_scripts | test_scripts/SDL5_0/Handling_VR_help_requests/019_SetGlobalProp_processing_added_choices_by_resumption.lua | 1 | 5914 | ---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0122-New_rules_for_providing_VRHelpItems_VRHelpTitle.md
-- User story: TBD
-- Use case: TBD
--
-- Requirement summary: TBD
--
-- Descrip... | bsd-3-clause |
ddumont/darkstar | scripts/globals/items/truelove_chocolate.lua | 12 | 1219 | -----------------------------------------
-- ID: 5231
-- Item: truelove_chocolate
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- MP 10
-- MP Recovered While Healing 4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
--... | gpl-3.0 |
ddumont/darkstar | scripts/zones/Konschtat_Highlands/npcs/qm1.lua | 14 | 1374 | -----------------------------------
-- Area: Konschtat Highlands
-- NPC: qm1 (???)
-- Continues Quests: Past Perfect
-- @pos -201 16 80 108
-----------------------------------
package.loaded["scripts/zones/Konschtat_Highlands/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
requ... | gpl-3.0 |
lemonkit/VisualCocos | frameworks/cocos2d-x/cocos/scripting/lua-bindings/script/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 |
ddumont/darkstar | scripts/zones/Windurst_Walls/npcs/Seven_of_Diamonds.lua | 14 | 1076 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Seven of Diamonds
-- Type: Standard NPC
-- @pos 6.612 -3.5 278.553 239
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-----------------------------------
-----------------------------------
-- onT... | gpl-3.0 |
Squeakz/darkstar | scripts/globals/abilities/beast_roll.lua | 19 | 2633 | -----------------------------------
-- Ability: Beast Roll
-- Enhances pet attacks for party members within area of effect
-- Optimal Job: Beastmaster
-- Lucky Number: 4
-- Unlucky Number: 8
-- Level: 34
--
-- Die Roll |No BST |With BST
-- -------- -------- -----------
-- 1 |16 |41
-- 2 |20... | gpl-3.0 |
nlleach/homedecor_modpack | homedecor/tables.lua | 12 | 5672 | -- Various kinds of tables
local S = homedecor.gettext
local materials = {
{"glass","Glass"},
{"wood","Wood"}
}
local tables_cbox = {
type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4375, 0.5 },
}
for i in ipairs(materials) do
local m = materials[i][1]
local d = materials[i][2]
local s = nil
if ... | lgpl-3.0 |
Squeakz/darkstar | scripts/globals/spells/huton_san.lua | 21 | 1271 | -----------------------------------------
-- Spell: Huton: San
-- Deals wind damage to an enemy and lowers its resistance against ice.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
---------------... | gpl-3.0 |
smartdevicelink/sdl_atf_test_scripts | test_scripts/WebEngine/WebEngineProjection/023_Check_WS_connection_for_WebEngine_projection_app_in_NONE.lua | 1 | 2853 | ---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0273-webengine-projection-mode.md
--
-- Description:
-- Check that SDL doesn't close the connection with WebEngine
-- projection app if ... | bsd-3-clause |
Squeakz/darkstar | scripts/globals/items/cheese_sandwich_+1.lua | 18 | 1186 | -----------------------------------------
-- ID: 5687
-- Item: cheese_sandwich_+1
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP 10
-- Agility 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----... | gpl-3.0 |
lemonkit/VisualCocos | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/TMXLayer.lua | 6 | 7890 |
--------------------------------
-- @module TMXLayer
-- @extend Node
-- @parent_module ccexp
--------------------------------
-- Returns the position in points of a given tile coordinate.<br>
-- param tileCoordinate The tile Coordinate.<br>
-- return The position in points of a given tile coordinate.
-- @function [p... | mit |
Squeakz/darkstar | scripts/zones/Abyssea-La_Theine/Zone.lua | 33 | 1482 | -----------------------------------
--
-- Zone: Abyssea - La_Theine
--
-----------------------------------
package.loaded["scripts/zones/Abyssea-La_Theine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/zones/Abyssea-La_Thein... | gpl-3.0 |
ddumont/darkstar | scripts/zones/Al_Zahbi/npcs/Gameem.lua | 14 | 1032 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Gameem
-- Type: Standard NPC
-- @zone 48
-- @pos 18.813 -7 11.298
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
--------------------------------... | gpl-3.0 |
ddumont/darkstar | scripts/zones/Abyssea-Tahrongi/npcs/qm2.lua | 14 | 1343 | -----------------------------------
-- Zone: Abyssea-Tahrongi
-- NPC: qm2 (???)
-- Spawns Vetehinen
-- @pos ? ? ? 45
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
--[[... | gpl-3.0 |
cp1337/devland | data/npc/scripts/banker.lua | 1 | 4820 | focus = 0
talk_start = 0
target = 0
following = false
attacking = false
local count = 0
function onThingMove(creature, thing, oldpos, oldstackpos)
end
function onCreatureAppear(creature)
end
function onCreatureDisappear(cid, pos)
if focus == cid then
selfSay('Good bye then.')
... | gpl-2.0 |
Squeakz/darkstar | scripts/zones/Ghoyus_Reverie/Zone.lua | 19 | 1065 | -----------------------------------
--
-- Zone: Ghoyus_Reverie
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Ghoyus_Reverie/TextIDs"] = nil;
require("scripts/zones/Ghoyus_Reverie/TextIDs");
-----------------------------------
-- onInitialize
-------------... | gpl-3.0 |
ff-kbu/fff-luci | applications/luci-radvd/luasrc/model/cbi/radvd/interface.lua | 78 | 7996 | --[[
LuCI - Lua Configuration Interface
Copyright 2010 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$
]]--
lo... | apache-2.0 |
cp1337/devland | data/spells/scripts/monsters/lll.lua | 1 | 2028 | local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_POSIONDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_POISONAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_POISON)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -2.3, -184, -3, -240)
local c... | gpl-2.0 |
hacker44-h44/mmmmmm | plugins/sender.lua | 2 | 10403 | --[[
sender.lua by @awkward_potato
Usage:
sender = require('sender')
tg = sender(ip, port)
tg:send_msg(user_id, text)
link = tg:export_chat_link(chat_id)
print(link)
]]--
local socket = require("socket")
local Sender = function(ip, port)
ip = ip or "localhost"
p... | gpl-2.0 |
blockplanet/blockplanet | builtin/common/vector.lua | 3 | 2426 |
vector = {}
function vector.new(a, b, c)
if type(a) == "table" then
assert(a.x and a.y and a.z, "Invalid vector passed to vector.new()")
return {x=a.x, y=a.y, z=a.z}
elseif a then
assert(b and c, "Invalid arguments for vector.new()")
return {x=a, y=b, z=c}
end
return {x=0, y=0, z=0}
end
function vector.e... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/weaponskills/freezebite.lua | 1 | 1231 | -----------------------------------
-- Freezebite
-- Great Sword weapon skill
-- Skill Level: 100
-- Delivers an ice elemental attack. Damage varies with TP.
-- Aligned with the Snow Gorget & Breeze Gorget.
-- Aligned with the Snow Belt & Breeze Belt.
-- Element: Ice
-- Modifiers: STR:30% ; INT:20%
--... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/weaponskills/knights_of_round.lua | 1 | 1932 | -----------------------------------
-- Knights Of Round
-- Sword Weapon Skill
-- Skill Level: N/A
-- Caliburn/Excalibur: Additional Effect: Regen.
-- Regen 10HP/Tick, duration varies with TP.
-- Available only when equipped with the Relic Weapons Caliburn (Dynamis use only) or Excalibur.
-- Also available... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/spells/cryohelix.lua | 22 | 1674 | --------------------------------------
-- Spell: Cryohelix
-- Deals ice 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/ma... | gpl-3.0 |
samael65535/quick-ng | cocos/scripting/lua-bindings/auto/api/Slider.lua | 7 | 7542 |
--------------------------------
-- @module Slider
-- @extend Widget
-- @parent_module ccui
--------------------------------
-- Changes the progress direction of slider.<br>
-- param percent Percent value from 1 to 100.
-- @function [parent=#Slider] setPercent
-- @param self
-- @param #int percent
-- @return Slider... | mit |
xdemolish/darkstar | scripts/globals/effects/chr_down.lua | 19 | 1084 | -----------------------------------
--
-- EFFECT_CHR_DOWN
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
if((target:getStat(MOD_CHR) - effect... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Mhaura/npcs/Mololo.lua | 17 | 1170 | -----------------------------------
-- Area: Mhaura
-- NPC: Mololo
-- Guild Merchant NPC: Blacksmithing Guild
-- @pos -64.278 -16.624 34.120 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
... | gpl-3.0 |
lukego/snabb | lib/luajit/src/jit/dis_arm.lua | 78 | 19363 | ----------------------------------------------------------------------------
-- LuaJIT ARM disassembler module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | apache-2.0 |
hsiaoyi/Melo | cocos2d/cocos/scripting/lua-bindings/script/extension/DeprecatedExtensionEnum.lua | 62 | 1410 | if nil == cc.Control then
return
end
_G.kCCControlStepperPartMinus = cc.CONTROL_STEPPER_PART_MINUS
_G.kCCControlStepperPartPlus = cc.CONTROL_STEPPER_PART_PLUS
_G.kCCControlStepperPartNone = cc.CONTROL_STEPPER_PART_NONE
_G.CCControlEventTouchDown = cc.CONTROL_EVENTTYPE_TOUCH_DOWN
_G.CC... | apache-2.0 |
UB12/superbot | plugins/all.lua | 54 | 4746 | 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 |
kidanger/LD27 | level2.lua | 1 | 2712 | local level = {
boxes={
{y=87, x=45, w=12, h=77},
{y=87, x=57, w=165, h=10},
{y=126, x=57, w=2, h=38},
{y=126, x=59, w=1, h=19},
{y=150, x=59, w=1, h=14},
{y=126, x=60, w=1, h=17},
{y=152, x=60, w=6, h=12},
{y=126, x=61, w=1, h=16},
{y=126, x=62, w=8, h=15},
{y=153, x=66, w=7, h=11},
{y=126, x=70, w=7, h=14}... | gpl-2.0 |
lighter-cd/premake4-mobile | tests/base/test_baking.lua | 57 | 3205 | --
-- tests/test_baking.lua
-- Automated test suite for the configuration baking functions.
-- Copyright (c) 2009, 2010 Jason Perkins and the Premake project
--
T.baking = { }
local suite = T.baking
--
-- Setup code
--
local prj, cfg
function suite.setup()
_ACTION = "gmake"
solution "MySolution"
configu... | mit |
cfanzp008/skynet-note | lualib/snax.lua | 1 | 2349 | local skynet = require "skynet"
local snax_interface = require "snax_interface"
local snax = {}
local typeclass = {}
local G = { require = function() end }
function snax.interface(name)
if typeclass[name] then
return typeclass[name]
end
local si = snax_interface(name, G)
local ret = {
accept = {},
respon... | mit |
blockplanet/blockplanet | games/blockplanet/mods/default/nodes/furnace.lua | 2 | 8235 | -- Formspecs
local function active_formspec(fuel_percent, item_percent)
local formspec =
"size[8,8.5]"..
default.gui_bg..
default.gui_bg_img..
default.gui_slots..
"list[current_name;src;2.75,0.5;1,1;]"..
"list[current_name;fuel;2.75,2.5;1,1;]"..
"image[2.75,1.5;1,1;default_furnace_fire_bg.png^[lowpart:"... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/items/coffeecake_muffin.lua | 35 | 1376 | -----------------------------------------
-- ID: 5655
-- Item: coffeecake_muffin
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Mind 1
-- Strength -1
-- MP % 10 (cap 85)
-----------------------------------------
require("scripts/globals/status");
----------------------------... | gpl-3.0 |
lukego/snabb | src/lib/virtio/virtq_driver.lua | 5 | 6401 | -- Application to connect to a virtio-net driver implementation
--
-- Licensed under the Apache 2.0 license
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Copyright (c) 2015 Virtual Open Systems
--
module(..., package.seeall)
local debug = _G.developer_debug
local ffi = require("ffi")
local C = ffi.C
lo... | apache-2.0 |
Ph0enixxx/neuralart | main.lua | 3 | 8137 | --
-- An implementation of the method described in 'A Neural Algorithm of Artistic
-- Style' by Leon Gatys, Alexander Ecker, and Matthias Bethge.
--
-- http://arxiv.org/abs/1508.06576
--
require 'torch'
require 'cutorch'
require 'nn'
require 'cunn'
require 'image'
require 'paths'
require 'optim'
local pl = require('pl... | mit |
nazrhyn/epgp-tep | libs/AceGUI-3.0/widgets/AceGUIWidget-Keybinding.lua | 38 | 6512 | --[[-----------------------------------------------------------------------------
Keybinding Widget
Set Keybindings in the Config UI.
-------------------------------------------------------------------------------]]
local Type, Version = "Keybinding", 24
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not Ace... | bsd-3-clause |
lukego/snabb | src/apps/tap/tap.lua | 6 | 4124 | module(..., package.seeall)
local S = require("syscall")
local link = require("core.link")
local packet = require("core.packet")
local ffi = require("ffi")
local C = ffi.C
local const = require("syscall.linux.constants")
local os = require("os")
local t = S.types.t
Tap = { }
function Tap:new (name)
assert(name, ... | apache-2.0 |
hsiaoyi/Melo | cocos2d/cocos/scripting/lua-bindings/auto/api/ParticleSystem3D.lua | 6 | 5418 |
--------------------------------
-- @module ParticleSystem3D
-- @extend Node,BlendProtocol
-- @parent_module cc
--------------------------------
-- remove affector by index
-- @function [parent=#ParticleSystem3D] removeAffector
-- @param self
-- @param #int index
-- @return ParticleSystem3D#ParticleSystem3D self (re... | apache-2.0 |
xdemolish/darkstar | scripts/zones/Upper_Jeuno/npcs/Mhao_Kehtsoruho.lua | 38 | 1041 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Mhao Kehtsoruho
-- Type: Past Event Watcher
-- @zone: 244
-- @pos -73.032 -1 146.919
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
--------... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Bastok_Mines/npcs/Titus.lua | 12 | 1703 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Titus
-- Alchemy Synthesis Image Support
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Mines/TextIDs");
require("scripts/globals/status"... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Lufaise_Meadows/mobs/Padfoot.lua | 18 | 2228 | -----------------------------------
-- Area: Lufaise Meadows
-- Mob: Padfoot
-- @pos 260.445 -1.761 -27.862 24 (True Copy) 16875578
-- @pos 412.447 -0.057 -200.161 24 (Fake Copies) 16875615
-- @pos -378.950 -15.742 144.215 24 || 16875703
-- @pos -43.689 0.487 -328.028 24 || 16875552
-- @pos -1... | gpl-3.0 |
Neopallium/lua-handlers | handler/zmq.lua | 3 | 12811 | -- Copyright (c) 2010-2011 by Robert G. Jakabosky <bobby@neoawareness.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
-... | mit |
xdemolish/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Wyatt.lua | 17 | 1981 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Wyatt
-- @zone 80
-- @pos 124 0 84
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
... | gpl-3.0 |
czfshine/UpAndAway | code/prefabs/skyflower_petals.lua | 2 | 2654 | BindGlobal()
local assets=
{
Asset("ANIM", "anim/skyflower_petals.zip"),
Asset("ANIM", "anim/datura_petals.zip"),
Asset( "ATLAS", inventoryimage_atlas("skyflower_petals") ),
Asset( "IMAGE", inventoryimage_texture("skyflower_petals") ),
Asset( "ATLAS", inventoryimage_atlas("datura_petals")... | gpl-2.0 |
Andreas-Kreuz/ak-lua-skripte-fuer-eep | lua/LUA/spec/ak/train/RollingStockModels_spec.lua | 1 | 1375 | require("ak.core.eep.EepSimulator")
insulate("parse rollingstockname", function()
local Models = require("ak.train.RollingStockModels")
it("MyModel", function() assert.equals("MyModel", Models.parseModelName("MyModel")) end)
it("MyModel;001", function() assert.equals("MyModel", Models.parseModelName("MyMo... | mit |
xdemolish/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Pihra_Rhebenslo.lua | 36 | 4463 | -----------------------------------
-- Area: Windurst Waters [S]
-- NPC: Pihra_Rhebenslo
-- Armor Storage NPC
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/a... | gpl-3.0 |
czfshine/UpAndAway | MAKE.lua | 1 | 2917 | ---coding: UTF-8--
--auto build this mod
--like MAKEFILE but use lua
--can under window linux
-------------------------------------
Usage=[[
--$lua MAKE.lua [commonly]
--The most commonly used MAKE.lua commands are:
-- all (default) make all and clean
-- clean clean all log
-- anim_image only bui... | gpl-2.0 |
samael65535/quick-ng | quick/samples/coinflip/src/app/views/Board.lua | 8 | 3724 |
local Levels = import("..data.Levels")
local Coin = import("..views.Coin")
local Board = class("Board", function()
return display.newNode()
end)
local NODE_PADDING = 100
local NODE_ZORDER = 0
local COIN_ZORDER = 1000
function Board:ctor(levelData)
cc.GameObject.extend(self):addComponent("componen... | mit |
bitdewy/cegui | datafiles/lua_scripts/HelloWorldDemo.lua | 1 | 4939 | HelloWorldDemo = {}
HelloWorldDemo.__index = HelloWorldDemo
-----------------------------------------
-- Script Entry Point
-----------------------------------------
function HelloWorldDemo.initialize(args)
local context = CEGUI.toGUIContextEventArgs(args).context
local schemeMgr = CEGUI.SchemeManager:... | mit |
black123456789/api | plugins/floodmanager.lua | 1 | 1868 | local triggers = {
'^/(flood) (%d%d?)$',
'^/(flood) (on)$',
'^/(flood) (off)$',
'^/(flood) (kick)$',
'^/(flood) (ban)$',
'^(flood)$'
}
local action = function(msg, blocks, ln)
if not is_mod(msg) then
return
end
if msg.chat.type == 'private' then
api.sendMessage(msg.chat.id, lang[ln].pv)
return... | gpl-2.0 |
xdemolish/darkstar | scripts/globals/items/elshimo_coconut.lua | 35 | 1217 | -----------------------------------------
-- ID: 5187
-- Item: elshimo_coconut
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -1
-- Intelligence -1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-... | gpl-3.0 |
blockplanet/blockplanet | builtin/game/register.lua | 1 | 15379 | -- Minetest: builtin/misc_register.lua
--
-- Make raw registration functions inaccessible to anyone except this file
--
local register_item_raw = core.register_item_raw
core.register_item_raw = nil
local register_alias_raw = core.register_alias_raw
core.register_alias_raw = nil
--
-- Item / entity / ABM registratio... | gpl-3.0 |
Javaxio/BadRotations | Rotations/Hunter/Marksmanship/MarksmanshipCuteOne.lua | 1 | 57198 | local rotationName = "CuteOne"
---------------
--- Toggles ---
---------------
local function createToggles()
-- Rotation Button
RotationModes = {
[1] = { mode = "Auto", value = 1 , overlay = "Automatic Rotation", tip = "Swaps between Single and Multiple based on number of targets in range.", highlight = 1... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Dynamis-San_dOria/mobs/Wyrmgnasher_Bjakdek.lua | 8 | 1064 | -----------------------------------
-- Area: Dynamis San d'Oria
-- NPC: Wyrmgnasher Bjakdek
-- Boss Trigger for Overlord's Tombstone
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function OnMobSpawn(mob)
end;
-----------... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Port_Windurst/npcs/Dehn_Harzhapan.lua | 38 | 1037 | -----------------------------------
-- Area: Port Windurst
-- NPC: Dehn Harzhapan
-- Type: Standard NPC
-- @zone: 240
-- @pos -7.974 -7 152.633
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
------------... | gpl-3.0 |
hsiaoyi/Melo | cocos2d/cocos/scripting/lua-bindings/auto/api/UserDefault.lua | 9 | 4601 |
--------------------------------
-- @module UserDefault
-- @parent_module cc
--------------------------------
-- Set integer value by key.<br>
-- param key The key to set.<br>
-- param value A integer value to set to the key.<br>
-- js NA
-- @function [parent=#UserDefault] setIntegerForKey
-- @param self
-- @param #... | apache-2.0 |
rras2de122w33e433d541qedcdv4dfghj563mmh/1 | plugins/antiflood.lua | 25 | 3749 | --An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 4 -- seconds
local data = load_data(_config.moderation.data)
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id ==... | gpl-2.0 |
xdemolish/darkstar | scripts/zones/West_Ronfaure/TextIDs.lua | 3 | 1322 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6393; -- You cannot obtain the item <item> come back again after sorting your inventory.
ITEM_OBTAINED = 6396; -- Obtained: <item>.
GIL_OBTAINED = 6397; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6399; -- Obt... | gpl-3.0 |
xdemolish/darkstar | scripts/commands/setweather.lua | 4 | 1682 | ---------------------------------------------------------------------------------------------------
-- func: setweather
-- auth: <Unknown> :: Modded by atom0s.
-- desc: Sets the ccurrent weather for the current zone.
---------------------------------------------------------------------------------------------------... | gpl-3.0 |
GabrielNicolasAvellaneda/boundary-tomcat-manager-plugin-deprecated | modules/mimeutils.lua | 1 | 13175 | --[[---------------
LuaBit v0.4
-------------------
a bitwise operation lib for lua.
http://luaforge.net/projects/bit/
How to use:
-------------------
bit.bnot(n) -- bitwise not (~n)
bit.band(m, n) -- bitwise and (m & n)
bit.bor(m, n) -- bitwise or (m | n)
bit.bxor(m, n) -- bitwise xor (m ^ n)
bit.brshift(n, bit... | apache-2.0 |
czfshine/UpAndAway | code/prefabs/refiner.lua | 2 | 4348 | BindGlobal()
local RefiningRecipeBook = modrequire "resources.refining_recipebook"
local widget_spec = pkgrequire "common.containerwidgetspecs" .refiner
local assets =
{
Asset("ANIM", "anim/refiner.zip"),
}
local prefabs =
{
"rocks",
"twigs",
"cutgrass",
"log",
}
local function startbrewf... | gpl-2.0 |
lukego/snabb | lib/ljsyscall/test/rump.lua | 18 | 2492 | -- rump specific tests
-- in particular testing the threading, as that is rather different; you can map them to host threads how you like
local function init(S)
local helpers = require "syscall.helpers"
local types = S.types
local c = S.c
local abi = S.abi
local util = S.util
local bit = require "syscall.bit"
local ... | apache-2.0 |
xdemolish/darkstar | scripts/zones/Windurst_Woods/npcs/Abby_Jalunshi.lua | 38 | 1042 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Abby Jalunshi
-- Type: Moghouse Renter
-- @zone: 241
-- @pos -101.895 -5 36.172
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-------... | gpl-3.0 |
lukego/snabb | src/core/link.lua | 13 | 3092 | module(...,package.seeall)
local debug = _G.developer_debug
local shm = require("core.shm")
local ffi = require("ffi")
local C = ffi.C
local packet = require("core.packet")
require("core.packet_h")
local counter = require("core.counter")
require("core.counter_h")
require("core.link_h")
local band = require("bit")... | apache-2.0 |
xdemolish/darkstar | scripts/zones/The_Garden_of_RuHmet/npcs/_0zv.lua | 19 | 1079 | -----------------------------------
-- Area: The Garden of Ru'Hmet
-- NPC: particle gate
-----------------------------------
require("scripts/globals/keyitems");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
---------------------... | gpl-3.0 |
LuaDist2/cqueues | examples/getopt.lua | 5 | 1114 | --
-- getopt(":a:b", ...) -- works just like getopt(3).
--
-- Send bug reports to william@25thandClement.com.
--
local function getopt(optstring, ...)
local opts = { }
local args = { ... }
for optc, optv in optstring:gmatch"(%a)(:?)" do
opts[optc] = { hasarg = optv == ":" }
end
return coroutine.wrap(function()... | mit |
freem/ultralight | BGAnimations/ScreenAppearanceOptions underlay.lua | 2 | 1183 | local t = Def.ActorFrame{
Def.Quad{
Name="TopLine";
InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y*0.375;addy,-SCREEN_CENTER_Y;zoomto,SCREEN_WIDTH,2;diffuseleftedge,HSV(192,1,0.8););
OnCommand=cmd(linear,0.3;addy,SCREEN_CENTER_Y);
OffCommand=cmd(linear,0.3;addy,-SCREEN_CENTER_Y);
CancelCommand=cmd(linea... | unlicense |
hsiaoyi/Melo | cocos2d/tests/lua-tests/src/NavMeshTest/NavMeshTest.lua | 6 | 15269 | local AgentUserData =
{
time = 0
}
local function jump(v1, v2, height, t)
local out = {}
out.x = v1.x + t * (v2.x - v1.x)
out.y = v1.y + t * (v2.y - v1.y)
out.z = v1.z + t * (v2.z - v1.z)
out.y = out.y + height * math.sin(math.pi * t)
return out
end
local actionManager = cc.Director:getIns... | apache-2.0 |
xdemolish/darkstar | scripts/zones/Windurst_Walls/npcs/HomePoint#2.lua | 3 | 1716 | -----------------------------------
-- Area: Windurst Walls
-- NPC: HomePoint#2
-- @pos -212 0.001 -99 239
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Windurst... | gpl-3.0 |
londry/nodemcu-firmware | lua_modules/http/http.lua | 89 | 6624 | ------------------------------------------------------------------------------
-- HTTP server module
--
-- LICENCE: http://opensource.org/licenses/MIT
-- Vladimir Dronnikov <dronnikov@gmail.com>
------------------------------------------------------------------------------
local collectgarbage, tonumber, tostring = col... | mit |
xdemolish/darkstar | scripts/zones/QuBia_Arena/bcnms/rank_5_mission.lua | 13 | 1872 | -----------------------------------
-- Area: Qu'Bia Arena
-- NPC: Mission Rank 5
-- @pos -221 -24 19 206
-----------------------------------
package.loaded["scripts/zones/QuBia_Arena/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/QuBia_Arena/TextIDs");... | gpl-3.0 |
lytedev/quick-td | src/level/level.lua | 1 | 2969 | --[[
File: src/level/level.lua
Author: Daniel "lytedev" Flanagan
Website: http://dmf.me
Defines a game level.
]]--
local Tile = require("src.level.tile")
local Layer = require("src.level.layer")
local Level = Class{function(self, size)
size = size or vector(20, 20)
self.layers = {Layer(self.size)}
self.b... | apache-2.0 |
airminer/jnlua | src/test/resources/com/naef/jnlua/test/Reflection.lua | 3 | 4428 | --[[
$Id$
See LICENSE.txt for license terms.
]]
module(..., package.seeall)
-- General reflection test
function testReflection ()
-- Static field
local TestObject = java.require("com.naef.jnlua.test.fixture.TestObject")
assert(TestObject.TEST_FIELD == "test")
TestObject.TEST_FIELD = ""
assert(TestOb... | mit |
kutsan/dotfiles | .config/nvim/plugin/packages/nvim_tree.lua | 1 | 2462 | local keymap = vim.keymap
local nvim_tree = require('nvim-tree')
nvim_tree.setup({
update_cwd = true,
hijack_cursor = true,
git = {
ignore = false,
},
actions = {
open_file = {
resize_window = true,
},
},
view = {
width = 32,
mappings = {
custom_only = true,
list = {... | gpl-3.0 |
londry/nodemcu-firmware | lua_examples/u8glib/u8g_graphics_test.lua | 9 | 4277 |
-- setup I2c and connect display
function init_i2c_display()
-- SDA and SCL can be assigned freely to available GPIOs
sda = 5 -- GPIO14
scl = 6 -- GPIO12
sla = 0x3c
i2c.setup(0, sda, scl, i2c.SLOW)
disp = u8g.ssd1306_128x64_i2c(sla)
end
-- setup SPI and connect display
function init_spi_... | mit |
xdemolish/darkstar | scripts/zones/Buburimu_Peninsula/npcs/Song_Runes.lua | 34 | 1922 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Song Runes
-- Finishes Quest: The Old Monument
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
package.loaded["scripts/globals/settings"] = nil;
-----------------------------------
r... | gpl-3.0 |
lukego/snabb | lib/ljsyscall/syscall/linux/arm/nr.lua | 19 | 8690 | -- arm syscall numbers
-- eabi only
local nr = {
zeropad = true,
SYS = {
restart_syscall = 0,
exit = 1,
fork = 2,
read = 3,
write = 4,
open = 5,
close = 6,
creat = 8,
link = 9,
unlink = 10,
... | apache-2.0 |
xdemolish/darkstar | scripts/globals/items/tortilla.lua | 35 | 1264 | -----------------------------------------
-- ID: 4408
-- Item: tortilla
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 6
-- Dexterity -1
-- Vitality 4
-----------------------------------------
require("scripts/globals/status");
----------------------------------------... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Port_San_dOria/npcs/Laucimercen.lua | 36 | 1377 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Laucimercen
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Port_San_dOria/T... | gpl-3.0 |
lukego/snabb | lib/ljsyscall/syscall/linux/ppc/nr.lua | 18 | 10962 | -- ppc syscall numbers
local nr = {
zeropad = true,
SYS = {
restart_syscall = 0,
exit = 1,
fork = 2,
read = 3,
write = 4,
open = 5,
close = 6,
waitpid = 7,
creat... | apache-2.0 |
xdemolish/darkstar | scripts/zones/Cape_Teriggan/npcs/Dultwa_IM.lua | 6 | 3011 | -----------------------------------
-- Area: Cape Teriggan
-- NPC: Dulwa, I.M.
-- Type: Border Conquest Guards
-- @pos 119 0 282 113
-----------------------------------
package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
requi... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Windurst_Woods/npcs/Harara_WW.lua | 6 | 4820 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Harara, W.W.
-- X Grant Signet
-- X Recharge Emperor Band, Empress Band, or Chariot Band
-- X Accepts traded Crystals to fill up the Rank bar to open new Missions.
-- X Sells items in exchange for Conquest Points
-- X Start Supply Run Mission... | gpl-3.0 |
hsiaoyi/Melo | cocos2d/cocos/scripting/lua-bindings/auto/api/SkeletonNode.lua | 10 | 1992 |
--------------------------------
-- @module SkeletonNode
-- @extend BoneNode
-- @parent_module ccs
--------------------------------
-- get bonenode in skeleton node by bone name
-- @function [parent=#SkeletonNode] getBoneNode
-- @param self
-- @param #string boneName
-- @return BoneNode#BoneNode ret (return value: c... | apache-2.0 |
PlexChat/premake-core | tests/actions/vstudio/vc200x/test_assembly_refs.lua | 9 | 1510 | --
-- tests/actions/vstudio/vc200x/test_assembly_refs.lua
-- Validate managed assembly references in Visual Studio 2010 C/C++ projects.
-- Copyright (c) 2013 Jason Perkins and the Premake project
--
local suite = test.declare("vs200x_assembly_refs")
local vc200x = premake.vstudio.vc200x
--
-- Setup
--
local wks,... | bsd-3-clause |
chris5560/openwrt-luci | applications/luci-app-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/widget.lua | 68 | 1039 | -- Copyright 2012 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
local uci = require "luci.model.uci".cursor()
local dsp = require "luci.dispatcher"
local utl = require "luci.util"
local widget = uci:get("freifunk-widgets", arg[1], "template")
local title = uci:get("f... | apache-2.0 |
garious/flake | luau/xpio_c_q.lua | 2 | 2945 | local qt = require "qtest"
local xc = require "xpio_c"
local cmap = require "cmap"
local eq = qt.eq
--------------------------------
-- inspect `xpio` contents
--------------------------------
local contents = {
socket = "function",
tqueue = "function",
gettime = "function",
socketpair = "function",
... | mit |
ld-test/middleclass | spec/metamethods_spec.lua | 1 | 9086 | local class = require 'middleclass'
local Object = class.Object
local function is_lua_5_2_compatible()
return type(rawlen) == 'function'
end
local function is_lua_5_3_compatible()
return type(string.unpack) == 'function'
end
if is_lua_5_2_compatible() then
require 'spec/metamethods_lua_5_2'
end
if is_lua_5_3_... | mit |
xdemolish/darkstar | scripts/globals/mobskills/Antimatter.lua | 6 | 1117 | ---------------------------------------------------
-- Antimatter
--
-- Description: Single-target ranged Light damage (~700-1500), ignores Utsusemi.
-- Type: Magical
--
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/script... | gpl-3.0 |
moheb2076/dimond2 | libs/feedparser.lua | 31 | 12090 | local LOM = assert(require("lxp.lom"), "LuaExpat doesn't seem to be installed. feedparser kind of needs it to work...")
local XMLElement = (loadfile "./libs/XMLElement.lua")()
local dateparser = (loadfile "./libs/dateparser.lua")()
local URL = (loadfile "./libs/url.lua")()
local tinsert, tremove, tconcat = table.insert... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Northern_San_dOria/npcs/Narcheral.lua | 23 | 3760 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Narcheral
-- Starts and Finishes Quest: Messenger from Beyond, Prelude of Black and White (Finish), Pieuje's Decision (Finish)
-- @zone 231
-- @pos 129 -11 126
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/T... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Windurst_Woods/npcs/Lih_Pituu.lua | 9 | 1830 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Lih Pituu
-- Type: Bonecraft Adv. Image Support
-- @pos -5.471 -6.25 -141.211 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Windurs... | gpl-3.0 |
chris5560/openwrt-luci | applications/luci-app-radicale/luasrc/controller/radicale.lua | 28 | 8642 | -- Copyright 2014-2016 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed under the Apache License, Version 2.0
module("luci.controller.radicale", package.seeall)
local NX = require("nixio")
local NXFS = require("nixio.fs")
local DISP = require("luci.dispatcher")
local HTTP = require("lu... | apache-2.0 |
samael65535/quick-ng | quick/framework/cc/sdk/Store.lua | 13 | 3883 |
local Store = {}
local function checkCCStore()
if not cc.Store then
printError("framework.cc.sdk.Store - cc.Store not exists.")
return false
end
return true
end
function Store.init(listener)
if not checkCCStore() then return false end
if cc.storeProvider then
printError("... | mit |
simonswine/chdkptp | lua/extras/vxromlog.lua | 7 | 3695 | --[[
usage
!vlog=require'extras/vxromlog'
!l=vlog.load('ROMLOG.LOG)
!l:print()
or
require'extras/vxromlog'.load('ROMLOG.LOG'):print_all()
]]
--[[
forum thread: http://chdk.setepontos.com/index.php?topic=5394.0
a540-ptp-raw-1.1.0.2597.LOG
assert(I think)
3470 bytes
8E 0D 00 00 = 3470
date (looks like fixed length)
20... | gpl-2.0 |
xdemolish/darkstar | scripts/zones/Selbina/npcs/Explorer_Moogle.lua | 1 | 1773 | -----------------------------------
-- Area: Selbina
-- NPC: Explorer Moogle
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
require("scripts/globals/settings");
require("scripts/globals/t... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Hajawaa.lua | 36 | 4458 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Hajawaa
-- Armor Storage NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/armorst... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.