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 |
|---|---|---|---|---|---|
StephenZhuang/qdkpv2 | QDKP_V2/QDKP2_GUI/Code/Minimap_button.lua | 1 | 2479 | function QDKP2GUI_MiniBtn_Click(self, ...)
QDKP2_Toggle_Main()
end
function QDKP2GUI_MiniBtn_LabelOn(self,...)
if not QDKP2_ACTIVE then return; end
if self.Dragging then return; end
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:AddLine("Quick DKP "..tostring(QDKP2_VERSION))... | gpl-3.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/lair/npc_theater/global_pirate_leader_camp_neutral_medium_theater.lua | 2 | 1039 | global_pirate_leader_camp_neutral_medium_theater = Lair:new {
mobiles = {
{"pirate_leader",1},
{"pirate_lieutenant",2},
{"pirate_crewman",3}
},
spawnLimit = 12,
buildingsVeryEasy = {"object/building/poi/naboo_gunrunners_medium.iff","object/building/poi/tatooine_gunrunners_medium.iff"},
buildingsEasy = {"obje... | agpl-3.0 |
ClearTables/ClearTables | generic.lua | 2 | 5905 | --[[
This file is part of ClearTables
@author Paul Norman <penorman@mac.com>
@copyright 2015-2016 Paul Norman, MIT license
]]--
--- Tags which are always polygons
-- TODO: sort by frequency
local unconditional_polygon_keys = {
'abandoned:aeroway',
'abandoned:amenity',
'abandoned:building',
'abandoned:... | mit |
ycaihua/QSanguosha | extension-doc/17-Example.lua | 15 | 4626 | -- 下面以倚天包中义舍的技能代码为例,说明如何综合运用前面介绍的内容来编写完整的技能 AI
-- 这段代码位于 yitian-ai.lua 第 449 至 514 行
local yishe_skill={name="yishe"}
table.insert(sgs.ai_skills,yishe_skill) -- 注册义舍技能
yishe_skill.getTurnUseCard = function(self) -- getTurnUseCard 见 15-Activate.lua
return sgs.Card_Parse("@YisheCard=.") -- 义舍技能卡,未指定子卡
end
sgs.ai_skill_... | gpl-3.0 |
DBarney/luvit | tests/to-convert/test-http-timeout.lua | 5 | 1097 | --[[
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 |
StephenZhuang/qdkpv2 | QDKP_V2/QDKP2_Config/Libs/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... | gpl-3.0 |
DeepeshC/pubnub | lua-corona/example-history/Json.lua | 13 | 12742 | --[[
JSON Encoder and Parser for Lua 5.1
Copyright © 2007 Shaun Brown (http://www.chipmunkav.com).
All Rights Reserved.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software to deal in the Software without
restriction, including without limitation the rights... | mit |
DeepeshC/pubnub | lua-corona/example-chat/Json.lua | 13 | 12742 | --[[
JSON Encoder and Parser for Lua 5.1
Copyright © 2007 Shaun Brown (http://www.chipmunkav.com).
All Rights Reserved.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software to deal in the Software without
restriction, including without limitation the rights... | mit |
LomoX-Offical/nginx-openresty-windows | src/luajit-root-debug/luajit/share/luajit-2.1.0-alpha/jit/dis_arm.lua | 17 | 19363 | ----------------------------------------------------------------------------
-- LuaJIT ARM disassembler module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | bsd-2-clause |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/lair/npc_theater/corellia_selonian_base_neutral_large_theater.lua | 2 | 1222 | corellia_selonian_base_neutral_large_theater = Lair:new {
mobiles = {{"selonian_separatist",3},{"selonian_separatist_general",1},{"selonian_separatist_soldier",3},{"selonian_separatist_recruit",3},{"selonian_separatist_captain",2}},
spawnLimit = 15,
buildingsVeryEasy = {"object/building/poi/corellia_selonian_separat... | agpl-3.0 |
yimogod/boom | trunk/t-engine4/game/engines/engine/World.lua | 1 | 1046 | -- 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 |
TheLazar42/Reign-of-Darkness | games/Reign of Darkness/mods/firearms/firearmslib/action.lua | 2 | 5935 |
--[[
|| action.lua
|| Useful actions for weapons.
||
|| Part of the Firearms Modpack for Minetest.
|| Copyright (C) 2013 Diego Martínez <kaeza>
|| See `LICENSE.txt' for details.
--]]
local random = math.random
--[[
| shoot
|
| Shoots the current weapon, using the ammo for the currently
| selected... | lgpl-2.1 |
DBarney/luvit | deps/tls/lcrypto.lua | 1 | 1214 | --[[
Copyright 2014 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed ... | apache-2.0 |
mafiesto4/Game1 | MyGame/MyGame/cocos2d/external/lua/luasocket/script/socket/headers.lua | 31 | 3706 | -----------------------------------------------------------------------------
-- Canonic header field capitalization
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
local socket = require("socket.socket")
socket.headers = {}
local _M = socket.he... | gpl-2.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/lair/npc_theater/global_imperial_spec_non_com_camp_imperial_small_theater.lua | 2 | 1244 | global_imperial_spec_non_com_camp_imperial_small_theater = Lair:new {
mobiles = {
{"specialist_noncom",1}
},
spawnLimit = 9,
buildingsVeryEasy = {"object/building/poi/anywhere_imperial_base_small_1.iff","object/building/poi/lok_imperial_small1.iff","object/building/poi/lok_imperial_small2.iff"},
buildingsEasy = ... | agpl-3.0 |
alinofel/zooz11 | plugins/voice.lua | 2 | 1055 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY ALI NOFEL ▀▄ ▄▀
▀▄ ▄▀ BY ALI NOFEL (@rafidebot) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY ALI NOFEL ▀▄ ▄▀
▀▄ ▄▀ voice : صوت ▀▄ ▄▀
▀▄▀... | gpl-2.0 |
TeleGram-Real/OmarReaI | plugins/info.lua | 4 | 1062 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY OmarRea; ▀▄ ▄▀
▀▄ ▄▀ BY OmarReal (Omar_Real7) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY OmarReal ▀▄ ▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄▀▀... | gpl-2.0 |
samslunch/sipml5 | asterisk/etc/extensions.lua | 317 | 5827 |
CONSOLE = "Console/dsp" -- Console interface for demo
--CONSOLE = "DAHDI/1"
--CONSOLE = "Phone/phone0"
IAXINFO = "guest" -- IAXtel username/password
--IAXINFO = "myuser:mypass"
TRUNK = "DAHDI/G2"
TRUNKMSD = 1
-- TRUNK = "IAX2/user:pass@provider"
--
-- Extensions are expected to be defined in a global table ... | bsd-3-clause |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/loot/items/wearables/skirt/skirt_s11.lua | 4 | 1063 | skirt_s11 = {
-- Noble Skirt
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/wearables/skirt/skirt_s11.iff",
craftingValues = {},
skillMods = {},
customizationStringNames = {"/private/index_color_1","/private/index_color_2"},
customiza... | agpl-3.0 |
blake-mealey/slack-bot | bots/lua-bot/encode_global_table.lua | 2 | 1593 | GLOBAL_TABLE_ENCODER = {}
GLOBAL_TABLE_ENCODER.blacklist = {"string", "package", "os", "setmetatable", "io", "getmetatable", "math", "debug", "table", "coroutine", "_G", "xpcall", "tostring", "print", "unpack",
"require", "getfenv", "next", "assert", "tonumber", "rawequal", "collectgarbage", "module", "rawset", "pcal... | mit |
MikeMcShaffry/gamecode3 | Dev/Source/3rdParty/LuaPlus/Src/Modules/socket/etc/dispatch.lua | 1 | 10262 | -----------------------------------------------------------------------------
-- A hacked dispatcher module
-- LuaSocket sample files
-- Author: Diego Nehab
-- RCS ID: $$
-----------------------------------------------------------------------------
local base = _G
local table = require("table")
local socket = require("... | lgpl-2.1 |
LuaDist2/turbo | turbo/cdef.lua | 1 | 25018 | --- Turbo.lua C function declarations
--
-- Copyright 2013, 2014 John Abrahamsen
--
-- 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
--
-- Unl... | apache-2.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/lair/npc_theater/global_imperial_1st_lieutenant_camp_imperial_medium_theater.lua | 2 | 1040 | global_imperial_1st_lieutenant_camp_imperial_medium_theater = Lair:new {
mobiles = {
{"imperial_first_lieutenant",1},
{"imperial_sergeant",2},
{"imperial_trooper",3}
},
spawnLimit = 12,
buildingsVeryEasy = {"object/building/poi/lok_imperial_medium4.iff","object/building/poi/lok_imperial_medium5.iff"},
buildi... | agpl-3.0 |
rweichler/hostageidentity | addons/RCS/lua/weapons/rcs_sg552/shared.lua | 1 | 2805 | --REAL sg552
--sorry for no comments to show what everything does im too lazy to do it LOL!
if (SERVER) then
AddCSLuaFile( "shared.lua" )
SWEP.Weight = 5
SWEP.AutoSwitchTo = false
SWEP.AutoSwitchFrom = false
SWEP.HoldType = "ar2"
end
if ( CLIENT ) then
SWEP.PrintName = "SIG SG 552"
S... | mit |
ld-test/busted | busted/modules/cli.lua | 3 | 9800 | local utils = require 'busted.utils'
local path = require 'pl.path'
local tablex = require 'pl.tablex'
local exit = require 'busted.compatibility'.exit
local execute = require 'busted.compatibility'.execute
return function(options)
local appName = ''
local options = options or {}
local cli = require 'cliargs'
... | mit |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/volleyFire.lua | 4 | 2323 | --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 |
kingluo/luajit.io | test/001-upload.lua | 1 | 2156 | local upload = require("resty.upload")
local function extract_name(res)
local name, filename
if res[1] == 'Content-Disposition' then
name = string.match(res[2], ";%s*name=\"([^\"]+)\"")
filename = string.match(res[2], ";%s*filename=\"([^\"]+)\"")
end
return name, filename
end
local fun... | bsd-2-clause |
githabbot/Quick-V2.7 | plugins/info_en.lua | 1 | 8002 | do
local danger = 195473011 --put your id here(BOT OWNER ID)
local function setrank(msg, name, value) -- setrank function
local hash = nil
if msg.to.type == 'chat' then
hash = 'rank:'..msg.to.id..':variables'
end
if hash then
redis:hset(hash, name, value)
return send_msg('chat#id'..msg.to.id, 'set Ran... | gpl-2.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/faction/imperial/veteran_compforce_trooper.lua | 2 | 1416 | veteran_compforce_trooper = Creature:new {
objectName = "@mob/creature_names:veteran_compforce_trooper",
randomNameType = NAME_STORMTROOPER_TAG,
socialGroup = "imperial",
faction = "imperial",
level = 25,
chanceHit = 0.35,
damageMin = 230,
damageMax = 240,
baseXp = 2637,
baseHAM = 6800,
baseHAMmax = 8300,
a... | agpl-3.0 |
dani-sj/testnod | plugins/ingroup.lua | 10 | 53916 | 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 |
garoose/eecs494.p2 | dev/premake/premake/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
... | mit |
LeMagnesium/minetest-minetestforfun-server | mods/throwing/init.lua | 8 | 2439 | throwing_arrows = {
{"throwing:arrow_steel", "throwing:arrow_steel_entity"},
{"throwing:arrow_stone", "throwing:arrow_stone_entity"},
{"throwing:arrow_obsidian", "throwing:arrow_obsidian_entity"},
{"throwing:arrow_diamond", "throwing:arrow_diamond_entity"},
{"throwing:arrow_mithril", "throwing:arrow_mithril_entity... | unlicense |
MikeMcShaffry/gamecode3 | Dev/Source/3rdParty/LuaPlus/Src/Modules/sqlite3/luasql-sqlite3.lua | 4 | 5938 |
--[[--------------------------------------------------------------------------
Author: Michael Roth <mroth@nessie.de>
Copyright (c) 2004 Michael Roth <mroth@nessie.de>
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
file... | lgpl-2.1 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/endor/jinda_elder.lua | 2 | 1117 | jinda_elder = Creature:new {
objectName = "@mob/creature_names:jinda_elder",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "jinda_tribe",
faction = "",
level = 15,
chanceHit = 0.31,
damageMin = 160,
damageMax = 170,
baseXp = 831,
baseHAM = 2400,
baseHAMmax = 3000,
armor = 0,
resists = {15,15,15,15,15,15... | agpl-3.0 |
sbouchex/domoticz | scripts/dzVents/examples/simple room heating with hysteresis control.lua | 19 | 3118 | -- assumptions:
-- the setpoint is set by a selector dummy device where the values are numeric temperatures
-- but you can easily change it to a setpoint device
local BOILER_DEVICE = 'Boiler' -- switch device
local SETPOINT_DEVICE = 'Setpoint' -- selector dummy device
local TEMPERATURE_SENSOR = 'Temperature'
local HYS... | gpl-3.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/synchronizedUiListen.lua | 4 | 2153 | --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 |
amirhoseinkarimi2233/uzzbot | plugins/webshot.lua | 919 | 1473 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
superzazu/denver.lua | example-scorereader/ScoreReader.lua | 1 | 1354 | -- A VERY SIMPLE CLASS TO READ SHEETS
local class = require 'lib.middleclass'
local denver = require 'denver'
local ScoreReader = class('ScoreReader')
function ScoreReader:initialize(wave_type, notes, bpm)
self.wave_type = wave_type
self.notes = notes
self.bpm = bpm
self.looping = false
self:sto... | mit |
alireza1998/gfx1 | plugins/time.lua | 771 | 2865 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
griegler/octnet | th/oc/OctreeMSECriterion.lua | 1 | 3217 | -- Copyright (c) 2017, The OctNet authors
-- 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, this list of ... | bsd-3-clause |
LeMagnesium/minetest-minetestforfun-server | minetestforfun_game/mods/default/init.lua | 6 | 1645 | -- Minetest 0.4 mod: default
-- See README.txt for licensing and other information.
-- The API documentation in here was moved into game_api.txt
-- Definitions made by this mod that other mods can use too
default = {}
default.LIGHT_MAX = 14
-- GUI related stuff
default.gui_bg = "bgcolor[#080808BB;true]"
default.gui... | unlicense |
krunkathos/quasimofo | player.lua | 1 | 8820 | -- Copyright 2016 krunkathos
--
-- 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 agreed t... | apache-2.0 |
bingo235/skynet | lualib/mqueue.lua | 115 | 1798 | -- This is a deprecated module, use skynet.queue instead.
local skynet = require "skynet"
local c = require "skynet.core"
local mqueue = {}
local init_once
local thread_id
local message_queue = {}
skynet.register_protocol {
name = "queue",
-- please read skynet.h for magic number 8
id = 8,
pack = skynet.pack,
u... | mit |
lolleko/guesswho | gamemodes/guesswho/gamemode/lang/zh-tw.lua | 1 | 1387 | local zhtw = {
--language name
language_name = "正體中文 (Traditional Chinese)",
--Round states
round_pre_game = "準備中",
round_waiting_players = "等待玩家中",
round_creating = "建立電腦角色中",
round_hide = "匿藏",
round_seek = "捉人",
round_post = "即將下一回合",
round_nav_gen = "生成導航網格中",
--Team Na... | mit |
LuaDist2/turbo | turbo/websocket.lua | 4 | 29912 | --- Turbo.lua Websocket module.
--
-- Websockets according to the RFC 6455. http://tools.ietf.org/html/rfc6455
--
-- The module offers two classes:
-- * WebSocketHandler - WebSocket support for turbo.web.Application.
-- * WebSocketClient - Callback based WebSocket client.
-- Both classes uses the mixin class WebSocket... | apache-2.0 |
DBarney/luvit | examples/broken/test-http-ugly.lua | 15 | 3065 | --[[
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 |
uskdum/kjk | plugins/welcome.lua | 5 | 3684 | 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 |
LuaDist2/turbo | turbo/http_response_codes.lua | 14 | 2456 | --- Turbo.lua HTTP Response code list.
--
-- Copyright John Abrahamsen 2011, 2012, 2013 < JhnAbrhmsn@gmail.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, in... | apache-2.0 |
LeMagnesium/minetest-minetestforfun-server | minetestforfun_game/mods/farming/blueberry.lua | 12 | 1857 |
local S = farming.intllib
-- blueberries
minetest.register_craftitem("farming:blueberries", {
description = S("Blueberries"),
inventory_image = "farming_blueberries.png",
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:blueberry_1")
end,... | unlicense |
szagoruyko/nn | MarginRankingCriterion.lua | 43 | 1963 | local MarginRankingCriterion, parent = torch.class('nn.MarginRankingCriterion', 'nn.Criterion')
function MarginRankingCriterion:__init(margin)
parent.__init(self)
margin=margin or 1
self.margin = margin
self.gradInput = {torch.Tensor(1), torch.Tensor(1)}
end
function MarginRankingCriterion:updateOutput... | bsd-3-clause |
henu/Urho3D | Source/ThirdParty/toluapp/src/bin/lua/custom.lua | 25 | 1388 |
function extract_code(fn,s)
local code = ""
if fn then
code = '\n$#include "'..fn..'"\n'
end
s= "\n" .. s .. "\n" -- add blank lines as sentinels
local _,e,c,t = strfind(s, "\n([^\n]-)SCRIPT_([%w_]*)[^\n]*\n")
while e do
t = strlower(t)
if t == "bind_begin" then
_,e,c = strfind(s,"(.-)\n[^\n]... | mit |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/healWound.lua | 4 | 2120 | --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 |
LeMagnesium/minetest-minetestforfun-server | mods/darkage/mapgen.lua | 8 | 8778 | --[[
This file generates:
darkage:mud
darkage:silt
darkage:chalk
darkage:ors
darkage:shale
darkage:slate
darkage:schist
darkage:basalt
darkage:marble
darkage:serpentine
darkage:gneiss
--]]
local getID = minetest.get_content_id
local function generate_stratus(data, varea, name, wherein, ceilin, ceil, minp,... | unlicense |
LeMagnesium/minetest-minetestforfun-server | mods/sprint/init.lua | 6 | 1090 | --[[
Sprint mod for Minetest by GunshipPenguin
To the extent possible under law, the author(s)
have dedicated all copyright and related and neighboring rights
to this software to the public domain worldwide. This software is
distributed without any warranty.
]]
--Configuration variables, these are all explained in RE... | unlicense |
LeMagnesium/minetest-minetestforfun-server | mods/ambience/init.lua | 7 | 7361 |
--= Ambience lite by TenPlus1 (16th April 2015)
local max_frequency_all = 1000 -- larger number means more frequent sounds (100-2000)
local SOUNDVOLUME = 1
-- compatibility with soundset mod
local get_volume
if (minetest.get_modpath("soundset")) ~= nil then
get_volume = soundset.get_gain
else
get_volume... | unlicense |
peymankhanas/khanas-bot | plugins/minecraft.lua | 624 | 2605 | local usage = {
"!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565",
"!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.",
}
local ltn12 = require "ltn12"
local function mineSearch(ip, port, receiver) --25565
local responseText = ""
l... | gpl-2.0 |
excessive/obtuse-tanuki | libs/winapi/waitemlistclass.lua | 2 | 2147 |
--oo/window/waitemlist: accelerator item list.
--Written by Cosmin Apreutesei. Public Domain.
setfenv(1, require'winapi')
require'winapi.itemlist'
require'winapi.accelerator'
local modifier_masks = {
shift = FSHIFT,
control = FCONTROL,
ctrl = FCONTROL,
alt = FALT,
}
local function parse_hotkey(s) --parse hotkey... | mit |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/loot/items/wearables/ithorian/ith_pants_s08.lua | 4 | 1034 | ith_pants_s08 = {
-- Ithorian Baggies
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/wearables/ithorian/ith_pants_s08.iff",
craftingValues = {},
skillMods = {},
customizationStringNames = {"/private/index_color_1","/private/index_color_2"... | agpl-3.0 |
kidaa/Algorithm-Implementations | Rabin_Karp/Lua/Yonaba/rabin_karp.lua | 26 | 1376 | -- Rabin-Karp string searching algorithm implementation
-- See: http://en.wikipedia.org/wiki/Rabin%E2%80%93Karp_string_search_algorithm
-- Note: This implementation is based on the Python implementation of Shivam Bansal
-- See : https://github.com/kennyledet/Algorithm-Implementations/blob/master/Rabin_Karp/Python/shiv... | mit |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/managers/jedi/village/glowing.lua | 2 | 6747 | local ObjectManager = require("managers.object.object_manager")
local OldManEncounter = require("managers.jedi.village.old_man_encounter")
local VillageJediManagerCommon = require("managers.jedi.village.village_jedi_manager_common")
Glowing = Object:new {}
TOTALNUMBEROFBADGESREQUIRED = 53 --39
NUMBEROFJEDIBADGESREQUI... | agpl-3.0 |
helling34/skynet | lualib/redis.lua | 47 | 4975 | local skynet = require "skynet"
local socket = require "socket"
local socketchannel = require "socketchannel"
local table = table
local string = string
local redis = {}
local command = {}
local meta = {
__index = command,
-- DO NOT close channel in __gc
}
---------- redis response
local redcmd = {}
redcmd[36] = f... | mit |
LeMagnesium/minetest-minetestforfun-server | mods/mesecons/mesecons_microcontroller/init.lua | 5 | 19373 | EEPROM_SIZE = 255
local microc_rules = {}
for a = 0, 1 do
for b = 0, 1 do
for c = 0, 1 do
for d = 0, 1 do
local nodename = "mesecons_microcontroller:microcontroller"..tostring(d)..tostring(c)..tostring(b)..tostring(a)
local top = "jeija_microcontroller_top.png"
if tostring(a) == "1" then
top = top.."^jeija_microcont... | unlicense |
lilien1010/moochine | luasrc/mch/router.lua | 2 | 3675 | #!/usr/bin/env lua
-- -*- lua -*-
-- Copyright 2012 Appwill Inc.
-- Author : KDr2
--
--
-- 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 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/transferstructure.lua | 4 | 2144 | --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 |
LeMagnesium/minetest-minetestforfun-server | minetestforfun_game/mods/default/aliases.lua | 6 | 5593 | -- mods/default/aliases.lua
-- Aliases to support loading worlds using nodes following the old naming convention
-- These can also be helpful when using chat commands, for example /giveme
minetest.register_alias("stone", "default:stone")
minetest.register_alias("stone_with_coal", "default:stone_with_coal")
minetest.re... | unlicense |
flandr/thrift | lib/lua/TBinaryProtocol.lua | 90 | 6141 | --
-- 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 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/saberPolearmSpinAttack2.lua | 2 | 2626 | --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 |
ccrusius/texmf | tests/test.lua | 1 | 3698 | local luaunit = dofile "../submodules/luaunit/luaunit.lua"
local function startswith(str,start)
return (string.find(str,start,1,true) == 1)
end
local function doluatex(filename)
print("luatex "..filename)
local status = os.execute("luatex -halt-on-error -interaction=nonstopmode "..filename)
if status ==... | mit |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/conversations/racetracks/lokconversation.lua | 4 | 2431 | lok_conversationtemplate = ConvoTemplate:new {
initialScreen = "lok_initial",
templateType = "Lua",
luaClassHandler = "lok_racetrack_convo_handler",
screens = {}
}
lok_initial = ConvoScreen:new {
id = "lok_initial",
leftDialog = "@conversation/racing_lok:s_55824ba",
stopConversation = "false",
options = {
{"... | agpl-3.0 |
aqasaeed/spartatg | plugins/Banhammer.lua | 22 | 10356 |
local function is_user_whitelisted(id)
local hash = 'whitelist:user#id'..id
local white = redis:get(hash) or false
return white
end
local function is_chat_whitelisted(id)
local hash = 'whitelist:chat#id'..id
local white = redis:get(hash) or false
return white
end
local function kick_user(user_id, chat_id... | gpl-2.0 |
LeMagnesium/minetest-minetestforfun-server | mods/mobs/yeti.lua | 7 | 2160 |
-- Yeti by TenPlus1
mobs:register_mob("mobs:yeti", {
-- animal, monster, npc, barbarian
type = "monster",
-- agressive, deals 7 damage to player when hit
passive = false,
damage = 3,
attack_type = "dogshoot",
pathfinding = false,
reach = 2,
shoot_interval = .75,
arrow = "mobs:snowball",
shoot_offset = 2,
... | unlicense |
glaubitz/ion3-debian | ioncore/ioncore_winprops.lua | 6 | 3337 | --
-- ion/share/ioncore_winprops.lua
--
-- Copyright (c) Tuomo Valkonen 2004-2009.
--
-- See the included file LICENSE for details.
--
local ioncore=_G.ioncore
local winprops={}
local function ifnil(...)
local arg={...}
local n=#arg
local function nxt(_, i)
local j=i+1
if i==n then
... | lgpl-2.1 |
yimogod/boom | trunk/t-engine4/game/engines/engine/generator/object/OnSpots.lua | 1 | 3148 | -- 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 |
Inquiryel/HPW_Rewrite-SBS | lua/hpwrewrite/spells/harrypotter/geminio.lua | 2 | 1577 | local Spell = { }
Spell.LearnTime = 240
Spell.ApplyFireDelay = 0.4
Spell.Description = [[
Creates an useless copy of
the object you're looking at.
]]
Spell.AccuracyDecreaseVal = 0.2
Spell.NodeOffset = Vector(-1410, -32, 0)
Spell.CanSelfCast = false
function Spell:OnFire(wand)
local ent = wand:HPWGetAimEntity(300, ... | mit |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/loot/items/wearables/bikini/bikini_s02.lua | 4 | 1253 | bikini_s02 = {
-- Metal Bikini
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/wearables/bikini/bikini_s02.iff",
craftingValues = {},
skillMods = {},
customizationStringNames = {"/private/index_color_1","/private/index_color_2"},
custo... | agpl-3.0 |
p0pr0ck5/lua-resty-waf | lib/resty/waf/operators.lua | 1 | 10838 | local _M = {}
local ac = require "resty.waf.load_ac"
local base = require "resty.waf.base"
local bit = require "bit"
local dns = require "resty.dns.resolver"
local iputils = require "resty.iputils"
local libinject = require "resty.libinjection"
local logger = require "resty.waf.log"
local ... | gpl-3.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/faction/rebel/rebel_major_general.lua | 2 | 1831 | rebel_major_general = Creature:new {
objectName = "@mob/creature_names:rebel_major_general",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "rebel",
faction = "rebel",
level = 26,
chanceHit = 0.36,
damageMin = 250,
damageMax = 260,
baseXp = 2730,
baseHAM = 7700,
baseHAMmax = 9400,
armor = 0,
resists = {0... | agpl-3.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/conversations/racetracks/agrilatswampconversation.lua | 4 | 2631 | agrilat_swamp_conversationtemplate = ConvoTemplate:new {
initialScreen = "agrilat_initial",
templateType = "Lua",
luaClassHandler = "agrilat_swamp_racetrack_convo_handler",
screens = {}
}
agrilat_initial = ConvoScreen:new {
id = "agrilat_initial",
leftDialog = "@conversation/racing_agrilat:s_1e9a4eea",
stopConv... | agpl-3.0 |
garoose/eecs494.p2 | dev/premake/premake/src/base/help.lua | 26 | 1220 | --
-- help.lua
-- User help, displayed on /help option.
-- Copyright (c) 2002-2008 Jason Perkins and the Premake project
--
function premake.showhelp()
-- display the basic usage
printf("Premake %s, a build script generator", _PREMAKE_VERSION)
printf(_PREMAKE_COPYRIGHT)
printf("%s %s", _VERSION, _COPYRIGHT... | mit |
TheLazar42/Reign-of-Darkness | games/Reign of Darkness/mods/beds/init.lua | 1 | 7784 | local player_in_bed = 0
local guy
local hand
local old_yaw = 0
local function get_dir(pos)
local btop = "beds:bed_top"
if minetest.env:get_node({x=pos.x+1,y=pos.y,z=pos.z}).name == btop then
return 7.9
elseif minetest.env:get_node({x=pos.x-1,y=pos.y,z=pos.z}).name == btop then
return 4.75
elseif min... | lgpl-2.1 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/stopBleeding.lua | 3 | 2129 | --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/endor/eerie_donkuwah_spiritmaster.lua | 2 | 1115 | eerie_donkuwah_spiritmaster = Creature:new {
objectName = "@mob/creature_names:eerie_donkuwah_spiritmaster",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "donkuwah_tribe",
faction = "donkuwah_tribe",
level = 39,
chanceHit = 0.44,
damageMin = 350,
damageMax = 410,
baseXp = 3915,
baseHAM = 9200,
baseHAMmax... | agpl-3.0 |
mahdibagheri/mmmmb1 | bot/utils.lua | 646 | 23489 | 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 |
nullxerror/i3Arch | home/user/.config/awesome/rc.lua | 1 | 20460 | -- Standard awesome library
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
-- Start vicious here
vicious = require("vicious")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("... | gpl-2.0 |
csteddy/lunajson | test/decodeparse/validjson/sample.lua | 4 | 213760 | local v1,v2,v3,v4,v5,v6,v7,v8,vtmp
local stack={}
v1={}
v2={}
v1["a"]=v2
v2["퓲꽪m{㶩/뇿#⼢&᭙硞㪔E嚉c樱㬇1a綑DḾ䝩"]=1/0
v2["6U閆崬밺뀫颒myj츥휘:$薈mY햚#rz飏+玭V㭢뾿愴YꖚX亥ᮉ푊垡㐭룝\"厓ᔧḅ^Sqpv媫\"⤽걒\"˽Ἆ?ꇆ䬔未tv{DV鯀Tἆl凸g\\㈭ĭ즿UH㽤"]=1/0
v3={}
v2["b茤z\\.N"]=v3
v4={}
v3[1]=v4
v4[1]="ZL:ᅣዎ*Y|猫劁櫕荾Oj为1糕쪥泏S룂w࡛Ᏺ⸥蚙)"
v5={}
v4[2]=v5
v5["e浱up蔽CrJK軵xCʨ<뜡癙... | mit |
amirhoseinkarimi2233/uzzbot | plugins/twitter_send.lua | 627 | 1555 | do
local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local client = OAuth.new(consumer_key, consumer_secret, {
RequestToken = "https://api.twitter.com/oauth/request_token",
AuthorizeUser = {"https://api.twitter.com/oauth/autho... | gpl-2.0 |
ArmanIr/IrbotTgcli | plugins/twitter_send.lua | 627 | 1555 | do
local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local client = OAuth.new(consumer_key, consumer_secret, {
RequestToken = "https://api.twitter.com/oauth/request_token",
AuthorizeUser = {"https://api.twitter.com/oauth/autho... | gpl-2.0 |
TylerL-uxai/SamsBday | cocos2d/external/lua/luajit/src/src/host/genminilua.lua | 73 | 11943 | ----------------------------------------------------------------------------
-- Lua script to generate a customized, minified version of Lua.
-- The resulting 'minilua' is used for the build process of LuaJIT.
----------------------------------------------------------------------------
-- Copyright (C) 2005-2013 Mike P... | mit |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/endor/spooky_korga_spiritmaster.lua | 2 | 1051 | spooky_korga_spiritmaster = Creature:new {
objectName = "@mob/creature_names:spooky_korga_spiritmaster",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "korga_tribe",
faction = "korga_tribe",
level = 50,
chanceHit = 0.5,
damageMin = 395,
damageMax = 500,
baseXp = 4916,
baseHAM = 10000,
baseHAMmax = 12000,
... | agpl-3.0 |
rweichler/hostageidentity | addons/RCS/lua/entities/rcs_c4pack/init.lua | 1 | 4435 | AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include( "shared.lua" )
function ENT:Initialize( )
local phys
self:SetModel( "models/weapons/w_c4_planted.mdl" )
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self.timeleft = CurTime()... | mit |
TeleGram-Real/OmarReaI | data/config.lua | 4 | 7352 | do local _ = {
about_text = "\n",
enabled_plugins = {
"admin",
"kickbot",
"commands",
"group",
"banhammer",
"stats",
"anti_spam",
"arabic_lock",
"set",
"get",
"broadcast",
"invite",
"leave_ban",
"supergroup",
"whitelist",
"msg_checks",
"log-msgs",
... | gpl-2.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/loot/items/armor/composite_armor_helmet.lua | 4 | 1237 | composite_armor_helmet = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "Composite Armor Helmet",
directObjectTemplate = "object/tangible/wearables/armor/composite/armor_composite_helmet.iff",
craftingValues = {
{"armor_rating",1,1,0},
{"armor_effectiveness",8,39,10},
{"armor_integrity",30000, 550... | agpl-3.0 |
AndKe/ardupilot | libraries/AP_Scripting/tests/strings.lua | 26 | 13753 | -- $Id: strings.lua,v 1.86 2016/11/07 13:11:28 roberto Exp roberto $
--[[
*****************************************************************************
* Copyright (C) 1994-2016 Lua.org, PUC-Rio.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated document... | gpl-3.0 |
henu/Urho3D | bin/Data/LuaScripts/09_MultipleViewports.lua | 24 | 13081 | -- Multiple viewports example.
-- This sample demonstrates:
-- - Setting up two viewports with two separate cameras
-- - Adding post processing effects to a viewport's render path and toggling them
require "LuaScripts/Utilities/Sample"
local rearCameraNode = nil
function Start()
-- Execute the ... | mit |
Lankytim/mangos-wotlk | dep/recastnavigation/RecastDemo/premake4.lua | 82 | 3551 | --
-- premake4 file to build RecastDemo
-- http://industriousone.com/premake
--
local action = _ACTION or ""
local todir = "Build/" .. action
solution "recastnavigation"
configurations {
"Debug",
"Release"
}
location (todir)
-- extra warnings, no exceptions or rtti
flags {
"ExtraWarnings",
"FloatFast"... | gpl-2.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/requestManfSchematicSlots.lua | 4 | 2168 | --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/corellia/selonian_scout.lua | 2 | 2169 | selonian_scout = Creature:new {
objectName = "@mob/creature_names:selonian_scout",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "selonian",
faction = "",
level = 5,
chanceHit = 0.25,
damageMin = 45,
damageMax = 50,
baseXp = 113,
baseHAM = 135,
baseHAMmax = 165,
armor = 0,
resists = {5,5,5,-1,-1,-1,-1,-... | agpl-3.0 |
marclurr/gamecode4 | Extra/UtilityDemo/utility.lua | 44 | 7963 | -- Utility.lua
-- A simple utility game
-- A "better" random seed. This was taken from http://lua-users.org/wiki/MathLibraryTutorial
math.randomseed(tonumber(tostring(os.time()):reverse():sub(1,6)))
----------------------------------------------------------------------------------------------------------------... | lgpl-3.0 |
mkxml/dotfiles | .keyboard/hammerspoon/windows.lua | 1 | 6055 | hs.window.animationDuration = 0
-- +-----------------+
-- | | |
-- | HERE | |
-- | | |
-- +-----------------+
function hs.window.left(win)
local f = win:frame()
local screen = win:screen()
local max = screen:frame()
f.x = max.x
f.y = max.y
f.w = max.w / 2
f.h = max.h... | mit |
LeMagnesium/minetest-minetestforfun-server | mods/mobs/cow.lua | 7 | 4847 |
-- Cow by Krupnovpavel
mobs:register_mob("mobs:cow", {
-- animal, monster, npc, barbarian
type = "animal",
-- aggressive, does 5 damage to player when threatened
passive = false,
group_attack = true,
attack_type = "dogfight",
reach = 2,
damage = 4,
-- health & armor
hp_min = 15,
hp_max = 20,
armor = 200,
... | unlicense |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.