repo_name stringlengths 6 69 | path stringlengths 6 178 | copies stringclasses 278
values | size stringlengths 4 7 | content stringlengths 671 917k | license stringclasses 15
values |
|---|---|---|---|---|---|
StephenZhuang/qdkpv2 | QDKP_V2/QDKP_V2/Code/Logging/LogEntry.lua | 1 | 44788 | -- Copyright 2012 Akhaan & Honesty Hyj (www.quickdkp.com)
-- This file is a part of QDKP_V2 (see about.txt in the Addon's root folder)
-- ## LOGGING SYSTEM ##
-- Log Entry functions
-- API Documentation
-- QDKP2log_Entry: Creates a new log entry. See the function description for mole de... | gpl-3.0 |
MikeMcShaffry/gamecode3 | Dev/Source/3rdParty/LuaPlus/Src/Modules/luaexpat/tests/test-lom.lua | 18 | 1389 | #!/usr/local/bin/lua
local lom = require "lxp.lom"
local tests = {
[[<abc a1="A1" a2="A2">inside tag `abc'</abc>]],
[[<qwerty q1="q1" q2="q2">
<asdf>some text</asdf>
</qwerty>]],
}
function table._tostring (tab, indent, spacing)
local s = {}
spacing = spacing or ""
indent = indent or "\t"
table.insert (s, ... | lgpl-2.1 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/repairBattlefieldStructure.lua | 4 | 2171 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | agpl-3.0 |
p0pr0ck5/lua-resty-waf | t/translation/18_translate.lua | 1 | 3658 | describe("translate", function()
local lib = require "resty.waf.translate"
local t = lib.translate
local chains, errs
before_each(function()
chains = {}
errs = nil
end)
it("single valid rule with no errors", function()
local raw = {
[[SecRule ARGS "foo" "id:12345,phase:2,deny,msg:'dummy msg'"]]
}... | gpl-3.0 |
amirhoseinkarimi2233/uzzbot | plugins/google.lua | 722 | 1037 | 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 |
tfagit/telegram-bot | plugins/google.lua | 722 | 1037 | 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 |
ozhanf/ozhan | plugins/google.lua | 722 | 1037 | 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 |
flandr/thrift | lib/lua/TSocket.lua | 113 | 2996 | ---- 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 may... | apache-2.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/totalHealOther.lua | 3 | 2135 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | agpl-3.0 |
braydondavis/Nerd-Gaming-Public | resources/NGDrugs/weed_client.lua | 2 | 4343 | drugs.Marijuana = {
loaded = false,
func = { },
var = {
rasta = {
{ 0, 255, 0 },
{ 255, 255, 0 },
{ 255, 0, 0 }
}
},
info = {
timePerDoce = 30,
}
}
local weed = drugs.Marijuana
function weed.func.load ( )
if ( not weed.loaded ) then
weed.loaded = true
if ( not isElement ( weed.var.music ) ... | mit |
Blizzard/premake-core | modules/vstudio/tests/sln2005/test_dependencies.lua | 15 | 2331 | --
-- tests/actions/vstudio/sln2005/test_dependencies.lua
-- Validate generation of Visual Studio 2005+ solution project dependencies.
-- Copyright (c) 2009-2012 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vstudio_sln2005_dependencies")
local sln2005 = p.vstudio.sln2005
... | bsd-3-clause |
Blizzard/premake-core | modules/vstudio/tests/vc200x/test_project_refs.lua | 16 | 1831 | --
-- tests/actions/vstudio/vc200x/test_project_refs.lua
-- Validate project references in Visual Studio 200x C/C++ projects.
-- Copyright (c) 2011-2012 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vstudio_vs200x_project_refs")
local vc200x = p.vstudio.vc200x
--
-- Setup
... | bsd-3-clause |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/mediumPoison.lua | 2 | 2313 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | agpl-3.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/lair/npc_theater/dathomir_nightsister_elder_enclave_neutral_large_theater.lua | 3 | 1113 | dathomir_nightsister_elder_enclave_neutral_large_theater = Lair:new {
mobiles = {
{"nightsister_elder",1},
{"nightsister_protector",2},
{"nightsister_sentinel",4},
{"nightsister_initiate",4}
},
spawnLimit = 15,
buildingsVeryEasy = {"object/building/poi/dathomir_nightsisterpatrol_large1.iff","object/building... | agpl-3.0 |
braydondavis/Nerd-Gaming-Public | resources/NGLogin/server.lua | 2 | 5816 | ------------------------------------------
-- Dx Login Panel --
------------------------------------------
-- Developer: Braydon Davis (xXMADEXx) --
-- File: server.lua --
-- Copyright 2013 (C) Braydon Davis --
-- All rights reserved. --
------------------------------------------
local cameras = {
{... | mit |
moonlight/cave-adventure | data/scripts/AI.lua | 2 | 3206 | --
-- Our 'magnificent' AI implementation
--
-- Common states for an AI monster
AI_WAITING = 1
AI_WALKING = 2
AI_ATTACK = 3
AI_DEAD = 4
AI_HIT = 5
AI_READY = 6
CommonAI = {}
function CommonAI:event_init()
self.state = AI_READY
self.tick_time = 1
self.charge = 0
self.char... | gpl-2.0 |
mabotech/mabo.io | py/opcda/lua/send.lua | 1 | 1119 |
-- for ak_client.py
-- key1,argv1,argv2
local payload = redis.call("HGET", KEYS[1],"val")
--redis.call("HSET", KEYS[1],"tag",ARGV[1])
--redis.call("HSET", KEYS[1],"x",ARGV[3])
--redis.call("HSET", KEYS[1],"y",ARGV[4])
if payload == ARGV[2] then
-- redis.call("LPUSH", "c1","chan2")
redis.call("HSET", KEYS[1]... | mit |
Blizzard/premake-core | tests/_tests.lua | 8 | 1575 | return {
-- Base API tests
"test_string.lua",
"base/test_aliasing.lua",
"base/test_binmodules.lua",
"base/test_configset.lua",
"base/test_context.lua",
"base/test_criteria.lua",
"base/test_detoken.lua",
"base/test_include.lua",
"base/test_module_loader.lua",
"base/test_option.lua",
"base/test_os... | bsd-3-clause |
kidaa/Algorithm-Implementations | Depth_Limited_Search/Lua/Yonaba/dls.lua | 26 | 3110 | -- Generic Depth-Limited search algorithm implementation
-- See : http://en.wikipedia.org/wiki/Depth-limited_search
-- Notes : this is a generic implementation of Depth-Limited search algorithm.
-- It is devised to be used on any type of graph (point-graph, tile-graph,
-- or whatever. It expects to be initialized with... | mit |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/corpse.lua | 4 | 2111 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | agpl-3.0 |
tequir00t/dotfiles | awesome/lain/widgets/yawn/init.lua | 2 | 6334 |
--[[
Licensed under GNU General Public License v2
* (c) 2013, Luke Bonham
--]]
local newtimer = require("lain.helpers").newtimer
local async = require("lain.asyncshell")
l... | gpl-2.0 |
szczukot/domoticz | dzVents/runtime/tests/testUtils.lua | 5 | 13152 | local _ = require 'lodash'
--package.path = package.path .. ";../?.lua"
local scriptPath = ''
package.path = ";../?.lua;" .. scriptPath .. '/?.lua;../device-adapters/?.lua;../../../scripts/lua/?.lua;' .. package.path
local LOG_INFO = 2
local LOG_DEBUG = 3
local LOG_ERROR = 1
describe('event helpers', function()
lo... | gpl-3.0 |
braydondavis/Nerd-Gaming-Public | resources/NGDrugs/core_client.lua | 2 | 2799 | --[[
How does the script work?
When the function useDrug() is called, it will check to see if the selected drug is already running. If
the drug is already running, then it'll kill the timer and create a new timer with the doce time + the
remaining time. If the drug isn't running, then it'll just create a new time... | mit |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/broadcastPlanet.lua | 4 | 2138 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | agpl-3.0 |
choptastic/GuildRaidSnapShot | GuildRaidSnapShot.lua | 2 | 92815 | -- GuildRaidSnapShot Mod
-- Copyright (c) 2005-2014 Sigma Star Systems
-- Released under the MIT License. See LICENSE.txt for full license
GuildRaidSnapShot_SnapShots = {};
GuildRaidSnapShot_Loot = {};
GuildRaidSnapShot_Notes = {};
GuildRaidSnapShot_Adj = {};
GRSS_Calendar = {};
GRSS_Alts = {};
GRSS_MainOnly = {};
GRS... | mit |
amirjoker/Telecloner | plugins/save.lua | 13 | 2829 | local function save_value(msg, name, value)
if (not name or not value) then
return "Usage: !set var_name value"
end
local hash = nil
if msg.to.type == 'chat' then
hash = 'chat:'..msg.to.id..':variables'
end
if hash then
redis:hset(hash, name, value)
return "ذخیره شد "..name
end
end
local ... | gpl-2.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/csCreateTicket.lua | 4 | 2135 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | agpl-3.0 |
ozhanf/ozhan | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
excessive/obtuse-tanuki | states/gameplay.lua | 2 | 9146 | local tiny = require "tiny"
local gui = require "quickie"
local material = require "material-love"
local errors = require "errors"
local avatar = require "avatar"
local utils = require "utils"
local cpml = require "cpml"
local utils = require "utils"
local camera = require "camera3d"
return fu... | mit |
DBarney/luvit | tests/to-convert/test-http.lua | 5 | 1504 | --[[
Copyright 2012 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 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/decline.lua | 4 | 2114 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | agpl-3.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/loot/items/wearables/bracelet/bracelet_s03_l.lua | 4 | 1273 | bracelet_s03_l = {
-- Golden Bracelet
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/wearables/bracelet/bracelet_s03_l.iff",
craftingValues = {},
skillMods = {},
customizationStringNames = {"/private/index_color_1","/private/index_color_2... | agpl-3.0 |
LeMagnesium/minetest-minetestforfun-server | mods/mesecons/mesecons/legacy.lua | 13 | 1399 | -- Ugly hack to prevent breaking compatibility with other mods
-- Just remove the following two functions to delete the hack, to be done when other mods have updated
function mesecon.receptor_on(self, pos, rules)
if (self.receptor_on) then
print("[Mesecons] Warning: A mod with mesecon support called mesecon:receptor... | unlicense |
braydondavis/Nerd-Gaming-Public | resources/NGModshop/vehicle.funcs.server.lua | 4 | 2061 |
function isVehicleInModShop( vehicle )
for k,v in ipairs( modShops ) do
if modShops[ k ].veh == vehicle then
return true
end
end
return false
end
function getVehicleInModShop( marker )
for k,v in ipairs( modShops ) do
if modShops[ k ].marker == marker then
... | mit |
hfjgjfg/sx | plugins/ingroup.lua | 527 | 44020 | 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[tostr... | gpl-2.0 |
aqasaeed/farzad | plugins/ingroup.lua | 527 | 44020 | 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[tostr... | gpl-2.0 |
mohammad8/mohammad | plugins/ingroup.lua | 527 | 44020 | 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[tostr... | gpl-2.0 |
braydondavis/Nerd-Gaming-Public | resources/[no_ng_tag]/admin/client/colorpicker/colorpicker.lua | 7 | 9602 | sw, sh = guiGetScreenSize()
pickerTable = {}
colorPicker = {}
colorPicker.__index = colorPicker
function openPicker(id, start, title)
if id and not pickerTable[id] then
pickerTable[id] = colorPicker.create(id, start, title)
pickerTable[id]:updateColor()
return true
end
return false
end
function c... | mit |
glaubitz/ion3-debian | mod_query/mod_query_chdir.lua | 7 | 1311 | --
-- ion/query/mod_query_chdir.lua
--
-- Copyright (c) Tuomo Valkonen 2004-2009.
--
-- See the included file LICENSE for details.
--
local function simplify_path(path)
local npath=string.gsub(path, "([^/]+)/+%.%./+", "")
if npath~=path then
return simplify_path(npath)
else
return string.... | lgpl-2.1 |
aiq/basexx | test/bit_spec.lua | 2 | 1062 | basexx = require( "basexx" )
describe( "should handle bitfields strings", function()
it( "should convert data to a bitfields string", function()
assert.is.same( "01000001010000110100010001000011",
basexx.to_bit( "ACDC" ) )
end)
it( "should read data from a bitfields string"... | mit |
code4craft/moonlink | lua/set.lua | 1 | 1477 | --
-- User: code4crafter@gmail.com
-- Date: 13-7-28
-- Time: 下午12:15
--
-- lua redis module https://github.com/agentzh/lua-resty-redis
-- http luad module http://wiki.nginx.org/HttpLuaModule
local redis = require"resty.redis"
local red = redis:new()
local server = "127.0.0.1"
local host = "http://127.0.0.1:8080/"
--c... | bsd-3-clause |
yimogod/boom | trunk/t-engine4/game/engines/engine/Zone.lua | 1 | 37856 | -- TE4 - T-Engine 4
-- Copyright (C) 2009 - 2015 Nicolas Casalini
--
-- 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 version.... | apache-2.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/strongDisease.lua | 2 | 2318 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | agpl-3.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/faction/imperial/serverobjects.lua | 2 | 7058 | includeFile("faction/imperial/assault_trooper.lua")
includeFile("faction/imperial/assault_trooper_squad_leader.lua")
includeFile("faction/imperial/at_at.lua")
includeFile("faction/imperial/at_st.lua")
includeFile("faction/imperial/bombardier.lua")
includeFile("faction/imperial/civilian_patrolman.lua")
includeFile("fact... | agpl-3.0 |
alinofel/zooz11 | plugins/anti_spam.lua | 2 | 5437 | --An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id == our_id then
return msg
end
-- Sav... | gpl-2.0 |
yimogod/boom | trunk/t-engine4/game/engines/engine/Calendar.lua | 1 | 3072 | -- TE4 - T-Engine 4
-- Copyright (C) 2009 - 2015 Nicolas Casalini
--
-- 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 version.... | apache-2.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/endor/masterful_jinda_warrior.lua | 2 | 1236 | masterful_jinda_warrior = Creature:new {
objectName = "@mob/creature_names:masterful_jinda_warrior",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "jinda_tribe",
faction = "",
level = 42,
chanceHit = 0.44,
damageMin = 365,
damageMax = 440,
baseXp = 4188,
baseHAM = 8900,
baseHAMmax = 10900,
armor = 1,
re... | agpl-3.0 |
Inquiryel/HPW_Rewrite-SBS | lua/hpwrewrite/misc/fakebsod.lua | 2 | 1910 | if SERVER then return end
local text = [[
A problem has been detected and windows has been shut down to prevent damage
to your computer
The problem seems to be caused by the following file: hl2.exe
GMOD_LUA_PANIC
If this is the first time you've seen this stop error screen,
restart your computer. If this screen ap... | mit |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/saberSlash2.lua | 1 | 2886 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | agpl-3.0 |
Blizzard/premake-core | modules/vstudio/tests/vc200x/test_resource_compiler.lua | 16 | 1315 | --
-- tests/actions/vstudio/vc200x/test_resource_compiler.lua
-- Validate generation the VCResourceCompilerTool element in Visual Studio 200x C/C++ projects.
-- Copyright (c) 2012-2013 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vs200x_resource_compiler")
local vc200x = p.... | bsd-3-clause |
mafiesto4/Game1 | MyGame/MyGame/cocos2d/plugin/luabindings/auto/api/AgentManager.lua | 146 | 1798 |
--------------------------------
-- @module AgentManager
-- @parent_module plugin
--------------------------------
--
-- @function [parent=#AgentManager] getSocialPlugin
-- @param self
-- @return plugin::ProtocolSocial#plugin::ProtocolSocial ret (return value: cc.plugin::ProtocolSocial)
-------------------... | gpl-2.0 |
shitz/InterruptCoordinator | libs/GeminiLogging.lua | 1 | 4627 | -------------------------------------------------------------------------------
-- GeminiLogging
-- Copyright (c) NCsoft. All rights reserved
-- Author: draftomatic
-- Logging library (loosely) based on LuaLogging.
-- Comes with appenders for GeminiConsole and Print() Debug Channel.
------------------------------------... | apache-2.0 |
szczukot/domoticz | dzVents/runtime/tests/testVariable.lua | 10 | 4896 | local _ = require 'lodash'
local scriptPath = ''
package.path = package.path .. ";../?.lua;" .. scriptPath .. '/?.lua'
local testData = require('tstData')
local LOG_INFO = 2
local LOG_DEBUG = 3
local LOG_ERROR = 1
local xVar = 11
local yVar = 12
local zVar = 13
local aVar = 14
local bVar = 15
local cVar = 17
local... | gpl-3.0 |
bellinat0r/Epiar | Resources/Scripts/ai.lua | 2 | 17315 | -- This script defines the AI State Machines
--[[
An AI StateMachine must have the form:
StateMachine = {
State = function(id,x,y,angle,speed,vector) ... end,
...
}
All StateMachines must have a "default" state. This is their initial state.
States transition by returning a string of the new State's name.
States t... | gpl-2.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/drainForce.lua | 2 | 2269 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | agpl-3.0 |
excessive/obtuse-tanuki | libs/hump/signal.lua | 2 | 2710 | --[[
Copyright (c) 2012-2013 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, merge, publish, dis... | mit |
TylerL-uxai/SamsBday | Resources/scripts/out.lua | 6 | 3744 | a = {}
a["bg_day"]={width=288, height=512, x=0, y=0}
a["bg_night"]={width=288, height=512, x=292, y=0}
a["bird0_0"]={width=48, height=48, x=0, y=970}
a["bird0_1"]={width=48, height=48, x=56, y=970}
a["bird0_2"]={width=48, height=48, x=112, y=970}
a["bird1_0"]={width=48, height=48, x=168, y=970}
a["bird1_1"]={width=48, ... | mit |
amirhoseinkarimi2233/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 |
liuyang1/dotfiles | awesome34/screen.lua | 1 | 2191 | ---------------------------------------------------------------------------
-- @author Julien Danjou <julien@danjou.info>
-- @copyright 2008 Julien Danjou
-- @release v3.4.13
---------------------------------------------------------------------------
-- Grab environment we need
local capi =
{
mouse = mouse,
... | mit |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/corellia/sharnaff_reckless_ravager.lua | 2 | 1064 | sharnaff_reckless_ravager = Creature:new {
objectName = "@mob/creature_names:sharnaff_reckless_ravager",
socialGroup = "sharnaff",
faction = "",
level = 34,
chanceHit = 0.41,
damageMin = 315,
damageMax = 340,
baseXp = 3460,
baseHAM = 8800,
baseHAMmax = 10800,
armor = 0,
resists = {115,115,20,120,120,120,120... | agpl-3.0 |
TylerL-uxai/SamsBday | cocos2d/external/lua/luajit/src/src/jit/bcsave.lua | 78 | 18123 | ----------------------------------------------------------------------------
-- LuaJIT module to save/list bytecode.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
-------------------------------------------------------------------------... | mit |
LegendsOfDota/LegendsOfDota | src/scripts/vscripts/statcollection/schema_examples/enfos.lua | 5 | 5097 | customSchema = class({})
function customSchema:init()
-- Check the schema_examples folder for different implementations
-- Flags
statCollection:setFlags({ version = CEnfosGameMode:GetVersion() })
-- Listen for changes in the current state
ListenToGameEvent('game_rules_state_change', function(key... | gpl-3.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/endor/panshee_tribesman.lua | 2 | 1116 | panshee_tribesman = Creature:new {
objectName = "@mob/creature_names:panshee_tribesman",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "panshee_tribe",
faction = "panshee_tribe",
level = 24,
chanceHit = 0.35,
damageMin = 210,
damageMax = 220,
baseXp = 2443,
baseHAM = 5900,
baseHAMmax = 7200,
armor = 1,
... | agpl-3.0 |
yimogod/boom | trunk/t-engine4/game/engines/engine/Mouse.lua | 1 | 8494 | -- TE4 - T-Engine 4
-- Copyright (C) 2009 - 2015 Nicolas Casalini
--
-- 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 version.... | apache-2.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/loot/items/wearables/ithorian/ith_jacket_s08.lua | 4 | 1278 | ith_jacket_s08 = {
-- Ithorian Tech Jacket
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/wearables/ithorian/ith_jacket_s08.iff",
craftingValues = {},
skillMods = {},
customizationStringNames = {"/private/index_color_1","/private/index_co... | agpl-3.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/melee2hLunge1.lua | 2 | 2577 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | agpl-3.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/setLoginTitle.lua | 4 | 2132 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | agpl-3.0 |
DarkMuffinJoe/DeadlyZombies | lua/entities/curegranate_entity/init.lua | 1 | 1611 | include("shared.lua")
AddCSLuaFile("shared.lua")
AddCSLuaFile("cl_init.lua")
local humans = {
"npc_alyx",
"npc_barney",
"npc_citizen",
"npc_magnusson",
"npc_kleiner",
"npc_mossman",
"npc_gman",
"npc_odessa",
"npc_breen",
"npc_monk"
}
local zombies = {
"npc_zombie",
"npc_fastzombie",
"npc_fastzombie_torso... | apache-2.0 |
ClearTables/ClearTables | pier.lua | 2 | 1598 | --[[
This file is part of ClearTables
@author Paul Norman <penorman@mac.com>
@copyright 2017 Paul Norman, MIT license
]]--
require "common"
function accept_pier_area (tags)
-- generic_polygon_way checks for being an area (e.g. area=yes)
return tags["man_made"] == "pier"
end
--- Acceptance for raw piers as l... | mit |
ShadowNinja/areas | internal.lua | 2 | 7979 | local S = minetest.get_translator("areas")
function areas:player_exists(name)
return minetest.get_auth_handler().get_auth(name) ~= nil
end
local safe_file_write = minetest.safe_file_write
if safe_file_write == nil then
function safe_file_write(path, content)
local file, err = io.open(path, "w")
if err then
r... | lgpl-2.1 |
alireza1998/gfx1 | 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 |
mortezamosavy999/monsterr | 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 |
punisherbot/shayan | 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 |
amin1717/Dark-Wolfs-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 |
elite-lang/oolua | build_scripts/oolua_amalgamation.lua | 2 | 6262 | --/**
--[[
\file oolua_amalgamation.lua
\brief Lua module for amalgamating the library's headers and source files into
one header and source file.
--]]
--*/
local copyright = [[
/*
The MIT License
Copyright (c) 2009 - 2015 Liam Devine
Permission is hereby granted, free of charge, to any person obtaining a copy
of... | mit |
MonkeyZZZZ/platform_external_skia | resources/slides_content.lua | 78 | 1789 | Skia Overview 2014
< transition =slide>
One API -- many backends
- Raster [8888, 565, A8]
- GPU [opengl]
- PDF
- XPS
- Picture
- Pipe
<transition= fade>
One Team -- many clients
- Chrome
- ChromeOS
- Clank
- Android Framework
- 3rd parties (e.g. FireFox)
<transition= rotate>
<blockstyle = code>
Optimize for CPU v... | bsd-3-clause |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/conversations/events/life_day/life_day_oraalarri_conv.lua | 3 | 4986 | lifeDayOraalarriConvoTemplate = ConvoTemplate:new {
initialScreen = "",
templateType = "Lua",
luaClassHandler = "lifeDayOraalarriConvoHandler",
screens = {}
}
im_sorry = ConvoScreen:new {
id = "im_sorry",
leftDialog = "@conversation/lifeday04b:s_5bd07d67", -- (Translated from Shyriiwook) I'm sorry, This is a pri... | agpl-3.0 |
Inquiryel/HPW_Rewrite-SBS | lua/hpwrewrite/spells/harrypotter/avadakedavra.lua | 2 | 2254 | local Spell = { }
Spell.LearnTime = 1200
Spell.Description = [[
The Killing curse.
Inflicts instant painless death.
]]
Spell.Category = HpwRewrite.CategoryNames.Unforgivable
Spell.FlyEffect = "hpw_avadaked_main"
Spell.ImpactEffect = "hpw_avadaked_impact"
Spell.ApplyDelay = 0.5
Spell.AccuracyDecreaseVal = 0.3
Spell.Un... | mit |
StephenZhuang/qdkpv2 | QDKP_V2/QDKP2_Config/Libs/AceTimer-3.0.lua | 2 | 9730 | --- **AceTimer-3.0** provides a central facility for registering timers.
-- AceTimer supports one-shot timers and repeating timers. All timers are stored in an efficient
-- data structure that allows easy dispatching and fast rescheduling. Timers can be registered
-- or canceled at any time, even from within a runni... | gpl-3.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/endor/weathered_panshee_shaman.lua | 2 | 1116 | weathered_panshee_shaman = Creature:new {
objectName = "@mob/creature_names:weathered_panshee_shaman",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "panshee_tribe",
faction = "panshee_tribe",
level = 27,
chanceHit = 0.37,
damageMin = 260,
damageMax = 270,
baseXp = 2730,
baseHAM = 8100,
baseHAMmax = 9900,... | agpl-3.0 |
excessive/obtuse-tanuki | libs/hump/class.lua | 21 | 2960 | --[[
Copyright (c) 2010-2013 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, merge, publish, dis... | mit |
LeMagnesium/minetest-minetestforfun-server | mods/plantlife_modpack/flowers_plus/init.lua | 8 | 14057 | local S = biome_lib.intllib
-- This file supplies a few additional plants and some related crafts
-- for the plantlife modpack. Last revision: 2013-04-24
flowers_plus = {}
local SPAWN_DELAY = 1000
local SPAWN_CHANCE = 200
local flowers_seed_diff = 329
local lilies_max_count = 320
local lilies_rarity = 33
local sea... | unlicense |
amirhoseinkarimi2233/uzzbot | plugins/steam.lua | 645 | 2117 | -- See https://wiki.teamfortress.com/wiki/User:RJackson/StorefrontAPI
do
local BASE_URL = 'http://store.steampowered.com/api/appdetails/'
local DESC_LENTH = 200
local function unescape(str)
str = string.gsub( str, '<', '<' )
str = string.gsub( str, '>', '>' )
str = string.gsub( str, '"', '"' )
str... | gpl-2.0 |
fantajeon/TripletNet | generate_shoes_pair.lua | 1 | 4203 | require 'nn'
require 'csvigo'
require 'cudnn'
require 'properties_util'
require 'xlua'
local debugger = require 'fb.debugger'
torch.setdefaulttensortype('torch.FloatTensor')
--filepath = './properties/excel_1459334593242.shoes.train.csv'
--pair_output_filename = 'shoes_pair.train.csv'
filepath = './properties/excel_1... | mit |
sbouchex/domoticz | dzVents/runtime/Variable.lua | 6 | 2343 | local Time = require('Time')
local TimedCommand = require('TimedCommand')
local evenItemIdentifier = require('eventItemIdentifier')
local function Variable(domoticz, data)
local self = {
['value'] = data.data.value,
['name'] = data.name,
['type'] = data.variableType,
['changed'] = data.changed,
['id'] = dat... | gpl-3.0 |
LeMagnesium/minetest-minetestforfun-server | mods/homedecor_modpack/homedecor/lighting.lua | 7 | 16989 | -- This file supplies glowlights
local dirs1 = { 20, 23, 22, 21 }
local dirs2 = { 9, 18, 7, 12 }
local S = homedecor.gettext
local colors = {"yellow","white"}
for i in ipairs(colors) do
local color = colors[i]
minetest.register_abm({
nodenames = { "homedecor:glowlight_thin_"..color },
interval = 1,
chance ... | unlicense |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/loot/items/wearables/jacket/jacket_s21.lua | 4 | 1255 | jacket_s21 = {
-- Spec-Ops Duster
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/wearables/jacket/jacket_s21.iff",
craftingValues = {},
skillMods = {},
customizationStringNames = {"/private/index_color_1","/private/index_color_2"},
cu... | agpl-3.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/managers/jedi/village/tests/village_jedi_manager_Test_disabled.lua | 2 | 3873 | local DirectorManagerMocks = require("screenplays.mocks.director_manager_mocks")
local GlowingMocks = require("managers.jedi.village.mocks.glowing_mocks")
local VillageJediManager = require("managers.jedi.village.village_jedi_manager")
local VillageJediManagerHolocronMocks = require("managers.jedi.village.mocks.village... | agpl-3.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/conversations/recruiter/rebel_recruiter_conv.lua | 2 | 19616 | rebelRecruiterConvoTemplate = ConvoTemplate:new {
initialScreen = "",
templateType = "Lua",
luaClassHandler = "RecruiterConvoHandler",
screens = {}
}
greet_hated = ConvoScreen:new {
id = "greet_hated",
leftDialog = "@conversation/faction_recruiter_rebel:s_462", -- I'm sorry, but I do not know you and do not wish... | agpl-3.0 |
alinofel/zooz11 | libs/XMLElement.lua | 569 | 4025 | -- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence.
-- updated for module-free world of lua 5.3 on April 2 2015
-- Not documented at all, but not interesting enough to warrant documentation anyway.
local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ... | gpl-2.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/requestResourceWeightsBatch.lua | 4 | 2174 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | agpl-3.0 |
insionng/gopher-lua | _glua-tests/vm.lua | 5 | 5567 | for i, v in ipairs({"hoge", {}, function() end, true, nil}) do
local ok, msg = pcall(function()
print(-v)
end)
assert(not ok and string.find(msg, "__unm undefined"))
end
assert(#"abc" == 3)
local tbl = {1,2,3}
setmetatable(tbl, {__len = function(self)
return 10
end})
assert(#tbl == 10)
setmetatable(tbl, n... | mit |
garoose/eecs494.p2 | dev/premake/premake/tests/test_platforms.lua | 59 | 1601 | --
-- tests/test_platforms.lua
-- Automated test suite for platform handling functions.
-- Copyright (c) 2009 Jason Perkins and the Premake project
--
T.platforms = { }
local testmap = { Native="Win32", x32="Win32", x64="x64" }
local sln, r
function T.platforms.setup()
sln = solution "MySolution"
configura... | mit |
NYRDS/pixel-dungeon-remix | RemixedDungeon/src/main/assets/scripts/lib/item.lua | 1 | 2129 | --
-- User: mike
-- Date: 28.05.2018
-- Time: 22:35
-- This file is part of Remixed Pixel Dungeon.
--
local serpent = require "scripts/lib/serpent"
local RPD = require "scripts/lib/commonClasses"
local util = require "scripts/lib/util"
local item = {}
item.__index = item
function item.actions(self, item, hero)
... | gpl-3.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/dantooine/force_trained_archaist.lua | 2 | 1401 | force_trained_archaist = Creature:new {
objectName = "@mob/creature_names:force_trained_archaist",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "force",
faction = "",
level = 90,
chanceHit = 0.9,
damageMin = 640,
damageMax = 990,
baseXp = 8593,
baseHAM = 13000,
baseHAMmax = 16000,
armor = 2,
resists = ... | agpl-3.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/corellia/meatlump_loon.lua | 2 | 1395 | meatlump_loon = Creature:new {
objectName = "@mob/creature_names:meatlump_loon",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "meatlump",
faction = "meatlump",
level = 10,
chanceHit = 0.28,
damageMin = 90,
damageMax = 110,
baseXp = 356,
baseHAM = 810,
baseHAMmax = 990,
armor = 0,
resists = {0,0,0,0,0,0... | agpl-3.0 |
lolleko/guesswho | gamemodes/guesswho/gamemode/round.lua | 1 | 15924 | local GWRound = {}
GM.GWRound = GWRound
hook.Add("InitPostEntity", "gw_InitPostEntity", function()
GAMEMODE.GWRound:UpdateSettings()
GAMEMODE.GWRound:RoundPreGame()
GAMEMODE.GWRound.GeneratedSpawnPointCount = 0
end)
function GWRound:RoundPreGame()
self:SetRoundState(GW_ROUND_PRE_GAME)
hook.Run("G... | mit |
excessive/obtuse-tanuki | libs/winapi/propsys.lua | 2 | 2554 |
--proc/propsys: Property System API.
--Written by Cosmin Apreutesei. Public Domain.
setfenv(1, require'winapi')
require'winapi.sstorage'
ffi.cdef[[
typedef struct _tagpropertykey
{
GUID fmtid;
DWORD pid;
} PROPERTYKEY;
typedef const PROPERTYKEY * REFPROPERTYKEY;
typedef struct IPropertyStore IPro... | mit |
mafiesto4/Game1 | MyGame/MyGame/cocos2d/external/lua/luasocket/script/mime.lua | 149 | 2487 | -----------------------------------------------------------------------------
-- MIME support for the Lua language.
-- Author: Diego Nehab
-- Conforming to RFCs 2045-2049
-----------------------------------------------------------------------------
----------------------------------------------------------------------... | gpl-2.0 |
Inquiryel/HPW_Rewrite-SBS | lua/hpwrewrite/datamanager.lua | 2 | 4869 | if not HpwRewrite then return end
HpwRewrite.DM = HpwRewrite.DM or { }
if not file.Exists("hpwrewrite", "DATA") then
file.CreateDir("hpwrewrite")
print("hpwrewrite folder has been created")
end
if CLIENT then
-- Binds
if not file.Exists("hpwrewrite/client", "DATA") then
file.CreateDir("hpwrewrite/client")
p... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.