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 |
|---|---|---|---|---|---|
thedraked/darkstar | scripts/zones/Palborough_Mines/Zone.lua | 17 | 1607 | -----------------------------------
--
-- Zone: Palborough_Mines (143)
--
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Palborough_Mines/TextIDs");
--------------------... | gpl-3.0 |
thedraked/darkstar | scripts/zones/RuLude_Gardens/npcs/Neraf-Najiruf.lua | 14 | 2050 | -----------------------------------
-- Area: Ru'Lud Gardens
-- NPC: Neraf-Najiruf
-- Involved in Quests: Save my Sister
-- @zone 243
-- @pos -36 2 60
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings"... | gpl-3.0 |
SnabbCo/snabbswitch | lib/pflua/src/pf/libpcap.lua | 26 | 2902 | module(...,package.seeall)
local ffi = require("ffi")
local types = require("pf.types") -- Load FFI declarations.
local pcap -- The pcap library, lazily loaded.
local verbose = os.getenv("PF_VERBOSE");
local MAX_UINT32 = 0xffffffff
ffi.cdef[[
typedef struct pcap pcap_t;
const char *pcap_lib_version(void);
int pcap_... | apache-2.0 |
mason-larobina/luakit | tests/run_test.lua | 1 | 7422 | #!/usr/bin/env luajit
--- Main test runner.
--
-- @script run_test
-- @copyright 2017 Aidan Holm <aidanholm@gmail.com>
-- Add ./tests to package.path
package.path = package.path .. ';./tests/?.lua'
package.path = package.path .. ';./lib/?.lua;./lib/?/init.lua'
local shared_lib = {}
local test = require "tests.lib"
l... | gpl-3.0 |
eduardoabinader/packages | utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/wifi.lua | 25 | 1527 | local ubus = require "ubus"
local iwinfo = require "iwinfo"
local function scrape()
local metric_wifi_network_quality = metric("wifi_network_quality","gauge")
local metric_wifi_network_bitrate = metric("wifi_network_bitrate","gauge")
local metric_wifi_network_noise = metric("wifi_network_noise_dbm","gauge")
lo... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Leonoyne1.lua | 14 | 1050 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Leonyone
-- @zone 80
-- @pos -192 -1 42
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
-----------------------------------
-- onT... | gpl-3.0 |
mtroyka/Zero-K | LuaUI/Widgets/minimap_startbox_new.lua | 3 | 10232 | function widget:GetInfo() return {
name = "Start Boxes",
desc = "Shows start-boxes during placement",
author = "trepan, jK, Rafal, Sprung",
date = "2007-2015",
license = "GNU GPL, v2 or later",
layer = 1002,
enabled = true,
} end
VFS.Include ("LuaRules/Utilities/startbox_utilities.lua... | gpl-2.0 |
mtroyka/Zero-K | scripts/amphriot.lua | 10 | 7183 | include 'constants.lua'
--------------------------------------------------------------------------------
-- pieces
--------------------------------------------------------------------------------
local base, pelvis, torso = piece('base', 'torso', 'torso')
local lfleg, rfleg, lbleg, rbleg = piece('lfleg', 'rfleg', 'lbl... | gpl-2.0 |
X-Coder/wire | lua/wire/stools/detonator.lua | 9 | 1050 | WireToolSetup.setCategory( "Physics" )
WireToolSetup.open( "detonator", "Detonator", "gmod_wire_detonator", nil, "Detonators" )
if CLIENT then
language.Add( "tool.wire_detonator.name", "Detonator Tool (Wire)" )
language.Add( "tool.wire_detonator.desc", "Spawns a Detonator for use with the wire system." )
language.A... | gpl-3.0 |
ukoloff/rufus-lua-win | vendor/lua/lib/lua/luarocks/make_manifest.lua | 2 | 1066 |
--- Module implementing the luarocks-admin "make_manifest" command.
-- Compile a manifest file for a repository.
module("luarocks.make_manifest", package.seeall)
local manif = require("luarocks.manif")
local index = require("luarocks.index")
local cfg = require("luarocks.cfg")
local util = require("luarocks.util")
h... | mit |
mtroyka/Zero-K | LuaUI/Widgets/mission_objectives.lua | 8 | 12675 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Objectives",
desc = "Displays mission objectives.",
author = "KingRaptor (L.J. Lim)",
... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_0rp.lua | 14 | 1660 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: Oil lamp
-- @pos -60 -23 60 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Phomiuna_Aqueduct... | gpl-3.0 |
vatanambib/yagop | 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 |
master041/tele-master-asli | 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 |
gmorishere/lolsh | 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 |
DipColor/DanGer | 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 |
thedraked/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 |
THUNDERGROOVE/SDETool | dps.lua | 1 | 2063 | sde = require("sde")
-- RoF in rounds/minute
local function GetRoF(t)
if t.Attributes["mFireMode0.m_eFireMode"] == "DWFM_FullAuto" then
return rpmtorof(t.Attributes["mFireMode0.fireInterval"]) -- nil pointer?
elseif t.Attributes["mFireMode0.m_eFireMode"] == "DWFM_ChargeToFire" then
print(t.Attributes["mFi... | mit |
ukoloff/rufus-lua-win | vendor/lua/lib/lua/loop/object/Exception.lua | 12 | 2141 | --------------------------------------------------------------------------------
---------------------- ## ##### ##### ###### -----------------------
---------------------- ## ## ## ## ## ## ## -----------------------
---------------------- ## ## ## ## ## ###### --------------------... | mit |
mtroyka/Zero-K | LuaRules/Configs/MetalSpots/Quoth_v1.lua | 17 | 1521 | return {
spots = {
{x = 2808, z = 6056, metal = 2.0400002002716},
{x = 5384, z = 5800, metal = 2.0400002002716},
{x = 6056, z = 1640, metal = 2.0400002002716},
{x = 136, z = 3144, metal = 2.0400002002716},
{x = 856, z = 1688, metal = 2.0400002002716},
{x = 712, z = 5896, metal = 2.0400002002716},
{x = 2104, z =... | gpl-2.0 |
abaez/ta-rust | keys.lua | 1 | 1073 | local api = require("rust.builder.api")
local tag = require("rust.builder.tag")
local raw = require("rust.builder.raw")
return {
[not OSX and not CURSES and 'cl' or 'ml'] =
{
-- Open this module for editing: `Alt/⌘-L` `M`
s =
function() io.open_file(_USERHOME..'/modules/rust/snippets.lua') en... | mit |
mtroyka/Zero-K | scripts/spiderassault.lua | 9 | 5237 | include "constants.lua"
local base = piece 'base'
local torso = piece 'torso'
local turret = piece 'turret'
local lbarrel = piece 'lbarrel'
local lflare = piece 'lflare'
local rbarrel = piece 'rbarrel'
local rflare = piece 'rflare'
local larm = piece 'larm'
local rarm = piece 'rarm'
local lfrontleg = piece '... | gpl-2.0 |
sharklinux/shark | deps/socket/http.lua | 121 | 12193 | -----------------------------------------------------------------------------
-- HTTP/1.1 client support for the Lua language.
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: http.lua,v 1.71 2007/10/13 23:55:20 diego Exp $
-----------------------------------------------------------------------------
-----... | lgpl-2.1 |
mtroyka/Zero-K | units/subscout.lua | 3 | 1969 | unitDef = {
unitname = [[subscout]],
name = [[Lancelet]],
description = [[Scout/Suicide Minisub]],
acceleration = 0.032,
activateWhenBuilt = true,
brakeRate = 0.25,
buildCostEnergy = 200,
buildCostMetal = 200,
builder ... | gpl-2.0 |
thedraked/darkstar | scripts/globals/weaponskills/hot_shot.lua | 15 | 1367 | -----------------------------------
-- Hot Shot
-- Marksmanship weapon skill
-- Skill Level: 5
-- Deals fire elemental damage to enemy.
-- Aligned with the Flame Gorget & Light Gorget.
-- Aligned with the Flame Belt & Light Belt.
-- Element: Fire
-- Modifiers: AGI:30%
-- 100%TP 200%TP 300%TP
-- 0.50 0.75 ... | gpl-3.0 |
mtroyka/Zero-K | LuaUI/Widgets/gui_persistent_build_spacing.lua | 6 | 1493 | function widget:GetInfo()
return {
name = "Persistent Build Spacing",
desc = "Recalls last build spacing set for each building and game [v2.0]",
author = "Niobium & DrHash",
date = "Sep 6, 2011",
license = "GNU GPL, v3 or later",
layer = 0,
enabled = true -- loa... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Windurst_Waters/npcs/Chamama.lua | 17 | 6585 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Chamama
-- Involved In Quest: Inspector's Gadget
-- Starts Quest: In a Pickle
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Wind... | gpl-3.0 |
latenitefilms/hammerspoon | extensions/doc/doc.lua | 4 | 12833 |
--- === hs.doc ===
---
--- Create documentation objects for interactive help within Hammerspoon
---
--- The documentation object created is a table with tostring metamethods allowing access to a specific functions documentation by appending the path to the method or function to the object created.
---
--- From the Ham... | mit |
thedraked/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/HomePoint#1.lua | 27 | 1295 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: HomePoint#1
-- @pos -21.129 0.001 -20.944 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
r... | gpl-3.0 |
keharriso/rogue-with-friends | Connection.lua | 1 | 4217 | -- Rogue with Friends - a 2D, real-time, multiplayer roguelike
-- ---------------------------------------------------------------
-- Released under the GNU AGPLv3 or later. See README.md for info.
local json = require "dkjson"
local len = string.len
local insert = table.insert
local remove = table.remove
local concat... | agpl-3.0 |
jonoonsorat/jonoonsoratantispam | bot/nod32bot.lua | 1 | 11919 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '2'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
return... | gpl-2.0 |
gmorishere/lolsh | plugins/face.lua | 641 | 3073 | local https = require("ssl.https")
local ltn12 = require "ltn12"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function request(imageUrl)
local api_key = mashape.api_key
if api_key:isempt... | gpl-2.0 |
studio666/niix-linux | linux.conf/awesome/volume.lua | 2 | 1180 | -- Create a volume control
volume_widget = widget({ type = "textbox", name = "tb_volume",
align = "right" })
function update_volume(widget)
local fd = io.popen("amixer sget Master")
local status = fd:read("*all")
fd:close()
local volume = tonumber(string.match(status, "(%d?%d?%d)... | gpl-2.0 |
mtroyka/Zero-K | lups/ParticleClasses/UnitJitter.lua | 3 | 8500 | -- $Id: UnitJitter.lua 4454 2009-04-20 11:45:38Z jk $
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
local UnitJitter = {}
UnitJitter.__in... | gpl-2.0 |
mason-larobina/luakit | lib/cmdhist.lua | 2 | 3366 | --- Enables command history in modes that support it.
--
-- This module adds support for modes to specify that user input on the
-- command line should be recorded, so that users can scroll back through
-- previous input with the arrow keys. It is used to implement history for the
-- `command` mode.
--
-- @module cmdhi... | gpl-3.0 |
jhjin/nn | VolumetricMaxPooling.lua | 1 | 2149 | local VolumetricMaxPooling, parent = torch.class('nn.VolumetricMaxPooling', 'nn.Module')
VolumetricMaxPooling.__version = 2
function VolumetricMaxPooling:__init(kT, kW, kH, dT, dW, dH, padT, padW, padH)
parent.__init(self)
dT = dT or kT
dW = dW or kW
dH = dH or kH
self.kT = kT
self.kH = kH
self... | bsd-3-clause |
thedraked/darkstar | scripts/zones/Port_Bastok/npcs/Zoby_Quhyo.lua | 17 | 1661 | -----------------------------------
-- Area: Port Bastok
-- NPC: Zoby Quhyo
-- Only sells when Bastok controlls Elshimo Lowlands
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Port_Bastok/TextI... | gpl-3.0 |
jhasse/wxFormBuilder | build/premake/wxpropgrid.lua | 3 | 1362 | -----------------------------------------------------------------------------
-- Name: wxpropgrid.lua
-- Purpose: wxPropertyGrid library build script for wxWidgets 2.8.
-- Author: Andrea Zanellato
-- Modified by:
-- Created: 19/10/2011
-- Copyright: (c) 2011 wxFormBuilder Team
-- Licence: ... | gpl-2.0 |
mtroyka/Zero-K | effects/gate.lua | 18 | 7475 | -- gate_teleport_smoke
-- gate_teleport
-- gate_teleport_circle_lightning
-- gate_teleport_glow
-- gate_teleport_rgroundflash
-- gate_teleport_circle_lightning_single
-- gate
-- gate_teleport_ygroundflash
return {
["gate_teleport_smoke"] = {
wezels = {
air = true,
class = ... | gpl-2.0 |
X-Coder/wire | lua/wire/server/debuggerlib.lua | 15 | 5802 | local formatPort = {}
WireLib.Debugger = { formatPort = formatPort } -- Make it global
function formatPort.NORMAL(value)
return string.format("%.3f",value)
end
function formatPort.STRING(value)
return '"' .. value .. '"'
end
function formatPort.VECTOR(value)
return string.format("(%.1f,%.1f,%.1f)", value[1], value... | gpl-3.0 |
NPLPackages/main | script/ide/textdialog.lua | 1 | 7908 | --[[
Title: 3D text dialog lib 0.9 for ParaEngine
Author(s): LiuWeili
Date: 2005/10
desc:
Use Lib:
-------------------------------------------------------
NPL.load("(gl)script/ide/textdialog.lua");
-------------------------------------------------------
function list:
_textdialog.show(value)
_textdialog.clearall()
ex... | gpl-2.0 |
mtroyka/Zero-K | scripts/cordoom.lua | 7 | 5402 | include "constants.lua"
--pieces
local base = piece "Base"
local shellbase = piece "ShellBase"
local shell_1 = piece "Shell_1"
local shell_2 = piece "Shell_2"
-- guns
local cannonbase = piece "CannonBase"
local cannon = piece "Cannon"
local flare1 = piece "flare1"
local heatraybase = piece "HeatrayBase"
local heatr... | gpl-2.0 |
NPLPackages/main | script/kids/3DMapSystemApp/DebugApp/TestConsoleWnd.lua | 1 | 2780 | --[[
Title: Test console window
Author(s): LiXizhi
Date: 2008/3/5
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/kids/3DMapSystemApp/DebugApp/TestConsoleWnd.lua");
-------------------------------------------------------
]]
-- common control library
NPL.load("(gl)script/... | gpl-2.0 |
SnabbCo/snabbswitch | lib/pflua/tests/properties/pipecmp_proto_or_proto.lua | 11 | 1576 | #!/usr/bin/env luajit
-- -*- lua -*-
module(..., package.seeall)
package.path = package.path .. ";../?.lua;../../src/?.lua"
local pf = require("pf")
local savefile = require("pf.savefile")
local utils = require('pf.utils')
local use_native = os.getenv("PF_QUICKCHECK_NATIVE");
local function choose_proto()
local p... | apache-2.0 |
thedraked/darkstar | scripts/globals/mobskills/Osmosis.lua | 28 | 1120 | ---------------------------------------------
-- Osmosis
--
-- Description: Steals an enemy's HP and one beneficial status effect. Ineffective against undead.
-- Type: Magical
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globa... | gpl-3.0 |
Devul/DarkRP | gamemode/modules/fadmin/fadmin/playeractions/kickban/sv_init.lua | 5 | 12201 | -- Kicking
local function Kick(ply, cmd, args)
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 CanKick = hook.Call("FAdmin_CanKick", nil, ply, targe... | mit |
thedraked/darkstar | scripts/globals/items/pepperoni_pizza.lua | 18 | 1624 | -----------------------------------------
-- ID: 5697
-- Item: pepperoni_pizza
-- Food Effect: 3hours, All Races
-----------------------------------------
-- Health Points 30
-- Strength 1
-- Accuracy 5% (caps @ 10) **wiki doesnt have information on %, so guessed it to be 5%
-- Attack 10% (caps @ 25)
------------------... | gpl-3.0 |
thedraked/darkstar | scripts/globals/abilities/tranquility.lua | 26 | 1165 | -----------------------------------
-- Ability: Tranquility
-- Your next white magic spell will generate less enmity.
-- Obtained: Scholar Level 75 Tier 2 Merit Points
-- Recast Time: Stratagem Charge
-- Duration: 1 white magic spell or 60 seconds, whichever occurs first
--
-- Level |Charges |Recharge Time per Charge... | gpl-3.0 |
SnabbCo/snabbswitch | src/lib/yang/data.lua | 2 | 70756 | -- Use of this source code is governed by the Apache 2.0 license; see
-- COPYING.
module(..., package.seeall)
local mem = require("lib.stream.mem")
local parser_mod = require("lib.yang.parser")
local schema = require("lib.yang.schema")
local util = require("lib.yang.util")
local value = require("lib.yang.value")
local... | apache-2.0 |
OpenNMT/OpenNMT | onmt/utils/MemoryOptimizer.lua | 8 | 6733 | --[[ MemoryOptimizer is a class used for optimizing memory usage of a replicated network.
--]]
local MemoryOptimizer = torch.class('MemoryOptimizer')
-- We cannot share every internal tensors (that is why we need to replicate in the first place).
-- The general rule is to not share tensors whose content is used in the... | mit |
thedraked/darkstar | scripts/zones/Southern_San_dOria/npcs/Ashene.lua | 14 | 2287 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Ashene
-- Standard Merchant NPC
-- @zone 230
-- @pos 70 0 61
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("... | gpl-3.0 |
thedraked/darkstar | scripts/globals/mobskills/Sand_Pit.lua | 14 | 1738 | ---------------------------------------------------
-- Sand Pit
-- Single target bind
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
function onMo... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Sealions_Den/npcs/Airship_Door.lua | 30 | 1826 | -----------------------------------
-- Area:
-- NPC: Airship_Door
-----------------------------------
package.loaded["scripts/zones/Sealions_Den/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/missions");
require("scripts/zones/Sealions_Den/TextIDs");
... | gpl-3.0 |
mtroyka/Zero-K | units/armjeth.lua | 2 | 4727 | unitDef = {
unitname = [[armjeth]],
name = [[Gremlin]],
description = [[Cloaked Anti-Air Bot]],
acceleration = 0.5,
brakeRate = 0.32,
buildCostEnergy = 150,
buildCostMetal = 150,
buildPic = [[ARMJETH.png]],
... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Pelsey-Holsey.lua | 14 | 1065 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Pelsey-Holsey
-- Type: Standard NPC
-- @zone 94
-- @pos 119.755 -4.5 209.754
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;... | gpl-3.0 |
wljcom/vlc-2.2 | share/lua/playlist/anevia_streams.lua | 112 | 3664 | --[[
$Id$
Parse list of available streams on Anevia Toucan servers.
The URI http://ipaddress:554/list_streams.idp describes a list of
available streams on the server.
Copyright © 2009 M2X BV
Authors: Jean-Paul Saman <jpsaman@videolan.org>
This program is free software; you can redistribute it and/or modify
... | gpl-2.0 |
jhjin/nn | SpatialContrastiveNormalization.lua | 63 | 1444 | local SpatialContrastiveNormalization, parent = torch.class('nn.SpatialContrastiveNormalization','nn.Module')
function SpatialContrastiveNormalization:__init(nInputPlane, kernel, threshold, thresval)
parent.__init(self)
-- get args
self.nInputPlane = nInputPlane or 1
self.kernel = kernel or torch.Tensor(9... | bsd-3-clause |
moomoomoo309/FamiliarFaces | src/gooi/utf8.lua | 1 | 10337 | -- $Id: utf8.lua 179 2009-04-03 18:10:03Z pasta $
--
-- Provides UTF-8 aware string functions implemented in pure lua:
-- * string.utf8len(s)
-- * string.utf8sub(s, i, j)
-- * string.utf8reverse(s)
-- * string.utf8char(unicode)
-- * string.utf8unicode(s, i, j)
-- * string.utf8gensub(s, sub_len)
--
-- If utf8data.lua (c... | mit |
MonkeyFirst/Urho3D | bin/Data/LuaScripts/47_Typography.lua | 11 | 6615 | -- Text rendering example.
-- Displays text at various sizes, with checkboxes to change the rendering parameters.
require "LuaScripts/Utilities/Sample"
-- Tag used to find all Text elements
local TEXT_TAG = "Typography_text_tag"
-- Top-level container for this sample's UI
local uielement = nil
function S... | mit |
vatanambib/yagop | plugins/bugzilla.lua | 611 | 3983 | do
local BASE_URL = "https://bugzilla.mozilla.org/rest/"
local function bugzilla_login()
local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password
print("accessing " .. url)
local res,code = https.request( url )
local data = json:decode(res)
return data
... | gpl-2.0 |
thedraked/darkstar | scripts/globals/weaponskills/tachi_shoha.lua | 22 | 1782 | -----------------------------------
-- Tachi: Shoha
-- Great Katana weapon skill
-- Skill Level: 357
-- Delivers a two-hit attack. Damage varies with TP.
-- To obtain Tachi: Shoha, the quest Martial Mastery must be completed and it must be purchased from the Merit Points menu.
-- Suspected to have an Attack Bonus simil... | gpl-3.0 |
garage11/kaupunki | build/bin/Data/LuaScripts/17_SceneReplication.lua | 13 | 17149 | -- Scene network replication example.
-- This sample demonstrates:
-- - Creating a scene in which network clients can join
-- - Giving each client an object to control and sending the controls from the clients to the server,
-- where the authoritative simulation happens
-- - Controlling a physics... | mit |
master041/tele-master-asli | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
gmorishere/lolsh | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
mtroyka/Zero-K | units/corgarp.lua | 3 | 4687 | unitDef = {
unitname = [[corgarp]],
name = [[Wolverine]],
description = [[Artillery Minelayer Vehicle]],
acceleration = 0.0282,
brakeRate = 0.08,
buildCostEnergy = 260,
buildCostMetal = 260,
builder = false,
buildPic = ... | gpl-2.0 |
mtroyka/Zero-K | LuaUI/i18nlib/spec/i18n_interpolate_spec.lua | 21 | 2228 | require 'spec.fixPackagePath'
local interpolate = require 'i18n.interpolate'
describe('i18n.interpolate', function()
it("exists", function()
assert_equal('function', type(interpolate))
end)
it("performs standard interpolation via string.format", function()
assert_equal("My name is John, I am 13", inter... | gpl-2.0 |
mtroyka/Zero-K | scripts/tele_beacon.lua | 7 | 2171 | include "constants.lua"
include "utility.lua"
local beacon, holder, sphere = piece('beacon', 'holder', 'sphere')
local SIG_CEG_EFFECTS = 1
local smokePiece = {sphere}
local spinmodes = {
[1] = {holder = 30, sphere = 25},
[2] = {holder = 50, sphere = 45},
[3] = {holder = 100, sphere = 130},
}
local holderDirect... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Bastok_Markets/npcs/Rothais.lua | 17 | 1052 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Rothais
-- Involved in Quest: Gourmet
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigge... | gpl-3.0 |
brimworks/zile | src/funcs.lua | 1 | 34278 | -- Miscellaneous Emacs functions
--
-- Copyright (c) 2010-2011 Free Software Foundation, Inc.
--
-- This file is part of GNU Zile.
--
-- GNU Zile 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 versio... | gpl-3.0 |
rjeli/luvit | deps/stream/stream_writable.lua | 1 | 13625 | --[[
Copyright 2014 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 |
mtroyka/Zero-K | units/screamer.lua | 2 | 5565 | unitDef = {
unitname = [[screamer]],
name = [[Screamer]],
description = [[Very Long-Range Anti-Air Missile Tower]],
acceleration = 0,
activateWhenBuilt = true,
brakeRate = 0,
buildCostEnergy ... | gpl-2.0 |
SnabbCo/snabbswitch | src/lib/lpm/lpm4_dxr.lua | 9 | 5195 | module(..., package.seeall)
local ffi = require("ffi")
local C = ffi.C
local lpm4_trie = require("lib.lpm.lpm4_trie").LPM4_trie
local lpm4 = require("lib.lpm.lpm4")
local ip4 = require("lib.lpm.ip4")
LPM4_dxr = setmetatable({ alloc_storable = { "dxr_smints", "dxr_keys", "dxr_bottoms", "dxr_tops" } }, { __index = lpm4_... | apache-2.0 |
thedraked/darkstar | scripts/globals/abilities/aspir_samba.lua | 25 | 1430 | -----------------------------------
-- Ability: Aspir Samba
-- Inflicts the next target you strike with Aspir daze, allowing all those engaged in battle with it to drain its MP.
-- Obtained: Dancer Level 25
-- TP Required: 10%
-- Recast Time: 1:00
-- Duration: 2:00
-----------------------------------
require("scripts/... | gpl-3.0 |
mtroyka/Zero-K | LuaRules/Gadgets/unit_stockpile.lua | 1 | 5121 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "Stockpile",
desc = "Partial reimplementation of stockpile system.",
author = "Google Fr... | gpl-2.0 |
MessiahAndrw/Stereoscopic-VLC | share/lua/playlist/katsomo.lua | 11 | 2907 | --[[
Translate www.katsomo.fi video webpages URLs to the corresponding
movie URL
$Id$
Copyright © 2009 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 o... | gpl-2.0 |
pakozm/luaw | lib/luaw_webapp.lua | 4 | 15028 | --[[
Copyright (c) 2015 raksoras
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, distribute, subl... | mit |
mtroyka/Zero-K | gamedata/modularcomms/dyncomm_chassis_generator.lua | 4 | 4031 | local chassisDefs = {
{
name = "dynstrike1",
weapons = {
"commweapon_peashooter",
"commweapon_beamlaser",
"commweapon_lparticlebeam",
"commweapon_shotgun",
"commweapon_shotgun_disrupt",
"commweapon_disruptor",
"commweapon_heavymachinegun",
"commweapon_heavymachinegun_disrupt",
"commweapo... | gpl-2.0 |
Devul/DarkRP | gamemode/modules/chat/cl_interface.lua | 11 | 1238 | DarkRP.addChatReceiver = DarkRP.stub{
name = "addChatReceiver",
description = "Add a chat command with specific receivers",
parameters = {
{
name = "prefix",
description = "The chat command itself (\"/pm\", \"/ooc\", \"/me\" are some examples)",
type = "string",
... | mit |
thedraked/darkstar | scripts/zones/Abyssea-Misareaux/npcs/qm9.lua | 9 | 1347 | -----------------------------------
-- Zone: Abyssea-Misareaux
-- NPC: qm9 (???)
-- Spawns Karkatakam
-- @pos ? ? ? 216
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
-... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Bastok_Markets/npcs/Arawn.lua | 25 | 2553 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Arawn
-- Starts & Finishes Quest: Stamp Hunt
-- @pos -121.492 -4.000 -123.923 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings")... | gpl-3.0 |
SnabbCo/snabbswitch | lib/pflua/src/pf/regalloc.lua | 4 | 16429 | -- Implements register allocation for pflua's native backend
--
-- Follows the algorithm described in:
-- "Linear scan register allocation"
-- Poletto and Sarkar
-- https://dl.acm.org/citation.cfm?id=330250
--
-- The result of register allocation is a table that describes
-- the register allocated for the give... | apache-2.0 |
thedraked/darkstar | scripts/globals/abilities/maguss_roll.lua | 19 | 2643 | -----------------------------------
-- Ability: Magus's Roll
-- Enhances magic defense for party members within area of effect
-- Optimal Job: Blue Mage
-- Lucky Number: 2
-- Unlucky Number: 6
-- Level: 17
--
-- Die Roll |No BLU |With BLU
----------- ------- -----------
-- 1 |+5 |+13
-- 2 ... | gpl-3.0 |
mtroyka/Zero-K | scripts/armrock.lua | 2 | 3136 | include "constants.lua"
local hips = piece 'hips'
local chest = piece 'chest'
local gun = piece 'gun'
local muzzle = piece 'muzzle'
local exhaust = piece 'exhaust'
local turner = piece 'turner'
local aimpoint = piece 'aimpoint'
local thigh = {piece 'lthigh', piece 'rthigh'}
local shin = {piece 'lshin', piece 'rshin'}... | gpl-2.0 |
thedraked/darkstar | scripts/globals/items/plate_of_friture_de_la_misareaux.lua | 18 | 1630 | -----------------------------------------
-- ID: 5159
-- Item: plate_of_friture_de_la_misareaux
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Health 3
-- Dexterity 3
-- Vitality 3
-- Mind -3
-- Defense 5
-- Ranged ATT % 7
-- Ranged ATT Cap 15
-----------------------------------------
r... | gpl-3.0 |
kaustavha/luvit | tests/test-http-post-1mb.lua | 11 | 2276 | --[[
Copyright 2015 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 |
thedraked/darkstar | scripts/zones/Attohwa_Chasm/mobs/Alastor_Antlion.lua | 11 | 1858 | -----------------------------------
-- Area: Attohwa Chasm
-- NPC: Alastor Antlion
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
mixins = {require("scripts/mixins/families/antlion_ambush")}
-----------------------------------
-- onMobInitialize Action
------... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Al_Zahbi/npcs/Hadibal.lua | 14 | 1035 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Hadibal
-- Type: Standard NPC
-- @zone 48
-- @pos -34.345 -1 -38.842
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------... | gpl-3.0 |
thedraked/darkstar | scripts/zones/The_Garden_of_RuHmet/mobs/Jailer_of_Faith.lua | 23 | 1527 | -----------------------------------
-- Area: The Garden of Ru'Hmet
-- NPC: Jailer_of_Faith
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
-- Give it two hour
mob:setMod(MOBMOD_MAIN_2HOUR, 1);
-- Cha... | gpl-3.0 |
NPLPackages/main | script/apps/WebServer/npl_page_env.lua | 1 | 14439 | --[[
Title: npl server file api environment
Author: LiXizhi
Date: 2015/6/8
Desc: this class defines functions that can be used inside npl server page file
Following objects and functions can be used inside page script:
request: current request object: headers and cookies
response: current response object: send he... | gpl-2.0 |
thedraked/darkstar | scripts/globals/items/serving_of_mille_feuille.lua | 18 | 1471 | -----------------------------------------
-- ID: 5559
-- Item: Serving of Mille Feuille
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +8
-- MP +15
-- Intelligence +1
-- HP Recoverd while healing 1
-- MP Recovered while healing 1
----------------------------------... | gpl-3.0 |
hjsrzvpqma/teest | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
alirezanj1/AntiSpam | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Windurst_Woods/npcs/Ibwam.lua | 14 | 4823 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Ibwam
-- Type: Warp NPC
-- @pos -25.655 1.749 -60.651 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
package.loaded["scripts/globals/settings"] = nil;
-----------------------------------
requi... | gpl-3.0 |
jhasse/wxFormBuilder | build/premake/4.3/scripts/release.lua | 6 | 5809 | --
-- Prepare a new Premake release. This is still incomplete and some manual
-- work is needed to get everything packaged up.
--
-- BEFORE RUNNING THIS SCRIPT:
-- * Make sure all tests pass on Windows AND Posix systems
-- * Update CHANGELOG.txt
-- * Run `premake4 embed`
-- * Commit all changes to premake-stable
--... | gpl-2.0 |
X-Coder/wire | lua/wire/timedpairs.lua | 17 | 3271 | -- Timedpairs by Grocel. (Rewrite by Divran)
-- It allows you to go through long tables, but without game freezing.
-- Its like a for-pairs loop.
--
-- How to use:
-- WireLib.Timedpairs(string unique name, table, number ticks done at once, function tickcallback[, function endcallback, ...])
--
-- tickcallback is called... | gpl-3.0 |
mtroyka/Zero-K | units/bomberassault.lua | 3 | 4445 | unitDef = {
unitname = [[bomberassault]],
name = [[Eclipse]],
description = [[Assault Bomber (Anti-Static)]],
--autoheal = 25,
brakerate = 0.4,
buildCostEnergy = 1000,
buildCostMetal = 1000,
builder = false,
buildPic = [[b... | gpl-2.0 |
X-Coder/wire | lua/entities/gmod_wire_numpad.lua | 10 | 3176 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Numpad"
ENT.WireDebugName = "Numpad"
if CLIENT then return end -- No more client
local keynames = {"0","1","2","3","4","5","6","7","8","9",".","enter","+","-","*","/"} -- Names as we will display them and for inputs/outputs
local keyenu... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Balgas_Dais/bcnms/charming_trio.lua | 30 | 1793 | -----------------------------------
-- Area: Balgas_Dais
-- Name: Charming Trio
-----------------------------------
package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/zones/Balgas_Dais/T... | gpl-3.0 |
NPLPackages/main | script/ide/Debugger/IOConsole.lua | 1 | 2750 | --[[
Title: Console
Author(s): LiXizhi
Date: 2010/3/17
Desc: A simple command line console system for win32 GUI. io and os library will be loaded.
The console is displayed immediately after loading this file.
Use Lib:
-------------------------------------------------------
NPL.load("(gl)script/ide/Debugger/IOConsole.... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Oldton_Movalpolos/npcs/Twinkbrix.lua | 14 | 2108 | -----------------------------------
-- Area: Oldton Movalpolos
-- NPC: Twinkbrix
-- Type: Warp NPC
-- @pos -292.779 6.999 -263.153 11
-----------------------------------
package.loaded["scripts/zones/Oldton_Movalpolos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.