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
Enignite/darkstar
scripts/zones/Phomiuna_Aqueducts/npcs/Wooden_Ladder.lua
17
3196
----------------------------------- -- Area: Phomiuna Aqueducts -- NPC: Wooden Ladder -- @pos 101.9 -1.5 -101.9 -- @pos 101.948 -1.5 -18.016 -- @pos -61.888 -1.5 -18.079 -- @pos -218.109 -1.499 18.081 -- @pos -61.903 -1.5 138.099 -- @pos 21.901 -1.5 138.096 -- @pos 101.902 -1.5 181.902 -- @pos -159.32 -2.5 ...
gpl-3.0
Enignite/darkstar
scripts/zones/Gusgen_Mines/npcs/Degga.lua
34
1186
----------------------------------- -- Area: Gusgen Mines -- NPC: Degga -- Type: Standard Info NPC -- @pos 40 -68 -259 ----------------------------------- package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require("scripts/globa...
gpl-3.0
sweeti0/dev_qollop
plugins/ar-getlink.lua
3
27430
do local function check_member(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostring(msg.to.id)] = { moderators = {}, set_owner = membe...
gpl-3.0
SouD/LessAnimeTabbing
src/MyAnimeListEndpoint.lua
1
1582
-- LessAnimeTabbing. Keep track of your anime without tabbing! -- Copyright (C) 2014 Linus Sörensen -- 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 (a...
gpl-2.0
doofus-01/wesnoth
data/ai/micro_ais/cas/ca_recruit_random.lua
7
4529
local AH = wesnoth.require("ai/lua/ai_helper.lua") local LS = wesnoth.require "location_set" local recruit_type local ca_recruit_random = {} function ca_recruit_random:evaluation(cfg) -- Random recruiting from all the units the side has -- Check if leader is on keep local leader = wesnoth.units.find_on_...
gpl-2.0
terojanbot/TEROJANSBOT
plugins/meme.lua
637
5791
local helpers = require "OAuth.helpers" local _file_memes = './data/memes.lua' local _cache = {} local function post_petition(url, arguments) local response_body = {} local request_constructor = { url = url, method = "POST", sink = ltn12.sink.table(response_body), headers = {}, red...
gpl-2.0
DipColor/mehrabon2
plugins/meme.lua
637
5791
local helpers = require "OAuth.helpers" local _file_memes = './data/memes.lua' local _cache = {} local function post_petition(url, arguments) local response_body = {} local request_constructor = { url = url, method = "POST", sink = ltn12.sink.table(response_body), headers = {}, red...
gpl-2.0
aqasaeed/telebot
plugins/meme.lua
637
5791
local helpers = require "OAuth.helpers" local _file_memes = './data/memes.lua' local _cache = {} local function post_petition(url, arguments) local response_body = {} local request_constructor = { url = url, method = "POST", sink = ltn12.sink.table(response_body), headers = {}, red...
gpl-2.0
qianqians/Screw
3rdparty/ammo.js/bullet/Demos/premake4.lua
10
2983
function createDemos( demos, incdirs, linknames) for _, name in ipairs(demos) do project ( "App_" .. name ) kind "ConsoleApp" targetdir ".." includedirs {incdirs} configuration { "Windows" } defines { "GLEW_STATIC"} links { "opengl32" } includedirs{ "../Glut" } libd...
lgpl-2.1
araeisy/araeisy
plugins/youtube.lua
674
1270
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 local function searchYoutubeVideos(text) local url = 'https://www.googleapis.com/youtube/v3/search?' u...
mit
AMIRUJK/teleujk
text axs.lua
24
1059
local function tosticker(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/stickers/'..msg.from.id..'.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) send_photo(get_receiver(msg), file, ok_cb, false) re...
gpl-2.0
Tri125/MCServer
MCServer/Plugins/APIDump/Hooks/OnChunkGenerating.lua
44
1623
return { HOOK_CHUNK_GENERATING = { CalledWhen = "A chunk is about to be generated. Plugin can override the built-in generator.", DefaultFnName = "OnChunkGenerating", -- also used as pagename Desc = [[ This hook is called before the world generator starts generating a chunk. The plugin may provide some or...
apache-2.0
Enignite/darkstar
scripts/zones/Southern_San_dOria/npcs/Coderiant.lua
36
1471
----------------------------------- -- Area: Southern San d'Oria -- NPC: Coderiant -- General Info NPC -- @zone 230 -- @pos -111 -2 33 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settin...
gpl-3.0
Enignite/darkstar
scripts/zones/RuAun_Gardens/mobs/Groundskeeper.lua
25
1323
----------------------------------- -- Area: RuAun Gardens -- MOB: Groundskeeper -- Note: Place holder Despot ----------------------------------- require("scripts/zones/RuAun_Gardens/MobIDs"); require("scripts/globals/fieldsofvalor"); ----------------------------------- -- onMobDeath --------------------------------...
gpl-3.0
Enignite/darkstar
scripts/zones/Hall_of_Transference/npcs/_0e4.lua
43
1699
----------------------------------- -- Area: Hall of Transference -- NPC: Large Apparatus (Right) - Holla -- @pos -242.301 -1.849 269.867 14 ----------------------------------- package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Hall_of_Transf...
gpl-3.0
QUSpilPrgm/cuberite
Server/Plugins/NetworkTest/NetworkTest.lua
22
17057
-- NetworkTest.lua -- Implements a few tests for the cNetwork API --- Map of all servers currently open -- g_Servers[PortNum] = cServerHandle local g_Servers = {} --- Map of all UDP endpoints currently open -- g_UDPEndpoints[PortNum] = cUDPEndpoint local g_UDPEndpoints = {} --- List of fortune messages for the...
apache-2.0
Enignite/darkstar
scripts/zones/Windurst_Woods/npcs/Ibwam.lua
18
4569
----------------------------------- -- Area: Windurst Woods -- NPC: Ibwam -- Type: Warp NPC -- @pos -25.655 1.749 -60.651 241 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; package.loaded["scripts/globals/settings"] = nil; ----------------------------------- requ...
gpl-3.0
apung/prosody-modules
mod_post_msg/mod_post_msg.lua
32
2623
module:depends"http" local jid_split = require "util.jid".split; local jid_prep = require "util.jid".prep; local msg = require "util.stanza".message; local test_password = require "core.usermanager".test_password; local b64_decode = require "util.encodings".base64.decode; local formdecode = require "net.http".formdeco...
mit
Enignite/darkstar
scripts/globals/weaponskills/spirits_within.lua
30
1518
----------------------------------- -- Spirits Within -- Sword weapon skill -- Spirits Within Sword Weapon Skill -- TrolandAdded by Troland -- Skill Level: 175 -- Delivers an unavoidable attack. Damage varies with HP and TP. -- Not aligned with any "elemental gorgets" or "elemental belts" due to it's absence of ...
gpl-3.0
Enignite/darkstar
scripts/zones/Wajaom_Woodlands/npcs/leypoint.lua
17
2538
----------------------------------- -- 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"); re...
gpl-3.0
omidtarh/hasan
plugins/boobs.lua
731
1601
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
gpl-2.0
Enignite/darkstar
scripts/zones/Xarcabard/npcs/Trail_Markings.lua
17
2473
----------------------------------- -- Area: Xarcabard -- NPC: Trail Markings -- Dynamis-Xarcabard Enter -- @pos 570 0 -272 112 ----------------------------------- package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scrip...
gpl-3.0
Enignite/darkstar
scripts/globals/items/pumpkin_cake.lua
36
1213
----------------------------------------- -- ID: 5631 -- Item: Pumpkin Cake -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP Recovered while healing +2 -- MP Recovered while healing +4 ----------------------------------------- require("scripts/globals/status"); --...
gpl-3.0
mamadtnt/new
plugins/add_bot.lua
189
1492
--[[ Bot can join into a group by replying a message contain an invite link or by typing !add [invite link]. URL.parse cannot parsing complicated message. So, this plugin only works for single [invite link] in a post. [invite link] may be preceeded but must not followed by another characters. --]] do local function...
gpl-2.0
dwdm/snabbswitch
src/apps/csv.lua
15
1587
module(...,package.seeall) local app = require("core.app") local ffi = require("ffi") local C = ffi.C -- Frequency at which lines are added to the CSV file. -- (XXX should be an argument to the app.) interval = 1.0 CSV = {} function CSV:new (directory) local o = { appfile = io.open(directory.."/app.csv", "w"), ...
apache-2.0
aqasaeed/telebot
plugins/get.lua
613
1067
local function get_variables_hash(msg) if msg.to.type == 'chat' then return 'chat:'..msg.to.id..':variables' end if msg.to.type == 'user' then return 'user:'..msg.from.id..':variables' end end local function list_variables(msg) local hash = get_variables_hash(msg) if hash then local names =...
gpl-2.0
Enignite/darkstar
scripts/zones/Port_Bastok/npcs/Alib-Mufalib.lua
19
3841
----------------------------------- -- Area: Port Bastok -- NPC: Alib-Mufalib -- Type: Warp NPC -- @pos 116.080 7.372 -31.820 236 ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts...
gpl-3.0
Enignite/darkstar
scripts/globals/items/pamama_tart.lua
35
1447
----------------------------------------- -- ID: 4563 -- Item: pamama_tart -- Food Effect: 1hour, All Races ----------------------------------------- -- HP 10 -- MP 10 -- Dexterity -1 -- Intelligence 3 -- MP Recovered While Healing 2 ----------------------------------------- require("scripts/globals/status...
gpl-3.0
Enignite/darkstar
scripts/zones/Bastok_Mines/npcs/Deidogg.lua
19
4762
----------------------------------- -- Area: Bastok Mines -- NPC: Deidogg -- Starts and Finishes Quest: The Talekeeper's Truth, The Talekeeper's Gift (start) -- @pos -13 7 29 234 ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require...
gpl-3.0
Enignite/darkstar
scripts/zones/Boneyard_Gully/mobs/Race_Runner.lua
16
1498
----------------------------------- -- Area: Boneyard_Gully -- Name: Race Runner ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/status"); local path = { -539, 0, -481, -556, 0, -478, -581, 0, -475, -579, -3, -460, -572, 2, -433, -545, 1, -440, -53...
gpl-3.0
fcpxhacks/fcpxhacks
src/extensions/cp/highland2/Sidebar.lua
2
1480
--- === cp.highland2.Sidebar === --- --- Represents the sidebar for a document opened in Highland. local Group = require "cp.ui.Group" local go = require "cp.rx.go" local If = go.If local Sidebar = Group:...
mit
BooM-amour/MOHAMAD
plugins/admin.lua
60
6680
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
Enignite/darkstar
scripts/globals/items/gold_lobster.lua
18
1405
----------------------------------------- -- ID: 5797 -- Item: gold_lobster -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity -5 -- Vitality 3 -- Defense % 15 ----------------------------------------- require("scripts/globals/status"); -------------------------------...
gpl-3.0
zeus-ff/test
dd/plugins.lua
2
4751
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
gpl-2.0
vladimir-g/fainty
widgets/battery.lua
1
7863
-------------------- -- Battery widget -- -------------------- -- Copyright (c) 2013-2015 Vladimir Gorbunov -- Release under MIT license, see LICENSE file for more details local wibox = require("wibox") local awful = require('awful') local naughty = require('naughty') local utils = require("fainty.utils") local base =...
mit
Enignite/darkstar
scripts/zones/Yughott_Grotto/npcs/Treasure_Chest.lua
19
2570
----------------------------------- -- Area: Yughott Grotto -- NPC: Treasure Chest -- @zone 142 ----------------------------------- package.loaded["scripts/zones/Yughott_Grotto/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/treasure"); require("scrip...
gpl-3.0
zeus-ff/test
bot/utils.lua
473
24167
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
Enignite/darkstar
scripts/zones/Metalworks/npcs/Malduc.lua
19
3425
----------------------------------- -- Area: Metalworks -- NPC: Malduc -- Type: Mission Giver -- @pos 66.200 -14.999 4.426 237 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals...
gpl-3.0
Enignite/darkstar
scripts/globals/weaponskills/knights_of_round.lua
18
2076
----------------------------------- -- Knights Of Round -- Sword Weapon Skill -- Skill Level: N/A -- Caliburn/Excalibur: Additional Effect: Regen. -- Regen 10HP/Tick, duration varies with TP. -- Available only when equipped with the Relic Weapons Caliburn (Dynamis use only) or Excalibur. -- Also available withou...
gpl-3.0
apung/prosody-modules
mod_pubsub_hub/mod_pubsub_hub.lua
32
6808
-- Copyright (C) 2011 - 2012 Kim Alvefur -- -- This file is MIT/X11 licensed. local http = require "net.http"; local formdecode = http.formdecode; local formencode = http.formencode; local http_request = http.request; local uuid = require "util.uuid".generate; local hmac_sha1 = require "util.hmac".sha1; local json_enc...
mit
Enignite/darkstar
scripts/globals/weaponskills/shattersoul.lua
30
2341
----------------------------------- -- Skill Level: 357 -- Description: Delivers a threefold attack. Decreases target's magic defense. Duration of effect varies with TP. -- To obtain Shattersoul, the quest Martial Mastery must be completed and it must be purchased from the Merit Points menu. -- Target's magic defen...
gpl-3.0
GraionDilach/OpenRA
mods/d2k/maps/atreides-01b/atreides01b.lua
5
5293
--[[ Copyright 2007-2017 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
Enignite/darkstar
scripts/zones/Southern_San_dOria/npcs/Pourette.lua
30
2210
----------------------------------- -- Area: Southern San d'Oria -- NPC: Pourette -- Only sells when San d'Oria controlls Derfland Region ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/glo...
gpl-3.0
Enignite/darkstar
scripts/zones/Bastok_Markets/npcs/Cleades.lua
17
3519
----------------------------------- -- Area: Bastok Markets -- NPC: Cleades -- Type: Mission Giver -- @pos -358 -10 -168 235 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scr...
gpl-3.0
Enignite/darkstar
scripts/zones/Phomiuna_Aqueducts/npcs/_0rw.lua
17
1304
----------------------------------- -- Area: Phomiuna_Aqueducts -- NPC: _0rw (Oil Lamp) -- Notes: Opens south door at J-9 from inside. -- @pos 103.703 -26.180 83.000 27 ----------------------------------- package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil; ----------------------------------- re...
gpl-3.0
araeisy/araeisy
plugins/azan.lua
2
3102
do function run_bash(str) local cmd = io.popen(str) local result = cmd:read('*all') return result end local api_key = nil local base_api = "https://maps.googleapis.com/maps/api" function get_latlong(area) local api = base_api .. "/geocode/json?" local parameters = "address=".. (URL.escape(area) or ...
mit
Enignite/darkstar
scripts/zones/Spire_of_Dem/npcs/_0j1.lua
51
1321
----------------------------------- -- Area: Spire_of_Dem -- NPC: web of regret ----------------------------------- package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/zones/Spire_of_Dem/TextIDs"); ---------------...
gpl-3.0
Enignite/darkstar
scripts/zones/Sacrarium/npcs/qm4.lua
17
1738
----------------------------------- -- Area: Sacrarium -- NPC: qm4 (???) -- Notes: Used to spawn Old Prof. Mariselle -- @pos 22.669 -3.111 127.279 28 ----------------------------------- package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Sacra...
gpl-3.0
fcpxhacks/fcpxhacks
src/extensions/cp/result.lua
2
6270
--- === cp.result === --- --- Represents the result of an operation which may end in `success` or `failure`. --- If it is a `success`, a `value` is typically provided. --- If it is a `failure`, a `message` is typically provided. --- --- Using this type allows for more structured checking when performing an operation wh...
mit
joaofvieira/luci
applications/luci-app-privoxy/luasrc/controller/privoxy.lua
33
4608
-- Copyright 2014 Christian Schoenebeck <christian dot schoenebeck at gmail dot com> -- Licensed under the Apache License, Version 2.0 module("luci.controller.privoxy", package.seeall) local NX = require "nixio" local NXFS = require "nixio.fs" local HTTP = require "luci.http" local UCI = require "luci.model.uci" l...
apache-2.0
yetsky/luci
modules/admin-mini/luasrc/model/cbi/mini/network.lua
82
6273
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 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 h...
apache-2.0
mjarco/sysdig
userspace/sysdig/chisels/topscalls_time.lua
12
1702
--[[ 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
ZerothAngel/FtDScripts
main/dediblademaintainer.lua
1
1120
--! dediblademaintainer --@ periodic drivemaintainer spinnercontrol ThrottleController = DriveMaintainer.new(ThrottleDriveMaintainerFacing) PropulsionSpinners = SpinnerControl.new(Vector3.forward) DesiredThrottle = 0 function DediBladeMaintainer_Control(I) local Throttle = ThrottleWhen[I:GetAIMovementMode()] if...
mit
philsiff/Red-Vs-Blue
Red Vs. Blue Files/gamemodes/base/gamemode/cl_init.lua
1
19408
include( 'shared.lua' ) include( 'cl_scoreboard.lua' ) include( 'cl_targetid.lua' ) include( 'cl_hudpickup.lua' ) include( 'cl_spawnmenu.lua' ) include( 'cl_deathnotice.lua' ) include( 'cl_pickteam.lua' ) include( 'cl_voice.lua' ) --[[--------------------------------------------------------- Name: gamemode:Initial...
mit
arkana-fts/cegui
cegui/src/ScriptModules/Lua/support/tolua++bin/lua/enumerate.lua
14
2744
-- tolua: enumerate class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id$ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to provide maintenance, support, updates, -- enhancements...
mit
philsiff/Red-Vs-Blue
Red Vs. Blue Files/gamemodes/sandbox/entities/weapons/gmod_tool/stools/material.lua
1
4044
TOOL.Category = "Render" TOOL.Name = "#tool.material.name" TOOL.Command = nil TOOL.ConfigName = "" TOOL.ClientConVar[ "override" ] = "debug/env_cubemap_model" -- -- Duplicator function -- local function SetMaterial( Player, Entity, Data ) if ( SERVER ) then -- -- Make sure this is in the 'allowed' list ...
mit
joaofvieira/luci
modules/luci-base/luasrc/tools/webadmin.lua
59
2301
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008-2015 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.tools.webadmin", package.seeall) local util = require "luci.util" local uci = require "luci.model.uci" local ip = require "luci.ip" func...
apache-2.0
anonymous12212020/sbss
plugins/time.lua
38
2898
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
philsiff/Red-Vs-Blue
Very Basic TDM [Gamemode]/gamemodes/vbtdm/gamemode/hitmarker/sv_hitdamagenumbers.lua
1
1537
//test util.AddNetworkString( "imHDN_createHitNumber" ) local on = true CreateConVar( "sv_hitnums_show", 1 ) cvars.AddChangeCallback( "sv_hitnums_show", function() on = (GetConVarNumber("sv_hitnums_show") ~= 0) end ) local showAll = false CreateConVar( "sv_hitnums_showalldamage", 0 ) cvars.AddChangeCallback( "sv_hi...
mit
8day/aegisub-auto4-scripts
calculate-org-to-reproduce-perspective-distortion.lua
1
6211
--[[ Description Auto4 script written in Lua for subtitle editor Aegisub. Purpose is stated in the "script_description" variable. Take a note that the approach described here does not always work (!). That's probably because the **whole** vanishing point should've been used as an origin \org, but since its calculatio...
bsd-3-clause
crinai/oolua
unit_tests/test.unit.lua
8
1199
--OOLua test.unit local root = "../" local name = "test.unit" create_package(name,root,"ConsoleApp") configuration {} files { root .. "unit_tests/main.cpp", root .. "unit_tests/bind_classes/*.h", root .. "unit_tests/bind_classes/*.cpp", root .. "unit_tests/cpp_classes/*.h", root .. "unit_tests/c...
mit
FoxelBox/FoxBukkitLua
lua/src/main/lua/classes/Questioner.lua
1
5868
--[[ This file is part of FoxBukkitLua-lua. FoxBukkitLua-lua 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 the License, or (at your option) any later version. ...
lgpl-3.0
eggBOY91/Arctic-Core
src/scripts/lua/Lua/Stable Scripts/Azeroth/Karazhan/BOSS_Karazhan_Netherspite.lua
30
1703
function Netherspite_Portal_PhaseA(Unit, event, miscunit, misc) print "Netherspite Portal PhaseA" Unit:SendAreaTriggerMessage("PORTAL PHASE") Unit:FullCastSpell(30400) Unit:FullCastSpell(30401) Unit:FullCastSpell(30402) end function Netherspite_Nether_Burn(Unit, event, miscunit, misc) print "Netherspite Nether B...
agpl-3.0
notestudio/shall-I-kill-her
assets/scripts/messages.lua
1
5013
require 'assets/scripts/vendor/MessageInABottle' local messages = {} messages.active = true function messages.load() ocean = Ocean:new() end function messages.update(dt, game) ocean:update(dt) if game.status == 1 and messages.active then messages.new_message('welcome', 10) messages.active = false end end fu...
apache-2.0
sgraham/nope
third_party/skia/tools/lua/paths.lua
92
3129
-- -- Copyright 2014 Google Inc. -- -- Use of this source code is governed by a BSD-style license that can be -- found in the LICENSE file. -- -- Path scraping script. -- This script is designed to count the number of times we fall back to software -- rendering for a path in a given SKP. However, this script does not ...
bsd-3-clause
telebombang2018/energy
plugins/PL (5).lua
3
1634
-----my_name_is_ehsan*#@mafia_boy -----@ENERGY_TEAM FOR UPDATE -----لطفا پیام بالا رو پاک نکنید function run(msg,matches) if matches[1] == 'id' or 'ایدی' and msg.reply_to_message_id_ == 0 then if is_sudo(msg) then rank = 'صاحب ربات' elseif is_owner(msg) then rank = 'صاحب گروه' elseif is_mod(msg) then ra...
gpl-3.0
joeherwig/RealAir-Turbine-Duke-V2-LUA
Modules/linda-cfg/aircrafts/RealAir Duke Turbine V2/config-user.lua
1
1321
-- USER CONFIGURATION FOR AUTOSAVE -- Updated for LINDA 2.5 -- Nov 2014 -- All the settings here could be overridden on per-plane basis -- by creating file config-user.lua in correspnding plane's configs folder -- (i.e. SIM/Modules/linda-cfg/aircrafts/Cessna 172/config-user.lua) -- Use the same variables there with ne...
mit
pazos/koreader
frontend/apps/reader/modules/readerhighlight.lua
1
61837
local BD = require("ui/bidi") local ButtonDialog = require("ui/widget/buttondialog") local Device = require("device") local Event = require("ui/event") local InfoMessage = require("ui/widget/infomessage") local InputContainer = require("ui/widget/container/inputcontainer") local MultiConfirmBox = require("ui/widget/mul...
agpl-3.0
breakds/corpus-accu
cnn-sentence/training.lua
1
6477
require 'torch' require 'nn' require 'os' ---------- Command Line Options ---------- local cmd = torch.CmdLine() cmd:option('-sentence_size', 20, 'Max allowed length of sentences.') -- Dictionary cmd:option('-dictionary', '/home/breakds/tmp/bilibili/input/word_vecs.bin', 'path to the word2vec binary dict...
mit
eggBOY91/Arctic-Core
src/scripts/lua/LuaBridge/Stable Scripts/Azeroth/Karazhan/BOSS_Karazhan_Nightbane.lua
30
1906
function Nightbane_Cleave(Unit, event, miscunit, misc) print "Nightbane Cleave" Unit:FullCastSpellOnTarget(42587,Unit:GetClosestPlayer()) Unit:SendChatMessage(11, 0, "Cleave on you...") end function Nightbane_Tail_Sweep(Unit, event, miscunit, misc) print "Nightbane Tail Sweep" Unit:FullCastSpellOnTarget(25653,Uni...
agpl-3.0
yetsky/luci
applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-format.lua
80
3636
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 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 h...
apache-2.0
pazos/koreader
frontend/apps/reader/modules/readerlink.lua
1
59490
--[[-- ReaderLink is an abstraction for document-specific link interfaces. ]] local BD = require("ui/bidi") local ButtonDialogTitle = require("ui/widget/buttondialogtitle") local ConfirmBox = require("ui/widget/confirmbox") local Device = require("device") local Event = require("ui/event") local InfoMessage = require(...
agpl-3.0
NatWeiss/RGP
src/cocos2d-js/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Bone.lua
8
8058
-------------------------------- -- @module Bone -- @extend Node -- @parent_module ccs -------------------------------- -- -- @function [parent=#Bone] isTransformDirty -- @param self -- @return bool#bool ret (return value: bool) -------------------------------- -- -- @function [parent=#Bone] setBlendFunc ...
mit
ZipFile/vlc
share/lua/meta/art/01_googleimage.lua
74
1764
--[[ Gets an artwork from images.google.com $Id$ Copyright © 2007 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 la...
gpl-2.0
ld-test/lua-curl
test/test_easy.lua
1
19551
local lunit, RUN = lunit do RUN = lunit and function()end or function () local res = lunit.run() if res.errors + res.failed > 0 then os.exit(-1) end return os.exit(0) end lunit = require "lunit" end local TEST_CASE = assert(lunit.TEST_CASE) local skip = lunit.skip or function() end ...
mit
bottelebot/Umbrella
plugins/gnuplot.lua
622
1813
--[[ * Gnuplot plugin by psykomantis * dependencies: * - gnuplot 5.00 * - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html * ]] -- Gnuplot needs absolute path for the plot, so i run some commands to find where we are local outputFile = io.popen("pwd","r") io.input(outputFile...
gpl-2.0
xiaowa183/Atlas
lib/admin-bak.lua
37
3379
--[[ $%BEGINLICENSE%$ Copyright (c) 2008, 2009, 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
nimaghorbani/ghbotfool
plugins/chat.lua
28
1195
local function run(msg) if msg.text == "hi" then return "Hello bb" end if msg.text == "Hi" then return "Hello honey" end if msg.text == "Hello" then return "Hi bb" end if msg.text == "hello" then return "Hi honey" end if msg.text == "Salam" then return "Salam aleykom" end if msg.text == "salam" then return "و علی...
gpl-2.0
jxwr/redis
deps/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
bsd-3-clause
mjarco/sysdig
userspace/sysdig/chisels/fdbytes_by.lua
18
1508
--[[ 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
pazos/koreader
frontend/device/key.lua
18
2147
--[[ an interface for key presses ]] local Key = {} function Key:new(key, modifiers) local o = { key = key, modifiers = modifiers } -- we're a hash map, too o[key] = true for mod, pressed in pairs(modifiers) do if pressed then o[mod] = true end end setmetatable(o,...
agpl-3.0
philsiff/Red-Vs-Blue
Red Vs. Blue Files/lua/vgui/dpanel.lua
2
2466
--[[ _ ( ) _| | __ _ __ ___ ___ _ _ /'_` | /'__`\( '__)/' _ ` _ `\ /'_` ) ( (_| |( ___/| | | ( ) ( ) |( (_| | `\__,_)`\____)(_) (_) (_) (_)`\__,_) DPanel --]] local PANEL = {} AccessorFunc( PANEL, "m_bBackground", "PaintBac...
mit
LuaDist2/lua-path
lua/path/findfile.lua
2
2396
------------------------------------------------------------------ -- -- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com> -- -- Copyright (C) 2013-2016 Alexey Melnichuk <alexeymelnichuck@gmail.com> -- -- Licensed according to the included 'LICENCE' document -- -- This file is part of lua-path library. -- -----...
mit
LuaDist2/luarocks
src/luarocks/refresh_cache.lua
9
1061
--- Module implementing the luarocks-admin "refresh_cache" command. local refresh_cache = {} package.loaded["luarocks.refresh_cache"] = refresh_cache local util = require("luarocks.util") local cfg = require("luarocks.cfg") local cache = require("luarocks.cache") util.add_run_function(refresh_cache) refresh_cache.he...
mit
the1glorfindel/minetest-sickle
sickle.lua
1
1095
farming.register_sickle(":farming:sickle_wood", { description = "Wooden Sickle", inventory_image = "farming_tool_woodhoe.png", max_uses = 60, material = "group:wood" }) farming.register_sickle(":farming:sickle_stone", { description = "Stone Sickle", inventory_image = "farming_tool_stonehoe.png", max_uses = 120,...
gpl-2.0
MRMV2000/amira-o
system/libs/serpent.lua
656
7877
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
gpl-2.0
redxdev/Wake
dist/game/init.lua
1
1988
local Camera = require('camera') local config = require('config.cfg') local obj = assets.loadModel("assets/models/sponza.wmdl") if obj == nil then print("Unable to load model.") return end assets.loadMaterials(obj) engine.setClearColor(1, 1, 1, 1) local cam = Camera.new(Vector3.new(-2.5, 0, 0)) local speed ...
mit
githabbot/server22
plugins/lock_sticker.lua
17
19859
-- data saved to data/moderation.json do local administrators_only = 'For administrator only!' local moderators_only = 'For moderators only!' local function create_group(msg) if not is_admin(msg) then return administrators_only end local group_creator = msg.from.print_name create_group_chat (group_creator, grou...
gpl-2.0
InfiniteRain/CS2D-AmplifiedScripting
classes/map.lua
1
3652
-- Initializing map class. cas.map = cas.class() -------------------- -- Static methods -- -------------------- --== Getters ==-- -- Gets the name of the map. function cas.map.getName() return cas._cs2dCommands.map("name") end -- Gets the X size of the map. function cas.map.getXSize() return cas._cs2dCommands.map...
mit
sdgdsffdsfff/nginx-openresty-windows
LuaJIT-2.1-20150622/src/jit/dis_ppc.lua
78
20318
---------------------------------------------------------------------------- -- LuaJIT PPC disassembler module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT/X license. See Copyright Notice in luajit.h ----------------------------------------------------------------------------...
bsd-2-clause
Aminkavari/-xXD4RKXx-
plugins/rss.lua
700
5434
local function get_base_redis(id, option, extra) local ex = '' if option ~= nil then ex = ex .. ':' .. option if extra ~= nil then ex = ex .. ':' .. extra end end return 'rss:' .. id .. ex end local function prot_url(url) local url, h = string.gsub(url, "http://", "") local...
gpl-2.0
miraage/gladdy
Options.lua
1
6613
local tonumber = tonumber local type = type local pairs = pairs local tinsert = table.insert local tsort = table.sort local InterfaceOptionsFrame_OpenToFrame = InterfaceOptionsFrame_OpenToFrame local Gladdy = LibStub("Gladdy") local L = Gladdy.L Gladdy.defaults = { profile = { locked = false, x =...
mit
daniel-slaney/demirogue
src/mode/ForceDrawMode.lua
3
6595
-- -- mode/ForceDrawMode.lua -- -- Test bed and debugging tool for the force drawing algorithm. -- require 'Graph' local AABB = require 'lib/AABB' require 'Vector' require 'geometry' require 'graph2D' local graphDraw = require 'lib/graphDraw' local schema, ForceDrawMode = require 'lib/mode' { 'ForceDrawMode' } local...
bsd-3-clause
philsiff/Red-Vs-Blue
Red Vs. Blue Files/lua/includes/modules/cleanup.lua
1
4444
module( "cleanup", package.seeall ) local cleanup_types = {} local function IsType( type ) for key, val in pairs( cleanup_types ) do if ( val == type ) then return true end end return false end function Register( type ) if ( type == "all" ) then return end for key, val in pairs( cleanup_types ) d...
mit
eggBOY91/Arctic-Core
src/scripts/lua/Lua/Stable Scripts/Azeroth/Karazhan/BOSS_Karazhan_Shadikith.lua
30
1115
function Shadikith_Charge(Unit, event, miscunit, misc) print "Shadikith Charge" Unit:FullCastSpellOnTarget(38461,Unit:GetRandomPlayer()) Unit:SendChatMessage(11, 0, "Charge...") end function Shadikith_Sonic_Burst(Unit, event, miscunit, misc) print "Shadikith Sonic Burst" Unit:FullCastSpellOnTarget(39052,Unit:GetC...
agpl-3.0
parsaalemi/xybot
plugins/all.lua
1321
4661
do data = load_data(_config.moderation.data) 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_print...
gpl-2.0
amirmrbad/flashbot
plugins/all.lua
1321
4661
do data = load_data(_config.moderation.data) 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_print...
gpl-2.0
joaofvieira/luci
modules/luci-mod-admin-mini/luasrc/model/cbi/mini/wifi.lua
48
11450
-- 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. -- Data init -- local fs = require "nixio.fs" local sys = require "luci.sys" local uci = require "luci.model.uci".cursor() if not uci:get("network", "wan") ...
apache-2.0
johnymarek/tsdemuxer
xupnpd/src/plugins/xupnpd_dreambox.lua
6
6744
-- Plugin for converting channels lists from DVB receivers based on Enigma2 -- Copyright (C) 2012 Igor Drach -- leaigor@gmail.com function dreambox_url_encode(str) if (str) then str = string.gsub (str, " ", "%%20") str = string.gsub (str, "\"", "%%22") end return str end function xml_to_tables(file,lab...
mit
githabbot/server22
plugins/stats.lua
12
6289
-- 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