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 |
|---|---|---|---|---|---|
akopytov/sysbench | src/lua/prime-test.lua | 1 | 1631 | #!/usr/bin/env sysbench
-- you can run this script like this:
-- $ ./prime-test.lua --cpu-max-prime=20000 --threads=8 --histogram --report-interval=1 run
sysbench.cmdline.options = {
-- the default values for built-in options are currently ignored, see
-- https://github.com/akopytov/sysbench/issues/151
[... | gpl-2.0 |
coronalabs/framework-widget | unitTestAssets/customSpinner.lua | 3 | 8382 | --
-- created with TexturePacker (http://www.texturepacker.com)
--
-- $TexturePacker:SmartUpdate:b92d122d387f0580b311aca0031ae342$
--
-- local sheetInfo = require("myExportedImageSheet") -- lua file that Texture packer published
--
-- local myImageSheet = graphics.newImageSheet( "ImageSheet.png", sheetInfo:getSheet() )... | mit |
simcop2387/nimbus-esp8266 | init.lua | 1 | 2649 | -- Begin WiFi configuration
local wifiConfig = {}
-- wifi.STATION -- station: join a WiFi network
-- wifi.AP -- access point: create a WiFi network
-- wifi.wifi.STATIONAP -- both station and access point
wifiConfig.mode = wifi.STATIONAP -- both station and access point
wifiConfig.acce... | gpl-2.0 |
Noneatme/mta-lostresources | [gamemodes]/Multistunt/main/stunts/server/airport/stunts.lua | 1 | 5884 | local stunt = {}
stunt[1] = createColSphere(-1356.1156005859, -166.49806213379, 14.165584564209, 2) -- Bike wand, naehe Spawn, anfang
setElementData(stunt[1], "ms.stunttype", "start")
stunt[2] = createColSphere(-1451.4631347656, -128.4737701416, 21.460729598999, 2) -- Bike wand, naehe Spawn, anfang, finnish
setElement... | gpl-2.0 |
AbolDalton/king | plugins/warn.lua | 3 | 7685 | local function warn_by_username(extra, success, result) -- /warn <@username>
if success == 1 then
local msg = result
local target = extra.target
local receiver = extra.receiver
local hash = 'warn:'..target
local value = redis:hget(hash, msg.id)
local text = ''
local name = ''
if msg.first_name then... | gpl-2.0 |
zackp30/cuberite | MCServer/Plugins/APIDump/main_APIDump.lua | 2 | 50931 | -- main.lua
-- Implements the plugin entrypoint (in this case the entire plugin)
-- Global variables:
local g_Plugin = nil
local g_PluginFolder = ""
local g_Stats = {}
local g_TrackedPages = {}
local function LoadAPIFiles(a_Folder, a_DstTable)
assert(type(a_Folder) == "string")
assert(type(a_DstTable) == ... | apache-2.0 |
mms92/wire | lua/entities/gmod_wire_expression2/core/datasignal.lua | 5 | 12371 | --[[
dataSignal optimized
Made by Divran
dataSignals are a combination of signals and gvars.
Instead of using one to trigger the E2, and the other
to send the data, dataSignals can both trigger the E2 AND
send the data at the same time.
Have fun!
]]
local currentsignal
local runagain
local groups = {}
local queue =... | apache-2.0 |
thenumbernine/hydro-cl-lua | hydro/mesh/cube3d.lua | 1 | 3310 | local class = require 'ext.class'
local vec3sz = require 'vec-ffi.vec3sz'
local vec3i = require 'vec-ffi.vec3i'
local vec3d = require 'vec-ffi.vec3d'
local vector = require 'ffi.cpp.vector'
local Mesh = require 'hydro.mesh.mesh'
local MeshFactory = require 'hydro.mesh.factory'
local Cube3DMeshFactory = class(MeshFacto... | mit |
Noneatme/mta-lostresources | [gamemodes]/prophunt/server/CLobbyManager.lua | 1 | 2876 | -- #######################################
-- ## Project: MTA Prop Hunt ##
-- ## For MTA: San Andreas ##
-- ## Name: LobbyManager.lua ##
-- ## Author: Noneatme ##
-- ## Version: 1.0 ##
-- ## License: See top Folder ##
-- #######################################
-- FUNCTIONS / METHODS --
local cFunc ... | gpl-2.0 |
asanosoyokaze/skynet | service/datacenterd.lua | 100 | 1928 | local skynet = require "skynet"
local command = {}
local database = {}
local wait_queue = {}
local mode = {}
local function query(db, key, ...)
if key == nil then
return db
else
return query(db[key], ...)
end
end
function command.QUERY(key, ...)
local d = database[key]
if d then
return query(d, ...)
end
... | mit |
mms92/wire | lua/wire/stools/soundemitter.lua | 8 | 2958 | WireToolSetup.setCategory( "Other/Sound" )
WireToolSetup.open( "soundemitter", "Sound Emitter", "gmod_wire_soundemitter", nil, "Sound Emitters" )
if CLIENT then
language.Add( "tool.wire_soundemitter.name", "Sound Emitter Tool (Wire)" )
language.Add( "tool.wire_soundemitter.desc", "Spawns a sound emitter for use with... | apache-2.0 |
RailTracker/OpenRA | mods/cnc/maps/gdi04b/gdi04b.lua | 25 | 5871 | BhndTrigger = { CPos.New(39, 21), CPos.New(40, 21), CPos.New(41, 21) }
Atk1Trigger = { CPos.New(35, 37) }
Atk2Trigger = { CPos.New(9, 44), CPos.New(10, 44), CPos.New(11, 44), CPos.New(12, 44), CPos.New(13, 44) }
AutoTrigger = { CPos.New(5, 30), CPos.New(6, 30), CPos.New(7, 30), CPos.New(8, 30), CPos.New(9, 30), CPos.Ne... | gpl-3.0 |
thenumbernine/hydro-cl-lua | hydro/op/selfgrav.lua | 1 | 4551 | local table = require 'ext.table'
local class = require 'ext.class'
local file = require 'ext.file'
local ig = require 'imgui'
local real = require 'hydro.real' -- really 'realparam'
local half = require 'cl.obj.half'
local toreal, fromreal = half.toreal, half.fromreal
-- TODO make this a ctor parameter
local Poisso... | mit |
RuiChen1113/luci | protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua | 18 | 3897 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local encaps, atmdev, vci, vpi, username, password
local ipv6, defaultroute, metric, peerdns, dns,
keepalive_failure, keepalive_interval, demand, mtu
encaps = section:tabop... | apache-2.0 |
kingmiladee/bot-man | 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 |
shkan/telebot3 | 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 |
mms92/wire | lua/entities/gmod_wire_expression2/cl_init.lua | 9 | 6652 | include('shared.lua')
local function Include(e2, directives, includes, scripts)
if scripts[e2] then
return
end
local code = file.Read("expression2/" .. e2 .. ".txt")
-- removed CLIENT as this is client file
-- local code
-- if CLIENT the code = file.Read("expression2/" .. e2 .. ".txt")
if not code then
re... | apache-2.0 |
fabiopicchi/tdarts | Class.lua | 1 | 1485 | -- Import
local type = type
local error = error
local pairs = pairs
local getmetatable = getmetatable
local setmetatable = setmetatable
local Class = {}
setfenv(1, Class)
local function copyProperties(target, copy)
setmetatable(copy, getmetatable(target))
for key, val in pairs(target) do
if type(val) ... | gpl-2.0 |
coronalabs/framework-widget | widgetLibrary/widget_progressView.lua | 1 | 12502 |
-- Abstract: widget.newProgressView()
-- Code is MIT licensed; see https://www.coronalabs.com/links/code/license
---------------------------------------------------------------------------------------
local M =
{
_options = {},
_widgetName = "widget.newProgressView",
}
-- Require needed widget files
local _widget... | mit |
AbolDalton/king | 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 |
emoon/ProDBG | bin/win32/scripts/tundra/tools/gcc.lua | 22 | 1654 | module(..., package.seeall)
function apply(env, options)
-- load the generic C toolset first
tundra.unitgen.load_toolset("generic-cpp", env)
env:set_many {
["NATIVE_SUFFIXES"] = { ".c", ".cpp", ".cc", ".cxx", ".a", ".o" },
["OBJECTSUFFIX"] = ".o",
["LIBPREFIX"] = "lib",
["LIBSUFFIX"] = ".a",
... | mit |
pkdiego/BolScripts | file.lua | 3 | 2310 | @e(61V~D*>9D":L6eBC@"6L|-VJZ3X,:r8,Z3XLZ3XLZ3XLZr8,:rXLZ3XLZ3XL:rXLhr8LZ3XLZ3XLZ3XLZ3XLZ3XLZ3XLZ3XLZ38,:rXLZ3f,:r8LZ3XZ:rf,:3XZ:rXLZ3XLZ3XLZ3XLZ3XLZ3XLZA8,Z3f,:3XLZ3XLZ1VLZBXLZ3X):r8,:r8LZ3X[Z38LZo8,:r8,:rgLZ08I:rUL:r8,Z38,Zr8LZr8,:3XL:r8,Z3XLi3X,ZoXLZ0XLZ3ULZ3U,:0XLW3ULZ0XLZ38,:rXLZr8,:r8,:rXLW3XIZ08,W38,:rXLX1X[Z35Li... | gpl-2.0 |
thenumbernine/hydro-cl-lua | hydro/draw/3d_iso.lua | 1 | 10830 | local class = require 'ext.class'
local file = require 'ext.file'
local gl = require 'ffi.OpenGL'
local ffi = require 'ffi'
local table = require 'ext.table'
local Draw = require 'hydro.draw.draw'
-- 3D
local vertexesInCube = {
0,0,0,
1,0,0,
0,1,0,
1,1,0,
0,0,1,
1,0,1,
0,1,1,
1,1,1,
}
local quadsInCube = {
... | mit |
coronalabs/framework-widget | widget_theme_android_holo_dark_sheet.lua | 2 | 12158 | --
-- created with TexturePacker (http://www.codeandweb.com/texturepacker)
--
-- $TexturePacker:SmartUpdate:370930e56ccbb54e85821c1a52b4177d:817c3e12f292cfe6a64e3ae90842f754:55f6c8dbc4d218e459bcc825436901d7$
--
-- local sheetInfo = require("mysheet")
-- local myImageSheet = graphics.newImageSheet( "mysheet.png", sheetI... | mit |
shkan/telebot7 | plugins/Feedback.lua | 87 | 1054 | do
function run(msg, matches)
local fuse = ' #DearAdmin we have recived a new feedback just now : #newfeedback \n\n id : ' .. msg.from.id .. '\n\nNAME : ' .. msg.from.print_name ..'\n\nusername : @ ' .. msg.from.username ..'\pm :\n\n' .. matches[1]
local fuses = '!printf user#id' .. msg.from.id
local text = ... | gpl-2.0 |
Lautitia/newfies-dialer | lua/listener.lua | 4 | 10439 | --
-- Newfies-Dialer License
-- http://www.newfies-dialer.org
--
-- 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/.
--
-- Copyright (C) 2011-2014 Star2Billing S.L.
--
--... | mpl-2.0 |
mpiannucci/go-qt5 | make/ui/tabwidget.lua | 5 | 1455 | module("tabwidget")
name = "TabWidget"
base = "Widget"
funcs = [[
+Init()
@ Count() (n int)
@ CurrentIndex() (index int)
@ CurrentWidget() (w IWidget)
@ SetCurrentIndex(index int)
@ SetCurrentWidget(w IWidget)
AddTab(w IWidget, label string, icon *Icon)
InsertTab(index int, w IWidget, label string, icon *Icon)
Remove... | bsd-2-clause |
Jfalcon1387/RollForLoot | Libs/AceLocale-3.0/AceLocale-3.0.lua | 16 | 5774 | --- **AceLocale-3.0** manages localization in addons, allowing for multiple locale to be registered with fallback to the base locale for untranslated strings.
-- @class file
-- @name AceLocale-3.0
-- @release $Id: AceLocale-3.0.lua 1035 2011-07-09 03:20:13Z kaelten $
local MAJOR,MINOR = "AceLocale-3.0", 6
local ... | lgpl-3.0 |
cogwerkz/DiabolicUI | modules/unitframes/unitframes.lua | 2 | 7114 | local Addon, Engine = ...
local Module = Engine:NewModule("UnitFrames")
-- Lua API
local unpack = unpack
-- WoW API
local CreateFrame = CreateFrame
-- Client version constants
local ENGINE_LEGION = Engine:IsBuild("Legion")
local ENGINE_MOP = Engine:IsBuild("MoP")
local ENGINE_CATA = Engine:IsBuild("... | mit |
SammyJames/Rave | Modules/Links.lua | 1 | 1222 | local ModulePrototype = Rave.ModulePrototype
local Links = ModulePrototype:Subclass()
local Constants = Rave.Constants
local CBM = CALLBACK_MANAGER
local LM = LINK_HANDLER
local CHARACTER_LINK_TYPE = CHARACTER_LINK_TYPE
local DISPLAY_NAME_LINK_TYPE = DISPLAY_... | mit |
akopytov/sysbench | src/lua/oltp_update_index.lua | 1 | 1139 | #!/usr/bin/env sysbench
-- Copyright (C) 2006-2017 Alexey Kopytov <akopytov@gmail.com>
-- 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)... | gpl-2.0 |
omid1212/hgbok | 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 |
zhukunqian/slua-1 | build/luajit-2.0.4/dynasm/dasm_x86.lua | 116 | 58970 | ------------------------------------------------------------------------------
-- DynASM x86/x64 module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
local x64 = x64
-- Module i... | mit |
CC-Hive/Main | src/Shared/patience.lua | 1 | 5134 | --
-- Copyright 2019 Lupus590
--
-- 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, merge, publis... | mit |
Noneatme/mta-lostresources | [gamemodes]/twd/client/CSettings.lua | 1 | 1219 | -- #######################################
-- ## Project: MTA:The Walking Death ##
-- ## Name: Client Settings ##
-- ## Author: Noneatme ##
-- ## Version: 1.0 ##
-- ## License: See top Folder ##
-- #######################################
-- FUNCTIONS / METHODS --
local cFunc = {}; -- Local Functions
l... | gpl-2.0 |
vipteam1/VIPTEAM | plugins/dowelcome.lua | 1 | 2430 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ Team name : ( 🌐 VIP_TEAM 🌐 )▀▄ ▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ File name : ( #all ) ▀▄ ▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ Guenat team: ( @VIP_TEAM1 ) ▀▄ ▄▀
▀▄ ▄▀ ... | gpl-2.0 |
RuiChen1113/luci | applications/luci-app-olsr/luasrc/controller/olsr.lua | 36 | 9890 | module("luci.controller.olsr", package.seeall)
local neigh_table = nil
local ifaddr_table = nil
function index()
local ipv4,ipv6
if nixio.fs.access("/etc/config/olsrd") then
ipv4 = 1
end
if nixio.fs.access("/etc/config/olsrd6") then
ipv6 = 1
end
if not ipv4 and not ipv6 then
return
end
require("luci.mo... | apache-2.0 |
mms92/wire | lua/entities/gmod_wire_hologrid.lua | 9 | 1794 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Holo Grid"
ENT.Author = "Chad 'Jinto'"
ENT.WireDebugName = "Holo Grid"
if CLIENT then return end -- No more client
function ENT:Initialize( )
self:PhysicsInit( SOLID_VPHYSICS );
self:SetMoveType( MOVETYPE_VPHYSICS );
self:Se... | apache-2.0 |
psychon/lgi | lgi/override/cairo.lua | 1 | 29880 | ------------------------------------------------------------------------------
--
-- LGI Cairo override module.
--
-- Copyright (c) 2012 Pavel Holejsovsky
-- Licensed under the MIT license:
-- http://www.opensource.org/licenses/mit-license.php
--
---------------------------------------------------------------------... | mit |
CC-Hive/Main | old docs/Lost and Found/Inventory/Inventory-Api.lua | 1 | 3163 | --Inventory - Api
local succes = false
local oldSlot = turtle.getSelectedSlot()
--Checks for a specific item in current slot and returns succes
local function checkItem(name)
if turtle.getItemDetail() ~= nil then
local data = turtle.getItemDetail()
if data.name == name then
... | mit |
mms92/wire | lua/entities/gmod_wire_cd_ray.lua | 9 | 7845 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire CD Ray"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.WireDebugName = "CD Ray"
function ENT:SetupDataTables()
self:NetworkVar( "Float", 0, "BeamLength" )
end
if CLIENT then return end -- No more client
function ENT:Initialize()
self:Physic... | apache-2.0 |
uzlonewolf/proxmark3 | client/scripts/htmldump.lua | 26 | 1662 | -- The getopt-functionality is loaded from pm3/getopt.lua
-- Have a look there for further details
getopt = require('getopt')
bin = require('bin')
dumplib = require('html_dumplib')
example = "script run htmldump -o mifarecard_foo.html"
author = "Martin Holst Swende"
usage = "script run htmldump [-i <file>] [-o <file>]... | gpl-2.0 |
Armin041/RADDY | plugins/Welcome SuperGroup.lua | 5 | 3065 | local add_user_cfg = load_from_file('data/add_user_cfg.lua') local function template_add_user(base, to_username, from_username, chat_name, chat_id) base = base or '' to_username = '@' .. (to_username or '') from_username = '@' .. (from_username or '') chat_name = string.gsub(chat_name, '_', ' ') or '' chat_id = "chat#... | gpl-2.0 |
jav/freeciv | dependencies/tolua-5.1/src/bin/lua/function.lua | 5 | 9832 | -- tolua: function 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,
-- enhancement... | gpl-2.0 |
chentao/thrift | lib/lua/TProtocol.lua | 98 | 5119 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | apache-2.0 |
bocaaust/SoundView | Libs/RuntimeResources.bundle/tp.lua | 81 | 3612 | -----------------------------------------------------------------------------
-- Unified SMTP/FTP subsystem
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- Declare... | apache-2.0 |
psychon/lgi | lgi/ffi.lua | 5 | 5939 | ------------------------------------------------------------------------------
--
-- LGI Helpers for custom FFI definitions
--
-- Copyright (c) 2012 Pavel Holejsovsky
-- Licensed under the MIT license:
-- http://www.opensource.org/licenses/mit-license.php
--
---------------------------------------------------------... | mit |
mms92/wire | lua/entities/gmod_wire_spu/cl_init.lua | 12 | 4673 | include("cl_spuvm.lua")
include("shared.lua")
--------------------------------------------------------------------------------
WireSPU_MaxChannels = 32
local SoundEmitters = {}
local SoundEmitterLookup = {}
local HUDLookup = {}
--------------------------------------------------------------------------------
-- ... | apache-2.0 |
jav/freeciv | dependencies/tolua-5.1/src/bin/lua/array.lua | 3 | 5796 | -- tolua: array class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1999
-- $Id: array.lua,v 1.1 2000/11/06 22:03:57 celes Exp $
-- 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 ma... | gpl-2.0 |
uhvhugvhhbbh545hhhyg/rekjx | plugins/badword.lua | 6 | 2474 |
local function addword(msg, name)
local hash = 'chat:'..msg.to.id..':badword'
redis:hset(hash, name, 'newword')
return "کلمه جدید به فیلتر کلمات اضافه شد\n>"..name
end
local function get_variables_hash(msg)
return 'chat:'..msg.to.id..':badword'
end
local function list_variablesbad(msg)
local has... | gpl-2.0 |
mirbot/zdgbbbrblsb-vbv | plugins/tweet.lua | 634 | 7120 | local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local twitter_url = "https://api.twitter.com/1.1/statuses/user_timeline.json"
local client = OAuth.new(consumer_key,
consumer_secret,
... | gpl-2.0 |
mohammadclashclash/sinhfg | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
Kthulupwns/darkstar | scripts/globals/items/slice_of_roast_mutton.lua | 35 | 1397 | -----------------------------------------
-- ID: 4437
-- Item: slice_of_roast_mutton
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Strength 3
-- Intelligence -1
-- Attack % 27
-- Attack Cap 30
-----------------------------------------
require("scripts/globals/status");
--... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/mobskills/Tebbad_Wing.lua | 6 | 1242 | ---------------------------------------------
-- Tebbad Wing
--
-- Description: A hot wind deals Fire damage to enemies within a very wide area of effect. Additional effect: Plague
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: 30' radial.
-- Notes: Used only by Tiamat, Smok and Ildebra... | gpl-3.0 |
GabrielNicolasAvellaneda/luvit-upstream | deps/require.lua | 2 | 6643 | --[[
Copyright 2014-2015 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 o... | apache-2.0 |
himamm/uzzbot | plugins/lyrics.lua | 695 | 2113 | do
local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs'
local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5'
local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect'
local function getInfo(query)
print('Getting info of ' .. query)
local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY
... | gpl-2.0 |
rohanp/Algorithm-Implementations | Factorial/Lua/Yonaba/factorial_test.lua | 27 | 1336 | -- Tests for factorial.lua
local fact = require 'factorial'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1 end
loca... | mit |
Kthulupwns/darkstar | scripts/zones/Windurst_Waters/npcs/Kenapa-Keppa.lua | 17 | 10296 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Kenapa Keppa
-- Involved in Quest: Food For Thought, Hat in Hand
-- Working 100%
-- @zone = 238
-- @pos = 27 -6 -199
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("scripts/gl... | gpl-3.0 |
kuoruan/luci | modules/luci-base/luasrc/sgi/uhttpd.lua | 79 | 1956 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require "nixio.util"
require "luci.http"
require "luci.sys"
require "luci.dispatcher"
require "luci.ltn12"
function handle_request(env)
exectime = os.clock()
local renv = {
CONTENT_LENGTH = env.CONTENT_LEN... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/PsoXja/npcs/_i99.lua | 17 | 3404 | -----------------------------------
-- Area: Pso'Xja
-- NPC: Stone Gate
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/PsoXja/TextIDs");
require("scripts/globals/keyitems... | gpl-3.0 |
aa65535/luci | libs/luci-lib-nixio/axTLS/samples/lua/axssl.lua | 176 | 19286 | #!/usr/local/bin/lua
--
-- Copyright (c) 2007, Cameron Rich
--
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright notice,
-... | apache-2.0 |
ark120202/aabs | game/scripts/vscripts/libraries/statcollection/lib/utilities.lua | 1 | 2496 | STAT_UTILITIES_VERSION = "0.2"
--[[
This file contains a general use API for collecting stats, to be used in your schema.lua BuildGameArray or BuildPlayersArray
It will be extended with more functionalities as the library gets more usage and example cases
All the functions should only use methods from the ... | mit |
amenophis1er/prosody-modules | mod_privacy_lists/mod_privacy_lists.lua | 32 | 15782 | -- Prosody IM
-- Copyright (C) 2009-2014 Matthew Wild
-- Copyright (C) 2009-2014 Waqas Hussain
-- Copyright (C) 2009 Thilo Cestonaro
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
module:add_feature("jabber:iq:privacy");
local st = require "util.... | mit |
Kthulupwns/darkstar | scripts/zones/La_Vaule_[S]/mobs/Lobison.lua | 13 | 1534 | -----------------------------------
-- Area: La Vaule (S)
-- NPC: Lobison
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
mob:setLocalVar("transformTime", os.time())
end;
-----------------------------------
-- ... | gpl-3.0 |
aidansmyth/corona_game_template | config.lua | 1 | 2886 | local aspectRatio = display.pixelHeight / display.pixelWidth
application = {
content = {
width = aspectRatio > 1.5 and 800 or math.ceil( 1200 / aspectRatio ), -- Adaptive width
height = aspectRatio < 1.5 and 1200 or math.ceil( 800 * aspectRatio ), -- Adaptive height
-- width = 768, -- ipad width
... | mit |
Kthulupwns/darkstar | scripts/globals/weaponskills/tachi_kaiten.lua | 12 | 2204 | -----------------------------------
-- Tachi Kaiten
-- Great Katana weapon skill
-- Skill level: N/A
-- Additional effect: temporarily increases amount of TP stored with each hit.
-- Grants Store TP+7 for the duration of time that it is active. Length of time depends on TP.
-- 100 TP = 20s
-- 200 TP = 40s
-- 30... | gpl-3.0 |
amenophis1er/prosody-modules | mod_log_slow_events/mod_log_slow_events.lua | 21 | 1703 | local time = require "socket".gettime;
local base64_decode = require "util.encodings".base64.decode;
local max_seconds = module:get_option_number("log_slow_events_threshold", 0.5);
function event_wrapper(handlers, event_name, event_data)
local start = time();
local ret = handlers(event_name, event_data);
local dur... | mit |
ytagga/tuit-lazy | tuit/combine.lua | 1 | 7888 | --- tuit/combine.lua - functional programming
-------------------------------------------------------------------
-- Copyright (C) 2013-2014 TAGA Yoshitaka <tagga@tsuda.ac.jp>
--
-- Permission is hereby granted, free of charge, to any person
-- obtaining a copy of this software and associated documentation
-- files (t... | mit |
dios-game/dios-cocos-samples | src/lua-coin-tree/Resources/src/cocos/cocosbuilder/CCBReaderLoad.lua | 61 | 5574 | if nil == cc.CCBReader then
return
end
ccb = ccb or {}
function CCBReaderLoad(strFilePath,proxy,owner)
if nil == proxy then
return nil
end
local ccbReader = proxy:createCCBReader()
local node = ccbReader:load(strFilePath)
local rootName = ""
--owner set in readCCBFromFile i... | mit |
Kthulupwns/darkstar | scripts/zones/Mhaura/npcs/Wilhelm.lua | 12 | 2234 | -----------------------------------
-- Area: Mhaura
-- NPC: Wilhelm
-- Type: Standard NPC
-- @pos -22.746 -5 17.157 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("/scripts/globals/armor_upgrade");
--------------------------... | gpl-3.0 |
dios-game/dios-cocos-samples | src/lua-coin-tree/Resources/src/cocos/framework/transition.lua | 57 | 7512 | --[[
Copyright (c) 2011-2014 chukong-inc.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 Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dis... | mit |
czlc/ejoy2d | ejoy2d/simplepackage.lua | 1 | 2679 | -- It's a simple sprite package warpper, use your own asset format instead.
local ejoy2d = require "ejoy2d"
local png = require "ejoy2d.png"
local pack = require "ejoy2d.spritepack"
local sprite = require "ejoy2d.sprite"
-- This limit defined in texture.c
local MAX_TEXTURE = 128
local textures = {}
local packages = ... | mit |
jlopenwrtluci/luci | modules/luci-mod-freifunk/luasrc/controller/freifunk/remote_update.lua | 68 | 1475 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.freifunk.remote_update", package.seeall)
function index()
if not nixio.fs.access("/usr/sbin/remote-update") then
return
end
entry({"admin", "system", "remote_update"}, call("act_re... | apache-2.0 |
iSepehr1/TeleGuard | plugins/Owners.lua | 1 | 12461 | local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['settings'... | gpl-2.0 |
Mleaf/mleaf_luci | applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/widget.lua | 78 | 1243 | --[[
LuCI - Lua Configuration Interface
Copyright 2012 Manuel Munz <freifunk at somakoma dot de>
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
]]--
... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Kazham/npcs/Jakoh_Wahcondalo.lua | 9 | 1606 | -----------------------------------
-- Area: Kazham
-- NPC: Jakoh Wahcondalo
-- @pos 101 -16 -115 250
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Kazham/TextIDs");
-----------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/spells/sandstorm.lua | 31 | 1153 | --------------------------------------
-- Spell: Sandstorm
-- Changes the weather around target party member to "dusty."
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
----------------------------------------... | gpl-3.0 |
Mleaf/mleaf_luci | applications/luci-asterisk/luasrc/model/cbi/asterisk/phone_sip.lua | 80 | 3813 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Jo-Philipp Wich <xm@subsignal.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$
]]--
l... | apache-2.0 |
naader1380/n2 | plugins/english_lang.lua | 5 | 18072 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
limelime/xmpv | xmpv/xmpv.lua | 1 | 8068 | --[[
<readme>
# DESCRIPTION
`xmpv` is a set of Lua scripts for `mpv` media player that uses `TMSU` to provide the following extra features:
* Tag files that you like.
* Display your top favorite files.
* Mark play position.
* Play next marked position.
* Play previous marked position.
* Delete previous m... | gpl-2.0 |
juanmanuel-calderon/SteinerTree | Kruskal.lua | 1 | 4037 | --[[
Contains the Kruskal approach to solve the Steiner Tree Problem.
The algorithm is:
KRUSKAL(G):
1 A = Ø
2 foreach v ? G.V:
3 MAKE-SET(v)
4 foreach (u, v) ordered by weight(u, v), increasing:
5 if FIND-SET(u) ? FIND-SET(v):
6 A = A ? {(u, v)}
7 UNION(u, v)
8 return A
(from https://en.... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Bostaunieux_Oubliette/npcs/Chumia.lua | 38 | 1045 | -----------------------------------
-- Area: Bostaunieux Oubliette
-- NPC: Chumia
-- Type: Standard NPC
-- @pos 102.420 -25.001 70.457 167
-----------------------------------
package.loaded["scripts/zones/Bostaunieux_Oubliette/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bostaunieux... | gpl-3.0 |
FPtje/DarkRP | gamemode/modules/fadmin/fadmin/cl_interface/cl_scoreboardPlayer.lua | 1 | 9575 | FAdmin.ScoreBoard.Player.Information = {}
FAdmin.ScoreBoard.Player.ActionButtons = {}
function FAdmin.ScoreBoard.Player.Show(ply)
ply = ply or FAdmin.ScoreBoard.Player.Player
FAdmin.ScoreBoard.Player.Player = ply
if not IsValid(ply) or not IsValid(FAdmin.ScoreBoard.Player.Player) then FAdmin.ScoreBoard.Ch... | mit |
Kthulupwns/darkstar | scripts/globals/spells/Uncanny_Etude.lua | 11 | 1613 | -----------------------------------------
-- Spell: Uncanny Etude
-- Static DEX Boost, BRD 72
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
f... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Temple_of_Uggalepih/npcs/_4f3.lua | 14 | 2011 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: _4f3
-- Notes: Tonberry Priest Room (Offers Tonberry Hate Reset)
-- @pos 60.001 -1.653 -147.755 159
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
----------------------------------... | gpl-3.0 |
a-wortman/blingbling | text_box.lua | 4 | 9071 | -- @author cedlemo
local setmetatable = setmetatable
local ipairs = ipairs
local math = math
local table = table
local type = type
local string = string
local color = require("gears.color")
local base = require("wibox.widget.base")
local helpers = require("blingbling.helpers")
local superproperties = require("blingb... | gpl-2.0 |
Kthulupwns/darkstar | scripts/globals/spells/geohelix.lua | 22 | 1716 | --------------------------------------
-- Spell: Geohelix
-- Deals earth damage that gradually reduces
-- a target's HP. Damage dealt is greatly affected by the weather.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/m... | gpl-3.0 |
xvaara/kong | kong/api/crud_helpers.lua | 1 | 4409 | local responses = require "kong.tools.responses"
local validations = require "kong.dao.schemas_validation"
local app_helpers = require "lapis.application"
local utils = require "kong.tools.utils"
local is_uuid = validations.is_valid_uuid
local _M = {}
function _M.find_api_by_name_or_id(self, dao_factory, helpers)
l... | apache-2.0 |
nshafer/AnchorSprite | gtween.lua | 1 | 14125 | --[[
GTween for Gideros
This code is MIT licensed, see http://www.opensource.org/licenses/mit-license.php
Copyright (c) 2010 - 2011 Gideros Mobile
Based on GTween 2.01 for ActionScript 3
http://gskinner.com/libraries/gtween/
GTween 2.01 for ActionScript 3 is MIT licensed, see http://www.opensource.org/licenses... | apache-2.0 |
alioshii/KASBAR | plugins/lock_tag.lua | 14 | 1109 | --[[
#
#ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#:((
# For More Information ....!
# Developer : Aziz < @TH3_GHOST >
# our channel: @DevPointTeam
# Version: 1.1
#:))
#ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#
]]
lo... | gpl-2.0 |
morteza1185/tele-red-bot | plugins/banhammer.lua | 1085 | 11557 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Waughroon_Shrine/bcnms/prehistoric_pigeons.lua | 13 | 1786 | -----------------------------------
-- Area: Waughroon_Shrine
-- Name: Prehistoric Pigeons
-- KSNM30
-----------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scr... | gpl-3.0 |
kuoruan/luci | modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua | 22 | 3303 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2011 Manuel Munz <freifunk at somakoma de>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local util = require "luci.util"
local uci = require "luci.model.uci".cursor()
local profiles = "/etc/config/profile_*"
m = ... | apache-2.0 |
aa65535/luci | modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua | 22 | 3303 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2011 Manuel Munz <freifunk at somakoma de>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local util = require "luci.util"
local uci = require "luci.model.uci".cursor()
local profiles = "/etc/config/profile_*"
m = ... | apache-2.0 |
Sponk/neotris | scripts/SDK/Tile.lua | 1 | 1909 | dofile("Widget.lua")
--- The Tile class
-- The tile class contains primitives to display the contents of a SpriteSheet.
--
-- See also: <a href="Widget.lua.html">Widget</a>
--
-- Example:
--[[
dofile("SDK/Graphics2D.lua")
-- Load a spritesheet
spritesheet = SpriteSheet("maps/anim.png",90,90,2)
-- Create a lo... | gpl-3.0 |
mrbangi/mmb | plugins/ingroup.lua | 2 | 48662 | do
-- Check Member
local function check_member_autorealm(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[tostri... | gpl-2.0 |
yoer/hue | tools/wrk-scripts/lib/argparse.lua | 22 | 26634 | -- The MIT License (MIT)
-- Copyright (c) 2013 - 2015 Peter Melnichenko
-- 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
--... | apache-2.0 |
Velkon/DarkRP | gamemode/modules/money/sv_money.lua | 1 | 12002 | /*---------------------------------------------------------------------------
functions
---------------------------------------------------------------------------*/
local meta = FindMetaTable("Player")
function meta:addMoney(amount)
if not amount then return false end
local total = self:getDarkRPVar("money") +... | mit |
sirnuke/soup-kitchen-love | soup-kitchen/settings.lua | 1 | 1933 | -- Soup Kitchen
-- Bryan DeGrendel (c) 2016
local tag = "Settings"
local SettingsImpl = Class("settings")
local function generate_defaults(root)
root.Magic = {
QuickExit = {
Enabled = true,
Key = "escape"
},
}
root.Graphics = {
Directory = "images/",
Clear = { 255, 255, 255, 0 },
... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Garlaige_Citadel_[S]/Zone.lua | 28 | 1334 | -----------------------------------
--
-- Zone: Garlaige_Citadel_[S] (164)
--
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Garlaige_Citadel_[S]/TextIDs");
... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.