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
MinetestForFun/server-minetestforfun-creative
mods/colouredstonebricks/init.lua
5
1581
--------------------------------------------- -- Coloured Stone Bricks Mod by CraigyDavi -- --------------------------------------------- local COLOURS = { "Black", "Cyan", "Brown", "Dark Blue", "Dark Green", "Dark Grey", "Dark Pink", "Green", "Grey", "Orange", "Pink", "Purple", "Red", "Whi...
unlicense
rpetit3/darkstar
scripts/zones/La_Theine_Plateau/TextIDs.lua
12
2213
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6384; -- Obtained: <item>. GIL_OBTAINED = 6385; -- Obtained <number> gil. KEYITEM_OBTAINED = 6387; -- Obtained...
gpl-3.0
rpetit3/darkstar
scripts/zones/Castle_Zvahl_Keep/npcs/HomePoint#1.lua
27
1276
----------------------------------- -- Area: Castle_Zvahl_Keep -- NPC: HomePoint#1 -- @pos -554 -70 66 162 ----------------------------------- package.loaded["scripts/zones/Castle_Zvahl_Keep/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Castle_Zvahl_Keep/TextIDs"); require("scripts/glo...
gpl-3.0
jaspervandenberg/roselabs_project1
esp/firmware.lua
1
4894
uart.setup(0, 115200, 8, 0, 1, 1) dofile("vars.lua") commun = {} commun.setup = function() enduser_setup.start( function() print("Connected to wifi as:" .. wifi.sta.getip()) end, function(err, str) print("enduser_setup: Err #" .. err .. ": " .. str) end ); tmr.alarm(2, 1000, 1, function(...
mit
rpetit3/darkstar
scripts/globals/missions.lua
10
56967
----------------------------------- -- Areas ID mission step var ----------------------------------- SANDORIA = 0; -- MissionStatus BASTOK = 1; -- MissionStatus WINDURST = 2; -- MissionStatus ZILART = 3; -- ZilartStatus TOAU = 4; -- AhtUrganStatus WOTG = 5; -- AltanaStatus COP = 6; -- Prom...
gpl-3.0
rpetit3/darkstar
scripts/zones/Halvung/npcs/qm4.lua
30
1311
----------------------------------- -- Area: Halvung -- NPC: ??? (Spawn Achamoth(ZNM T3)) -- @pos -34 10 336 62 ----------------------------------- package.loaded["scripts/zones/Halvung/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Halvung/TextIDs"); require("scripts/globals/status"); --...
gpl-3.0
AMIRUJK/yapop
plugins/anti-bot.lua
369
3064
local function isBotAllowed (userId, chatId) local hash = 'anti-bot:allowed:'..chatId..':'..userId local banned = redis:get(hash) return banned end local function allowBot (userId, chatId) local hash = 'anti-bot:allowed:'..chatId..':'..userId redis:set(hash, true) end local function disallowBot (userId, ch...
gpl-2.0
vseledkin/april-ann
packages/bayesian/test/demo_metropolis.lua
3
1295
local gp = require "april_tools.gnuplot"() local rnd = random(1234) local x = stats.dist.normal(0,1):sample(rnd, matrix(2,1)):transpose() -- A = inv([1, 1.98; 1.98, 4]); local A = matrix(2,2,{ 50.251256, -24.874372, -24.874372, 12.562814 }) function plot_samples(samples) local data = matrix...
gpl-3.0
nokizorque/ucd
UCDbc/client.lua
1
1986
local endPoses = { {x = 1477.3679, y = 1174.1127, z = 10.8203, rot = 0}, {x = 1457.6606, y = 2025.8295, z = 10.8203, rot = 180}, {x = 1583.4188, y = 2296.4595, z = 14.8222, rot = 270}, {x = 1874.9923, y = 2339.6074, z = 16.0224, rot = 270}, {x = 1676.6254, y = 1449.4098, z = 10.7839, rot = 270}, {x = 1910.9481, y...
mit
omid1212/wez
plugins/yoda.lua
642
1199
local ltn12 = require "ltn12" local https = require "ssl.https" -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local mashape = load_from_file('data/mashape.lua', { api_key = '' }) local function request(text) local api = "https://yoda.p.mashape.com/yoda?" text = ...
gpl-2.0
disslove7777/Mj.Dl-Bot
plugins/yoda.lua
642
1199
local ltn12 = require "ltn12" local https = require "ssl.https" -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local mashape = load_from_file('data/mashape.lua', { api_key = '' }) local function request(text) local api = "https://yoda.p.mashape.com/yoda?" text = ...
gpl-2.0
alireza98/y
plugins/yoda.lua
642
1199
local ltn12 = require "ltn12" local https = require "ssl.https" -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local mashape = load_from_file('data/mashape.lua', { api_key = '' }) local function request(text) local api = "https://yoda.p.mashape.com/yoda?" text = ...
gpl-2.0
rpetit3/darkstar
scripts/zones/Maze_of_Shakhrami/npcs/_5i0.lua
13
1732
----------------------------------- -- Area: Maze of Shakhrami -- Quest: Corsair Af1 "Equiped for All Occasions" -- NPC: Iron Door (Spawn Lost Soul) -- @pos 247.735 18.499 -142.267 198 ----------------------------------- package.loaded["scripts/zones/Maze_of_Shakhrami/TextIDs"] = nil; ----------------------------------...
gpl-3.0
rpetit3/darkstar
scripts/zones/Arrapago_Reef/npcs/qm4.lua
30
1327
----------------------------------- -- Area: Arrapago Reef -- NPC: ??? (Spawn Nuhn(ZNM T3)) -- @pos -451 -7 389 54 ----------------------------------- package.loaded["scripts/zones/Arrapago_Reef/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Arrapago_Reef/TextIDs"); require("scripts/global...
gpl-3.0
chrizel/Yzis
tests/scripts/test_vim_to_lua.lua
2
5788
--[[ Test the vim_to_lua converter with many extracts of the script vst.vim. Description: A unit testing framework Author: Philippe Fremy <phil@freehackers.org> Version: 0.1 ]]-- require('luaunit') require('utils') require('vim_to_lua') TestVimToLua = {} --class function TestVimToLua:assertProcessStringList...
gpl-2.0
dmccuskey/dmc-objects
examples/Corona-Physics-ManyCrates/component/crates.lua
1
5659
--====================================================================-- -- Crate Class -- -- Sample code is MIT licensed, the same license which covers Lua itself -- http://en.wikipedia.org/wiki/MIT_License -- Copyright (C) 2011-2015 David McCuskey. All Rights Reserved. --==============================================...
mit
rpetit3/darkstar
scripts/zones/Crawlers_Nest/npcs/Olavia.lua
13
1025
----------------------------------- -- Area: Crawlers' Nest -- NPC: Olavia -- Type: Escort NPC -- @pos 379.638 -33.051 -0.533 197 ----------------------------------- package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Crawlers_Nest/TextIDs"); --...
gpl-3.0
rpetit3/darkstar
scripts/zones/The_Celestial_Nexus/bcnms/celestial_nexus.lua
30
2099
----------------------------------- -- Area: The Celestial Nexus -- Name: The Celestial Nexus (ZM16) ----------------------------------- package.loaded["scripts/zones/The_Celestial_Nexus/TextIDs"] = nil; ------------------------------------- require("scripts/globals/titles"); require("scripts/globals/missions"); requi...
gpl-3.0
rpetit3/darkstar
scripts/zones/Beaucedine_Glacier/Zone.lua
17
3118
----------------------------------- -- -- Zone: Beaucedine_Glacier (111) -- ----------------------------------- package.loaded[ "scripts/zones/Beaucedine_Glacier/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Beaucedine_Glacier/TextIDs"); require("scripts/globals/missions"); require("scrip...
gpl-3.0
Nikaoto/Shamen
obj/Fireball.lua
1
1460
package.path = package.path .. ";../?.lua" Object = require "lib/classic" Fireball = Object:extend() Fireball.sprite = love.graphics.newImage("res/fireball.png") Fireball.ballSpeed = 700 Fireball.DAMAGE_AMOUNT = 5 Fireball.RADIUS = 20 function Fireball:new(startPos, target) self.target = target self.x , self.y, s...
mit
root4r08/RoOt3r08
plugins/invite.lua
34
1291
do local function callbackres(extra, success, result) --vardump(result) local user = 'user#id'..result.peer_id local chat = 'chat#id'..extra.chatid local channel = 'channel#id'..extra.chatid if is_banned(result.id, extra.chatid) then send_large_msg(chat, 'User is banned.') send_large_msg(channel, ...
gpl-2.0
rpetit3/darkstar
scripts/zones/Palborough_Mines/npcs/HomePoint#1.lua
27
1276
----------------------------------- -- Area: Palborough_Mines -- NPC: HomePoint#1 -- @pos 109 -38.5 -147 143 ----------------------------------- package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Palborough_Mines/TextIDs"); require("scripts/glo...
gpl-3.0
rpetit3/darkstar
scripts/zones/Windurst_Woods/npcs/Boizo-Naizo.lua
13
1605
----------------------------------- -- Area: Windurst Woods -- NPC: Boizo-Naizo -- Involved in Quest: Riding on the Clouds -- @zone 241 -- @pos -9.581 -3.75 -26.062 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/gl...
gpl-3.0
spacebuild/spacebuild
lua/entities/nature_plant/cl_init.lua
4
5217
include('shared.lua') language.Add("nature_planet", "Plant") function ENT:DoNormalDraw(bDontDrawModel) local mode = self:GetNetworkedInt("overlaymode") if (LocalPlayer():GetEyeTrace().Entity == self and EyePos():Distance(self:GetPos()) < 256 and mode ~= 0) then local trace = LocalPlayer():GetEyeTrace(...
apache-2.0
tommo/gii
lib/lua/mock_edit/EditorCanvas/CanvasNavigate.lua
1
2583
module 'mock_edit' -------------------------------------------------------------------- --CanvasNavigate -------------------------------------------------------------------- CLASS: CanvasNavigate( EditorEntity ) function CanvasNavigate:__init( option ) self.option = option end function CanvasNavigate:onLoad() loca...
mit
lexa/awesome
lib/awful/client.lua
1
31885
--------------------------------------------------------------------------- --- Useful client manipulation functions. -- -- @author Julien Danjou &lt;julien@danjou.info&gt; -- @copyright 2008 Julien Danjou -- @release @AWESOME_VERSION@ -- @module awful.client ------------------------------------------------------------...
gpl-2.0
renchunxiao/luajson
lua/json/encode/calls.lua
9
1635
--[[ Licensed according to the included 'LICENSE' document Author: Thomas Harning Jr <harningt@gmail.com> ]] local table = require("table") local table_concat = table.concat local select = select local getmetatable, setmetatable = getmetatable, setmetatable local assert = assert local jsonutil = require("json.util"...
mit
nokizorque/ucd
[shaders]/shader_water/c_water.lua
1
1134
-- -- c_water.lua -- addEventHandler( "onClientResourceStart", resourceRoot, function() -- Version check if getVersion ().sortable < "1.1.0" then outputChatBox( "Resource is not compatible with this client." ) return end -- Create shader local myShader, tec = dxCreateShader ( "water.fx" ) if not ...
mit
dmccuskey/dmc-objects
examples/DMC-ufo/component/ufo.lua
1
8208
--====================================================================-- -- UFO Class -- -- by David McCuskey -- -- Sample code is MIT licensed, the same license which covers Lua itself -- http://en.wikipedia.org/wiki/MIT_License -- Copyright (C) 2011-2015 David McCuskey. All Rights Reserved. --========================...
mit
nxhack/packages
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/wifi.lua
33
1541
local ubus = require "ubus" local iwinfo = require "iwinfo" local function scrape() local metric_wifi_network_quality = metric("wifi_network_quality","gauge") local metric_wifi_network_bitrate = metric("wifi_network_bitrate","gauge") local metric_wifi_network_noise = metric("wifi_network_noise_dbm","gauge") lo...
gpl-2.0
rpetit3/darkstar
scripts/globals/weaponskills/exenterator.lua
18
2085
----------------------------------- -- Exenterator -- Skill level: 357 -- Terpsichore: Aftermath effect varies with TP. -- In order to obtain Exenterator, the quest Martial Mastery must be completed. -- Description: Delivers a fourfold attack that lowers enemy's params.accuracy. Effect duration varies with TP. -- Align...
gpl-3.0
rpetit3/darkstar
scripts/zones/Meriphataud_Mountains/npcs/Muzeze.lua
13
1050
----------------------------------- -- Area: Meriphataud Mountains -- NPC: Muzeze -- Type: Armor Storer -- @pos -6.782 -18.428 208.185 119 ----------------------------------- package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Meriphataud...
gpl-3.0
Redoxee/Love2DQuickStart
5-Damping/Game/conf.lua
7
2467
function love.conf(t) --__DEBUG__ = t.identity = "Tutorial" -- The name of the save directory (string) t.version = "0.9.0" -- The LÖVE version this game was made for (string) t.console = true -- Attach a console (boolean, Windows only) t.window.title...
apache-2.0
MinetestForFun/server-minetestforfun-creative
mods/shutdown/init.lua
6
2391
--[[ shutdown par turbogus, code sous licence gpl2 ou sup déclaration du "timer" par Jat ( du mod annonce ) Affiche l'heure dans le chat toute les minutes et arrête votre serveur "proprement" à une heure précise afin de créer une sauvegarde ]]-- -- compatibility with soundset mod local SOUNDVOLUME = 1 local get_volu...
unlicense
opentechinstitute/luci-commotion-linux
libs/lucid-http/luasrc/lucid/http/LuciWebPublisher.lua
52
1651
--[[ LuCId HTTP-Slave (c) 2009 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$ ]]-- local ipairs, pcall, ...
apache-2.0
rpetit3/darkstar
scripts/globals/items/plate_of_urchin_sushi.lua
17
1538
----------------------------------------- -- ID: 5151 -- Item: plate_of_urchin_sushi -- Food Effect: 30Min, All Races ----------------------------------------- -- Health 40 -- Strength 1 -- Vitality 5 -- Accuracy % 15 -- Ranged ACC % 15 -- Sleep Resist 5 ----------------------------------------- require("scripts/globa...
gpl-3.0
vfedoroff/prosody-modules
mod_couchdb/couchdb/json.lib.lua
32
8634
local type = type; local t_insert, t_concat, t_remove = table.insert, table.concat, table.remove; local s_char = string.char; local tostring, tonumber = tostring, tonumber; local pairs, ipairs = pairs, ipairs; local next = next; local error = error; local newproxy, getmetatable = newproxy, getmetatable; local...
mit
MutterOberin/OpenRA
mods/ra/maps/intervention/intervention.lua
6
11034
BeachheadTrigger = { CPos.New(120, 90), CPos.New(120, 89), CPos.New(120, 88), CPos.New(121, 88), CPos.New(122, 88), CPos.New(123, 88), CPos.New(124, 88), CPos.New(125, 88), CPos.New(126, 88), CPos.New(126, 89), CPos.New(127, 89), CPos.New(128, 89), CPos.New(128, 90), CPos.New(129, 90), CPos.New(130, 90), CPos.New(13...
gpl-3.0
rpetit3/darkstar
scripts/globals/abilities/rapture.lua
27
1094
----------------------------------- -- Ability: Rapture -- Enhances the potency of your next white magic spell. -- Obtained: Scholar Level 55 -- Recast Time: Stratagem Charge -- Duration: 1 white magic spell or 60 seconds, whichever occurs first -- -- Level |Charges |Recharge Time per Charge -- ----- -------- -----...
gpl-3.0
rpetit3/darkstar
scripts/zones/Bearclaw_Pinnacle/Zone.lua
32
1565
----------------------------------- -- -- Zone: Bearclaw_Pinnacle (6) -- ----------------------------------- package.loaded["scripts/zones/Bearclaw_Pinnacle/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Bearclaw_Pinnacle/TextIDs"); -------------------...
gpl-3.0
rpetit3/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Dhea_Prandoleh.lua
31
2362
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Dhea Prandoleh -- Type: Standard NPC -- @zone: 94 -- @pos 1 -1 15 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil; ---------...
gpl-3.0
padrinoo1/geek
bot/creedbot.lua
1
15426
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") VERSION = '1.0' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then retu...
gpl-2.0
dwmw2/luci
modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/profile.lua
68
2553
-- Copyright 2011-2012 Manuel Munz <freifunk at somakoma dot de> -- Licensed to the public under the Apache License 2.0. local uci = require "luci.model.uci".cursor() local ipkg = require "luci.model.ipkg" local community = uci:get("freifunk", "community", "name") if community == nil then luci.http.redirect(luci.dis...
apache-2.0
MinetestForFun/server-minetestforfun-creative
mods/WorldEdit/worldedit/compatibility.lua
5
2033
--- Compatibility functions. -- @module worldedit.compatibility local function deprecated(new_func) local info = debug.getinfo(1, "n") local msg = "worldedit." .. info.name .. "() is deprecated." if new_func then msg = msg .. " Use worldedit." .. new_func .. "() instead." end minetest.log("deprecated", msg) en...
unlicense
tonkah/Browser
lib/taborder.lua
7
2872
-------------------------------------------- -- Rules for where to put new tabs -- -- © 2010 Henrik Hallberg <henrik@k2h.se> -- -------------------------------------------- -- When a new tab is opened in a window, a tab order function is called to -- determine where in the tab list it should be placed. window.n...
gpl-3.0
rpetit3/darkstar
scripts/zones/PsoXja/npcs/_096.lua
13
2831
----------------------------------- -- Area: Pso'Xja -- NPC: _096 (Stone Gate) -- Notes: Spawns Gargoyle when triggered -- @pos 290.000 -1.925 -98.399 9 ----------------------------------- package.loaded["scripts/zones/PsoXja/TextIDs"] = nil; ----------------------------------- require("scripts/zones/PsoXja/TextIDs...
gpl-3.0
sys4-fr/server-minetestforfun
mods/warps/init.lua
8
7550
--[[ Copyright (C) 2015 - Auke Kok <sofar@foo-projects.org> "warps" 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 2.1 of the license, or (at your option) any later version. --]] warps ...
unlicense
omidtarh/testbot
plugins/youtube.lua
644
1722
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end function get_yt_data (yt_code) local url = 'https://www.googleapis.com/yo...
gpl-2.0
rafrombrc/push_derived
hindsight/io_modules/derived_stream/redshift/sql.lua
5
2893
-- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at http://mozilla.org/MPL/2.0/. local M = {} local error = error local ipairs = ipairs local read_message = read_message local tostring = tostring lo...
mpl-2.0
rpetit3/darkstar
scripts/globals/abilities/pets/aerial_blast.lua
30
1113
--------------------------------------------------- -- Aerial Blast --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/monstertpmoves"); -------------------------------------------------...
gpl-3.0
dwmw2/luci
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/olsrd.lua
68
3418
-- Copyright 2011 Manuel Munz <freifunk at somakoma dot de> -- Licensed to the public under the Apache License 2.0. module("luci.statistics.rrdtool.definitions.olsrd", package.seeall) function rrdargs( graph, plugin, plugin_instance, dtype ) local g = { } if plugin_instance == "routes" then g[#g+1] = { ...
apache-2.0
karpathy/nn
L1HingeEmbeddingCriterion.lua
63
1160
local L1HingeEmbeddingCriterion, parent = torch.class('nn.L1HingeEmbeddingCriterion', 'nn.Criterion') function L1HingeEmbeddingCriterion:__init(margin) parent.__init(self) margin = margin or 1 self.margin = margin self.gradInput = {torch.Tensor(), torch.Tensor()} end function L1HingeEmbeddingCriterion:upd...
bsd-3-clause
luizfeliperj/nodemcu-firmware
lua_examples/ucglib/GT_clip.lua
30
2136
local M, module = {}, ... _G[module] = M function M.run() -- make this a volatile module: package.loaded[module] = nil print("Running component clip...") disp:setColor(0, 0x00, 0xd1, 0x5e) -- dark green disp:setColor(1, 0xff, 0xf7, 0x61) -- yellow disp:setColor(2, 0xd1, 0xc7, 0x00) -- dark...
mit
rpetit3/darkstar
scripts/zones/Nashmau/npcs/Tsutsuroon.lua
13
1296
----------------------------------- -- Area: Nashmau -- NPC: Tsutsuroon -- Type: Tenshodo Merchant -- @pos -15.193 0.000 31.356 53 ----------------------------------- package.loaded["scripts/zones/Nashmau/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/global...
gpl-3.0
dkogan/notion
mod_menu/mod_menu.lua
1
3335
-- -- ion/mod_menu/mod_menu.lua -- Menu opening helper routines. -- -- Copyright (c) Tuomo Valkonen 2004-2009. -- -- See the included file LICENSE for details. -- -- This is a slight abuse of the package.loaded variable perhaps, but -- library-like packages should handle checking if they're loaded instead of -- confus...
lgpl-2.1
MinetestForFun/server-minetestforfun-creative
mods/_misc/chatcommands.lua
9
1771
-- -- Edited chat commands from core -- -- /shutdown -- /ban -- /itemdb minetest.register_chatcommand("shutdown", { description = "shutdown server", privs = {server=true}, func = function(name, param) minetest.log("action", name .. " shuts down server") minetest.request_shutdown() minetest.chat_send_all(name...
unlicense
rpetit3/darkstar
scripts/zones/Temenos/mobs/Kindred_Warrior.lua
28
1104
----------------------------------- -- Area: Temenos N T -- NPC: Kindred_Warrior ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); ----------------------------...
gpl-3.0
vlapsley/outback
mods/pipeworks/lua_tube.lua
1
28492
-- ______ -- | -- | -- | __ ___ _ __ _ _ -- | | | | | |\ | | |_| | | | | |_ |_| -- |___| |______ |__| | \| | | \ |__| |_ |_ |_ |\ tube -- | -- | -- -- Reference -- ports = get_real_port_states(pos): gets if inputs are powered from outside -- newport = ...
lgpl-2.1
rpetit3/darkstar
scripts/zones/Wajaom_Woodlands/npcs/leypoint.lua
13
2584
----------------------------------- -- Area: Wajaom Woodlands -- NPC: Leypoint -- Teleport point, Quest -- NAVIGATING THE UNFRIENDLY SEAS RELATED -- -- @pos -200.027 -8.500 80.058 51 ----------------------------------- require("scripts/zones/Wajaom_Woodlands/TextIDs"); require("scripts/globals/settings"); require("sc...
gpl-3.0
ddouglascarr/rooset
lfframework/framework/env/execute/_create_sorted_execution_list.lua
1
1067
function execute._create_sorted_execution_list(add_paths, execute_func) local entries = {} add_paths(function(...) local full_path = encode.file_path(WEBMCP_BASE_PATH, "app", ...) local relative_path = encode.file_path("", ...) local filenames = extos.listdir(full_path) if filenames then t...
mit
rpetit3/darkstar
scripts/zones/Bastok_Mines/npcs/HomePoint#1.lua
27
1269
----------------------------------- -- Area: Bastok Mines -- NPC: HomePoint#1 -- @pos 39.189 0.001 -42.618 234 ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Bastok_Mines/TextIDs"); require("scripts/globals/h...
gpl-3.0
nokizorque/ucd
guieditor/client/dx_elements/dx_editbox.lua
2
16569
--[[-------------------------------------------------- GUI Editor client dx_editbox.lua creates a dx editbox widget for use in the right click menus --]]-------------------------------------------------- local gKeysPressed = {} local gCapslock = false DX_Editbox = {} DX_Editbox.__index = DX_Editbox DX_Editbox.i...
mit
tenvick/hugula
Client/Assets/Lua/demo/binding_demo/binding_demo.lua
1
2066
------------------------------------------------ -- Copyright © 2013-2020 Hugula: Arpg game Engine -- -- author pu ------------------------------------------------ local View = View local VMState = VMState local VMGroup = VMGroup ---@class binding_demo:VMBase ---@type binding_demo local binding_demo = VMBase() --...
mit
TakingInitiative/wesnoth
data/ai/micro_ais/cas/ca_forest_animals_new_rabbit.lua
3
2757
local H = wesnoth.require "lua/helper.lua" local W = H.set_wml_action_metatable {} local AH = wesnoth.require "ai/lua/ai_helper.lua" local ca_forest_animals_new_rabbit = {} function ca_forest_animals_new_rabbit:evaluation(cfg) -- Put new rabbits on map if there are fewer than cfg.rabbit_number -- To end this,...
gpl-2.0
dani-sj/mahan03
plugins/stats.lua
18
3988
do -- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_prin...
gpl-2.0
rpetit3/darkstar
scripts/zones/Port_Bastok/npcs/_6kt.lua
61
1067
----------------------------------- -- Area: Port Bastok -- NPC: Drawbridge ----------------------------------- require("scripts/globals/status"); ----------------------------------- ----------------------------------- -- onSpawn ----------------------------------- function onSpawn(npc) local elevator = { ...
gpl-3.0
rpetit3/darkstar
scripts/zones/Windurst_Waters/npcs/Jack_of_Hearts.lua
13
1231
----------------------------------- -- Area: Windurst Waters -- NPC: Jack of Hearts -- Adventurer's Assistant -- Working 100% ------------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; require("scripts/zones/Windurst_Waters/Text...
gpl-3.0
nokizorque/ucd
guieditor/client/colorpicker/colorpicker.lua
2
24379
--[[-------------------------------------------------- GUI Editor client colorpicker.lua shamelessly taken from dxscoreboard (originally taken from the map editor) slightly modified for my own use --]]-------------------------------------------------- colorPicker = { default = { x = 0, y = 0, width = 200...
mit
MHK-BOT/copy
plugins/Clash_of_Clans.lua
1
4303
local function run(msg, matches) if matches[1]:lower() == "clash>" then local base = 'curl -X GET --header "Accept: application/json" --header "authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiIsImtpZCI6IjI4YTMxOGY3LTAwMDAtYTFlYi03ZmExLTJjNzQzM2M2Y2NhNSJ9.eyJpc3MiOiJzdXBlcmNlbGwiLCJhdWQiOiJzdXBlcmNlbGw6Z2FtZW...
gpl-2.0
sevenbot/etehadseven
plugins/giphy.lua
633
1796
-- Idea by https://github.com/asdofindia/telegram-bot/ -- See http://api.giphy.com/ do local BASE_URL = 'http://api.giphy.com/v1' local API_KEY = 'dc6zaTOxFJmzC' -- public beta key local function get_image(response) local images = json:decode(response).data if #images == 0 then return nil end -- No images loca...
gpl-2.0
mrbangi/yagop
plugins/giphy.lua
633
1796
-- Idea by https://github.com/asdofindia/telegram-bot/ -- See http://api.giphy.com/ do local BASE_URL = 'http://api.giphy.com/v1' local API_KEY = 'dc6zaTOxFJmzC' -- public beta key local function get_image(response) local images = json:decode(response).data if #images == 0 then return nil end -- No images loca...
gpl-2.0
rpetit3/darkstar
scripts/globals/weaponskills/tachi_rana.lua
19
1765
----------------------------------- -- Tachi Rana -- Great Katana weapon skill -- Skill Level: N/A -- Delivers a three-fold attack. params.accuracy varies with TP. Aftermath effect varies with TP. See Kogarasumaru. -- In order to obtain Tachi: Rana, the Unlocking a Myth (Samurai) quest must be completed. -- Will stack ...
gpl-3.0
rpetit3/darkstar
scripts/globals/effects/auspice.lua
33
1882
-------------------------------------- -- -- EFFECT_AUSPICE -- -- Power: Used for Enspell Effect -- SubPower: Tracks Subtle Blow Bonus -- Tier: Used for Enspell Calculation -- -------------------------------------- ----------------------------------- -- onEffectGain Action ----------------------------------- function...
gpl-3.0
rpetit3/darkstar
scripts/zones/LaLoff_Amphitheater/mobs/Ark_Angel_s_Mandragora.lua
23
1258
----------------------------------- -- Area: LaLoff Amphitheater -- MOB: Ark Angel's Mandragora ----------------------------------- package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil; ----------------------------------- require("scripts/zones/LaLoff_Amphitheater/TextIDs"); require("scripts/globals/statu...
gpl-3.0
rpetit3/darkstar
scripts/globals/abilities/charm.lua
27
1135
----------------------------------- -- Ability: Charm a monster -- Tames a monster to fight by your side. -- Obtained: Beastmaster Level 1 -- Recast Time: 0:15 -- Duration: Varies -- Check |Duration -- ---------------- |-------------- -- Too Weak |30 Minutes -- Easy Prey |20 Minutes -- Decent ...
gpl-3.0
dkogan/notion
utils/ion-statusd/statusd_load.lua
1
1715
-- -- ion/mod_statusbar/ion-statusd/statusd_load.lua -- -- Copyright (c) Tuomo Valkonen 2004-2009. -- -- See the included file LICENSE for details. -- -- -- We should really use getloadavg(3) instead and move the meter to -- Ion side to get properly up-to-date loads. But until such an export -- is made, and we use pot...
lgpl-2.1
wanghuan1115/sdkbox-chartboost-sample
lua/src/app/views/MainScene.lua
1
2729
local MainScene = class("MainScene", cc.load("mvc").ViewBase) -- MainScene.RESOURCE_FILENAME = "MainScene.csb" function MainScene:onCreate() self._coin = 0 self.btnVideo = cc.MenuItemFont:create("btnVideo"):onClicked(function() sdkbox.PluginChartboost:show("Default") end) self.btnVideo:setE...
mit
rpetit3/darkstar
scripts/zones/Zhayolm_Remnants/Zone.lua
17
1071
----------------------------------- -- -- Zone: Zhayolm_Remnants -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Zhayolm_Remnants/TextIDs"] = nil; require("scripts/zones/Zhayolm_Remnants/TextIDs"); ----------------------------------- -- onInitialize -------...
gpl-3.0
MHK-BOT/copy
plugins/Help_Html.lua
1
8345
do function pairsByKeys(t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 local iter = function () i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] end end return iter end local function has_usagehtm_data(dict) if (dict.usagehtm == n...
gpl-2.0
MinetestForFun/server-minetestforfun-creative
mods/moreores/init.lua
1
11194
--[[ ===================================================================== ** More Ores ** By Calinou, with the help of Nore. Copyright (c) 2011-2015 Calinou and contributors. Licensed under the zlib license. See LICENSE.md for more information. ===================================================================== --]...
unlicense
rpetit3/darkstar
scripts/zones/Southern_San_dOria/npcs/Kipopo.lua
53
1843
----------------------------------- -- Area: Southern San d'Oria -- NPC: Kipopo -- Type: Leathercraft Synthesis Image Support -- @pos -191.050 -2.15 12.285 230 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/glo...
gpl-3.0
iskolbin/listlua
Op.lua
1
1795
local unpack = table.unpack or unpack local Op = { add = function( a, b ) return a + b end, sub = function( a, b ) return a - b end, div = function( a, b ) return a / b end, idiv = function( a, b ) return a >= 0 and math.floor( a / b ) or math.ceil( a / b ) end, mod = function( a, b ) return a % b end, mul = fun...
mit
rpetit3/darkstar
scripts/zones/Selbina/npcs/Mathilde.lua
13
1888
----------------------------------- -- Area: Selbina -- NPC: Mathilde -- Involved in Quest: Riding on the Clouds -- @pos 12.578 -8.287 -7.576 248 ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Selbina/TextIDs"); req...
gpl-3.0
esguk811/DarkRP
gamemode/modules/chat/sv_interface.lua
9
4792
DarkRP.defineChatCommand = DarkRP.stub{ name = "defineChatCommand", description = "Create a chat command that calls the function", parameters = { { name = "chat command", description = "The registered chat command", type = "string", optional = false ...
mit
rpetit3/darkstar
scripts/zones/Northern_San_dOria/npcs/Andreas.lua
13
2746
----------------------------------- -- Area: Northern San d'Oria -- NPC: Andreas -- Type: Guildworker's Union Representative -- @zone: 231 -- @pos -189.282 10.999 262.626 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; require("scripts/globals/keyitems"); requ...
gpl-3.0
epwalsh/dotfiles
neovim/after/plugin/nvim-lspconfig.lua
1
3442
-- General LSP settings vim.cmd([[autocmd! ColorScheme * highlight NormalFloat guibg=#1f2335]]) vim.cmd([[autocmd! ColorScheme * highlight FloatBorder guifg=white guibg=#1f2335]]) local border = { { "╭", "FloatBorder" }, { "─", "FloatBorder" }, { "╮", "FloatBorder" }, { "│", "FloatBorder" }, { "╯", "FloatBorder" }...
mit
jbluepolarbear/jengine
resources/scripts/Enemy.lua
1
1153
--- Enemy --- --- --- Author - Jeremy Anderson require('resources/scripts/Object') Enemy = class(Object) function Enemy:init( texture, pos, radius, speed, target ) Object.init(self, texture, pos, radius) self.speed = speed self.velocity = Vec2(speed, speed) self.zlevel = enemyZLevel self.moving ...
mit
MinetestForFun/server-minetestforfun-creative
minetestforfun_game/mods/fire/init.lua
2
7714
-- minetest/fire/init.lua -- Global namespace for functions fire = {} -- Register flame nodes minetest.register_node("fire:basic_flame", { drawtype = "firelike", tiles = { { name = "fire_basic_flame_animated.png", animation = { type = "vertical_frames", aspect_w = 16, aspect_h = 16, lengt...
unlicense
vfedoroff/prosody-modules
mod_auth_ha1/mod_auth_ha1.lua
32
3019
-- Prosody IM -- Copyright (C) 2014 Matthew Wild -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local usermanager = require "core.usermanager"; local new_sasl = require "util.sasl".new; local nodeprep = require "util.encodings".stringprep.nodeprep...
mit
rpetit3/darkstar
scripts/zones/Cloister_of_Frost/Zone.lua
30
1736
----------------------------------- -- -- Zone: Cloister_of_Frost (203) -- ----------------------------------- package.loaded["scripts/zones/Cloister_of_Frost/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Cloister_of_Frost/TextIDs"); -----------------...
gpl-3.0
tommo/gii
template/game/lib/mock/component/PhysicsBody.lua
1
9559
module 'mock' EnumPhysicsBodyType = _ENUM_V{ 'dynamic', 'static', 'kinematic' } --------------------------------------------------------------------- --Material -------------------------------------------------------------------- CLASS: PhysicsMaterial () :MODEL{ Field 'density'; Field 'restitution'; Field...
mit
vseledkin/april-ann
profile_build_scripts/build_release_macports.lua
3
3355
dofile("luapkg/formiga.lua") local postprocess = dofile("luapkg/postprocess.lua") formiga.build_dir = "build_release_macports" local packages = dofile "profile_build_scripts/package_list.lua" -- table.insert(packages, "rlcompleter") -- AUTOCOMPLETION => needs READLINE local metadata = dofile "profile_build_scripts/MET...
gpl-3.0
vseledkin/april-ann
packages/ann/optimizer/package.lua
3
1608
package{ name = "ann.optimizer", version = "1.0", depends = { "util", "ann", "matrix", "mathcore" }, keywords = { "ANN optimization algorithms" }, description = "", -- targets como en ant target{ name = "init", mkdir{ dir = "build" }, mkdir{ dir = "include" }, }, target{ name = "...
gpl-3.0
lukego/snabbswitch
lib/pflua/src/pf/bpf.lua
15
15150
module(...,package.seeall) local ffi = require("ffi") local bit = require("bit") local band = bit.band local verbose = os.getenv("PF_VERBOSE"); local function BPF_CLASS(code) return band(code, 0x07) end local BPF_LD = 0x00 local BPF_LDX = 0x01 local BPF_ST = 0x02 local BPF_STX = 0x03 local BPF_ALU = 0x04 loca...
apache-2.0
TakingInitiative/wesnoth
data/ai/lua/ai_helper.lua
3
75985
local H = wesnoth.require "lua/helper.lua" local W = H.set_wml_action_metatable {} local LS = wesnoth.require "lua/location_set.lua" -- This is a collection of Lua functions used for custom AI development. -- Note that this is still work in progress with significant changes occurring -- frequently. Backward compatibil...
gpl-2.0
spacebuild/spacebuild
lua/entities/rd_pump/init.lua
5
10838
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) util.PrecacheSound( "RD/pump/beep-4.wav" ) util.PrecacheSound( "RD/pump/beep-3.wav" ) util.PrecacheSound( "RD/pump/beep-5.wav" ) include('shared.lua') local pumps = {} --[[ --SetResourceAmount --PumpTurnOn --PumpTurnOff ]] local function TurnOnPump(ply, c...
apache-2.0
ddouglascarr/rooset
lffrontend/env/util/micro_avatar.lua
1
1116
function util.micro_avatar(member, member_name) if type ( member ) == "number" then member = { id = member, name = member_name } end local function doit() ui.icon("person") -- lf provided avitar functionality -- if config.fastpath_url_func then -- ui.image{ -- att...
mit
vlapsley/outback
mods/technic/technic/machines/MV/lighting.lua
4
20971
-- NOTE: The code is takes directly from VanessaE's homedecor mod. -- I just made it the lights into indictive appliances for this mod. -- This file supplies electric powered glowlights -- Boilerplate to support localized strings if intllib mod is installed. local S if (minetest.get_modpath("intllib")) then dofile(m...
lgpl-2.1
rpetit3/darkstar
scripts/globals/spells/cure.lua
26
4531
----------------------------------------- -- Spell: Cure -- Restores target's HP. -- Shamelessly stolen from http://members.shaw.ca/pizza_steve/cure/Cure_Calculator.html ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ...
gpl-3.0
vseledkin/april-ann
packages/hmm_trainer/test/test_arpa.lua
3
1778
trainer = HMMTrainer.trainer() desc_ngrama = trainer:model(HMMTrainer.read_arpa({ filename="mini.arpa", vocabulary=lexClass({"<s>","</s>","wa","wb","wc"}), phone_vocabul...
gpl-3.0