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 |
|---|---|---|---|---|---|
Tarfand-pro/TabChi | 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-3.0 |
microcai/skynet | lualib/skynet.lua | 19 | 15386 | local c = require "skynet.core"
local tostring = tostring
local tonumber = tonumber
local coroutine = coroutine
local assert = assert
local pairs = pairs
local pcall = pcall
local profile = require "profile"
coroutine.resume = profile.resume
coroutine.yield = profile.yield
local proto = {}
local skynet = {
-- read ... | mit |
Zirpon/skynet | lualib/cluster.lua | 48 | 1257 | local skynet = require "skynet"
local clusterd
local cluster = {}
function cluster.call(node, address, ...)
-- skynet.pack(...) will free by cluster.core.packrequest
return skynet.call(clusterd, "lua", "req", node, address, skynet.pack(...))
end
function cluster.open(port)
if type(port) == "string" then
skynet.... | mit |
Cloudef/darkstar | scripts/zones/Dynamis-Windurst/Zone.lua | 5 | 2072 | -----------------------------------
--
-- Zone: Dynamis-Windurst
--
-----------------------------------
package.loaded["scripts/zones/Dynamis-Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Dynamis-Windurst/TextIDs");
----------------------------... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Yuhtunga_Jungle/npcs/Cermet_Headstone.lua | 4 | 3333 | -----------------------------------
-- Area: Yuhtunga Jungle
-- NPC: Cermet Headstone
-- Involved in Mission: ZM5 Headstone Pilgrimage (Fire Fragment)
-- !pos 491 20 301 123
-----------------------------------
package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil;
-----------------------------------
require("s... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/items/plate_of_salmon_sushi_+1.lua | 2 | 1239 | -----------------------------------------
-- ID: 5664
-- Item: plate_of_salmon_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Strength 2
-- Accuracy % 15 (cap 72)
-- Ranged ACC % 15 (cap 72)
-- Resist Sleep +2
-----------------------------------------
require("scripts/globals/sta... | gpl-3.0 |
LeNitrous/sukufes-icon-builder | lib/loveframes/init.lua | 1 | 13945 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
local path = ...
require(path .. ".libraries.util")
require(path .. ".libraries.skins")
require(path .. ".libraries.template... | mit |
Cloudef/darkstar | scripts/globals/weaponskills/wasp_sting.lua | 2 | 1607 | -----------------------------------
-- Wasp Sting
-- Dagger weapon skill
-- Skill level: 5
-- Poisons target. Duration of effect varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Soil Gorget.
-- Aligned with the Soil Belt.
-- Element: None
-- Modifiers: : DEX:100%
-- 100%TP 200%TP 300%TP
-- ... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Boneyard_Gully/Zone.lua | 5 | 1064 | -----------------------------------
--
-- Zone: Boneyard_Gully (8)
--
-----------------------------------
package.loaded["scripts/zones/Boneyard_Gully/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Boneyard_Gully/TextIDs");
------------------------------... | gpl-3.0 |
Howaner/MCServer | Server/Plugins/APIDump/Classes/WebAdmin.lua | 28 | 2144 | return
{
cWebAdmin =
{
Desc = "",
Functions =
{
GetHTMLEscapedString = { Params = "string", Return = "string", Notes = "(STATIC) Gets the HTML-escaped representation of a requested string. This is useful for user input and game data that is not guaranteed to be escaped already." },
},
}, -- cWebAdmin
... | apache-2.0 |
nyasukun/openstackcraft | world/Plugins/APIDump/Classes/WebAdmin.lua | 28 | 2144 | return
{
cWebAdmin =
{
Desc = "",
Functions =
{
GetHTMLEscapedString = { Params = "string", Return = "string", Notes = "(STATIC) Gets the HTML-escaped representation of a requested string. This is useful for user input and game data that is not guaranteed to be escaped already." },
},
}, -- cWebAdmin
... | apache-2.0 |
fgprodigal/RayUI | Interface/AddOns/RayUI_Options/libs/AceGUI-3.0/widgets/AceGUIWidget-Heading.lua | 68 | 2216 | --[[-----------------------------------------------------------------------------
Heading Widget
-------------------------------------------------------------------------------]]
local Type, Version = "Heading", 20
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or... | mit |
Cloudef/darkstar | scripts/globals/mobskills/lethe_arrows.lua | 2 | 1030 | ---------------------------------------------
-- Lethe Arrows
--
-- Description: Deals a ranged attack to target. Additional effect: Knockback, Bind, and Amnesia
-- Type: Ranged
-- Utsusemi/Blink absorb: Ignores Utsusemi
-- Range: Unknown
-- Notes:
---------------------------------------------
require("scripts/globals/... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/items/plate_of_beef_paella_+1.lua | 2 | 1233 | -----------------------------------------
-- ID: 5973
-- Item: Plate of Beef Paella +1
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- HP 45
-- Strength 6
-- Attack % 19 Cap 95
-- Undead Killer 6
-----------------------------------------
require("scripts/globals/status");
-----------------... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/weaponskills/seraph_blade.lua | 23 | 1356 | -----------------------------------
-- Seraph Blade
-- Sword weapon skill
-- Skill Level: 125
-- Deals light elemental damage to enemy. Damage varies with TP.
-- Ignores shadows.
-- Aligned with the Soil Gorget.
-- Aligned with the Soil Belt.
-- Element: Light
-- Modifiers: STR:40% ; MND:40%
-- 100%TP 200%TP 300%... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/RuAun_Gardens/npcs/qm1.lua | 5 | 1036 | -----------------------------------
-- Area: Ru'Aun Gardens
-- NPC: ??? (Genbu's Spawn)
-- Allows players to spawn the HNM Genbu with a Gem of the North and a Winterstone.
-- !pos 257 -70 517 130
-----------------------------------
package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil;
--------------------------... | gpl-3.0 |
mehrpouya81/iranspammer | 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 |
we20/wez | 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 |
ahosein243243/uzzbot | 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 |
ld-test/cyrussasl | tests/client.lua | 3 | 3812 | #!/usr/bin/env lua
local cyrussasl = require "cyrussasl"
local argparse = require "argparse"
local inspect = require "inspect"
local socket = require "socket"
local io = require "io"
local os = require "os"
function receiveAndDecode(c)
l, e = c:receive()
l = l:sub(4) -- strip off leading "S: "
data = cyruss... | bsd-3-clause |
Goodzilam/Goodzila-bot_v1.4 | plugins/welcome.lua | 190 | 3526 | 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 ''
c... | gpl-2.0 |
Zirpon/skynet | service/cslave.lua | 50 | 6448 | local skynet = require "skynet"
local socket = require "socket"
require "skynet.manager" -- import skynet.launch, ...
local table = table
local slaves = {}
local connect_queue = {}
local globalname = {}
local queryname = {}
local harbor = {}
local harbor_service
local monitor = {}
local monitor_master_set = {}
local ... | mit |
nevercast/cuberite | lib/tolua++/src/bin/lua/code.lua | 42 | 2520 | -- tolua: code class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1999
-- $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, o... | apache-2.0 |
MinetestForFun/server-minetestforfun | mods/pipeworks/teleport_tube.lua | 9 | 7769 | local filename=minetest.get_worldpath() .. "/teleport_tubes"
local tp_tube_db = nil -- nil forces a read
local tp_tube_db_version = 2.0
local function hash(pos)
return string.format("%d", minetest.hash_node_position(pos))
end
local function save_tube_db()
local file, err = io.open(filename, "w")
if file then
tp... | unlicense |
nimishzynga/lstm | data.lua | 9 | 1953 | --
---- Copyright (c) 2014, Facebook, Inc.
---- All rights reserved.
----
---- This source code is licensed under the Apache 2 license found in the
---- LICENSE file in the root directory of this source tree.
----
local stringx = require('pl.stringx')
local file = require('pl.file')
local ptb_path = "./data/"
l... | apache-2.0 |
Howaner/MCServer | Server/Plugins/NetworkTest/NetworkTest.lua | 13 | 15743 |
-- 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 |
Cloudef/darkstar | scripts/zones/Southern_San_dOria/npcs/Arpetion.lua | 5 | 1154 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Arpetion
-- General Info NPC
-- @zone 230
-- !pos -11 1 -30
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria/Te... | gpl-3.0 |
mosavy/1bbb1 | files/lua-redis.lua | 580 | 35599 | local redis = {
_VERSION = 'redis-lua 2.0.4',
_DESCRIPTION = 'A Lua client library for the redis key value storage system.',
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri',
}
-- The following line is used for backwards compatibility in order to keep the `Redis`
-- global module name. Using... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Kuftal_Tunnel/npcs/qm6.lua | 1 | 1698 | -----------------------------------
-- Area: Kuftal Tunnel
-- NPC: ???
-- Involved in Mission: Bastok 8-2
-----------------------------------
package.loaded["scripts/zones/Kuftal_Tunnel/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Kuftal_Tunnel/TextIDs");
require("scripts/zones/Kuftal_Tu... | gpl-3.0 |
tst2005googlecode/fbclient | lua/fbclient/decimal_lbc.lua | 2 | 2060 | --[=[
lbc binding for bc decimal number support
df(lo,hi,scale) -> d; to be used with getdecimal()
sdf(d,scale) -> lo,hi; to be used with setdecimal()
bc_meta -> the metatable of all bc numbers
isbc(x) -> true|false; the bc library should provide this but since it doesn't...
xsqlvar:getbc() -> d
xsqlvar:s... | mit |
microcai/skynet | lualib/http/httpd.lua | 101 | 3708 | local internal = require "http.internal"
local table = table
local string = string
local type = type
local httpd = {}
local http_status_msg = {
[100] = "Continue",
[101] = "Switching Protocols",
[200] = "OK",
[201] = "Created",
[202] = "Accepted",
[203] = "Non-Authoritative Information",
[204] = "No Content",... | mit |
Max-pbot/Max1 | 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 |
fgprodigal/RayUI | Interface/AddOns/RayUI/modules/skins/blizzard/deathrecap.lua | 1 | 1155 | ----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv("Skins")
local S = _Skins
local function LoadSkin()
DeathRecapFrame:StripTextures()
S:ReskinClose(DeathRecapFrame.CloseXButton)
S:SetBD(DeathRecapFrame)
S:... | mit |
Cloudef/darkstar | scripts/globals/weaponskills/full_break.lua | 2 | 2712 | -----------------------------------
-- Full Break
-- Great Axe weapon skill
-- Skill level: 225 (Warriors only.)
-- Lowers enemy's attack, defense, params.accuracy, and evasion. Duration of effect varies with TP.
-- Lowers attack and defense by 12.5%, evasion by 20 points, and estimated to also lower params.accuracy by... | gpl-3.0 |
woshihuo12/UnityHello | UnityHello/Assets/Lua/uiscripts/ui_mainmenu_scene.lua | 1 | 5266 | local person_pb = require("protol/person_pb")
local ui_messagebox = require("uiscripts/ui_messagebox")
local ui_teammanage_scene = require("uiscripts/ui_teammanage_scene")
local function test_event_listener(_center_txt)
_center_txt.text = "aaaaaaaaa"--"测试模块消息通信"
end
local ui_mainmenu_cellbtn = class("ui_mainmenu_... | mit |
Cloudef/darkstar | scripts/zones/Gusgen_Mines/Zone.lua | 5 | 1135 | -----------------------------------
--
-- Zone: Gusgen_Mines (196)
--
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Gusgen_Mines/TextIDs");
-... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Mhaura/npcs/Pikini-Mikini.lua | 5 | 1178 | -----------------------------------
-- Area: Mhaura
-- NPC: Pikini-Mikini
-- Standard Merchant NPC
-- !pos -48 -4 30 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Mhaura/TextIDs")... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Meriphataud_Mountains/npcs/qm1.lua | 5 | 1061 | -----------------------------------
-- Area: Meriphataud Mountains
-- NPC: qm1 (???)
-- Involved in Quest: The Holy Crest
-- !pos 641 -15 7 119
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Meriphataud... | gpl-3.0 |
ryanjmulder/premake-4.x | tests/baking/test_merging.lua | 57 | 2096 | --
-- tests/baking/test_merging.lua
-- Verifies different field types are merged properly during baking.
-- Copyright (c) 2011 Jason Perkins and the Premake project
--
T.baking_merging = { }
local suite = T.baking_merging
--
-- Setup code
--
local sln, prj, cfg
function suite.setup()
sln = solution "MySolution... | bsd-3-clause |
Cloudef/darkstar | scripts/globals/abilities/pets/cannibal_blade.lua | 2 | 1934 | ---------------------------------------------
-- Cannibal Blade
---------------------------------------------
require("scripts/globals/automatonweaponskills")
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/msg");
---------------------------------------------
function onM... | gpl-3.0 |
romonzaman/newfies-dialer | lua/listener.lua | 4 | 11916 | --
-- 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-2015 Star2Billing S.L.
--
--... | mpl-2.0 |
Cloudef/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Sabiliont.lua | 5 | 1414 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Sabiliont
-- @zone 80
-- !pos 9 2 -87
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
require... | gpl-3.0 |
cvondrick/torch-starter | eval.lua | 1 | 2121 | require 'torch'
require 'nn'
opt = {
dataset = 'simple',
nThreads = 16,
batchSize = 128,
loadSize = 256,
fineSize = 224,
gpu = 1,
cudnn = 1,
model = 'checkpoints/main/iter100000_net.t7',
ntest = math.huge,
randomize = 0,
cropping = 'center',
data_root = '/data/vision/torralba/deepscene/places36... | bsd-2-clause |
n0la/fimbul | fimbul/v35/material.lua | 1 | 1586 | --- @module fimbul.v35.material
local base = _G
local string = require('string')
local util = require('fimbul.util')
local material = {}
function material:new(y)
local neu = y or {}
setmetatable(neu, self)
self.__index = self
return neu
end
function material:spawn(r, t)
local neu = material:new()
... | bsd-2-clause |
cskksc/awesome-wm-config | lain/widgets/contrib/ccurr.lua | 7 | 2110 |
--[[
Licensed under GNU General Public License v2
* (c) 2014, Aaron Lebo
--]]
local newtimer = require("lain.helpers").newtimer
local wibox = require("wibox")
local json = re... | mit |
Cloudef/darkstar | scripts/zones/Southern_San_dOria/npcs/Diary.lua | 5 | 1814 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Diary
-- Involved in Quest: To Cure a Cough
-- @zone 230
-- !pos -75 -12 65
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/setting... | gpl-3.0 |
zzamboni/hammerspoon | extensions/base64/init.lua | 18 | 1412 | --- === hs.base64 ===
---
--- Base64 encoding and decoding
---
--- Portions sourced from (https://gist.github.com/shpakovski/1902994).
local module = require("hs.base64.internal")
-- private variables and methods -----------------------------------------
-- Public interface -----------------------------------------... | mit |
Cloudef/darkstar | scripts/globals/mobskills/tebbad_wing.lua | 2 | 1241 | ---------------------------------------------
-- 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 Ildebrann
----... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/West_Ronfaure/npcs/Vilatroire.lua | 5 | 1247 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Vilatroire
-- Involved in Quests: "Introduction To Teamwork", "Intermediate Teamwork",
-- "Advanced Teamwork"
-- !pos -260.361 -70.999 423.420 100
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/West_Ronfau... | gpl-3.0 |
MinetestForFun/server-minetestforfun | mods/snow/src/stairsplus.lua | 10 | 12560 | -- ===============================================================================
-- StairsPlus Bonus!
-- ===============================================================================
--[[
This section of code that makes blocks compatible with MoreBlocks' circular saw.
I've added circular saw compatible code for def... | unlicense |
ahosein243243/uzzbot | 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 |
Cloudef/darkstar | scripts/commands/setplayerlevel.lua | 8 | 1255 | ---------------------------------------------------------------------------------------------------
-- func: setplayerlevel
-- desc: Sets the target players level.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "ss"
... | gpl-3.0 |
rastin45/botrider12 | 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 |
Cloudef/darkstar | scripts/zones/Throne_Room/mobs/Shadow_Lord.lua | 2 | 4893 | -----------------------------------
-- Area: Throne Room
-- MOB: Shadow Lord
-- Mission 5-2 BCNM Fight
-----------------------------------
require("scripts/zones/Throne_Room/MobIDs");
require("scripts/globals/status");
require("scripts/globals/titles");
function onMobSpawn(mob)
end;
function onMobFight(mob,target)
... | gpl-3.0 |
jewmin/astd | com.lover.astd.game.ui/lua/module/event.lua | 1 | 1260 | -- ʼþ·ÖÅÉÆ÷
EventCallDispatcher = {}
EventCallDispatcher.LuaExeExecute = {} -- luaExeÖ´ÐÐʼþ
-- ×¢²áÒ»¸öʼþ»Øµ÷º¯Êý
EventCallDispatcher.registerEventCall = function(eventId, proc)
eventId = tonumber(eventId)
local callTable = EventCallDispatcher[eventId]
if not callTable or type(callTable) ~= "table" then
Eve... | mit |
MinetestForFun/server-minetestforfun | mods/snow/src/falling_snow.lua | 9 | 7026 | --[[
--=================
--======================================
LazyJ's Fork of Splizard's "Snow" Mod
by LazyJ
version: Umpteen and 7/5ths something or another.
2014_04_12
--======================================
--=================
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
THE LIST OF CHANGES I'VE MADE
~~~~~~~~~~~~~~~~~~... | unlicense |
m13790115/evil | bot/seedbot.lua | 1 | 10015 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '1.0'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
retu... | gpl-2.0 |
Cloudef/darkstar | scripts/zones/Cloister_of_Storms/npcs/Lightning_Protocrystal.lua | 5 | 1945 | -----------------------------------
-- Area: Cloister of Storms
-- NPC: Lightning Protocrystal
-- Involved in Quests: Trial by Lightning
-- !pos 534.5 -13 492 202
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Storms/TextIDs"] = nil;
-------------------------------------
require("script... | gpl-3.0 |
MinetestForFun/server-minetestforfun | mods/carts/functions.lua | 7 | 5082 | function carts:get_sign(z)
if z == 0 then
return 0
else
return z / math.abs(z)
end
end
function carts:manage_attachment(player, status, obj)
if not player then
return
end
local player_name = player:get_player_name()
if default.player_attached[player_name] == status then
return
end
default.player_attac... | unlicense |
fgprodigal/RayUI | Interface/AddOns/Skada/lib/LibNotify-1.0/LibStub/LibStub.lua | 17 | 2247 | -- $Id: LibStub.lua 76 2007-09-03 01:50:17Z mikk $
-- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info
-- LibStub is hereby placed in the Public Domain
-- Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke
local LIBSTUB_MAJOR, LI... | mit |
dbartolini/crown | 3rdparty/bgfx/3rdparty/spirv-headers/include/spirv/1.2/spirv.lua | 59 | 26887 | -- Copyright (c) 2014-2018 The Khronos Group Inc.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and/or associated documentation files (the "Materials"),
-- to deal in the Materials without restriction, including without limitation
-- the rights to use, copy, mod... | mit |
Cloudef/darkstar | scripts/zones/Dynamis-Buburimu/Zone.lua | 5 | 2051 | -----------------------------------
--
-- Zone: Dynamis-Buburimu
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Dynamis-Buburimu/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Dynamis-Buburimu/TextIDs");
----------------------------... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Port_Bastok/npcs/Kagetora.lua | 5 | 1419 | -----------------------------------
-- Area: Port Bastok
-- NPC: Kagetora
-- Involved in Quest: Ayame and Kaede, 20 in Pirate Years
-- @zone 236
-- !pos -96 -2 29
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
bestofkeeperbot/keeper | plugins/owners.lua | 284 | 12473 |
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)]['setting... | gpl-2.0 |
ahosein243243/uzzbot | 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 |
fgprodigal/RayUI | Interface/AddOns/RayUI/modules/skins/blizzard/worldmap.lua | 1 | 3943 | ----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv("Skins")
local S = _Skins
local function LoadSkin()
local r, g, b = _r, _g, _b
local WorldMapFrame = _G["WorldMapFrame"]
WorldMapFrame:Strip... | mit |
Cloudef/darkstar | scripts/zones/Norg/npcs/Shivivi.lua | 5 | 2951 | -----------------------------------
-- Area: Norg
-- NPC: Shivivi
-- Starts Quest: Secret of the Damp Scroll
-- @zone 252
-- !pos 68.729 -6.281 -6.432
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require... | gpl-3.0 |
keidax/awesome | lib/awful/widget/graph.lua | 3 | 7776 | ---------------------------------------------------------------------------
--- A graph widget.
--
-- @author Julien Danjou <julien@danjou.info>
-- @copyright 2009 Julien Danjou
-- @release @AWESOME_VERSION@
-- @classmod awful.widget.graph
--------------------------------------------------------------------------... | gpl-2.0 |
fredericjoanis/buildsystem | extern/premake/actions/vstudio/vs2003_solution.lua | 16 | 1905 | --
-- vs2003_solution.lua
-- Generate a Visual Studio 2003 solution.
-- Copyright (c) 2009-2011 Jason Perkins and the Premake project
--
premake.vstudio.sln2003 = { }
local vstudio = premake.vstudio
local sln2003 = premake.vstudio.sln2003
function sln2003.generate(sln)
io.eol = '\r\n'
-- Precompute Visual S... | mit |
nimaghorbani/ghbotv3.3 | plugins/plugins.lua | 3 | 4734 |
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 |
Cloudef/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Aligi-Kufongi.lua | 5 | 2744 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Aligi-Kufongi
-- Title Change NPC
-- !pos -23 -21 15 26
-----------------------------------
require("scripts/globals/titles");
local title2 = { TAVNAZIAN_SQUIRE ,PUTRID_PURVEYOR_OF_PUNGENT_PETALS , MONARCH_LINN_PATROL_GUARD , SIN_HUNTER_HUNTER , ... | gpl-3.0 |
DARKRPISSHITFIXTHISUPDATE/DarkRP | gamemode/libraries/disjointset.lua | 11 | 1972 | /*---------------------------------------------------------------------------
Disjoint-set forest implementation
Inspired by the book Introduction To Algorithms (third edition)
by FPtje Atheos
Running time per operation (Union/FindSet): O(a(n)) where a is the inverse of the Ackermann function.
-----------------------... | mit |
Cloudef/darkstar | scripts/globals/abilities/pets/wind_blade.lua | 4 | 1332 | ---------------------------------------------------
-- Geocrush
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/globals/magic");
---------------------------------------------------
f... | gpl-3.0 |
Shayan123456/shayan1234566 | 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 |
fiallo1313veeee/Anti_bot | plugins/tophoto.lua | 1 | 1073 | local function tosticker(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/sticker.png'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
send_photo(get_receiver(msg), file, ok_cb, false)
redis:del("sti... | gpl-2.0 |
kingjan123/TiagoBot | plugins/chatlist.lua | 4 | 1245 | local function chat_list(msg)
local message = '🔆 '..lang_text(msg.to.id, 'chatList')..'\nℹ️ '..lang_text(msg.to.id, 'joinchatHelp')..'\n\n'
local compare = message
for v,chat in pairs(_chats.chats) do
message = message..'🔅 '..chat[2]..' ('..chat[1]..')\n'
end
if compare == message then
me... | gpl-3.0 |
david-xiao/luci | libs/luci-lib-nixio/axTLS/www/lua/download.lua | 180 | 1550 | #!/usr/local/bin/lua
require"luasocket"
function receive (connection)
connection:settimeout(0)
local s, status = connection:receive (2^10)
if status == "timeout" then
coroutine.yield (connection)
end
return s, status
end
function download (host, file, outfile)
--local f = assert (io.open (outfile, "w"))
loc... | apache-2.0 |
DARKRPISSHITFIXTHISUPDATE/DarkRP | gamemode/modules/positions/sv_interface.lua | 13 | 4573 | DarkRP.storeJailPos = DarkRP.stub{
name = "storeJailPos",
description = "Store a jailposition from a player's location.",
parameters = {
{
name = "ply",
description = "The player of whom to get the location.",
type = "Player",
optional = false
... | mit |
jdsfhsdbf65/test | plugins/mutetime.lua | 1 | 1584 | do
local function pre_process(msg)
local hash = 'muteall:'..msg.to.id
if redis:get(hash) and msg.to.type == 'channel' and not is_momod(msg) then
delete_msg(msg.id, ok_cb, false)
end
return msg
end
local function run(msg, matches)
if matches[1] == 'سایلنت همگانی' and is_momod(msg) then
loca... | agpl-3.0 |
keidax/awesome | lib/wibox/widget/textbox.lua | 1 | 6038 | ---------------------------------------------------------------------------
-- @author Uli Schlachter
-- @author dodo
-- @copyright 2010, 2011 Uli Schlachter, dodo
-- @release @AWESOME_VERSION@
-- @classmod wibox.widget.textbox
---------------------------------------------------------------------------
local base = re... | gpl-2.0 |
we20/wez | 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 |
coojee2012/SccinAgi | VenusAGI/install/asterisk11cn/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 ... | mit |
Cloudef/darkstar | scripts/zones/Bastok_Markets/Zone.lua | 5 | 2164 | -----------------------------------
--
-- Zone: Bastok_Markets (235)
--
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/chocobo");
require("scripts/globals/events/harvest_festivals");
require("scripts/globals/... | gpl-3.0 |
david-xiao/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-app.lua | 137 | 15546 | cbimap = Map("asterisk", "asterisk", "")
module = cbimap:section(TypedSection, "module", "Modules", "")
module.anonymous = true
app_alarmreceiver = module:option(ListValue, "app_alarmreceiver", "Alarm Receiver Application", "")
app_alarmreceiver:value("yes", "Load")
app_alarmreceiver:value("no", "Do Not Load")
app_al... | apache-2.0 |
douwekiela/torch7 | Tensor.lua | 57 | 16339 | -- additional methods for Storage
local Storage = {}
-- additional methods for Tensor
local Tensor = {}
-- types
local types = {'Byte', 'Char', 'Short', 'Int', 'Long', 'Float', 'Double'}
-- Lua 5.2 compatibility
local log10 = math.log10 or function(x) return math.log(x, 10) end
-- tostring() functions for Tensor an... | bsd-3-clause |
pixeljetstream/r3e-trace-analysis | r3e-trace-replay.lua | 1 | 3052 | local ffi = require "ffi"
local r3e = require "r3e"
local r3etrace = require "r3etrace"
local utils = require "utils"
local r3emap = require "r3emap"
r3emap = r3map.init(true)
----------------------------------
local state = ffi.new( r3e.SHARED_TYPE_FULL )
local config ... | mit |
RealTeam-pro/Real-Pro | 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 |
MinetestForFun/server-minetestforfun | mods/vector_extras/init.lua | 9 | 15479 | local load_time_start = os.clock()
local funcs = {}
function funcs.pos_to_string(pos)
return "("..pos.x.."|"..pos.y.."|"..pos.z..")"
end
local r_corr = 0.25 --remove a bit more nodes (if shooting diagonal) to let it look like a hole (sth like antialiasing)
-- this doesn't need to be calculated every time
local f_1... | unlicense |
szagoruyko/fblualib | fblualib/debugger/fb/debugger/init.lua | 4 | 23555 | --
-- Copyright (c) 2014, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
local pl = requ... | bsd-3-clause |
frankpaschen99/SSRP | gamemode/jobs.lua | 1 | 14271 | -- Either Pedro is a shitty coder or Garry is a shitty coder
-- becaucse this team system is garbage
-- 8/24/15 - Salary complete
team.SetUp( 1, "Citizen", Color( 0, 255, 0 ) )
team.SetUp( 2, "Police Officer", Color( 51, 102, 153 ) )
team.SetUp( 3, "SWAT Officer", Color( 102, 0, 153 ) )
team.SetUp( 4, "Chief of Polic... | mit |
david-xiao/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/interface.lua | 68 | 1060 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.sys")
m = Map("luci_statistics",
translate("Interface Plugin Configuration"),
translate(
"The interface plugin collects traffic statistics on " ..
"selected interfaces."
... | apache-2.0 |
Cloudef/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5fl.lua | 5 | 2281 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: East Plate
-- !pos 231 -34 20 195
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
local state0 = 8;
local state1 = 9;
local DoorOffset = npc:getID() - 20; -- _5f1
if... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/items/bowl_of_optical_soup.lua | 2 | 1321 | -----------------------------------------
-- ID: 4340
-- Item: bowl_of_optical_soup
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- HP % 6 (cap 75)
-- Charisma -15
-- HP Recovered While Healing 5
-- Accuracy 15
-- Ranged Accuracy 15
-----------------------------------------
require("scripts... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Windurst_Waters/npcs/Taajiji.lua | 5 | 1504 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Taajiji
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scr... | gpl-3.0 |
ryanjmulder/premake-4.x | tests/actions/vstudio/vc200x/test_mfc.lua | 54 | 1900 | --
-- tests/actions/vstudio/vc200x/test_mfc.lua
-- Validate ATL/MFC support in Visual Studio 200x C/C++ projects.
-- Copyright (c) 2011 Jason Perkins and the Premake project
--
T.vstudio_vs200x_mfc = { }
local suite = T.vstudio_vs200x_mfc
local vc200x = premake.vstudio.vc200x
--
-- Setup
--
local sln, prj, cfg
... | bsd-3-clause |
Cloudef/darkstar | scripts/zones/Ordelles_Caves/npcs/Treasure_Chest.lua | 5 | 3900 | -----------------------------------
-- Area: Ordelles Caves
-- NPC: Treasure Chest
-- Involved In Quest: Signed In Blood and The Goblin Tailor
-- @zone 193
-----------------------------------
package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyi... | gpl-3.0 |
DARKRPISSHITFIXTHISUPDATE/DarkRP | gamemode/libraries/sh_cami.lua | 15 | 13591 | --[[
CAMI - Common Admin Mod Interface.
Makes admin mods intercompatible and provides an abstract privilege interface
for third party addons.
IMPORTANT: This is a draft script. It is very much WIP.
Follows the specification on this page:
https://docs.google.com/document/d/1QIRVcAgZfAYf1aBl_dNV_ewR6P25wze2KmUVzlbFgMI
... | mit |
Cloudef/darkstar | scripts/globals/abilities/dark_shot.lua | 2 | 2903 | -----------------------------------
-- Ability: Dark Shot
-- Consumes a Dark Card to enhance dark-based debuffs. Additional effect: Dark-based Dispel
-- Bio Effect: Attack Down Effect +5% and DoT + 3
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scr... | gpl-3.0 |
zerolocker/neural-style | ori_neural_style.lua | 1 | 16010 | require 'torch'
require 'nn'
require 'image'
require 'optim'
require 'loadcaffe'
--------------------------------------------------------------------------------
local cmd = torch.CmdLine()
-- Basic options
cmd:option('-style_image', 'examples/inputs/seated-nude.jpg',
'Style target image')
cmd:option('-s... | mit |
we20/wez | plugins/img_google.lua | 660 | 3196 | do
local mime = require("mime")
local google_config = load_from_file('data/google.lua')
local cache = {}
--[[
local function send_request(url)
local t = {}
local options = {
url = url,
sink = ltn12.sink.table(t),
method = "GET"
}
local a, code, headers, status = http.request(options)
return tabl... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.