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 |
|---|---|---|---|---|---|
SirFrancisBillard/lua-projects | bank_robbery/lua/entities/bank_vault.lua | 1 | 3350 | AddCSLuaFile()
ENT.Type = "anim"
ENT.Base = "base_gmodentity"
ENT.PrintName = "Bank Vault"
ENT.Category = "Bank Robbery"
ENT.Spawnable = true
ENT.AdminSpawnable = true
ENT.Model = "models/props/cs_assault/MoneyPallet.mdl"
function ENT:SetupDataTables()
self:NetworkVar("Bool", 0, "BeingRobbed")
self:Netw... | gpl-3.0 |
geanux/darkstar | scripts/zones/Rabao/npcs/Dancing_Wolf.lua | 19 | 1645 | -----------------------------------
-- Area: Rabao
-- NPC: Dancing Wolf
-- Type: Standard NPC
-- @zone: 247
-- @pos 7.619 7 81.209
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
-------------------------------... | gpl-3.0 |
Castux/devtut | exercises/text_gen/gen2.lua | 1 | 1240 | function read_file(name)
local file = io.open(name, "r")
local text = file.read(file, "*a")
file.close(file)
return text:gsub("\n", " ")
end
function analyze(str, tab, order)
for i = 1, #str - order do
local sub = str:sub(i, i + order - 1)
local follow = str:sub(i + order, i + order)
tab[sub] = tab... | mit |
tonylauCN/tutorials | openresty/debugger/lualibs/lexers/boo.lua | 5 | 2638 | -- Copyright 2006-2016 Mitchell mitchell.att.foicica.com. See LICENSE.
-- Boo LPeg lexer.
local l = require('lexer')
local token, word_match = l.token, l.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local M = {_NAME = 'boo'}
-- Whitespace.
local ws = token(l.WHITESPACE, l.space^1)
-- Comments.
local line_comme... | apache-2.0 |
famellad/oldschool-scroller | lua-scenes/scene-menu.lua | 1 | 1595 | Class = require 'libs.hump.class'
SceneMenu = Class{__includes = Scene}
function SceneMenu:init()
-- A menu MUST have a container
self.optionsContainer = GuiContainer(0, 0)
end
function SceneMenu:back()
-- Each scene should implement its own back function
end
function SceneMenu:forward()
-- Same goes for fo... | gpl-2.0 |
kaen/Zero-K | LuaUI/Widgets/chili/Controls/scrollpanel.lua | 12 | 10871 | --//=============================================================================
ScrollPanel = Control:Inherit{
classname = "scrollpanel",
padding = {0,0,0,0},
backgroundColor = {0,0,0,0},
scrollbarSize = 12,
scrollPosX = 0,
scrollPosY = 0,
verticalScrollbar = true,
horizontalScrollb... | gpl-2.0 |
kaen/Zero-K | units/chickenf.lua | 4 | 4325 | unitDef = {
unitname = [[chickenf]],
name = [[Talon]],
description = [[Flying Spike Spitter]],
acceleration = 0.8,
airHoverFactor = 0,
amphibious = true,
brakeRate = 0.4,
buildCostEnergy = 0,
buildCostMetal = 0,
builder ... | gpl-2.0 |
geanux/darkstar | scripts/zones/Quicksand_Caves/npcs/qm2.lua | 17 | 1245 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: qm2
-- Notes: Used to spawn Tribunus VII-I
-- @pos -49.944 -0.891 -139.485 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand... | gpl-3.0 |
geanux/darkstar | scripts/zones/Gusgen_Mines/TextIDs.lua | 7 | 1706 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6383; -- Obtained: <item>.
GIL_OBTAINED = 6384; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6386; -- Obtained... | gpl-3.0 |
geanux/darkstar | scripts/zones/Port_Windurst/npcs/Hakkuru-Rinkuru.lua | 17 | 7052 | -----------------------------------
-- Area: Port Windurst
-- NPC: Hakkuru-Rinkuru
-- Involved In Quest: Making Amends
-- Starts and Ends Quest: Wonder Wands
-- @pos -111 -4 101 240
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
package.loaded["scripts/globals/... | gpl-3.0 |
criezy/scummvm | devtools/create_ultima/files/ultima6/scripts/md/dreamworld.lua | 18 | 8058 | function finish_dream_quest(actor)
local schedule = Actor.get_schedule(actor, 0)
Actor.move(actor, schedule.x, schedule.y, schedule.z)
local obj = map_get_obj(schedule.x, schedule.y, schedule.z, 461) --OBJ_DREAM_TELEPORTER
Obj.removeFromEngine(obj)
obj = map_get_obj(schedule.x, schedule.y-1, schedule.z... | gpl-3.0 |
geanux/darkstar | scripts/globals/items/bowl_of_adoulin_soup_+1.lua | 36 | 1507 | -----------------------------------------
-- ID: 5999
-- Item: Bowl of Adoulin Soup +1
-- Food Effect: 240 Min, All Races
-----------------------------------------
-- HP % 4 Cap 45
-- Vitality 4
-- Defense % 16 Cap 75
-- HP Healing 7
-----------------------------------------
require("scripts/globals/status");
-------... | gpl-3.0 |
geanux/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Yasmina.lua | 36 | 1058 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Yasmina
-- Type: Chocobo Renter
-- @zone: 94
-- @pos -34.972 -5.815 221.845
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;... | gpl-3.0 |
geanux/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 |
girishramnani/Algorithm-Implementations | Egyptian_Fractions/Lua/Yonaba/egyptian_fractions_test.lua | 26 | 1335 | -- Tests for egyptian_fractions.lua
local egypt = require 'egyptian_fractions'
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 |
ugoviti/domoticz-scripts | SaveTemperature.lua | 1 | 2763 | -- Script per la lettura ed il salvataggio in una variabile globale della temperatura di un device
-- utile quando è necessario utilizzare questo valore all'interno di altri automatismi, tipo gli eventi a blockly, etc...
-- NB. questo script gira ogni minuto
commandArray = {}
local domoticzURL = 'http://localhost:8... | gpl-3.0 |
geanux/darkstar | scripts/zones/Castle_Oztroja/npcs/_47b.lua | 17 | 1935 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _47b (Handle)
-- Notes: Opens Trap Door (_47a) or Brass Door (_470)
-- @pos 22.310 -1.087 -14.320 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
req... | gpl-3.0 |
geanux/darkstar | scripts/zones/Port_San_dOria/npcs/Deguerendars.lua | 36 | 2054 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Deguerendars
-- Only sells when San d'Oria contrls Tavnazian Archipelago
-- Only available to those with CoP Ch. 4.1 or higher
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
------------------... | gpl-3.0 |
bungle/lua-resty-nettle | lib/resty/nettle/gmp.lua | 1 | 1604 | local ffi = require "ffi"
local ffi_load = ffi.load
local ipairs = ipairs
local assert = assert
local pcall = pcall
local lib_path = _GMP_LIB_PATH -- luacheck: ignore
if lib_path then
local sub = string.sub
local sep = sub(package.config, 1, 1) or "/"
if sub(lib_path, -1) ~= sep then
lib_path = lib_path .. s... | bsd-2-clause |
tylerneylon/termtris | termtris.lua | 1 | 37458 | --[[
# termtris: A Game like Tetris in Ten Functions
This is a literate implementation of a
tetris-like game called `termtris`.
You may be reading this as an html-ified version -
but the original,
[`termtris.lua`](https://github.com/tylerneylon/termtris/blob/master/termtris.lua),
is simultaneously a Lua file and a ma... | unlicense |
geanux/darkstar | scripts/zones/Upper_Jeuno/npcs/Rouliette.lua | 17 | 2208 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Rouliette
-- Starts and Finishes Quest: Candle-making
-- @zone 244
-- @pos -24 -2 11
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
package.loaded["scripts/globals/settings"] = nil;
--------------... | gpl-3.0 |
evilexecutable/ResourceKeeper | install/Lua/share/lua/5.1/lapis/views/error.lua | 1 | 2338 | local html = require("lapis.html")
local ErrorPage
do
local _class_0
local _parent_0 = html.Widget
local _base_0 = {
style = function(self)
return style({
type = "text/css"
}, function()
return raw([[ body {
color: #222;
background: #ddd;
font-f... | gpl-2.0 |
ld-test/luchia | tests/unit/core_document.lua | 3 | 8780 | local lunatest = require "lunatest"
local assert_equal = lunatest.assert_equal
local assert_table = lunatest.assert_table
local common = require "common_test_functions"
local document = require "luchia.core.document"
local attachment = require "luchia.core.attachment"
local tests = {}
local id = "id"
local rev = "re... | bsd-3-clause |
tonylauCN/tutorials | openresty/debugger/lualibs/luacheck/argparse.lua | 6 | 28883 | -- The MIT License (MIT)
-- Copyright (c) 2013 - 2015 Peter Melnichenko
-- 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
--... | apache-2.0 |
geanux/darkstar | scripts/zones/Port_Windurst/npcs/Kumama.lua | 36 | 1748 | -----------------------------------
-- Area: Port Windurst
-- NPC: Kumama
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/zones/Port_Windurst/TextIDs... | gpl-3.0 |
geanux/darkstar | scripts/zones/Kazham/npcs/Cha_Tigunalhgo.lua | 15 | 1101 | -----------------------------------
-- Area: Kazham
-- NPC: Cha Tigunalhgo
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
--------------------------... | gpl-3.0 |
geanux/darkstar | scripts/globals/items/mutton_enchilada.lua | 35 | 1730 | -----------------------------------------
-- ID: 4348
-- Item: mutton_enchilada
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Magic 10
-- Strength 3
-- Vitality 1
-- Intelligence -1
-- Attack % 27
-- Attack Cap 35
-- Ranged ATT % 27
-- Ranged ATT Cap 35
---------------------... | gpl-3.0 |
kaen/Zero-K | LuaRules/Gadgets/unit_grey_goo.lua | 6 | 8636 | function gadget:GetInfo()
return {
name = "Grey Goo",
desc = "",
author = "Google Frog",
date = "Nov 21, 2010",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true -- loaded by default?
}
end
-----------------------------------------------------------... | gpl-2.0 |
geanux/darkstar | scripts/zones/Middle_Delkfutts_Tower/TextIDs.lua | 7 | 1147 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6542; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6546; -- Obtained: <item>.
GIL_OBTAINED = 6547; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6549; -- Obtained... | gpl-3.0 |
ld-test/lua-cassandra | src/cassandra/types/inet.lua | 1 | 1588 | local string_gmatch = string.gmatch
local string_rep = string.rep
local string_sub = string.sub
local string_byte = string.byte
local string_format = string.format
local tonumber = tonumber
local table_insert = table.insert
local table_concat = table.concat
return {
repr = function(self, value)
local t = {}
... | mit |
geanux/darkstar | scripts/zones/Grand_Palace_of_HuXzoi/npcs/_iya.lua | 19 | 1539 | -----------------------------------
-- Area: Grand Palace of Hu'Xzoi
-- NPC: Gate of the Gods
-- @pos -20 0.1 -283 34
-----------------------------------
package.loaded["scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Grand_Palace_of_HuXzoi/TextIDs")... | gpl-3.0 |
geanux/darkstar | scripts/zones/Port_San_dOria/npcs/Diraulate.lua | 36 | 1375 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Diraulate
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Port_San_dOria/Tex... | gpl-3.0 |
geanux/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/Lindgard_IM.lua | 30 | 3065 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: Lindgard, I.M.
-- Outpost Conquest Guards
-- @pos -258.041 7.473 -254.527 114
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
kaen/Zero-K | LuaUI/Widgets/gfx_lups_smokesignal.lua | 9 | 3400 | function widget:GetInfo()
return {
name = "Smoke Signal",
desc = "Adds a Lups smoke signal to marker points",
author = "jK/quantum",
date = "Sep, 2008",
license = "GNU GPL, v2 or later",
layer = 10,
enabled = false -- loaded by default?
}
end
----------------... | gpl-2.0 |
geanux/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 |
lewes6369/LAVG-GAME-ENGINE | src/LAVG/Lua/main.lua | 2 | 1225 | -- main Entry Point
-- author by Liu Hao
-- 2017/06/18
--local Lplus = require "Lplus"
package.path = package.path .. ";Lua/?.lua"
require "Lua/ClientDef"
require "Lua/Config/res_path"
local Lplus = require "Lplus"
local TheGame = require "TheGame"
local SpriteManager = require "SpriteManager"
local W... | mit |
olszak94/forgottenserver | data/actions/scripts/other/fluids.lua | 34 | 2434 | local drunk = Condition(CONDITION_DRUNK)
drunk:setParameter(CONDITION_PARAM_TICKS, 60000)
local poison = Condition(CONDITION_POISON)
poison:setParameter(CONDITION_PARAM_DELAYED, true)
poison:setParameter(CONDITION_PARAM_MINVALUE, -50)
poison:setParameter(CONDITION_PARAM_MAXVALUE, -120)
poison:setParameter(CONDITION_PA... | gpl-2.0 |
Wiladams/LJITColors | lj2color/allcolors.lua | 1 | 67714 | --[[
Copyright 2015 William A Adams
This file is essentially a database of named colors.
The sources for the data are various, and this file was
generated from those sources, and combined.
The way to use it is simple. There are four named sets within
the file
resene
crayola
hollasch
sgi
The color values are l... | apache-2.0 |
geanux/darkstar | scripts/zones/Sih_Gates/Zone.lua | 34 | 1231 | -----------------------------------
--
-- Zone: Sih Gates
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Sih_Gates/TextIDs"] = nil;
require("scripts/zones/Sih_Gates/TextIDs");
-----------------------------------
-- onInitialize
----------------... | gpl-3.0 |
geanux/darkstar | scripts/zones/Crawlers_Nest/mobs/Aqrabuamelu.lua | 14 | 1550 | -----------------------------------
-- Area: Maze of Shakhrami
-- NM: Aqrabuamelu
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(mob)
... | gpl-3.0 |
geanux/darkstar | scripts/globals/spells/bluemagic/dimensional_death.lua | 28 | 1767 | -----------------------------------------
-- Spell: Dimensional Death
-- Damage varies with TP
-- Spell cost: 48 MP
-- Monster Type: Undead
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 5
-- Stat Bonus: DEX+1, CHR+1, HP+5
-- Level: 60
-- Casting Time: 0.5 seconds
-- Recast Time: 23.75 seconds
-- Skil... | gpl-3.0 |
geanux/darkstar | scripts/zones/Cloister_of_Frost/TextIDs.lua | 7 | 1042 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6383; -- Obtained: <item>
GIL_OBTAINED = 6384; -- Obtained <number> gil
KEYITEM_OBTAINED = 6386; -- Obtain... | gpl-3.0 |
kaen/Zero-K | LuaUI/Widgets/dbg_ceg_spawner.lua | 6 | 3061 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "CEG Spawner",
desc = "v0.031 Spawn CEGs",
author = "CarRepairer",
date = "2010... | gpl-2.0 |
geanux/darkstar | scripts/globals/items/bowl_of_sutlac.lua | 36 | 1315 | -----------------------------------------
-- ID: 5577
-- Item: Bowl of Sutlac
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +8
-- MP +10
-- INT +1
-- MP Recovered while healing +2
-----------------------------------------
require("scripts/globals/status");
----... | gpl-3.0 |
kaen/Zero-K | scripts/corbats.lua | 4 | 5185 | include 'constants.lua'
--------------------------------------------------------------------
--pieces
--------------------------------------------------------------------
local hull, turret1, turret2, turret3, radar = piece('hull', 'turret1', 'turret2', 'turret3', 'radar')
local wake1, wake2, ground = piece('wake1', '... | gpl-2.0 |
harrisonfeng/redis | 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... | bsd-3-clause |
shining-yang/redis | 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... | bsd-3-clause |
h0tw1r3/mame | 3rdparty/genie/tests/actions/xcode/test_xcode_dependencies.lua | 20 | 9645 | --
-- tests/actions/xcode/test_xcode_dependencies.lua
-- Automated test suite for Xcode project dependencies.
-- Copyright (c) 2009-2011 Jason Perkins and the Premake project
--
T.xcode3_deps = { }
local suite = T.xcode3_deps
local xcode = premake.xcode
----------------------------------------------------------... | gpl-2.0 |
rmackay9/rmackay9-ardupilot | libraries/AP_Scripting/applets/SmartAudio.lua | 24 | 3510 | --------------------------------------------------
--------------------------------------------------
--------- VTX LUA for SMARTAUDIO 2.0 -------------
------------based on work by----------------------
---------Craig Fitches 07/07/2020 ----------------
-------------Mods by H. Wurzburg -----------------
--------... | gpl-3.0 |
XanDDemoX/ESOAutoRecharge | Recharge/libs/LibAddonMenu-2.0/controls/custom.lua | 2 | 1373 | --[[customData = {
type = "custom",
reference = "MyAddonCustomControl", --(optional) unique name for your control to use as reference
refreshFunc = function(customControl) end, --(optional) function to call when panel/controls refresh
width = "full", --or "half" (optional)
} ]]
local widgetVersion = 6
loca... | unlicense |
geanux/darkstar | scripts/zones/Yuhtunga_Jungle/mobs/Rose_Garden.lua | 29 | 1648 | -----------------------------------
-- Area: Yuhtunga Jungle
-- MOB: Rose Garden
-----------------------------------
-----------------------------------
function onMobSpawn(mob)
local Voluptuous_Vilma = 17281358;
GetMobByID(Voluptuous_Vilma):setLocalVar("1",os.time() + math.random((36000), (37800)));
... | gpl-3.0 |
olszak94/forgottenserver | data/npc/scripts/The Oracle.lua | 21 | 3593 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local vocation = {}
local town = {}
local destination = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) ... | gpl-2.0 |
geanux/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5fr.lua | 34 | 2570 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: South Plate
-- @pos 180 -34 -31 195
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
------------------------... | gpl-3.0 |
geanux/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Pradiulot.lua | 17 | 2408 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Pradiulot
-- Involved in Quest: Unforgiven
-- @zone 26
-- @pos -20.814 -22 8.399
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/zon... | gpl-3.0 |
ethantang95/DIGITS | digits/standard-networks/torch/ImageNet-Training/alexnet.lua | 11 | 3434 | if pcall(function() require('cudnn') end) then
print('Using CuDNN backend')
backend = cudnn
convLayer = cudnn.SpatialConvolution
convLayerName = 'cudnn.SpatialConvolution'
cudnn.fastest = true
else
print('Failed to load cudnn backend (is libcudnn.so in your library path?)')
if pcall(function() requ... | bsd-3-clause |
geanux/darkstar | scripts/zones/Qufim_Island/npcs/Nightflowers.lua | 17 | 1530 | -----------------------------------
-- Area: Qufim Island
-- NPC: Nightflowers
-- Involved in Quest: Save My Son (Beastmaster Flag #1)
-- @pos -264.775 -3.718 28.767 126
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
geanux/darkstar | scripts/zones/Windurst_Waters/TextIDs.lua | 7 | 5524 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6538; -- Come back after sorting your inventory.
ITEM_OBTAINED = 6542; -- Obtained: <<<Unknown Parameter (Type: 80) 1>>><<<Possible Special Code: 01>>><<<Possible Special Code: 05>>>
GIL_OBTAINED = 6543; -- Obtaine... | gpl-3.0 |
ethantang95/DIGITS | digits/standard-networks/torch/ImageNet-Training/googlenet.lua | 6 | 5480 | -- source: https://github.com/soumith/imagenet-multiGPU.torch/blob/master/models/googlenet.lua
require 'nn'
if pcall(function() require('cudnn') end) then
print('Using CuDNN backend')
backend = cudnn
convLayer = cudnn.SpatialConvolution
else
print('Failed to load cudnn backend (is libcudnn.so in your libra... | bsd-3-clause |
Schwertspize/cuberite | src/Bindings/BindingsProcessor.lua | 20 | 5150 |
-- BindingsProcessor.lua
-- Implements additional processing that is done while generating the Lua bindings
local access = {public = 0, protected = 1, private = 2}
--- Defines classes that have a custom manual Push() implementation and should not generate the automatic one
-- Map of classname -> true
local ... | apache-2.0 |
kling-igor/particle-designer | loveframes/objects/slider.lua | 13 | 13428 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- get the current require path
local path = string.sub(..., 1, string.len(...) - string.len(".objects.slider"))
local lovef... | mit |
sodzawic/tk | test/lua/nstime.lua | 32 | 5569 | -- test script for various Lua functions
-- use with dhcp.pcap in test/captures directory
------------- general test helper funcs ------------
local FRAME = "frame"
local OTHER = "other"
local packet_counts = {}
local function incPktCount(name)
if not packet_counts[name] then
packet_counts[name] = 1
... | gpl-2.0 |
geanux/darkstar | scripts/zones/The_Shrouded_Maw/mobs/Diabolos.lua | 16 | 8384 | -----------------------------------
-- Area: The Shrouded Maw
-- MOB: Diabolos
-----------------------------------
-- TODO: CoP Diabolos
-- 1) Make the diremites in the pit all aggro said player that falls into region. Should have a respawn time of 10 seconds.
-- 2) Diremites also shouldnt follow you back to t... | gpl-3.0 |
gyakoo/camcap | premake5.lua | 1 | 1379 | -- WORK IN PROGRESS NOT USE --
local action = _ACTION or ""
local build="build"..action
solution "camcap"
location ( build )
configurations { "Debug", "Release" }
platforms {"x64", "x32"}
project "camcap"
kind "ConsoleApp"
language "C++"
files { "camcap.cpp", "camcap.hpp", "stb_image_write.h"}
included... | mit |
kaen/Zero-K | LuaUI/Widgets/minimap_events.lua | 11 | 11989 | -- $Id: minimap_events.lua 3171 2008-11-06 09:06:29Z det $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: minimap_events.lua
-- brief: display ally events and battle damages in the minim... | gpl-2.0 |
forward619/luci | applications/luci-app-radvd/luasrc/model/cbi/radvd/prefix.lua | 61 | 3557 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local sid = arg[1]
local utl = require "luci.util"
m = Map("radvd", translatef("Radvd - Prefix"),
translate("Radvd is a router advertisement daemon for IPv6. " ..
"It listens to router solicitations and send... | apache-2.0 |
kaen/Zero-K | LuaUI/Widgets/gui_spotter.lua | 6 | 8586 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: gui_spotter.lua
-- brief: Draws smoothed polygons under units
-- author: metuslucidium (Orig. Dave Rodgers (orig. TeamPlatter edited by T... | gpl-2.0 |
rmackay9/rmackay9-ardupilot | Tools/CHDK-Scripts/Cannon SX260/3DR_EAI_SX260.lua | 96 | 29666 |
--[[
KAP UAV Exposure Control Script v3.1
-- Released under GPL by waterwingz and wayback/peabody
http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script
3DR EAI 1.0 is a fork of KAP 3.1 with settings specific to Canon cameras triggered off the Pixhawk autopilot.
Changelog:
-Modified Tv, Av, and... | gpl-3.0 |
geanux/darkstar | scripts/globals/items/coffeecake_muffin_+1.lua | 35 | 1377 | -----------------------------------------
-- ID: 5656
-- Item: coffeecake_muffin_+1
-- Food Effect: 1Hr, All Races
-----------------------------------------
-- Mind 2
-- Strength -1
-- MP % 10 (cap 90)
-----------------------------------------
require("scripts/globals/status");
---------------------------... | gpl-3.0 |
h0tw1r3/mame | 3rdparty/genie/tests/base/test_action.lua | 59 | 1366 | --
-- tests/base/test_action.lua
-- Automated test suite for the action list.
-- Copyright (c) 2009 Jason Perkins and the Premake project
--
T.action = { }
--
-- Setup/teardown
--
local fake = {
trigger = "fake",
description = "Fake action used for testing",
}
function T.action.setup()
premake.action.li... | gpl-2.0 |
h0tw1r3/mame | 3rdparty/genie/tests/actions/vstudio/sln2005/dependencies.lua | 47 | 1320 | --
-- tests/actions/vstudio/sln2005/dependencies.lua
-- Validate generation of Visual Studio 2005+ solution project dependencies.
-- Copyright (c) 2009-2011 Jason Perkins and the Premake project
--
T.vstudio_sln2005_dependencies = { }
local suite = T.vstudio_sln2005_dependencies
local sln2005 = premake.vstudio.sln2... | gpl-2.0 |
geanux/darkstar | scripts/zones/Windurst_Woods/npcs/Bin_Stejihna.lua | 36 | 1886 | -----------------------------------
-- Area: Windurst_Woods
-- NPC: Bin Stejihna
-- Only sells when Windurst controlls Zulkheim Region
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Wi... | gpl-3.0 |
h0tw1r3/mame | 3rdparty/genie/tests/test_targets.lua | 16 | 7453 | --
-- tests/test_targets.lua
-- Automated test suite for premake.gettarget()
-- Copyright (c) 2008, 2009 Jason Perkins and the Premake project
--
T.targets = { }
local cfg
function T.targets.setup()
cfg = { }
cfg.basedir = "."
cfg.location = "."
cfg.targetdir = "../bin"
cfg.language = "C++"
cfg... | gpl-2.0 |
geanux/darkstar | scripts/globals/spells/bluemagic/sound_blast.lua | 18 | 1409 | -----------------------------------------
-- Spell: Sound Blast
-- Lowers Intelligence of enemies within range.
-- Spell cost: 25 MP
-- Monster Type: Birds
-- Spell Type: Magical (Fire)
-- Blue Magic Points: 1
-- Stat Bonus: None
-- Level: 32
-- Casting Time: 4 seconds
-- Recast Time: 30 seconds
-- Magic Bur... | gpl-3.0 |
tonylauCN/tutorials | lua/debugger/lualibs/luadist.lua | 4 | 28961 | #!/usr/bin/env lua
-- Command line interface to LuaDist-git.
local dist = require "dist"
local utils = require "dist.utils"
local depends = require "dist.depends"
local package = require "dist.package"
local mf = require "dist.manifest"
local cfg = require "dist.config"
local sys = require "dist.sys"
-- CLI commands... | apache-2.0 |
tonylauCN/tutorials | lua/debugger/lualibs/lexers/java.lua | 5 | 2426 | -- Copyright 2006-2016 Mitchell mitchell.att.foicica.com. See LICENSE.
-- Java LPeg lexer.
-- Modified by Brian Schott.
local l = require('lexer')
local token, word_match = l.token, l.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local M = {_NAME = 'java'}
-- Whitespace.
local ws = token(l.WHITESPACE, l.space^1)... | apache-2.0 |
geanux/darkstar | scripts/zones/Bastok_Markets/npcs/Loulia.lua | 37 | 1076 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Loulia
-- Type: Room Renters
-- @zone: 235
-- @pos -176.212 -9 -25.049
--
-- Auto-Script: Requires Verification. Validated standard dialog - thrydwolf 12/8/2011
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/Tex... | gpl-3.0 |
kaen/Zero-K | LuaUI/Widgets/unit_blobshadow.lua | 8 | 6008 | -- $Id: unit_blobshadow.lua 3171 2008-11-06 09:06:29Z det $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- author: jK
--
-- Copyright (C) 2007,2009.
-- Licensed under the terms of the GNU GPL, v2... | gpl-2.0 |
geanux/darkstar | scripts/globals/weaponskills/double_thrust.lua | 30 | 1320 | -----------------------------------
-- Double Thrust
-- Polearm weapon skill
-- Skill Level: 5
-- Delivers a two-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Light Gorget.
-- Aligned with the Light Belt.
-- Element: None
-- Modifiers: STR:30%
-- 100%TP 200%TP 3... | gpl-3.0 |
kaen/Zero-K | effects/heatray.lua | 8 | 3219 | -- heatray_ceg
-- heatray_hit
return {
["heatray_ceg"] = {
light = {
air = true,
class = [[CSimpleGroundFlash]],
count = 1,
ground = true,
water = true,
properties = {
colormap = [[1 0.5 0 0.03... | gpl-2.0 |
marek-g/vlc-signio | share/lua/playlist/liveleak.lua | 91 | 1883 | --[[
$Id$
Copyright © 2012 VideoLAN and AUTHORS
Authors: Ludovic Fauvet <etix@videolan.org>
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 optio... | gpl-2.0 |
ExcelF/project-navel | libs/loveframes/objects/numberbox.lua | 14 | 12852 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- get the current require path
local path = string.sub(..., 1, string.len(...) - string.len(".objects.numberbox"))
local lo... | mit |
kling-igor/particle-designer | loveframes/objects/numberbox.lua | 14 | 12852 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- get the current require path
local path = string.sub(..., 1, string.len(...) - string.len(".objects.numberbox"))
local lo... | mit |
geanux/darkstar | scripts/zones/RoMaeve/npcs/Qu_Hau_Spring.lua | 15 | 2629 | -----------------------------------
-- Qu_Hau_Spring
-- Area: Ro'Maeve
-----------------------------------
package.loaded["scripts/zones/RoMaeve/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/RoMaeve/TextIDs");
require("scripts/globals/quests");
require("scripts/globals/keyitems")... | gpl-3.0 |
geanux/darkstar | scripts/zones/Beadeaux/npcs/The_Mute.lua | 19 | 1258 | -----------------------------------
-- Area: Beadeaux
-- NPC: ???
-- @pos -166.230 -1 -73.685 147
-----------------------------------
package.loaded["scripts/zones/Beadeaux/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Beadeaux/TextIDs");
require("scripts/globals/quests");
require("scrip... | gpl-3.0 |
geanux/darkstar | scripts/zones/Walk_of_Echoes/Zone.lua | 36 | 1119 | -----------------------------------
--
-- Zone: Walk_of_Echoes
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Walk_of_Echoes/TextIDs"] = nil;
require("scripts/zones/Walk_of_Echoes/TextIDs");
-----------------------------------
-- onInitialize
-... | gpl-3.0 |
zenofx/dotfiles | core/nvim/.config/nvim/init.lua | 1 | 28629 | -- vi:set ft=lua ts=4 sw=4 noet ai fdm=marker:
-- {{{ Packer plugin manager
local install_path = vim.fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
vim.fn.system({'git', 'clone', 'https://github.com/wbthomason/packer.nvim', install_path})
vim.api.nvim_c... | mit |
Schwertspize/cuberite | Server/Plugins/APIDump/Classes/WebAdmin.lua | 28 | 2144 | return
{
cWebAdmin =
{
Desc = "",
Functions =
{
GetHTMLEscapedString = { Params = "string", Return = "string", Notes = "(STATIC) Gets the HTML-escaped representation of a requested string. This is useful for user input and game data that is not guaranteed to be escaped already." },
},
}, -- cWebAdmin
... | apache-2.0 |
geanux/darkstar | scripts/zones/Korroloka_Tunnel/npcs/qm1.lua | 16 | 1146 | -----------------------------------
-- Area: Korroloka Tunnel
-- NPC: ??? (qm1) - Morion Worm spawn
-- @pos 254.652 -6.039 20.878 173
-----------------------------------
package.loaded["scripts/zones/Korroloka_Tunnel/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Korroloka_Tunnel/... | gpl-3.0 |
geanux/darkstar | scripts/zones/Bastok_Mines/npcs/Abd-al-Raziq.lua | 42 | 2636 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Abd-al-Raziq
-- Type: Alchemy Guild Master
-- @pos 126.768 1.017 -0.234 234
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("... | gpl-3.0 |
geanux/darkstar | scripts/globals/items/slice_of_hare_meat.lua | 18 | 1321 | -----------------------------------------
-- ID: 4358
-- Hare Meat
-- 5 Minutes, food effect, Galka Only
-----------------------------------------
-- Strength +1
-- Intelligence -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnI... | gpl-3.0 |
XanDDemoX/ESOAutoRecharge | Recharge/libs/LibStub/LibStub.lua | 8 | 1567 | -- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info
-- LibStub is hereby placed in the Public Domain Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke
-- LibStub developed for World of Warcraft by above members of the WowAce commu... | unlicense |
sami2448/a | plugins/rss.lua | 700 | 5434 | local function get_base_redis(id, option, extra)
local ex = ''
if option ~= nil then
ex = ex .. ':' .. option
if extra ~= nil then
ex = ex .. ':' .. extra
end
end
return 'rss:' .. id .. ex
end
local function prot_url(url)
local url, h = string.gsub(url, "http://", "")
local... | gpl-2.0 |
LiangMa/skynet | service/cslave.lua | 50 | 6448 | local skynet = require "skynet"
local socket = require "socket"
require "skynet.manager" -- import skynet.launch, ...
local table = table
local slaves = {}
local connect_queue = {}
local globalname = {}
local queryname = {}
local harbor = {}
local harbor_service
local monitor = {}
local monitor_master_set = {}
local ... | mit |
kaen/Zero-K | LuaUI/Widgets/chili/Skins/DarkHive/skin.lua | 25 | 4262 | --//=============================================================================
--// Skin
local skin = {
info = {
name = "DarkHive",
version = "0.1",
author = "luckywaldo7",
}
}
--//=============================================================================
--//
skin.general = {
--font ... | gpl-2.0 |
geanux/darkstar | scripts/zones/Bearclaw_Pinnacle/Zone.lua | 28 | 1630 | -----------------------------------
--
-- Zone: Bearclaw_Pinnacle (6)
--
-----------------------------------
package.loaded["scripts/zones/Bearclaw_Pinnacle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Bearclaw_Pinnacle/TextIDs");
--------... | gpl-3.0 |
kaen/Zero-K | effects/gundam_kampferimpact.lua | 25 | 7159 | -- kampferimpact
return {
["kampferimpact"] = {
dirta = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
properties = {
airdrag = 0.7,
alwaysvisible = true,
colormap = [[0.1 0.1 0.1 1.0 0... | gpl-2.0 |
lipp/nodish | src/nodish/stream.lua | 1 | 4744 | local ev = require'ev'
local S = require'syscall'
local loop = ev.Loop.default
local EAGAIN = S.c.E.AGAIN
local nextTick = require'nodish.nexttick'.nextTick
local buffer = require'nodish.buffer'
local readable = function(emitter)
local self = emitter
self.bytesRead = 0
assert(self.watchers)
local encoding
... | mit |
tonylauCN/tutorials | openresty/debugger/lualibs/lexers/inform.lua | 7 | 4229 | -- Inform LPeg lexer for Scintillua.
-- JMS 2010-04-25.
local l = require('lexer')
local token, word_match = l.token, l.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local M = {_NAME = 'inform'}
-- Whitespace.
local ws = token(l.WHITESPACE, l.space^1)
-- Comments.
local comment = token(l.COMMENT, '!' * l.nonnew... | apache-2.0 |
geanux/darkstar | scripts/globals/abilities/fighters_roll.lua | 8 | 2245 | -----------------------------------
-- Ability: Fighter's Roll
-- Improves "Double Attack" rate for party members within area of effect
-- Optimal Job: Warrior
-- Lucky Number: 5
-- Unlucky Number: 9
-- Level: 49
--
-- Die Roll |No WAR |With WAR
-- -------- -------- -----------
-- 1 |2% ... | gpl-3.0 |
Greentwip/CodyCobain | src/app/objects/characters/player/browners/helmet_browner.lua | 1 | 1612 | -- Copyright 2014-2015 Greentwip. All Rights Reserved.
local helmet_browner = import("app.objects.characters.player.browners.base.browner").create("helmet_browner")
function helmet_browner:bake()
self.base_name_ = "helmet"
local actions = {}
actions[#actions + 1] = {name = "stand", animation = {name... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.