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 |
|---|---|---|---|---|---|
willswang/vlc | share/lua/modules/sandbox.lua | 96 | 4375 | --[==========================================================================[
sandbox.lua: Lua sandboxing facilities
--[==========================================================================[
Copyright (C) 2007 the VideoLAN team
$Id$
Authors: Antoine Cellerier <dionoea at videolan dot org>
This program is f... | gpl-2.0 |
dacrybabysuck/darkstar | scripts/globals/items/dish_of_spaghetti_carbonara_+1.lua | 11 | 1548 | -----------------------------------------
-- ID: 5199
-- Item: dish_of_spaghetti_carbonara_+1
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health % 14
-- Health Cap 180
-- Magic 15
-- Strength 4
-- Vitality 2
-- Intelligence -3
-- Attack % 17
-- Attack Cap 70
-- Store TP 6
-------------... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/spells/bluemagic/regurgitation.lua | 12 | 1960 | -----------------------------------------
-- Spell: Regurgitation
-- Deals Water damage to an enemy. Additional Effect: Bind
-- Spell cost: 69 MP
-- Monster Type: Lizards
-- Spell Type: Magical (Water)
-- Blue Magic Points: 1
-- Stat Bonus: INT+1 MND+1 MP+3
-- Level: 68
-- Casting Time: 5 seconds
-- Recast Time: 24 sec... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Bastok_Mines/npcs/Black_Mud.lua | 11 | 2597 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Black Mud
-- Starts & Finishes Quest: Drachenfall
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scripts/globals/titles");
local ID = require("scripts/zones/Bastok_Mines/IDs");
------... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/pets/wyvern.lua | 12 | 7305 | -----------------------------------
-- PET: Wyvern
-----------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
local WYVERN_OFFENSIVE = 1
local WYVERN_DEFENSIVE = 2
local WYVERN_MULTI = 3
local wyvernTypes = {
[dsp.job.WAR] = WYVERN_OFFENSIVE,
[dsp.job.MNK] = WYVERN_O... | gpl-3.0 |
gpedro/otclient | modules/game_playertrade/playertrade.lua | 13 | 2011 | tradeWindow = nil
function init()
g_ui.importStyle('tradewindow')
connect(g_game, { onOwnTrade = onGameOwnTrade,
onCounterTrade = onGameCounterTrade,
onCloseTrade = onGameCloseTrade,
onGameEnd = onGameCloseTrade })
end
function terminate()
disconnect(... | mit |
dacrybabysuck/darkstar | scripts/globals/items/piscators_skewer.lua | 11 | 1072 | -----------------------------------------
-- ID: 5983
-- Item: Piscator's Skewer
-- Food Effect: 60 Mins, All Races
-----------------------------------------
-- Dexterity 3
-- Vitality 4
-- Defense % 26 Cap 155
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
--... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Port_Windurst/npcs/Kususu.lua | 12 | 1113 | -----------------------------------
-- Area: Port Windurst
-- NPC: Kususu
-- Standard Merchant NPC
-----------------------------------
local ID = require("scripts/zones/Port_Windurst/IDs")
require("scripts/globals/shop")
function onTrade(player,npc,trade)
end
function onTrigger(player,npc)
local stock =
{
... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Grand_Palace_of_HuXzoi/IDs.lua | 12 | 1210 | -----------------------------------
-- Area: Grand_Palace_of_HuXzoi
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.GRAND_PALACE_OF_HUXZOI] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <... | gpl-3.0 |
saadmzed/k-nam | tg/tdcli.lua | 1 | 89153 | --[[
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be use... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Waughroon_Shrine/bcnms/worms_turn.lua | 9 | 1066 | -----------------------------------
-- The Worm's Turn
-- Waughroon Shrine BCNM40, Star Orb
-- !additem 1131
-----------------------------------
require("scripts/globals/battlefield")
-----------------------------------
function onBattlefieldInitialise(battlefield)
battlefield:setLocalVar("loot", 1)
end
function ... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/mobskills/necropurge.lua | 11 | 1133 | ---------------------------------------------
-- Necropurge
--
---------------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/monstertpmoves")
---------------------------------------------
function onMobSkillCheck(target,mob,skill)
if(mob:... | gpl-3.0 |
sowbug/nodemcu-firmware | lua_examples/adc_rgb.lua | 73 | 1163 | --
-- Light sensor on ADC(0), RGB LED connected to gpio12(6) Green, gpio13(7) Blue & gpio15(8) Red.
-- This works out of the box on the typical ESP8266 evaluation boards with Battery Holder
--
-- It uses the input from the sensor to drive a "rainbow" effect on the RGB LED
-- Includes a very "pseudoSin" function
--
f... | mit |
fiskio/dp | feedback/topcrop.lua | 2 | 5259 | ------------------------------------------------------------------------
--[[ TopCrop ]]--
-- Feedback for use with ImageNet-like dataset.
------------------------------------------------------------------------
local TopCrop, parent = torch.class("dp.TopCrop", "dp.Feedback")
function TopCrop:__init(config)
conf... | bsd-3-clause |
dacrybabysuck/darkstar | scripts/zones/Balgas_Dais/bcnms/charming_trio.lua | 9 | 1062 | -----------------------------------
-- Charming Trio
-- Balga's Dais BCNM20, Cloudy Orb
-- !additem 1551
-----------------------------------
require("scripts/globals/battlefield")
-----------------------------------
function onBattlefieldInitialise(battlefield)
battlefield:setLocalVar("loot", 1)
end
function onBa... | gpl-3.0 |
varunparkhe/Algorithm-Implementations | Linear_Search/Lua/Yonaba/linear_search_test.lua | 26 | 2059 | -- Tests for linear_search.lua
local search = require 'linear_search'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1 ... | mit |
Dingf/Icewrack | game/dota_addons/icewrack/scripts/vscripts/link_ext_modifier.lua | 1 | 24037 | if IsServer() then
require("timer")
require("entity_base")
require("ext_modifier")
require("link_functions")
end
if not CExtModifierLinker then CExtModifierLinker = {}
local stLuaModifierIgnoredArgs =
{
creationtime = true,
unit = true,
attacker = true,
target = true,
entity = true,
}
local tContext = getfenv()... | mit |
dacrybabysuck/darkstar | scripts/zones/Promyvion-Vahzl/Zone.lua | 9 | 1386 | -----------------------------------
--
-- Zone: Promyvion-Vahzl (22)
--
-----------------------------------
local ID = require("scripts/zones/Promyvion-Vahzl/IDs")
require("scripts/globals/promyvion")
require("scripts/globals/missions")
require("scripts/globals/settings")
require("scripts/globals/status")
-------------... | gpl-3.0 |
varunparkhe/Algorithm-Implementations | Euclidean_algorithm/Lua/Yonaba/euclidian.lua | 27 | 1312 | -- Checks if a is an integer value
local function isInt(a)
return math.floor(a) == a
end
-- Performs checks and provides early exit
-- a, b must be positive integers
-- handles GCD(a,0) = a, GCD(0,b) = b
-- GCD(0,0) do not exist
-- See: http://en.wikipedia.org/wiki/Binary_GCD_algorithm#Algorithm
local function checkA... | mit |
fegimanam/uzrep | plugins/get.lua | 613 | 1067 | local function get_variables_hash(msg)
if msg.to.type == 'chat' then
return 'chat:'..msg.to.id..':variables'
end
if msg.to.type == 'user' then
return 'user:'..msg.from.id..':variables'
end
end
local function list_variables(msg)
local hash = get_variables_hash(msg)
if hash then
local names =... | gpl-2.0 |
22333322/i4bot | plugins/get.lua | 613 | 1067 | local function get_variables_hash(msg)
if msg.to.type == 'chat' then
return 'chat:'..msg.to.id..':variables'
end
if msg.to.type == 'user' then
return 'user:'..msg.from.id..':variables'
end
end
local function list_variables(msg)
local hash = get_variables_hash(msg)
if hash then
local names =... | gpl-2.0 |
dacrybabysuck/darkstar | scripts/globals/items/strip_of_sheep_jerky.lua | 11 | 1086 | -----------------------------------------
-- ID: 4518
-- Item: strip_of_sheep_jerky
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Strength 3
-- Intelligence -1
-- Attack % 23
-- Attack Cap 35
-----------------------------------------
require("scripts/globals/status")
require("scripts/glo... | gpl-3.0 |
keviner2004/shoot-em-up | GameObject.lua | 1 | 10048 | local GameObject = {}
local move = require("move")
local Sprite = require("Sprite")
local TimerUtil = require("TimerUtil")
local gameConfig = require("gameConfig")
local EnterFrameUtil = require("EnterFrameUtil")
local util = require("util")
local logger = require("logger")
GameObject.new = function (options)
loca... | mit |
fakechris/Atlas | tests/suite/base/t/error_struct.lua | 4 | 2063 | --[[ $%BEGINLICENSE%$
Copyright (c) 2007, 2008, 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 |
dacrybabysuck/darkstar | scripts/globals/items/broiled_pipira.lua | 11 | 1266 | -----------------------------------------
-- ID: 4585
-- Item: Broiled Pipira
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Dexterity 4
-- Mind -1
-- Attack % 14 (cap 80)
-- Ranged ATT % 14 (cap 80)
-----------------------------------------
require("scripts/globals/status")
require("scri... | gpl-3.0 |
p00ria/Blacklife-Pouria | plugins/Shekayat.lua | 2 | 1056 | do
local function action_by_reply(extra, success, result)
if result.from.username then
user_name = '@'..result.from.username
else
user_name = ''
end
local text = result.from.peer_id
send_large_msg(extra.receiver, 'شکایت شما برای کاربر @' ..result.from.username..' ثبت شد \nبه زودی اطلاعات... | gpl-2.0 |
dacrybabysuck/darkstar | scripts/zones/Southern_San_dOria/npcs/Hanaa_Punaa.lua | 9 | 6501 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Hanaa Punaa
-- Starts and Finishes: A Squire's Test, A Squire's Test II, A Knight's Test
-- !zone 230
-------------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/keyitems"... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/abilities/monks_roll.lua | 12 | 2888 | -----------------------------------
-- Ability: Monk's Roll
-- Enhances "Subtle Blow" effect for party members within area of effect
-- Optimal Job: Monk
-- Lucky Number: 3
-- Unlucky Number: 7
-- Level: 31
-- Phantom Roll +1 Value: 4
--
-- Die Roll |No MNK |With MNK
-- -------- -------- -----------
-- 1 ... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/spells/bluemagic/screwdriver.lua | 8 | 1679 | -----------------------------------------
-- Spell: Screwdriver
-- Deals critical damage. Chance of critical hit varies with TP
-- Spell cost: 21 MP
-- Monster Type: Aquans
-- Spell Type: Physical (Piercing)
-- Blue Magic Points: 3
-- Stat Bonus: VIT+1, CHR+1, HP+10
-- Level: 26
-- Casting Time: 0.5 seconds
-- Recast T... | gpl-3.0 |
thivod/forgottenserver | data/global.lua | 1 | 16680 | dofile('data/compat.lua')
TRUE = true
FALSE = false
LUA_ERROR = false
LUA_NO_ERROR = true
THING_TYPE_PLAYER = 1
THING_TYPE_MONSTER = 2
THING_TYPE_NPC = 3
MAPMARK_TICK = 0
MAPMARK_QUESTION = 1
MAPMARK_EXCLAMATION = 2
MAPMARK_STAR = 3
MAPMARK_CROSS = 4
MAPMARK_TEMPLE = 5
MAPMARK_KISS = 6
MAPMARK_SHOVEL = 7
MAPMARK_SW... | gpl-2.0 |
dacrybabysuck/darkstar | scripts/globals/mobskills/lateral_slash.lua | 11 | 1130 | ---------------------------------------------
-- Lateral Slash
--
-- Description: Laterally slashes a single target. Additional effect: Defense Down
-- Type: Physical
-- Utsusemi/Blink absorb: 1 shadow
-- Range: Melee
-- Notes: Reduces defense by 75%. Can be removed with Monk Job Ability Counterstance.
---------... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Cape_Teriggan/IDs.lua | 9 | 3415 | -----------------------------------
-- Area: Cape_Teriggan
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.CAPE_TERIGGAN] =
{
text =
{
NOTHING_HAPPENS = 119, -- Nothing happens...
ITEM_CANNO... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Upper_Delkfutts_Tower/Zone.lua | 9 | 1578 | -----------------------------------
--
-- Zone: Upper_Delkfutts_Tower (158)
--
-----------------------------------
local ID = require("scripts/zones/Upper_Delkfutts_Tower/IDs")
require("scripts/globals/conquest")
require("scripts/globals/treasure")
-----------------------------------
function onInitialize(zone)
zo... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/weaponskills/knights_of_round.lua | 10 | 1784 | -----------------------------------
-- 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 without after... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/effects/tabula_rasa.lua | 12 | 3502 | -----------------------------------
--
--
--
-----------------------------------
function onEffectGain(target,effect)
local regen = effect:getSubPower()
local helix = effect:getPower()
if (target:hasStatusEffect(dsp.effect.LIGHT_ARTS) or target:hasStatusEffect(dsp.effect.ADDENDUM_WHITE)) then
targ... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/spells/cure_vi.lua | 5 | 4536 | -----------------------------------------
-- Spell: Cure VI
-- Restores target's HP.
-- Shamelessly stolen from http://members.shaw.ca/pizza_steve/cure/Cure_Calculator.html
-----------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/magic")
re... | gpl-3.0 |
dkogan/notion.xfttest | contrib/statusd/statusd_drives.lua | 3 | 1456 | -- Authors: Voker57 <voker57@gmail.com>
-- License: Public domain
-- Last Changed: Unknown
--
-- Disk drives monitor
-- %drives - list of currently connected drives
-- by Voker57 <voker57@gmail.com>
-- Public domain
local defaults={
update_interval=500
}
local settings=table.join(statusd.get_config("drives"), d... | lgpl-2.1 |
p00ria/Blacklife-Pouria | plugins/ClashOfClans.lua | 1 | 3008 | local apikey =
''
local function run(msg, matches)
if matches[1]:lower() == 'clan' or matches[1]:lower() == 'clash' or matches[1]:lower() == 'clantag' or matches[1]:lower() == 'tag' then
local clantag = matches[2]
if string.match(matches[2], '^#.+$') then
clantag = string.gsub(matches[2], '#', '')
end
cl... | gpl-2.0 |
Dingf/Icewrack | game/dota_addons/icewrack/scripts/vscripts/mechanics/effect_shock.lua | 1 | 1237 | require("mechanics/damage_types")
require("mechanics/damage_secondary")
local stShockDamageTable =
{
damage =
{
[IW_DAMAGE_TYPE_LIGHTNING] = {}
},
}
function ApplyShock(hVictim, hAttacker, fDamagePercentHP)
if fDamagePercentHP > 0.1 then
stShockDamageTable.target = hVictim
stShockDamageTable.attacker = hAt... | mit |
dacrybabysuck/darkstar | scripts/zones/Dynamis-Valkurm/IDs.lua | 9 | 6299 | -----------------------------------
-- Area: Dynamis-Valkurm
-----------------------------------
require("scripts/globals/keyitems")
require("scripts/globals/dynamis")
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.DYNAMIS_VALKURM] =
{
text =
{
I... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Temple_of_Uggalepih/npcs/qm15.lua | 9 | 1799 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: ???
-- Involved in Quest: Knight Stalker
-- !pos 58 1 -70 159
-----------------------------------
local ID = require("scripts/zones/Temple_of_Uggalepih/IDs")
require("scripts/globals/keyitems")
require("scripts/globals/npc_util")
require("scripts... | gpl-3.0 |
gpedro/otclient | modules/corelib/table.lua | 9 | 3512 | -- @docclass table
function table.dump(t, depth)
if not depth then depth = 0 end
for k,v in pairs(t) do
str = (' '):rep(depth * 2) .. k .. ': '
if type(v) ~= "table" then
print(str .. tostring(v))
else
print(str)
table.dump(v, depth+1)
end
end
end
function table.clear(t)
for ... | mit |
dacrybabysuck/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Isdebaaq.lua | 11 | 2577 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Isdebaaq
-- Type: Assault Mission Giver
-- !pos 127.565 0.161 -43.846 50
-----------------------------------
require("scripts/globals/keyitems")
local ID = require("scripts/zones/Aht_Urhgan_Whitegate/IDs")
require("scripts/globals/besieged")
req... | gpl-3.0 |
VectorSpaceHQ/RPiThermostat | nodes/esp_node.lua | 1 | 1662 | -- Read temperature and light
moduleID=2
light = adc.read(0)
print("light: ".. light)
-- init mqtt client without logins, keepalive timer 120s
m = mqtt.Client("clientid", 120)
m:on("connect", function(client) print ("connected") end)
m:on("offline", function(client) print ("offline") end)
-- on publish message re... | gpl-3.0 |
istr/gin | spec/db/sql/mysql/orm_spec.lua | 2 | 15388 | require 'spec.spec_helper'
describe("MySqlOrm", function()
before_each(function()
MySqlOrm = require 'gin.db.sql.mysql.orm'
local quote_fun = function(str) return "'q-".. str .. "'" end
orm = MySqlOrm.new('users', quote_fun)
end)
after_each(function()
package.loaded['gin.... | mit |
nathana1/FrameworkBenchmarks | frameworks/Lua/lapis/web.lua | 72 | 5957 | local lapis = require("lapis")
local db = require("lapis.db")
local Model
do
local _obj_0 = require("lapis.db.model")
Model = _obj_0.Model
end
local config
do
local _obj_0 = require("lapis.config")
config = _obj_0.config
end
local insert
do
local _obj_0 = table
insert = _obj_0.insert
end
local sort
do
loc... | bsd-3-clause |
thivod/forgottenserver | data/talkactions/scripts/mccheck.lua | 10 | 1054 | function onSay(cid, words, param)
local player = Player(cid)
if not player:getGroup():getAccess() then
return true
end
if player:getAccountType() < ACCOUNT_TYPE_GOD then
return false
end
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Multiclient Check List:")
local ipList = {}
local players = Game... | gpl-2.0 |
dacrybabysuck/darkstar | scripts/globals/weaponskills/blade_chi.lua | 10 | 1550 | -----------------------------------
-- Blade Chi
-- Katana weapon skill
-- Skill Level: 150
-- Delivers a two-hit earth elemental attack. Damage varies with TP.
-- Aligned with the Thunder Gorget & Light Gorget.
-- Aligned with the Thunder Belt & Light Belt.
-- Element: Earth
-- Modifiers: STR:30% INT:30%
-- 100%TP ... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/items/sleep_arrow.lua | 12 | 1176 | -----------------------------------------
-- ID: 18158
-- Item: Sleep Arrow
-- Additional Effect: Sleep
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------------
function onAdditionalEffect(playe... | gpl-3.0 |
mosy210/shadow-bot | plugins/time.lua | 771 | 2865 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
arsjac/DotaClassic | game/dota_addons/dotaclassic/scripts/vscripts/runic_burn.lua | 1 | 2017 | --adapted by arsjac from original code by:
--[[Author: Pizzalol
Date: 02.04.2015.
Deals damage around the holder of the ion shell modifier]]
function RunicBurn( keys )
local caster = keys.caster
local target = keys.target
local target_location = target:GetAbsOrigin()
local ability = keys.ability
local ability_l... | gpl-3.0 |
ld-test/lua-resty-hipchat | lib/resty/hipchat.lua | 2 | 2661 | -- Copyright (C) James Marlowe (jamesmarlowe), Lumate LLC.
local cjson = require "cjson"
local url_parameters = "?format=json&auth_token="
local hipchat_proxy_url = "/hipchat/v1/"
local room_message_url = "/v1/rooms/message"..url_parameters
local ok, new_tab = pcall(require, "table.new")
if not ok then
new_tab ... | bsd-2-clause |
TheAncientGoat/cCCommunity-L-VE-Project-Base | goo/skins/default/style.lua | 1 | 1899 | -- Filename: goo.lua
-- Author: Luke Perkin
-- Date: 2010-02-26
-- Returns Style, Fonts.
-- How to use:
-- Each table reperesent a style sheet for a gui object.
-- Think of it like CSS. Colors are reperesented by RGBA tables.
-- If you specify an alpha value that property will not inherit its
-- parent's opacity.
-- u... | mit |
dacrybabysuck/darkstar | scripts/globals/weaponskills/blade_rin.lua | 10 | 1400 | -----------------------------------
-- Blade Rin
-- Katana weapon skill
-- Skill Level: 5
-- Delivers a single-hit attack. Chance of params.critical varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Light Gorget.
-- Aligned with the Light Belt.
-- Element: None
-- Modifiers: STR:20% DEX:20%
-- 100%T... | gpl-3.0 |
p00ria/Blacklife-Pouria | plugins/Weather.lua | 2 | 4467 | local function temps(K)
local F = (K*1.8)-459.67
local C = K-273.15
return F,C
end
local function run(msg, matches)
local res = http.request("http://api.openweathermap.org/data/2.5/weather?q="..URL.escape(matches[2]).."&appid=269ed82391822cc692c9afd59f4aabba")
local jtab = JSON.decode(res)
if jtab.name then
if... | gpl-2.0 |
dacrybabysuck/darkstar | scripts/zones/Ifrits_Cauldron/mobs/Bomb_Queen.lua | 11 | 1619 | -----------------------------------
-- Area: Ifrit's Cauldron
-- NM: Bomb Queen
-- Vid: https://www.youtube.com/watch?v=AVsEbYjSAHM
-----------------------------------
local ID = require("scripts/zones/Ifrits_Cauldron/IDs")
require("scripts/globals/status")
-----------------------------------
function onMobInitiali... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/items/bowl_of_soy_ramen.lua | 11 | 1523 | -----------------------------------------
-- ID: 6458
-- Item: bowl_of_soy_ramen
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP +50
-- STR +5
-- VIT +5
-- AGI +3
-- Attack +10% (cap 170)
-- Ranged Attack +10% (cap 170)
-- Resist Slow +10
-----------------------------------------
requir... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/abilities/pets/attachments/ice_maker.lua | 11 | 1758 | -----------------------------------
-- Attachment: Ice Maker
-----------------------------------
require("scripts/globals/status")
-----------------------------------
function onEquip(pet)
pet:addListener("MAGIC_START", "AUTO_ICE_MAKER_START", function(pet, spell, action)
if spell:getSkillType() ~= dsp.ski... | gpl-3.0 |
nimaghorbani/dozdi1 | plugins/rae.lua | 616 | 1312 | do
function getDulcinea( text )
-- Powered by https://github.com/javierhonduco/dulcinea
local api = "http://dulcinea.herokuapp.com/api/?query="
local query_url = api..text
local b, code = http.request(query_url)
if code ~= 200 then
return "Error: HTTP Connection"
end
dulcinea = json:decode(b)
... | gpl-2.0 |
ralucah/splay-daemon-lua5.2 | modules/splay/misc.lua | 1 | 11611 | --[[
Splay ### v1.2 ###
Copyright 2006-2011
http://www.splay-project.org
]]
--[[
This file is part of Splay.
Splay 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 L... | gpl-3.0 |
ovh/overthebox-feeds | luci-base/luasrc/cbi.lua | 7 | 40627 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.cbi", package.seeall)
require("luci.template")
local util = require("luci.util")
require("luci.http")
--local event = require "luci.sys.event"
local fs = require("nixio.fs")
local uc... | gpl-3.0 |
baishancloud/lua-acid | lib/test_proposer_acceptor.lua | 1 | 41151 | local base = require( "acid.paxos.base" )
local paxos = require( "acid.paxos" )
local round = require( "acid.paxos.round" )
local tableutil = require( "acid.tableutil" )
local errors = base.errors
local prop_sto = {
committed= {
ver=1,
val = {
view={
{ a=1, b=1, c=1 },
... | mit |
X-Plane/XLua | LuaJIT-2.1.0/src/jit/dis_mips.lua | 6 | 22010 | ----------------------------------------------------------------------------
-- LuaJIT MIPS disassembler module.
--
-- Copyright (C) 2005-2021 Mike Pall. All rights reserved.
-- Released under the MIT/X license. See Copyright Notice in luajit.h
---------------------------------------------------------------------------... | mit |
multitheftauto/mtasa-blue | utils/buildactions/utils.lua | 2 | 4695 | -- From: http://industriousone.com/topic/oscopydir
--
-- Allows copying directories.
-- It uses the premake4 patterns (**=recursive match, *=file match)
-- NOTE: It won't copy empty directories!
-- Example: we have a file: src/test.h
-- os.copydir("src", "include") simple copy, makes include/test.h
-- os.copydir("src"... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Halvung/IDs.lua | 8 | 1525 | -----------------------------------
-- Area: Halvung
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.HALVUNG] =
{
text =
{
NOTHING_HAPPENS = 119, -- Nothing happens...
ITEM_CANNOT_BE_OBTAINED = 6... | gpl-3.0 |
jnhwkim/rnn | init.lua | 2 | 1901 | require 'dpnn'
require 'torchx'
dpnn.version = dpnn.version or 0
assert(dpnn.version > 1, "Please update dpnn : luarocks install dpnn")
-- create global rnn table:
rnn = {}
rnn.version = 2
rnn.version = 2.1 -- [get,set][Grad]HiddenState(step)
unpack = unpack or table.unpack
torch.include('rnn', 'recursiveUtils.lua')... | bsd-3-clause |
dacrybabysuck/darkstar | scripts/zones/Riverne-Site_B01/npcs/Unstable_Displacement.lua | 9 | 1230 | -----------------------------------
-- Area: Riverne Site #B01
-- NPC: Unstable Displacement
-----------------------------------
local ID = require("scripts/zones/Riverne-Site_B01/IDs");
require("scripts/globals/settings")
require("scripts/globals/quests")
require("scripts/globals/status")
require("scripts/globals/bcn... | gpl-3.0 |
dkogan/notion.xfttest | contrib/scripts/legacy/document_menus.lua | 3 | 4159 | -- Authors: Canaan Hadley-Voth
-- License: Unknown
-- Last Changed: 2005-12-20
--
-- document_menus.lua
--
-- Canaan Hadley-Voth
--
-- Navigate the filesystem by way of ion menu.
--
-- One way to implement this is to define a menu containing useful folders,
-- and use that as a starting point for binding to (see belo... | lgpl-2.1 |
Fir3element/downgrade86 | data/global.lua | 1 | 5429 | dofile('data/lib/lib.lua')
STORAGEVALUE_PROMOTION = 30018
ropeSpots = {384, 418, 8278, 8592}
doors = {
[1209] = 1211, [1210] = 1211, [1212] = 1214, [1213] = 1214, [1214] = 1212, [1219] = 1220, [1221] = 1222, [1231] = 1233,
[1232] = 1233, [1234] = 1236, [1235] = 1236, [1237] = 1238, [1239] = 1240, [1249] = 1251, [1... | gpl-2.0 |
Flatlander57/TheImaginedOTClient | modules/game_hotkeys/hotkeys_manager.lua | 1 | 17329 | HOTKEY_MANAGER_USE = nil
HOTKEY_MANAGER_USEONSELF = 1
--HOTKEY_MANAGER_USEONTARGET = 2
HOTKEY_MANAGER_USEWITH = 3
HotkeyColors = {
text = '#888888',
textAutoSend = '#FFFFFF',
itemUse = '#8888FF',
itemUseSelf = '#00FF00',
-- itemUseTarget = '#FF0000',
itemUseWith = '#F5B325',
}
hotkeysManagerLoaded = false
... | mit |
skryabiin/core | engine/lua-core/sdl.lua | 2 | 6140 | sdl = {}
sdl.key = {}
sdl.key.unknown = 0
sdl.key.backspace = 8
sdl.key.tab = 9
sdl.key.returnkey = 13
sdl.key.escape = 27
sdl.key.space = 32
sdl.key.exclaim = 33
sdl.key.quotedbl = 34
sdl.key.hash = 35
sdl.key.dollar = 36
sdl.key.percent = 37
sdl.key.ampersand = 38
sdl.key.quote = 39
sdl.key.leftparen = 40
sdl.key.ri... | mit |
fgielow/devenserver | data/talkactions/scripts/prision.lua | 2 | 3560 | jailedstoragevalue_time = 1338
jailedstoragevalue_bool = 1339
local jailpos = {
[1] = {x = 59, y = 52, z =6},
[2] = {x = 59, y = 52, z =5},
[3] = {x = 55, y = 47, z =6},
[4] = {x = 55, y = 47, z =5},
[5] = {x = 55, y = 52, z =6},
[6] = {x = 55, y = 52, z =5},
[7] = {x = 59, y = 47, z =5},
[8] = {x = 63, y = 52... | gpl-2.0 |
dacrybabysuck/darkstar | scripts/zones/Northern_San_dOria/npcs/Nouveil.lua | 11 | 1725 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Nouveil
-- Type: General
-- !pos 123 0 106 231
-----------------------------------
local ID = require("scripts/zones/Northern_San_dOria/IDs");
require("scripts/globals/settings");
require("scripts/globals/quests");
------------------------------... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Abyssea-Tahrongi/IDs.lua | 12 | 5067 | -----------------------------------
-- Area: Abyssea-Tahrongi
-----------------------------------
require("scripts/globals/keyitems")
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.ABYSSEA_TAHRONGI] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, --... | gpl-3.0 |
sowbug/nodemcu-firmware | lua_examples/u8glib/u8g_graphics_test.lua | 43 | 4007 |
-- setup I2c and connect display
function init_i2c_display()
-- SDA and SCL can be assigned freely to available GPIOs
local sda = 5 -- GPIO14
local scl = 6 -- GPIO12
local sla = 0x3c
i2c.setup(0, sda, scl, i2c.SLOW)
disp = u8g.ssd1306_128x64_i2c(sla)
end
-- setup SPI and connect display
... | mit |
X-Plane/XLua | LuaJIT-2.1.0/dynasm/dasm_arm.lua | 1 | 34598 | ------------------------------------------------------------------------------
-- DynASM ARM module.
--
-- Copyright (C) 2005-2021 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _in... | mit |
dacrybabysuck/darkstar | scripts/zones/Riverne-Site_B01/bcnms/storms_of_fate.lua | 9 | 2004 | -----------------------------------
-- Area: Riverne Site #B01
-- Name: Storms of Fate
-- !pos 299 -123 345 146
-----------------------------------
local ID = require("scripts/zones/Riverne-Site_B01/IDs")
require("scripts/globals/battlefield")
require("scripts/globals/keyitems")
require("scripts/globals/settings")
requ... | gpl-3.0 |
sowbug/nodemcu-firmware | lua_examples/yet-another-dht22.lua | 65 | 2195 | ------------------------------------------------------------------------------
-- DHT11/22 query module
--
-- LICENCE: http://opensource.org/licenses/MIT
-- Vladimir Dronnikov <dronnikov@gmail.com>
--
-- Example:
-- print("DHT11", dofile("dht22.lua").read(4))
-- print("DHT22", dofile("dht22.lua").read(4, true))
-- NB: ... | mit |
baishancloud/lua-acid | lib/nginx_cluster.lua | 2 | 3081 | local acid_cluster = require( "acid.cluster" )
local impl_ngx = require( "acid.impl_ngx" )
local _M = {}
local function make_loop_member_creator(idents_getter)
local i = 0
return function(impl, paxos, dead_ident, members)
local idents = idents_getter(paxos)
for ii = 1, #idents do
... | mit |
dacrybabysuck/darkstar | scripts/globals/items/walnut_cookie.lua | 11 | 1096 | -----------------------------------------
-- ID: 5922
-- Item: Walnut Cookie
-- Food Effect: 3 Min, All Races
-----------------------------------------
-- HP Healing 3
-- MP Healing 6
-- Bird Killer 10
-- Resist Paralyze 10
-----------------------------------------
require("scripts/globals/status")
require("scripts/glo... | gpl-3.0 |
KittyCookie/skynet | lualib/snax/hotfix.lua | 39 | 2268 | local si = require "snax.interface"
local io = io
local hotfix = {}
local function envid(f)
local i = 1
while true do
local name, value = debug.getupvalue(f, i)
if name == nil then
return
end
if name == "_ENV" then
return debug.upvalueid(f, i)
end
i = i + 1
end
end
local function collect_uv(f , ... | mit |
extreme01/extreme | plugins/banhammer.lua | 9 | 11646 |
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 |
funkring/gs5 | misc/freeswitch/scripts/phones/gigaset.lua | 1 | 1380 | -- Gemeinschaft 5 module: general gigaset model class
-- (c) Peter Kozak 2013
--
module(...,package.seeall)
Gigaset = {}
-- Create Gigaset object
function Gigaset.new(self, arg)
arg = arg or {}
object = arg.object or {}
setmetatable(object, self);
self.__index = self;
self.log = arg.log;
self.reboot = a... | mit |
istr/gin | gin/db/sql/postgresql/adapter.lua | 1 | 3907 | -- gin
local postgresql_helpers = require 'gin.db.sql.postgresql.helpers'
-- perf
local error = error
local require = require
local smatch = string.match
local tonumber = tonumber
local function tappend(t, v) t[#t+1] = v end
local PostgreSql = {}
PostgreSql.default_database = 'postgres'
-- locations
function Postg... | mit |
dacrybabysuck/darkstar | scripts/zones/Grauberg_[S]/npcs/Indescript_Markings.lua | 9 | 1504 | ----------------------------------
-- Area: Grauberg [S]
-- NPC: Indescript Markings
-- Type: Quest
-----------------------------------
local ID = require("scripts/zones/Grauberg_[S]/IDs");
require("scripts/globals/keyitems");
require("scripts/globals/npc_util");
require("scripts/globals/status");
--------------------... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/items/chunk_of_goblin_chocolate.lua | 11 | 1037 | -----------------------------------------
-- ID: 4495
-- Item: chunk_of_goblin_chocolate
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Health Regen While Healing 5
-- Lizard Killer 10
-- Petrify resistance +10
-----------------------------------------
require("scripts/globals/status")
req... | gpl-3.0 |
dkogan/notion.xfttest | contrib/styles/look_gtk2.lua | 6 | 3793 | -- Authors: Rene van Bevern <rvb@pro-linux.de>
-- License: Unknown
-- Last Changed: Unknown
--
-- theme that goes well with the gtk2 default colors
-- it makes use of terminus als artwiz fonts
--
-- By Rene van Bevern <rvb@pro-linux.de>
if not gr.select_engine("de") then return end
de.reset()
de.defstyle("*", {
... | lgpl-2.1 |
dacrybabysuck/darkstar | scripts/globals/spells/bind.lua | 12 | 1261 | -----------------------------------------
-- Spell: Bind
-----------------------------------------
require("scripts/globals/magic")
require("scripts/globals/msg")
require("scripts/globals/status")
-----------------------------------------
function onMagicCastingCheck(caster, target, spell)
return 0
end
function o... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/items/piece_of_kusamochi.lua | 11 | 1873 | -----------------------------------------
-- ID: 6262
-- Item: kusamochi
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- HP + 20 (Pet & Master)
-- Vitality + 3 (Pet & Master)
-- Attack + 20% Cap: 72 (Pet & Master) Pet Cap: 113
-- Ranged Attack + 20% Cap: 72 (Pet & Master) Pet Cap: 113
---... | gpl-3.0 |
hussian1997/hk-_bot | plugins/voice.lua | 8 | 1050 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY(@AHMED_ALOBIDE) ▀▄ ▄▀
▀▄ ▄▀ BY(@hussian_9) ▀▄ ▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄▀... | gpl-2.0 |
shultays/bloodworks | game/resources/guns/rocketlauncher/rocket.lua | 1 | 3058 |
function RocketLauncher.init(gun)
gun.spreadAngle = 0.0
gun.crosshairDistance = 350.0
ShootTimer.initGun(gun, 0.7)
gun.data.checkAchievement = true
gun.data.achievementProcess = 0
end
function RocketLauncher.onTick(gun)
if gun.isTriggered and gun:hasAmmo() then
if ShootTimer.chec... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/items/bowl_of_oceanfin_soup.lua | 11 | 1615 | -----------------------------------------
-- ID: 6070
-- Item: Bowl of Oceanfin Soup
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- Accuracy % 15 Cap 95
-- Ranged Accuracy % 15 Cap 95
-- Attack % 19 Cap 85
-- Ranged Attack % 19 Cap 85
-- Amorph Killer 6
-----------------------------------... | gpl-3.0 |
baishancloud/lua-acid | lib/acid/dbagent/sql_util.lua | 1 | 9835 | local sql_constructor = require('acid.sql_constructor')
local strutil = require('acid.strutil')
local tableutil = require('acid.tableutil')
local to_str = strutil.to_str
local string_format = string.format
local table_insert = table.insert
local table_concat = table.concat
local _M = {}
local function pick_opts_in_... | mit |
skogler/GearHelper | libs/AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua | 5 | 58866 | --- AceConfigDialog-3.0 generates AceGUI-3.0 based windows based on option tables.
-- @class file
-- @name AceConfigDialog-3.0
-- @release $Id: AceConfigDialog-3.0.lua 1113 2014-09-11 20:18:16Z nevcairiel $
local LibStub = LibStub
local MAJOR, MINOR = "AceConfigDialog-3.0", 59
local AceConfigDialog, oldminor = ... | mit |
dacrybabysuck/darkstar | scripts/zones/Port_Bastok/npcs/Juroro.lua | 9 | 5552 | -----------------------------------
-- Area: Port Bastok
-- NPC: Juroro
-- Starts and Finishes Quest: Trial by Earth
-- !pos 32 7 -41 236
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/quests");
local ID = require("scripts/zones/Po... | gpl-3.0 |
Squ34k3rZ/SamsBday | 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... | mit |
dacrybabysuck/darkstar | scripts/zones/Abyssea-Vunkerl/IDs.lua | 12 | 4837 | -----------------------------------
-- Area: Abyssea-Vunkerl
-----------------------------------
require("scripts/globals/keyitems")
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.ABYSSEA_VUNKERL] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- Y... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Ghelsba_Outpost/bcnms/save_the_children.lua | 9 | 1619 | -----------------------------------
-- Save the Children
-- Ghelsba Outpost mission battlefield
-- !pos -162 -11 78 140
-----------------------------------
require("scripts/globals/battlefield")
require("scripts/globals/keyitems")
require("scripts/globals/missions")
require("scripts/globals/npc_util")
require("scripts/... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/spells/hojo_ichi.lua | 12 | 1462 | -----------------------------------------
-- Spell: Hojo:Ichi
-- Description: Inflicts Slow on target.
-- Edited from slow.lua
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------------
function o... | gpl-3.0 |
baishancloud/lua-acid | lib/acid/dbagent/client.lua | 1 | 7164 | local httpclient = require('acid.httpclient')
local acid_json = require('acid.json')
local strutil = require('acid.strutil')
local tableutil = require('acid.tableutil')
local aws_signer = require('resty.awsauth.aws_signer')
local to_str = strutil.to_str
local _M = { _VERSION = '0.0.1' }
local mt = { __index = _M }
... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.