content stringlengths 5 1.05M |
|---|
local lint = require "lint"
lint.linters.eslint.cmd = "/Users/sangdang/.nvm/versions/node/v14.15.2/bin/eslint_d"
lint.linters_by_ft = {
javascript = {"eslint"},
javascriptreact = {"eslint"},
typescript = {"eslint"},
typescriptreact = {"eslint"},
}
vim.cmd([[au BufEnter *.js lua require('lint').try_lint() ]])... |
Config = Config or {}
Config.AllowedVehicles = {
[1] = {model = "taxi", label = "Standard Cab"},
}
Config.Meter = {
["defaultPrice"] = 1.60
}
Config.Location = vector4(909.5, -177.35, 74.22, 238.5)
Config.NPCLocations = {
TakeLocations = {
[1] = vector4(257.61, -380.57, 44.71, 340.5),
[2... |
-- Example usage
local console = require( "console" )
function love.load()
love.window.setMode( 1280, 720 )
love.window.setTitle( "LÖVE2D Console Test" )
love.graphics.setBackgroundColor( 102, 102, 102 )
console:init()
console:print( "This is the first line." )
console:print( "Text wrap test. Tex... |
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local Sticky = LibStub("LibSimpleSticky-1.0")
--Cache global variables
--Lua functions
local _G = _G
local type, unpack, pairs, error = type, unpack, pairs, error
local format, split, find = string.format, string.sp... |
return {
logo = {84, 4, 68, 8},
atom = {118, 50, 34, 6}, -- x, y, radius, delta
leave = {4, 4, 48, 8},
bpm = {184, 4, 48, 8},
fader = {92, 88, 52, 8},
left = {
select = {80, 88, 8, 8},
vol = {4, 4 + 12 * 2, 40, 8},
snd = {4, 4 + 12 * 3, 40, 8},
num = {4, 4 + 12 * ... |
do
local addon, namespace = ...
_G[addon] = _G[addon] or {}
setfenv(1, setmetatable(namespace, { __index = _G }))
end
local aliases = { --redundant aliases added by WoW
-- Table library
foreach = table.foreach,
foreachi = table.foreachi,
getn = table.getn,
tinsert = table.insert,
tremove = table.remove,
sort... |
require("isolater/common/commonController");
local MessageScene = require("hall/message/messageScene");
MessageController = class(CommonController);
MessageController.s_cmds =
{
requestGoBack = 1,
requestGetMsgInfo = 2,
requestCloseMsg = 3,
requestReadMsg = 4,
... |
-- ===================== Cafeteria ===============================
exports["rz-polytarget"]:AddBoxZone("prison_fridge", vector3(1784.64, 2564.84, 46), 1.65, 1, {
name = "prison_fridge",
heading = 267,
debugPoly = false,
minZ = 44.5,
maxZ = 47.1
})
exports["rz-polytarget"]:AddBoxZone("sandwich_table... |
local ffi = require("ffi")
require("lj2zydis.ffi.CommonTypes")
ffi.cdef[[
/**
* @brief Defines the `ZydisMnemonic` datatype.
*/
typedef ZydisU16 ZydisMnemonic;
/**
* @brief Values that represent `ZydisMnemonic` elements.
*/
enum ZydisMnemonics
{
ZYDIS_MNEMONIC_INVALID,
ZYDIS_MNEMONIC_AAA,
ZYDIS_M... |
-- coolie hat radio script
-- turn in frequency using a coolie hat
-- -- -- 8< -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
local chrs_flip_button = 15
local chrs_change_button = 14
local chrs_coolie_head_up = 16
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- >8 -- -- --
-- define the complete coolie hat
local chrs_coo... |
object_tangible_collection_col_gcw_city_imp_2 = object_tangible_collection_shared_col_gcw_city_imp_2:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_col_gcw_city_imp_2, "object/tangible/collection/col_gcw_city_imp_2.iff") |
require("thetto").setup_store("file/mru")
vim.api.nvim_set_hl(0, "ThettoColorLabelLua", { bg = "#7098e6" })
vim.api.nvim_set_hl(0, "ThettoColorLabelVim", { bg = "#33aa77" })
vim.api.nvim_set_hl(0, "ThettoColorLabelGo", { bg = "#70ffe6" })
vim.api.nvim_set_hl(0, "ThettoColorLabelPythonBlue", { bg = "#3333dd" })
vim.api... |
#!/usr/bin/env lua
-- MoonFLTK example: table-spreadsheet.lua
--
-- Derived from the FLTK examples/table-spreadsheet.cxx example (http://www.fltk.org)
--
fl = require("moonfltk")
MAX_COLS = 10
MAX_ROWS = 10
function Spreadsheet(X,Y,W,H,L)
local self = fl.table_sub(X,Y,W,H,L)
local info = { self = self } -- 'cl... |
--
-- Access to system information provided by the Linux /proc pseudo-file system
--
local procdata = {}
local unistd = require("posix.unistd")
local lfs = require("lfs")
--
-- Platform Information
--
-- OS, release, gcc version
local plat_file = "/proc/version"
local plat_patt = "([^%s]+)%s+version%s+([^%s]+)"
loca... |
AddCSLuaFile()
AddCSLuaFile("sh_sounds.lua")
include("sh_sounds.lua")
if CLIENT then
SWEP.DrawCrosshair = false
SWEP.PrintName = "PP-2000"
SWEP.CSMuzzleFlashes = true
SWEP.ViewModelMovementScale = 1.15
SWEP.IconLetter = "x"
killicon.AddFont("cw_mp5", "CW_KillIcons", SWEP.IconLetter, Color(255, 80, 0, 150))
... |
object_ship_tiedefender = object_ship_shared_tiedefender:new {
}
ObjectTemplates:addTemplate(object_ship_tiedefender, "object/ship/tiedefender.iff")
|
local settingModalOpen = false
RegisterCommand('ui-settings', function()
-- Toggle state of modal with command
settingModalOpen = not settingModalOpen
SendReactMessage('setSettingsVisible', settingModalOpen)
end)
RegisterNUICallback('settingsModalClosed', function(_, cb)
settingModalOpen = false
cb({})
end)... |
local walk_button = modules.game_luniabot.walkButton;
function hasEffect(tile, effect)
for i, fx in ipairs(tile:getEffects()) do
if fx:getId() == effect then
return true
end
end
return false
end
macro(500, "Collect essences", function()
for _, tile in pairs(g_map.getTiles(posz())) d... |
require 'nn'
require 'inn'
--require 'cudnn'
require 'nngraph'
require 'optim'
require 'image'
require 'loadcaffe'
require 'cifar.torch/provider'
local c = require 'trepl.colorize'
require 'KLDCriterion'
require 'GaussianCriterion'
require 'Sampler'
latent_size = 256
-- setting
opt = lapp[[
--model ... |
--Settings--
local Tunnel = module("vrp", "lib/Tunnel")
local Proxy = module("vrp", "lib/Proxy")
vRP = Proxy.getInterface("vRP")
vRPclient = Tunnel.getInterface("vRP","vRP_slots")
RegisterServerEvent('vrp_slotmachine:server:1')
AddEventHandler('vrp_slotmachine:server:1', function(amount,a,b,c)
local sourc... |
function momoTweak.require.ExtendedDataBelt()
momoTweak.extended.belt = {}
momoTweak.extended.belt.map = {}
momoTweak.extended.belt.map.a = "underground-belt"
momoTweak.extended.belt.map.purple = "turbo-underground-belt"
momoTweak.extended.belt.map.green = "ultimate-underground-belt"
data:extend({{
type="item... |
StartScript = StartScript or {}
-- requires table.lua
-- requires string.lua
-- opts:
-- mapName (optional, default: Game.mapName)
-- game (optional, default: { name = Game.gameName, version = Game.gameVersion})
-- isHost (optional, default: true)
-- hostIP (optional if isHost, engine default: 127.0.0.1)
-- hostPort (... |
return {'oehoe','oehlers','oehoes','oehoetje'} |
function getModule(gui)
local TreeView = gui.internal.class(gui.widgets.Base)
function TreeView:init(params)
self.type = "TreeView"
self.position = {0, 0}
self.width = 100
self.height = 20
self.multiSelect = true -- if this is false self.selected will still be a table
... |
-- import
local UIWidgetModule = require 'candy.ui.light.UIWidget'
local UIWidget = UIWidgetModule.UIWidget
local UIImageRenderer = require 'candy.ui.light.renderers.UIImageRenderer'
local EntityModule = require 'candy.Entity'
---@class UIImage : UIWidget
local UIImage = CLASS: UIImage ( UIWidget )
:MODEL {
Field "... |
local maphandler = require(engine.path .. 'libs.STI')
local map = {}
map.currentmap = nil
map.currentmapname = nil
function map.loadmap(mapname)
if pcall(function() map.currentmap = maphandler.new(game.path .. "maps/" .. mapname) end) then
map.currentmapname = mapname
engine.console.success("Loaded map '" .. map... |
-- This file was generated using Luraph Obfuscator v13.2.1
return (function(V,re,Me,R,ye,D,ke,Pe,b,Je,E,Xe,Ue,Y,de,O,ve,fe,T,ne,s,t,A,w,h,ge,ae,Ce,Z,m,I,We,...)local d,J=T,h;local k=((J and J()or O));local g,U=V,s;local e,K,o=Y,I,(Z or t);local P,C,f,v=D,R,A,(b[E]);local W=m;local i,N,q=w,w,(w);local r,X,M=b[Je],ke,(b... |
function ShadowmoonDarkweaver_OnEnterCombat(Unit,Event)
Unit:RegisterEvent("ShadowmoonDarkweaver_Immolate", 4000, 0)
Unit:RegisterEvent("ShadowmoonDarkweaver_NetherInfusion", 35000, 3)
Unit:RegisterEvent("ShadowmoonDarkweaver_ShadowBolt", 2500, 0)
Unit:RegisterEvent("ShadowmoonDarkweaver_Shadowfury", 9000, 0)
end
... |
-- // RE-DEFINITIONS //
local clock = os.clock
-- // CLASSES //
local ScheduledThread
local function count(node)
local amount = 0
while node do
amount += 1
node = node.next
end
return amount
end
local function __tostring(self)
local scheduledThreads = count(self._scheduled)
local timedThreads = #self._tim... |
giant_spined_snake = Creature:new {
objectName = "@mob/creature_names:giant_spined_snake",
socialGroup = "spine_snake",
faction = "",
level = 22,
chanceHit = 0.34,
damageMin = 240,
damageMax = 250,
baseXp = 2219,
baseHAM = 4100,
baseHAMmax = 5000,
armor = 0,
resists = {10,10,150,150,150,-1,-1,-1,-1},
meatT... |
#! /usr/bin/env lua
local oldprint = print
_G.print = function (...)
oldprint (...)
io.stdout:flush ()
end
local Arguments = require "argparse"
local Config = require "ardoises.config"
local Gettime = require "socket".gettime
local Http = require "ardoises.jsonhttp.socket-redis"
local Json = requir... |
local Builder = require('builder.builder')
local Event = require('event')
local Util = require('util')
local commands = _G.commands
local fs = _G.fs
local os = _G.os
local read = _G.read
function Builder:begin()
local direction = 1
local last = #self.schematic.blocks
local thr... |
local w3x2lni = require 'compiler.w3x2lni.init'
local stormlib = require 'ffi.stormlib'
local storm = require 'virtual_storm'
local root = fs.ydwe_path()
local ignore = {}
for _, name in ipairs {'.git', '.svn', '.vscode', '.gitignore'} do
ignore[name] = true
end
local function is_lni(path)
if path:... |
data:extend({
{
type = "technology",
name = "ferry_boats",
icon = "__cargo-ships__/graphics/icons/boat.png",
icon_size = 64,
icon_mipmaps = 1,
effects =
{
{
type = "unlock-recipe",
recipe = "ferry-boat"
},
},
prerequisites = { "vehicle-wagons",
"water_transp... |
local Breaks = GetSelf()
dofile(LockOn_Options.script_path.."command_defs.lua")
dofile(LockOn_Options.script_path.."Systems/electric_system_api.lua")
-- ATTENTION: 空气刹车暂时不工作
local update_time_step = 0.02 --每秒50次刷新
make_default_activity(update_time_step)
local sensor_data = get_base_data()
local fmt = '%.2f'
local... |
local array = require('array')
local ArrayOfTests = test.declare('ArrayOfTests', 'array')
function ArrayOfTests.of_onNoValues()
local result = array.of()
test.isEqual({}, result)
end
function ArrayOfTests.of_onSimpleValues()
local result = array.of('A', 'B')
test.isEqual({ 'A', 'B' }, result)
end
function Ar... |
local drawableNinePatch = require("structs.drawable_nine_patch")
local drawableSprite = require("structs.drawable_sprite")
local switchGate = {}
switchGate.name = "MaxHelpingHand/FlagSwitchGate"
switchGate.depth = 0
switchGate.nodeLimits = {1, 1}
switchGate.nodeLineRenderType = "line"
switchGate.minimumSize = {16, 16... |
local mod = DBM:NewMod(1818, "DBM-Party-Legion", 11, 860)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 17440 $"):sub(12, -3))
mod:SetCreatureID(114252)
mod:SetEncounterID(1959)
mod:SetZone()
--mod:SetUsedIcons(1)
--mod:SetHotfixNoticeRev(14922)
--mod.respawnTime = 30
mod.noNormal = tru... |
local L = select(2, ...).L('ruRU')
L['ALT key'] = ALT_KEY
L['ALT + CTRL key'] = ALT_KEY_TEXT .. ' + ' .. CTRL_KEY
L['ALT + SHIFT key'] = ALT_KEY_TEXT .. ' + ' .. SHIFT_KEY
-- config
-- L['Drag items into the window below to add more.'] = '' -- MISSING TRANSLATION
-- L['Items blacklisted from potentially being process... |
whale = {}
function whale.load()
whale.isHurt = false
whale.hurtRemaining = 0
whale.x = 400
whale.y = 300
whale.dir = 0
whale.speed = 50
whale.hunger = 100
whale.health = 100
local whale_spr = love.graphics.newImage("assets/textures/whale.png")
whale_spr:setFilter("nearest", "nearest")
w... |
return {
{
time = 5
},
{
time = 6
},
{
time = 7
},
{
time = 8
},
{
time = 9
},
{
time = 10
},
{
time = 11
},
{
time = 12
},
{
time = 13
},
{
time = 15
},
init_effect = "",
name = "弱点侦测",
time = 5,
color = "yellow",
picture = "",
desc = "受到伤害提高20%",
stack = 1,
id = 5010,
... |
require 'ffxi.targets';
local actions = require('actions');
local packets = require('packets');
local config = require('config');
local party = require('party');
local pgen = require('pgen');
local magic = require('magic');
local buffs = require('behaviors/buffs');
local subjob = require('subjob');
local jblm = requi... |
-- color based on screen name
function ScreenColor(screen)
local colors = {
["ScreenSelectStyle"] = ScreenColors.Style,
["ScreenSelectPlayMode"] = ScreenColors.PlayMode,
["ScreenSelectMusic"] = ScreenColors.Music,
["ScreenSelectCourse"] = ScreenColors.C... |
---
-- @author wesen
-- @copyright 2019 wesen <wesen-ac@web.de>
-- @release 0.1
-- @license MIT
--
---
-- Base class for client outputs.
--
-- @type BaseClientOutput
--
local BaseClientOutput = {}
---
-- The configuration of this BaseClientOutput.
--
-- @tfield ClientOutputConfiguration configuration
--
BaseClientOu... |
--[[ This function returns a table of core extensions and the versions they were made core in.
The table is indexed by extension name. Each entry contains:
* name: The name of the extension. For redundancy.
* version: The version number (as a string) that it was made core in.
This list must be manually update... |
-- ===========================================
-- Item Cooldown Display (Version 1.0)
-- Author : Eroica (eroicacmcs@gmail.com)
-- Date : 2017.2.20
-- ===========================================
--
-- Usage:
-- 1. Place this script to ./scripts/ folder
-- 2. Navigate in menu : "Awareness" -> "Item Cooldown Display" (O... |
return {
id = "ZHIHUIMIAO1",
mode = 2,
fadein = 1.5,
once = true,
scripts = {
{
bgName = "bg_story_task",
say = "————!~~~",
effects = {
{
active = true,
name = "miaoMove"
}
},
typewriter = {
speed = 0.05,
speedUp = 0.01
}
},
{
actor = 312010,
side = 2,
bgN... |
-- Fannkuch-redux benchmark from benchmarks game
-- https://benchmarksgame-team.pages.debian.net/benchmarksgame/description/fannkuchredux.html
--
-- Based on the C version found at:
-- https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/fannkuchredux-gcc-1.html
--
-- Code by Hugo Gualandi, translated to... |
local debug_text_len= 0
local debug_text_current= 0
local debug_text_time= 0
local debug_time_per_attrib= 0
function debug_text_start_on(self)
debug_text_len= #self:GetText()
debug_text_current= 0
debug_text_time= THEME:GetMetric("ScreenGameplay", "GiveUpSeconds") / debug_text_len
self:stoptweening():ClearAttribut... |
function onCreate()
setProperty('dad.x',0)
setProperty('dad.y',-350)
end |
local set = vim.opt
set.expandtab = true
set.smarttab = true
set.shiftwidth = 4
set.tabstop = 4
set.hlsearch = false
set.incsearch = false
set.ignorecase = true
set.smartcase = true
set.splitbelow = true
set.splitright = true
set.fileencoding = 'utf-8'
set.termguicolors = true
set.number = true
set.hidden = true
set.b... |
local M = {}
local h = require("helper")
function M.config()
h.map("n", "<Leader>]", "<cmd>lua vim.lsp.buf.definition()<CR>")
h.map("n", "<Leader>z", "<cmd>lua vim.lsp.buf.formatting()<CR>")
h.map("x", "<Leader>z", "<cmd>lua vim.lsp.buf.formatting()<CR>")
h.map("n", "<Leader>r", "<cmd>lua vim.lsp.buf.r... |
return
{
["id"]=31001,
["name"]="蜂巢玩法",
["groupName"]="开放世界玩法",
["playStartAnimation"]=false,
["fadeIn"]=true,
["sceneName"]="Test_Nier_04.unity",
["sceneFile"]="Assets/Scenes/Test_Nier_04.unity",
["soundEventName"]="",
["desc"]="",
["cameraEffect"]={
["templateId"]=0,
["appoint"]=false,
["center"]=Fixe... |
--- Database Configuration
-- The following configuration will only be used if you have installed gSQL (https://github.com/Gabyfle/gSQL/releases).
-- Otherwise, SQLite is used (so gSQL is not a necessary dependency).
guthlevelsystem.DatabaseDriver = "sqlite" -- either "sqlite", "mysqloo" or "tmysql"
... |
local player = {}
local players = {}
function player.new(name, x, y, inv)
if not inv then
inv = inventory.fill(10, 5)
end
players[name] = {x=x, y=y, inv=inv, vx=0, vy=0, onGround=false, crafting={["in"]=inventory.fill(2, 2, false, 100, 500), out=inventory.fill(2, 2, true, 300, 500)}}
end
function player.move(nam... |
-- This loads the files in the engine, gearbox, fuel, and gun folders!
-- Go edit those files instead of this one.
AddCSLuaFile()
local GunClasses = {}
local GunTable = {}
local MobilityTable = {}
local FuelTankTable = {}
-- setup base classes
local gun_base = {
ent = "acf_gun",
type = "Guns"
}
local engine_base... |
-- Automatically generated from garcelloghosty_assets.xml
return Sprite (
love.graphics.newImage("images/vsGarcello/garcelloghosty_assets.png"),
{
{x = 5624, y = 2812, width = 700, height = 700, offsetX = 0, offsetY = -80, offsetWidth = 800, offsetHeight = 800}, -- 1: garcello Sing Note DOWN0000
{x = 7030, ... |
--[[
Origin: V_o
Maxs: Vector(128, 64, 128)
Min: Vector(-128,-64, 0)
local v1 = LocalToWorld(Vector(-128,-64, 0), Angle(0,90, 0), Vector(-5090, -10125, 71), Angle(0,90, 0))
local v2 = LocalToWorld(Vector(128, 64, 128), a_o, Vector(-5090, -10125, 71), a_o)
ents.FindInBox(, Vector(-5090, -10125, 71))
]]
func... |
return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 100,
height = 100,
tilewidth = 32,
tileheight = 32,
properties = {},
tilesets = {
{
name = "tilemap2",
firstgid = 1,
tilewidth = 32,
tileheight = 32,
spacing = 0,
margin = 0,
... |
-- Integration module
-- Addon: Item Saver
-- Author: ingeniousclown, Randactyl
-- Link: http://www.esoui.com/downloads/info300-ItemSaver.html#info
ItemSaver = {}
function ItemSaver.isItemSaved(bagId, slotIndex)
local isItemSaverEnabled, isItemSaved = pcall(ItemSaver_IsItemSaved, bagId, slotIndex)
if (not ... |
local list = require 'ltrie.list'
local fun = require 'ltrie.fun'
local ast = require 'luma.read.ast'
local builtins_factory = require 'luma.compile.builtins'
local gen = nil
local builtins = nil
local macros = {}
local function concat(iter, sep)
lo... |
module('luatype', package.seeall)
stdArgs = {
maxSuccess = 100, -- 最大测试次数
maxSize = 100, -- 数据最大长度
}
function data(t, ...)
local t_meta = getmetatable(t)
local meta = setmetatable({}, {__index = t_meta.__index})
local o = {type=t.type, cons={...}}
--debug.dump(o)
setmeta... |
" Highlighting
:lua <<EOF
require'nvim-treesitter.configs'.setup {
highlight = {
enable = true,
custom_captures = {
-- Highlight the @foo.bar capture group with the "Identifier" highlight group.
["foo.bar"] = "Identifier",
},
},
}
EOF
" Incremental Selection
:lua <<EOF
require'nvim-treesitte... |
module("luci.controller.netdata", package.seeall)
function index()
if not (luci.sys.call("pidof netdata > /dev/null") == 0) then
return
end
entry({"admin", "system", "netdata"}, template("netdata"), _("NetData"), 10).leaf = true
end |
-- image loading module
local img = {}
local basePath = "img/"
--[[
local configFile = "images.json";
local indexFile = "dir-index.json";
local function getTableFormFile(filename)
local dataTable=nil;
local jsonString;
local json = require("json");
-- check whenewer levelstate file exists... |
local function AM_VehicleThink( ply, veh, mv )
if AM_IsBlackListed( veh ) then return end
local vel = veh:GetVelocity():Length()
if veh.FuelInit and !veh.NoFuel and IsValid( veh:GetDriver() ) then
local AM_FuelEnabled = GetConVar( "AM_Config_FuelEnabled" ):GetBool()
local AM_NoFuelGod = GetConVar( "AM_Config_NoF... |
function followArrestor(plr, cop)
if (not isElement(plr) or not isElement(cop)) then return end
if (plr.vehicle or not isPlayerArrested(plr)) then return end
if (cop.vehicle) then
local max_pass = getVehicleMaxPassengers(cop.vehicle)
for i = 1, max_pass do
if (not getVehicleOccupant(cop.vehicle, i)) then
... |
local gl = require('galaxyline')
local gls = gl.section
-- local condition = require('galaxyline.condition')
-- local diagnostic = require('galaxyline.provider_diagnostic')
local fileinfo = require('galaxyline.provider_fileinfo')
gl.short_line_list = {'NvimTree','vista','dbui','packer', 'startify'}
local colors = {
... |
ancient_graul = Creature:new {
objectName = "@mob/creature_names:ancient_graul",
socialGroup = "graul",
faction = "",
level = 50,
chanceHit = 0.47,
damageMin = 370,
damageMax = 450,
baseXp = 4825,
baseHAM = 9700,
baseHAMmax = 11900,
armor = 1,
resists = {160,145,170,170,170,-1,0,0,-1},
meatType = "meat_car... |
--dependencies require please search the rest of repo for files with prefix: "Weather"
local IsRaining = game.Workspace:WaitForChild("WeatherValues"):WaitForChild("IsRaining")
local RainScript = script.Parent:WaitForChild("RainyDay")
local RainSound = script.Parent:WaitForChild("Rain")
if IsRaining.Value == true then... |
IncludeFile("Lib\\SDK.lua")
class "Lantern"
local ScriptXan = 0.4
local NameCreat = "Jace Nicky"
function OnLoad()
__PrintTextGame("<b><font color=\"#00FF00\">Champion:</font></b> " ..myHero.CharName.. "<b><font color=\"#FF0000\"> Please, get fucking lantern!</font></b>")
__PrintTextGame("<b><font... |
local bit32 = require("bit32")
local buf = require("doubleBuffering")
local fs = require("filesystem")
local image = require("image")
local module = require("ethel.module")
local config = module.load("util.config")
local paths = {
fs.concat(os.getenv("_"), "../resources"),
"/usr/share/ethel"
}
for i = #paths, 1,... |
require('src/constants')
Utils = require('src/utils')
Animation = require('src/Animation')
Tween = require('src/Tween')
LevelGenerator = require('src/levelGenerator')
Level = require('src/Level')
Player = require('src/Player')
|
local ladderPosition = Position(32854, 32321, 11)
function onStepIn(creature, item, position, fromPosition)
local player = creature:getPlayer()
if not player then
return true
end
local ladderItem = Tile(ladderPosition):getItemById(5543)
if not ladderItem then
Game.createItem(5543, 1, ladderPosition)
player... |
description "vRP commands"
--ui_page "ui/index.html"
dependency "vrp"
client_scripts{
"lib/Tunnel.lua",
"lib/Proxy.lua",
"cfg/commands.lua",
"client.lua"
}
server_scripts{
"@vrp/lib/utils.lua",
"server.lua"
}
files {
"html/index.html",
"html/pNotify.js",
"html/noty.js",
"html/noty.css... |
local LS = {}
local this = LS
local status = false
--Local Stuff
local Display_temperature = CreateClientConVar( "LS_Display_Temperature", "K", true, false )
local Display_hud = CreateClientConVar( "LS_Display_HUD", "1", true, false )
--local ls_sb_mode = false
surface.CreateFont( "LS3HudHeader", {font = "Verdana"... |
return {
{
effect_list = {
{
type = "BattleBuffCastSkill",
trigger = {
"onUpdate"
},
arg_list = {
target = "TargetSelf",
time = 40,
skill_id = 11820
}
}
}
},
{
effect_list = {
{
type = "BattleBuffCastSkill",
trigger = {
"onUpdate"
},
arg_lis... |
-- AutoEnchantress by unknown
-- UPDATE 1
local AutoEnchantress = {}
AutoEnchantress.AutoOffensiveItems = Menu.AddOption({"Hero Specific","Enchantress"}, "Auto Offensive Item Use", "")
AutoEnchantress.AutoDefensiveItems = Menu.AddOption({"Hero Specific","Enchantress"}, "Auto Defensive Item Use", "")
AutoEnchantress.B... |
return {
libname = "gmcl_gloo_test_win32.dll",
garrysmod = "Q:\\Games\\Steam Games\\steamapps\\common\\GarrysMod"
} |
-- If LuaRocks is installed, make sure that packages installed through it are
-- found (e.g. lgi). If LuaRocks is not installed, do nothing.
pcall(require, "luarocks.loader")
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
require("awful.autofocus")
-- Widget and layout librar... |
-- Core Mapping
local List = require "pl.List"
local modules = List {
"jesse.mapping.core.general",
"jesse.mapping.core.lsp",
}
modules:foreach(function(module)
require(module)
end)
|
---------------------------------------------------------------------------
--- This module has been moved to `wibox.widget.progressbar`
--
-- @author Julien Danjou <julien@danjou.info>
-- @copyright 2009 Julien Danjou
-- @classmod awful.widget.progressbar
---------------------------------------------------------... |
function plugindef()
finaleplugin.Author = "Nick Mazuk"
finaleplugin.Copyright = "CC0 https://creativecommons.org/publicdomain/zero/1.0/"
finaleplugin.Version = "1.0.0"
finaleplugin.Date = "June 4, 2022"
finaleplugin.CategoryTags = "Meter"
finaleplugin.MinJWLuaVersion = 0.62
finaleplugin.Aut... |
-----------------------------------
-- Area: Port Jeuno
-- NPC: Cumetouflaix
-- Standard NPC
-----------------------------------
local ID = require("scripts/zones/Port_Jeuno/IDs");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
player:messageSpecial(ID... |
print ("Results of extend_test:")
require "com.untgames.runtime"
local function CreateClassA ()
local function Foo ()
print ("ClassA.Foo")
end
local function SetProperty (name, value)
print (string.format ("SetProperty('%s', '%s')", name, value))
end
local function GetProperty (... |
-- // define hash function
local hash; do
local MOD = 2^32
local MODM = MOD-1
local bxor = bit32.bxor;
local band = bit32.band;
local bnot = bit32.bnot;
local rshift1 = bit32.rshift;
local rshift = bit32.rshift;
local lshift = bit32.lshift;
local rrotate = bit32.rrotate;
local ... |
--------------------------------------------------------------------------------
-- Function minimization module.
--
-- Copyright (C) 2011-2016 Stefano Peluchetti. All rights reserved.
--------------------------------------------------------------------------------
local function tofmin(optim)
return function... |
util.AddNetworkString("pac_proxy")
util.AddNetworkString("pac_event")
-- event
concommand.Add("pac_event", function(ply, _, args)
if not args[1] then return end
local event = args[1]
local extra = tonumber(args[2]) or 0
if extra == 2 or args[2] == "toggle" then
ply.pac_event_toggles = ply.pac_event_toggles or... |
local ItemConstants =
{
Tables =
{
{
Name = "InventoryType",
Type = "Enumeration",
NumValues = 29,
MinValue = 0,
MaxValue = 28,
Fields =
{
{ Name = "IndexNonEquipType", Type = "InventoryType", EnumValue = 0 },
{ Name = "IndexHeadType", Type = "InventoryType", EnumValue = 1 },
{ Name... |
return {
setup = function(on_attach)
local lspconfig = require("lspconfig")
lspconfig.yamlls.setup({
on_attach = on_attach,
settings = {
yaml = {
schemas = {
['http://json.schemastore.org/circleciconfig'] = '.circleci/**/*.{yml,yaml}'
}
}
},
... |
local ForceSystem = class("ForceSystem", System)
function ForceSystem:update(dt)
for i, v in pairs(self.targets) do
v:get("Position").y = v:get("Physic").body:getY()
if love.keyboard.isDown("right") then
v:get("Physic").body:applyForce(1000, 0)
elseif love.keyboard.isDown("left") then
... |
-----------------------------------------------------------
-- Lualine configuration file
-----------------------------------------------------------
-- Plugin: nvim-lualine
-- https://github.com/nvim-lualine/lualine.nvim
require('lualine').setup {
options = {
theme = 'gruvbox',
component_separators = '|',
... |
-- this script will run server for display.
-- last modified : 2017.09.01, nashory
local opts = require '__1_context-encoder.script.opts'
local opt = opts.parse(arg)
if opt.display then
os.execute(string.format('th -ldisplay.start %d %s', opt.display_server_port, opt.display_server_ip))
end
|
function CreateDialogExample()
--Create a dialog
local dialog = UIDialog()
--dialog.setCanClose(true)
dialog.setTitle("Dialog Example")
dialog.appendTo(UIFramework)
dialog.onClickClose(function(obj)
obj.hide()
end)
--Create a text
local desc = UIText()
desc.setContent("... |
--[[---------------------------------------------------------
Name: File
-----------------------------------------------------------]]
AddCSLuaFile()
--[[---------------------------------------------------------
Name: Setup
-----------------------------------------------------------]]
ENT.Base = 'fg_base_printer'
EN... |
include("shared.lua")
language.Add("Cleanup_acf_piledriver", "ACF Piledrivers")
language.Add("Cleaned_acf_piledriver", "Cleaned up all ACF Piledrivers")
|
data:extend(
{
{
type = "recipe",
name = "iron_powder",
enabled = false,
ingredients =
{
{"coal", 1},
{"iron-ore", 1}
},
result = "iron_powder"
}
}
) |
--[[
-------------------------------------------------------------------------------
Menori
@author rozenmad
2022
-------------------------------------------------------------------------------
]]
--[[--
Class for initializing and storing mesh vertices and material.
]]
-- @classmod Mesh
local modules = (...):match... |
QBCore = nil
TriggerEvent('QBCore:GetObject', function(obj) QBCore = obj end)
local MIPhone = {}
local Available = {}
local Tweets = {}
local AppAlerts = {}
local MentionedTweets = {}
local Hashtags = {}
local Calls = {}
local Adverts = {}
local GeneratedPlates = {}
local MyLikes = {}
local TweetLik... |
--
-- I never tread... lightly.
-- Author: Dubpub
-- Date: 9/15/2015
-- Time: 2:38 AM
-- Use as you please, it's LUA for christ's sake.
--
function Create()
local NearbyGuards = this.GetNearbyObjects("Guard", 100);
for Guard, _ in next, NearbyGuards do
Guard.NavigateTo(this.Pos.x, this.Pos.y);
end... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.