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 |
|---|---|---|---|---|---|
Kthulupwns/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Tohs_Jhannih.lua | 38 | 1050 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Tohs Jhannih
-- Type: Standard NPC
-- @zone: 94
-- @pos -46.492 -4.5 70.828
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Balgas_Dais/bcnms/shattering_stars.lua | 13 | 1986 | -----------------------------------
-- Area: Balga's Dais
-- Name: Shattering stars - Maat Fight
-- @pos 299 -123 345 146
-----------------------------------
package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/titles");
require("scripts/globals/ques... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/weaponskills/spinning_attack.lua | 30 | 1357 | -----------------------------------
-- Spinning Attack
-- Hand-to-Hand weapon skill
-- Skill Level: 150
-- Delivers an area attack. Radius varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Flame Gorget & Thunder Gorget.
-- Aligned with the Flame Belt & Thunder Belt.
-- Element: None
-- Modif... | gpl-3.0 |
FPtje/DarkRP | entities/entities/spawned_shipment/cl_init.lua | 1 | 5388 | include("shared.lua")
local matBallGlow = Material("models/props_combine/tpballglow")
function ENT:Draw()
self.height = self.height or 0
self.colr = self.colr or 1
self.colg = self.colg or 0
self.StartTime = self.StartTime or CurTime()
if GAMEMODE.Config.shipmentspawntime > 0 and self.height < sel... | mit |
GabrielNicolasAvellaneda/luvit-upstream | tests/to-convert/test-net-connect-handle-econnrefused.lua | 6 | 1100 | --[[
Copyright 2012 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | apache-2.0 |
naader1380/n2 | plugins/spam.lua | 29 | 1984 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
dreamsxin/otclient | modules/game_console/console.lua | 1 | 49994 | SpeakTypesSettings = {
none = {},
say = { speakType = MessageModes.Say, color = '#FFFF00' },
whisper = { speakType = MessageModes.Whisper, color = '#FFFF00' },
yell = { speakType = MessageModes.Yell, color = '#FFFF00' },
broadcast = { speakType = MessageModes.GamemasterBroadcast, color = '#F55E5E' },
privat... | mit |
ponpal/ProjectParty-for-Android | PPAndroid/assets/Core.lua | 1 | 19165 |
ffi = require("ffi")
ffi.cdef[[
// ----------------------------
// types.h
// ----------------------------
typedef struct { float x; float y; } vec2f;
typedef struct { float x; float y; float z; } vec3f;
typedef struct { float x; float y; float z; float w; } vec4f;
typedef struct { float mat[16]; } matrix4;... | apache-2.0 |
mlody1039/ModernOts | data/npc/scripts/Buddel Raider Camp.lua | 3 | 1328 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function ... | gpl-3.0 |
kuoruan/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/admin.lua | 4 | 3234 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
m = Map("system", translate("Router Password"),
translate("Changes the administrator password for accessing the device"))
s = ... | apache-2.0 |
springheeledjak/thrift | lib/lua/TSocket.lua | 113 | 2996 | ---- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you may... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Chemioue.lua | 38 | 1044 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Chemioue
-- Type: NPC Quest
-- @zone: 26
-- @pos 82.041 -34.964 67.636
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/King_Ranperres_Tomb/npcs/Treasure_Chest.lua | 12 | 2587 | -----------------------------------
-- Area: King Ranperres Tomb
-- NPC: Treasure Chest
-- @zone 190
-----------------------------------
package.loaded["scripts/zones/King_Ranperres_Tomb/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/treasure");
requ... | gpl-3.0 |
HaveF/papercrop | config.lua | 15 | 16629 | -----------------------------------------------------------------
-- list of known configurations for reference. You still have to manually
-- edit the user setting below. (search for user settings)
-- please send me e-mail if you know your device's correct configuration.
-------------------------------------------... | gpl-2.0 |
himamm/uzzbot | plugins/plugins.lua | 325 | 6164 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
carbonsrv/circd | libs/clib.lua | 1 | 5717 | -- clib
local clib = {}
local event = require("libs.event")
local msgpack = require("msgpack")
----
--- client Helpers
----
-- Get stored data
function clib.getclient(id) -- get client assigned to id
local client = msgpack.unpack(kvstore._get("circd:client:"..id))
client.sock = clib.getsock(id)
return client
end
f... | mit |
Mleaf/mleaf_luci | applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua | 18 | 3692 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Copyright 2013 Manuel Munz <freifunk at somakoma dot de>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with... | apache-2.0 |
Kthulupwns/darkstar | scripts/globals/spells/bluemagic/mysterious_light.lua | 3 | 1329 | -----------------------------------------
--
-- Mysterious Light
--
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/bluemagic");
-----------------------------------------
-- OnSpellCast
------------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Waughroon_Shrine/bcnms/shattering_stars.lua | 13 | 1930 | -----------------------------------
-- Area: Waughroon Shrine
-- Name: Shattering stars - Maat Fight
-- @pos -345 104 -260 144
-----------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Waughroon_Shrine/TextIDs");
----... | gpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/TP/Oliver.lua | 2 | 1100 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/abilities/pets/aero_ii.lua | 5 | 1159 | ---------------------------------------------------
-- Aero 2
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
require("/scripts/globals/magic");
------------------------------------------... | gpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/TP1/boat_porthope.lua | 1 | 5421 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function ... | gpl-3.0 |
ark120202/aabs | game/scripts/vscripts/heroes/hero_kadash/assasins_skills.lua | 1 | 1723 | LinkLuaModifier("modifier_kadash_assasins_skills", "heroes/hero_kadash/assasins_skills.lua", LUA_MODIFIER_MOTION_NONE)
kadash_assasins_skills = class({GetIntrinsicModifierName = function() return "modifier_kadash_assasins_skills" end})
modifier_kadash_assasins_skills = class({
IsHidden = function() return true end,
... | mit |
FPtje/DarkRP | entities/entities/drug/init.lua | 1 | 2962 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
local function UnDrugPlayer(ply)
if not IsValid(ply) then return end
ply.isDrugged = false
local IDSteam = ply:SteamID64()
timer.Remove(IDSteam .. "DruggedHealth")
SendUserMessage("DrugEffects", ply, false)
end
hook.Add... | mit |
Kthulupwns/darkstar | scripts/zones/Mhaura/npcs/Blandine.lua | 17 | 2169 | -----------------------------------
-- Area: Mhaura
-- NPC: Blandine
-- Start Quest: The Sand Charmz
-- @pos 23 -7 41 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/global... | gpl-3.0 |
mlody1039/ModernOts | data/lib/arena.lua | 1 | 1749 | -- arena script
InitArenaScript = 0
arena_room_max_time = 240 -- time in seconds for one arena room
arenaKickPosition = {x=199, y=610, z=6} -- position where kick from arena when you leave/you did arena level
arena_monsters = {}
arena_monsters[42300] = 'frostfur' -- first monster from 1 arena
arena_monsters[42301] = 'b... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/weaponskills/tachi_hobaku.lua | 12 | 1657 | -----------------------------------
-- Tachi Hobaku
-- Great Katana weapon skill
-- Skill Level: 30
-- Stuns enemy. Chance of stun varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Snow Gorget.
-- Aligned with the Snow Belt.
-- Element: None
-- Modifiers: STR:60%
-- 100%TP 200%TP 300%... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/spells/knights_minne_ii.lua | 13 | 1522 | -----------------------------------------
-- Spell: Knight's Minne II
-- Grants Defense bonus to all allies.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCasti... | gpl-3.0 |
kaeza/love-klib | klib/gui/listbox.lua | 1 | 5453 |
local classes = require "klib.classes"
local gui_core = require "klib.gui.core"
local Object = classes.Object
local Compound = require("klib.gui.compound").Compound
local ScrollBar = require("klib.gui.scrollbar").ScrollBar
local Label = require("klib.gui.widget").Label
--local TextMixin = require("klib.gui.mixins")... | bsd-2-clause |
geog-opensource/geog-linino | package/dragino/luci-app-iot-webpanel/usr/lib/lua/luci/controller/arduino/sensor.lua | 1 | 2387 | --[[
Copyright (C) 2014 Dragino Technology Co., Limited
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
]]--
module("luci.controller.... | gpl-2.0 |
kuoruan/luci | protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua | 5 | 4050 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local encaps, atmdev, vci, vpi, username, password
local ipv6, defaultroute, metric, peerdns, dns,
keepalive_failure, keepalive_interval, demand, mtu
encaps = section:tabop... | apache-2.0 |
Death15/NormalSwatch | plugins/Contact-Manager.lua | 1 | 6352 | 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 |
Omar-Real/RealBot | libs/fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-2.0 |
mehran-best-team/bot | libs/fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-2.0 |
ASHRAF97/ASHRAFKASPERV3 | libs/fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-2.0 |
siilaas/TiGER | system/libs/fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Port_San_dOria/npcs/HomePoint#2.lua | 12 | 1254 | -----------------------------------
-- Area: Port San dOria
-- NPC: HomePoint#2
-- @pos 48 -12.000 -105 232
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Port_San_dOria/TextIDs");
require("script... | gpl-3.0 |
alioshii/KASBAR | plugins/en-info.lua | 4 | 8504 | do
local Arian = 1059821358 --put your id here(BOT OWNER ID)
local function setrank(msg, name, value) -- setrank function
local hash = nil
if msg.to.type == 'chat' then
hash = 'rank:'..msg.to.id..':variables'
end
if hash then
redis:hset(hash, name, value)
return send_msg('chat#id'..msg.to.id, 'set Ran... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/RoMaeve/npcs/qm2.lua | 9 | 1919 | -----------------------------------
-- Area: Ro'Maeve
-- NPC: qm2 (???)
-- Involved in Mission: Bastok 7-1
-- @pos 102 -4 -114 122 and <many pos>
-----------------------------------
package.loaded["scripts/zones/RoMaeve/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");... | gpl-3.0 |
ark120202/aabs | game/scripts/vscripts/modules/bosses/bosses.lua | 1 | 6102 | if Bosses == nil then
Bosses = class({})
Bosses.MinimapPoints = {}
Bosses.NextVoteID = 0
Bosses.aliveStatus = {}
end
ModuleRequire(..., "data")
ModuleRequire(..., "boss_loot")
function CDOTA_BaseNPC:IsBoss()
return self.GetUnitName ~= nil and string.find(self:GetUnitName(), "npc_arena_boss_") ~= nil
end
function... | mit |
Kthulupwns/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/qm8.lua | 57 | 2181 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: qm8 (??? - Ancient Papyrus Shreds)
-- Involved in Quest: In Defiant Challenge
-- @pos 105.275 -32 92.551 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
----------------------------... | gpl-3.0 |
harvardnlp/im2markup | src/optim/optim_sgd.lua | 1 | 3387 | --[[ A plain implementation of SGD
ARGS:
- `opfunc` : a function that takes a single input (X), the point
of a evaluation, and returns f(X) and df/dX
- `x` : the initial point
- `config` : a table with configuration parameters for the optimizer
- `config.learningRate` : learning rate
- `config.le... | mit |
Godfather021/tg | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
hamed9898/uzzbott | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Machionage.lua | 16 | 1432 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Machionage
-- @zone 80
-- @pos -255 -3 109
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
require("scripts/globals/quests... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Temenos/mobs/Goblin_Fencer.lua | 17 | 1146 | -----------------------------------
-- Area: Temenos N T
-- NPC: Goblin_Fencer
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
------------------------... | gpl-3.0 |
rohanp/Algorithm-Implementations | Levenshtein_distance/Lua/Yonaba/levenshtein.lua | 25 | 1670 | -- Levenshtein distance implementation
-- See: http://en.wikipedia.org/wiki/Levenshtein_distance
-- Iterative matrix-based method
-- See: http://en.wikipedia.org/wiki/Levenshtein_distance#Iterative_with_full_matrix
-- Return the minimum of three elements
local function min(a, b, c)
return math.min(math.min(a, b), c)... | mit |
Kthulupwns/darkstar | scripts/zones/Tavnazian_Safehold/Zone.lua | 8 | 3194 | -----------------------------------
--
-- Zone: Tavnazian_Safehold (26)
--
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/missions");
require("scripts/zones... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Abyssea-Tahrongi/npcs/Cavernous_Maw.lua | 12 | 1235 | -----------------------------------
-- Area: Abyssea - Tahrongi
-- NPC: Cavernous Maw
-- @pos -31.000, 47.000, -681.000 45
-- Teleports Players to Tahrongi Canyon
-----------------------------------
package.loaded["scripts/zones/Abyssea-Tahrongi/TextIDs"] = nil;
-----------------------------------
require("s... | gpl-3.0 |
mightymadTV/gmod_deathmatch | teamdeathmatch/entities/entities/base_brush/init.lua | 3 | 1673 |
ENT.Base = "base_entity"
ENT.Type = "brush"
--[[---------------------------------------------------------
Name: Initialize
-----------------------------------------------------------]]
function ENT:Initialize()
end
--[[---------------------------------------------------------
Name: StartTouch
----------------... | gpl-2.0 |
pengzj/skynet | 3rd/lpeg/re.lua | 160 | 6286 | -- $Id: re.lua,v 1.44 2013/03/26 20:11:40 roberto Exp $
-- imported functions and modules
local tonumber, type, print, error = tonumber, type, print, error
local setmetatable = setmetatable
local m = require"lpeg"
-- 'm' will be used to parse expressions, and 'mm' will be used to
-- create expressions; that is, 're' ... | mit |
punisherbot/punisherbot | plugins/media.lua | 297 | 1590 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
Kthulupwns/darkstar | scripts/globals/mobskills/Lateral_Slash.lua | 6 | 1076 | ---------------------------------------------
-- 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 |
Kthulupwns/darkstar | scripts/zones/Windurst_Waters/npcs/Jack_of_Hearts.lua | 35 | 1243 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Jack of Hearts
-- Adventurer's Assistant
-- Working 100%
-------------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("scripts/zones/Windurst_Waters/TextIDs... | gpl-3.0 |
Velkon/DarkRP | gamemode/modules/police/sh_init.lua | 1 | 7113 | local plyMeta = FindMetaTable("Player")
/*---------------------------------------------------------------------------
Interface functions
---------------------------------------------------------------------------*/
function plyMeta:isArrested()
return self:getDarkRPVar("Arrested")
end
function plyMeta:isWanted()... | mit |
cedlemo/blingbling | clock.lua | 6 | 4234 | --@author cedlemo
local os = os
local string = string
local awful = require("awful")
local textbox = require("wibox.widget.textbox")
local text_box = require("blingbling.text_box")
local days_of_week_in_kanji={
"日曜日", "月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"
}
local days_of_week_in_kana={
"にちようび","げつようび","かようび","すいようび","もく... | gpl-2.0 |
Mleaf/mleaf_luci | applications/luci-statistics/luasrc/model/cbi/luci_statistics/netlink.lua | 78 | 2765 | --[[
Luci configuration model for statistics - collectd netlink plugin configuration
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
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 Licen... | apache-2.0 |
jlopenwrtluci/luci | applications/luci-app-statistics/luasrc/statistics/i18n.lua | 39 | 1879 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.i18n", package.seeall)
require("luci.util")
require("luci.i18n")
Instance = luci.util.class()
function Instance.__init__( self, graph )
self.i18n = luci.i18n
se... | apache-2.0 |
LuaDist2/lj2procfs | lj2procfs/string-util.lua | 2 | 3822 | --string-util.lua
local ffi = require("ffi")
local fun = require("lj2procfs.fun")
local floor = math.floor;
local F = {}
function F.startswith(s, prefix)
return string.find(s, prefix, 1, true) == 1
end
-- returns true if string 's' ends with string 'send'
function F.endswith(s, send)
return #s >= #send and strin... | mit |
FPtje/DarkRP | gamemode/modules/fadmin/fadmin/playeractions/slay/sv_init.lua | 1 | 2214 | local function Slay(ply, cmd, args)
if not args[1] then return false end
local targets = FAdmin.FindPlayer(args[1])
if not targets or #targets == 1 and not IsValid(targets[1]) then
FAdmin.Messages.SendMessage(ply, 1, "Player not found")
return false
end
local SlayType = string.lower... | mit |
ashkan1996/hunter002 | plugins/ingroup.lua | 527 | 44020 | do
-- Check Member
local function check_member_autorealm(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostr... | gpl-2.0 |
tarulas/luadch | scripts/etc_userlogininfo.lua | 1 | 9558 | --[[
etc_userlogininfo.lua by pulsar
v0.15:
- changes in get_lastlogout() function
v0.14:
- added "TLS Mode" info
- added "TLS Cipher" info
- possibility to activate/deactivate the script / requested by Sopor
v0.13:
... | gpl-3.0 |
Lsty/ygopro-scripts | c17286057.lua | 3 | 2876 | --ヘリオス・トリス・メギストス
function c17286057.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND)
e1:SetCondition(c17286057.hspcon)
e1:SetOperation(c17286057.hspop)
c:RegisterEf... | gpl-2.0 |
MalRD/darkstar | scripts/globals/weaponskills/asuran_fists.lua | 10 | 1711 | -----------------------------------
-- Asuran Fists
-- Hand-to-Hand weapon skill
-- Skill Level: 250
-- Delivers an eightfold attack. params.accuracy varies with TP.
-- In order to obtain Asuran Fists, the quest The Walls of Your Mind must be completed.
-- Due to the 95% params.accuracy cap there is only a 66% chance o... | gpl-3.0 |
MalRD/darkstar | scripts/globals/mobskills/glacial_breath.lua | 11 | 1300 | ---------------------------------------------
-- Glacial Breath
--
-- Description: Deals Ice damage to enemies within a fan-shaped area.
-- Type: Breath
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Unknown cone
-- Notes: Used only by Jormungand and Isgebind
---------------------------------------------
req... | gpl-3.0 |
bryansum/urMus | urMus-Lua/urClockSeq.lua | 1 | 1707 | -- Design: Alexander Mueller
-- Hacked: Georg Essl
clockseqbackdropregion=Region('region', 'clockseqbackdropregion', UIParent);
clockseqbackdropregion:SetWidth(ScreenWidth());
clockseqbackdropregion:SetHeight(ScreenHeight());
clockseqbackdropregion:SetLayer("BACKGROUND");
clockseqbackdropregion:SetAnchor('BOTTOMLEFT',... | mit |
Lsty/ygopro-scripts | c62991886.lua | 7 | 1638 | --進化する人類
function c62991886.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c62991886.target)
e1:SetOperation(c62991886.operation)
c:RegisterEffect(e1)
... | gpl-2.0 |
Lsty/ygopro-scripts | c51267887.lua | 3 | 1646 | --体温の上昇
function c51267887.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c51267887.target)
e1:SetOperation(c51267887.operation)
c:RegisterEffect(e1)
... | gpl-2.0 |
MalRD/darkstar | scripts/globals/items/bowl_of_salt_ramen_+1.lua | 11 | 1645 | -----------------------------------------
-- ID: 6463
-- Item: bowl_of_salt_ramen_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- DEX +6
-- VIT +6
-- AGI +6
-- Accuracy +6% (cap 95)
-- Ranged Accuracy +6% (cap 95)
-- Evasion +6% (cap 95)
-- Resist Slow +15
------------------------------... | gpl-3.0 |
Lsty/ygopro-scripts | c31292357.lua | 3 | 2306 | --Emハットトリッカー
function c31292357.initial_effect(c)
c:EnableCounterPermit(0x3036)
c:SetCounterLimit(0x3036,3)
--special summon rule
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetRange(LOCATION_HAND)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetCondition(c312... | gpl-2.0 |
gallenmu/MoonGen | libmoon/lua/lib/syscall/rump/ffirump.lua | 24 | 1893 | -- ffi type and function definitions for rump kernel functions
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string... | mit |
MalRD/darkstar | scripts/zones/Nashmau/npcs/Dnegan.lua | 9 | 1779 | -----------------------------------
-- Area: Nashmau
-- NPC: Dnegan
-- Standard Info NPC
-- Involved in quest: Wayward Automation
-- !pos 29.89 -6 55.83 53
-----------------------------------
require("scripts/globals/quests");
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
local TheWayw... | gpl-3.0 |
gallenmu/MoonGen | libmoon/lua/proto/ipfix.lua | 4 | 16527 | ------------------------------------------------------------------------
--- @file ipfix.lua
--- @brief IPFIX packet generation.
--- Utility functions for the ipfix_header structs
--- Includes:
--- - IPFIX constants
--- - IPFIX header utility
--- - Definition of IPFIX packets
--- - Functions to create an IPFIX Message
... | mit |
xylosper/mpv | TOOLS/lua/autoload.lua | 4 | 3476 | -- This script automatically loads playlist entries before and after the
-- the currently played file. It does so by scanning the directory a file is
-- located in when starting playback. It sorts the directory entries
-- alphabetically, and adds entries before and after the current file to
-- the internal playlist. (I... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Tahrongi_Canyon/npcs/Shattered_Telepoint.lua | 9 | 1913 | -----------------------------------
-- Area: Tahrongi_Canyon
-- NPC: Shattered Telepoint
-- !pos 179 35 255 117
-----------------------------------
local ID = require("scripts/zones/Tahrongi_Canyon/IDs")
require("scripts/globals/keyitems")
require("scripts/globals/missions")
-----------------------------------
functi... | gpl-3.0 |
Attractive1/Attractive-Robot | plugins/time.lua | 38 | 2898 | -- 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 |
MalRD/darkstar | scripts/globals/items/vulcan_claymore.lua | 12 | 1254 | -----------------------------------------
-- ID: 18379
-- Item: Vulcan Claymore
-- Additional Effect: Fire Damage
-- Enchantment: Enfire
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------
functi... | gpl-3.0 |
Lsty/ygopro-scripts | c17377751.lua | 5 | 2101 | --BF-煌星のグラム
function c17377751.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1)
c:EnableReviveLimit()
--cannot special summon
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_SINGLE_RANGE)
e1:SetType(EFFECT_TYPE_SING... | gpl-2.0 |
Lsty/ygopro-scripts | c1003840.lua | 3 | 2967 | --スターライト・ジャンクション
function c1003840.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--spsummon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(1003840,0))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:Se... | gpl-2.0 |
MalRD/darkstar | scripts/globals/items/black_prawn.lua | 11 | 1234 | -----------------------------------------
-- ID: 5948
-- Item: Black Prawn
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- DEX -5
-- VIT +3
-- DEF +16% (cap 50)
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
---------------------... | gpl-3.0 |
MonchaGames/New-Gaia | middleclass.lua | 63 | 6117 | local middleclass = {
_VERSION = 'middleclass v3.0.1',
_DESCRIPTION = 'Object Orientation for Lua',
_URL = 'https://github.com/kikito/middleclass',
_LICENSE = [[
MIT LICENSE
Copyright (c) 2011 Enrique García Cota
Permission is hereby granted, free of charge, to any person obtaining... | mit |
MalRD/darkstar | scripts/globals/abilities/pets/eraser.lua | 12 | 1808 | ---------------------------------------------
-- Eraser
---------------------------------------------
require("scripts/globals/automatonweaponskills")
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/msg")
---------------------------------------------
function onMobSkillCh... | gpl-3.0 |
Lsty/ygopro-scripts | c74458486.lua | 3 | 1513 | --援護射撃
function c74458486.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetCondition(c74458486.c... | gpl-2.0 |
ml-lab/NAMAS | summary/run.lua | 9 | 3625 | --
-- Copyright (c) 2015, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
-- Author: Alex... | bsd-3-clause |
robertbrook/Penlight | lua/pl/xml.lua | 14 | 25405 | --- XML LOM Utilities.
--
-- This implements some useful things on [LOM](http://matthewwild.co.uk/projects/luaexpat/lom.html) documents, such as returned by `lxp.lom.parse`.
-- In particular, it can convert LOM back into XML text, with optional pretty-printing control.
-- It is s based on stanza.lua from [Prosody](http... | mit |
MalRD/darkstar | scripts/globals/weaponskills/last_stand.lua | 10 | 1872 | -----------------------------------
-- Last Stand
-- Skill Level: 357
-- Description: Attacks once or twice, depending on remaining ammunition. Damage dealt varies with TP.
-- If the first shot of the weapon skill does enough damage to defeat the target, the second shot will not be used.
-- To obtain Last Stand, the qu... | gpl-3.0 |
jadarve/lluvia | samples/imagePyramid_lua/lua/ImageDownsampleX.lua | 1 | 1520 | local builder = ll.class(ll.ComputeNodeBuilder)
function builder.newDescriptor()
local desc = ll.ComputeNodeDescriptor.new()
desc.builderName = 'ImageDownsampleX'
desc.localShape = ll.vec3ui.new(32, 32, 1)
desc.gridShape = ll.vec3ui.new(1, 1, 1)
desc.program = ll.getProgram('I... | apache-2.0 |
jadarve/lluvia | lluvia/nodes/lluvia/opticalflow/flowfilter/FlowSmooth.lua | 1 | 2248 | local builder = ll.class(ll.ComputeNodeBuilder)
builder.name = 'lluvia/opticalflow/flowfilter/FlowSmooth'
builder.doc = [[
Smooths an optical flow field using a 3x3 Gaussian filter
Parameters
----------
allocate_output : int. Defaults to 1.
Whether or not the out_flow output should be allocated. If zero,
this... | apache-2.0 |
MalRD/darkstar | scripts/zones/Southern_San_dOria_[S]/IDs.lua | 9 | 1534 | -----------------------------------
-- Area: Southern_San_dOria_[S]
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.SOUTHERN_SAN_DORIA_S] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <it... | gpl-3.0 |
Lsty/ygopro-scripts | c74122412.lua | 3 | 3147 | --グングニールの影霊衣
function c74122412.initial_effect(c)
c:EnableReviveLimit()
--cannot special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(aux.ritlimit)
c:RegisterEffe... | gpl-2.0 |
Frenzie/koreader | frontend/ui/widget/filechooser.lua | 4 | 23113 | local BD = require("ui/bidi")
local Device = require("device")
local DocSettings = require("docsettings")
local DocumentRegistry = require("document/documentregistry")
local OpenWithDialog = require("ui/widget/openwithdialog")
local ConfirmBox = require("ui/widget/confirmbox")
local Menu = require("ui/widget/menu")
loc... | agpl-3.0 |
MalRD/darkstar | scripts/globals/items/mutton_tortilla.lua | 11 | 1457 | -----------------------------------------
-- ID: 4506
-- Item: mutton_tortilla
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Magic 10
-- Strength 3
-- Vitality 1
-- Intelligence -1
-- Attack % 27
-- Attack Cap 30
-- Ranged ATT % 27
-- Ranged ATT Cap 30
-----------------------------------... | gpl-3.0 |
Lsty/ygopro-scripts | c46710683.lua | 7 | 1116 | --BF-銀盾のミストラル
function c46710683.initial_effect(c)
--change damage
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(46710683,0))
e1:SetType(EFFECT_TYPE_TRIGGER_F+EFFECT_TYPE_SINGLE)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetCondition(c46710683.condition)
e1:SetOperation(c46710683.operation)
c:RegisterEffec... | gpl-2.0 |
adan830/luacheck | src/luacheck/argparse.lua | 3 | 25493 | local function deep_update(t1, t2)
for k, v in pairs(t2) do
if type(v) == "table" then
v = deep_update({}, v)
end
t1[k] = v
end
return t1
end
-- A property is a tuple {name, callback}.
-- properties.args is number of properties that can be set as arguments
-- when calling an objec... | mit |
Lsty/ygopro-scripts | c98954106.lua | 3 | 1420 | --貪欲な瓶
function c98954106.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TODECK+CATEGORY_DRAW)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,98954106+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c98954106.ta... | gpl-2.0 |
Lsty/ygopro-scripts | c98792570.lua | 5 | 1638 | --受け継がれる力
function c98792570.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetLabel(0)
e1:SetCost(c98792570.cost)
e1:SetTarget(c98792570.target)
e1:SetOperation(c98792570.activate)
c:Registe... | gpl-2.0 |
ennuuos/Neath | mouse.lua | 1 | 1483 | mouse = {}
-- This file. I hate this file. I should've put this stuff somewhere else but I
-- was already 1000 lines in.
-- This draws a tooltip at the mouse position with a title and content.
function mouse.drawtooltip(head, content)
x, y = love.mouse.getPosition()
w = math.max(font:getWidth(head), font:getWidth(co... | mit |
Lsty/ygopro-scripts | c40390147.lua | 3 | 1882 | --輝光帝ギャラクシオン
function c40390147.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x55),4,2)
c:EnableReviveLimit()
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(40390147,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITI... | gpl-2.0 |
sagarwaghmare69/nn | BatchNormalization.lua | 8 | 6422 | --[[
This file implements Batch Normalization as described in the paper:
"Batch Normalization: Accelerating Deep Network Training
by Reducing Internal Covariate Shift"
by Sergey Ioffe, Christian Szegedy
This implementation is useful for inputs NOT coming from convol... | bsd-3-clause |
Lsty/ygopro-scripts | c65878864.lua | 3 | 1043 | --使徒喰い虫
function c65878864.initial_effect(c)
--flip
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP)
e1:SetTarget(c65878864.target)
e1:SetOperation(c65878864.operation)
c:RegisterEffect(e1)
end
function c6587... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.