repo_name
stringlengths
6
78
path
stringlengths
4
206
copies
stringclasses
281 values
size
stringlengths
4
7
content
stringlengths
625
1.05M
license
stringclasses
15 values
gmorishere/lolsh
plugins/media.lua
376
1679
do local function run(msg, matches) local receiver = get_receiver(msg) local url = matches[1] local ext = matches[2] local file = download_to_file(url) local cb_extra = {file_path=file} local mime_type = mimetype.get_content_type_no_sub(ext) if ext == 'gif' then print('send_file') send_docum...
gpl-2.0
thedraked/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Porter_Moogle.lua
14
1552
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Porter Moogle -- Type: Storage Moogle -- @zone 50 -- @pos TODO ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhg...
gpl-3.0
pevers/OpenRA
lua/scriptwrapper.lua
56
1094
environment = {} -- Reset package path package.path = GameDir .. "/lua/?.lua" -- Note: sandbox has been customized to remove math.random local sandbox = require('sandbox') local stp = require('stacktraceplus') local PrintStackTrace = function(msg) return stp.stacktrace("", 2) .. "\nError message\n===============\n"...
gpl-3.0
thedraked/darkstar
scripts/globals/mobskills/Grim_Halo.lua
11
1096
--------------------------------------------------- -- Grim Halo -- Deals damage to a all targets. Additional effect: Knockback -- Only used by Fomors that wield a two-handed weapon (principally WAR, BLM, DRK, SAM, DRG, and SMN fomors). --------------------------------------------------- require("scripts/globals/sett...
gpl-3.0
kaustavha/luvit
tests/test-dgram.lua
11
1434
--[[ Copyright 2014 The Luvit Authors. All Rights Reserved. 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 Unless required by applicable law or agr...
apache-2.0
thedraked/darkstar
scripts/zones/Chamber_of_Oracles/bcnms/shattering_stars.lua
27
2049
----------------------------------- -- Area: Qu'Bia Arena -- Name: Shattering stars - Maat Fight -- @pos -221 -24 19 206 ----------------------------------- package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil; ------------------------------------- require("scripts/zones/Sacrificial_Chamber/TextIDs"); --...
gpl-3.0
thedraked/darkstar
scripts/zones/Southern_San_dOria/npcs/Alaune.lua
14
1492
----------------------------------- -- Area: Southern San d`Oria -- NPC: Alaune -- Type: Tutorial NPC -- @zone 230 -- @pos -90 1 -56 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Southern_San_dOria/Te...
gpl-3.0
NPLPackages/main
script/kids/3DMapSystemApp/mcml/test/test_MyPageCtrl.lua
1
1727
--[[ Title: Page Control test Author(s): LiXizhi Date: 2008/3/21 Desc: if one have a NPL file dedicated to a MCML file, one can create the NPL file like in this file. more information, please see script/kids/3DMapSystemApp/mcml/PageCtrl.lua use the lib: ------------------------------------------------------------ NPL...
gpl-2.0
SnabbCo/snabbswitch
lib/luajit/testsuite/test/opt/sink/ffi.lua
6
3159
local ffi = require("ffi") do --- incrementing local x = 10000000000000ll for i=1,100 do x=x+1 end assert(x == 10000000000100ll) end do --- hoistable increment !private_G local x = 10000000000000ll local z for i=1,100 do z=x+1 end assert(z == 10000000000001ll) for i=1,100 do local y=x; z=x+1; g=y end ...
apache-2.0
NPLPackages/main
script/ide/NPLFlashTest/FlashGameTest.lua
1
4134
--[[ Title: Author(s): Leio Date: 2009/8/20 use the lib: ------------------------------------------------------------ NPL.load("(gl)script/ide/NPLFlashTest/FlashGameTest.lua"); NPLFlashTest.FlashGameTest.Show(); NPLFlashTest.FlashGameTest.LoadMovie("Games/Beats/Beats.swf"); --------------------------------------------...
gpl-2.0
mtroyka/Zero-K
LuaUI/Widgets/gui_chili_crudeplayerlist.lua
3
29241
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Chili Crude Player List", desc = "v1.327 Chili Crude Player List.", author = "CarRepair...
gpl-2.0
thedraked/darkstar
scripts/zones/Uleguerand_Range/npcs/HomePoint#3.lua
27
1258
----------------------------------- -- Area: Uleguerand_Range -- NPC: HomePoint#3 -- @pos ----------------------------------- package.loaded["scripts/zones/Uleguerand_Range/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Uleguerand_Range/TextIDs"); require("scripts/globals/homepoint"); ...
gpl-3.0
mtroyka/Zero-K
LuaRules/Configs/StartBoxes/Comet Catcher Redux.lua
17
1056
return { [0] = { nameLong = "North", nameShort = "N", startpoints = { {3072,614}, {5120,614}, {1024,614}, }, boxes = { { {0,0}, {6144,0}, {6144,1229}, {0,1229}, }, }, }, [1] = { nameLong = "South", nameShort = "S", startpoints = { {3072,7578}, {1024,7578}, {5...
gpl-2.0
thedraked/darkstar
scripts/zones/Qufim_Island/npcs/Nightflowers.lua
14
1556
----------------------------------- -- Area: Qufim Island -- NPC: Nightflowers -- Involved in Quest: Save My Son (Beastmaster Flag #1) -- @pos -264.775 -3.718 28.767 126 ----------------------------------- package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil; ----------------------------------- require("scripts...
gpl-3.0
thedraked/darkstar
scripts/zones/FeiYin/Zone.lua
16
3398
----------------------------------- -- -- Zone: FeiYin (204) -- ----------------------------------- package.loaded["scripts/zones/FeiYin/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require("scripts/globals/quests"); require("scripts/glo...
gpl-3.0
NPLPackages/main
script/kids/3DMapSystemApp/mcml/pe_datasource.lua
1
14584
--[[ Title: data source control in mcml Author(s): LiXizhi Date: 2008/5/18 Desc: MCML includes data source controls that allow you to work with different types of data sources such as a database, an XML file, or a middle-tier business object. Data source controls connect to and retrieve data from a data source and ma...
gpl-2.0
thedraked/darkstar
scripts/globals/weaponskills/steel_cyclone.lua
26
1617
----------------------------------- -- Steel Cyclone -- Great Axe weapon skill -- Skill level: 240 -- Delivers a single-hit attack. Damage varies with TP. -- In order to obtain Steel Cyclone, the quest The Weight of Your Limits must be completed. -- Will stack with Sneak Attack. -- Aligned with the Breeze Gorget, Aqua ...
gpl-3.0
X-Coder/wire
lua/wire/stools/7seg.lua
9
3209
WireToolSetup.setCategory( "Visuals/Indicators" ) WireToolSetup.open( "7seg", "7 Segment Display", "gmod_wire_indicator", nil, "7 Segment Displays" ) TOOL.GhostAngle = Angle(90, 0, 0) TOOL.GhostMin = "x" if CLIENT then language.Add( "tool.wire_7seg.name", "7-Segment Display Tool" ) language.Add( "tool.wire_7seg.des...
gpl-3.0
thedraked/darkstar
scripts/globals/spells/bluemagic/mind_blast.lua
26
1989
----------------------------------------- -- Spell: Mind Blast -- Deals lightning damage to an enemy. Additional effect: Paralysis -- Spell cost: 82 MP -- Monster Type: Demons -- Spell Type: Magical (Lightning) -- Blue Magic Points: 4 -- Stat Bonus: MP+5 MND+1 -- Level: 73 -- Casting Time: 3 seconds -- Recast Time: 30 ...
gpl-3.0
keharriso/rogue-with-friends
Tile.lua
1
2869
-- Rogue with Friends - a 2D, real-time, multiplayer roguelike -- --------------------------------------------------------------- -- Released under the GNU AGPLv3 or later. See README.md for info. local Data = require "Data" -- A Tile is a unit of space in an Area. Tiles have a type, represented by -- Tile.Type, and ...
agpl-3.0
kaustavha/luvit
examples/broken/static-file-server.lua
9
1228
local mime = require('mime') local http = require('http') local url = require('url') local fs = require('fs') local Response = require('http').Response -- Monkey patch in a helper function Response:notFound(reason) self:writeHead(404, { ["Content-Type"] = "text/plain", ["Content-Length"] = #reason }) sel...
apache-2.0
thedraked/darkstar
scripts/zones/Windurst_Walls/TextIDs.lua
7
1405
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6538; -- Come back after sorting your inventory. ITEM_OBTAINED = 6543; -- Obtained: ITEMS_OBTAINED = 6552; -- You obtain GIL_OBTAINED = 6544;...
gpl-3.0
SnabbCo/snabbswitch
src/lib/lua/StackTracePlus.lua
44
12501
-- tables local _G = _G local string, io, debug, coroutine = string, io, debug, coroutine -- functions local tostring, print, require = tostring, print, require local next, assert = next, assert local pcall, type, pairs, ipairs = pcall, type, pairs, ipairs local error = error assert(debug, "debug table must...
apache-2.0
NPLPackages/main
script/ide/System/Windows/Keyboard.lua
1
3184
--[[ Title: Keyboard Author(s): LiXizhi Date: 2015/9/3 Desc: Singleton object The Keyboard class provides Keyboard related events, methods and, properties which provide information regarding the state of the Keyboard. use the lib: ------------------------------------------------------------ NPL.load("(gl)script/ide/Sys...
gpl-2.0
savant2212/packages
net/smartsnmpd/files/mibs/interfaces.lua
158
4833
-- -- This file is part of SmartSNMP -- Copyright (C) 2014, Credo Semiconductor Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 2 of the License, or -- (at your optio...
gpl-2.0
thedraked/darkstar
scripts/globals/abilities/pets/tail_whip.lua
30
1284
--------------------------------------------------- -- Tail Whip M=5 --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); require("scripts/globals/summon"); -----------------------------------------------...
gpl-3.0
X-Coder/wire
lua/entities/gmod_wire_egp/lib/objects/wedgeoutline.lua
12
1673
-- Author: Divran local Obj = EGP:NewObject( "WedgeOutline" ) Obj.angle = 0 Obj.size = 45 Obj.fidelity = 180 local rad, cos, sin = math.rad, math.cos, math.sin Obj.Draw = function( self ) if (self.a>0 and self.w > 0 and self.h > 0 and self.size != 360) then local vertices = {} vertices[1] = { x = self.x, y = self...
gpl-3.0
mtroyka/Zero-K
LuaRules/Configs/MetalSpots/SpringMountainDelta.lua
17
4246
return { spots = { {x = 7368, z = 5688, metal = 1.8013601303101}, {x = 3000, z = 3240, metal = 1.4149597883224}, {x = 4600, z = 7416, metal = 1.4151902198792}, {x = 4744, z = 2728, metal = 1.4163403511047}, {x = 6312, z = 2536, metal = 1.4163397550583}, {x = 3992, z = 5352, metal = 1.4165700674057}, {x =...
gpl-2.0
mason-larobina/luakit
lib/session.lua
1
8210
--- Session saving / loading functions. -- -- This module allows you to save your current session when quitting -- luakit, and then restore it again the next time you open luakit. -- -- This module also provides a Lua API to allow other modules to save data to -- the session file and restore it when reopening Luakit. -...
gpl-3.0
NPLPackages/main
script/ide/System/Windows/Controls/TreeView.lua
1
2761
--[[ Title: TreeView Author(s): LiPeng Date: 2017/9/18 Desc: use the lib: ------------------------------------------------------------ NPL.load("(gl)script/ide/System/Windows/Controls/TreeView.lua"); local TreeView = commonlib.gettable("System.Windows.Controls.TreeView"); -----------------------------------------------...
gpl-2.0
dedeckeh/packages-1
net/dynapoint/src/dynapoint.lua
94
6369
#!/usr/bin/lua --[[ Copyright (C) 2016 Tobias Ilte <tobias.ilte@campus.tu-berlin.de> 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 v...
gpl-2.0
TardTeam/TeleTard_SuperGroups
plugins/spanish_lang.lua
3
17430
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
thedraked/darkstar
scripts/zones/Leujaoam_Sanctum/npcs/rune_of_release.lua
30
1891
----------------------------------- -- Area: Leujaoam Sanctum ----------------------------------- require("scripts/globals/besieged") require("scripts/zones/Leujaoam_Sanctum/IDs"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; -----...
gpl-3.0
moomoomoo309/FamiliarFaces
src/shine/colorgradesimple.lua
8
1750
--[[ The MIT License (MIT) Copyright (c) 2015 Matthias Richter Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
mit
mtroyka/Zero-K
effects/emg.lua
25
12010
-- emg_shells_m -- emg_hit -- flashplosion -- flashmuzzle1 -- emg_hit_he -- brawlimpacts -- brawlermuzzle -- emg_shells_l -- emg_hit_water return { ["emg_shells_m"] = { usedefaultexplosions = false, shells = { air = true, class = [[CSimpleParticleSystem]], count ...
gpl-2.0
thedraked/darkstar
scripts/globals/mobskills/Pyric_Bulwark.lua
27
1086
--------------------------------------------- -- Pyric Bulwark -- -- Description: Grants a Physical Shield effect for a time. -- Type: Enhancing -- -- Range: Self --------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstert...
gpl-3.0
thedraked/darkstar
scripts/zones/Northern_San_dOria/npcs/Mevreauche.lua
44
2103
----------------------------------- -- Area: Northern San d'Oria -- NPC: Mevreauche -- Type: Smithing Guild Master -- @pos -193.584 10 148.655 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status")...
gpl-3.0
thedraked/darkstar
scripts/globals/mobskills/Hellsnap.lua
31
1162
--------------------------------------------------- -- Hellsnap -- --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); --------------------------------------------------- function onMobSkillCheck(target,m...
gpl-3.0
thedraked/darkstar
scripts/zones/Bastok_Markets_[S]/npcs/Silke.lua
17
1235
----------------------------------- -- Area: Bastok Markets (S) -- NPC: Silke -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bastok_Markets_[S]/TextIDs"); require("scripts/globals/...
gpl-3.0
thedraked/darkstar
scripts/zones/Mhaura/npcs/Nereus.lua
29
3092
----------------------------------- -- Area: Mhaura -- NPC: Nereus -- Starts and ends repeteable quest A_POTTER_S_PREFERENCE ----------------------------------- -- player:startEvent(0x006e); standar dialog -- player:startEvent(0x0073); -- i have enough for now, come later -- player:startEvent(0x0072); -- ...
gpl-3.0
thedraked/darkstar
scripts/zones/Bastok_Markets_[S]/npcs/Pagdako.lua
17
1403
----------------------------------- -- Area: Bastok Markets (S) -- NPC: Pagdako -- Quest NPC -- pos -200 -6 -93 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bastok_Markets_[S]/TextIDs"); require("scripts...
gpl-3.0
mrbangi/tele
plugins/all.lua
264
4202
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
Ali-2h/losebot
plugins/stats.lua
49
3698
do local NUM_MSG_MAX = 4 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..' ' end if user.lastname then text = text..user.last_name end return text end -- Returns a table with `...
gpl-2.0
hengqujushi/ABTestingGateway
lib/abtesting/userinfo/ipParser.lua
25
1259
local _M = { _VERSION = '0.01' } local ffi = require("ffi") ffi.cdef[[ struct in_addr { uint32_t s_addr; }; int inet_aton(const char *cp, struct in_addr *inp); uint32_t ntohl(uint32_t netlong); char *inet_ntoa(struct in_addr in); uint32_t htonl(uint32_t hostlong); ]] local C = ffi.C local ip2long = funct...
mit
thedraked/darkstar
scripts/zones/Kamihr_Drifts/npcs/LiseranDoorEntrance.lua
27
1210
----------------------------------- -- Area: Kamihr Drifts -- NPC: Liseran Door Entrance -- Zones to Outer Ra'Kaznar (zone 274) -- @zone 274 -- @pos -34.549 -181.334 -20.031 ----------------------------------- package.loaded["scripts/zones/Kamihr_Drifts/TextIDs"] = nil; ----------------------------------- require("scr...
gpl-3.0
thedraked/darkstar
scripts/globals/spells/phalanx.lua
27
1151
----------------------------------------- -- Spell: PHALANX ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target,s...
gpl-3.0
latenitefilms/hammerspoon
extensions/socket/socket.lua
4
8839
--- === hs.socket === --- --- Talk to custom protocols using asynchronous TCP sockets. --- --- For UDP sockets see [`hs.socket.udp`](./hs.socket.udp.html). --- --- `hs.socket` is implemented with [CocoaAsyncSocket](https://github.com/robbiehanson/CocoaAsyncSocket). CocoaAsyncSocket's [tagging features](https://github.c...
mit
NPLPackages/main
script/kids/3DMapSystemApp/mcml/pe_stackview.lua
1
10163
--[[ Title: databinding stack view Author(s): LiXizhi Date: 2010/9/16 Desc: pe:stackview behaves just like a div, however its child content can be from a databinding source ---++ pe:stackview This control will fill entire client area, such returned top is height. Child node can be pe:stacknode which support auto size...
gpl-2.0
thedraked/darkstar
scripts/zones/Pashhow_Marshlands/npcs/Tahmasp.lua
14
1924
----------------------------------- -- Area: Pashhow Marshlands -- NPC: Tahmasp -- Type: Outpost Vendor -- @pos 464 24 416 109 ----------------------------------- package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/glo...
gpl-3.0
thedraked/darkstar
scripts/zones/Port_Jeuno/npcs/Veujaie.lua
14
1041
---------------------------------- -- Area: Port Jeuno -- NPC: Veujaie -- Type: Item Deliverer -- @zone 246 -- @pos -20.349 7.999 -2.888 -- ----------------------------------- package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; require("scripts/zones/Port_Jeuno/TextIDs"); -----------------------------...
gpl-3.0
alalazo/wesnoth
data/ai/micro_ais/cas/ca_hang_out.lua
2
5772
local H = wesnoth.require "helper" local AH = wesnoth.require "ai/lua/ai_helper.lua" local LS = wesnoth.require "location_set" local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua" local MAISD = wesnoth.require "ai/micro_ais/micro_ai_self_data.lua" local M = wesnoth.map local function get_hang_out_u...
gpl-2.0
kaustavha/luvit
tests/utils.lua
15
1222
local function deep_equal(expected, actual, path) if expected == actual then return true end local prefix = path and (path .. ": ") or "" local expectedType = type(expected) local actualType = type(actual) if expectedType ~= actualType then return false, prefix .. "Expected type " .. expectedType .....
apache-2.0
svn2github/papercrop
nmake.lua
15
2612
require('mylib') function detectVC() local VC8_path="c:\\Program Files\\Microsoft Visual Studio 8" local VC9_path="c:\\Program Files\\Microsoft Visual Studio 9.0" if os.isFileExist(VC8_path.."\\readme.htm") then print("VC8 detected") devenvExe=VC8_path.."\\Common7\\IDE\\devenv.com" setVa...
gpl-2.0
dufferzafar/Project-Euler-Solutions
Problems 1-50/12.lua
1
1279
--[[ Problem No. 12 What is the value of the first triangle number to have over five hundred divisors? Monday, January 16, 2012 ]]-- --Global Declarations floor = math.floor sqrt = math.sqrt --Sub Routines function pFactors(n) local pFac = {}; local p = 0; --Remove any factor of 2 if n%2 == 0 t...
unlicense
alirezanile/Nilebot
plugins/google.lua
94
1176
local function googlethat(query) local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&" local parameters = "q=".. (URL.escape(query) or "") -- Do the request local res, code = https.request(api..parameters) if code ~=200 then return nil end local data = json:decode(res) local r...
gpl-2.0
dicebox/minetest-france
mods/pyramids/nodes.lua
1
1459
local img = {"eye", "men", "sun"} for i=1,3 do minetest.register_node("pyramids:deco_stone"..i, { description = "Sandstone with "..img[i], tiles = {"default_sandstone.png^pyramids_"..img[i]..".png"}, is_ground_content = true, groups = {crumbly=2,cracky=3}, sounds = default.node_sound_stone_defaults(), }) e...
gpl-3.0
wrxck/mattata
plugins/location.lua
2
3220
--[[ Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local location = {} local mattata = require('mattata') local https = require('ssl.https') local url = require('socket.url') local json = require('dkjson') local setloc = r...
mit
FrisKAY/MineOS_Server
Applications/init.lua
1
6778
local backgroundColor = 0x262626 local foregroundColor = 0xcccccc do _G._OSVERSION = "OpenOS 1.5" local component = component local computer = computer local unicode = unicode -- Runlevel information. local runlevel, shutdown = "S", computer.shutdown computer.runlevel = function() return runlevel e...
gpl-3.0
dicebox/minetest-france
mods/mobs_animal/warthog.lua
1
1931
local S = mobs.intllib -- Warthog by KrupnoPavel mobs:register_mob("mobs_animal:pumba", { type = "animal", passive = false, attack_type = "dogfight", group_attack = true, reach = 2, damage = 2, hp_min = 5, hp_max = 15, armor = 200, collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4}, visual = "mesh", mesh = ...
gpl-3.0
AntiSpammer1313/mranti3
plugins/search_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...
gpl-2.0
mahdikord/baran
plugins/search_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...
gpl-2.0
nyov/luakit
lib/follow.lua
2
30701
------------------------------------------------------------ -- Link hinting for luakit -- -- © 2010-2012 Mason Larobina <mason.larobina@gmail.com> -- -- © 2010-2011 Fabian Streitel <karottenreibe@gmail.com> -- ------------------------------------------------------------ -- Get Lua env...
gpl-3.0
Relintai/Relintais-Enemy-Kooldown-Tracker-WotLK
lib/AceGUI-3.0/widgets/AceGUIContainer-TreeGroup.lua
2
18764
--[[----------------------------------------------------------------------------- TreeGroup Container Container that uses a tree control to switch between groups. -------------------------------------------------------------------------------]] local Type, Version = "TreeGroup", 30 local AceGUI = LibStub and LibStub("A...
mit
perusio/lua-repl-debian-package
t/plugin-basic-tests.lua
4
3870
-- vim:foldmethod=marker local repl = require 'repl' local utils = require 'test-utils' pcall(require, 'luarocks.loader') require 'Test.More' plan(28) local clone = repl:clone() do -- basic tests {{{ local loaded clone:loadplugin(function() loaded = true end) ok(loaded) error_like(function() cl...
mit
grimreaper/ValyriaTear
dat/effects/particles/fire.lua
5
2424
-- Fire particle -- Author: roos, modifications by Bertram systems = {} systems[0] = { enabled = true, emitter = { x=0, y=0, x2=0, y2=0, center_x=0, center_y=0, x_variation=0, y_variation=0, radius=30, shape='CIRCLE', ...
gpl-2.0
tianxiawuzhei/cocos-quick-lua
quick/cocos/network/DeprecatedNetworkFunc.lua
39
1074
--tip local function deprecatedTip(old_name,new_name) print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********") end --functions of WebSocket will be deprecated begin local targetPlatform = CCApplication:getInstance():getTargetPlatform() if (kTargetIphone == targetPlatf...
mit
LuaDist2/argparse
spec/tip_spec.lua
3
3130
local Parser = require "argparse" getmetatable(Parser()).error = function(_, msg) error(msg) end describe("tests related to tips", function() describe("provides tips when data is too long", function() it("for options", function() local parser = Parser() parser:option "-q" "--quiet" ...
mit
robert00s/koreader
frontend/device/kindle/device.lua
1
19841
local Generic = require("device/generic/device") local logger = require("logger") local function yes() return true end local function no() return false end -- luacheck: ignore local function kindleEnableWifi(toggle) local haslipc, lipc = pcall(require, "liblipclua") local lipc_handle = nil if haslipc and...
agpl-3.0
nyov/luakit
lib/bookmarks_chrome.lua
6
14437
-- Grab what we need from the Lua environment local table = table local string = string local io = io local print = print local pairs = pairs local ipairs = ipairs local math = math local assert = assert local setmetatable = setmetatable local rawget = rawget local rawset = rawset local type = type local os = os local ...
gpl-3.0
dicebox/minetest-france
mods/unified_inventory/bags.lua
1
6105
-- Bags for Minetest -- Copyright (c) 2012 cornernote, Brett O'Donnell <cornernote@gmail.com> -- License: GPLv3 local S = unified_inventory.gettext local F = unified_inventory.fgettext unified_inventory.register_page("bags", { get_formspec = function(player) local player_name = player:get_player_name() local fo...
gpl-3.0
abasshacker/abab
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
czlc/skynet
service/launcher.lua
1
3621
local skynet = require "skynet" local core = require "skynet.core" require "skynet.manager" -- import manager apis local string = string local services = {} -- services[inst] = service .. " " .. param local command = {} local instance = {} -- for confirm (function command.LAUNCH / command.ERROR / command.LAUNCHOK) lo...
mit
Kronuz/nginx_http_push_module
tests/test.lua
16
4254
print("The test 'framework' used here is still a touch wonky. A test failure need not mean that things are actually broken...") require "httpest" --fyi, the test "framework" used here is still wonky. math.randomseed(os.time()) local request=httpest.request local sendurl, listenurl = "http://localhost:8082/broadcast/pub...
mit
robert00s/koreader
frontend/ui/data/keyboardlayouts/pl_keyboard.lua
1
5017
return { shiftmode_keys = {["Shift"] = true}, symbolmode_keys = {["Sym"] = true, ["ABC"] = true}, utf8mode_keys = {["IM"] = true}, umlautmode_keys = {["Äéß"] = true}, keys = { -- first row { -- 1 2 3 4 5 6 7 8 9 10 11 ...
agpl-3.0
sagero/sipml5
asterisk/etc/extensions.lua
317
5827
CONSOLE = "Console/dsp" -- Console interface for demo --CONSOLE = "DAHDI/1" --CONSOLE = "Phone/phone0" IAXINFO = "guest" -- IAXtel username/password --IAXINFO = "myuser:mypass" TRUNK = "DAHDI/G2" TRUNKMSD = 1 -- TRUNK = "IAX2/user:pass@provider" -- -- Extensions are expected to be defined in a global table ...
bsd-3-clause
robert00s/koreader
frontend/ui/elements/screen_dpi_menu_table.lua
5
2393
local _ = require("gettext") local Screen = require("device").screen local function dpi() return G_reader_settings:readSetting("screen_dpi") end local function custom() return G_reader_settings:readSetting("custom_screen_dpi") end local function setDPI(_dpi) local InfoMessage = require("ui/widget/infomessage") ...
agpl-3.0
silverhammermba/awesome
lib/awful/layout/init.lua
1
9911
--------------------------------------------------------------------------- --- Layout module for awful -- -- @author Julien Danjou &lt;julien@danjou.info&gt; -- @copyright 2008 Julien Danjou -- @release @AWESOME_VERSION@ -- @module awful.layout --------------------------------------------------------------------------...
gpl-2.0
chrisliebert/rust-genbind
examples/library/example_luajitffi.lua
1
1903
-- Copyright (C) 2017 Chris Liebert local ffi = require "ffi" function build_wrapper() -- Build the shared library and generate the header local make_cmd = "cargo build" print(make_cmd) if not os.execute(make_cmd) == 0 then error("Unable to execute " .. make_cmd) end end function load_wrapper() -- Loa...
mit
facebook/fbcunn
fbcunn/FFTWrapper.lua
1
7095
-- Copyright 2004-present Facebook. All Rights Reserved. local ffi = require 'ffi' local package_path = package.searchpath('cufft_wrapper', package.cpath) if not package_path then -- not OSS package_path = 'torch_fb_fbcunn_cufft_wrapper' end local CuFFTFFI = ffi.load(package_path) ffi.cdef[[ typedef int cufft...
bsd-3-clause
saeqe/botele
bot/bot.lua
2
7075
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 = '0.14.6' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then r...
gpl-2.0
mqmaker/witi-openwrt
package/ramips/ui/luci-mtk/src/applications/luci-p910nd/luasrc/model/cbi/p910nd.lua
74
1512
--[[ LuCI p910nd (c) 2008 Yanira <forum-2008@email.de> (c) 2012 Jo-Philipp Wich <jow@openwrt.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0...
gpl-2.0
NSAKEY/prosody-modules
mod_compat_muc_admin/mod_compat_muc_admin.lua
32
11261
local st = require "util.stanza"; local jid_split = require "util.jid".split; local jid_bare = require "util.jid".bare; local jid_prep = require "util.jid".prep; local log = require "util.logger".init("mod_muc"); local muc_host = module:get_host(); if not hosts[muc_host].modules.muc then -- Not a MUC host module:log(...
mit
mohammadclashclash/amirdark
plugins/ingroup.lua
202
31524
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)] = { ...
gpl-2.0
silverhammermba/awesome
tests/test-maximize.lua
3
2473
--- Tests maximize and fullscreen local runner = require("_runner") local awful = require("awful") local original_geo = nil local steps = { function(count) if count == 1 then awful.spawn("xterm") else local c = client.get()[1] if c then original...
gpl-2.0
skynet/wrk
deps/luajit/src/jit/dis_ppc.lua
88
20319
---------------------------------------------------------------------------- -- 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 ----------------------------------------------------------------------------...
apache-2.0
bizkut/BudakJahat
System/engines/HealingEngineFunctions.lua
1
23740
-- here we want to define functions to use with the healing profiles -- find best tank to put our lb/beacon/earth shield on function getFocusedTank() local tanks = getTanksTable() -- if we are targetting a mob and its targetting a tank we want to define which tank it is. if #tanks > 0 and GetUnitExists("target") an...
gpl-3.0
lumig242/Hue-Integration-with-CDAP
tools/wrk-scripts/lib/uri-f570bf7.lua
22
6368
-- The MIT License (MIT) -- -- Copyright (c) 2014 Cyril David <cyx@cyx.is> -- Copyright (c) 2011-2013 Bertrand Mansion <bmansion@mamasam.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the So...
apache-2.0
robert00s/koreader
tools/trace_require.lua
15
1538
-- trace package loading flow with require call -- usage: ./luajit -ltools/trace_require reader.lua ../../test local math = require("math") local _require = require local loaded_modules = {} local highlight = "*" -- timing threshold for highlight annotation local threshold = 0.001 -- whether to trace loaded packages ...
agpl-3.0
bigdogmat/wire
lua/entities/gmod_wire_expression2/core/angle.lua
10
10065
/******************************************************************************\ Angle support \******************************************************************************/ // wow... this is basically just vector-support, but renamed angle-support :P // pitch, yaw, roll registerType("angle", "a", { 0, 0, 0 }, func...
apache-2.0
135yshr/Holocraft-server
world/Plugins/Core/plugins.lua
6
3016
function HandlePluginsCommand(a_Split, a_Player) -- Parse the parameters for plugin statuses to show: local IncludePluginStatus = {} -- map of status -> true for statuses to show local idx = 2 while (a_Split[idx]) do local param = a_Split[idx] idx = idx + 1 if (param == "all") then IncludePluginStatus[cP...
mit
tianxiawuzhei/cocos-quick-lua
quick/framework/cc/components/behavior/EventProtocol.lua
10
5330
local Component = import("..Component") local EventProtocol = class("EventProtocol", Component) function EventProtocol:ctor() EventProtocol.super.ctor(self, "EventProtocol") self.listeners_ = {} self.nextListenerHandleIndex_ = 0 end function EventProtocol:addEventListener(eventName, listener, tag) as...
mit
silverhammermba/awesome
lib/beautiful/init.lua
1
6686
---------------------------------------------------------------------------- --- Theme library. -- -- @author Damien Leone &lt;damien.leone@gmail.com&gt; -- @author Julien Danjou &lt;julien@danjou.info&gt; -- @copyright 2008-2009 Damien Leone, Julien Danjou -- @release @AWESOME_VERSION@ -- @module beautiful -----------...
gpl-2.0
ioiasff/qrt
plugins/rae.lua
616
1312
do function getDulcinea( text ) -- Powered by https://github.com/javierhonduco/dulcinea local api = "http://dulcinea.herokuapp.com/api/?query=" local query_url = api..text local b, code = http.request(query_url) if code ~= 200 then return "Error: HTTP Connection" end dulcinea = json:decode(b) ...
gpl-2.0
bigdogmat/wire
lua/wire/stools/input.lua
1
1594
WireToolSetup.setCategory( "Input, Output/Keyboard Interaction" ) WireToolSetup.open( "input", "Numpad Input", "gmod_wire_input", nil, "Numpad Inputs" ) if CLIENT then language.Add( "tool.wire_input.name", "Input Tool (Wire)" ) language.Add( "tool.wire_input.desc", "Spawns a input for use with the wire system." ) l...
apache-2.0
silverhammermba/awesome
spec/wibox/widget/textbox_spec.lua
14
3797
--------------------------------------------------------------------------- -- @author Uli Schlachter -- @copyright 2015 Uli Schlachter --------------------------------------------------------------------------- local textbox = require("wibox.widget.textbox") describe("wibox.widget.textbox", function() local widg...
gpl-2.0
ProtectiveTeam/protectiveBot
plugins/stats.lua
866
4001
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
ariakabiryan/tnt_aria_bot
plugins/moderation.lua
336
9979
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 local username = v.username data[tostring(m...
gpl-2.0
Relintai/Relintais-Enemy-Kooldown-Tracker-WotLK
data/interruptbar.lua
1
7139
local band = bit.band Rekt.interrupts = { ["count"] = 0, ["spells"] = {} } function Rekt:AddInterruptCD(cooldown, srcFlags) local db = Rekt.db.profile; if not db["selfIBCDRegister"] then if not (band(srcFlags, 0x00000040) == 0x00000040) then return; end end local ir = Rekt.interrupts; ir["count"] =...
mit
czlc/skynet
test/testmysql.lua
18
3820
local skynet = require "skynet" local mysql = require "skynet.db.mysql" local function dump(obj) local getIndent, quoteStr, wrapKey, wrapVal, dumpObj getIndent = function(level) return string.rep("\t", level) end quoteStr = function(str) return '"' .. string.gsub(str, '"', '\\"') .. '"'...
mit
bigdogmat/wire
lua/entities/gmod_wire_dhdd.lua
2
2609
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Dupeable Hard Drive" ENT.Author = "Divran" ENT.WireDebugName = "Dupeable HDD" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(...
apache-2.0