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
DrayChou/telegram-bot
bot/utils.lua
239
13499
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() http.TIMEOUT = 10 funct...
gpl-2.0
vilarion/Illarion-Content
item/id_3894_mystical_cracker.lua
1
24554
--[[ 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
ffxiphoenix/darkstar
scripts/zones/Port_Windurst/npcs/Honorio.lua
17
1385
----------------------------------- -- Area: Port Windurst -- NPC: Honorio -- @zone 240 -- @pos 218 -5 114 ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyite...
gpl-3.0
ffxiphoenix/darkstar
scripts/zones/Beaucedine_Glacier/mobs/Calcabrina.lua
13
2011
----------------------------------- -- Area: Beaucedine Glacier -- NM: Calcabrina ----------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- ----------------------------------- -- onMobInitialize ---------------------------...
gpl-3.0
dualface/cocos2dx_luatests
scripts/luaScript/SceneTest/SceneTest.lua
8
5995
local MID_PUSHSCENE = 100 local MID_PUSHSCENETRAN = 101 local MID_QUIT = 102 local MID_REPLACESCENE = 103 local MID_REPLACESCENETRAN = 104 local MID_GOBACK = 105 local SceneTestLayer1 = nil local SceneTestLayer2 = nil local SceneTestLayer3 = nil ------------------...
mit
Quenty/NevermoreEngine
src/nocollisionconstraintutils/src/Shared/NoCollisionConstraintUtils.lua
1
2010
--[=[ Utility functions to create and manipulate [NoCollisionConstraint] objects between Roblox parts. See [getMechanismParts]. @class NoCollisionConstraintUtils ]=] local require = require(script.Parent.loader).load(script) local getMechanismParts = require("getMechanismParts") local Maid = require("Maid") loc...
mit
ffxiphoenix/darkstar
scripts/zones/Mine_Shaft_2716/Zone.lua
32
1656
----------------------------------- -- -- Zone: Mine_Shaft_2716 (13) -- ----------------------------------- package.loaded["scripts/zones/Mine_Shaft_2716/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Mine_Shaft_2716/TextIDs"); -------------...
gpl-3.0
noooway/love2d_arkanoid_tutorial
2-08_GameOver/walls.lua
8
1601
local vector = require "vector" local walls = {} walls.side_walls_thickness = 34 walls.top_wall_thickness = 26 walls.right_border_x_pos = 576 walls.current_level_walls = {} function walls.new_wall( position, width, height ) return( { position = position, width = width, height = height } ) end function...
mit
noooway/love2d_arkanoid_tutorial
3-05_BonusesEffects/walls.lua
8
1601
local vector = require "vector" local walls = {} walls.side_walls_thickness = 34 walls.top_wall_thickness = 26 walls.right_border_x_pos = 576 walls.current_level_walls = {} function walls.new_wall( position, width, height ) return( { position = position, width = width, height = height } ) end function...
mit
ffxiphoenix/darkstar
scripts/zones/Dynamis-Beaucedine/bcnms/dynamis_beaucedine.lua
16
1101
----------------------------------- -- Area: Dynamis Beaucedine -- Name: Dynamis Beaucedine ----------------------------------- -- After registering the BCNM via bcnmRegister(bcnmid) function onBcnmRegister(player,instance) SetServerVariable("[DynaBeaucedine]UniqueID",player:getDynamisUniqueID(1284)); SetServerVar...
gpl-3.0
dail8859/ScintilluaPlusPlus
ext/scintillua/lexers/nemerle.lua
5
2529
-- Copyright 2006-2017 Mitchell mitchell.att.foicica.com. See LICENSE. -- Nemerle 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 = 'nemerle'} -- Whitespace. local ws = token(l.WHITESPACE, l.space^1) -- Comments. local li...
gpl-2.0
lxl1140989/sdk-for-tb
feeds/luci/modules/base/luasrc/cbi.lua
76
40152
--[[ LuCI - Configuration Bind Interface Description: Offers an interface for binding configuration values to certain data types. Supports value and range validation and basic dependencies. FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "Li...
gpl-2.0
ffxiphoenix/darkstar
scripts/globals/items/plate_of_tentacle_sushi.lua
14
1878
----------------------------------------- -- ID: 5215 -- Item: plate_of_tentacle_sushi -- Food Effect: 30Min, All Races ----------------------------------------- -- HP 20 -- Dexterity 3 -- Agility 3 -- Mind -1 -- Accuracy % 19 (cap 18) -- Ranged Accuracy % 19 (cap 18) -- Double Attack 1 --------------------...
gpl-3.0
guker/nn
Linear.lua
2
2957
local Linear, parent = torch.class('nn.Linear', 'nn.Module') function Linear:__init(inputSize, outputSize) parent.__init(self) self.weight = torch.Tensor(outputSize, inputSize) self.bias = torch.Tensor(outputSize) self.gradWeight = torch.Tensor(outputSize, inputSize) self.gradBias = torch.Tensor(output...
bsd-3-clause
vilarion/Illarion-Content
monster/race_89_red_imp/id_892_cursed.lua
3
1205
--[[ 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
AfuSensi/Mr.Green-MTA-Resources
resources/[admin]/admin/server/admin_screenshot.lua
7
3910
--[[********************************** * * Multi Theft Auto - Admin Panel * * admin_screenshot.lua * * Original File by MCvarial * **************************************]] local con = dbConnect("sqlite", ":/registry.db") dbExec(con, "CREATE TABLE IF NOT EXISTS `admin_screenshots` (`id` INTEGER, `player` TEXT, `serial...
mit
ffxiphoenix/darkstar
scripts/zones/Rabao/npcs/Shiny_Teeth.lua
36
1675
----------------------------------- -- Area: Rabao -- NPC: Shiny Teeth -- Standard Merchant NPC -- @pos -30 8 99 247 ----------------------------------- package.loaded["scripts/zones/Rabao/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/zones/Rabao/Text...
gpl-3.0
ffxiphoenix/darkstar
scripts/globals/weaponskills/blade_to.lua
30
1253
----------------------------------- -- Blade To -- Katana weapon skill -- Skill Level: 100 -- Deals ice elemental damage. Damage varies with TP. -- Aligned with the Snow Gorget & Breeze Gorget. -- Aligned with the Snow Belt & Breeze Belt. -- Element: Ice -- Modifiers: STR:30% ; INT:30% -- 100%TP 200%TP 3...
gpl-3.0
AfuSensi/Mr.Green-MTA-Resources
resources/[gameplay]/-shaders-bloom_fix/c_bloom.lua
4
6191
-- -- c_bloom.lua -- local orderPriority = "-1.0" -- The lower this number, the later the effect is applied Settings = {} Settings.var = {} ---------------------------------------------------------------- -- enableBloom ---------------------------------------------------------------- function enableBloom() if bEffe...
mit
Quenty/NevermoreEngine
src/multipleclickutils/src/Client/MultipleClickUtils.lua
1
3191
--[=[ Utility library for detecting multiple clicks or taps. Not good UX, but good for opening up a debug menus. @class MultipleClickUtils ]=] local require = require(script.Parent.loader).load(script) local Signal = require("Signal") local Maid = require("Maid") local Observable = require("Observable") local Mu...
mit
ProjectSkyfire/SkyFire-Community-Tools
FireAdmin/Locales/huHU.lua
1
10967
------------------------------------------------------------------------------------------------------------- -- -- FireAdmin Version 5.x -- FireAdmin is a derivative of FireAdmin, which is a derivative of MangAdmin. -- -- Copyright (C) 2007 Free Software Foundation, Inc. -- License GPLv3+: GNU GPL version 3 or later ...
gpl-3.0
cryptdb-org/mysql-proxy-0.8-hacks
lib/admin-sql.lua
6
8864
--[[ $%BEGINLICENSE%$ Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is dis...
gpl-2.0
ffxiphoenix/darkstar
scripts/globals/items/pogaca.lua
35
1247
----------------------------------------- -- ID: 5637 -- Item: pogaca -- Food Effect: 5Min, All Races ----------------------------------------- -- HP Recovered While Healing 4 -- MP Recovered While Healing 4 ----------------------------------------- require("scripts/globals/status"); ----------------------...
gpl-3.0
jhegg/eso-crafting-material-level-display
lib/LibStub/LibStub.lua
9
1535
-- 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 communi...
mit
ffxiphoenix/darkstar
scripts/zones/Outer_Horutoto_Ruins/npcs/_5ef.lua
17
3319
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: Ancient Magical Gizmo #2 (F out of E, F, G, H, I, J) -- Involved In Mission: The Heart of the Matter ----------------------------------- package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil; ---------------------------------...
gpl-3.0
farrajota/human_pose_estimation_torch
models/test/hg-generic-ensemblev4.lua
1
1070
paths.dofile('../layers/Residual.lua') local function lin(numIn,numOut,inp) -- Apply 1x1 convolution, stride 1, no padding local dropout = nn.SpatialDropout(0.2)(inp) local bn_relu = nn.ReLU(true)(nn.SpatialBatchNormalization(numIn)(dropout)) return nn.SpatialConvolution(numIn,numOut,1,1,1,1,0,0)(bn_re...
mit
ffxiphoenix/darkstar
scripts/globals/items/slice_of_grilled_hare.lua
35
1397
----------------------------------------- -- ID: 4371 -- Item: slice_of_grilled_hare -- Food Effect: 180Min, All Races ----------------------------------------- -- Strength 2 -- Intelligence -1 -- Attack % 30 -- Attack Cap 15 ----------------------------------------- require("scripts/globals/status"); --...
gpl-3.0
ffxiphoenix/darkstar
scripts/zones/Port_Bastok/npcs/_6k9.lua
34
1073
----------------------------------- -- Area: Port Bastok -- NPC: Door: Arrivals Entrance -- @pos -80 1 -26 236 ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Port_Ba...
gpl-3.0
mcseemka/vlc
share/lua/playlist/pinkbike.lua
97
2080
--[[ $Id$ Copyright © 2009 the VideoLAN team Authors: Konstantin Pavlov (thresh@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 opt...
gpl-2.0
bgarrels/vlc-2.1
share/lua/meta/art/00_musicbrainz.lua
11
3106
--[[ Gets an artwork from the Cover Art Archive or Amazon $Id$ Copyright © 2007-2010 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at ...
gpl-2.0
kuoruan/packages
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/cpu.lua
74
1429
-- stat/cpu collector local function scrape() local stat = get_contents("/proc/stat") -- system boot time, seconds since epoch metric("node_boot_time_seconds", "gauge", nil, string.match(stat, "btime ([0-9]+)")) -- context switches since boot (all CPUs) metric("node_context_switches_total", "counter", n...
gpl-2.0
WUTiAM/uLua2
Assets/LuaScripts/pb/__common_enums_pb.lua
1
3977
-- Generated By protoc-gen-lua Do not Edit local protobuf = require( "depends/protobuf/protobuf" ) --module('__common_enums_pb') local __common_enums_pb = {} _ERRORTYPE = protobuf.EnumDescriptor(); _ERRORTYPE_ERROR_GOODS_ITEM_NOT_ENOUGH_ENUM = protobuf.EnumValueDescriptor(); _ERRORTYPE_ERROR_GOODS_ITEM_AMOUNT_OVERFLO...
mit
ffxiphoenix/darkstar
scripts/commands/exec.lua
54
1121
--------------------------------------------------------------------------------------------------- -- func: exec -- desc: Allows you to execute a Lua string directly from chat. --------------------------------------------------------------------------------------------------- cmdprops = { permission = 4, para...
gpl-3.0
Phrohdoh/OpenRA
mods/d2k/maps/harkonnen-05/harkonnen05-AI.lua
4
2450
--[[ Copyright 2007-2020 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later vers...
gpl-3.0
w1ndf4k3r/cleanflightOpenTxTelemetry
SD/SCRIPTS/UTILS/stickCommands.lua
1
2670
------- STICK COMMAND HANDLING ----------- ----------------------------------------------------------------------------------- --| |-- --|ONLY CALL processStickCommands() ONCE PER SCRIPT, IT WILL NOT WORK OTHERWISE |-- --| ...
gpl-2.0
ffxiphoenix/darkstar
scripts/zones/Zeruhn_Mines/npcs/Makarim.lua
17
1514
----------------------------------- -- Area: Zeruhn Mines -- NPC: Makarim -- Involved In Mission: The Zeruhn Report -- @pos -58 8 -333 172 ----------------------------------- package.loaded["scripts/zones/Zeruhn_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); ...
gpl-3.0
azukiapp/busted
src/languages/zh.lua
1
1234
local s = require('say') s:set_namespace("zh") -- "Pending: test.lua @ 12 \n description s:set("output.pending", "开发中") s:set("output.failure", "失败") s:set("output.success", "成功") s:set("output.pending_plural", "开发中") s:set("output.failure_plural", "失败") s:set("output.success_plural", "成功") s:set("output.pending_ze...
mit
ffxiphoenix/darkstar
scripts/globals/items/green_quiche.lua
35
1461
----------------------------------------- -- ID: 5170 -- Item: green_quiche -- Food Effect: 30Min, All Races ----------------------------------------- -- Magic 10 -- Agility 1 -- Vitality -1 -- Ranged ACC % 7 -- Ranged ACC Cap 15 ----------------------------------------- require("scripts/globals/status"); ...
gpl-3.0
vilarion/Illarion-Content
quest/milo_deepdelver_106_runewick.lua
3
2789
--[[ 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
obi-two/Unofficial_Hope
data/script/TatooineNpcTest4.lua
1
1519
-- Tatooine NPC test -- This script will not start until Zoneserver is ready. print("Tatooine NPC test"); LuaScriptEngine.WaitMSec(1000); local MM = require 'script/TatooineNpcTest2' local myPos = "SR"; local prevPos = ""; -- npcObjects to use in formation. local npcMembers = { }; local spawnPosX = -1371.0 local d...
gpl-3.0
ffxiphoenix/darkstar
scripts/globals/mobskills/Typhoon.lua
25
1072
--------------------------------------------- -- Typhoon -- -- Description: Spins around dealing damage to targets in an area of effect. -- Type: Physical -- Utsusemi/Blink absorb: 2-4 shadows -- Range: 10' radial -- Notes: --------------------------------------------- require("scripts/globals/settings")...
gpl-3.0
floodlight/ivs
oftests/lua/tables.lua
2
1986
-- Copyright 2015, Big Switch Networks, Inc. -- -- Licensed under the Eclipse Public License, Version 1.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.eclipse.org/legal/epl-v10.html -- -- Unless required by...
epl-1.0
ffxiphoenix/darkstar
scripts/globals/items/ulbukan_lobster.lua
18
1342
----------------------------------------- -- ID: 5960 -- Item: Ulbukan Lobster -- Food Effect: 5 Min, Mithra only ----------------------------------------- -- Dexterity -3 -- Vitality 1 -- Defense +9% ----------------------------------------- require("scripts/globals/status"); ----------------------------------------...
gpl-3.0
azekillDIABLO/Voxellar
mods/TOOLS/3d_armor/hazmat_suit/init.lua
2
3137
if not minetest.get_modpath("technic") then minetest.log("warning", "hazmat_suit: Mod loaded but unused.") return end local S = function(s) return s end if minetest.global_exists("intllib") then S = intllib.Getter() end minetest.register_craftitem("hazmat_suit:helmet_hazmat", { description = S("Hazmat Helmet"), ...
lgpl-2.1
Lord-Mohammad/uzzy
plugins/wiki.lua
735
4364
-- http://git.io/vUA4M local socket = require "socket" local JSON = require "cjson" local wikiusage = { "!wiki [text]: Read extract from default Wikipedia (EN)", "!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola", "!wiki search [text]: Search articles on default Wikipedia (EN)", "!...
gpl-2.0
ffxiphoenix/darkstar
scripts/zones/Tahrongi_Canyon/TextIDs.lua
9
2172
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6552; -- You cannot obtain the item <item> come back again after sorting your inventory. ITEM_OBTAINED = 6557; -- Obtained: <item>. GIL_OBTAINED = 6558; -- Obtained <number> gil. KEYITEM_OBTAINED = 6560; -- Obt...
gpl-3.0
ffxiphoenix/darkstar
scripts/zones/Bastok_Markets_[S]/npcs/GentleTiger.lua
31
1775
---------------------------------- -- Area: Bastok Markets [S] -- NPC: GentleTiger -- Type: Quest -- @pos -203 -10 1 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bastok_Markets_[S]/TextIDs"); ---...
gpl-3.0
keshwans/vlc
share/lua/playlist/koreus.lua
57
4037
--[[ Copyright © 2009 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in ...
gpl-2.0
ffxiphoenix/darkstar
scripts/zones/Western_Altepa_Desert/npcs/_3h8.lua
17
1901
----------------------------------- -- Area: Western Altepa Desert -- NPC: _3h8 (Sapphire Column) -- Notes: Mechanism for Altepa Gate -- @pos -499 10 224 125 ----------------------------------- package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil; ----------------------------------- require(...
gpl-3.0
deadknight1/zspammerbot
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
ffxiphoenix/darkstar
scripts/zones/Northern_San_dOria/npcs/Miageau.lua
17
2459
----------------------------------- -- Area: Northern San d'Oria -- NPC: Miageau -- Type: Quest Giver NPC -- @zone: 231 -- @pos 115 0 108 -- -- Starts and Finishes: Waters of Cheval ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ---------------------...
gpl-3.0
ffxiphoenix/darkstar
scripts/zones/RuLude_Gardens/npcs/Archanne.lua
38
1047
----------------------------------- -- Area: Ru'Lude Gardens -- NPC: Archanne -- Type: Event Scene Replayer -- @zone: 243 -- @pos -54.104 10.999 -34.144 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil; --...
gpl-3.0
AfuSensi/Mr.Green-MTA-Resources
resources/[admin]/admin/client/colorpicker/colorpicker.lua
7
9602
sw, sh = guiGetScreenSize() pickerTable = {} colorPicker = {} colorPicker.__index = colorPicker function openPicker(id, start, title) if id and not pickerTable[id] then pickerTable[id] = colorPicker.create(id, start, title) pickerTable[id]:updateColor() return true end return false end function c...
mit
WUTiAM/uLua2
Tools/uLua/Source/LuaJIT-2.1.0-beta2/dynasm/dasm_arm64.lua
33
34807
------------------------------------------------------------------------------ -- DynASM ARM64 module. -- -- Copyright (C) 2005-2016 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ -- Module information: local _...
mit
mahdikord/mahdib0
libs/redis.lua
566
1214
local Redis = require 'redis' local FakeRedis = require 'fakeredis' local params = { host = os.getenv('REDIS_HOST') or '127.0.0.1', port = tonumber(os.getenv('REDIS_PORT') or 6379) } local database = os.getenv('REDIS_DB') local password = os.getenv('REDIS_PASSWORD') -- Overwrite HGETALL Redis.commands.hgetall = ...
gpl-2.0
farrajota/human_pose_estimation_torch
models/test/SML_v4_1.lua
1
10204
--[[ This network is coined SML (Small-Medium-Large). It is a variation of the stacked hourglass with our modified version. It should run faster than the modified hg due to having less convolutions and less stacks, concentrating the bulk of the processing needs on 1/2 networks instead of spreading it th...
mit
Quenty/NevermoreEngine
src/httppromise/src/Server/HttpPromise.lua
1
3237
--[=[ Provides a wrapper around HttpService with a promise API By combining functions in HttpPromise, we can get a generic request result in a very clean way. ```lua local function logToDiscord(body) return HttpPromise.request({ Headers = { ["Content-Type"] = "application/json"; }; Url = DISCORD_LOG...
mit
AfuSensi/Mr.Green-MTA-Resources
resources/[gameplay]/-shaders-contrast/c_rtpool.lua
12
2366
-- -- c_rtpool.lua -- scx, scy = guiGetScreenSize () ----------------------------------------------------------------------------------- -- Pool of render targets ----------------------------------------------------------------------------------- RTPool = {} RTPool.list = {} function RTPool.frameStart() for rt,info...
mit
ffxiphoenix/darkstar
scripts/zones/Port_San_dOria/npcs/Bellue.lua
36
1372
----------------------------------- -- Area: Port San d'Oria -- NPC: Bellue -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/zones/Port_San_dOria/TextID...
gpl-3.0
azekillDIABLO/Voxellar
mods/MAPGEN/mg_villages/name_gen.lua
3
3491
namegen = {}; namegen.prefixes = {'ac','ast','lang','pen','shep','ship'} namegen.suffixes = {'beck','ey','ay','bury','burgh','brough','by','by','caster', 'cester','cum','den','don','field','firth','ford','ham','ham','ham', 'hope','ing','kirk','hill','law','leigh','mouth','ness','pool','shaw', 'stead','ster','tun',...
lgpl-2.1
ffxiphoenix/darkstar
scripts/globals/items/blowfish.lua
18
1257
----------------------------------------- -- ID: 5812 -- Item: Blowfish -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 1 -- Mind -3 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ----------...
gpl-3.0
hewei-chn/resurgence
lib/proxy/auto-config.lua
6
6670
--[[ $%BEGINLICENSE%$ Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is dis...
gpl-2.0
ostinelli/gin
spec/spec/runners/integration_spec.lua
4
6179
require 'spec.spec_helper' describe("Integration", function() before_each(function() IntegrationRunner = require 'gin.spec.runners.integration' end) after_each(function() package.loaded['gin.spec.runners.integration'] = nil IntegrationRunner = nil end) describe(".encode_t...
mit
AfuSensi/Mr.Green-MTA-Resources
resources/[gameplay]/gcshop/horns/horns_s.lua
3
7915
local price = 1500 local unlimitedUses = 5000 local canHornBeUsed = {} local howManyTimes = {} local newMap = nil local coolOffTimer = {} local coolOff = {} local keyTable = { "mouse1", "mouse2", "mouse3", "mouse4", "mouse5", "mouse_wheel_up", "mouse_wheel_down", "arrow_l", "arrow_u", "arrow_r", "arrow_d", "0", "1", ...
mit
Ne02ptzero/Grog-Knight
Tools/BuildScripts/lua-lib/penlight-1.0.2/tests/test-set.lua
10
3233
class = require 'pl.class' M = require 'pl.Map' S = require 'pl.Set' List = require 'pl.List' asserteq = require 'pl.test' . asserteq asserteq2 = require 'pl.test' . asserteq2 MultiMap = require 'pl.MultiMap' OrderedMap = require 'pl.OrderedMap' s1 = S{1,2} s2 = S{1,2} -- equality asserteq(s1,s2) -- union asserteq(S{...
apache-2.0
ffxiphoenix/darkstar
scripts/globals/spells/raiton_ni.lua
17
1255
----------------------------------------- -- Spell: Raiton: Ni -- Deals lightning damage to an enemy and lowers its resistance against earth. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast...
gpl-3.0
hughperkins/cltorch
src/test/test-tensor.lua
1
23607
-- this is mostly for trying things -- for unit tests, see cltorch-unit-tensor.lua print("running require cltorch...") require 'cltorch' print("... require cltorch done") print(cltorch.getDeviceProperties(cltorch.getDevice()).deviceName) if os.getenv('TRACE') ~= nil then cltorch.setTrace(1) end if false then a ...
bsd-3-clause
fusedl/ardupilot
Tools/CHDK-Scripts/kap_uav.lua
183
28512
--[[ 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 @title KAP UAV 3.1 @param i Shot Interval (sec) @default i 15 @range i 2 120 @param s Total Shots (0=infinite) @default s 0 @range ...
gpl-3.0
ffxiphoenix/darkstar
scripts/globals/items/eggplant.lua
35
1203
----------------------------------------- -- ID: 4388 -- Item: eggplant -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility 3 -- Vitality -5 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemChec...
gpl-3.0
amiranony/anonybot
bot/utils.lua
356
14963
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/...
gpl-2.0
federicodotta/proxmark3
client/scripts/emul2html.lua
27
1676
-- The getopt-functionality is loaded from pm3/getopt.lua -- Have a look there for further details getopt = require('getopt') bin = require('bin') dumplib = require('html_dumplib') example = "script run emul2html -o dumpdata.eml " author = "Martin Holst Swende" usage = "script run htmldump [-i <file>] [-o <file>]" des...
gpl-2.0
Quenty/NevermoreEngine
src/rotatinglabel/src/Client/RotatingCharacter.lua
1
4334
--[=[ Character that rotates for animations @class RotatingCharacter ]=] local require = require(script.Parent.loader).load(script) local Math = require("Math") local Spring = require("Spring") local SpringUtils = require("SpringUtils") local RotatingCharacter = {} RotatingCharacter.ClassName = "RotatingCharacter"...
mit
hfjgjfg/uzzz
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
SeonghoBaek/RealtimeCamera
openface/batch-represent/batch-represent.lua
14
2090
local ffi = require 'ffi' local batchNumber, nImgs = 0 torch.setdefaulttensortype('torch.FloatTensor') function batchRepresent() local loadSize = {3, opt.imgDim, opt.imgDim} print(opt.data) local cacheFile = paths.concat(opt.data, 'cache.t7') print('cache lotation: ', cacheFile) local dumpLoader ...
apache-2.0
madmaxoft/EBW-NearestAvoid
Main.lua
1
9380
-- Main.lua -- Implements the entire NearestAvoid AI controller -- The bots target the nearest enemy, but avoid going through a friend bot in front of it --- Returns true if the first number is between the second and third numbers, inclusive local function isBetweenOrEqual(a_Val, a_Bounds1, a_Bounds2) -- Check ...
unlicense
usstwxy/luarocks
lfw/rocks/luafilesystem/1.5.0-1/tests/test.lua
40
4634
#!/usr/local/bin/lua5.1 local tmp = "/tmp" local sep = "/" local upper = ".." require"lfs" print (lfs._VERSION) function attrdir (path) for file in lfs.dir(path) do if file ~= "." and file ~= ".." then local f = path..sep..file print ("\t=> "..f.." <=") local attr = lfs.attributes (f) assert (type(att...
mit
ffxiphoenix/darkstar
scripts/globals/items/vulcan_claymore.lua
42
1451
----------------------------------------- -- ID: 18379 -- Item: Vulcan Claymore -- Additional Effect: Fire Damage -- Enchantment: Enfire ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onAdditionalEffect Action -----...
gpl-3.0
ffxiphoenix/darkstar
scripts/zones/Windurst_Woods/npcs/Dahjal.lua
38
1038
----------------------------------- -- Area: Windurst Woods -- NPC: Dahjal -- Type: Conquest Troupe -- @zone: 241 -- @pos 11.639 1.267 -57.706 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; -----------...
gpl-3.0
amiranony/anonybot
plugins/lyrics.lua
695
2113
do local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs' local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5' local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect' local function getInfo(query) print('Getting info of ' .. query) local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY ...
gpl-2.0
ffxiphoenix/darkstar
scripts/zones/Port_Bastok/npcs/Ominous_Cloud.lua
19
5284
----------------------------------- -- Area: Port Bastok -- NPC: Ominous Cloud -- Type: Traveling Merchant NPC -- @zone: 236 -- @pos 146.962 7.499 -63.316 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; --...
gpl-3.0
ffxiphoenix/darkstar
scripts/zones/Dynamis-Valkurm/mobs/Adamantking_Effigy.lua
12
2272
----------------------------------- -- Area: Dynamis Valkurm -- NPC: Adamantking_Effigy ----------------------------------- package.loaded["scripts/zones/Dynamis-Valkurm/TextIDs"] = nil; ----------------------------------- require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Valkurm/TextIDs"); ...
gpl-3.0
Jigoku/starphase
src/hud.lua
1
15395
--[[ * Copyright (C) 2016-2019 Ricky K. Thomson * * 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 3 of the License, or * (at your option) any later version. * This program...
gpl-3.0
chasing0819/Sample_CPP_Cocos2dx
tools/cocos2d-console/plugins/plugin_luacompile/bin/lua/jit/bcsave.lua
78
18123
---------------------------------------------------------------------------- -- LuaJIT module to save/list bytecode. -- -- Copyright (C) 2005-2013 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
mit
Shulyaka/packages
net/prosody/files/prosody.cfg.lua
65
9428
-- Prosody Example Configuration File -- -- Information on configuring Prosody can be found on our -- website at https://prosody.im/doc/configure -- -- Tip: You can check that the syntax of this file is correct -- when you have finished by running this command: -- prosodyctl check config -- If there are any errors,...
gpl-2.0
ffxiphoenix/darkstar
scripts/globals/items/weavers_belt.lua
30
1206
----------------------------------------- -- ID: 15447 -- Item: Weaver's Belt -- Enchantment: Synthesis image support -- 2Min, All Races ----------------------------------------- -- Enchantment: Synthesis image support -- Duration: 2Min -- Clothcraft Skill +3 ----------------------------------------- requir...
gpl-3.0
ffxiphoenix/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Zaranf.lua
34
1031
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Zaranf -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); -----------...
gpl-3.0
powerboat9/computercraft
apis/Learn_v1/core.lua
1
1766
function findInsertSpot(t) lastK = 0 for k, v in pairs(t) do if lastK + 1 < k then return lastK + 1 elseif v == nil then return k else lastK++ end end end local nodeMeta = { name = "(Unregistered)" binary = true value = 0 ...
mit
ffxiphoenix/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Gevarg.lua
38
1052
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Gevarg -- Type: Past Event Watcher -- @zone: 94 -- @pos -46.448 -6.312 212.384 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = ni...
gpl-3.0
Ankoku/df-webfort
dist/shared/hack/scripts/webfort/deify.lua
2
2426
-- Renames a random dwarf or deity. local json = require 'dkjson' local utils = require 'utils' function get_hfig(hf_id) return utils.binsearch(df.global.world.history.figures, hf_id, 'id') end function unit_to_hfig(unit) if unit and unit.hist_figure_id then return get_hfig(unit.hist_figure_id) end return nil e...
isc
Ne02ptzero/Grog-Knight
Tools/BuildScripts/lua-lib/penlight-1.0.2/lua/pl/pretty.lua
12
8296
--- Pretty-printing Lua tables. -- Also provides a sandboxed Lua table reader and -- a function to present large numbers in human-friendly format. -- -- Dependencies: `pl.utils`, `pl.lexer` -- @module pl.pretty local append = table.insert local concat = table.concat local utils = require 'pl.utils' local lexer = requi...
apache-2.0
ffxiphoenix/darkstar
scripts/zones/RuLude_Gardens/npcs/Rainhard.lua
38
1037
----------------------------------- -- Area: Ru'Lude Gardens -- NPC: Rainhard -- Type: Standard NPC -- @zone: 243 -- @pos -2.397 -5.999 68.749 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil; ------------...
gpl-3.0
farrajota/human_pose_estimation_torch
models/test/hg-generic-maxpool.lua
1
1792
paths.dofile('../layers/Residual.lua') local function hourglass(n, f, inp) -- Upper branch local up1 = Residual(f,f)(inp) -- Lower branch local pool = nn.SpatialMaxPooling(2,2,2,2)(inp) local low1 = Residual(f,f)(pool) local low2 if n > 1 then low2 = hourglass(n-1,f,low1) else low2 = ...
mit
ffxiphoenix/darkstar
scripts/globals/spells/bluemagic/reactor_cool.lua
17
2109
----------------------------------------- -- Spell: Reactor Cool -- Enhances defense and covers you with magical ice spikes. Enemies that hit you take ice damage -- Spell cost: 28 MP -- Monster Type: Luminions -- Spell Type: Magical (Ice) -- Blue Magic Points: 5 -- Stat Bonus: INT+3 MND+3 -- Level: 74 -- Casti...
gpl-3.0
vilarion/Illarion-Content
craft/base/crafts.lua
1
31327
--[[ 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
lxl1140989/sdk-for-tb
feeds/luci/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/iptables.lua
86
1131
--[[ Luci statistics - iptables plugin diagram definition (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 License at http://www.a...
gpl-2.0
ffxiphoenix/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Duke_Gomory.lua
16
1252
----------------------------------- -- Area: Dynamis Xarcabard -- NPC: Duke Gomory ----------------------------------- require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- -- onMobEngaged ----------------------------------- function ...
gpl-3.0
TeleDALAD/spam1
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
ffxiphoenix/darkstar
scripts/globals/mobskills/Throat_Stab.lua
18
1115
--------------------------------------------- -- Throat Stab -- -- Description: Deals damage to a single target reducing their HP to 5%. Resets enmity. -- Type: Physical -- Utsusemi/Blink absorb: No -- Range: Single Target -- Notes: Very short range, easily evaded by walking away from it. ----------------...
gpl-3.0
lxl1140989/sdk-for-tb
feeds/luci/applications/luci-openvpn/luasrc/model/cbi/openvpn-basic.lua
71
3274
--[[ 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$ ]]-- requ...
gpl-2.0
Ekdohibs/minetest_game
mods/default/torch.lua
13
4487
--[[ Torch mod - formerly mod "Torches" ====================== (c) Copyright BlockMen (2013-2015) (C) Copyright sofar <sofar@foo-projects.org> (2016) This mod changes the default torch drawtype from "torchlike" to "mesh", giving the torch a three dimensional appearance. The mesh contains the proper pixel mapping to...
lgpl-2.1