repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
waytim/darkstar | scripts/zones/Meriphataud_Mountains/npcs/Beastmen_s_Banner.lua | 13 | 1028 | -----------------------------------
-- Area: Meriphataud_Mountains
-- NPC: Beastmen_s_Banner
-- @pos 592.850 -16.765 -518.802 119
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Meriphataud_Mountains/Tex... | gpl-3.0 |
waytim/darkstar | scripts/zones/Windurst_Waters/npcs/Gantineux.lua | 13 | 2507 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Gantineux
-- Starts Quest: Acting in Good Faith
-- @zone 238
-- @pos -83 -9 3
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");... | gpl-3.0 |
waytim/darkstar | scripts/zones/Davoi/npcs/_45h.lua | 13 | 2264 | -----------------------------------
-- Area: Davoi
-- NPC: Howling Pond
-- Used In Quest: Whence Blows the Wind
-- @pos 21 0.1 -258 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/glo... | gpl-3.0 |
lusiankaitz/koreader-master | frontend/ui/timeval.lua | 6 | 2230 | local util = require("ffi/util")
local TimeVal = {
sec = 0,
usec = 0,
}
function TimeVal:new(o)
local o = o or {}
if o.sec == nil then
o.sec = 0
end
if o.usec == nil then
o.usec = 0
elseif o.usec > 1000000 then
o.sec = o.sec + math.floor(o.usec/1000000)
o.us... | agpl-3.0 |
Paziko54/BolScripts | ViktorMechanics.lua | 19 | 24132 | --[[
_____ _____ __ .__
/ \_______ / _ \________/ |_|__| ____ __ __ ____ ____
/ \ / \_ __ \ / /_\ \_ __ \ __\ |/ ___\| | \/ \ / _ \
/ Y \ | \/ / | \ | \/| | | \ \___| | / | ( <_> )
\____|__ /__| \___... | gpl-2.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c70649928.lua | 2 | 2924 | --ADE Adramelk
function c70649928.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(Card.IsRace,RACE_DRAGON),1)
c:EnableReviveLimit()
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(70649928,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Port_San_dOria/npcs/Laucimercen.lua | 6 | 1320 | -----------------------------------
-- 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/TextIDs");... | gpl-3.0 |
javamonkey79/google-diff-match-patch | lua/diff_match_patch.lua | 265 | 73869 | --[[
* Diff Match and Patch
*
* Copyright 2006 Google Inc.
* http://code.google.com/p/google-diff-match-patch/
*
* Based on the JavaScript implementation by Neil Fraser.
* Ported to Lua by Duncan Cross.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance ... | apache-2.0 |
waytim/darkstar | scripts/zones/RuAun_Gardens/npcs/HomePoint#3.lua | 27 | 1266 | -----------------------------------
-- Area: RuAun_Gardens
-- NPC: HomePoint#3
-- @pos -312 -42 -422 130
-----------------------------------
package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/RuAun_Gardens/TextIDs");
require("scripts/globals/homep... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c78330018.lua | 2 | 1167 | --Arch Blocker
function c78330018.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_CHAINING)
e1:SetCondition(c78330018.condition)
e1:SetTarget(c78330018.target)
e1:SetOperation(c78330018.activate)
c:R... | gpl-3.0 |
waytim/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Mazuro-Oozuro.lua | 13 | 1256 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Mazuro-Oozuro
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
require("scripts/zones/Tavnazian_Safehold/TextIDs");
-------------------... | gpl-3.0 |
behnamm/cs244b_project | ft/luabit/utf8.lua | 26 | 4236 | --[[---------------
Utf8 v0.4
-------------------
utf8 -> unicode ucs2 converter
How to use:
to convert:
ucs2_string = utf8.utf_to_uni(utf8_string)
to view a string in hex:
utf8.print_hex(str)
Under the MIT license.
Utf8 is a part of LuaBit Project(http://luaforge.net/projects/bit/).
copyright(c... | isc |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/spells/water_iv.lua | 2 | 1024 | -----------------------------------------
-- Spell: Water
-- Deals water damage to an enemy.
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function OnMag... | gpl-3.0 |
dicene/Mudlet | src/mudlet-lua/lua/CoreMudlet.lua | 2 | 42254 | ----------------------------------------------------------------------------------
--- Mudlet Core Lua Functions
--- (file holds LuaDoc for all function implemented with in Mudlet Core)
----------------------------------------------------------------------------------
-- ensure that those function will not get define... | gpl-2.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c77777721.lua | 2 | 4726 | --Witchcrafter Morgan
function c77777721.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x407),10,2)
c:EnableReviveLimit()
--atk gain per xyz material
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(L... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/abilities/beast_roll.lua | 4 | 1379 | -----------------------------------
-- Ability: Beast Roll
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- OnUseAbility
-----------------------------------
function OnAbilityCheck(player,target,ability)
local effectID... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c83581514.lua | 1 | 3700 | --Natural Emergence
function c83581514.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(83581514,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,0x11e8)
e1:SetTarget(c83581514... | gpl-3.0 |
Sertex-Team/sPhone | src/apis/task.lua | 3 | 1074 | local processList = {}
local exit = false
local autoExit = true
local killProcesses = {}
local pid = 0
function setAutoExit(val)
autoExit = val
end
function run()
local firstRun = true
while (function()
local rtn = false
for i, co in pairs(processList) do
if coroutine.status(co) ~= "dead" then
... | mit |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Beaucedine_Glacier_[S]/npcs/Moana_CA.lua | 4 | 1065 | -----------------------------------
-- Area: Beaucedine Glacier (S)
-- NPC: Moana, C.A.
-- Type: Campaign Arbiter
-- @zone: 136
-- @pos: -27.237 -60.888 -48.111
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier_[S]/T... | gpl-3.0 |
erfan1292/sezar2 | plugins/welcome.lua | 11 | 3476 | local add_user_cfg = load_from_file('data/add_user_cfg.lua')
local function template_add_user(base, to_username, from_username, chat_name, chat_id)
base = base or ''
to_username = '@' .. (to_username or '')
from_username = '@' .. (from_username or '')
chat_name = string.gsub(chat_name, '_', ' ') or ''
ch... | gpl-2.0 |
pedrohenriquerls/cocos2d_ruby_binding | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ActionManager.lua | 10 | 3634 |
--------------------------------
-- @module ActionManager
-- @extend Ref
-- @parent_module cc
--------------------------------
-- Gets an action given its tag an a target<br>
-- return the Action the with the given tag
-- @function [parent=#ActionManager] getActionByTag
-- @param self
-- @param #int tag
-- @param #... | mit |
waytim/darkstar | scripts/zones/Jugner_Forest/npcs/Field_Manual.lua | 29 | 1048 | -----------------------------------
-- Area: Jugner Forest
-- NPC: Field Manual
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/fieldsofvalor");
-----------------------------------
-- onTrigger Action
---------------------------... | gpl-3.0 |
MAXrobotTelegram/teleseed | plugins/plugins.lua | 10 | 8430 | 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 |
waytim/darkstar | scripts/zones/Port_Jeuno/npcs/Red_Ghost.lua | 13 | 2080 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Red Ghost
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_Jeuno/TextIDs");
require("scripts/globals/quests");
require("scrip... | gpl-3.0 |
amostalong/SSFS | Assets/LuaFramework/ToLua/Lua/tolua.lua | 6 | 1350 | --------------------------------------------------------------------------------
-- Copyright (c) 2015 - 2016 , 蒙占志(topameng) topameng@gmail.com
-- All rights reserved.
-- Use, modification and distribution are subject to the "MIT License"
-----------------------------------------------------------------... | mit |
Contatta/prosody-modules | mod_limits/mod_limits.lua | 31 | 3206 | -- mod_limits: Rate-limiting for Prosody
-- Version: Alpha
-- Author: Matthew Wild <mwild1@gmail.com>
-- Because we deal we pre-authed sessions and streams we can't be host-specific
module:set_global();
local filters = require "util.filters";
local throttle = require "util.throttle";
local timer = require "util.timer... | mit |
zorfmorf/loveprojects | bfrpg/src/lib/quickie/checkbox.lua | 15 | 2611 | --[[
Copyright (c) 2012 Matthias Richter
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
to use, copy, modify, merge, publish, distribu... | apache-2.0 |
X-Raym/REAPER-ReaScripts | Envelopes/X-Raym_Randomize selected envelope points value.lua | 1 | 5398 | --[[
* ReaScript Name: Randomize selected envelope points value
* About: This script will help you randomize envelope point value.
* Instructions: Execute the script. Select envelope point. Click and drag on Randomize.
* Authors: X-Raym
* Author URI: https://www.extremraym.com
* Version: 1.0
* Repository: GitHub... | gpl-3.0 |
waytim/darkstar | scripts/zones/Navukgo_Execution_Chamber/Zone.lua | 20 | 1305 | -----------------------------------
--
-- Zone: Navukgo_Execution_Chamber (64)
--
-----------------------------------
package.loaded["scripts/zones/Navukgo_Execution_Chamber/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Navukgo_Execution_Chamber/TextID... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c70978887.lua | 2 | 3426 | --Vocaloid Kid Tsukone Tei
function c70978887.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x0dac405),aux.NonTuner(Card.IsRace,RACE_MACHINE),1)
c:EnableReviveLimit()
--todeck
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(70978887,0))
e1:SetCa... | gpl-3.0 |
forcecore/OpenRA | mods/ra/maps/soviet-06b/soviet06b-reinforcements_teams.lua | 14 | 1668 | --[[
Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
TienHP/Aquaria | files/scripts/entities/cc_cat.lua | 6 | 2946 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
waytim/darkstar | scripts/globals/player.lua | 24 | 8702 | -----------------------------------
--
--
--
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scripts/globals/shop");
require("scripts/globals/status");
require("scripts/globals... | gpl-3.0 |
waytim/darkstar | scripts/globals/mobskills/Gregale_Wing.lua | 33 | 1230 | ---------------------------------------------
-- Gregale Wing
--
-- Description: An icy wind deals Ice damage to enemies within a very wide area of effect. Additional effect: Paralyze
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: 30' radial.
-- Notes: Used only by Jormungand and Isgebind
----... | gpl-3.0 |
waytim/darkstar | scripts/zones/Port_Bastok/npcs/HomePoint#1.lua | 27 | 1267 | -----------------------------------
-- Area: Port Bastok
-- NPC: HomePoint#1
-- @pos 58.850 7.499 -27.790 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Port_Bastok/TextIDs");
require("scripts/globals/home... | gpl-3.0 |
waytim/darkstar | scripts/zones/Cape_Teriggan/npcs/Cermet_Headstone.lua | 13 | 4123 | -----------------------------------
-- Area: Cape Teriggan
-- NPC: Cermet Headstone
-- Involved in Mission: ZM5 Headstone Pilgrimage (Wind Headstone)
-- @pos -107 -8 450 113
-----------------------------------
package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil;
-----------------------------------
require("sc... | gpl-3.0 |
CaptainPRICE/wire | lua/wire/stools/target_finder.lua | 9 | 7624 | WireToolSetup.setCategory( "Detection/Beacon" )
WireToolSetup.open( "target_finder", "Target Finder", "gmod_wire_target_finder", nil, "Target Finders" )
if CLIENT then
language.Add( "Tool.wire_target_finder.name", "Target Finder Beacon Tool (Wire)" )
language.Add( "Tool.wire_target_finder.desc", "Spawns a target fin... | apache-2.0 |
zorfmorf/loveprojects | drip/src/view/drawHandler.lua | 1 | 2344 |
Camera = require "libraries.hump.camera"
drawHandler = {}
tileset = nil
local camera = nil
local cShift = 100 -- default camera shift value
-- hex grid modifiers
local xm = 32
local ym = 50
local zm = 22
-- saved graphics
local bkg = nil
function drawHandler.init()
tileset = {}
tileset.base = parseTileset... | apache-2.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c33945054.lua | 2 | 1702 | --Vocaloid Awakening
function c33945054.initial_effect(c)
--Search
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,33945054+EFFECT_COUNT_CODE_OATH)
e1:SetOperation(c33945054.activate)
c:RegisterEffec... | gpl-3.0 |
waytim/darkstar | scripts/globals/spells/bluemagic/frenetic_rip.lua | 35 | 1729 | -----------------------------------------
-- Spell: Frenetic Rip
-- Delivers a threefold attack. Damage varies with TP
-- Spell cost: 61 MP
-- Monster Type: Demon
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 3
-- Stat Bonus: INT+1
-- Level: 63
-- Casting Time: 0.5 seconds
-- Recast Time: 28.5 seconds
-- Skillc... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c959301234.lua | 2 | 3641 | --Heirunyph A. Vulture
function c959301234.initial_effect(c)
--Rune Summon
c:EnableReviveLimit()
local r1=Effect.CreateEffect(c)
r1:SetType(EFFECT_TYPE_FIELD)
r1:SetCode(EFFECT_SPSUMMON_PROC)
r1:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_IGNORE_IMMUNE)
r1:SetRange(LOCATION_HAND)
r1:SetCondition(c959301234.r... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Palborough_Mines/npcs/Mining_Point.lua | 4 | 1061 | -----------------------------------
-- Area: Palborough Mines
-- NPC: Mining Point
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/mining");
require("scripts/zones/Palborough_Mines/TextIDs");
--------... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Windurst_Waters/npcs/Home_Point.lua | 4 | 1147 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Home Point
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("scripts/zones/Windurst_Waters/TextIDs");
-----------------------------------
-- onTrade Actio... | gpl-3.0 |
waytim/darkstar | scripts/globals/spells/sheepfoe_mambo.lua | 27 | 1608 | -----------------------------------------
-- Spell: Sheepfoe Mambo
-- Grants evasion bonus to all members.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caste... | gpl-3.0 |
schmurfy/lua_probe | sender.lua | 1 | 1775 |
local socket = require("socket")
local statgrab = require('statgrab/statgrab')
local estp = require('protocols/estp')
local utils = require('../utils')
local byte = string.byte
local interval = 2
local client = socket.udp()
local started_at, delay
local stats = statgrab.new()
local metric_types = {
[byte("c")] ... | mit |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Windurst_Waters/npcs/Mashuu-Ajuu.lua | 6 | 5497 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Mashuu-Ajuu
-- Starts and Finished Quest: Reap What You Sow
-- Involved in Quest: Making the Grade
-- Working 100%
-- @zone = 238
-- @pos = 129 -6 167
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = n... | gpl-3.0 |
siktirmirza/uzz | plugins/stats.lua | 458 | 4098 | -- Saves the number of messages from a user
-- Can check the number of messages with !stats
do
local NUM_MSG_MAX = 5
local TIME_CHECK = 4 -- seconds
local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name.... | gpl-2.0 |
waytim/darkstar | scripts/globals/items/bastore_bream.lua | 18 | 1332 | -----------------------------------------
-- ID: 4461
-- Item: Bastore Bream
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 4
-- Mind -6
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----... | gpl-3.0 |
alecxvs/UTChat | utchat/client/utext.lua | 1 | 11017 | --UText.lua
-- > The work in this file is licensed under the Microsoft Reciprocal License (MS-RL)
-- > The license can be found in license.txt accompanying this file
-- Copyright © Alec Sears ("SonicXVe") 2014
class 'UText'
UText.SupportedFormats = {}
--- Registers a format for convenience (you don't hav... | mit |
TheOnePharaoh/YGOPro-Custom-Cards | script/c100000877.lua | 2 | 2058 | --Created and coded by Rising Phoenix
function c100000877.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCountLimit(1,100000877+EFFECT_COUNT_CODE_OATH)
e1:SetDescription(aux.Stringid(100000877,0))
e1:SetCategory(CATEGORY_REMOVE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Gusgen_Mines/npcs/_5gc.lua | 2 | 1420 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: Lever A
-- @pos -4 -40.561 -54.199
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Gusgen_Mines/TextIDs");
-----------------------------------
-... | gpl-3.0 |
waytim/darkstar | scripts/zones/Arrapago_Reef/npcs/qm10.lua | 6 | 3088 | -----------------------------------
-- Area: Arrapago Reef
-- NPC: ???
-- Starts: Corsair Af1 ,AF2 ,AF3
-- @pos 457.128 -8.249 60.795 54
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/quests");
require("scripts/globals/titles");
require("scripts/zones/Arrapago_Reef/Tex... | gpl-3.0 |
MinFu/luci | modules/luci-base/luasrc/cbi.lua | 17 | 40212 | -- 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... | apache-2.0 |
TienHP/Aquaria | files/scripts/entities/creatorform6.lua | 6 | 12019 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
Kefta/gs_lib | lua/code_gs/lib/matrix.lua | 1 | 7634 | -- FIXME: Move over Vector and Angle methods
-- FIXME: Convert 3x4 matrix methods to 4x4
matrix_identity = Matrix()
matrix_zero = Matrix({{0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}})
function MatrixZero()
return Matrix({{0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}})
end
function Matr... | mit |
chrox/koreader | frontend/device/kobo/powerd.lua | 4 | 1310 | local BasePowerD = require("device/generic/powerd")
local KoboPowerD = BasePowerD:new{
fl_min = 0, fl_max = 100,
flIntensity = 20,
restore_settings = true,
fl = nil,
batt_capacity_file = "/sys/devices/platform/pmic_battery.1/power_supply/mc13892_bat/capacity",
is_charging_file = "/sys/devices/... | agpl-3.0 |
lusiankaitz/koreader-master | frontend/apps/reader/modules/readerconfig.lua | 4 | 2911 | local ConfigDialog = require("ui/widget/configdialog")
local InputContainer = require("ui/widget/container/inputcontainer")
local Device = require("device")
local GestureRange = require("ui/gesturerange")
local Geom = require("ui/geometry")
local Screen = require("device").screen
local Event = require("ui/event")
local... | agpl-3.0 |
EShamaev/ardupilot | libraries/AP_Scripting/examples/plane-wind-failsafe.lua | 26 | 1195 | -- warn the user if wind speed exceeds a threshold, failsafe if a second threshold is exceeded
-- note that this script is only intended to be run on ArduPlane
-- tuning parameters
local warn_speed = 10 -- metres/second
local failsafe_speed = 15 -- metres/second
local warning_interval_ms = uint32_t(15000) -- send use... | gpl-3.0 |
MinFu/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi_add.lua | 50 | 4887 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local nw = require "luci.model.network"
local fw = require "luci.model.firewall"
local uci = require "luci.model.uci".cursor()
local http = require "luci.http"
local iw = lu... | apache-2.0 |
waytim/darkstar | scripts/zones/Davoi/npcs/Lootblox.lua | 13 | 7240 | -----------------------------------
-- Area: Davoi
-- NPC: Lootblox
-- Type: Standard NPC
-- @pos 218.073 -0.982 -20.746 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Davoi/TextIDs");
require("scripts/globals... | gpl-3.0 |
Rinnegatamante/lpp-vita | samples/Sockets/index.lua | 1 | 2361 | -- Initializing Network
Network.init()
-- Checking if connection is available
if Network.isWifiEnabled() then
-- Opening a new socket and connecting to the host
skt = Socket.connect("rinnegatamante.it", 80)
-- Our payload to request a file
payload = "GET /site/images/logo.png HTTP/1.1\r\nHost: rinnegatamante.it\... | gpl-3.0 |
zorfmorf/loveprojects | sheartest/conf.lua | 1 | 2657 | function love.conf(t)
t.identity = "sheartest" -- The name of the save directory (string)
t.version = "0.9.1" -- The LÖVE version this game was made for (string)
t.console = false -- Attach a console (boolean, Windows only)
t.window.title = "sheartest" -- Th... | apache-2.0 |
db260179/openwrt-bpi-r1-luci | applications/luci-app-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo_mini.lua | 141 | 1031 | --[[
smap_devinfo - SIP Device Information
(c) 2009 Daniel Dickinson
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$
]]--
require("luci.i18n")
re... | apache-2.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c89990029.lua | 2 | 2094 | --The Mystical Healing Tower
function c89990029.initial_effect(c)
c:SetUniqueOnField(1,0,89990029)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_DRAW_PHASE)
c:RegisterEffect(e1)
--to deck
local e2=Effect.CreateEffect(c)
e2:Se... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/weaponskills/apex_arrow.lua | 4 | 1207 | -----------------------------------
-- Apex Arrow
-- Archery weapon skill
-- Skill level: 357
-- Merit
-- RNG or SAM
-- Aligned with the Thunder & Light Gorget.
-- Aligned with the Thunder Belt & Light Belt.
-- Element: None
-- Modifiers: AGI:20%
-- 100%TP 200%TP 300%TP
-- 3.00 3.00 3.... | gpl-3.0 |
wireshark/wireshark | test/lua/pcap_file.lua | 30 | 27491 | -- pcap_file_reader.lua
--------------------------------------------------------------------------------
--[[
This is a Wireshark Lua-based pcap capture file reader.
Author: Hadriel Kaplan
This "capture file" reader reads pcap files - the old style ones. Don't expect this to
be as good as the real thin... | gpl-2.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c44559820.lua | 1 | 6372 | --Xing Tian, Berserk God of the Sky Nirvana
function c44559820.initial_effect(c)
c:SetUniqueOnField(1,0,44559820)
--fusion material
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_FUSION_MATERIAL)
e1:SetCondition(c... | gpl-3.0 |
waytim/darkstar | scripts/zones/Kazham/npcs/Khau_Mahiyoeloh.lua | 15 | 1055 | -----------------------------------
-- Area: Kazham
-- NPC: Khau Mahiyoeloh
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
... | gpl-3.0 |
waytim/darkstar | scripts/zones/Quicksand_Caves/mobs/Princeps_IV-XLV.lua | 10 | 1350 | -----------------------------------
-- Area: Quicksand Caves
-- MOB: Princeps IV-XLV
-- Pops in Bastok mission 8-1 "The Chains that Bind Us"
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Caves/Text... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/weaponskills/spinning_scythe.lua | 4 | 1225 | -----------------------------------
-- Spinning Scythe
-- Scythe weapon skill
-- Skill Level: 125
-- Delivers an area of effect attack. Attack radius varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Aqua Gorget & Soil Gorget.
-- Aligned with the Aqua Belt & Soil Belt.
-- Element: None
-- Mo... | gpl-3.0 |
MinFu/luci | modules/luci-base/luasrc/sys/iptparser.lua | 47 | 9515 | --[[
Iptables parser and query library
(c) 2008-2009 Jo-Philipp Wich <jow@openwrt.org>
(c) 2008-2009 Steven Barth <steven@midlink.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:... | apache-2.0 |
MinFu/luci | protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua | 47 | 3729 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local username, password, ac, service
local ipv6, defaultroute, metric, peerdns, dns,
keepalive_failure, keepalive_interval, demand, mtu
username = section:taboption("gener... | apache-2.0 |
gfgtdf/wesnoth-old | data/lua/ilua.lua | 4 | 3792 | -- ilua.lua
-- A more friendly Lua interactive prompt
-- doesn't need '='
-- will try to print out tables recursively, subject to the pretty_print_limit value.
-- Steve Donovan, 2007
-- Adapted by iceiceice for wesnoth, 2014
-- Retrieved from: http://lua-users.org/files/wiki_insecure/users/steved/ilua.lua
-- Note: This... | gpl-2.0 |
CaptainPRICE/wire | lua/entities/gmod_wire_expression2/core/strfunc.lua | 10 | 3179 | local function nicename( word )
local ret = word:lower()
if ret == "normal" then return "number" end
return ret
end
local function checkFuncName( self, funcname )
if self.funcs[funcname] then
return self.funcs[funcname], self.funcs_ret[funcname]
elseif wire_expression2_funcs[funcname] then
return wire_express... | apache-2.0 |
behnamm/cs244b_project | ft/luabit/noki.lua | 26 | 8150 | --[[---------------
Noki v0.4
-------------------
Noki is a toolkit to convert Nokia PC Suite backuped SMS to a
unicode .txt file, which is more accessible than the original
.nfb or .nfc.
It works well for Nokia PC Suite 6.5.12 and my mobile phone is
Nokia 7360. There might be some compatibility problem if yo... | isc |
GregSatre/nn | Parallel.lua | 39 | 3780 | local Parallel, parent = torch.class('nn.Parallel', 'nn.Container')
function Parallel:__init(inputDimension,outputDimension)
parent.__init(self)
self.modules = {}
self.size = torch.LongStorage()
self.inputDimension = inputDimension
self.outputDimension = outputDimension
end
function Parallel:updateOut... | bsd-3-clause |
TheOnePharaoh/YGOPro-Custom-Cards | script/c112000009.lua | 2 | 2962 | --Odd-Eyes Reverse Dragon
function c112000009.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcCodeFun(c,16178681,aux.FilterBoolFunction(Card.IsType,TYPE_FUSION),true)
--spsummon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_D... | gpl-3.0 |
EShamaev/ardupilot | libraries/AP_Scripting/examples/mag_heading.lua | 8 | 1469 | --[[
send magnetic heading in degrees as NAMED_VALUE_FLOAT[MAG_HEAD] and NAMED_VALUE_FLOAT[MAG_GCRS]
--]]
local RATE_HZ = 2
-- bind a parameter to a variable given
function bind_param(name)
local p = Parameter()
assert(p:init(name), string.format('could not find %s parameter', name))
return p
end
COM... | gpl-3.0 |
waytim/darkstar | scripts/zones/Windurst_Walls/npcs/Koru-Moru.lua | 25 | 11771 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Koru-Moru
-- Starts & Ends Quest: Star Struck
-- Involved in Quest: Making the Grade, Riding on the Clouds
-- @pos -120 -6 124 239
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
---------------------... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Southern_San_dOria/npcs/Sharzalion.lua | 4 | 3451 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Sharzalion
-- Starts and Finishes Quest: The Crimson Trial
-- Involved in Quest: Peace for the Spirit
-- @zone 230
-- @pos 95 0 111
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
------------... | gpl-3.0 |
hilllinux/ABTestingGateway | admin/runtime/set.lua | 22 | 4799 | local runtimeModule = require('abtesting.adapter.runtime')
local policyModule = require('abtesting.adapter.policy')
local redisModule = require('abtesting.utils.redis')
local systemConf = require('abtesting.utils.init')
local handler = require('abtesting.error.handler').handler
local utils = require... | mit |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Port_Windurst/npcs/Kunchichi.lua | 5 | 1038 | -----------------------------------
-- Area: Port Windurst
-- NPC: Kunchichi
-- Type: Standard NPC
-- @zone: 240
-- @pos: -115.933 -4.25 109.533
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/commands/changejob.lua | 2 | 2638 | -----------------------------------
-- [Command name]: changejob
-- [Author ]:
-- [Description ]: Changes job to the specified job and level
-----------------------------------
-----------------------------------
-- Action
-----------------------------------
function onTrigger(player,jobname,lvl)
--parse the j... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/West_Ronfaure/npcs/Esca.lua | 2 | 2687 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Esca
-- NPC for Quest "The Pickpocket"
-- @pos 100
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/setti... | gpl-3.0 |
waytim/darkstar | scripts/globals/abilities/earth_maneuver.lua | 19 | 1610 | -----------------------------------
-- Ability: Earth Maneuver
-- Enhances the effect of earth attachments. Must have animator equipped.
-- Obtained: Puppetmaster level 1
-- Recast Time: 10 seconds (shared with all maneuvers)
-- Duration: 1 minute
-----------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
waytim/darkstar | scripts/zones/Bastok_Mines/npcs/Elki.lua | 12 | 2538 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Elki
-- Starts Quests: Hearts of Mythril, The Eleventh's Hour
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/... | gpl-3.0 |
waytim/darkstar | scripts/globals/mobskills/Astral_Flow_Pet.lua | 15 | 2687 | ---------------------------------------------------
-- Astral Flow
-- Will make existing pet use astral flow skill
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
--------------------------------------... | gpl-3.0 |
waytim/darkstar | scripts/globals/items/bowl_of_sophic_stew.lua | 18 | 1470 | -----------------------------------------
-- ID: 5180
-- Item: bowl_of_sophic_stew
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- Dexterity 6
-- Intelligence 6
-- Mind 6
-- HP Recovered While Healing 3
-- MP Recovered While Healing 3
-----------------------------------------
require("scri... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c54097745.lua | 2 | 2316 | --Predator Plant Blood Injector
function c54097745.initial_effect(c)
--add counter
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(96622984,0))
e1:SetCategory(CATEGORY_COUNTER)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)... | gpl-3.0 |
db260179/openwrt-bpi-r1-luci | applications/luci-app-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo_config.lua | 61 | 1072 | -- Copyright 2009 Daniel Dickinson
-- Licensed to the public under the Apache License 2.0.
require("luci.controller.luci_diag.devinfo_common")
m = Map("luci_devinfo", translate("SIP Device Scanning Configuration"), translate("Configure scanning for supported SIP devices on specified networks. Decreasing \'Timeout\', ... | apache-2.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c20912278.lua | 1 | 4932 | --Akane
function c20912278.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_WARRIOR),2,2)
c:EnableReviveLimit()
--equip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(20912278,0))
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE... | gpl-3.0 |
waytim/darkstar | scripts/zones/Windurst_Woods/npcs/Ponono.lua | 44 | 2111 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Ponono
-- Type: Clothcraft Guild Master
-- @pos -38.243 -2.25 -120.954 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requir... | gpl-3.0 |
waytim/darkstar | scripts/zones/Cloister_of_Flames/bcnms/trial-size_trial_by_fire.lua | 26 | 2164 | -----------------------------------
-- Area: Cloister of Flames
-- BCNM: Trial-size Trial by Fire
-- @pos -721 0 -598 207
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Flames/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/keyitems");
require("scripts/glo... | gpl-3.0 |
waytim/darkstar | scripts/globals/abilities/celerity.lua | 27 | 1130 | -----------------------------------
-- Ability: Celerity
-- Reduces the casting time and the recast time of your next white magic spell by 50%.
-- Obtained: Scholar Level 25
-- Recast Time: Stratagem Charge
-- Duration: 1 white magic spell or 60 seconds, whichever occurs first.
--
-- Level |Charges |Recharge Time per... | gpl-3.0 |
EShamaev/ardupilot | libraries/AP_Scripting/examples/rover-set-turn-rate.lua | 17 | 1753 | -- This scirpt uses Rover's turn rate controller to make the vehicle move in circles of fixed radius
-- Edit these variables
local rad_xy_m = 0.5 -- circle radius in xy plane in m
local target_speed_xy_mps = 0.5 -- target speed in m/s
local rc_channel_switch = 7 -- switch this channel to "hi... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c83070020.lua | 2 | 1722 | --Hydrush Drain
function c83070020.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(c83070020.condition)
e1:SetTarget(c83070020.target)
e1:SetOperation(c83070020.activate)
c:RegisterEffect... | gpl-3.0 |
narner/Soundpipe | modules/data/autowah.lua | 3 | 1311 | sptbl["autowah"] = {
files = {
module = "autowah.c",
header = "autowah.h",
example = "ex_autowah.c",
},
func = {
create = "sp_autowah_create",
destroy = "sp_autowah_destroy",
init = "sp_autowah_init",
compute = "sp_autowah_compute",
},
param... | mit |
waytim/darkstar | scripts/zones/VeLugannon_Palace/mobs/Zipacna.lua | 1 | 1869 | -----------------------------------
-- Area: VeLugannon Palace
-- NPC: Zipacna
-----------------------------------
require("scripts/globals/pathfind");
local path = {
-202, 0, 391,
-209, 0, 387,
-214, 0, 381,
-238, 0, 380,
-256, 4, 381,
-261, 8, 400,
-257, 12, 417,
-240, 16, 420,
-257, 12, 417,
-261, 8, 400,
-256, 4... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c12310756.lua | 2 | 5721 | --Executioner Smough
--Lua script by SGJin
function c12310756.initial_effect(c)
--Hammer time
--disable
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_BE_BATTLE_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c12310756.discon)
e1:SetOperation(c12310756.... | gpl-3.0 |
waytim/darkstar | scripts/globals/items/bowl_of_zoni_broth.lua | 18 | 1686 | -----------------------------------------
-- ID: 5618
-- Item: bowl_of_zoni_broth
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- HP 10
-- MP 10
-- Strength 1
-- Dexterity 1
-- Vitality 1
-- Agility 1
-- HP Recovered While Healing 1
-- MP Recovered While Healing 1
--------------------------... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.