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
caesarxuchao/contrib
ingress/controllers/nginx/lua/vendor/lua-resty-http/lib/resty/http_headers.lua
69
1716
local rawget, rawset, setmetatable = rawget, rawset, setmetatable local str_gsub = string.gsub local str_lower = string.lower local _M = { _VERSION = '0.01', } -- Returns an empty headers table with internalised case normalisation. -- Supports the same cases as in ngx_lua: -- -- headers.content_lengt...
apache-2.0
ophal/core
includes/module.lua
1
2228
local xtable = seawolf.contrib.seawolf_table do local mt = { register = function(t, module_name, module_definition) ophal.modules[module_name] = module_definition end } mt.__index = function(t, k) if mt[k] ~= nil then return mt[k] end end setmetatable(ophal.modules, mt) end do ...
agpl-3.0
wonderwj/ffi-zmq
rpc/init.lua
1
3377
local zmq = require('zmq'); local core= require('core'); local utils= require('utils'); local timer= require('timer'); local encode = require('msgpack').encode; local decode = require('msgpack').decode; local rpc_svr = core.Emitter:extend(); -- linkaddr bind listen addr -- dispaddr send response addr fun...
mit
mesosphere-mergebot/dcos
packages/adminrouter/extra/src/lib/cache.lua
3
27876
local cjson_safe = require "cjson.safe" local shmlock = require "resty.lock" local http = require "resty.http" local resolver = require "resty.resolver" local util = require "util" -- In order to make caching code testable, these constants need to be -- configurable/exposed through env vars. -- -- Values assigned to t...
apache-2.0
graydon/monotone
tests/db_check_(heights)/__driver__.lua
1
1654
-- -*-lua-*- mtn_setup() -- make two revisions addfile("testfile", "A") commit() revA = base_revision() writefile("testfile", "B") commit() revB = base_revision() -- db should be ok check(mtn("db", "check"), 0, false, false) -- swap the two heights (by swapping their revs) check(mtn("db", "execute", "update heights ...
gpl-2.0
mohammad8/123456
plugins/vote.lua
615
2128
do local _file_votes = './data/votes.lua' function read_file_votes () local f = io.open(_file_votes, "r+") if f == nil then print ('Created voting file '.._file_votes) serialize_to_file({}, _file_votes) else print ('Values loaded: '.._file_votes) f:close() end return loadfile (_file_votes)()...
gpl-2.0
ntop/ntopng
scripts/lua/modules/sys_utils.lua
1
4668
-- -- (C) 2013-22 - ntop.org -- local sys_utils = {} -- If false, some commands and config files are not executed/created really -- This will be overwritten with the config value local REAL_EXEC = ntop.getPref("ntopng.prefs.nedge_real_exec") == "1" -- ################################################################ ...
gpl-3.0
eaufavor/AwesomeWM-powerarrow-dark
widgets/layout/desktopLayout.lua
1
9262
local setmetatable = setmetatable local table = table local type = type local ipairs = ipairs local print = print local button = require( "awful.button" ) local beautiful = require( "beautiful" ) local naughty = require( "naughty" ) local tag = require( "awful....
apache-2.0
dalab/deep-ed
utils/logger.lua
1
4797
--[[ Logger: a simple class to log symbols during training, and automate plot generation Example: logger = optim.Logger('somefile.log') -- file to save stuff for i = 1,N do -- log some symbols during train_error = ... -- training/testing t...
apache-2.0
morcmarc/blackstar
assets/maps/map.lua
1
2947
return { version = "1.1", luaversion = "5.1", tiledversion = "0.14.2", orientation = "orthogonal", renderorder = "right-down", width = 100, height = 10, tilewidth = 32, tileheight = 32, nextobjectid = 12, properties = {}, tilesets = { { name = "swamp1", firstgid = 1, tilewi...
mit
immibis/wiremod
lua/entities/gmod_wire_light.lua
10
7999
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Light" ENT.RenderGroup = RENDERGROUP_BOTH ENT.WireDebugName = "Light" function ENT:SetupDataTables() self:NetworkVar( "Bool", 0, "Glow" ) self:NetworkVar( "Float", 0, "Brightness" ) self:NetworkVar( "Float", 1, "Size" ) self:Network...
apache-2.0
PicassoCT/Journeywar
LuaUI/Configs/lupsUnitFXs.lua
1
20049
-- note that the order of the MergeTable args matters for nested tables (such as colormaps)! function randSign() if math.random(0,1)==1 then return -1 else return 1 end end function randomStar(posmin,posmax, sizemin,sizemax) return {class='ShieldSphere', options={life=math.huge, pos={math.random(posmin,posmax)*randSi...
gpl-3.0
b03605079/darkstar
scripts/zones/Port_Bastok/npcs/Romilda.lua
36
2365
----------------------------------- -- Area: Port Bastok -- NPC: Romilda -- Involved in Quest: Forever to Hold -- Starts & Ends Quest: Till Death Do Us Part ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("scripts/globa...
gpl-3.0
b03605079/darkstar
scripts/zones/Southern_San_dOria/npcs/Foletta.lua
36
1433
----------------------------------- -- Area: Southern San d'Oria -- NPC: Foletta -- General Info NPC ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quests...
gpl-3.0
Aquanim/Zero-K
LuaUI/Configs/lupsUnitFXs.lua
6
24117
-- note that the order of the MergeTable args matters for nested tables (such as colormaps)! local presets = { commandAuraRed = { {class='StaticParticles', options=commandCoronaRed}, {class='GroundFlash', options=MergeTable(groundFlashRed, {radiusFactor=3.5,mobile=true,life=60, colormap={ {1, 0.2, 0.2, 1},{1, ...
gpl-2.0
arychen/GlobalCall
feeds/luci/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua
48
2480
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" m = Map("network", translate("Interfaces")) m.pageaction = false m:section(SimpleSection).template = "admin_network/iface_overvi...
gpl-2.0
immibis/wiremod
lua/entities/gmod_wire_user.lua
9
1183
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire User" ENT.RenderGroup = RENDERGROUP_BOTH ENT.WireDebugName = "User" function ENT:SetupDataTables() self:NetworkVar( "Float", 0, "BeamLength" ) end if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsIni...
apache-2.0
Aquanim/Zero-K
ModelMaterials/255_features_fallback.lua
8
1229
local matTemplate = VFS.Include("ModelMaterials/Templates/defaultMaterialTemplate.lua") local materials = { featuresFallback = Spring.Utilities.MergeWithDefault(matTemplate, { texUnits = { [0] = "%%FEATUREDEFID:0", [1] = "%%FEATUREDEFID:1", }, feature = true, deferredOptions = { materialIndex = 255,...
gpl-2.0
stars2014/quick-ng
external/lua/luasocket/script/ltn12.lua
71
8331
----------------------------------------------------------------------------- -- LTN12 - Filters, sources, sinks and pumps. -- LuaSocket toolkit. -- Author: Diego Nehab ----------------------------------------------------------------------------- ------------------------------------------------------------------------...
mit
Sakura-Winkey/LuCI
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/network.lua
53
2738
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. m = Map("luci_statistics", translate("Network Plugin Configuration"), translate( "The network plugin provides network based communication between " .. "different collectd instances. Coll...
apache-2.0
b03605079/darkstar
scripts/globals/items/rice_ball.lua
14
1508
----------------------------------------- -- ID: 4405 -- Item: rice_ball -- Food Effect: 30Min, All Races ----------------------------------------- -- HP 10, Vit +2, Dex -1, hHP +1 (Def +50)*enhances rice ball effect ----------------------------------------- require("scripts/globals/status"); require("scripts...
gpl-3.0
b03605079/darkstar
scripts/zones/Al_Zahbi/npcs/Shihu-Danhu.lua
19
2097
----------------------------------- -- Area: Al Zahbi -- NPC: Shihu-Danhu -- Warp NPC -- @pos 62.768 -1.98 -51.299 48 ----------------------------------- require("scripts/globals/besieged"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) ...
gpl-3.0
b03605079/darkstar
scripts/globals/items/yilanbaligi.lua
18
1328
----------------------------------------- -- ID: 5458 -- Item: Yilanbaligi -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Mind -4 -- Evasion 5 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItem...
gpl-3.0
b03605079/darkstar
scripts/zones/Southern_San_dOria/npcs/HomePoint#3.lua
12
1261
----------------------------------- -- Area: Southern San dOria -- NPC: HomePoint#3 -- @pos 140 -2 123 230 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Southern_San_dOria/TextIDs"); require(...
gpl-3.0
vejmelkam/optim
polyinterp.lua
13
6321
local function isreal(x) return x == x end local function isnan(x) return not x == x end local function roots(c) local tol=1e-12 c[torch.lt(torch.abs(c),tol)]=0 local nonzero = torch.ne(c,0) if nonzero:max() == 0 then return 0 end -- first non-zero local _,pos = torch.max(nonzero,1)...
bsd-3-clause
codedustgames/caress-framework
classeslib/Object/Sprite.lua
1
1341
-- Caress, a small framework for games in lua and love. -- Copyright (C) 2016 Erivaldo Filho "desadoc@gmail.com" -- This program 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, either version 3 of t...
gpl-3.0
b03605079/darkstar
scripts/globals/items/serving_of_patriarch_sautee.lua
36
1253
----------------------------------------- -- ID: 5677 -- Item: Serving of Patriarch Sautee -- Food Effect: 4Hrs, All Races ----------------------------------------- -- MP 60 -- Mind 7 -- MP Recovered While Healing 7 ----------------------------------------- require("scripts/globals/status"); -------------------------...
gpl-3.0
b03605079/darkstar
scripts/zones/Fort_Karugo-Narugo_[S]/npcs/Mortimer.lua
35
1055
---------------------------------- -- Area: Fort Karugo Narugo [S] -- NPC: Mortimer -- Type: Item Deliverer -- @zone: 96 -- @pos -24.08 -68.508 93.88 -- ----------------------------------- package.loaded["scripts/zones/Fort_Karugo-Narugo_[S]/TextIDs"] = nil; require("scripts/zones/Fort_Karugo-Narugo_[S]/TextIDs")...
gpl-3.0
Tatuy/UAWebsite
account/LUA/TFS_03/talkaction shopsystem/znoteshop.lua
1
2693
-- Znote Shop v1.0 for Znote AAC on TFS 0.3.6+ Crying Damson. function onSay(cid, words, param) local storage = 54073 -- Make sure to select non-used storage. This is used to prevent SQL load attacks. local cooldown = 15 -- in seconds. if getPlayerStorageValue(cid, storage) <= os.time() then setPlayerStorageValu...
apache-2.0
b03605079/darkstar
scripts/globals/items/steamed_crayfish.lua
35
1239
----------------------------------------- -- ID: 4338 -- Item: steamed_crayfish -- Food Effect: 60Min, All Races ----------------------------------------- -- Defense % 30 -- Defense Cap 30 ----------------------------------------- require("scripts/globals/status"); -----------------------------------------...
gpl-3.0
Whit3Tig3R/bot-telegram
plugins/anti-flood.lua
281
2422
local NUM_MSG_MAX = 5 -- Max number of messages per TIME_CHECK seconds local TIME_CHECK = 5 local function kick_user(user_id, chat_id) local chat = 'chat#id'..chat_id local user = 'user#id'..user_id chat_del_user(chat, user, function (data, success, result) if success ~= 1 then local text = 'I can\'t k...
gpl-2.0
dhlab-basel/Knora
sipi/scripts/delete_temp_file.lua
1
2743
-- * Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors. -- * SPDX-License-Identifier: Apache-2.0 -- -- Deletes a file from temporary storage. -- require "send_response" require "jwt" -- Buffer the response (helps with error handling). local ...
agpl-3.0
arychen/GlobalCall
feeds/luci/build/luadoc/luadoc/taglet/standard/tags.lua
46
5543
------------------------------------------------------------------------------- -- Handlers for several tags -- @release $Id: tags.lua,v 1.8 2007/09/05 12:39:09 tomas Exp $ ------------------------------------------------------------------------------- local luadoc = require "luadoc" local util = require "luadoc.util"...
gpl-2.0
b03605079/darkstar
scripts/zones/Pashhow_Marshlands_[S]/Zone.lua
8
1309
----------------------------------- -- -- Zone: Pashhow_Marshlands_[S] (90) -- ----------------------------------- package.loaded["scripts/zones/Pashhow_Marshlands_[S]/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Pashhow_Marshlands_[S]/TextIDs"); -----------------------------...
gpl-3.0
stars2014/quick-ng
cocos/scripting/lua-bindings/auto/api/RepeatForever.lua
7
1954
-------------------------------- -- @module RepeatForever -- @extend ActionInterval -- @parent_module cc -------------------------------- -- Sets the inner action.<br> -- param action The inner action. -- @function [parent=#RepeatForever] setInnerAction -- @param self -- @param #cc.ActionInterval action -- @return ...
mit
DI3HARD139/dcb-everamzah-
mods/worldedit/worldedit/primitives.lua
1
8249
--- Functions for creating primitive shapes. -- @module worldedit.primitives local mh = worldedit.manip_helpers --- Adds a sphere of `node_name` centered at `pos`. -- @param pos Position to center sphere at. -- @param radius Sphere radius. -- @param node_name Name of node to make shere of. -- @param hollow Whether t...
gpl-3.0
immibis/wiremod
lua/entities/gmod_wire_expression2/core/compat.lua
9
3207
-- Functions in this file are retained purely for backwards-compatibility. They should not be used in new code and might be removed at any time. e2function string number:teamName() local str = team.GetName(this) if not str then return "" end return str end e2function number number:teamScore() return team.GetScore...
apache-2.0
miralireza2/gpf23
plugins/danbooru.lua
616
1750
do local URL = "http://danbooru.donmai.us" local URL_NEW = "/posts.json" local URL_POP = "/explore/posts/popular.json" local scale_day = "?scale=day" local scale_week = "?scale=week" local scale_month = "?scale=month" local function get_post(url) local b, c, h = http.request(url) if c ~= 200 then return nil end ...
gpl-2.0
kiarash14/bumpspm
plugins/danbooru.lua
616
1750
do local URL = "http://danbooru.donmai.us" local URL_NEW = "/posts.json" local URL_POP = "/explore/posts/popular.json" local scale_day = "?scale=day" local scale_week = "?scale=week" local scale_month = "?scale=month" local function get_post(url) local b, c, h = http.request(url) if c ~= 200 then return nil end ...
gpl-2.0
thesrinivas/rakshak
rakshak-probe/userspace/sysdig/chisels/httplog.lua
10
1698
--[[ Copyright (C) 2015 Luca Marturana 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 ev...
gpl-2.0
b03605079/darkstar
scripts/zones/Windurst_Walls/npcs/Tsuaora-Tsuora.lua
38
1043
----------------------------------- -- Area: Windurst Walls -- NPC: Tsuaora-Tsuora -- Type: Standard NPC -- @zone: 239 -- @pos 71.489 -3.418 -67.809 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil; ------...
gpl-3.0
Aquanim/Zero-K
units/energyfusion.lua
2
1786
return { energyfusion = { unitname = [[energyfusion]], name = [[Fusion Reactor]], description = [[Medium Powerplant (+35)]], activateWhenBuilt = true, buildCostMetal = 1000, builder = false, bu...
gpl-2.0
b03605079/darkstar
scripts/zones/RuAun_Gardens/mobs/Seiryu.lua
2
1215
----------------------------------- -- Area: Ru'Aun Gardens -- NPC: Seiryu ----------------------------------- require("scripts/zones/RuAun_Gardens/TextIDs"); require("scripts/globals/status"); ----------------------------------- -- onMobSpawn Action ----------------------------------- function OnMobSpa...
gpl-3.0
stevedonovan/Penlight
tests/test-url.lua
1
1689
local url = require 'pl.url' local asserteq = require 'pl.test' . asserteq asserteq(url.quote(''), '') asserteq(url.quote('ABCDEFGHIJKLMNOPQRSTUVWXYZ'), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ') asserteq(url.quote('abcdefghijklmnopqrstuvwxyz'), 'abcdefghijklmnopqrstuvwxyz') asserteq(url.quote('0123456789'), '0123456789') asserteq...
mit
b03605079/darkstar
scripts/zones/Port_Bastok/npcs/Tete.lua
19
1293
----------------------------------- -- Area: Port Bastok -- NPC: Tete -- Continues Quest: The Wisdom Of Elders ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ------------------------------------ require("scripts/globals/settings"); require("scripts/globals/quest...
gpl-3.0
b03605079/darkstar
scripts/globals/weaponskills/dark_harvest.lua
29
1229
----------------------------------- -- Dark Harvest -- Scythe weapon skill -- Skill Level: 30 -- Delivers a dark elemental attack. Damage varies with TP. -- Aligned with the Aqua Gorget. -- Aligned with the Aqua Belt. -- Element: Dark -- Modifiers: STR:20% ; INT:20% -- 100%TP 200%TP 300%TP -- 1.00 ...
gpl-3.0
xpol/luarocks
src/luarocks/unpack.lua
6
6135
--- Module implementing the LuaRocks "unpack" command. -- Unpack the contents of a rock. local unpack = {} package.loaded["luarocks.unpack"] = unpack local fetch = require("luarocks.fetch") local fs = require("luarocks.fs") local util = require("luarocks.util") local build = require("luarocks.build") local dir = requ...
mit
cosmy1/Urho3D
bin/Data/LuaScripts/16_Chat.lua
18
7649
-- Chat example -- This sample demonstrates: -- - Starting up a network server or connecting to it -- - Implementing simple chat functionality with network messages require "LuaScripts/Utilities/Sample" -- Identifier for the chat network messages local MSG_CHAT = 32 -- UDP port we will use local CHA...
mit
Aquanim/Zero-K
effects/solange.lua
7
1941
-- solange -- solange_pillar return { ["solange"] = { nw = { air = true, class = [[CExpGenSpawner]], count = 150, ground = true, water = true, underwater = true, properties = { delay ...
gpl-2.0
stars2014/quick-ng
cocos/scripting/lua-bindings/auto/api/ActionScaleFrame.lua
11
1744
-------------------------------- -- @module ActionScaleFrame -- @extend ActionFrame -- @parent_module ccs -------------------------------- -- Changes the scale action scaleY.<br> -- param rotation the scale action scaleY. -- @function [parent=#ActionScaleFrame] setScaleY -- @param self -- @param #float scaleY -- @re...
mit
cs-willian-silva/vlc
share/lua/modules/sandbox.lua
28
4403
--[==========================================================================[ sandbox.lua: Lua sandboxing facilities --[==========================================================================[ Copyright (C) 2007 the VideoLAN team $Id$ Authors: Antoine Cellerier <dionoea at videolan dot org> This program is f...
gpl-2.0
stars2014/quick-ng
cocos/scripting/lua-bindings/auto/api/GridBase.lua
9
4540
-------------------------------- -- @module GridBase -- @extend Ref -- @parent_module cc -------------------------------- -- Set the size of the grid. -- @function [parent=#GridBase] setGridSize -- @param self -- @param #size_table gridSize -- @return GridBase#GridBase self (return value: cc.GridBase) -----...
mit
b03605079/darkstar
scripts/globals/spells/valor_minuet_v.lua
13
1535
----------------------------------------- -- Spell: Valor Minuet V -- Grants Attack bonus to all allies. ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,...
gpl-3.0
b03605079/darkstar
scripts/globals/abilities/pets/sand_breath.lua
6
1257
--------------------------------------------------- -- Sand Breath --------------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); require("/scripts/globals/monstertpmoves"); --------------------------------------------------- function onAbility...
gpl-3.0
Aquanim/Zero-K
LuaRules/Gadgets/api_custom_unit_shaders.lua
2
29319
-- $Id$ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- author: jK -- -- Copyright (C) 2008,2009,2010. -- Licensed under the terms of the GNU GPL, v2 or later. -- ---------------------------------...
gpl-2.0
cs-willian-silva/vlc
share/lua/intf/dumpmeta.lua
98
2125
--[==========================================================================[ dumpmeta.lua: dump a file's meta data on stdout/stderr --[==========================================================================[ Copyright (C) 2010 the VideoLAN team $Id$ Authors: Antoine Cellerier <dionoea at videolan dot org> Th...
gpl-2.0
Aquanim/Zero-K
scripts/benzcom.lua
2
8712
include "constants.lua" -------------------------------------------------------------------------------- -- pieces -------------------------------------------------------------------------------- local pieceMap = Spring.GetUnitPieceMap(unitID) local HAS_GATTLING = pieceMap.rgattlingflare and true or false local HAS_BO...
gpl-2.0
PicassoCT/Journeywar
gamedata/explosions/conDroneMedShadow.lua
1
1041
-- dirt return { ["conDroneMedShadow"] = { dirtg = { air = true, class = [[CSimpleParticleSystem]], count = 1, ground = true, properties = { airdrag = 0.7, alwaysvisible = true, colormap ...
gpl-3.0
b03605079/darkstar
scripts/zones/Windurst-Jeuno_Airship/Zone.lua
1
1370
----------------------------------- -- -- Zone: Windurst-Jeuno_Airship -- ----------------------------------- ----------------------------------- -- onInitialize ----------------------------------- function onInitialize(zone) end; ----------------------------------- -- onZoneIn --------------------...
gpl-3.0
Sakura-Winkey/LuCI
applications/luci-app-adkill/luasrc/model/cbi/adkill.lua
4
2062
--[[ adkill 配置页面 Copyright (C) 2015 GuoGuo <gch981213@gmail.com> ]]-- m = Map("adkill", translate("Ad-Killer"), translatef("A kernel module which can be configured to remove advertisements in some video sites.") ) s = m:section(TypedSection, "adkill_base", translate("Basic Settings")) s.anonymous = true o = s:opti...
apache-2.0
MOSAVI17/Mosavi3
plugins/admin.lua
53
2402
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(rec...
gpl-2.0
b03605079/darkstar
scripts/globals/armor_upgrade.lua
1
13910
----------------------------------------------------------------------------------------------------------------------- -- Artefact Armor +1 ------------------------------------------------------------------------------------------------------------------------ Artifact_Armor_...
gpl-3.0
mrkulk/Unsupervised-Capsule-Network
eval.lua
1
4636
-- Tejas D Kulkarni -- Usage: run this script and it will dump results into /tmp directory. Now you can use the ipython notebook to do further analysis -- Please change 'src' variable to load respective network require 'nn' require 'Entity' require 'optim' require 'image' require 'dataset-mnist' require 'cutorch' requi...
gpl-3.0
MTASZTAKI/ApertusVR
plugins/physics/bulletPhysics/3rdParty/bullet3/test/OpenCL/ParallelPrimitives/premake4.lua
12
1456
function createProject(vendor) hasCL = findOpenCL(vendor) if (hasCL) then project ("Test_OpenCL_Primitives_" .. vendor) initOpenCL(vendor) language "C++" kind "ConsoleApp" includedirs {".","../../../src"} files { "main.cpp", "../../../src/Bullet3OpenCL/Initialize/b3OpenCLInclude....
mit
nagyistoce/google-diff-match-patch
lua/diff_match_patch.lua
265
73869
--[[ * Diff Match and Patch * * Copyright 2006 Google Inc. * http://code.google.com/p/google-diff-match-patch/ * * Based on the JavaScript implementation by Neil Fraser. * Ported to Lua by Duncan Cross. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance ...
apache-2.0
felipeprov/premake-core
src/base/premake.lua
1
8433
-- -- premake.lua -- High-level helper functions for the project exporters. -- Copyright (c) 2002-2014 Jason Perkins and the Premake project -- local p = premake local solution = p.solution local project = p.project local config = p.config local field = p.field -- Store captured output text for later testing ...
bsd-3-clause
Radseq/otclient
modules/corelib/ui/uiprogressbar.lua
10
2673
-- @docclass UIProgressBar = extends(UIWidget, "UIProgressBar") function UIProgressBar.create() local progressbar = UIProgressBar.internalCreate() progressbar:setFocusable(false) progressbar:setOn(true) progressbar.min = 0 progressbar.max = 100 progressbar.value = 0 progressbar.bgBorderLeft = 0 progres...
mit
PicassoCT/Journeywar
LuaUI/widgets/chili/controls/button.lua
18
1390
--//============================================================================= --- Button module --- Button fields. -- Inherits from Control. -- @see control.Control -- @table Button -- @string[opt="button"] caption caption to be displayed Button = Control:Inherit{ classname= "button", caption = 'button', ...
gpl-3.0
b03605079/darkstar
scripts/zones/Kazham/npcs/Lulupp.lua
21
1844
----------------------------------- -- Area: Kazham -- NPC: Lulupp -- Type: Standard NPC -- @zone: 250 -- @pos -26.567 -3.5 -3.544 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; -------------------------------...
gpl-3.0
PicassoCT/Journeywar
weapons/raiderarrow.lua
1
1055
local weaponName = "raiderarrow" local weaponDef = { weaponType = [[MissileLauncher]], name = "raiderarrow", areaOfEffect = 128, avoidFeature = false, avoidGround = false, burst = 1, burstrate = 0.1, CegTag = "bluestripe", craterBoost = 1, craterMult = 2, dance = 20, edge...
gpl-3.0
immibis/wiremod
lua/entities/gmod_wire_eyepod.lua
9
8963
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Eye Pod" ENT.Purpose = "To control the player's view in a pod and output their mouse movements" ENT.WireDebugName = "Eye Pod" if CLIENT then local enabled = false local rotate90 = false local freezePitch = true local freezeY...
apache-2.0
TorstenC/esp8266-devkit
Espressif/examples/nodemcu-firmware/tools/utils.lua
48
11997
-- Generic utility functions module( ..., package.seeall ) local lfs = require "lfs" local sf = string.format -- Taken from Lake dir_sep = package.config:sub( 1, 1 ) is_os_windows = dir_sep == '\\' -- Converts a string with items separated by 'sep' into a table string_to_table = function( s, sep ) if type( s ) ~= ...
gpl-3.0
b03605079/darkstar
scripts/zones/Qufim_Island/npcs/Pitoire_RK.lua
8
2941
----------------------------------- -- Area: Qufim Island -- NPC: Pitoire, R.K. -- Type: Outpost Conquest Guards -- @pos -245.366 -20.344 299.502 126 ----------------------------------- package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest");...
gpl-3.0
Aquanim/Zero-K
LuaUI/Widgets/gui_lups_stats.lua
6
4453
-- $Id: gui_lups_stats.lua 3171 2008-11-06 09:06:29Z det $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- orig-file: gui_clock.lua -- orig-file: gui_lups_stats.lua -- brief: displays the c...
gpl-2.0
b03605079/darkstar
scripts/zones/Northern_San_dOria/npcs/_6fc.lua
21
1890
----------------------------------- -- Area: Northern San d'Oria -- NPC: Papal Chambers -- Finish Mission: The Davoi Report -- @pos 131 -11 122 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; package.loaded["scripts/globals/missions"] = nil; ---------------...
gpl-3.0
b03605079/darkstar
scripts/zones/Temenos/bcnms/Central_Temenos_4th_Floor.lua
13
1399
----------------------------------- -- Area: Temenos -- Name: ----------------------------------- -- After registering the BCNM via bcnmRegister(bcnmid) function onBcnmRegister(player,instance) SetServerVariable("[C_Temenos_4th]UniqueID",GenerateLimbusKey()); HideArmouryCrates(GetInstanceRegion(1306),TEMENOS); ...
gpl-3.0
stevedonovan/Penlight
tests/test-utils2.lua
1
2335
local path = require 'pl.path' local utils = require 'pl.utils' local asserteq = require 'pl.test'.asserteq local echo_lineending = "\n" if path.is_windows then echo_lineending = " \n" end local function test_executeex(cmd, expected_successful, expected_retcode, expected_stdout, expected_stderr) --print("\n"..cmd...
mit
b03605079/darkstar
scripts/zones/Caedarva_Mire/npcs/Nahshib.lua
12
1969
----------------------------------- -- Area: Caedarva Mire -- NPC: Nahshib -- Type: Assault -- @pos -274.334 -9.287 -64.255 79 ----------------------------------- package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/...
gpl-3.0
AitorATuin/exercism
bin/add_gitattributes.lua
1
3184
#!/bin/lua local GIT_ATTR_FILE = ".gitattributes" -- -- lang/exercise/exercise.lua filter=git-crypt diff=git-crypt local GIT_ATTR_REGEX = "([^/]+)/([^/]+)/([^/]+)%.(%w+) filter%=git%-crypt diff%=git%-crypt" local function file_to_gitattribute(file) return string.format("%s/%s/%s.%s filter=git-crypt diff=git-crypt"...
gpl-3.0
b03605079/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Hadayah.lua
10
1760
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Hadayah -- Type: Alchemy Image Support -- @pos -10.470 -6.25 -141.700 241 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/...
gpl-3.0
felipeprov/premake-core
tests/base/test_table.lua
18
1436
-- -- tests/base/test_table.lua -- Automated test suite for the new table functions. -- Copyright (c) 2008-2013 Jason Perkins and the Premake project -- local suite = test.declare("table") local t -- -- table.contains() tests -- function suite.contains_OnContained() t = { "one", "two", "three" } test.istru...
bsd-3-clause
b03605079/darkstar
scripts/zones/AlTaieu/npcs/HomePoint#1.lua
3
1161
----------------------------------- -- Area: AlTaieu -- NPC: HomePoint#1 -- @pos ----------------------------------- package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/AlTaieu/TextIDs"); require("scripts/globals/homepoint"); --------------------------...
gpl-3.0
b03605079/darkstar
scripts/zones/Temenos/mobs/Airi.lua
17
1277
----------------------------------- -- Area: Temenos Central 1floor -- NPC: Airi ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); ----------------------...
gpl-3.0
b03605079/darkstar
scripts/zones/Tavnazian_Safehold/npcs/Nivorajean.lua
38
1048
----------------------------------- -- Area: Tavnazian Safehold -- NPC: Nivorajean -- Type: Standard NPC -- @zone: 26 -- @pos 15.890 -22.999 13.322 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil; -...
gpl-3.0
AdventureZ/mta_dayz_new_gamemode2015
DayZ/group_system/gang_server.lua
1
8482
invitations = {} addEventHandler("onResourceStart", resourceRoot, function() local columnName = get("column_name") exports.scoreboard:scoreboardAddColumn("gang", root, columnName:len() * 12, columnName) executeSQLCreateTable("gangs", "gang_name STRING, gang_leader STRING, gang_members, gang_subleaders STRING") ...
epl-1.0
b03605079/darkstar
scripts/zones/Korroloka_Tunnel/MobIDs.lua
65
1094
----------------------------------- -- Area: Korroloka Tunnel (173) -- Comments: -- posX, posY, posZ -- (Taken from 'mob_spawn_points' table) ----------------------------------- -- Cargo_Crab_Colin Cargo_Crab_Colin=17485980; Cargo_Crab_Colin_PH={ [17486002] = '1', -- -30.384, 1.000, -33.277 [17486095] = '1' ...
gpl-3.0
lynnchurch/CocosLearning
HelloCC/cocos2d/plugin/luabindings/auto/api/lua_cocos2dx_pluginx_auto_api.lua
146
1793
-------------------------------- -- @module plugin -------------------------------------------------------- -- the plugin PluginProtocol -- @field [parent=#plugin] PluginProtocol#PluginProtocol PluginProtocol preloaded module -------------------------------------------------------- -- the plugin PluginManager -- @fi...
apache-2.0
immibis/wiremod
lua/wire/stools/target_finder.lua
9
7624
WireToolSetup.setCategory( "Detection/Beacon" ) WireToolSetup.open( "target_finder", "Target Finder", "gmod_wire_target_finder", nil, "Target Finders" ) if CLIENT then language.Add( "Tool.wire_target_finder.name", "Target Finder Beacon Tool (Wire)" ) language.Add( "Tool.wire_target_finder.desc", "Spawns a target fin...
apache-2.0
b03605079/darkstar
scripts/zones/Quicksand_Caves/npcs/_5sb.lua
19
1272
----------------------------------- -- Area: Quicksand Caves -- NPC: Ornate Door -- Door blocked by Weight system -- @pos -420 0 735 208 ----------------------------------- package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Quicksand_Cave...
gpl-3.0
Aquanim/Zero-K
LuaUI/Widgets/gfx_bloom_shader.lua
6
17756
function widget:GetInfo() return { name = "Bloom Shader", desc = "Sets Spring In Bloom", author = "Floris", -- orginal bloom shader: Kloot date = "24-9-2016", license = "", layer = 9, enabled = false, } end ----------------------------------------------------------------------...
gpl-2.0
Whit3Tig3R/bot-telegram
plugins/stats.lua
458
4098
-- Saves the number of messages from a user -- Can check the number of messages with !stats do local NUM_MSG_MAX = 5 local TIME_CHECK = 4 -- seconds local function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name....
gpl-2.0
thesrinivas/rakshak
rakshak-probe.bkup/userspace/sysdig/chisels/flame.lua
1
10064
--[[ 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 e...
gpl-2.0
b03605079/darkstar
scripts/zones/La_Theine_Plateau/Zone.lua
2
3656
----------------------------------- -- -- Zone: La_Theine_Plateau (102) -- ----------------------------------- package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil; ----------------------------------- require("scripts/zones/La_Theine_Plateau/TextIDs"); require("scripts/globals/zone"); require("scr...
gpl-3.0
PicassoCT/Journeywar
gamedata/explosions/jeliahdeath.lua
1
2459
return { ["jeliadeath"] = { rainbow = { air = true, class = [[CSimpleParticleSystem]], count = 5, ground = true, properties = { airdrag = 0.8, alwaysvisible = true, colormap = [[ 0.1 0.8 0.9 0.01 0.9 0.1 0.1 0.05 0.7 0.5 0.1 0.05 0.1 0.8 0.9 0.05 0.1 0.1 0.1 0.001]]...
gpl-3.0
PicassoCT/Journeywar
units/centrail/coperatrans.lua
1
2272
local unitName = "coperatrans" local unitDef = { --Internal settings ObjectName = "operatrans.s3o", name = "Operatransport", Description= "Its not over before the fat lady sings. <Security Producing Tank Unit>", Side = "CentrAIl", script = "operatransscript.lua", buildPic = "coperatrans.png", --cost buildCo...
gpl-3.0
thesrinivas/rakshak
rakshak-probe/userspace/elasticsearch-lua/src/elasticsearch/endpoints/Indices/Create.lua
2
2686
------------------------------------------------------------------------------- -- Importing modules ------------------------------------------------------------------------------- local IndicesEndpoint = require "elasticsearch.endpoints.Indices.IndicesEndpoint" local parser = require "elasticsearch.parser" ----------...
gpl-2.0
andyljones/rnn-initialization
usetools.lua
1
1359
local torch = require 'torch' local gru = require 'gru' local M = {} function M.make_forward_backward(module, n_timesteps) local modules = {} for i = 1, n_timesteps do modules[i] = module:clone('weight', 'bias', 'gradWeight', 'gradBias') end local states = {} local last_inputs = {} function forward(...
mit
b03605079/darkstar
scripts/zones/Lower_Jeuno/npcs/Ruslan.lua
37
2004
----------------------------------- -- Area: Lower Jeuno -- NPC: Ruslan -- Involved In Quest: Wondering Minstrel -- Working 100% -- @zone = 245 -- @pos = -19 -1 -58 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; ----------------------------------- require...
gpl-3.0
Sakura-Winkey/LuCI
applications/luci-app-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo_mini.lua
141
1031
--[[ smap_devinfo - SIP Device Information (c) 2009 Daniel Dickinson 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$ ]]-- require("luci.i18n") re...
apache-2.0
thesrinivas/rakshak
rakshak-probe.bkup/userspace/sysdig/chisels/v_mesos_tasks.lua
6
2620
--[[ 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