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 |
|---|---|---|---|---|---|
Alireza5928/abedzadeh | TeleDiamond/libs/dkjson.lua | 63 | 26559 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | agpl-3.0 |
amirhoseinkarimi2233/uzzbot | 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 |
tfagit/telegram-bot | 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 |
henu/Urho3D | Source/ThirdParty/LuaJIT/dynasm/dasm_arm64.lua | 33 | 34807 | ------------------------------------------------------------------------------
-- DynASM ARM64 module.
--
-- Copyright (C) 2005-2016 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _... | mit |
tfagit/telegram-bot | plugins/time.lua | 1 | 2876 | -- 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 |
ld-test/luagraph | examples/tablegraph.lua | 1 | 2480 | local m = require "graph"
local vbox, hbox = m.vbox, m.hbox
-- Get rid of ':' in table representation - only for invisible strings
local function tname(t)
local s = string.gsub(tostring(t), ": ", "")
return s
end
-- Create a port name
local function tport(s)
return "<"..tname(s)..">"
end
-- Return a closur... | mit |
braydondavis/Nerd-Gaming-Public | resources/[shaders]/SHDRVehicleReflections/c_car_paint.lua | 2 | 1508 | function doTheShaderStuff( )
if getVersion ().sortable < "1.1.0" then
return
end
myShader, tec = dxCreateShader ( "car_paint.fx" )
if myShader then
textureVol = dxCreateTexture ( "images/smallnoise3d.dds" );
textureCube = dxCreateTexture ( "images/cube_env256.dds" );
dxSetShaderValue ( myShader, "s... | mit |
kidaa/Algorithm-Implementations | Bellman_Ford_Search/Lua/Yonaba/bellmanford.lua | 26 | 3025 | -- Bellman Ford single source shortest path search algorithm implementation
-- See : https://en.wikipedia.org/wiki/Bellman%E2%80%93Ford_algorithm
-- Notes : this is a generic implementation of Bellman Ford search algorithm.
-- It is devised to be used on waypoint graphs.
-- The BellmanFord class expects a handler to b... | mit |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/loot/items/armor/mabari_armor_pants.lua | 4 | 1652 | mabari_armor_pants = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "Mabari Armorweave Pants",
directObjectTemplate = "object/tangible/wearables/armor/zam/armor_zam_wesell_pants.iff",
craftingValues = {
{"armor_rating",1,1,0},
{"heateffectiveness",10,40,10},
{"blasteffectiveness",10,40,10},
{"ar... | agpl-3.0 |
LeMagnesium/minetest-minetestforfun-server | mods/mesecons/mesecons/init.lua | 8 | 4237 | -- |\ /| ____ ____ ____ _____ ____ _____
-- | \ / | | | | | | | |\ | |
-- | \/ | |___ ____ |___ | | | | \ | |____
-- | | | | | | | | | \ | |
-- | | |___ ____| |___ |____ |____| | \| ____|
-- by Jeija, Uberi (Temperest), sfan5, VanessaE
-... | unlicense |
kidaa/Algorithm-Implementations | Golden_Ratio_Algorithms/Lua/Yonaba/lib/newtonraphson.lua | 52 | 1091 | -- Newton (Raphson) root finding algorithm implementation
-- See : http://en.wikipedia.org/wiki/Newton%27s_method
-- Fuzzy equality test
local function fuzzyEqual(a, b, eps)
local eps = eps or 1e-4
return (math.abs(a - b) < eps)
end
-- Evaluates the derivative of function f at x0
-- Uses Newton's centered slope a... | mit |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/loot/items/wearables/vest/vest_s01.lua | 4 | 1150 | vest_s01 = {
-- Belted Vest
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/wearables/vest/vest_s01.iff",
craftingValues = {},
skillMods = {},
customizationStringNames = {"/private/index_color_1","/private/index_color_2"},
customizatio... | agpl-3.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/lair/npc_theater/talus_fed_dub_constable_camp_neutral_large_theater.lua | 2 | 1055 | talus_fed_dub_constable_camp_neutral_large_theater = Lair:new {
mobiles = {{"fed_dub_constable",1},{"fed_dub_supporter",1},{"fed_dub_patrolman",1}},
spawnLimit = 12,
buildingsVeryEasy = {"object/building/poi/corellia_monumenter_large1.iff","object/building/poi/corellia_monumenter_large2.iff"},
buildingsEasy = {"obj... | agpl-3.0 |
rweichler/hostageidentity | addons/RCS/lua/weapons/rcs_m4a1/shared.lua | 1 | 2533 | --RealM4A1
--If you want to edit this so it's a pistol, this is NOT for you. Edit rcs_usp
if (SERVER) then
AddCSLuaFile( "shared.lua" )
SWEP.Weight = 5
SWEP.AutoSwitchTo = false
SWEP.AutoSwitchFrom = false
SWEP.HoldType = "ar2"
end
--9270723, 9270713, 6232709
if ( CLIENT ) then
SWEP.PrintN... | mit |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/loot/items/wearables/ithorian/ith_pants_s17.lua | 4 | 1277 | ith_pants_s17 = {
-- Ithorian Striped Shorts
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/wearables/ithorian/ith_pants_s17.iff",
craftingValues = {},
skillMods = {},
customizationStringNames = {"/private/index_color_1","/private/index_c... | agpl-3.0 |
LeMagnesium/minetest-minetestforfun-server | mods/lavatemple/nodes.lua | 10 | 1326 |
minetest.register_node("lavatemple:brick", {
description = "Darkbrick",
tiles = {"lavatemple_brick.png"},
groups = {dark=1},
sounds = default.node_sound_stone_defaults(),
})
stairs.register_stair_and_slab(
"lavatemple_brick",
"lavatemple:brick",
{dark=1},
{"lavatemple_brick.png"},
"Darkbrick Stair",
"Darkbr... | unlicense |
mobilesolution2016/reeme | framework/resty/http_headers.lua | 69 | 1716 | local rawget, rawset, setmetatable =
rawget, rawset, setmetatable
local str_gsub = string.gsub
local str_lower = string.lower
local _M = {
_VERSION = '0.01',
}
-- Returns an empty headers table with internalised case normalisation.
-- Supports the same cases as in ngx_lua:
--
-- headers.content_lengt... | apache-2.0 |
reaper/eradicate_zombies | EradicateZombies/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)
-------------------... | apache-2.0 |
LeMagnesium/minetest-minetestforfun-server | mods/unified_inventory/register.lua | 8 | 18762 | local S = unified_inventory.gettext
local F = unified_inventory.fgettext
minetest.register_privilege("creative", {
description = S("Can use the creative inventory"),
give_to_singleplayer = false,
})
minetest.register_privilege("ui_full", {
description = S("Forces Unified Inventory to be displayed in Full mode if L... | unlicense |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/givevendormaint.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 |
tfagit/telegram-bot | plugins/vote.lua | 615 | 2128 | do
local _file_votes = './data/votes.lua'
function read_file_votes ()
local f = io.open(_file_votes, "r+")
if f == nil then
print ('Created voting file '.._file_votes)
serialize_to_file({}, _file_votes)
else
print ('Values loaded: '.._file_votes)
f:close()
end
return loadfile (_file_votes)()... | gpl-2.0 |
yimogod/boom | trunk/t-engine4/game/modules/example/class/Actor.lua | 1 | 8477 | -- ToME - Tales of Middle-Earth
-- 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 la... | apache-2.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/tendWoundsTool.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 |
LeMagnesium/minetest-minetestforfun-server | minetestforfun_game/mods/farming/pumpkin.lua | 8 | 4667 |
--[[
Big thanks to PainterlyPack.net for allowing me to use these textures
]]
local S = farming.intllib
-- pumpkin
minetest.register_node("farming:pumpkin", {
description = S("Pumpkin"),
tiles = {
"farming_pumpkin_top.png",
"farming_pumpkin_top.png",
"farming_pumpkin_side.png"
},
groups = {
choppy = 1, ... | unlicense |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/healStatesSelf.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 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/loot/items/wearables/vest/vest_s15.lua | 4 | 1245 | vest_s15 = {
-- Decorative Vest
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/wearables/vest/vest_s15.iff",
craftingValues = {},
skillMods = {},
customizationStringNames = {"/private/index_color_1","/private/index_color_2"},
customiz... | agpl-3.0 |
arvindr21/esp8266-devkit | Espressif/examples/nodemcu-firmware/lua_modules/ds3231/ds3231.lua | 56 | 1905 | --------------------------------------------------------------------------------
-- DS3231 I2C module for NODEMCU
-- NODEMCU TEAM
-- LICENCE: http://opensource.org/licenses/MIT
-- Tobie Booth <tbooth@hindbra.in>
--------------------------------------------------------------------------------
local moduleName = ...
loc... | gpl-3.0 |
githabbot/Quick-V2.7 | 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 |
adixcompany/ad2 | 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... | agpl-3.0 |
tfagit/telegram-bot | 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 |
Blizzard/premake-core | premake4.lua | 6 | 2901 | --
-- Premake 5.x build configuration script
-- Use this script to configure the project with Premake4.
--
--
-- Define the project. Put the release configuration first so it will be the
-- default when folks build using the makefile. That way they don't have to
-- worry about the /scripts argument and all that.
--
... | bsd-3-clause |
NYRDS/pixel-dungeon-remix | RemixedDungeon/src/main/assets/scripts/spells/Possess.lua | 1 | 1078 | --[[
Created by mike.
DateTime: 26.08.18 16:10
This file is part of Remixed Pixel Dungeon
]]
local RPD = require "scripts/lib/commonClasses"
local spell = require "scripts/lib/spell"
return spell.init{
desc = function ()
return {
image = 0,
imageFile = "s... | gpl-3.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/corellia/ragtag_loon.lua | 2 | 1772 | ragtag_loon = Creature:new {
objectName = "@mob/creature_names:ragtag_loon",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "ragtag",
faction = "thug",
level = 6,
chanceHit = 0.250000,
damageMin = 50,
damageMax = 55,
baseXp = 113,
baseHAM = 180,
baseHAMmax = 220,
armor = 0,
resists = {0,0,0,0,0,0,0,-1,-1... | agpl-3.0 |
edge2054/Fae | data/general/grids/forest.lua | 1 | 2394 | -- Fae
-- Copyright (C) 2012 Eric Wykoff
--
-- 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.
--
-- This program is di... | gpl-3.0 |
excessive/obtuse-tanuki | libs/winapi/dragdrop.lua | 2 | 2831 |
--proc/ole/dragdrop: drag & drop OLE API
--Written by Cosmin Apreutesei. Public Domain.
setfenv(1, require'winapi')
require'winapi.ole'
require'winapi.idataobject'
DRAGDROP_S_FIRST = 0x00040100
DRAGDROP_S_LAST = 0x0004010F
DRAGDROP_S_DROP = 0x00040100
DRAGDROP_S_CANCEL ... | mit |
Inquiryel/HPW_Rewrite-SBS | lua/hpwrewrite/spells/harrypotter/protego.lua | 2 | 4032 | local Spell = { }
Spell.LearnTime = 360
Spell.Category = HpwRewrite.CategoryNames.Protecting
Spell.Description = [[
Creates magical barrier that
blocks spells except
unforgivable ones.
Also it can protect you
from props.
]]
Spell.CanSelfCast = false
Spell.ApplyFireDelay = 0.2
Spell.ForceAnim = { ACT_VM_PRIMARY... | mit |
rained23/barebones | game/dota_addons/barebones/scripts/vscripts/libraries/modifiers/modifier_animation.lua | 24 | 10825 | modifier_animation = class({})
local _CODE_TO_ANIMATION_TRANSLATE = {
[0]= "loadout",
[1]= "split_shot",
[2]= "chemical_rage",
[3]= "agedspirit",
[4]= "aggressive",
[5]= "injured",
[6]= "ancient_armor",
[7]= "anvil",
[8]= "arcana",
[9]= "techies_arcana",
[10]= "fast",
[11]= "faster",
[12]= "f... | apache-2.0 |
NYRDS/pixel-dungeon-remix | RemixedDungeon/src/main/assets/scripts/items/test/TestItem.lua | 1 | 5624 | --
-- User: mike
-- Date: 29.01.2019
-- Time: 20:33
-- This file is part of Remixed Pixel Dungeon.
--
local RPD = require "scripts/lib/commonClasses"
local itemLib = require "scripts/lib/item"
local candle =
{
kind="Deco",
object_desc="candle"
}
local chest =
{
kind="Deco",
object_desc="chest_3"
}
... | gpl-3.0 |
amirjoker/Telecloner | plugins/voice.lua | 6 | 2784 | do
local function run(msg, matches)
local text = matches[1]
local b = 1
while b ~= 0 do
textc = text:trim()
text,b = text:gsub(' ','.') -- Fixing space problem ;)
if msg.to.type == 'user' then --Dont answer on private chat !
return nil
else
local url = "http://tts.baidu.com/te... | gpl-2.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/conversations/themepark/tutorial/imperial_officer_1_conv.lua | 2 | 1479 | imperial_officer_1_convotemplate = ConvoTemplate:new {
initialScreen = "convoscreen1",
templateType = "Normal",
screens = {}
}
imperial_officer_1_convoscreen1 = ConvoScreen:new {
id = "convoscreen1",
leftDialog = "@newbie_tutorial/newbie_convo:convo_1_start",
stopConversation = "false",
options = {
{"@newbie_... | agpl-3.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/ai/actions/selectweapon.lua | 2 | 1489 | require("ai.ai")
require("ai.interrupts")
SelectWeaponBase = createClass(Ai)
function SelectWeaponBase:checkConditions(pAgent)
if (pAgent ~= nil) then
local creature = CreatureObject(pAgent)
if (creature:isDead()) then
local agent = AiAgent(pAgent)
agent:removeDefenders()
agent:setFollowObject(nil)
... | agpl-3.0 |
xztraz/domoticz | dzVents/runtime/integration-tests/testEventState.lua | 13 | 1988 | package.path = package.path ..
";../?.lua;../device-adapters/?.lua;./data/?.lua;../../../scripts/dzVents/generated_scripts/?.lua;" ..
"../../../scripts/lua/?.lua"
local TestTools = require('domoticzTestTools')('8080', true)
local socket = require("socket")
local _ = require 'lodash'
local fsScripts = {'scriptTes... | gpl-3.0 |
helling34/skynet | examples/share.lua | 66 | 1702 | local skynet = require "skynet"
local sharedata = require "sharedata"
local mode = ...
if mode == "host" then
skynet.start(function()
skynet.error("new foobar")
sharedata.new("foobar", { a=1, b= { "hello", "world" } })
skynet.fork(function()
skynet.sleep(200) -- sleep 2s
skynet.error("update foobar a = 2")
... | mit |
rweichler/hostageidentity | addons/RCS/lua/weapons/rcs_knife/shared.lua | 1 | 6920 | if (SERVER) then
AddCSLuaFile( "shared.lua" )
SWEP.Weight = 5
SWEP.AutoSwitchTo = false
SWEP.AutoSwitchFrom = false
SWEP.HoldType = "knife"
end
if ( CLIENT ) then
SWEP.PrintName = "Tactical Knife"
SWEP.Author = "cheesylard"
SWEP.DrawAmmo = false
SWEP.ViewModelFOV = 82
SWEP.Vi... | mit |
activebot20/activebot | 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 |
iranddos/maxtor | 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 |
imashkan/ramindev | 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 |
LeMagnesium/minetest-minetestforfun-server | mods/pipeworks/luaentity.lua | 8 | 9678 | local max_entity_id = 1000000000000 -- If you need more, there's a problem with your code
luaentity = {}
luaentity.registered_entities = {}
local filename = minetest.get_worldpath().."/luaentities"
local function read_file()
local f = io.open(filename, "r")
if f == nil then return {} end
local t = f:read("*al... | unlicense |
yimogod/boom | trunk/t-engine4/game/engines/engine/generator/map/Octopus.lua | 1 | 3717 | -- 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 |
elite-lang/oolua | unit_tests/shared_by_default/premake4.lua | 2 | 1405 | --OOLua test unit shared_by_default
local root = "../../"
local name = "shared_by_default"
create_package(name,root,"ConsoleApp")
configuration {}
files
{
"**.h",
"**.cpp",
root .. "src/*.cpp",
root .. "include/*.h",
root .. "unit_tests/test_classes/common_cppunit_headers.h",
root .. "u... | mit |
aqasaeed/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 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/dathomir/serverobjects.lua | 2 | 6848 | includeFile("dathomir/alpha_bolma.lua")
includeFile("dathomir/ancient_bull_rancor.lua")
includeFile("dathomir/ancient_reptilian_flier.lua")
includeFile("dathomir/angry_baz_nitch_avenger.lua")
includeFile("dathomir/aujante_klee.lua")
includeFile("dathomir/axkva_min.lua")
includeFile("dathomir/baritha.lua")
includeFile("... | agpl-3.0 |
henu/Urho3D | bin/Data/LuaScripts/46_RaycastVehicleDemo.lua | 11 | 17490 | -- Vehicle example.
-- This sample demonstrates:
-- - Creating a heightmap terrain with collision
-- - Constructing a physical vehicle with rigid bodies for the hull and the wheels, joined with constraints
-- - Saving and loading the variables of a script object, including node & component references
requi... | mit |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/mobile/dungeon/death_watch_bunker/death_watch_battle_droid.lua | 2 | 1116 | death_watch_battle_droid = Creature:new {
objectName = "@mob/creature_names:mand_bunker_battle_droid",
socialGroup = "death_watch",
faction = "",
level = 134,
chanceHit = 5.5,
damageMin = 795,
damageMax = 1300,
baseXp = 12612,
baseHAM = 56000,
baseHAMmax = 68000,
armor = 2,
resists = {75,75,100,60,100,25,40... | agpl-3.0 |
garoose/eecs494.p2 | dev/premake/premake/scripts/release.lua | 16 | 4584 | --
-- Prepare a new Premake release. This is still incomplete and some manual
-- work is needed to get everything packaged up. See RELEASE.txt in this
-- folder for the full checklist.
--
-- Info on using Mercurial to manage releases:
-- http://hgbook.red-bean.com/read/managing-releases-and-branchy-development.html
... | mit |
braydondavis/Nerd-Gaming-Public | resources/[no_ng_tag]/killmessages/utils/textlib.lua | 2 | 7855 | dxText = {}
dxText_mt = { __index = dxText }
local idAssign,idPrefix = 0,"c"
local g_screenX,g_screenY = guiGetScreenSize()
local visibleText = {}
------
local defaults = {
fX = 0.5,
fY = 0.5,
bRelativePosition = true,
strText = "",
bVerticalAlign = "center",
bHorizontalAlign = "center",... | mit |
LeMagnesium/minetest-minetestforfun-server | minetestforfun_game/mods/farming/coffee.lua | 12 | 3642 |
local S = farming.intllib
-- coffee
minetest.register_craftitem("farming:coffee_beans", {
description = S("Coffee Beans"),
inventory_image = "farming_coffee_beans.png",
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:coffee_1")
end,
})
... | unlicense |
ozhanf/ozhan | 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 |
excessive/obtuse-tanuki | libs/winapi/systemmetrics.lua | 2 | 3438 |
--proc/systemmetrics: system metrics API
--Written by Cosmin Apreutesei. Public Domain.
setfenv(1, require'winapi')
SM_CXSCREEN = 0
SM_CYSCREEN = 1
SM_CXVSCROLL = 2
SM_CYHSCROLL = 3
SM_CYCAPTION = 4
SM_CXBORDER = 5
SM_CYBORDER = 6
SM_CX... | mit |
nimaghorbani/ototo | plugins/pun.lua | 16 | 8809 | local command = 'pun'
local doc = '`Returns a pun.`'
local triggers = {
'^/pun[@'..bot.username..']*'
}
local puns = {
"The person who invented the door-knock won the No-bell prize.",
"I couldn't work out how to fasten my seatbelt. Then it clicked.",
"Never trust atoms; they make up everything.",
"Singing in the... | gpl-2.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/loot/items/wearables/bracelet/bracelet_r.lua | 4 | 1658 | bracelet_r = {
-- Metal Band
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/wearables/bracelet/bracelet_r.iff",
craftingValues = {},
skillMods = {},
customizationStringNames = {"/private/index_color_1","/private/index_color_2","/private/i... | agpl-3.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/forceIntimidate2.lua | 3 | 2493 | --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/dungeon/corellian_corvette/imperial/rebel_ensign.lua | 2 | 1461 | rebel_ensign = Creature:new {
objectName = "@mob/creature_names:corvette_rebel_ensign",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "rebel",
faction = "rebel",
level = 72,
chanceHit = 0.7,
damageMin = 495,
damageMax = 700,
baseXp = 6931,
baseHAM = 12000,
baseHAMmax = 15000,
armor = 1,
resists = {45,35... | agpl-3.0 |
alzaen/al-zaen | 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 |
excessive/obtuse-tanuki | libs/console.lua | 2 | 21997 | local console = {
_LICENSE = [[
The MIT License (MIT)
Copyright (c) 2014 Maciej Lopacinski
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 limita... | mit |
MikeMcShaffry/gamecode3 | Dev/Source/3rdParty/LuaPlus/Src/Modules/wxLua/Import/utils/classinfo/classinfo.lua | 1 | 1798 | -- parses a file from grep -r "DECLARE_X_CLASS" include/wx/*
-- then reads though the wxLuaWrapGtk[Msw].h file to
-- create a list of classes that DON'T have classinfo
-- it uses the s_wxXXX tags to find a list of all classes
-- that wxLua currently uses
local has_classinfo = {}
local no_classinfo = {}
local letSp =... | lgpl-2.1 |
LeMagnesium/minetest-minetestforfun-server | minetestforfun_game/mods/boats/init.lua | 7 | 8231 | --
-- Helper functions
--
boats = {}
function boats.is_water(pos)
local nn = minetest.get_node(pos).name
return minetest.get_item_group(nn, "water") ~= 0
end
function boats.get_sign(i)
if i == 0 then
return 0
else
return i / math.abs(i)
end
end
function boats.get_velocity(v, yaw, y)
local x = -math.sin(ya... | unlicense |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/defuseMinefield.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 |
githabbot/Quick-V2.7 | plugins/photoTOsticker.lua | 4 | 2563 | local lock = 1
local txt = "\n\nmaked by:@QuickGuardTEAM" --— shared by @BeatBot_Team
local function callback(extra, success, result) --— Calback Bara Load Kardn ax
if success then
local file = 'sticker/sticker.webp'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:'... | gpl-2.0 |
fantajeon/TripletNet | TripletLoss.lua | 1 | 1036 | require 'nn'
local TripletLoss, parent = torch.class('nn.TripletLoss', 'nn.Criterion')
function TripletLoss:__init()
parent.__init(self)
self.MSE = nn.MSECriterion()
self.Target = torch.Tensor()
end
function TripletLoss:updateOutput(input, target)
local mse_ap = torch.abs(input[1] - input[2])
loc... | mit |
sbouchex/domoticz | dzVents/runtime/device-adapters/switch_device.lua | 8 | 5164 | local TimedCommand = require('TimedCommand')
return {
baseType = 'device',
name = 'Switch device adapter',
matches = function (device, adapterManager)
local res = (
device.deviceType == 'Light/Switch' or
device.deviceType == 'Lighting 1' or
device.deviceType == 'Lighting 2' or
device.deviceType == ... | gpl-3.0 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/gmForceCommand.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 |
Chilastra-Reborn/Chilastra-source-code | bin/scripts/commands/deactivateQuest.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 |
mobilesolution2016/reeme | framework/resty/mongol/misc.lua | 1 | 1603 | local mod_name = (...):match ( "^(.*)%..-$" )
local ll = require ( mod_name .. ".ll" )
local num_to_le_uint = ll.num_to_le_uint
local num_to_le_int = ll.num_to_le_int
local le_uint_to_num = ll.le_uint_to_num
local le_bpeek = ll.le_bpeek
local getmetatable , setmetatable = getmetatable , setmetatable
local pairs = pa... | apache-2.0 |
hfjgjfg/persianguard58 | 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 |
alinofel/zooz11 | 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 |
LeMagnesium/minetest-minetestforfun-server | mods/plantlife_modpack/ferns/gianttreefern.lua | 8 | 10309 | -----------------------------------------------------------------------------------------------
-- Ferns - Giant Tree Fern 0.1.1
-----------------------------------------------------------------------------------------------
-- by Mossmanikin
-- License (everything): WTFPL
-- Contains code from: biome_lib
-- Looked ... | unlicense |
StephenZhuang/qdkpv2 | QDKP_V2/QDKP_V2/Code/Logging/DB.lua | 1 | 16562 | -- 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 ##
-- Database functions
-- API Documentation
-- QDKP2log_GetSession(SID)
-- QDKP2log_GetPlayer(SID,Player)
-- QDKP2log_GetLog(S... | gpl-3.0 |
zynjec/darkstar | scripts/zones/Southern_San_dOria/npcs/Nokkhi_Jinjahl.lua | 12 | 5151 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Nokkhi Jinjahl
-- Type: Travelling Merchant NPC / NPC Quiver Maker / San d'Oria 1st Place
-- !pos 23 2 -13 230
-----------------------------------
local ID = require("scripts/zones/Southern_San_dOria/IDs");
-----------------------------------
f... | gpl-3.0 |
actboy168/MoeHero | scripts/types/hero.lua | 1 | 7535 |
local jass = require 'jass.common'
local japi = require 'jass.japi'
local dbg = require 'jass.debug'
local unit = require 'types.unit'
local player = require 'ac.player'
local damage = require 'types.damage'
local slk = require 'jass.slk'
local math = math
local hero = {}
setmetatable(hero, hero)
--结构
local mt = {}
... | gpl-3.0 |
Vadavim/jsr-darkstar | scripts/zones/Dynamis-Beaucedine/mobs/Goblin_Statue.lua | 22 | 1841 | -----------------------------------
-- Area: Dynamis Beaucedine
-- MOB: Goblin Statue
-- Map Position: http://images1.wikia.nocookie.net/__cb20090312005233/ffxi/images/thumb/b/b6/Bea.jpg/375px-Bea.jpg
-----------------------------------
package.loaded["scripts/zones/Dynamis-Beaucedine/TextIDs"] = nil;
----------------... | gpl-3.0 |
Colettechan/darkstar | scripts/zones/Port_Bastok/npcs/Valeriano.lua | 17 | 1664 | -----------------------------------
-- Area: Port Bastok
-- NPC: Valeriano
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/zones/Port_Bastok/TextIDs");
-------... | gpl-3.0 |
Vadavim/jsr-darkstar | scripts/globals/items/plate_of_shrimp_sushi_+1.lua | 18 | 1606 | -----------------------------------------
-- ID: 5692
-- Item: plate_of_shrimp_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Vitality 1
-- Defense 5
-- Accuracy % 12 (unknown, assuming HQ stat)
-- Store TP 2
-- Triple Attack 1 (unknown, assuming same as NQ)
---------------------... | gpl-3.0 |
Vadavim/jsr-darkstar | scripts/zones/Lebros_Cavern/IDs.lua | 67 | 1719 | Lebros = {
text = {
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6376, -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6379, -- Obtained: <item>
GIL_OBTAINED = 6380, -- Obtained <number> gil
KEYITEM_OBTAINED = 6382, -- Obtained... | gpl-3.0 |
Vadavim/jsr-darkstar | scripts/zones/La_Theine_Plateau/npcs/Vicorpasse.lua | 14 | 2267 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Vicorpasse
-- Involved in Mission: The Rescue Drill
-- @pos -344 37 266 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems"... | gpl-3.0 |
zynjec/darkstar | scripts/zones/Chateau_dOraguille/npcs/Chalvatot.lua | 9 | 4381 | -----------------------------------
-- Area: Chateau d'Oraguille
-- NPC: Chalvatot
-- Finish Mission "The Crystal Spring"
-- Start & Finishes Quests: Her Majesty's Garden
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- !pos -105 0.1 72 233
-----------------------------------
require("scripts/globals/settings... | gpl-3.0 |
Colettechan/darkstar | scripts/globals/weaponskills/sunburst.lua | 11 | 1292 | -----------------------------------
-- Sunburst
-- Staff weapon skill
-- Skill Level: 150
-- Deals light or darkness elemental damage. Damage varies with TP.
-- Aligned with the Shadow Gorget & Aqua Gorget.
-- Aligned with the Shadow Belt & Aqua Belt.
-- Element: Light/Dark
-- Modifiers: : STR:40% MND:40%
-- 100%TP ... | gpl-3.0 |
cmaughan/imgui | zep/m3rdparty/sdl/premake/util/sdl_check_compile.lua | 2 | 11190 | -- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purp... | mit |
Vadavim/jsr-darkstar | scripts/globals/spells/baraero.lua | 1 | 1415 | -----------------------------------------
-- Spell: BARAERO
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,spel... | gpl-3.0 |
Vadavim/jsr-darkstar | scripts/globals/mobskills/Regeneration.lua | 1 | 1147 | ---------------------------------------------
-- Regeneration
--
-- Description: Adds a Regen effect.
-- Type: Enhancing
-- Utsusemi/Blink absorb: N/A
-- Range: Self
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monste... | gpl-3.0 |
Colettechan/darkstar | scripts/zones/Kazham/npcs/Bhukka_Sahbeo.lua | 15 | 1053 | -----------------------------------
-- Area: Kazham
-- NPC: Bhukka Sahbeo
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
f... | gpl-3.0 |
Colettechan/darkstar | scripts/zones/La_Theine_Plateau/npcs/Dimensional_Portal.lua | 13 | 1369 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Dimensional Portal
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/... | gpl-3.0 |
Colettechan/darkstar | scripts/zones/Port_Windurst/npcs/Kuroido-Moido.lua | 28 | 4137 | -----------------------------------
-- Area: Port Windurst
-- NPC: Kuriodo-Moido
-- Involved In Quest: Making Amends, Wonder Wands
-- Starts and Finishes: Making Amens!
-- Working 100%
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
Colettechan/darkstar | scripts/globals/items/m&p_doner_kabob.lua | 18 | 1159 | -----------------------------------------
-- ID: 5717
-- Item: M&P Doner Kabob
-- Food Effect: 5Min, All Races
-----------------------------------------
-- HP 5%
-- MP 5%
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------------... | gpl-3.0 |
Colettechan/darkstar | scripts/globals/mobskills/Oblivion_Smash.lua | 11 | 1255 | ---------------------------------------------
-- Oblivion Smash
--
-- Description: Deals damage to players within area of effect and inflicts blind, silence, bind, and weight.
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: Unknown radial
-- Notes:
---------------------------------------------
... | gpl-3.0 |
pando85/telegram-bot | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile... | gpl-2.0 |
Colettechan/darkstar | scripts/zones/Beaucedine_Glacier_[S]/npcs/Disserond_RK.lua | 13 | 1082 | -----------------------------------
-- Area: Beaucedine Glacier (S)
-- NPC: Disserond, R.K.
-- Type: Campaign Arbiter
-- @zone: 136
-- @pos 76.178 -60.763 -48.775
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier_[S]... | gpl-3.0 |
tsdfsetatata/xserver | config/server/mail.lua | 1 | 17172 | local mail = {
[270100001] = {
['ID'] = 270100001, --索引
['MailType'] = 1, --邮件类型
['Title'] = '服务器更新说明', --邮件标题
['Content'] = '亲爱的玩家:\n服务器将于2017年1月3日10:30:00进行维护更新,预计时间2小时', --邮件内容
['Sender'] = '系统', --发件人
['RewardID'] = {}, --奖励ID
['RewardNum'] = {}, --奖励数量
['time'] = '' --发送时间
},
[270200... | gpl-3.0 |
Vadavim/jsr-darkstar | scripts/zones/QuBia_Arena/bcnms/those_who_lurk_in_shadows.lua | 59 | 2394 | -----------------------------------
-- Area: Qu'Bia Arena
-- NPC: Those Who Lurk in Shadows
-- @pos -221 -24 19 206
-----------------------------------
package.loaded["scripts/zones/QuBia_Arena/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions"... | gpl-3.0 |
Colettechan/darkstar | scripts/zones/Bastok_Markets/npcs/Charging_Chocobo.lua | 17 | 1618 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Charging Chocobo
-- Standard Merchant NPC
--
-- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.