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 |
|---|---|---|---|---|---|
Openarl/PathOfBuilding | Data/Uniques/axe.lua | 1 | 10797 | -- Item data (c) Grinding Gear Games
return {
-- Weapon: One Handed Axe
[[
Dreadarc
Cleaver
Upgrade: Upgrades to unique{Dreadsurge} via prophecy{Burning Dread}
Variant: Pre 2.6.0
Variant: Current
Requires Level 16, 48 Str, 14 Dex
Adds (5-15) to (20-25) Physical Damage
Adds (5-15) to (20-25) Fire Damage
5% increased Mo... | mit |
HeavensSword/darkstar | scripts/zones/Southern_San_dOria/npcs/Balasiel.lua | 5 | 6230 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Balasiel
-- Starts and Finishes: A Squire's Test, A Squire's Test II, A Knight's Test
-- @zone 230
-- !pos -136 -11 64
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------... | gpl-3.0 |
natuan241/Algorithm-Implementations | Bresenham_Based_Supercover_Line/Lua/Yonaba/bresenham_based_supercover_test.lua | 27 | 1151 | -- Tests for bresenham.lua
local supercover_line = require 'bresenham_based_supercover'
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 ... | mit |
hfjgjfg/yagop54 | 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 |
peymankhanas8487/Horror_Avatar | 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 |
ryangmor/lolsh | 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 |
lhsazevedo/LIKO-12 | Peripherals/CPU.lua | 1 | 3534 | local events = require("Engine.events")
local coreg = require("Engine.coreg")
return function(config) --A function that creates a new CPU peripheral.
local EventStack = {}
local Instant = false
local RawPull = false
local sleepTimer
local devkit = {}
function devkit.triggerEvent(name,...)
if Instant... | mit |
HeavensSword/darkstar | scripts/zones/Dynamis-San_dOria/bcnms/dynamis_sandoria.lua | 14 | 1309 | -----------------------------------
-- Area: Dynamis San d'Oria
-- Name: Dynamis San d'Oria
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[DynaSandoria]UniqueID",os.time());
SetServerVariable("[DynaSan... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Port_Jeuno/npcs/_6u8.lua | 5 | 1252 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Door: Departures Exit (for Kahzam)
-- @zone 246
-- !pos -12 8 54
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/global... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Windurst_Walls/npcs/Kalupa-Tawalupa.lua | 5 | 2031 | -----------------------------------
-- Area: Windurst Walls
-- Location: X:-90 Y:-9 Z:109
-- NPC: Kalupa-Tawalupa
-- Working 100%
-- Involved in Quest: To Bee or Not to Bee?
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
---------------------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Temenos/mobs/Water_Elemental.lua | 28 | 1791 | -----------------------------------
-- Area: Temenos E T
-- NPC: Water_Elemental
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Southern_San_dOria/npcs/Meuneille.lua | 3 | 1647 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Meuneille
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/chocobo");
require("scripts/globals/status");
-------------------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/weaponskills/calamity.lua | 25 | 1516 | -----------------------------------
-- Calamity
-- Axe weapon skill
-- Skill level: 200 (Beastmasters and Warriors only.)
-- Delivers a single-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Soil Gorget & Thunder Gorget.
-- Aligned with the Soil Belt & Thunder Belt.
-- Element: N... | gpl-3.0 |
abbasgh12345/abbas1234 | 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 |
HeavensSword/darkstar | scripts/globals/abilities/maintenance.lua | 2 | 2478 | -----------------------------------
-- Ability: Maintenance
-- Cures your automaton of status ailments. Special items required
-- Obtained: Puppetmaster Level 30
-- Recast Time: 1:30
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("s... | gpl-3.0 |
typcn/mpv | player/lua/osc.lua | 7 | 62484 | local assdraw = require 'mp.assdraw'
local msg = require 'mp.msg'
local opt = require 'mp.options'
--
-- Parameters
--
-- default user option values
-- do not touch, change them in osc.conf
local user_opts = {
showwindowed = true, -- show OSC when windowed?
showfullscreen = true, -- show OSC when ... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/mobskills/necropurge.lua | 3 | 1080 | ---------------------------------------------
-- Necropurge
--
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------
function onMobSkillCheck(target,mob,skill)
if(m... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/The_Eldieme_Necropolis/Zone.lua | 7 | 1263 | -----------------------------------
--
-- Zone: The_Eldieme_Necropolis (195)
--
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs");
require("scripts/zones/The_Eldieme_Necrop... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/The_Eldieme_Necropolis_[S]/npcs/Turbulent_Storm.lua | 5 | 1504 | -----------------------------------
-- Area: The Eldieme Necropolis [S]
-- NPC: Turbulent Storm
-- Note: Starts Quest "The Fighting Fourth"
-- !pos 422.461 -48.000 175
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis_[S]/TextIDs"] = nil;
-----------------------------------
requi... | gpl-3.0 |
natuan241/Algorithm-Implementations | Bellman_Ford_Search/Lua/Yonaba/bellmanford.lua | 26 | 3025 | -- Bellman Ford single source shortest path search algorithm implementation
-- See : https://en.wikipedia.org/wiki/Bellman%E2%80%93Ford_algorithm
-- Notes : this is a generic implementation of Bellman Ford search algorithm.
-- It is devised to be used on waypoint graphs.
-- The BellmanFord class expects a handler to b... | mit |
LOVE-Party/Love-LD18 | lib/gamestate.lua | 1 | 2271 | Gamestate = {}
local function __NULL__() end
-- default gamestate produces error on every callback
local function __ERROR__() error("Gamestate not initialized. Use Gamestate.switch()") end
Gamestate.current = {
enter = __ERROR__,
leave = __NULL__,
update = __ERROR__,
draw ... | mit |
HeavensSword/darkstar | scripts/globals/spells/noctohelix.lua | 3 | 1983 | --------------------------------------
-- Spell: Noctohelix
-- Deals dark damage that gradually reduces
-- a target's HP. Damage dealt is greatly affected by the weather.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/ma... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Castle_Oztroja/npcs/Antiqix.lua | 5 | 6683 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: Antiqix
-- Type: Dynamis Vendor
-- !pos -207.835 -0.751 -25.498 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Castle_Oztroja/TextIDs");
... | gpl-3.0 |
shahifaqeer/my-luci-bismark-0.11 | modules/rpc/luasrc/jsonrpc.lua | 12 | 2238 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 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 License at
h... | apache-2.0 |
DipColor/test | plugins/google.lua | 336 | 1323 | do
local function googlethat(query)
local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&'
local parameters = 'q='..(URL.escape(query) or '')
-- Do the request
local res, code = https.request(url..parameters)
if code ~=200 then return nil end
loca... | gpl-2.0 |
Openarl/PathOfBuilding | Classes/Control.lua | 1 | 3607 | -- Path of Building
--
-- Class: Control
-- UI control base class
--
local t_insert = table.insert
local m_floor = math.floor
local anchorPos = {
["TOPLEFT"] = { 0 , 0 },
["TOP"] = { 0.5, 0 },
["TOPRIGHT"] = { 1 , 0 },
["RIGHT"] = { 1 , 0.5 },
["BOTTOMRIGHT"] = { 1 , 1 },
["... | mit |
shahifaqeer/my-luci-bismark-0.11 | libs/px5g/lua/px5g/util.lua | 170 | 1148 | --[[
* px5g - Embedded x509 key and certificate generator based on PolarSSL
*
* Copyright (C) 2009 Steven Barth <steven@midlink.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License, version 2.1 as published by the Free ... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Arrapago_Reef/mobs/Medusa.lua | 4 | 1103 | -----------------------------------
-- Area: Arrapago Reef
-- MOB: Medusa
-- !pos -458 -20 458
-- TODO: resists, attack/def boosts
-----------------------------------
package.loaded["scripts/zones/Arrapago_Reef/TextIDs"] = nil;
-----------------------------------
mixins = {require("scripts/mixins/job_special")};
requi... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/spells/aisha_ichi.lua | 5 | 1819 | -----------------------------------------
-- Spell: Aisha: Ichi
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
... | gpl-3.0 |
christakahashi/nodemcu-firmware | lua_modules/base64/base64.lua | 60 | 1224 | -- Lua 5.1+ base64 v3.0 (c) 2009 by Alex Kloss <alexthkloss@web.de>
-- licensed under the terms of the LGPL2
local moduleName = ...
local M = {}
_G[moduleName] = M
-- character table string
local b='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
-- encoding
function M.enc(data)
return ((data... | mit |
HeavensSword/darkstar | scripts/globals/abilities/building_flourish.lua | 2 | 2641 | -----------------------------------
-- Ability: Building Flourish
-- Enhances potency of your next weapon skill. Requires at least one Finishing Move.
-- Obtained: Dancer Level 50
-- Finishing Moves Used: 1-3
-- Recast Time: 00:10
-- Duration: 01:00
--
-- Using one Finishing Move boosts the Accuracy of your next weapon... | gpl-3.0 |
Openarl/PathOfBuilding | Data/2_6/EnchantmentBoots.lua | 3 | 3230 | -- Item data (c) Grinding Gear Games
return {
["CRUEL"] = {
"Adds 16 to 24 Fire Damage if you've Killed Recently",
"Adds 16 to 24 Cold Damage if you've been Hit Recently",
"Adds 1 to 56 Lightning Damage if you haven't Killed Recently",
"Adds 44 to 64 Chaos Damage if you've taken a Critical Strike Recently",
... | mit |
vitiwari/meter-plugin-process | init.lua | 1 | 16852 | -- @vitiwari
-- plugin to track Process utilization using lua
local framework = require('framework')
local net = require('net')
local json = require('json')
local os = require('os')
local timer = require('timer')
local Plugin = framework.Plugin
local DataSource = framework.DataSource
local DataSourcePoller... | apache-2.0 |
Dota-2-5v5v5v5/GameFolder | scripts/vscripts/libraries/worldpanels.lua | 1 | 10379 | WORLDPANELS_VERSION = "0.81"
--[[
Lua-controlled Frankenstein WorldPanels Library by BMD
Installation
-"require" this file inside your code in order to make the WorldPanels API availble
-Ensure that this file is placed in the vscripts/libraries path along with timers.lua and playertables.lua
-Ensure... | gpl-3.0 |
shahifaqeer/my-luci-bismark-0.11 | modules/niu/luasrc/controller/niu/system.lua | 33 | 6889 | --[[
LuCI - Lua Development Framework
Copyright 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://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
local... | apache-2.0 |
jcadduono/kali-nethunter | nethunter-installer/update/system/bin/scripts/emul2html.lua | 27 | 1676 | -- The getopt-functionality is loaded from pm3/getopt.lua
-- Have a look there for further details
getopt = require('getopt')
bin = require('bin')
dumplib = require('html_dumplib')
example = "script run emul2html -o dumpdata.eml "
author = "Martin Holst Swende"
usage = "script run htmldump [-i <file>] [-o <file>]"
des... | gpl-2.0 |
helkarakse/TickProfilerDisplay-OC | src/startup/glassStartup.lua | 2 | 1593 | --[[
MacroStartup Version 1.1 Beta
Do not modify, copy or distribute without permission of author
Helkarakse, 20130614
Changelog:
- 1.1 - Changed the startup code to pull latest copy from github instead of private server, 20131202
]]--
-- File array of github links
local fileArray = {
{link = "https... | gpl-2.0 |
devlaith/DEVLAITH-HL | plugins/insta.lua | 3 | 4359 | local access_token = "3084249803.280d5d7.999310365c8248f8948ee0f6929c2f02" -- your api key
local function instagramUser(msg, query)
local receiver = get_receiver(msg)
local url = "https://api.instagram.com/v1/users/search?q="..URL.escape(query).."&access_token="..access_token
local jstr, res = https.request(url)
... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/items/black_curry_bun_+1.lua | 3 | 1787 | -----------------------------------------
-- ID: 5764
-- Item: black_curry_bun+1
-- Food Effect: 60 min, All Races
-----------------------------------------
-- TODO: Group effects
-- Dexterity +4
-- Vitality +6
-- Intelligence +3
-- Mind +1
-- Accuracy +7
-- Ranged Accuracy +7
-- Evasion +7
-- Defense +25% (cap 200)
--... | gpl-3.0 |
Openarl/PathOfBuilding | Classes/NotesTab.lua | 1 | 1500 | -- Path of Building
--
-- Module: Notes Tab
-- Notes tab for the current build.
--
local t_insert = table.insert
local NotesTabClass = newClass("NotesTab", "ControlHost", "Control", function(self, build)
self.ControlHost()
self.Control()
self.build = build
self.lastContent = ""
self.controls.edit = new("EditCo... | mit |
pd2-linux/tina | feeds/luci/modules/base/luasrc/http/protocol/date.lua | 88 | 2760 | --[[
HTTP protocol implementation for LuCI - date handling
(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 License at
http://www.... | gpl-2.0 |
HeavensSword/darkstar | scripts/zones/VeLugannon_Palace/npcs/Treasure_Coffer.lua | 5 | 3846 | -----------------------------------
-- Area: Ve'Lugannon Palace
-- NPC: Treasure Coffer
-- @zone 177
-----------------------------------
package.loaded["scripts/zones/VeLugannon_Palace/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/bowl_of_witch_soup.lua | 3 | 1193 | -----------------------------------------
-- ID: 4333
-- Item: witch_soup
-- Food Effect: 4hours, All Races
-----------------------------------------
-- Magic Points 25
-- Strength -1
-- Mind 2
-- MP Recovered While Healing 1
-- Enmity -2
-----------------------------------------
require("scripts/globals/status");
----... | gpl-3.0 |
Deiz/naev | dat/missions/neutral/cargo_rush.lua | 3 | 7787 | --[[
-- These are rush cargo delivery missions. They can be failed! But, pay is higher to compensate.
-- These missions require fast ships, but higher tiers may also require increased cargo space.
--]]
include "dat/scripts/cargo_common.lua"
include "dat/scripts/numstring.lua"
lang = naev.lang()
if lang == "es" then
e... | gpl-3.0 |
GoogleFrog/Zero-K | scripts/turrettorp.lua | 16 | 2934 | include "constants.lua"
local base = piece 'base'
local arm1 = piece 'arm1'
local arm2 = piece 'arm2'
local turret = piece 'turret'
local firepoint = piece 'firepoint'
local waterFire = false
local smokePiece = {base}
-- Signal definitions
local SIG_AIM = 2
local function Bob(rot)
while true do
Turn(base, ... | gpl-2.0 |
teleofis/OpenWRT | feeds/luci/applications/luci-app-upnp/luasrc/model/cbi/upnp/upnp.lua | 56 | 3828 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("upnpd", luci.util.pcdata(translate("Universal Plug & Play")),
translate("UPnP allows clients in the local network to automatically configure the... | gpl-2.0 |
zjohn4/PD2-lua-src | core/lib/utils/dev/spreadsheat/coressrow.lua | 1 | 1284 | core:module( "CoreSsRow" )
core:import( "CoreClass" )
-- Class:Row - - - - - - - - - - - - - - - - - - - - - - - - -
local EMPTY_ROW_XML = [=[
<Row> %s
</Row> ]=]
local CELL_XML = [==[
<Cell><Data ss:Type="String">%s</Data></Cell> ]==]
Row = Row or CoreClass.class()
function Row:init(...)
self._vals =... | gpl-2.0 |
GoogleFrog/Zero-K | LuaUI/Widgets/chili_new/controls/multiprogressbar.lua | 7 | 4265 | --//=============================================================================
--- Multiprogressbar module
--- Multiprogressbar fields.
-- Inherits from Control.
-- @see control.Control
-- @table Multiprogressbar
-- @bool[opt=false] drawBorder should the border be drawn?
-- @tparam {r,g,b,a} borderColor specifies ... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0007-p0009-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-n0022-p0013-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
remakeelectric/luci | applications/luci-app-upnp/luasrc/model/cbi/upnp/upnp.lua | 1 | 3902 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("upnpd", luci.util.pcdata(translate("Universal Plug & Play")),
translate("UPnP allows clients in the local network to automatically configure the... | apache-2.0 |
StaymanHou/Hacking-the-Pentest-Tutor-Game | lib/LoveFrames/objects/internal/scrollable/scrollarea.lua | 10 | 5524 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- scrollarea class
local newobject = loveframes.NewObject("scrollarea", "loveframes_object_scrollarea", true)
--[[--------... | apache-2.0 |
TheSuperAlaa/TheSuperBot | plugins/lock_tag.lua | 5 | 1246 | --[[
_____ _ _ _ _____ Dev @lIMyIl
|_ _|__| |__ / \ | | _| ____| Dev @li_XxX_il
| |/ __| '_ \ / _ \ | |/ / _| Dev @h_k_a
| |\__ \ | | |/ ___ \| <| |___ Dev @Aram_omar22
|_||___/_| |_/_/ \_\_|\_\_____| Dev @IXX_I_XXI
CH > @lTSHAKEl_CH
--]]
l... | gpl-2.0 |
stephen322/prosody-modules | mod_swedishchef/mod_swedishchef.lua | 32 | 1690 | -- Copyright (C) 2009 Florian Zeitz
-- Copyright (C) 2009 Matthew Wild
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local trigger_string = module:get_option_string("swedishchef_trigger");
trigger_string = (trigger_string and trigger_string .. " "... | mit |
Invertika/data | scripts/maps/ow-n0019-n0025-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
ls-/oUF | private.lua | 4 | 1595 | local parent, ns = ...
local Private = ns.oUF.Private
function Private.argcheck(value, num, ...)
assert(type(num) == 'number', "Bad argument #2 to 'argcheck' (number expected, got " .. type(num) .. ')')
for i = 1, select('#', ...) do
if(type(value) == select(i, ...)) then return end
end
local types = strjoin('... | mit |
GoogleFrog/Zero-K | units/turrettorp.lua | 7 | 5270 | unitDef = {
unitname = [[turrettorp]],
name = [[Urchin]],
description = [[Torpedo Launcher]],
acceleration = 0,
activateWhenBuilt = true,
brakeRate = 0,
buildAngle = 16384,
buildCostEnergy = 120,
buildCostMetal = 120,
builder = false,
... | gpl-2.0 |
nightcj/mmo | examples/login/gated.lua | 57 | 2201 | local msgserver = require "snax.msgserver"
local crypt = require "crypt"
local skynet = require "skynet"
local loginservice = tonumber(...)
local server = {}
local users = {}
local username_map = {}
local internal_id = 0
-- login server disallow multi login, so login_handler never be reentry
-- call by login server
... | mit |
Invertika/data | scripts/maps/ow-p0008-n0024-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | LuaRules/Gadgets/lups_napalm.lua | 17 | 2458 | -- $Id: lups_napalm.lua 3171 2008-11-06 09:06:29Z det $
function gadget:GetInfo()
return {
name = "Napalm",
desc = "",
author = "jK",
date = "Sep. 2008",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = false,
}
end
if (gadgetHandler:IsSyncedCode()) the... | gpl-2.0 |
pagodabox/tag | deps/cauterize/lib/timer.lua | 2 | 1208 | -- -*- mode: lua; tab-width: 2; indent-tabs-mode: 1; st-rulers: [70] -*-
-- vim: ts=4 sw=4 ft=lua noet
----------------------------------------------------------------------
-- @author Daniel Barney <daniel@pagodabox.com>
-- @copyright 2015, Pagoda Box, Inc.
-- @doc
--
-- @end
-- Created : 29 May 2015 by Daniel Barney... | mit |
zjohn4/PD2-lua-src | lib/units/enemies/cop/logics/coplogictrade.lua | 1 | 7550 | -----------------------------------------------------------------------------
-- ************* INTIMIDATED LOGIC *******************
-----------------------------------------------------------------------------
CopLogicTrade = class( CopLogicBase )
CopLogicTrade.butchers_traded = 0
function CopLogicTrade.enter( dat... | gpl-2.0 |
Meoo/premake-core | tests/api/test_list_kind.lua | 7 | 1616 | --
-- tests/api/test_list_kind.lua
-- Tests the list API value type.
-- Copyright (c) 2012 Jason Perkins and the Premake project
--
T.api_list_kind = {}
local suite = T.api_list_kind
local api = premake.api
--
-- Setup and teardown
--
function suite.setup()
api.register {
name = "testapi",
kind = "strin... | bsd-3-clause |
xDShot/csgo_knives_sweps | lua/weapons/csgo_karambit_fade.lua | 1 | 2420 | if not file.Exists( "weapons/csgo_baseknife.lua", "LUA" ) then
SWEP.Spawnable = false
print( "csgo_karambit_fade failed to initialize: csgo_baseknife.lua not found. Did you install the main part?" )
return
end
local TTT = ( GAMEMODE_NAME == "terrortown" or cvars.Bool("csgo_knives_force_ttt", false) )
DEFINE_BAS... | mit |
GoogleFrog/Zero-K | LuaUI/Widgets/unit_state_icons.lua | 4 | 8686 | -------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "State Icons",
desc = "Shows movestate, firestate and priority icons",
author ... | gpl-2.0 |
splay-project/splay | tools/scripts/planetlab_utils/splay_pl_pack/splayd_planetlab/lualibs/lib/ltn12.lua | 127 | 8177 | -----------------------------------------------------------------------------
-- LTN12 - Filters, sources, sinks and pumps.
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: ltn12.lua,v 1.31 2006/04/03 04:45:42 diego Exp $
-----------------------------------------------------------------------------
-------... | gpl-3.0 |
StaymanHou/Hacking-the-Pentest-Tutor-Game | lib/LoveFrames/objects/base.lua | 3 | 27595 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- base object
local newobject = loveframes.NewObject("base", "loveframes_object_base")
--[[-------------------------------... | apache-2.0 |
MeteoricGames/pioneer | data/libs/Ship.lua | 1 | 10701 | -- Copyright © 2008-2014 Pioneer Developers. See AUTHORS.txt for details
-- Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
local Ship = import_core("Ship")
local Engine = import("Engine")
local Event = import("Event")
local Serializer = import("Serializer")
local ShipDef = import("ShipDef")
local Timer... | gpl-3.0 |
GoogleFrog/Zero-K | LuaRules/Configs/deployment.lua | 8 | 1461 | -- $Id: deployment.lua 3171 2008-11-06 09:06:29Z det $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: LuaRules/Configs/deployment.lua
-- brief: LuaRules deployment mode configuration
-- ... | gpl-2.0 |
splay-project/splay | src/osx-installer/PKG_PAYLOAD/SPLAY/lualibs/splay/coxpcall.lua | 3 | 1870 | -------------------------------------------------------------------------------
-- Coroutine safe xpcall and pcall versions
--
-- Encapsulates the protected calls with a coroutine based loop, so errors can
-- be dealed without the usual Lua 5.x pcall/xpcall issues with coroutines
-- yielding inside the call to pcall or... | gpl-3.0 |
Invertika/data | scripts/maps/ow-n0014-p0010-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
beatgammit/luasocket | test/urltest.lua | 30 | 17349 | local socket = require("socket")
socket.url = require("socket.url")
dofile("testsupport.lua")
local check_build_url = function(parsed)
local built = socket.url.build(parsed)
if built ~= parsed.url then
print("built is different from expected")
print(built)
print(expected)
os.exi... | mit |
GoogleFrog/Zero-K | LuaRules/Utilities/base64.lua | 12 | 3111 | -- $Id: api_base64.lua 3171 2008-11-06 09:06:29Z det $
-- Author: Alex Kloss
-- Contact: http://www.it-rfc.de
-- Date: 2006-2008
-- License: LGPL2
-- Public functions:
-- * Spring.Utilities.Base64Encode(string data) -> string
-- * Spring.Utilities.Base64Decode(string data) -> string
-- bitshift functions (<<, >> eq... | gpl-2.0 |
mendsley/premake-core | tests/project/test_eachconfig.lua | 16 | 3443 | --
-- tests/project/test_eachconfig.lua
-- Test the project object configuration iterator function.
-- Copyright (c) 2011-2015 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("project_eachconfig")
--
-- Setup and teardown
--
local wks, prj
function suite.setup()
wks = wo... | bsd-3-clause |
Invertika/data | scripts/maps/ow-p0002-p0001-o0000.lua | 1 | 1765 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-p0009-n0022-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
zjohn4/PD2-lua-src | core/lib/units/editor/mission/coreareatrigger.lua | 1 | 24799 | core:import( "CoreShapeManager" )
CoreAreaTriggerUnitElement = CoreAreaTriggerUnitElement or class( MissionElement )
AreaTriggerUnitElement = AreaTriggerUnitElement or class( CoreAreaTriggerUnitElement )
function AreaTriggerUnitElement:init( ... )
CoreAreaTriggerUnitElement.init( self, ... )
end
function CoreAreaT... | gpl-2.0 |
Shayan123456/bottttt | plugins/inpm.lua | 243 | 3007 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0023-n0001-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-n0017-p0020-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
zjohn4/PD2-lua-src | lib/managers/mission/elementlookattrigger.lua | 1 | 1995 | core:import( "CoreMissionScriptElement" )
ElementLookAtTrigger = ElementLookAtTrigger or class( CoreMissionScriptElement.MissionScriptElement )
function ElementLookAtTrigger:init( ... )
ElementLookAtTrigger.super.init( self, ... )
end
function ElementLookAtTrigger:on_script_activated()
self:add_callback()
end
fun... | gpl-2.0 |
mendsley/premake-core | modules/gmake2/gmake2_makefile.lua | 1 | 2198 | --
-- gmake2_makefile.lua
-- Generate a C/C++ project makefile.
-- (c) 2016-2017 Jason Perkins, Blizzard Entertainment and the Premake project
--
local p = premake
local gmake2 = p.modules.gmake2
gmake2.makefile = {}
local makefile = gmake2.makefile
local project = p.project
local config = p.config
... | bsd-3-clause |
zjohn4/PD2-lua-src | core/lib/utils/dev/tools/material_editor/corematerialeditordialogs.lua | 1 | 7893 | CoreMaterialEditorGlobalDialog = CoreMaterialEditorGlobalDialog or class()
------------------------------- P r i v a t e - F u n c t i o n s ----------------------------
function CoreMaterialEditorGlobalDialog:init(parent, editor)
self._editor = editor
self._dialog = EWS:Dialog(parent, "Global Configuration", "", V... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0012-p0010-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-p0024-p0013-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
dvdvideo1234/wire | lua/wire/stools/grabber.lua | 8 | 1413 | WireToolSetup.setCategory( "Physics/Constraints" )
WireToolSetup.open( "grabber", "Grabber", "gmod_wire_grabber", nil, "Grabbers" )
if CLIENT then
language.Add( "tool.wire_grabber.name", "Grabber Tool (Wire)" )
language.Add( "tool.wire_grabber.desc", "Spawns a constant grabber prop for use with the wire system." )
... | apache-2.0 |
TeleMidia/dietncl | tests/test-filter-remove_component.lua | 1 | 4585 | --[[ Copyright (C) 2013-2017 PUC-Rio/Laboratorio TeleMidia
This file is part of DietNCL.
DietNCL is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your
option) any later ver... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0021-p0005-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-n0022-n0012-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
ugtaems/ugteam | plugins/tools.lua | 1 | 54635 | --Begin Tools.lua :)
local SUDO = (378362487,427703984) -- put Your ID here! <===
function exi_files(cpath)
local files = {}
local pth = cpath
for k, v in pairs(scandir(pth)) do
table.insert(files, v)
end
return files
end
local function file_exi(name, cpath)
for k,v in pairs(exi_files(cpath))... | gpl-3.0 |
noahchense/nodemcu-firmware | lua_modules/http/http.lua | 89 | 6624 | ------------------------------------------------------------------------------
-- HTTP server module
--
-- LICENCE: http://opensource.org/licenses/MIT
-- Vladimir Dronnikov <dronnikov@gmail.com>
------------------------------------------------------------------------------
local collectgarbage, tonumber, tostring = col... | mit |
Invertika/data | scripts/maps/ow-p0012-p0011-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
jonathantompson/cunn | THCUNN.lua | 1 | 5473 | local ffi = require 'ffi'
local THNN = require 'nn.THNN'
local THCUNN = {}
-- load libTHCUNN
THCUNN.C = ffi.load(package.searchpath('libTHCUNN', package.cpath))
local THCState_ptr = ffi.typeof('THCState*')
function THCUNN.getState()
return THCState_ptr(cutorch.getState());
end
local THCUNN_h = [[
typedef void T... | bsd-3-clause |
Invertika/data | scripts/libs/seller.lua | 1 | 1608 | ----------------------------------------------------------------------------------
-- Verkäufer Skript --
-- --
-- Dieses Skript stellt einen generischen Verkäufer bereit ... | gpl-3.0 |
dkrikun/casio-fsm | foreign/smc_6_1_0/examples/Lua/EX2/checkstring.lua | 3 | 1783 | #!/usr/bin/env lua
--
-- The contents of this file are subject to the Mozilla Public
-- License Version 1.1 (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.mozilla.org/MPL/
--
-- Software distributed under the License is distrib... | mit |
Invertika/data | scripts/items/dispersia.lua | 1 | 1479 | -- Radius der Explosion
DAMAGE_RADIUS = 15 * TILESIZE
-- Faktor mit dem der Schaden nach einer bestimmten Entfernung bestimmt:
-- damage = damaga * pow(FACTOR_DECREASE, distance)
DAMAGE_FACTOR_DECREASE = 0.99
-- Schaden der im Zentrum der Explosion entsteht
DAMAGE_DAMAGE = 50000
-- Andere
DAMAGE_DELTA = 30
DAMAGE_ACCU... | gpl-3.0 |
mrgloom/flattened-cnn | nn-conv1d/LateralConvolution.lua | 5 | 2076 | local LateralConvolution, parent = torch.class('nn.LateralConvolution', 'nn.Module')
function LateralConvolution:__init(nInputPlane, nOutputPlane)
parent.__init(self)
self.nInputPlane = nInputPlane
self.nOutputPlane = nOutputPlane
self.weight = torch.Tensor(nOutputPlane, nInputPlane)
self.bias = torch... | mit |
Android092921/farsi | plugins/owners.lua | 1 | 12848 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'از قبل قفل هست'
else
data[tostring(target)]['settings']['lock_name... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0023-p0012-o0000.lua | 1 | 1404 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Meoo/premake-core | src/actions/vstudio/vs2010_vcxproj_filters.lua | 13 | 3410 | --
-- vs2010_vcxproj_filters.lua
-- Generate a Visual Studio 201x C/C++ filters file.
-- Copyright (c) 2009-2014 Jason Perkins and the Premake project
--
local p = premake
local project = p.project
local tree = p.tree
local m = p.vstudio.vc2010
--
-- Generate a Visual Studio 201x C++ project, with support for t... | bsd-3-clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.