content stringlengths 5 1.05M |
|---|
local class = require('src.Utils.MiddleClass');
local Logger = require('src.Utils.Logger');
local Node = require('src.Node');
--- The transition node is used in the State node to define the set of transitions from/to
--- other states in the same StateMachine node.
---@class Transition: Node
---@field onEvent string T... |
return {
background_node_range={ 0, 1 },
desc="Custom preset 2. Your world, your rules!",
hideminimap=false,
id="CUSTOM_PRESET_2",
location="cave",
max_playlist_position=999,
min_playlist_position=0,
name="Custom Preset 2",
numrandom_set_pieces=0,
override_level_string=false,
overrides={
banan... |
local Text = surface.GetTextureID("gui/gradient")
function DrawBoxGradient(x,y,w,h,extw,color, linecolor)
surface.SetDrawColor( color.r, color.g, color.b, color.a )
surface.DrawRect( x, y, w, h )
surface.SetTexture(Text)
surface.DrawTexturedRectRotated( x-extw/2, y+h/2, extw, h, 180 )
surface.SetDrawColor( ... |
local gauntlet_data = require "gauntlet_data"
local CHIP_DATA = require "defs.chip_data_defs"
local CHIP_ID = require "defs.chip_id_defs"
local CHIP_ID_LAST = require "defs.chip_id_defs_last_chip"
local CHIP_CODE = require "defs.chip_code_defs"
local CHIP_NAMES = require "defs.chip_name_defs"
local CHIP_NAME_ADDRESSES ... |
local ui = {}
local utils = require 'utils'
do
local cache = {}
function ui.rgb(str)
if cache[str] then
return cache[str]
end
local out = {}
for i = 1, 6, 2 do
local tmp = str:sub(i, i+1)
local val = utils.fromBase(tmp, 16) / 255
table.insert(out, val)
end
cache[str] = out
return out
en... |
return function()
local bindArgs = require(script.Parent)
it("should properly bind arguments to a function", function()
expect(function()
bindArgs(function(a, b, c)
assert(a == 1, b == 2, c == 3)
end, 1, 2, 3)(4)
end).never.throw()
end)
end
|
function FileExists(filename)
local filehandle=io.open(filename,"r")
if filehandle~=nil then
io.close(filehandle)
return true
else
return false
end
end
project "Premake"
kind "Utility"
targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}")
objdir ("%{wks.location}/bin-int/" .. outputdir .. "/... |
portalprojectile = class("portalprojectile")
function portalprojectile:init(x, y, tx, ty, color, hit, payload, mirror, mirrored, bounces)
self.x = x
self.y = y
self.startx = x
self.starty = y
self.endx = tx
self.endy = ty
self.bounces = bounces or portalbouncethreshold
self.color = color
self... |
local models = {}
local dpnn = require( 'dpnn')
local nn = require( 'nn')
local rnn = require( 'rnn')
local loadcaffe = require('loadcaffe')
-- Load pretrained 16-layer VGG model and freeze layers
function models.load_vgg(backend)
--local model = loadcaffe.load('VGG/VGG_ILSVRC_19_layers_deploy.prototxt','VGG/vgg_nor... |
#!/usr/bin/env wsapi.cgi
require "orbit"
require "orbit.cache"
require "markdown"
--
-- Declares that this is module is an Orbit app
--
module("blog", package.seeall, orbit.new)
--
-- Loads configuration data
--
require "blog_config"
--
-- Initializes DB connection for Orbit's default model mapper
--
require("luasq... |
local present1, lspconfig = pcall(require, "lspconfig")
local present2, lspinstall = pcall(require, "lspinstall")
if not (present1 or present2) then
return
end
local tbl_utils = require("nvdope.utils.tbls")
local function on_attach(client, bufnr)
vim.api.nvim_buf_set_option(bufnr, "omnifunc", "v:lua.vim.lsp.o... |
Concess = {}
Concess.webhooks = "TON WEEBHOOK ICI"
Concess.jeveuxmarker = true --- true = Oui | false = Non
Concess.jeveuxblips = true --- true = Oui | false = Non
Concess.pos = {
menu = {
position = {x = -56.7, y = -1098.77, z = 26.42}
},
boss = {
position = {x = -29.91, y = -1107.04, z = 26.42}... |
return {
gok_claw = {
acceleration = 0,
buildangle = 8192,
buildcostenergy = 1712,
buildcostmetal = 205,
builder = false,
buildpic = "gok_claw.dds",
buildtime = 5000,
canattack = true,
canstop = 1,
category = "ALL SURFACE",
cloakcost = 5,
corpse = "dead",
--damagemodifier = 0.15... |
CodexDB["professions"]["frFR-tbc"]={
[6]="Givre",
[8]="Feu",
[26]="Armes",
[38]="Combat",
[39]="Finesse",
[40]="Poisons",
[43]="Epées",
[44]="Haches",
[45]="Arcs",
[46]="Armes à feu",
[50]="Maîtrise des bêtes",
[51]="Survie",
[54]="Masse",
[55]="Epées à deux mains",
[56]="Sacré",
[78]="Magie de l\'ombre",
[95]="Défense... |
return require('packer').startup(function()
-----------------------------
-- Editor plugins
use 'wbthomason/packer.nvim'
use {'tjdevries/express_line.nvim',
requires = {'nvim-lua/plenary.nvim'},
config = function() require'config.expressline' end
}
use {'kyazdani42/nvim-tree.lu... |
SKILL.name = "Iceshard Blizzard"
SKILL.LevelReq = 2
SKILL.SkillPointCost = 1
SKILL.Incompatible = {
}
SKILL.RequiredSkills = {
}
SKILL.icon = "vgui/skills/spell_frost_ice-shards.png"
SKILL.category = "Lore of Heavens"-- Common Passives, Warrior, Lore of Light, Lore of Life
SKILL.slot = "RANGED" -- ULT, RANGED, MELE... |
HLHUD.Hook:Post(HUDStatsScreen, "recreate_right", function(self)
self._hl_tm_panel = HLHUD:make_panel(self._right, "extra_teammates_info", {
h = 320, x = 10, bottom = self._right:h() - 10 - tweak_data.menu.pd2_small_font_size
})
local font_size = 20
local prev
local prev_t
l... |
return PlaceObj("ModDef", {
"title", "Omega Unlocks All",
"version", 1,
"version_major", 0,
"version_minor", 1,
"saved", 0,
"image", "Preview.png",
"id", "ChoGGi_OmegaUnlocksAll",
"pops_any_uuid", "694072ce-c6b9-4cf9-b20e-4fd60ce3adef",
"author", "ChoGGi",
"lua_revision", 249143,
"code", {
"Code/Script.lua... |
local function add(a, b)
return a+b
end
return add(add(2,6), add(1,9))
|
local BaseInstance = import("./BaseInstance")
return BaseInstance:extend("ReplicatedStorage") |
ffi = require "ffi"
require "LDYOM.Scripts.baseNode"
class = require "LDYOM.Scripts.middleclass"
Node = bitser.registerClass(class("NodeAttachCamToVehicle", BaseNode));
Node.static.name = imgui.imnodes.getNodeIcon("func")..' '..ldyom.langt("CoreNodeAttachCamToVehicle");
Node.static.mission = true;
function Node:init... |
--[=[
Debug drawing library useful for debugging 3D abstractions. One of
the more useful utility libraries.
These functions are incredibly easy to invoke for quick debugging.
This can make debugging any sort of 3D geometry really easy.
```lua
-- A sample of a few API uses
Draw.point(Vector3.new(0, 0, 0))
Draw... |
require "keybow"
-- Key mappings --
function handle_key_00(pressed)
keybow.set_key(keybow.KP0, pressed)
end
function handle_key_01(pressed)
keybow.set_key(keybow.KP1, pressed)
end
function handle_key_02(pressed)
keybow.set_key(keybow.KP2, pressed)
end
function handle_key_03(pressed)
keybow.set_key(... |
local player = game.Players.LocalPlayer
local plrGui = player:WaitForChild("PlayerGui")
local HTPGUI = plrGui:WaitForChild("HowToPlayGui")
HTPGUI.Frame.Visible = true
HTPGUI.Frame.TextButton.MouseButton1Click:Connect(function()
HTPGUI:Destroy()
end) |
--------------------------------------------------------------
-- direct_access.lua --
--------------------------------------------------------------
-- --
-- This file provides the 2 public modder-facing functions --
-- fo... |
--[[
Original textures from GeMinecraft
http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/wip-mods/1440575-1-2-5-generation-minecraft-beta-1-2-farming-and
]]
local S = farming.intllib
-- corn
minetest.register_craftitem("farming:corn", {
description = S("Corn"),
inventory_image = "farming_c... |
-- sprint_controller
-- ArkhieDev
-- 6/9/2021
-- Services
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local ContextActionService = game:GetS... |
local function time(f, times)
collectgarbage()
local gettime = os.clock
local ok, socket = pcall(require, 'socket')
if ok then
gettime = socket.gettime
end
local start = gettime()
for _=0,times do f() end
local stop = gettime()
return stop - start
end
local function readfile(file)
loc... |
return {
source = "sounds/footsteps/grassright.wav",
volume = 0.25
}
|
local lastX = nil
local lastY = nil
local canvas = nil
local lineWidth = 1
local HEIGHT = 600
local WIDTH = 800
local TOP = 0
local LEFT = 0
local color = {0.0, 0.0, 0.0, 1.0}
local cui = castle.ui
local log =
require("https://raw.githubusercontent.com/ccheever/castle-utils/c5a150bf783bfcaf24bbcf8cbe0824fae34a819... |
local cache = require "luv.cache.backend"
local TestCase = require "luv.dev.unittest".TestCase
module(...)
local Memcached = TestCase:extend{
__tag = .....".Memcached";
setUp = function (self)
self.memcached = cache.Memcached()
self.memcached:clear()
end;
tearDown = function (self)
self.memcached:clear()
e... |
-- Generated by CSharp.lua Compiler
local System = System
System.namespace("Slipe.Shared.Exports", function (namespace)
namespace.class("ExportAttribute", function (namespace)
local __ctor__
__ctor__ = function (this, name, isHttp)
System.base(this).__ctor__(this)
this.Name = name
this.IsHtt... |
local Class = require 'lib.hump.class'
local MapBuilder = getClass 'wyx.map.MapBuilder'
-- MapDirector
local MapDirector = Class{name='MapDirector'}
-- generate a standard roguelike map with rooms connected via hallways.
function MapDirector:generateStandard(builder)
assert(isClass(MapBuilder, builder))
builder:c... |
local mexico = require "mexico"
--
-- Mexico wrapper for a corona rounded rectangle.
--
local RoundedRect = mexico.class(mexico.DisplayObject)
--
-- Magic new function, since corona creates the object
-- and not we.
--
RoundedRect.new = function(styles)
local l = styles.left or 0
local t = styles.top or 0
loca... |
-- Matter recipes for Krastorio2
if mods["Krastorio2"] then
local util = require("__bzlead__.data-util");
local matter = require("__Krastorio2__/lib/public/data-stages/matter-util")
data:extend(
{
{
type = "technology",
name = "lead-matter-processing",
icons =
{
{
icon = util.k2assets()... |
-- Color reference
local Color = {
white = {1, 1, 1},
teal = { 2 / 255, 132 / 255, 130 / 255 },
red = { 204 / 255, 0, 0 },
yellow = { 2, 204 / 255, 0},
blue = { 51 / 255, 102 / 255, 153 / 255 },
gray = { 102 / 255, 102 / 255, 102 / 255 },
lightGray = { 153 / 255, 153 / 255, 153 / 255 },
green = { 128 / ... |
-- Older versions of ACF will conflict due to the new file loading system we implemented.
-- If the server has an older version installed simultaneously, we'll let the players know.
if ACF.Version then
net.Receive("ACF_VersionConflict", function()
hook.Add("CreateMove", "ACF Version Conflict", function(Move)
if M... |
local ffi = require 'ffi'
local senna = require 'senna.env'
local C = senna.C
local SRL = {}
local mt = {__index=SRL}
function SRL.new(hashtype, verbtype)
hashtype = hashtype or 'IOBES'
verbtype = verbtype or 'VBS'
local self = {verbtype=verbtype}
self.hash = senna.Hash(senna.path, "hash/srl.lst")
if h... |
function setDestination ( player, x, y, z, locationDesc, blip, settings )
if player and x and y and z and locationDesc then
triggerClientEvent ( player, "gps_setDestination", player, x, y, z, locationDesc, blip, settings )
end
end
function setDestinationToPlayer(gpsClient,targetPlayer,desc,blip,settings)
trig... |
require 'tests.e2.undead'
require 'tests.e2.shiplanding'
require 'tests.e2.e2features'
require 'tests.e2.movement'
require 'tests.e2.destroy'
require 'tests.e2.guard'
require 'tests.e2.spells'
require 'tests.e2.stealth'
require 'tests.orders'
require 'tests.common'
require 'tests.storage'
require 'tests.magicbag'
requi... |
object_mobile_outbreak_undead_scientist_m_hum_08 = object_mobile_shared_outbreak_undead_scientist_m_hum_08:new {
}
ObjectTemplates:addTemplate(object_mobile_outbreak_undead_scientist_m_hum_08, "object/mobile/outbreak_undead_scientist_m_hum_08.iff")
|
-- Jettison replacement: Eject ejectable drives on sleep
local logger = hs.logger.new("Jettison")
logger.i("Loading Jettison sleep watcher")
M = {}
log = require('utilities.log').new(logger)
M._jettison_causing_sleep = false
function M.isAnExternalDrivePresent()
local output, status, return_type, return_code =
... |
print ("==================================== BLOCKCHAIN DEMO ====================================")
MINERS = 100
nonce = {0}
function inc_nonce(n)
for i = 1, #n do
if n[i] < 255 then
n[i] = n[i] + 1
break
else
n[i] = 0
if i == #n then
table.insert(n, 1)
return
e... |
local sprFilter = {
["materials/play_assist/pa_ammo_shelfover.vmt"] = true,
}
local mdlFilter = {
"oildrum",
"props_battle"
}
local nameFilter = {
["point_ammo_smg1"] = true,
["point_ammo_smg2"] = true,
["point_ammo_smg3"] = true,
["point_ammo_ar1"] = true,
["point_ammo_ar2"] = true,
["point_ammo_smg1_1"] = ... |
object_mobile_outbreak_undead_civilian_21 = object_mobile_shared_outbreak_undead_civilian_21:new {
}
ObjectTemplates:addTemplate(object_mobile_outbreak_undead_civilian_21, "object/mobile/outbreak_undead_civilian_21.iff")
|
local PANEL = class.create("ColorPicker", "Panel")
function PANEL:ColorPicker()
self:super() -- Initialize our baseclass
self.m_txtColorValue = self:Add("TextEntry")
self.m_txtColorValue:Dock(DOCK_TOP)
self.m_txtColorValue:SetHoveredInput(true)
self.m_txtColorValue.OnTextChanged = function(this, text, add)
i... |
EA_Config = {
["SCD_NocombatStillKeep"] = true,
["ShowTimer"] = true,
["DoAlertSound"] = true,
["ChangeTimer"] = true,
["SpecPowerCheck"] = {
["DarkForce"] = false,
["Mana"] = false,
["BurningEmbers"] = false,
["LifeBloom"] = false,
["Focus"] = false,
["RunicPower"] = false,
["Runes"] = false,
["L... |
local moduleName = "http"
evalPath[moduleName] = function (path)
if path:match("^http://") then
return httpget(path)
else
return nil
end
end
|
local research = trinium.research
local S = research.S
local api = trinium.api
local M = trinium.materials.materials
minetest.register_on_joinplayer(function(player)
local data = research.dp2[player:get_player_name()]
data.aspects = data.aspects or {}
data.ink = data.ink or 0
data.paper = data.paper or 0
data.war... |
return {
source = {
type = 'dist',
location = 'ftp://ftp.cwru.edu/pub/bash/readline-6.3.tar.gz',
sha256sum = '56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43'
},
patches = {
{ "${pkg_name}-5.0-no_rpath.patch", 0 },
{ "${pkg_name}-6.2-rlfe-tgoto.... |
-------------------------------------------------------------------------------
-- Copyright (c) 2006-2013 Fabien Fleutot and others.
--
-- All rights reserved.
--
-- This program and the accompanying materials are made available
-- under the terms of the Eclipse Public License v1.0 which
-- accompanies this distributi... |
local plugin_status = require("utils").load_config().plugin_status
local present, _ = pcall(require, "packerInit")
local packer
if present then
packer = require("packer")
else
return false
end
vim.cmd([[
augroup packer_user_config
autocmd!
autocmd BufWritePost pluginList.lua luafile <afile> | PackerSync
... |
-- A basic Enemy Entity you can copy and modify for your own creations.
comments = { "Smells like the work of an enemy stand.[w:5]\nAnd shady deals.", "Poseur is posing like his money depends on it.", "Poseur's limbs shouldn't be contorting in this way." }
randomdialogue = {
{ "Check it [[out\nat my store!]", ... |
local skynet = require "skynet.manager"
local codecache = require "skynet.codecache"
local cluster = require "skynet.cluster"
local clusterMonitor = require "utils/clusterMonitor"
local TAG = "AllocServiceMgr"
local AllocServiceMgr = {}
function AllocServiceMgr:init(pGameCode, pIdentify)
local pServerConfig = requir... |
local class = require("common/middleclass")
local fw_command = class("fw_command")
function fw_command:initialize()
end
function fw_command:execute(msg)
end
return fw_command
|
-- ===========================================================================
-- Cached Base Functions
-- ===========================================================================
BASE_CQUI_OnWonderCompleted = OnWonderCompleted;
-- ===========================================================================
-- CQUI ... |
--------------------------------------------------------------------------------
--
--------------------------------------------------------------------------------
RESOURCE_PATH = ""
DOCUMENT_PATH = ""
----
Core = {}
function Core.init(resourcePath, documentPath)
-- seed lua's own random and iterate it over a... |
-- Usage
-- GETDEL key
--
-- Parameters
-- Key - string key
-- expectedValue - value that you application expects to be stored in key
--
-- Operation performed
-- Get the value of the key. If expected and stored values are the same
-- delete the key.
--
-- Returns
-- value of key
-- ... |
local _, private = ...
--[[ Lua Globals ]]
-- luacheck: globals select ipairs
--[[ Core ]]
local Aurora = private.Aurora
local Base = Aurora.Base
local Hook, Skin = Aurora.Hook, Aurora.Skin
local Color, Util = Aurora.Color, Aurora.Util
do --[[ FrameXML\MailFrame.lua ]]
function Hook.MailFrame_UpdateTrialState(se... |
require('bufferline').setup({
options = {
numbers = function (opts)
return opts.ordinal
end,
-- LSP diagnostics
diagnostics = "nvim_lsp",
diagnostics_indicator = function(count, level, diagnostics_dict, context)
local s = " "
for e, n in pairs(diagnostics_dict) do
local sym = e == "error" and "... |
local customCommandHooks = {}
local specialCharacter = "/"
customCommandHooks.commands = {}
customCommandHooks.aliases = {}
customCommandHooks.rankRequirement = {}
customCommandHooks.nameRequirement = {}
function customCommandHooks.registerCommand(cmd, callback)
customCommandHooks.commands[cmd] = callback
end
... |
-- Test file to demonstrate Lua fold machinery incorrect behavior, details:
-- https://github.com/LuaJIT/LuaJIT/issues/505
jit.opt.start("hotloop=1", 'jitcat', 'jitstr')
for _ = 1, 20 do
local value = "abc"
local pos_c = string.find(value, "c", 1, true)
local value2 = string.sub(value, 1, pos_c - 1)
... |
-----------------------------------------------------------------------------------------
--
-- helper.lua
--
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-- CONSTANTS
----------------... |
--- MaterialField module.
SB.Include(SB_VIEW_FIELDS_DIR .. "asset_field.lua")
--- MaterialField class.
-- @type MaterialField
MaterialField = AssetField:extends{}
--- MaterialField constructor.
-- @function MaterialField()
-- @see asset_field.AssetField
-- @tparam table opts Table
-- @usage
--function MaterialField:i... |
local assets =
{
Asset("ANIM", "anim/glasshammer.zip"),
}
local function onattack_moonglass(inst, attacker, target)
inst.components.weapon.attackwear = target and target:IsValid()
and (target:HasTag("shadow") or target:HasTag("shadowminion") or target:HasTag("shadowchesspiece") or target:HasTag("stalke... |
InputEvent = {}
---@type number
InputEvent.Released = 1
---@type number
InputEvent.Pressed = 0
|
local Indicator = require'skkeleton_indicator.indicator'
local snake_case_dict = require'skkeleton_indicator.util'.snake_case_dict
local M = {}
function M.setup(opts)
M.instance = Indicator.new(
snake_case_dict(
vim.tbl_extend('keep', opts or {}, {
moduleName = 'skkeleton_indicator',
eijiH... |
local Ship = {}
local img, pos, rotation,quad = nil, {}, 0
local elapsedTime, framerate = 0, 15/1000
local Bullet = require 'model.bullet'
function Ship:new(nick)
local o = {}
setmetatable(o, self)
self.__index = self
self.vel = 1
-- self.rotation = 0
o.nick = nick
o.bullets = {
Bullet:new(),
Bullet:new(),... |
local helper = require("filetypext.lib.testlib.helper")
local filetypext = helper.require("filetypext")
describe("filetypext", function()
before_each(helper.before_each)
after_each(helper.after_each)
for _, c in ipairs({
{ ctx = { filetype = "python" }, expected = { "scratch.py" } },
{ ctx = { filetype ... |
Debug = {}
Debug.MaxBinCount = 512
if USE_NETWORK_PLUGIN then
debugPlugin = Sushi.LoadPlugin( "SuNetworkDebugPlugin"..ComputePluginSuffix() )
if debugPlugin == nil then
error("Debug plugin load failed")
else
debugPlugin:SetNumMsgPerFrame(100)
--debugPlugin:StartWebSer... |
-- GENERATED CODE
-- Node Box Editor, version 0.9.0
position1 = nil
position2 = nil
minetest.register_node("scifi_nodes:alienslope", {
description = "Alien Platform",
tiles = {
"scifi_nodes_alnslp_top2.png",
"scifi_nodes_alnslp_top.png",
"scifi_nodes_alnslp.png",
"scifi_nodes_alnslp.png",
"scifi_nodes_al... |
-- this is an invalid image saved by PVR texture tool, make sure we fail the load
local bad_ignore, shouldfail = image.load("input/bad_pvtt_ARGB1555_16x16.ktx")
if shouldfail == true then
print("bad_pvtt_ARGB1555_16x16.ktx is an invalid file, we shouldn't load it but we did!")
end
-- load a png check size etc, sa... |
local Sprite = {}
Sprite.__index = Sprite
function Sprite.create()
local sprite = {}
setmetatable(sprite, Sprite)
sprite.id = ch2d.sprite.create()
return sprite
end
function Sprite:remove()
return ch2d.sprite.remove(self.id)
end
function Sprite:draw()
return ch2d.window.draw(self.id)
end
... |
--======================================
--javastg players
--======================================
----------------------------------------
--JavaStage
jstg.players={}
jstg.worldcount=1
jstg.worlds={}
jstg.worlds[1]=lstg.world
lstg.world.world=7
jstg.currentworld=1
--{l=-192,r=192,b=-224,t=224,boundl=-224,boundr=22... |
--[[-----------------------------------------------------------
-- *-- DeChunk v1.0 --*
-- *-- Written by --*
-- *-- EternalV3@github --*
--]]-----------------------------------------------------------
--[[-----------------------------------------------------------
-- Resulting structure
{
... |
local OS=os.get()
local definitions = {
dir = {
linux = "ls",
windows = "dir"
},
BOOST = {
linux = "/home/dled/src/boost_1_51_0/",
windows = os.getenv("BOOST")
},
BOOST_LIB = {
linux = path.join("/home/dled/src/boost_1_51_0/","stage/lib"),
windows = path.join(os.getenv("BOOST"),"stage/lib")
}
}
loc... |
local Option = {}
Option.__index = Option
Option.default = {
unique = false,
nargs_max = 0,
default_args = {},
}
function Option.new(raw_opts)
vim.validate({ raw_opts = { raw_opts, "table", true } })
raw_opts = raw_opts or {}
local tbl = vim.tbl_deep_extend("force", Option.default, raw_opts)
return setm... |
function love.conf(t)
t.window.title = "Tower Deffense"
t.window.width = 1100
t.window.height = 600
end
|
local ffi = require "ffi"
local ffi_cdef = ffi.cdef
local ffi_load = ffi.load
local ffi_gc = ffi.gc
local ffi_new = ffi.new
local ffi_str = ffi.string
local ffi_typeof = ffi.typeof
local ffi_cast = ffi.cast
local select = select
local setmetatable = setmetatable
local tonumb... |
-- Example configuations here: https://github.com/mattn/efm-langserver
-- TODO this file needs to be refactored eache lang should be it's own file
-- python
local python_arguments = {}
-- TODO replace with path argument
local flake8 = {
LintCommand = "flake8 --ignore=E501 --stdin-display-name ${INPUT} -",
lint... |
local Native = require('lib.native.native')
---@class Button : Agent
local Button = class('Button', assert(require('lib.oop.agent')))
return Button
|
-- Copyright 2019 (c) superfunc
-- See LICENSE file for conditions of usage.
--
-- This file provides a simple prune function (with basic perf tests below)
-- for fast removal from an array, when order doesn't matter
-- Since order of elements doesn't matter to us, we can efficiently
-- remove by using heap-style dele... |
return {'aha'} |
AddCSLuaFile()
AddCSLuaFile("sh_sounds.lua")
include("sh_sounds.lua")
if CLIENT then
SWEP.DrawCrosshair = false
SWEP.PrintName = "FN P90"
SWEP.CSMuzzleFlashes = true
SWEP.ViewModelMovementScale = 1.15
SWEP.IconLetter = "m"
killicon.AddFont("cw_p90", "CW_KillIcons", SWEP.IconLetter, Color(255, 80, 0, 150))
S... |
--[[----------------------------------------------------------------------------
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... |
require("ai.actions.movebase")
function WalkCreaturePet:checkConditions(pAgent)
if (pAgent ~= nil) then
local agent = AiAgent(pAgent)
local creature = CreatureObject(pAgent)
if (creature:getPosture() == UPRIGHT and agent:getFollowState() == PATROLLING) then
agent:setDestination()
return true
end
end
r... |
function SpawnRegions() return { { name = "East Bridge", file = "media/maps/East Bridge/spawnpoints.lua" }, }
end |
local mail_config = {}
mail_config['from'] = "<zhoulipeng@svi-tech.com.cn>"
mail_config['rcpt'] = "<zlpayqiong@163.com>"
mail_config['server'] = "smtp.qiye.163.com"
mail_config['domain'] = "qiye.163.com"
mail_config['user'] = "zhoulipeng@svi-tech.com.cn"
mail_config['password'] = "dafault"
return mail_config
|
-- https://github.com/Yggdroot/indentLine
use 'Yggdroot/indentLine' --Beautiful indent lines
let g:indentLine_enabled = 1
let g:indentLine_char='│'
let g:indentLine_conceallevel = 2
let g:indentLine_color_term = 239
let g:indentLine_concealcursor = ''
let g:indentLine_color_gui = '#A4E57E'
let g:indentLine_color_t... |
object_draft_schematic_dance_prop_prop_combat_fan_l = object_draft_schematic_dance_prop_shared_prop_combat_fan_l:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_dance_prop_prop_combat_fan_l, "object/draft_schematic/dance_prop/prop_combat_fan_l.iff")
|
-- This also define the namespace and should be the first file loaded
local A, GreyHandling = ...
GreyHandling.frame = CreateFrame("Frame")
GreyHandling.loot_frame = CreateFrame("Frame")
GreyHandling.chat_frame = CreateFrame("Frame")
GreyHandling.member_leave_frame = CreateFrame("Frame")
GreyHandling.functions = {}
Gr... |
-- Used to retarget VS solution and projects.
-- Returns version of Windows SDK.
edge.getWindowsSDKVersion = function()
local reg_arch = iif( os.is64bit(), "\\Wow6432Node\\", "\\" )
local sdk_version = os.getWindowsRegistry( "HKLM:SOFTWARE" .. reg_arch .."Microsoft\\Microsoft SDKs\\Windows\\v10.0\\ProductVersio... |
Bartender4DB = {
["namespaces"] = {
["StatusTrackingBar"] = {
["profiles"] = {
["Nevaar - Thrall"] = {
["enabled"] = true,
["version"] = 3,
["position"] = {
["scale"] = 1.264999985694885,
["x"] = -515,
["point"] = "BOTTOM",
["y"] = 62,
},
},
["Ischozar - Th... |
object_building_kashyyyk_thm_kash_house_ground_sm_s01 = object_building_kashyyyk_shared_thm_kash_house_ground_sm_s01:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_thm_kash_house_ground_sm_s01, "object/building/kashyyyk/thm_kash_house_ground_sm_s01.iff")
|
Citizen.CreateThread(function()
Citizen.Wait(1000)
local refresh = config.RefreshTime
local ped = PlayerPedId()
local pos = GetEntityCoords(ped)
while true do
Citizen.Wait(refresh)
ped = PlayerPedId()
pos = GetEntityCoords(ped)
SendNUIMessage({
status = "p... |
function love.conf(t)
t.identity = "MoonBox"
t.version = "11.1"
t.window.title = "MoonBox"
-- t.console = true
end |
-- Manifest data
fx_version 'bodacious'
games {'gta5'}
-- Resource stuff
name 'ragdoll'
description 'Simple ragdoll that allows you to set your own keybind'
version '1.0'
author 'FSSynthetic and VikingTheDev'
client_script 'src/ragdoll-c.js' |
local Players = GAMESTATE:GetHumanPlayers()
local NumPanes = SL.Global.GameMode=="Casual" and 1 or 6
if SL.Global.GameMode == "Experiment" then
if GetStepsType() == "StepsType_Dance_Double" or GAMESTATE:IsCourseMode() then
NumPanes = 4
elseif #GAMESTATE:GetHumanPlayers() == 1 then
NumPanes = 5
end
end
... |
local MODULE = PAW_MODULE('lib')
local Colors = MODULE.Config.Colors
local PANEL = {}
function PANEL:Init()
self:TDLib()
end
function PANEL:Create(text, font)
self:ClearPaint()
:Background(Colors.Button)
:FadeHover(Colors.ButtonHover)
:Text(text, font)
return self
end
function P... |
----------------------------------------------------------------------------------
-- Total RP 3
-- XRP API for profile importing
-- ---------------------------------------------------------------------------
-- Copyright 2014 Renaud Parize (Ellypse) (ellypse@totalrp3.info)
--
-- Licensed under the Apache License, Vers... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.