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
varpeti/Yasumihar
player.lua
1
3150
local player = {} player.x = 0 player.y = 0 player.isandroid = love.system.getOS()=="Android" player.tue = {} player.kijelol = -1 function player:update(dt) player.speed = 1000/ (kamera:gScale())^(1/2) if love.keyboard.isDown("d") or (love.mouse.getX()>=kepernyo.Asz*0.95 and not player.isandroid) then player.x...
bsd-2-clause
purquapas/wb
cbsd.lua
3
2614
product="CBSD" myversion="10.2.0" if not workdir then print ( "no workdir" ) os.exit(1) end distdir="/usr/local/cbsd" subr= workdir .. "/nc.lua" nodenamefile= workdir .. "/nodename" settingstui= workdir .. "/settings-tui.subr" dialog= workdir .. "/dialog.subr" tools= workdir .. "/tools.subr" mdtools= workdir .. "/m...
bsd-2-clause
HeavensSword/darkstar
scripts/zones/Chamber_of_Oracles/npcs/Pedestal_of_Water.lua
5
2081
----------------------------------- -- Area: Chamber of Oracles -- NPC: Pedestal of Water -- Involved in Zilart Mission 7 -- !pos 199 -2 36 168 ------------------------------------- package.loaded["scripts/zones/Chamber_of_Oracles/TextIDs"] = nil; ------------------------------------- require("scripts/globals/titles")...
gpl-3.0
269724033/lor
resty/template.lua
2
12336
local setmetatable = setmetatable local loadstring = loadstring local loadchunk local tostring = tostring local setfenv = setfenv local require = require local capture local concat = table.concat local assert = assert local prefix local write = io.write local pcall = pcall local phase local open = io.open local load = ...
mit
qwook/dpsht
entities/tilemap.lua
1
4099
local BaseEntity = reload("entities.baseentity") local Entity = class("TileMap", BaseEntity) reload("entities.tilemap.edgefinder") console:addConVar("showshapes", 0, "number") function Entity:initialize(...) self.super:initialize(...) self.children = {} -- list of fixtures self.loops = {} self.til...
mit
clofresh/nadira-story
src/world.lua
1
5751
local ATL = require("lib/Advanced-Tiled-Loader").Loader local Camera = require 'lib/hump/camera' local HC = require 'lib/HardonCollider' local sprite = require('src/sprite') ATL.path = "maps/" local World = Class{function(self, map) self.cam = Camera.new(980, 1260, 1, 0) self.collider = HC(100, function(dt, shapeA...
bsd-3-clause
xtao/ntopng
scripts/lua/get_process_info.lua
1
9698
-- -- (C) 2014 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" require "flow_utils" sendHTTPHeader('text/html; charset=iso-8859-1') ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc") page = _GET["page"] if(page == nil...
gpl-3.0
netX-project/netBIOS
bios.lua
1
1926
--[[ * netBIOS is part of netX Project * Copyright (C) 2014 Enbyted (enbyted@enbyted.org) & Xenopathic (xenopathic@enbyted.org) * This file is part of netBIOS. * netBIOS 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 Soft...
gpl-2.0
qwook/dpsht
statemanager.lua
1
1878
local StateManager = class("StateManager") StateManager.states = { menu = require("states.menustate"), game = require("states.gamestate"), pause = require("states.pausestate"), } function StateManager:initialize() self.stateStack = {} end function StateManager:getState() return self.states[#self....
mit
forivall-mirrors/orxonox-game-code
data/gui/scripts/MouseControlsMenu.lua
1
3854
-- MouseControlsMenu.lua local P = createMenuSheet("MouseControlsMenu") function P.onLoad() block = false mousenormalscrollbarwindow = tolua.cast(winMgr:getWindow("orxonox/MouseNormalScrollbar"),"CEGUI::Scrollbar") mousederivescrollbarwindow = tolua.cast(winMgr:getWindow("orxonox/MouseDeriveScrollbar"),"C...
gpl-2.0
shahifaqeer/my-luci-bismark-0.11
applications/luci-commands/luasrc/model/cbi/commands.lua
77
1141
--[[ LuCI - Lua Configuration Interface Copyright 2012 Jo-Philipp Wich <jow@openwrt.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]]-- local m,...
apache-2.0
ignacio/LuaNode
test/simple/disabled/test-fs-read.lua
2
1272
module(..., lunit.testcase, package.seeall) local common = dofile("common.lua") local path = require "luanode.path" local fs = require "luanode.fs" function test() local expected = 'xyz\n' local readCalled = 0 local filepath = path.join(common.fixturesDir, 'x.txt') fd, err = fs.openSync(filepath, 'r') fs.read(fd, ...
mit
HeavensSword/darkstar
scripts/zones/East_Ronfaure_[S]/Zone.lua
5
1232
----------------------------------- -- -- Zone: East_Ronfaure_[S] (81) -- ----------------------------------- package.loaded["scripts/zones/East_Ronfaure_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/East_Ronfaure_[S]/TextIDs"); require("scripts/glo...
gpl-3.0
qwook/dpsht
assets/maps/level3.lua
2
435719
return { version = "1.1", luaversion = "5.1", orientation = "orthogonal", width = 200, height = 100, tilewidth = 32, tileheight = 32, properties = {}, tilesets = { { name = "tilemap2", firstgid = 1, tilewidth = 32, tileheight = 32, spacing = 0, margin = 0, ...
mit
marcoag/awesome-config
themes/foo/theme.lua
1
2495
-- foo, high contrast awesome3 theme, by rob --{{{ Main local awful = require("awful") awful.util = require("awful.util") theme = {} home = os.getenv("HOME") config = awful.util.getdir("config") shared = "/usr/share/awesome" if not awful.util.file_readable(shared .. "/icons/awesome16.png") the...
gpl-3.0
dani-sj/komil
plugins/invite.lua
1111
1195
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) then -- Ignore bans send_large_msg(chat, 'User is banned.') elseif is_gbanned(result.id) then -- I...
gpl-2.0
abbasgh12345/abbas1234
plugins/invite.lua
1111
1195
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) then -- Ignore bans send_large_msg(chat, 'User is banned.') elseif is_gbanned(result.id) then -- I...
gpl-2.0
pd2-linux/tina
feeds/luci/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua
83
4608
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- req...
gpl-2.0
qwook/dpsht
libs/loveframes/objects/tabs.lua
1
19402
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ -- tabs object local newobject = loveframes.NewObject("tabs", "loveframes_object_tabs", true) --[[-------------------------...
mit
pdxmeshnet/openwrt-packages
net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/policy.lua
108
3104
-- ------ extra functions ------ -- function policyCheck() -- check to see if any policy names exceed the maximum of 15 characters uci.cursor():foreach("mwan3", "policy", function (section) if string.len(section[".name"]) > 15 then nameTooLong = 1 err_name_list = err_name_list .. section[".name"] .. " " ...
gpl-2.0
pd2-linux/tina
feeds/packages/net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/policy.lua
108
3104
-- ------ extra functions ------ -- function policyCheck() -- check to see if any policy names exceed the maximum of 15 characters uci.cursor():foreach("mwan3", "policy", function (section) if string.len(section[".name"]) > 15 then nameTooLong = 1 err_name_list = err_name_list .. section[".name"] .. " " ...
gpl-2.0
269724033/lor
test/not_found.test.lua
1
3584
expose("expose modules", function() package.path = '../lib/?.lua;' .. '../?.lua;'.. './lib/?.lua;' .. package.path _G.lor = require("lor.index") _G.request = require("test.mock_request") _G.response = require("test.mock_response") end) describe("not found test", function() setup(function() end...
mit
icrazyboy/-
plugins/remind.lua
362
1875
local filename='data/remind.lua' local cronned = load_from_file(filename) local function save_cron(msg, text,date) local origin = get_receiver(msg) if not cronned[date] then cronned[date] = {} end local arr = { origin, text } ; table.insert(cronned[date], arr) serialize_to_file(cronned, filename) re...
gpl-2.0
HeavensSword/darkstar
scripts/zones/Port_San_dOria/npcs/Vendavoq.lua
5
1614
----------------------------------- -- Area: Port San d'Oria -- NPC: Vendavoq -- Only sells when San d'Oria controls Movalpolos -- Working 100% ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Port_San_dOria/Tex...
gpl-3.0
ignacio/LuaNode
lib/luanode/event_emitter.lua
2
3960
local assert, type, error, ipairs, print, pcall = assert, type, error, ipairs, print, pcall local table, setmetatable = table, setmetatable local select = select local Class = require "luanode.class" -- This constructs instances of "Event Emitters" local EventEmitter = Class{ __init = function(class, t) ...
mit
pd2-linux/tina
feeds/luci/build/setup.lua
99
1114
local SYSROOT = os.getenv("LUCI_SYSROOT") -- override uci access local uci_core = require "uci" local uci_model = require "luci.model.uci" uci_model.cursor = function(config, save) return uci_core.cursor(config or SYSROOT .. "/etc/config", save or SYSROOT .. "/tmp/.uci") end uci_model.cursor_state = function() re...
gpl-2.0
natuan241/Algorithm-Implementations
Catalan_Numbers/Lua/Yonaba/catalan_test.lua
26
2016
-- Tests for catalan.lua local catalan = require 'catalan' 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 = pass + 1 end local...
mit
vmercierfr/kong
spec/unit/tools/database_cache_spec.lua
14
1043
local cache = require "kong.tools.database_cache" describe("Database cache", function() it("should return a valid API cache key", function() assert.are.equal("apis/httpbin.org", cache.api_key("httpbin.org")) end) it("should return a valid PLUGIN cache key", function() assert.are.equal("plugins_configur...
mit
HeavensSword/darkstar
scripts/zones/Port_Bastok/npcs/Bodaway.lua
4
1133
----------------------------------- -- Area: Port Bastok -- NPC: Bodaway -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Port_Bastok/TextIDs"); ----------------------------------- function on...
gpl-3.0
HeavensSword/darkstar
scripts/globals/items/chocolate_crepe.lua
3
1315
----------------------------------------- -- ID: 5775 -- Item: Chocolate Crepe -- Food Effect: 30 Min, All Races ----------------------------------------- -- HP +5% (cap 15) -- MP Healing 2 -- Magic Accuracy +20% (cap 35) -- Magic Defense +1 ----------------------------------------- require("scripts/globals/status"); -...
gpl-3.0
GPUOpen-LibrariesAndSDKs/MLAA11
mlaa11/premake/premake5.lua
1
2192
_AMD_SAMPLE_NAME = "MLAA11" dofile ("../../premake/amd_premake_util.lua") workspace (_AMD_SAMPLE_NAME) configurations { "Debug", "Release" } platforms { "x64" } location "../build" filename (_AMD_SAMPLE_NAME .. _AMD_VS_SUFFIX) startproject (_AMD_SAMPLE_NAME) filter "platforms:x64" system "Win...
mit
kiarash14/TNBumper
bot/bot.lua
1
6651
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") local f = assert(io.popen('/usr/bin/git describe --tags', 'r')) VERSION = assert(f:read('*a')) f:close() -- This function is ...
gpl-2.0
HeavensSword/darkstar
scripts/globals/weaponskills/penta_thrust.lua
26
1300
----------------------------------- -- Penta Thrust -- Polearm weapon skill -- Skill Level: 150 -- Delivers a five-hit attack. params.accuracy varies with TP. -- 0.875 Attack penalty -- Will stack with Sneak Attack. -- Aligned with the Shadow Gorget. -- Aligned with the Shadow Belt. -- Element: None -- Modifiers: STR:2...
gpl-3.0
shingenko/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
openwayne/chaos_theory
mods/xpanes/init.lua
14
4717
local function is_pane(pos) return minetest.get_item_group(minetest.get_node(pos).name, "pane") > 0 end local function connects_dir(pos, name, dir) local aside = vector.add(pos, minetest.facedir_to_dir(dir)) if is_pane(aside) then return true end local connects_to = minetest.registered_nodes[name].connects_to...
lgpl-2.1
Illarion-eV/Illarion-Content
alchemy/base/analysis.lua
1
17562
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
shingenko/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
jyggen/lua-parser
tests/Fixtures/eb/94/72/8619623609e3cb53b7d4a6408f62be66b90448007e051e9b19951a1f09.lua
1
32418
wlScans = { ["heirlooms"] = "122349:1,122352:1,122366:0,122354:1,122367:1,122385:1,122386:1,122389:0,122351:0,122369:0,122365:0,122363:0,122353:1,122368:0,105690:0,122350:0,122364:0,122391:1,105680:0,122392:1,122387:1,122263:1,122264:1,122388:1,122381:1,122245:1,122251:1,122355:1,127010:0,127012:1,127011:0,122373:0...
mit
shingenko/darkstar
scripts/zones/Windurst_Woods/npcs/Nikkoko.lua
53
1835
----------------------------------- -- Area: Windurst Woods -- NPC: Nikkoko -- Type: Clothcraft Image Support -- @pos -32.810 -3.25 -113.680 241 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); requ...
gpl-3.0
QuetzalQatl/RustPluginManual
SnapshotAllPlugins/whitelist.lua
1
6029
PLUGIN.Title = "Whitelist" PLUGIN.Version = V(0, 2, 4) PLUGIN.Description = "Restricts access to your server, automatically rejecting users whose SteamID is not whitelisted." PLUGIN.Author = "Wulfspider" PLUGIN.Url = "http://forum.rustoxide.com/plugins/654/" PLUGIN.ResourceId = 654 PLUGIN.HasConfig = true local debug ...
gpl-2.0
ArcherSys/ArcherSys
Lua/lua/loop/collection/OrderedSet.lua
13
4735
-------------------------------------------------------------------------------- ---------------------- ## ##### ##### ###### ----------------------- ---------------------- ## ## ## ## ## ## ## ----------------------- ---------------------- ## ## ## ## ## ###### --------------------...
mit
ttuna/msot-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
soonhokong/travis_test
tests/lua/sect3.lua
1
1120
local env = environment() env = env:begin_section_scope() env = env:add_global_level("l") local l = mk_global_univ("l") env = env:add(check(env, mk_var_decl("A", mk_sort(l))), binder_info(true)) local A = Const("A") env = add_decl(env, mk_var_decl("R", mk_arrow(A, A, Bool))) local R = Const("R") local a = Local("a", A)...
apache-2.0
shingenko/darkstar
scripts/zones/Mount_Zhayolm/npcs/qm1.lua
16
1173
----------------------------------- -- Area: Mount Zhayolm -- NPC: ??? (Spawn Brass Borer(ZNM T1)) -- @pos 399 -27 120 61 ----------------------------------- package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Mount_Zhayolm/TextIDs"); --------------...
gpl-3.0
shingenko/darkstar
scripts/globals/items/serving_of_beaugreen_sautee.lua
35
1419
----------------------------------------- -- ID: 4572 -- Item: serving_of_beaugreen_sautee -- Food Effect: 180Min, All Races ----------------------------------------- -- Agility 1 -- Vitality -1 -- Ranged ATT % 7 -- Ranged ATT Cap 15 ----------------------------------------- require("scripts/globals/status"...
gpl-3.0
lixiantai/barrier_breaker
feeds/luci/applications/luci-statistics/luasrc/model/cbi/luci_statistics/rrdtool.lua
80
3431
--[[ Luci configuration model for statistics - collectd rrdtool plugin configuration (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Licen...
gpl-2.0
apaszke/nn
test/benchmarks/IndexLinear.lua
3
11097
local cudaAvailable, _ = pcall(require, 'cunn') local function benchmark(opt) local isize = opt.inputSize or 100000 local osize = opt.outputSize or 1 local weightDecay = opt.weightDecay or 0 local nnzMin = opt.featuresMinNumber or 1 local nnzMax = opt.featuresMaxNumber or 10000 local idxMin = 1 lo...
bsd-3-clause
fingon/hnet-core
pm_radvd.lua
1
3909
#!/usr/bin/env lua -- -*-lua-*- -- -- $Id: pm_radvd.lua $ -- -- Author: Markus Stenberg <markus stenberg@iki.fi> -- -- Copyright (c) 2012 cisco Systems, Inc. -- -- Created: Thu Nov 8 06:51:43 2012 mstenber -- Last modified: Tue Nov 12 11:02:43 2013 mstenber -- Edit time: 45 min -- require 'pm_handler' modu...
gpl-2.0
wagonrepairer/Zero-K
units/amphraider2.lua
2
7100
unitDef = { unitname = [[amphraider2]], name = [[Archer]], description = [[Amphibious Raider/Riot Bot]], acceleration = 0.2, activateWhenBuilt = true, brakeRate = 0.4, buildCostEnergy = 200, buildCostMetal = 200, bui...
gpl-2.0
shingenko/darkstar
scripts/globals/abilities/thunder_shot.lua
22
2801
----------------------------------- -- Ability: Thunder Shot -- Consumes a Thunder Card to enhance lightning-based debuffs. Deals lightning-based magic damage -- Shock Effect: Enhanced DoT and MND- ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); requi...
gpl-3.0
LuaAV/LuaAV4
examples/alife/agent_stigmergy.lua
1
4491
local field2D = require "field2D" local draw2D = require "draw2D" local vec2 = require "vec2" win = Window("stigmergy", 600, 600) --math.randomseed(os.time()) local dimx = 256 local dimy = dimx local food = field2D(dimx, dimy) local food_phero = field2D(dimx, dimy) local nest_phero = field2D(dimx, dimy) local phero_d...
mit
shingenko/darkstar
scripts/zones/Beaucedine_Glacier/npcs/Torino-Samarino.lua
16
2897
----------------------------------- -- Area: Beaucedine Glacier -- NPC: Torino-Samarino -- Type: Quest NPC -- Involved in Quests: Curses, Foiled A-Golem!?, Tuning Out -- @pos 105 -20 140 111 ----------------------------------- package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil; require("scripts/glob...
gpl-3.0
openwayne/chaos_theory
mods/pipeworks/trashcan.lua
4
1657
minetest.register_node("pipeworks:trashcan", { description = "Trash Can", drawtype = "normal", tiles = { "pipeworks_trashcan_bottom.png", "pipeworks_trashcan_bottom.png", "pipeworks_trashcan_side.png", "pipeworks_trashcan_side.png", "pipeworks_trashcan_side.png", "pipeworks_trashcan_side.png", }, gr...
lgpl-2.1
diz-vara/nn
Bottle.lua
6
2537
local Bottle, parent = torch.class("nn.Bottle", "nn.Container") local unpack = unpack or table.unpack function Bottle:__init(module, nInputDim, nOutputDim) parent.__init(self) self.nInputDim = nInputDim or 2 self.nOutputDim = nOutputDim or self.nInputDim self.dimDelta = self.nInputDim - self.nOutputDim ...
bsd-3-clause
yogome/HeroesSaludables
libs/helpers/sound.lua
1
4218
---------------------------------------------- Sound local path = ... local folder = path:match("(.-)[^%.]+$") local logger = require( folder.."logger" ) local extrafile = require( folder.."extrafile" ) local extrastring = require( folder.."extrastring" ) local al = require( "al" ) local json = require( "json" ) loca...
agpl-3.0
wagonrepairer/Zero-K
LuaRules/Gadgets/unit_commander_upgrade.lua
2
20343
function gadget:GetInfo() return { name = "Commander Upgrade", desc = "", author = "Google Frog", date = "30 December 2015", license = "GNU GPL, v2 or later", layer = 1, enabled = true -- loaded by default? } end ----------------------------------------------...
gpl-2.0
xcyan/nips16_PTN
utils/trainset_ptn.lua
1
1991
-- code adapted from https://github.com/soumith/dcgan.torch.git require 'image' require 'mattorch' dir = require 'pl.dir' dataLoader = {} local categories = {} local files = {} local size = 0 for cat in io.lines('exp_' .. opt.exp_list .. '.txt') do print(cat) categories[#categories + 1] = cat local dirpath = o...
mit
newbots/botfire
plugins/time.lua
94
3004
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
shingenko/darkstar
scripts/zones/Castle_Oztroja/mobs/Yagudo_Avatar.lua
29
1393
----------------------------------- -- Area: Castle Oztroja (151) -- Mob: Yagudo_Avatar (Tzee Xicu the Manifest PH) ----------------------------------- require("scripts/zones/Castle_Oztroja/TextIDs"); ----------------------------------- -- onMobSpawn Action ----------------------------------- function onMobSpawn(...
gpl-3.0
wagonrepairer/Zero-K
units/reef.lua
3
8847
unitDef = { unitname = [[reef]], name = [[Reef]], description = [[Aircraft Carrier (Bombardment) & Anti-Nuke]], acceleration = 0.0354, activateWhenBuilt = true, brakeRate = 0.0466, buildCostEnergy = 3500, buildCostMetal ...
gpl-2.0
jyggen/lua-parser
tests/Fixtures/f2/42/55/538e7a5cd1211d550150c56c5288e999ad2915c3599064fc845bb9e7c3.lua
1
1100
GHI_ContainerData = { } GHI_ItemData = { } GHI_CooldownData = { } GHI_MiscData = { ["tooltip_version"] = true, ["stick_player_buffs"] = true, ["BackpackPos"] = { 960, -- [1] 539.999938964844, -- [2] }, ["UI_Themes"] = { ["Current"] = { ["detailsTextColor"] = { 1, -- [1] 1, -- [2] 1, -- [3] ...
mit
obsy/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
AleksCore/Mr.Green-MTA-Resources
resources/[gameplay]/snow/snow.lua
3
14322
addCommandHandler('snow', function() toggleSnow() end ) bindKey("f12","down",function() executeCommandHandler("snow") end) local snowflakes = {} local snowing = false local box_width, box_depth, box_height, box_width_doubled, box_depth_doubled = 4,4,4,8,8 local position = {0,0,0} local flake_removal = nil local ...
mit
psychon/awesome
tests/examples/text/awful/keygrabber/root_keybindings.lua
2
2341
--DOC_GEN_OUTPUT --DOC_HIDE local awful = { keygrabber = require("awful.keygrabber") } --DOC_HIDE local keybinding_works = {} --DOC_HIDE local g = --DOC_HIDE awful.keygrabber { mask_modkeys = true, root_keybindings = { {{"Mod4"}, "i", function(self) print("Is now active!", self) ...
gpl-2.0
obsy/luci
build/luadoc/luadoc/util.lua
46
5858
------------------------------------------------------------------------------- -- General utilities. -- @release $Id: util.lua,v 1.16 2008/02/17 06:42:51 jasonsantos Exp $ ------------------------------------------------------------------------------- local posix = require "nixio.fs" local type, table, string, io, as...
apache-2.0
psychon/awesome
lib/awful/widget/tasklist.lua
1
28209
--------------------------------------------------------------------------- --- Tasklist widget module for awful. -- -- <a name="status_icons"></a> -- **Status icons:** -- -- By default, the tasklist prepends some symbols in front of the client name. -- This is used to notify that the client has some specific propertie...
gpl-2.0
Illarion-eV/Illarion-Content
npc/base/consequence/consequence.lua
1
1163
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
morteza99del/MORI_TABCHI
serpent.lua
656
7877
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
gpl-3.0
AleksCore/Mr.Green-MTA-Resources
resources/[race]/race/modes/destructionderby.lua
3
7391
DestructionDerby = setmetatable({}, RaceMode) DestructionDerby.__index = DestructionDerby DestructionDerby:register('Destruction derby') local ntsMode = true local _carsFirstSpawn = { 602, 545, 496, 517, 401, 410, 518, 600, 527, 436, 589, 580, 419, 439, 533, 549, 526, 491, 474, 445, 467, 604, 426, 507, 547, 585, 40...
mit
fzimmermann89/texlive.js
texlive/texmf-dist/tex/luatex/lualibs/lualibs-unicode.lua
2
41284
if not modules then modules = { } end modules ['l-unicode'] = { version = 1.001, comment = "companion to luat-lib.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } -- floor(b/256) => rs...
gpl-2.0
shingenko/darkstar
scripts/zones/Northern_San_dOria/npcs/Fittesegat.lua
38
1029
----------------------------------- -- Area: Northern San d'Oria -- NPC: Fittesegat -- Type: Standard Dialogue NPC -- @zone: 231 -- @pos 144.250 0.000 138.203 -- ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; require("scripts/zones/Northern_San_dOria/TextIDs"...
gpl-3.0
diz-vara/nn
GPU.lua
5
8404
------------------------------------------------------------------------ --[[ GPU ]]-- -- Decorates a module such that its parameters are -- hosted on a specified GPU device. -- The operations are also executed on that device. -- Arguments input and gradOutput are converted to the specified device -- before being fed ...
bsd-3-clause
openwayne/chaos_theory
mods/homedecor/doors_and_gates.lua
3
20816
-- Node definitions for Homedecor doors local S = homedecor_i18n.gettext local function N_(x) return x end -- doors local function isSolid(pos, adjust) local adj = {x = adjust[1], y = adjust[2], z = adjust[3]} local node = minetest.get_node(vector.add(pos,adj)) if node then local idef = minetest...
lgpl-2.1
shingenko/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
obsy/luci
applications/luci-app-asterisk/luasrc/model/cbi/asterisk/phone_sip.lua
68
3603
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local ast = require("luci.asterisk") local function find_outgoing_contexts(uci) local c = { } local h = { } uci:foreach("asterisk", "dialplan", function(s) if not h[s['.name']] then c[#c+1] = { s['...
apache-2.0
kveratis/GameCode4
Source/GCC4/3rdParty/luaplus51-all/Samples/TestScript/ScriptVectorDump.lua
3
1186
VectorMetaTable = { FormattedWrite = function(file, value, alphabetical, indentLevel, maxIndentLevel, writeAll, writeTablePointers) LuaFilePrint(file, "{ ") for index = 1, 1000000 do local obj = value[index] if not obj then break end if index ~= 1 then LuaFilePrint(file, ", ") ...
lgpl-3.0
changjiashuai/vlc
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
shingenko/darkstar
scripts/globals/items/timbre_timbers_salad.lua
35
1471
----------------------------------------- -- ID: 4321 -- Item: timbre_timbers_salad -- Food Effect: 240Min, All Races ----------------------------------------- -- Magic 20 -- Agility 5 -- Vitality -1 -- Ranged ACC % 8 -- Ranged ACC Cap 15 ----------------------------------------- require("scripts/globals/s...
gpl-3.0
openwayne/chaos_theory
mods/beds/functions.lua
16
5278
local pi = math.pi local player_in_bed = 0 local is_sp = minetest.is_singleplayer() local enable_respawn = minetest.setting_getbool("enable_bed_respawn") if enable_respawn == nil then enable_respawn = true end -- Helper functions local function get_look_yaw(pos) local n = minetest.get_node(pos) if n.param2 == 1 th...
lgpl-2.1
shingenko/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
wagonrepairer/Zero-K
scripts/armzeus.lua
15
15279
local base = piece 'base' local chest = piece 'chest' local aim = piece 'aim' local flare = piece 'flare' local hips = piece 'hips' local lthigh = piece 'lthigh' local rthigh = piece 'rthigh' local lforearm = piece 'lforearm' local rforearm = piece 'rforearm' local rshoulder = piece 'rshoulder' local lshoulde...
gpl-2.0
shingenko/darkstar
scripts/zones/Lower_Jeuno/npcs/Adelflete.lua
37
1376
----------------------------------- -- Area: Lower Jeuno -- NPC: Adelflete -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; require("scripts/zones/Lower_Jeuno/TextIDs"); ----------------------------------...
gpl-3.0
shingenko/darkstar
scripts/zones/Chamber_of_Oracles/TextIDs.lua
9
1386
-- 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 = 6384; -- Obtained: <item> GIL_OBTAINED = 6385; -- Obtained <number> gil KEYITEM_OBTAINED = 6387; -- Obtain...
gpl-3.0
jsat97/sysdig
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
clemty/OpenRA
mods/cnc/maps/nod01/nod01.lua
8
3139
InitialForcesA = { "bggy", "e1", "e1", "e1", "e1" } InitialForcesB = { "e1", "e1", "bggy", "e1", "e1" } RifleInfantryReinforcements = { "e1", "e1" } RocketInfantryReinforcements = { "e3", "e3", "e3", "e3", "e3" } SendInitialForces = function() Media.PlaySpeechNotification(nod, "Reinforce") Reinforcements.Reinforce...
gpl-3.0
wagonrepairer/Zero-K
LuaRules/Gadgets/unit_jumpjet_pilot.lua
12
6460
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- if (not gadgetHandler:IsSyncedCode()) then return false end function gadget:GetInfo() return { name = "Jumpjet Pilot", desc = "Steers ...
gpl-2.0
shingenko/darkstar
scripts/globals/items/plate_of_shrimp_sushi_+1.lua
35
1614
----------------------------------------- -- ID: 5692 -- Item: plate_of_shrimp_sushi_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Vitality 1 -- Defense 5 -- Accuracy % 12 (unknown, assuming HQ stat) -- Store TP 2 -- Triple Attack 1 (unknown, assuming same as NQ) -----------...
gpl-3.0
fridolin2/morethings_modpack
morethings_ores/init.lua
1
11197
minetest.register_alias("morethings:red_ore", "morethings_ores:red_ore") minetest.register_alias("morethings:krypton_ore", "morethings_ores:krypton_ore") minetest.register_alias("morethings:ghost_ore", "morethings_ores:ghost_ore") -- Define Ore Block Nodes minetest.register_node("morethings_ores:platinum_ore"...
gpl-3.0
wagonrepairer/Zero-K
LuaRules/Gadgets/unit_missilesilo.lua
11
4596
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- if not gadgetHandler:IsSyncedCode() then return end -------------------------------------------------------------------------------- ------------------------...
gpl-2.0
simon-wh/PAYDAY-2-BeardLib
Modules/Utils/ScriptReplacementsModule.lua
2
1389
ScriptReplacementsModule = ScriptReplacementsModule or BeardLib:ModuleClass("ScriptMods", ModuleBase) ScriptReplacementsModule.auto_load = false function ScriptReplacementsModule:PostInit() self.ScriptDirectory = self._config.directory and Path:Combine(self._mod.ModPath, self._config.directory) or self._mod.ModPath ...
mit
HajiMokh/hmhaji
plugins/active.lua
2
11936
local function checktodaygr(cb_extra, success, result) local hash = '' local thash='' for k,user in pairs(result.members) do thash = 'today:'..user.peer_id if redis:get(thash) then if redis:get(thash) < os.date("%x",os.time() + 16200) then hash = 'utmsgst:'..user.peer_id..':'..cb_extra redis:set(hash,0) ...
agpl-3.0
shingenko/darkstar
scripts/zones/South_Gustaberg/Zone.lua
16
4518
----------------------------------- -- -- Zone: South_Gustaberg (107) -- ----------------------------------- package.loaded["scripts/zones/South_Gustaberg/TextIDs"] = nil; package.loaded["scripts/globals/chocobo_digging"] = nil; ----------------------------------- require("scripts/globals/zone"); require("sc...
gpl-3.0
openwayne/chaos_theory
mods/technic/wrench/init.lua
3
4814
--[[ Wrench mod Adds a wrench that allows the player to pickup nodes that contain an inventory with items or metadata that needs perserving. The wrench has the same tool capability as the normal hand. To pickup a node simply right click on it. If the node contains a formspec, you will need to shift+right click instead...
lgpl-2.1
clemty/OpenRA
mods/ra/maps/soviet-01/soviet01.lua
26
2150
Yaks = { "yak", "yak", "yak" } Airfields = { Airfield1, Airfield2, Airfield3 } InsertYaks = function() local i = 1 Utils.Do(Yaks, function(yakType) local start = YakEntry.CenterPosition + WVec.New(0, (i - 1) * 1536, Actor.CruiseAltitude(yakType)) local dest = StartJeep.Location + CVec.New(0, 2 * i) local yak =...
gpl-3.0
shingenko/darkstar
scripts/zones/Riverne-Site_B01/mobs/Nimbus_Hippogryph.lua
23
1357
----------------------------------- -- Area: Riverne - Site B01 -- MOB: Nimbus Hippogryph -- Note: Place holder Imdugud ----------------------------------- require("scripts/zones/Riverne-Site_B01/MobIDs"); ----------------------------------- -- onMobDeath ----------------------------------- funct...
gpl-3.0
jyggen/lua-parser
tests/Fixtures/33/b7/00/3b29a6517f9ec756dc7f07a0b818a6c2f4d033ee579f69c483e88e3a7b.lua
1
1229
MasterPlanAG = { ["Draenor"] = { ["Jyggen"] = { ["class"] = "MAGE", ["summary"] = { ["tt2"] = true, ["tt3"] = true, ["tt1"] = 1472377854, ["ti1"] = 118531, ["ti3"] = 127854, ["ti2"] = 122486, }, ["faction"] = "Horde", }, }, ["IgnoreRewards"] = { }, ["Storm...
mit
wagonrepairer/Zero-K
effects/gundam_mainmegapartgun.lua
26
2945
-- mainmegapartgun return { ["mainmegapartgun"] = { dirt = { count = 4, ground = true, properties = { alphafalloff = 2, alwaysvisible = true, color = [[0.2, 0.1, 0.05]], pos = [[r-10 r10, 0, r-10 r10...
gpl-2.0
fir3element/downgrade
data/talkactions/scripts/mccheck.lua
40
1027
function onSay(player, words, param) if not player:getGroup():getAccess() then return true end if player:getAccountType() < ACCOUNT_TYPE_GOD then return false end player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Multiclient Check List:") local ipList = {} local players = Game.getPlayers() for i = 1, ...
gpl-2.0
Illarion-eV/Illarion-Content
npc/base/consequence/arena.lua
1
1773
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
PhilMo6/Lua_pi_pan
obj/MacAddressScanner.lua
1
11309
local Cloneable = require("obj.Common") local MacScanner = Cloneable:clone() --[[ Object module handling wlan scanning and logging of mac addresses and maintaining a list of known addresses ]] MacScanner.location = 'macScanners' MacScanner.config = {} MacScanner.config.wlan = "wlan0" MacScanner.config.updat...
mit