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 |
|---|---|---|---|---|---|
b03605079/darkstar | scripts/zones/Residential_Area/Zone.lua | 2 | 1327 | -----------------------------------
--
-- Zone: Residential_Area
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Residential_Area/TextIDs"] = nil;
require("scripts/zones/Residential_Area/TextIDs");
-----------------------------------
-- onInitial... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Fayeewah.lua | 34 | 1200 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Fayeewah
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
require... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Dynamis-San_dOria/mobs/Wyrmgnasher_Bjakdek.lua | 8 | 1064 | -----------------------------------
-- Area: Dynamis San d'Oria
-- NPC: Wyrmgnasher Bjakdek
-- Boss Trigger for Overlord's Tombstone
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function OnMobSpawn(mob)
end;
-----------... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Bastok_Markets/npcs/Zacc.lua | 31 | 1547 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Zacc
-- Type: Quest NPC
-- @zone: 235
-- @pos -255.709 -13 -91.379
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("scripts/zones/Bastok_Markets/TextIDs");
require("scripts/globals/quests... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Port_Windurst/npcs/Dehn_Harzhapan.lua | 38 | 1037 | -----------------------------------
-- Area: Port Windurst
-- NPC: Dehn Harzhapan
-- Type: Standard NPC
-- @zone: 240
-- @pos -7.974 -7 152.633
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
------------... | gpl-3.0 |
thesrinivas/rakshak | rakshak-probe/userspace/elasticsearch-lua/tests/endpoints/CatTest/ShardsTest.lua | 2 | 1227 | -- Importing modules
local Shards = require "elasticsearch.endpoints.Cat.Shards"
local parser = require "elasticsearch.parser"
local MockTransport = require "lib.MockTransport"
local getmetatable = getmetatable
-- Setting up environment
local _ENV = lunit.TEST_CASE "tests.endpoints.CatTest.ShardsTest"
-- Declaring lo... | gpl-2.0 |
b03605079/darkstar | scripts/globals/items/plate_of_yahata-style_carp_sushi.lua | 35 | 1422 | -----------------------------------------
-- ID: 5186
-- Item: plate_of_yahata-style_carp_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 2
-- Accuracy % 11
-- HP Recovered While Healing 2
-----------------------------------------
require("scripts/globals/status"... | gpl-3.0 |
b03605079/darkstar | scripts/globals/spells/cura_iii.lua | 13 | 3235 | -----------------------------------------
-- Spell: Cura III
-- Restores hp in area of effect. Self target only
-- From what I understand, Cura III's base potency is the same as Cure III's.
-- With Afflatus Misery Bonus, it can be as potent as a Curaga IV
-- Modeled after our cure_iii.lua, which was modeled after the b... | gpl-3.0 |
FlightControl-Master/MOOSE_MISSIONS | AID - AI Dispatching/AID-A2G - AI A2G Dispatching/AID-A2G-310 - CAS Helicopters Patrol/AID-A2G-310 - CAS Helicopters Patrol.lua | 1 | 1315 | --- Detect and attack a set of enemy units using helicopters.
-- Name: AID-A2G-001 - Detection and Attack Helicopters
-- Author: FlightControl
-- Date Created: 02 Nov 2018
-- Define a SET_GROUP object that builds a collection of groups that define the recce network.
-- Here we build the network with all the grou... | gpl-3.0 |
adib1380/spamproof | plugins/banhammer.lua | 3 | 7329 | local function cron()
local all = db:hgetall('tempbanned')
if next(all) then
for unban_time,info in pairs(all) do
if os.time() > tonumber(unban_time) then
local chat_id, user_id = info:match('(-%d+):(%d+)')
api.unbanUser(chat_id, user_id, true)
api.unbanUser(chat_id, user_id, false)
db:hdel('temp... | gpl-2.0 |
FlightControl-Master/MOOSE_MISSIONS | AID - AI Dispatching/AID-A2G - AI A2G Dispatching API V2/AID-A2G-001 - Detection and Engage/AID-A2G-001 - Detection and Engage.lua | 1 | 2718 | --- Detect and attack a set of enemy units.
-- Name: AID-A2G-001 - Detection and Attack Helicopters
-- Author: FlightControl
-- Date Created: 02 Nov 2018
-- Define a SET_GROUP object that builds a collection of groups that define the recce network.
-- Here we build the network with all the groups that have a nam... | gpl-3.0 |
MPCTeam/SpiderBot | plugins/anti_spam.lua | 191 | 5291 | --An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id == our_id then
return msg
end
-- Save... | agpl-3.0 |
Wingless-Archangel/haka | modules/protocol/dns/dns.lua | 3 | 7883 | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
local class = require('class')
local udp_connection = require("protocol/udp_connection")
local ipv4 = require('proto... | mpl-2.0 |
b03605079/darkstar | scripts/globals/effects/super_buff.lua | 35 | 1143 | -----------------------------------
--
-- EFFECT_SUPER_BUFF
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
local power = effect:getPower();
... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Rabao/npcs/HomePoint#1.lua | 12 | 1234 | -----------------------------------
-- Area: Rabao
-- NPC: HomePoint#1
-- @pos -29.276 0.001 -76.585 247
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Rabao/TextIDs");
require("scripts/globals/homepoint")... | gpl-3.0 |
GNOME/grilo-plugins | src/lua-factory/sources/grl-musicbrainz-coverart.lua | 3 | 3028 | --[[
* Copyright (C) 2014 Victor Toso.
*
* Contact: Bastien Nocera <hadess@hadess.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at your ... | lgpl-2.1 |
dualcoding/wow-profiler | src/ui_data.lua | 1 | 1099 | -- Static UI data
local OUR_NAME, profiler = ...
if not profiler.ui then
profiler.ui = {}
end
local ui = profiler.ui
if not ui.data then
ui.data = {}
end
ui.data.colors = {
-- R G B A
window = {1.00, 0.00, 0.00, 0.00},
windowborder = {0.00, 0.00, 0.00, ... | mit |
chanko08/KillerLibrarian | shelf.lua | 2 | 6367 | local inspect = require 'lib/inspect'
local Component = require 'component'
local Vector = require 'lib/hump/vector'
local _ = require 'lib/underscore'
local shelf = {}
local ShelfTileset = {}
ShelfTileset.default = 1
ShelfTileset.knocked_over = {}
ShelfTileset.knocked_over[{0,0}] = {31, 1}
ShelfTileset.knocked_over[... | mit |
b03605079/darkstar | scripts/zones/PsoXja/npcs/_i98.lua | 9 | 1528 | -----------------------------------
-- Area: Pso'Xja
-- NPC: Stone Gate
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/PsoXja/TextIDs");
require("scripts/globals/keyitems... | gpl-3.0 |
b03605079/darkstar | scripts/globals/abilities/spectral_jig.lua | 3 | 1139 | -----------------------------------
-- Ability: Spectral jig
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- onUseAbility
-----------------------------------
function onAbilityCheck(player,target,ability)
... | gpl-3.0 |
kostik1337/Urho3D | bin/Data/LuaScripts/Utilities/Touch.lua | 32 | 2209 | -- Mobile framework for Android/iOS
-- Gamepad from Ninja Snow War
-- Touches patterns:
-- - 1 finger touch = pick object through raycast
-- - 1 or 2 fingers drag = rotate camera
-- - 2 fingers sliding in opposite direction (up/down) = zoom in/out
-- Setup: Call the update function 'UpdateTouches()' from... | mit |
cs-willian-silva/vlc | share/lua/meta/art/01_googleimage.lua | 74 | 1764 | --[[
Gets an artwork from images.google.com
$Id$
Copyright © 2007 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 of the License, or
(at your option) any la... | gpl-2.0 |
leonindy/camel | Dengine/luajit-2.0/dynasm/dynasm.lua | 2 | 30949 | ------------------------------------------------------------------------------
-- DynASM. A dynamic assembler for code generation engines.
-- Originally designed and implemented for LuaJIT.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- See below for full copyright notice.
----------------------------... | gpl-3.0 |
miralireza2/gpf23 | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Nashmau/npcs/Wata_Khamazom.lua | 34 | 1438 | -----------------------------------
-- Area: Nashmau
-- NPC: Wata Khamazom
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/shop");
-----... | gpl-3.0 |
miralireza2/gpf23 | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
imashkan/telefire | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
Aquanim/Zero-K | effects/freedom_fighter.lua | 25 | 5564 | -- ffejector
-- ff_wingtips
-- ffmuzzle
-- ff_engine
-- ff_puff
return {
["ffejector"] = {
usedefaultexplosions = false,
shells = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = ... | gpl-2.0 |
b03605079/darkstar | scripts/zones/The_Sanctuary_of_ZiTah/npcs/relic.lua | 38 | 2786 | -----------------------------------
-- Area: The Sanctuary of Zi'Tah
-- NPC: <this space intentionally left blank>
-- @pos 646 -2 -165 121
-- @pos -18 0 55 121
-----------------------------------
package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil;
-----------------------------------
require("scripts/... | gpl-3.0 |
b03605079/darkstar | scripts/globals/items/chunk_of_goblin_chocolate.lua | 35 | 1343 | -----------------------------------------
-- ID: 4495
-- Item: chunk_of_goblin_chocolate
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Charisma -5
-- Health Regen While Healing 5
-- Lizard Killer 5
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
FlightControl-Master/MOOSE_MISSIONS | AIC - AI Cargo/PLN - Airplane/AIC-PLN-000 - Airplane/AIC-PLN-000 - Airplane.lua | 1 | 1312 | ---
-- Name: AIC-PLN-000 - Airplane
-- Author: FlightControl
-- Date Created: 14 Apr 2018
-- Date Checked: 01 Jan 2021
-- Update to latest Moose, working
--
VehicleCargoSet = SET_CARGO:New():FilterTypes( "Vehicles" ):FilterStart()
for i = 1, 10 do
local WorkerGroup = GROUP:FindByName( string.format( "V... | gpl-3.0 |
Aquanim/Zero-K | effects/gundam_beamimpact.lua | 26 | 2553 | -- beamimpact
return {
["beamimpact"] = {
groundflash = {
air = true,
alwaysvisible = true,
circlealpha = 0.2,
circlegrowth = 4,
flashalpha = 0.5,
flashsize = 110,
ground = true,
ttl = 10,... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Windurst_Woods/npcs/Harara_WW.lua | 6 | 4820 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Harara, W.W.
-- X Grant Signet
-- X Recharge Emperor Band, Empress Band, or Chariot Band
-- X Accepts traded Crystals to fill up the Rank bar to open new Missions.
-- X Sells items in exchange for Conquest Points
-- X Start Supply Run Mission... | gpl-3.0 |
stars2014/quick-ng | cocos/scripting/lua-bindings/auto/api/SkeletonRenderer.lua | 7 | 4108 |
--------------------------------
-- @module SkeletonRenderer
-- @extend Node,BlendProtocol
-- @parent_module sp
--------------------------------
--
-- @function [parent=#SkeletonRenderer] setTimeScale
-- @param self
-- @param #float scale
-- @return SkeletonRenderer#SkeletonRenderer self (return value: sp.SkeletonR... | mit |
b03605079/darkstar | scripts/zones/PsoXja/npcs/_093.lua | 9 | 1609 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _093 (Stone Gate)
-- Notes: Spawns Gargoyle when triggered
-- @pos -330.000 14.074 -261.600 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Pso... | gpl-3.0 |
stars2014/quick-ng | quick/framework/shortcodes.lua | 19 | 13473 | --[[
Copyright (c) 2011-2014 chukong-inc.com
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, dis... | mit |
tsthght/DBProxy | lib/load-multi.lua | 4 | 14764 | --[[ $%BEGINLICENSE%$
Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; version 2 of the
License.
This program is dis... | gpl-2.0 |
b03605079/darkstar | scripts/globals/mobskills/Antimatter.lua | 6 | 1117 | ---------------------------------------------------
-- Antimatter
--
-- Description: Single-target ranged Light damage (~700-1500), ignores Utsusemi.
-- Type: Magical
--
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/script... | gpl-3.0 |
b03605079/darkstar | scripts/globals/weaponskills/one_inch_punch.lua | 30 | 1549 | -----------------------------------
-- One Inch Punch
-- Hand-to-Hand weapon skill
-- Skill level: 75
-- Delivers an attack that ignores target's defense. Amount ignored varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Shadow Gorget.
-- Aligned with the Shadow Belt.
-- Element: None
-- Modi... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Northern_San_dOria/npcs/Narcheral.lua | 23 | 3760 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Narcheral
-- Starts and Finishes Quest: Messenger from Beyond, Prelude of Black and White (Finish), Pieuje's Decision (Finish)
-- @zone 231
-- @pos 129 -11 126
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/T... | gpl-3.0 |
witgo/nn | CMulTable.lua | 31 | 1238 |
local CMulTable, parent = torch.class('nn.CMulTable', 'nn.Module')
function CMulTable:__init()
parent.__init(self)
self.gradInput = {}
end
function CMulTable:updateOutput(input)
self.output:resizeAs(input[1]):copy(input[1])
for i=2,#input do
self.output:cmul(input[i])
end
return self.output
e... | bsd-3-clause |
wyzssw/codis | extern/redis-2.8.21/deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | mit |
stone-jin/avbot | extension/luascript/libs/luascript/fruit.lua | 3 | 7908 | local T={
--[[超人系]]
"1 橡皮果实——Monkey·D·Luffy。靠无与伦比的拉伸性和弹性来进攻和防御,身体利用橡胶性质进行攻击。",
"2 分裂果实——Buggy。身体能随意分裂合并,脚不可离开地面,分裂部分不得离中心200以外,否则会失去控制。",
"3 光滑果实——Alvida。肌肤变得光滑,可以消去一切摩擦。",
"4 爆炸果实——Mr.5。身体任何部分都有爆破能力,可吞下炸弹。",
"5 重量果实——Ms. Valentine。可改变体重,1kg~1万kg。",
"6 融化果实——Mr.3。可制造蜡,凝固时像钢铁般坚硬,不耐火。",
"7 吞食果实——Wapol。可吞下任何东西,可将吞... | agpl-3.0 |
Aquanim/Zero-K | LuaRules/Configs/StartBoxes/Onyx Cauldron 1.7.lua | 25 | 6343 | return {
[0] = {
boxes = {
{
{6863.8203125, 6965.1958007813},
{6289.3608398438, 6844.1010742188},
{6662.59765625, 6382.8154296875},
{6700.3759765625, 6373.1455078125},
{6723.0004882813, 6373.0263671875},
{6760.7124023438, 6384.935546875},
{6792.8911132813, 6397.5922851563},
{6839.2... | gpl-2.0 |
morcmarc/blackstar | src/gui/Debug.lua | 1 | 1327 | local Bump = require "vendor.bump.bump"
local Class = require "vendor.hump.class"
local Debug = Class {
init = function(self, world, player, camera)
self.world = world
self.player = player
self.camera = camera
end,
}
local function getCellRect(world, cx,cy)
local cellSize = worl... | mit |
b03605079/darkstar | scripts/zones/Selbina/npcs/Oswald.lua | 17 | 4682 | -----------------------------------
-- Area: Selbina
-- NPC: Oswald
-- Starts and Finishes Quest: Under the sea (finish), The gift, The real gift
-- @pos 48 -15 9 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
b03605079/darkstar | scripts/zones/East_Ronfaure/npcs/Signpost.lua | 19 | 2134 | -----------------------------------
-- Area: East Ronfaure
-- NPC: Signpost
-- Involved in Quest: To Cure a Cough
-- @pos 257 -45 212 101
-----------------------------------
package.loaded["scripts/zones/East_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("s... | gpl-3.0 |
Wiladams/LJIT2s2n | crypto/s2n_hash.lua | 1 | 1413 |
local ffi = require("ffi")
if __APPLE__ and __MACH__ then
--[[
#define COMMON_DIGEST_FOR_OPENSSL
#include <CommonCrypto/CommonDigest.h>
#define SHA1 CC_SHA1
#define SHA224 CC_SHA224
#define SHA256 CC_SHA256
#define SHA384 CC_SHA384
#define SHA512 CC_SHA512
#include <CommonCrypto/CommonHMAC.h>
#define HMAC CCHmac
--]... | mit |
ntrischi/dotfiles | .config/awesome/themes/steamburn/theme.lua | 7 | 2312 |
--[[
Steamburn Awesome WM config 3.0
github.com/copycat-killer
--]]
theme = {}
themes_dir = os.getenv("HOME") .. "/.config/awesome/themes/steamburn"
theme.wallpaper ... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Mount_Zhayolm/npcs/qm2.lua | 15 | 1161 | -----------------------------------
-- Area: Mount Zhayolm
-- NPC: ??? (Spawn Claret(ZNM T1))
-- @pos 497 -9 52 61
-----------------------------------
package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mount_Zhayolm/TextIDs");
---------------------... | gpl-3.0 |
node-wot/node-wot | lua_examples/u8glib/u8g_rotation.lua | 10 | 2539 | -- ***************************************************************************
-- Rotation Test
--
-- This script executes the rotation features of u8glib to test their Lua
-- integration.
--
-- Note: It is prepared for SSD1306-based displays. Select your connectivity
-- type by calling either init_i2c_display() ... | mit |
cjbrigato/kigiv-for-proxmark3 | client/scripts/tnp3dump.lua | 6 | 7183 | local cmds = require('commands')
local getopt = require('getopt')
local bin = require('bin')
local lib14a = require('read14a')
local utils = require('utils')
local md5 = require('md5')
local dumplib = require('html_dumplib')
local toys = require('default_toys')
example =[[
script run tnp3dump
script run tnp3dump -n
... | gpl-2.0 |
b03605079/darkstar | scripts/globals/items/bowl_of_navarin.lua | 35 | 1877 | -----------------------------------------
-- ID: 4439
-- Item: Bowl of Navarin
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health % 3
-- Strength 3
-- Agility 1
-- Vitality 1
-- Intelligence -1
-- Attack % 27
-- Attack Cap 30
-- Evasion 5
-- Ranged ATT % 27
-- Ranged ATT... | gpl-3.0 |
stars2014/quick-ng | quick/framework/crypto.lua | 20 | 4963 | --[[
Copyright (c) 2011-2014 chukong-inc.com
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, dis... | mit |
kostik1337/Urho3D | Source/ThirdParty/toluapp/src/bin/lua/container.lua | 28 | 17414 | -- tolua: container abstract class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance, support, updates,
-- e... | mit |
cjbrigato/kigiv-for-proxmark3 | client/lualibs/md5.lua | 12 | 9583 | local md5 = {
_VERSION = "md5.lua 0.5.0",
_DESCRIPTION = "MD5 computation in Lua (5.1)",
_URL = "https://github.com/kikito/md5.lua",
_LICENSE = [[
MIT LICENSE
Copyright (c) 2013 Enrique García Cota + Adam Baldwin + hanzao + Equi 4 Software
Permission is hereby granted, free of char... | gpl-2.0 |
Radseq/otclient | modules/corelib/ui/uisplitter.lua | 10 | 2605 | -- @docclass
UISplitter = extends(UIWidget, "UISplitter")
function UISplitter.create()
local splitter = UISplitter.internalCreate()
splitter:setFocusable(false)
splitter.relativeMargin = 'bottom'
return splitter
end
function UISplitter:onHoverChange(hovered)
-- Check if margin can be changed
local margin ... | mit |
b03605079/darkstar | scripts/zones/Horlais_Peak/bcnms/dropping_like_flies.lua | 13 | 1703 | -----------------------------------
-- Area: Horlias peak
-- Name: Dropping Like Flies
-- BCNM30
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Horlais_Peak/TextIDs");
-----------------------------------
-- EXA... | gpl-3.0 |
b03605079/darkstar | scripts/globals/spells/drain_ii.lua | 13 | 1888 | -----------------------------------------
-- Spell: Drain II
-- Drain functions only on skill level!!
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/settings");
-----------------------------------------
-- OnSpellCast
... | gpl-3.0 |
bakpakin/heroku-buildpack-moonmint | heroku/share/lua/5.1/luarocks/build/builtin.lua | 2 | 10986 |
--- A builtin build system: back-end to provide a portable way of building C-based Lua modules.
local builtin = {}
local unpack = unpack or table.unpack
local fs = require("luarocks.fs")
local path = require("luarocks.path")
local util = require("luarocks.util")
local cfg = require("luarocks.cfg")
local dir = requir... | mit |
zeebok/Polycode | Examples/Lua/Graphics/MaterialsAndLighting/Scripts/AdvancedLighting.lua | 10 | 1668 | Services.ResourceManager:addDirResource("Resources", false)
scene = Scene(Scene.SCENE_3D)
ground = ScenePrimitive(ScenePrimitive.TYPE_PLANE, 5,5)
ground:setMaterialByName("GroundMaterial", Services.ResourceManager:getGlobalPool())
scene:addEntity(ground)
box = ScenePrimitive(ScenePrimitive.TYPE_TORUS, 0.8,0.3,30,20)... | mit |
kostik1337/Urho3D | Source/ThirdParty/LuaJIT/dynasm/dasm_ppc.lua | 33 | 57489 | ------------------------------------------------------------------------------
-- DynASM PPC/PPC64 module.
--
-- Copyright (C) 2005-2016 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
--
-- Support for various extensions contributed by Caio Souza Oliveira.
---------------------------------... | mit |
FlightControl-Master/MOOSE_MISSIONS | TAD - Task Dispatching/CAP - Capture Task Dispatching/TAD-CAP-000 - Capture Zone Test/TAD-CAP-000 - Capture Zone Test.lua | 1 | 5299 |
do -- Setup the Command Centers
US_CC = COMMANDCENTER:New( GROUP:FindByName( "BLUEHQ" ), "USA HQ" )
RU_CC = COMMANDCENTER:New( GROUP:FindByName( "REDHQ" ), "CCCP HQ" )
end
do -- Missions
US_Mission_EchoBay = MISSION:New( US_CC, "Echo Bay", "Primary",
"Welcome trainee. The airport Groom Lak... | gpl-3.0 |
thesrinivas/rakshak | rakshak-probe/userspace/elasticsearch-lua/tests/endpoints/CatTest/CountTest.lua | 2 | 1219 | -- Importing modules
local Count = require "elasticsearch.endpoints.Cat.Count"
local parser = require "elasticsearch.parser"
local MockTransport = require "lib.MockTransport"
local getmetatable = getmetatable
-- Setting up environment
local _ENV = lunit.TEST_CASE "tests.endpoints.CatTest.CountTest"
-- Declaring local... | gpl-2.0 |
witgo/nn | SpatialFractionalMaxPooling.lua | 8 | 5107 | local SpatialFractionalMaxPooling, parent =
torch.class('nn.SpatialFractionalMaxPooling', 'nn.Module')
-- Usage:
-- nn.SpatialFractionalMaxPooling(poolSizeW, poolSizeH, outW, outH)
-- the output should be the exact size (outH x outW)
-- nn.SpatialFractionalMaxPooling(poolSizeW, poolSizeH, ratioW, ratioH)
-- the... | bsd-3-clause |
Aquanim/Zero-K | LuaUI/Widgets/gui_chili_keyboardmenu.lua | 6 | 32281 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Chili Keyboard Menu",
desc = "v0.035 Chili Keyboard Menu",
author = "CarRepairer",
... | gpl-2.0 |
b03605079/darkstar | scripts/zones/FeiYin/npcs/Strange_Apparatus.lua | 31 | 1106 | -----------------------------------
-- Area: FeiYin
-- NPC: Strange Apparatus
-- @pos -94 -15 220 204
-----------------------------------
package.loaded["scripts/zones/FeiYin/TextIDs"] = nil;
require("scripts/zones/FeiYin/TextIDs");
require("scripts/globals/strangeapparatus");
-----------------------------------
--... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Port_Bastok/npcs/Silver_Owl.lua | 34 | 1328 | -----------------------------------
-- Area: Port Bastok
-- NPC: Silver Owl
-- Type: Tenshodo Merchant
-- @pos -99.155 4.649 23.292 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
requi... | gpl-3.0 |
htbegin/pyftk | script_binding/lua/demo_progressbar.lua | 9 | 1174 | app_win=nil
function OnQuit(button)
Ftk.Quit()
return RET_OK
end
function OnTimer(data)
percent=0
for i=1,3 do
progress_bar=app_win:Lookup(i);
percent = progress_bar:GetPercent()
progress_bar:SetPercent(percent + 10)
end
print("percent:" .. percent)
if percent >= 100 then
return RET_REMOVE
end
re... | lgpl-3.0 |
thesrinivas/rakshak | rakshak-probe/userspace/elasticsearch-lua/tests/endpoints/IndicesTest/GetSettingsTest.lua | 2 | 1851 | -- Importing modules
local GetSettings = require "elasticsearch.endpoints.Indices.GetSettings"
local MockTransport = require "lib.MockTransport"
local getmetatable = getmetatable
-- Setting up environment
local _ENV = lunit.TEST_CASE "tests.endpoints.IndicesTest.GetSettingsTest"
-- Declaring local variables
local end... | gpl-2.0 |
DebugBill/domoticz | dzVents/runtime/integration-tests/varString.lua | 19 | 1685 | local log
local dz
local err = function(msg)
log(msg, dz.LOG_ERROR)
end
local tstMsg = function(msg, res)
print('Variable trigger, ' .. msg .. ': ' .. tostring(res and 'OK' or 'FAILED'))
end
local expectEql = function(attr, test, marker)
if (attr ~= test) then
local msg = tostring(attr) .. '~=' .. tostring(test... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Cloister_of_Tremors/bcnms/sugar-coated_directive.lua | 13 | 1704 | ----------------------------------------
-- Area: Cloister of Tremors
-- BCNM: Sugar Coated Directive (ASA-4)
----------------------------------------
package.loaded["scripts/zones/Cloister_of_Tremors/TextIDs"] = nil;
----------------------------------------
require("scripts/globals/keyitems");
require("scripts/global... | gpl-3.0 |
hauke/packages | utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/nat_traffic.lua | 79 | 1251 | local function scrape()
-- documetation about nf_conntrack:
-- https://www.frozentux.net/iptables-tutorial/chunkyhtml/x1309.html
nat_metric = metric("node_nat_traffic", "gauge" )
for e in io.lines("/proc/net/nf_conntrack") do
-- output(string.format("%s\n",e ))
local fields = space_split(e)
local ... | gpl-2.0 |
eXcomm/MozDef | examples/heka-lua-syslog/syslog_tab_delimited.lua | 10 | 1403 | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
-- Copyright (c) 2014 Mozilla Corporation
--
-- Contributors:
-- Anthony Verez averez@mozilla.com
-- Mike Trinkala mtr... | mpl-2.0 |
Aquanim/Zero-K | LuaUI/Widgets/minimap_startbox_new.lua | 6 | 11010 | 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
local mapX = Game.mapSizeX
local mapZ = Game.mapSizeZ
l... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Marquis_Nebiros.lua | 19 | 1259 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Marquis Decarabia
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
fun... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Uleguerand_Range/npcs/Fissure.lua | 17 | 1691 | -----------------------------------
-- Area: Uleguerand Range
-- NPC: Fissure
-- Teleports players from underground to surface
-- @pos 380.267 34.859 -179.655 5
-- @pos 460.339 -29.137 220.311 5
-- @pos 180.207 -77.147 500.276 5
-----------------------------------
package.loaded["scripts/zones/Uleguerand_Range/T... | gpl-3.0 |
Aquanim/Zero-K | LuaUI/Configs/border_menu_commands.lua | 2 | 13951 | VFS.Include("LuaRules/Configs/customcmds.h.lua")
--FIXME: use this table until state tooltip detection is fixed
local tooltips = {
priority = "Priority: Set construction priority (low, normal, high)",
retreat = "Retreat: Retreat to closest retreat point at 30/65/99% of health (right-click to disable)",
landat = "Re... | gpl-2.0 |
jerryjliu/dcgan_conditioned | generate_conditioned.lua | 1 | 6175 | require 'image'
require 'nn'
util = paths.dofile('util.lua')
torch.setdefaulttensortype('torch.FloatTensor')
word2vec_map_path = '/data/courses/iw16/jjliu/word2vec/word2vec/word2vec_output.txt'
opt = {
batchSize = 100, -- number of samples to produce
noisetype = 'normal', -- type of noise distribution... | bsd-3-clause |
thesrinivas/rakshak | rakshak-probe.bkup/userspace/sysdig/chisels/fdcount_by.lua | 16 | 2355 | --[[
Copyright (C) 2013-2014 Draios inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without ... | gpl-2.0 |
kostik1337/Urho3D | Source/ThirdParty/toluapp/src/bin/lua/code.lua | 42 | 2520 | -- tolua: code class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1999
-- $Id: $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance, support, updates,
-- enhancements, o... | mit |
abdullah38rcc/openvibe-emokit | applications/demos/motor-imagery/bci-examples/motor-imagery/motor-imagery-bci-graz-stimulator.lua | 4 | 2314 |
function initialize(box)
dofile(box:get_config("${Path_Data}") .. "/plugins/stimulation/lua-stimulator-stim-codes.lua")
number_of_trials = box:get_setting(2)
first_class = _G[box:get_setting(3)]
second_class = _G[box:get_setting(4)]
baseline_duration = box:get_setting(5)
wait_for_beep_duration = box:get_settin... | agpl-3.0 |
abdullah38rcc/openvibe-emokit | applications/demos/motor-imagery/bci-examples/motor-imagery-CSP/motor-imagery-bci-graz-stimulator.lua | 4 | 2314 |
function initialize(box)
dofile(box:get_config("${Path_Data}") .. "/plugins/stimulation/lua-stimulator-stim-codes.lua")
number_of_trials = box:get_setting(2)
first_class = _G[box:get_setting(3)]
second_class = _G[box:get_setting(4)]
baseline_duration = box:get_setting(5)
wait_for_beep_duration = box:get_settin... | agpl-3.0 |
ahmedalobaidyshado/dev_ahm3d | libs/dateparser.lua | 114 | 6213 | local difftime, time, date = os.difftime, os.time, os.date
local format = string.format
local tremove, tinsert = table.remove, table.insert
local pcall, pairs, ipairs, tostring, tonumber, type, setmetatable = pcall, pairs, ipairs, tostring, tonumber, type, setmetatable
local dateparser={}
--we shall use the host OS's... | gpl-2.0 |
PicassoCT/Journeywar | gamedata/explosions/chiexploammo.lua | 1 | 2147 | -- missile_explosion
return {
["chiexploammo"] = {
groundflash = {
air = true,
alwaysvisible = true,
circlealpha = 0.6,
circlegrowth = 6,
flashalpha = 0.9,
flashsize = 120,
ground = true,
ttl ... | gpl-3.0 |
Wingless-Archangel/haka | sample/ruleset/http/security.lua | 3 | 1067 | ------------------------------------
-- HTTP Attacks
------------------------------------
-- detect malicious web scanners
haka.rule {
hook = http.events.request,
eval = function (http, request)
--user-agent patterns of known web scanners
local http_useragent = {
nikto = '.+%(Nikto%/.+%)%s%(Evasions:.+%)%s%(T... | mpl-2.0 |
b03605079/darkstar | scripts/zones/QuBia_Arena/mobs/Yukvok_of_Clan_Death.lua | 8 | 2529 | -----------------------------------
-- Area: QuBia_Arena
-- Mission 9-2 SANDO
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/missions");
require("scripts/zones/QuBia_Arena/TextIDs");
-----------------------------------
-- onMobSpawn A... | gpl-3.0 |
b03605079/darkstar | scripts/zones/QuBia_Arena/mobs/Vangknok_of_Clan_Death.lua | 8 | 2529 | -----------------------------------
-- Area: QuBia_Arena
-- Mission 9-2 SANDO
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/missions");
require("scripts/zones/QuBia_Arena/TextIDs");
-----------------------------------
-- onMobSpawn A... | gpl-3.0 |
kkvskkkk/NPLRuntime | Client/trunk/externals/bullet3/Demos/premake4.lua | 6 | 3102 |
function createDemos( demos, incdirs, linknames)
for _, name in ipairs(demos) do
project ( "App_" .. name )
kind "ConsoleApp"
targetdir ".."
configuration {}
includedirs {incdirs}
links {
linknames
}
configuration { "Windo... | gpl-2.0 |
tst2005/LuaMinify | CommandLineLiveBeautify.lua | 2 | 1153 |
--
-- beautify.interactive
--
-- For testing: Lets you enter lines of text to be beautified to verify the
-- correctness of their implementation.
--
local util = require'Util'
local Parser = require'ParseLua'
local Format_Beautify = require'FormatBeautiful'
local ParseLua = Parser.ParseLua
local PrintTable = util.Pr... | mit |
FlightControl-Master/MOOSE_MISSIONS | CAP - Combat Air Patrol/CAP-012 - CAP - Test Abort/CAP-012 - CAP - Test Abort.lua | 1 | 1470 | ---
-- Name: CAP-012 - CAP - Test Abort
-- Author: FlightControl
-- Date Created: 14 Mar 2017
--
-- # Situation:
--
-- The Su-27 airplane will patrol in PatrolZone.
-- It will engage when it detects the airplane and when the A-10C is within the CapEngageZone.
-- It will abort the engagement after 1 minute and ... | gpl-3.0 |
Sakura-Winkey/LuCI | modules/luci-mod-failsafe/luasrc/controller/failsafe/failsafe.lua | 34 | 4984 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2012 Daniel Golle <dgolle@allnet.de>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.failsafe.failsafe", package.seeall)
function index()
local root = node()
if n... | apache-2.0 |
immibis/wiremod | lua/wire/stools/igniter.lua | 9 | 1241 | WireToolSetup.setCategory( "Physics" )
WireToolSetup.open( "igniter", "Igniter", "gmod_wire_igniter", nil, "Igniters" )
if CLIENT then
language.Add( "tool.wire_igniter.name", "Igniter Tool (Wire)" )
language.Add( "tool.wire_igniter.desc", "Spawns a constant igniter prop for use with the wire system." )
language.Add... | apache-2.0 |
PicassoCT/Journeywar | LuaRules/Gadgets/lups_projectiles.lua | 1 | 4760 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "Projectile Lups",
desc = "Attaches Lups FX to projectiles",
author = "KingRaptor (L.J. Lim)",
date = "2013... | gpl-3.0 |
samijon/online | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
shahabsaf1/newdev | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
qweru/Telebits | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
PicassoCT/Journeywar | LuaRules/Gadgets/CustomUnitShadders/UnitMaterials/1_normalmapping.lua | 1 | 4431 | --$Id$
------------------------------------------------------------------------------
------------------------------------------------------------------------------
local materials = {
normalMappedS3o = {
shaderDefinitions = {
"#define use_perspective_correct_shadows",
"#define use_normalma... | gpl-3.0 |
MOSAVI17/idbot | plugins/hearthstone.lua | 15 | 2332 | -- Plugin for the Hearthstone database provided by hearthstonejson.com.
if not hs_dat then
hs_dat = {}
local jstr, res = HTTPS.request('http://hearthstonejson.com/json/AllSets.json')
if res ~= 200 then
print('Error connecting to hearthstonejson.com.')
print('hearthstone.lua will not be enabled.')
end
local... | gpl-2.0 |
kkvskkkk/NPLRuntime | Client/trunk/externals/bullet3/build3/premake4.lua | 6 | 4628 |
solution "0_Bullet3Solution"
local osversion = os.getversion()
print(string.format(" %d.%d.%d (%s)",
osversion.majorversion, osversion.minorversion, osversion.revision,
osversion.description))
-- Multithreaded compiling
if _ACTION == "vs2010" or _ACTION=="vs2008" then
buildoptions { "/MP" }
e... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.