content stringlengths 1 1.05M | size int64 5 1.05M | max_stars_repo_name stringlengths 5 114 |
|---|---|---|
--[[
General -> Profiles Tab -> General & Advanced Tabs
--]]
local L = Grid2Options.L
--==============================
local GetAllProfiles, GetUnusedProfiles
do
local profiles, values = {}, {}
local function GetProfiles(showCurrent)
wipe(profiles)
wipe(values)
Grid2.db:GetProfiles(profiles)
for _,k in pa... | 4,568 | mrbandler/wow-ui |
local defaults = require'hop.defaults'
local hint = require'hop.hint'
local M = {}
M.hint = hint.hint
-- Setup user settings.
M.opts = defaults
function M.setup(opts)
-- Look up keys in user-defined table with fallback to defaults.
M.opts = setmetatable(opts or {}, {__index = defaults})
-- Insert the highligh... | 527 | rish987/hop.nvim |
registerNpc(394, {
walk_speed = 290,
run_speed = 670,
scale = 225,
r_weapon = 1036,
l_weapon = 0,
level = 112,
hp = 139,
attack = 643,
hit = 370,
def = 802,
res = 246,
avo... | 1,076 | RavenX8/osirosenew |
--[[
/////// //////////////////
/////// PROJECT: MTA iLife - German Fun Reallife Gamemode
/////// VERSION: 1.7.2
/////// DEVELOPERS: See DEVELOPERS.md in the top folder
/////// LICENSE: See LICENSE.md in the top folder
/////// /////////////////
]]
CInfoPickupManager = inherit(cSingleton)
function CInfoPickup... | 828 | Noneatme/iLife-SA |
rifle_acid_beam = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "Acid beam",
directObjectTemplate = "object/weapon/ranged/rifle/rifle_acid_beam.iff",
craftingValues = {
{"mindamage",60,110,0},
{"maxdamage",170,360,0},
{"attackspeed",12.7,7.4,0},
{"woundchance",11,25,0},
{"hitpoints",750,750,0... | 937 | V-Fib/FlurryClone |
ESX = nil
Citizen.CreateThread(function()
while true do
Wait(5)
if ESX ~= nil then
else
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
end
end
end)
local Keys = {
["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = ... | 12,118 | Proof93/Zero2HeroRP_ESX |
local utils = require("rust-tools.utils.utils")
local util = vim.lsp.util
local config = require("rust-tools.config")
local M = {}
local function get_params()
return vim.lsp.util.make_position_params()
end
M._state = { winnr = nil, commands = nil }
local set_keymap_opt = { noremap = true, silent = true }
-- run t... | 3,734 | zmtq05/rust-tools.nvim |
local Tunnel = module("vrp","lib/Tunnel")
local Proxy = module("vrp","lib/Proxy")
vRP = Proxy.getInterface("vRP")
--[ ARRAY ]------------------------------------------------------------------------------------------------------------------------------
local valores = {
{ item = "cafe", quantidade = 1, compra = 8 },
... | 2,503 | brazucas/fivem-data |
if mods['Krastorio2'] then
data:extend({
-- -- Basic science
{
type = "bool-setting",
name = "k2-automation-science-pack",
default_value = true,
setting_type = "startup",
order = "AA-AA-S1"
},
-- K2 extended science packs
{
type = "bool-settin... | 1,061 | RedRafe/science-not-invited |
--------------------------------------------------------------------------------
-- config.lua
--------------------------------------------------------------------------------
local aspectRatio = display.pixelHeight / display.pixelWidth
application = {
content = {
width = aspectRatio > 1.5 and 800 or math.ceil(120... | 487 | GymbylCoding/CBEffects |
--[[ Copyright (C) 2018 Google Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope th... | 3,962 | xuyanbo03/lab |
#!/usr/bin/env lua
return { -- MySQL
connect = {
name = 'MySQL-test',
user = 'luadbi',
pass = 'testing12345!!!',
},
encoding_test = {
{'unsigned', 12435212 },
{'unsigned', 463769 },
{'signed', 8574678 },
{'signed', -12435212 },
{'unsigned', 0 },
{'s... | 835 | moteus/lua-odbc-dbi |
---------------------------------------------------------------------------------------------------
-- User story: https://github.com/smartdevicelink/sdl_requirements/issues/2
-- Use case: https://github.com/smartdevicelink/sdl_requirements/blob/master/detailed_docs/current_module_status_data.md
-- Item: Use Case 1: Ma... | 1,872 | ychernysheva/sdl_atf_test_scripts |
--[[
desc:
* Container, be responsible for saving object.
* CAREFULLY: Container isn't object's upper, it doesn't manage object.
author: Musoucrow
since: 2018-3-11
alter: 2019-8-19
]]--
---@param start int @defalut=1
local function _RefreshTransfer(self, start)
start = start or 1
for n=start, #self._transf... | 3,848 | LeomRonald/DFQ-Original |
local assert = assert
do --- local
local a, b, c
a, b, c = 0, 1
assert(a == 0)
assert(b == 1)
assert(c == nil)
a, b = a+1, b+1, a+b
assert(a == 1)
assert(b == 2)
a, b, c = 0
assert(a == 0)
assert(b == nil)
assert(c == nil)
end
do --- global !private_G
a, b, c = 0, 1
assert(a == 0)
assert... | 724 | DemiMarie/LuaJIT-test-cleanup |
-- Copyright © 2016 Silv3r <silv3r@proshine-bot.com>
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the LICENSE file for more details.
name = "Leveling: Route 20 (near Cinnabar)"
author... | 1,430 | liquid8796/ProScript |
local tbTable = GameMain:GetMod("_SkillScript")
local tbSkill = tbTable:GetSkill("ZSZY")
function tbSkill:Cast(skilldef, from)
end
function tbSkill:Apply(skilldef, key, from)
end
function tbSkill:FightBodyApply(skilldef, fightbody, from)
if fightbody and fightbody.Npc then
local npc = fightbody.N... | 574 | xArshy/Skycoveringworld |
--- ATLAS PARK
local spawnOnce = false
-- Called after MOTD for now.
function player_connected(id)
--Id is player entity Id
printDebug('player_connected Id: ' .. tostring(id))
Tasks.UpdateTasksForZone('Atlas Park')
Contacts.SpawnContacts('Atlas Park')
if spawnOnce == false then
--spinner... | 2,189 | cat4hurricane/Segs |
--[[
- util.lua
- Handy module containing various functions for game development in lua,
particularly with Love2D.
- Authored by Thomas Smallridge (sundowns)
- https://github.com/sundowns/lua-utils
MIT LICENSE
Copyright (c) 2011 Enrique García Cota
Permission is hereby granted, free of charge, to a... | 6,953 | sundowns/grim-gamers |
-- Copyright 2008 Yanira <forum-2008@email.de>
-- Licensed to the public under the Apache License 2.0.
require("nixio.fs")
m = Map("hd-idle", translate("HDD Idle"),
translate("HDD Idle is a utility program for spinning-down external " ..
"disks after a period of idle time."))
s = m:section(TypedSection, "hd-idle"... | 868 | spiccinini/luci |
shaders = require("core.shaders")
BaseEntity = require("entities.core.baseentity")
NPCBullet = require("entities.npcbullet")
Goomba = require("entities.core.goomba")
Gorilla = class("Gorilla", Goomba)
Gorilla.spritesheet = SpriteSheet:new("sprites/gorilla.png", 32, 32)
function Gorilla:initialize... | 1,830 | qwook/dpsht |
--[[----------------------------------------------------------------------------
Copyright (c) 2016-present, Facebook, Inc. All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found... | 1,695 | wanyenlo/multipathnet |
-- @start
-- @namespace com.github.mounthuaguo.mongkeyking.lua
-- @version 0.1
-- @name Base64 Encode
-- @description Base64 encode and decode
-- @author heramerom
-- @type action
-- @action Copy With Base64 Encode
-- @action Copy With Base64 Decode
-- @action Replace With Base64... | 1,986 | Mount-Huaguo/MonkeyKingScripts |
local geezifylua = require('geezifylua')
local test_data = require('test_case')
describe('arabify', function()
it('should convert every geez number in the test data to its equivalent arab number', function()
for i,v in ipairs(test_data) do
print(v[2])
... | 412 | yilkalargaw/geezify-lua |
include("shared.lua")
function ENT:Draw()
local ret = hook.Call("onDrawSpawnedWeapon", nil, self)
if ret ~= nil then return end
self:DrawModel()
if self.dt.amount == 1 then return end
local Pos = self:GetPos()
local Ang = self:GetAngles()
local text = FrenchRP.getPhrase("amount") .. self.... | 2,218 | Sxcret/FrenchRP |
WireLib = WireLib or {}
local pairs = pairs
local setmetatable = setmetatable
local rawget = rawget
local next = next
local IsValid = IsValid
local LocalPlayer = LocalPlayer
local Entity = Entity
local string = string
local hook = hook
-- extra table functions
-- Returns a noniterable version of tbl. So indexing st... | 24,256 | Python1320/wire |
-- https://github.com/windwp/nvim-autopairs
require("nvim-autopairs").setup()
| 78 | brucelee07/nvim-config |
--[[
# Copyright 2001-2014 Cisco Systems, Inc. and/or its affiliates. All rights
# reserved.
#
# This file contains proprietary Detector Content created by Cisco Systems,
# Inc. or its affiliates ("Cisco") and is distributed under the GNU General
# Public License, v2 (the "GPL"). This file may also include Detector Co... | 4,954 | Snur/proxySSL |
bristleback_bristleback_lua = class({})
LinkLuaModifier( "modifier_bristleback_bristleback_lua", "lua_abilities/bristleback_bristleback_lua/modifier_bristleback_bristleback_lua", LUA_MODIFIER_MOTION_NONE )
--------------------------------------------------------------------------------
-- Passive Modifier
function bri... | 422 | GIANTCRAB/dota-2-lua-abilities |
function onStepIn(cid, item, position, fromPosition)
level = 150
if getPlayerLevel(cid) < level then
doTeleportThing(cid, fromPosition, true)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_RED)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Somente level " .. level .. " ou mais podem passar aqui.")
... | 384 | Renanziinz/Otziinz |
local K, C, L, _ = select(2, ...):unpack()
if C["Loot"].rolllootframe ~= true then return end
local unpack = unpack
local pairs = pairs
local time = time
local CreateFrame, UIParent = CreateFrame, UIParent
local IsShiftKeyDown = IsShiftKeyDown
local GetLootRollTimeLeft = GetLootRollTimeLeft
-- Based on teksLoot(by T... | 13,310 | mopd/KkthnxUI_WotLK |
identitycontrols = {};
function setCurrent(name)
local idctrl = identitycontrols[name];
if idctrl then
-- Deactivate all identities
for k, v in pairs(identitycontrols) do
v.setCurrent(false);
end
-- Set active
idctrl.setCurrent(true);
end
end
function addIdentity(name, isgm)
loca... | 1,047 | sweetrpg/fantasy-grounds-genesys-ruleset |
function TelekeneticBlobGetMarkedTarget(caster)
local ability = caster:FindAbilityByName("telekenetic_blob_mark_target")
if ability ~= nil then
return ability.lastCastTaget
end
return nil
end
function TelekeneticBlobFlySetup(modifier, fixedSpeed)
if modifier:ApplyHorizontalMotionController() == false or mod... | 4,240 | GuChenGuYing/DOTA2-AI-Fun |
-- 微信验证
-- 每个需要用到的服务都需要在启动的时候调wx.init
--
local http = require "bw.web.http_helper"
local sha256 = require "bw.auth.sha256"
local json = require "cjson.safe"
local map = {} -- appid -> access
local function request_access_token(appid, secret)
assert(appid and secret)
local ret, resp = http.get(... | 2,717 | xiaozia/bewater |
require("bin.npc")
require("bin.gstate")
require("bin.battlestate")
lvgp = lvgp or love.graphics
local val = 0
platform = {}
volume = 1
focusvar = love.window.hasMouseFocus()
scrw, scrh = lvgp.getDimensions()
function love.load()
minimx = 736
exitx = 768
guiRender = true
isPaused = false
Pausab... | 6,845 | Aggrotadpole/brack |
#! /usr/bin/env lua
--
-- libtest-reflect-var.lua
-- Copyright (C) 2015 Adrian Perez <aperez@igalia.com>
--
-- Distributed under terms of the MIT license.
--
local libtest = require("eol").load("libtest")
assert.Not.Nil(libtest)
function check_variable(variable, expected_name, expected_readonly,
e... | 879 | aperezdc/eris |
class "SkeletonAnimation"
function SkeletonAnimation:SkeletonAnimation(...)
local arg = {...}
for k,v in pairs(arg) do
if type(v) == "table" then
if v.__ptr ~= nil then
arg[k] = v.__ptr
end
end
end
if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
self.__ptr = Polycode.SkeletonAnimation(unpac... | 1,493 | my-digital-decay/Polycode |
--[[ BattleguardSartura.lua
********************************
* *
* The LUA++ Scripting Project *
* *
********************************
This software is provided as free and open source by the
sta... | 2,958 | 499453466/Lua-Other |
---------------------------------------------
-- Slowga
---------------------------------------------
require("scripts/globals/monstertpmoves")
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/msg")
---------------------------------------------
function onAbilityCheck(play... | 757 | PaulAnthonyReitz/topaz |
-------------
--- Armor ---
-------------
-- Ver 1.0 --
-- Fire-Forged Armor --
armor:register_armor("draconis:helmet_fire_draconic_steel", {
description = "Fire-forged Draconic Steel Helmet",
inventory_image = "draconis_inv_helmet_fire_draconic_steel.png",
groups = {armor_head=1, armor_heal=18,... | 3,675 | ronoaldo/draconis |
object_building_general_ord_cantina = object_building_general_shared_ord_cantina:new {
}
ObjectTemplates:addTemplate(object_building_general_ord_cantina, "object/building/general/ord_cantina.iff")
| 197 | V-Fib/FlurryClone |
-- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.tools.webadmin")
local fs = require "nixio.fs"
local util = require "nixio.util"
local tp = require "luci.template.parser"
local block = io.popen("block info", "r")
local ln, dev, devices = n... | 8,343 | WYC-2020/luci |
--
-- YATM Brewery
--
local mod = foundation.new_module("yatm_brewery", "0.2.0")
mod:require("registries.lua")
mod:require("api.lua")
mod:require("nodes.lua")
mod:require("items.lua")
mod:require("fluids.lua")
mod:require("tests.lua")
| 239 | IceDragon200/mt-yatm |
-- lightsout v0.0.0
--
--
-- llllllll.co/t/lightsout
--
--
--
-- ▼ instructions below ▼
grid__=include("lightsout/lib/ggrid")
MusicUtil = require "musicutil"
lattice=require("lattice")
engine.name="PolyPerc"
function init()
grid_=grid__:new()
local redrawer=metro.init()
redrawer.time=1/15
redrawer.count... | 1,944 | schollz/lightsout |
local t = require('luatest')
local http_lib = require('http.lib')
local g = t.group()
g.test_template_1 = function()
t.assert_equals(http_lib.template("<% for i = 1, cnt do %> <%= abc %> <% end %>",
{abc = '1 <3>&" ', cnt = 3}),
' 1 <3>&" 1 ... | 1,598 | a1div0/http |
--[[
This is a guide for how to use this game as a starting point to create your own RPGs or other games.
This entire system uses one shared storage key. Go to 'Window' -> 'Shared Storage', and create a key or make one of your
existing keys associated with this game. Find 'APISharedKey' in Project Content, and c... | 5,480 | Core-Team-META/Corehaven |
-- icon set definition format
--
-- indexed by unique identifier, referenced with icon_ prefix
-- search path is prefixed icons/setname (same as lua file)
--
-- source to the synthesizers and builtin shaders are in icon.lua
--
-- 1. static image:
-- ["myicon"] = {
-- [24] = "myicon_24px.png",
-- [16] = "myicon_16px.png... | 1,335 | letoram/durden |
workspace "LiquidEngine"
basedir "../workspace/"
language "C++"
cppdialect "C++17"
architecture "x86_64"
-- Set editor as starting project
startproject "Liquidator"
setupLibraryDirectories{}
setupPlatformDefines{}
linkPlatformLibraries{}
setupToolsetOptions{}
incl... | 1,012 | GasimGasimzada/liquid-engine |
-----------------------------------
-- Area: The Garden of Ru'Hmet
-- Mob: Ix'aern DRG
-----------------------------------
local ID = require("scripts/zones/The_Garden_of_RuHmet/IDs")
-----------------------------------
function onMobFight(mob, target)
-- Spawn the pets if they are despawned
-- TODO: summon a... | 1,497 | MatthewJHBerry/topaz |
--[[
This file has been modified by
Andreas Pittrich <andreas.pittrich@web.de>
in behalf of the german pirate party (Piratenpartei)
www.piratenpartei.de
Original Disclaimer:
-------
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the... | 1,750 | alxhh/piratenluci |
return {'amnesie','amnestie','amnestiemaatregel','amnestieregeling','amnestieverlening','amnestiewet','amnioscoop','amnioscopie','amnestieen','amnioscopen','amnioscopieen'} | 172 | terrabythia/alfabeter |
blocFunctions = {}
function function_binding(toBind)
for k, v in pairs(toBind) do
blocFunctions[k] = function(position)
local newObjs = {};
for i in string.gmatch(v, "%S+") do
table.insert(newObjs, Engine.Scene:createGameObject(i)({position = position}));
... | 2,748 | Alaznist/Examples |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 2