content stringlengths 5 1.05M |
|---|
--------------------------------
-- Single host module, plain Lua
--------------------------------
local cassandra = require "cassandra"
local client = assert(cassandra.new {
host = "127.0.0.1",
keyspace = "my_keyspace"
})
client:settimeout(1000)
assert(client:connect())
local res = assert(client:execute [[
... |
return {
id = "NG009",
events = {
{
style = {
text = "点击这里可以查看指挥喵的技能和天赋!",
mode = 1,
posY = -200,
dir = -1,
posX = 200
},
ui = {
path = "/UICamera/Canvas/UIMain/CommandRoomUI(Clone)/blur_panel/main/CommanderDetailUI(Clone)/info/skill_btn",
triggerType = {
2
}
}
},
... |
-- Remap <leader> key to SPACE ----------------------------------------
vim.g.mapleader = vim.api.nvim_replace_termcodes("<space>", true, true, true)
require("blaz.editor")
require("blaz.globals")
require("blaz.keymap")
require("blaz.plugins").load(vim.fn.stdpath("config") .. "/plugged")
-- The following must be `re... |
-- ZVis - WaveScope implementation
-- zorg @ 2016 § ISC
-- Constants
local colorModeGetterWrapper = {"get", "", "Color"}
local colorModeSetterWrapper = {"set", "", "Color"} -- Thx, MasterGeek. :3
-- Enums
local colorType = {
['background'] = true,
['baseline'] = true,
['line'] = true, ['line+'] = true, ['line-']... |
--[=[
A Vertex class used for the Graph class.
@class Vertex
]=]
local Vertex = {}
Vertex.ClassName = "Vertex"
Vertex.__index = Vertex
--[=[
@within Vertex
@prop Data T
The data of the vertex.
]=]
--[=[
@within Vertex
@prop Visited boolean
Whether the vertex has been visited.
]=]
--[=[
@within Vertex
@prop... |
<td>
<a href="{{ U( page .. "/" .. class.short ) }}">
<div>
{{ icon( "equipment/" .. class.short ) }}
{{ T( class.name ) }}
</div>
</a>
</td>
|
ITEM.name = "Steel Frame"
ITEM.description = "A steel frame to allow you to carry more. Makes you much more vulnerable to electric and heat anomalies."
ITEM.model = "models/lostsignalproject/items/outfit_parts/ballistic9.mdl"
ITEM.category = "Attachments"
ITEM.width = 1
ITEM.height = 1
ITEM.upgradeIcon = Material("mate... |
PLAYSTYLE_LOOP = 0
PLAYSTYLE_ONCE = 1
Sprite = {}
function Sprite:CreateFromPtr(p)
obj = {ptr = p,x = 0,y = 0,rotation = 0}
self.__index = self
return setmetatable(obj,self)
end
function Sprite:LoadTextureFromFile(fileName)
hidden_sprite_loadTextureFromFile(self.ptr,fileName)
end
function Sprite:SetPosition(x,... |
local item = {
type = "selection-tool",
name = "wire-box-tool",
subgroup = "tool",
order = "z[wire-box-tool]",
show_in_library = false,
icons = {
{
icon = "__WireBox__/graphics/icons/power-grid-comb.png",
icon_size = 32,
}
},
flags = { ... |
data:extend(
{
{
type = "tool",
name = "science-pack-1",
icon = "__base__/graphics/icons/science-pack-1.png",
flags = {"goes-to-main-inventory"},
subgroup = "pots",
order = "a[science-pack-1]",
stack_size = 200,
durability = 1,
durability_description_key = "description.science-pack-r... |
local utils = require("utils")
local assert = assert
local clamp = utils.clamp
local MonsterFallState = utils.newClass()
function MonsterFallState:init(monster)
self.monster = assert(monster)
self.monster.game.systems.box:setDimensions(
monster.id, monster.stats.standWidth, monster.stats.standHeight)
end
f... |
CursorData = {
size = 18,
enabled = false,
color = tocolor(255,255,255,255),
}
function dgsSetCustomCursorImage(cursorType,image,rotation,rotationCenter,offset,scale)
local res = sourceResource or "global"
local style = styleManager.styles[res]
local using = style.using
style = style.loaded[using].cursor
if no... |
local jpegLib = require('jpeg')
local function printTable(t, i, p)
i = i or ' '
p = p or i
for name, value in pairs(t) do
if (type(value) == 'table') then
print(p..tostring(name)..':')
printTable(value, p..i)
else
print(p..tostring(name)..' = '..tostring... |
local _, private = ...
if private.isClassic then return end
--[[ Lua Globals ]]
-- luacheck: globals
--[[ 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\PVEFrame.lua ]]
function Hook.GroupFi... |
RUN_TESTS = false
if RUN_TESTS then
print('Running tests')
end
local utility = nil
LOCALIZATION = nil
local STATE = {
PATHS = {
RESOURCES = nil
},
STACK = false
}
local COMPONENTS = {
STATUS = nil
}
HideStatus = function()
return COMPONENTS.STATUS:hide()
end
Initialize = function()
SKIN:Bang('[!Hide]'... |
-- Created by Elfansoer
--[[
Ability checklist (erase if done/checked):
- Scepter Upgrade
- Break behavior
- Linken/Reflect behavior
- Spell Immune/Invulnerable/Invisible behavior
- Illusion behavior
- Stolen behavior
]]
--------------------------------------------------------------------------------
primal_beast_onsla... |
Config = {}
Config.Locale = 'es'
Config.AntiResourceStopCheck = false
Config.AntiResourceStartCheck = false --Se activará si se inicia un nuevo recurso
Config.AntiSpectate = true -- Banea si un jugador usa el modo spectate
Config.AntiBMCGLOBAL = true --Detecta si un jugador ejecuta un executor
Config.AntiCMD = ... |
function setup()
displayMode(FULLSCREEN)
backingMode(RETAINED)
blobs = {}
touches = {}
for i = 10, 30 do
table.insert(blobs,{x=math.random(WIDTH),y=math.random(HEIGHT),s=i})
end
end
function touched(touch)
if touch.state == ENDED then
touches[touch.id] = nil
else
... |
--[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2013 Kenny Shields --
--]]------------------------------------------------
-- skin path
local dir = (...):sub(0, -6)
local path = string.gsub(dir, "/", "%.")
-- skin table
local skin = {}
-- skin ... |
local ateamreward = {
[100] = {ID=100,mode=4,TotalScore=645,ItemRewards={{0,20000046,30},{0,10000004,20}},CurrencyRewards=0,rewardDetail="招募令礼包*30;时光沙漏*20"},
[200] = {ID=200,mode=4,TotalScore=630,ItemRewards={{0,20000046,28},{0,10000004,20}},CurrencyRewards=0,rewardDetail="招募令礼包*28;时光沙漏*20"},
[300] = {ID=300,mode=4,Tot... |
local ffi = require('ffi')
local bit = require('bit')
local util = require('util')
local M = {}
local BLOCK_POOL_ARENA_SIZE = 2^16
local function Arena(arena_size)
local arena = ffi.new("uint8_t[?]", arena_size)
local offset = 0
local self = {}
function self:alloc(block_size)
if offset + block_size... |
local using = false
local lastPos = nil
local anim = "ryg"
local animscroll = 0
local object = nil
local ObjectVert = nil
local ObjectVertY = nil
local OjbectDir = nil
local isBed = nil
--/// HEALING CONFIG
--/// IF PLAYER LAYS IN A BED, THEN HE WILL BE HEALED
local oHealing = true --// True = Enabled / False = Disabl... |
--[[
A naive implementation of a Bib(La)TeX dateabase (.bib) parser
References:
- http://mirrors.ctan.org/biblio/bibtex/base/btxdoc.pdf
- http://mirrors.ctan.org/info/bibtex/tamethebeast/ttb_en.pdf
- https://github.com/brechtm/citeproc-py/blob/master/citeproc/source/bibtex/bibparse.py
- http://maverick.inri... |
local Buffer = {};
local EquippedItems = {};
local Internal = {};
local CurrentJob = 0;
local CurrentLevel = 0;
local inventoryManager = AshitaCore:GetMemoryManager():GetInventory();
local resourceManager = AshitaCore:GetResourceManager();
--Gets current equipment based on outgoing packet history
local GetCurrentEquip... |
local rareShareChatChannel = -1
local rareShareSep = "~"
local function ShareViaChat(rare)
-- Only share Alive and Dead events (eg. no Decays)
if rare.EventType ~= "Alive" and rare.EventType ~= "Dead" then return end
if rareShareChatChannel == -1 then
rareShareChatChannel, _, _ = GetChannelName("DANTUPRARESHARE... |
-- Setup vars that are user-dependent. Can override this function in a sidecar file.
function user_setup()
state.OffenseMode:options('None', 'lolMeleeSMN')
state.CastingMode:options('Normal', 'Resistant')
state.IdleMode:options('Normal', 'PDT')
state.AvatarMode:options('Normal', 'Acc')
gear.avatar_legs... |
if os.date then
print(os.date())
else
printError([["os.date()" isn't supported by this CC Version]])
end
|
return {
{
effect_list = {
{
type = "BattleBuffAddAttrRatio",
trigger = {
"onAttach",
"onRemove"
},
arg_list = {
attr = "cannonPower",
number = 1000
}
},
{
type = "BattleBuffAddAttrRatio",
trigger = {
"onAttach",
"onRemove"
},
arg_list = {
... |
local K, C, L, _ = select(2, ...):unpack()
-- THIS FILE IS FOR TESTING AND REMINDERS BULLSHIT :D
-- [[ -*- NOTES -*- ]] --
-- [[ -*- COMBAT_LOG_EVENT_UNFILTERED -*- ]] --
-- timestamp, event, sourceGUID, sourceName, sourceFlags, destGUID, destName, destFlags, spellID = ...
if (K.Name == "Kkthnx" or K.Name == "Rollnd... |
---@diagnostic disable: undefined-global
config.runtime.version =
"Lua运行版本。"
config.runtime.path =
[[
当使用 `require` 时,如何根据输入的名字来查找文件。
此选项设置为 `?/init.lua` 意味着当你输入 `require 'myfile'` 时,会从已加载的文件中搜索 `{workspace}/myfile/init.lua`。
当 `runtime.pathStrict` 设置为 `false` 时,还会尝试搜索 `${workspace}/**/myfile/... |
package.cpath=""
package.path=""
print(require("socket"))
|
local bit = require('bit')
local files = require('client_data.files')
local ffi = require('ffi')
local string = require('string')
local types = require('client_data.types.items')
local unicode = require('core.unicode')
local windower = require('core.windower')
windower.client_language = 'en'
local band = bit.band
loc... |
module:set_global();
local function sink_maker(config)
local levels = {
debug = module:measure("log.debug", "rate");
info = module:measure("log.info", "rate");
warn = module:measure("log.warn", "rate");
error = module:measure("log.error", "rate");
};
return function (_, level)
return levels[level]();
end... |
--
-- util_tt_client.lua
--
g_Root = getRootElement()
g_ResRoot = getResourceRootElement(getThisResource())
g_Me = getLocalPlayer()
addEvent('onClientCall_tt', true)
addEventHandler('onClientCall_tt', getRootElement(),
function(fnName, ...)
local fn = _G
local path = fnName:split('.')
for i,pathpart in ipairs(... |
return {
} |
local Template = require "oil.dtests.Template"
local template = Template{"Client"} -- master process name
Server = [=====================================================================[
orb = oil.dtests.init{ port = 2809 }
if oil.dtests.flavor.corba then
type = orb:loadidl[[
interface Flag {
void set();
boo... |
-- Class: Class
local Class = {}
-- Public static class constants
Class.__type = "Class"
Class.Enum = {
Operations = {
Addition = "+";
Subtraction = "-";
Multiplication = "*";
Division = "/";
Modulus = "%";
Exponent = "^";
};
Comparisons = {
LessThan = "<";
LessThanOrEqualTo = "<="... |
Target = "THEVICTIM"
game.Players.LocalPlayer.Character.Humanoid.Name = 1
local l = game.Players.LocalPlayer.Character["1"]:Clone()
l.Parent = game.Players.LocalPlayer.Character
l.Name = "Humanoid"
wait()
game.Players.LocalPlayer.Character["1"]:Destroy()
game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalP... |
local BaseList = cc.import(".BaseList")
local Achvs = cc.class("Achvs", BaseList)
local Achv = cc.import(".Achv")
local dbConfig = cc.import("#dbConfig")
function Achvs:createItem()
return Achv:new()
end
function Achvs:InitializeAll(connectid, action, roleid)
local achvs = dbConfig.getAll("cfg_achievement", ... |
_lulz_it = nil
|
print("Loading hf-avatar")
-- create the avatar protocol
p_hf_avatar = Proto("hf-avatar", "HF Avatar Protocol")
-- avatar data fields
local f_avatar_id = ProtoField.guid("hf_avatar.avatar_id", "Avatar ID")
-- sizes in bytes
local f_avatar_header_size = ProtoField.int32("hf_avatar.header_size", "Header Size", base.DE... |
-- create node Spherize
require "moon.sg"
local node = moon.sg.new_node("sg_spherize")
if node then
node:set_pos(moon.mouse.get_position())
end |
return function()
local Aura = require(script.Parent.BaseAura)
local Auras = require(script.Parent.Parent).Auras
describe("Serialize", function()
it("Should send minimal snapshot with no props", function()
local aura = Aura.new("TestAuraStandard", Auras:Find("TestAuraStandard"), {})
aura.Status.TimeLeft = ... |
-- Copyright (c) 2018 Redfern, Trevor <trevorredfern@gmail.com>
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
describe("Systems - EntityTracker", function()
local systems = require "systems"
local tiny = require "ext.tiny-ecs"
it("organizes the entities based on e... |
return function(gui)
local elclass = gui.class("imagebutton", gui.classes.button)
function elclass:initialize(image, x, y, w, h)
if type(image) == "string" then
image = love.graphics.newImage(image)
end
self.image = image
self.x = x
self.y = y
self.w = w or 75
self.h = h or 23
self.colors = setmeta... |
-- Copyright 2006-2020 Mitchell. See LICENSE.
-- Container LPeg lexer.
-- This is SciTE's plain text lexer.
return require('lexer').new('container')
|
local mysql = require "mysql"
local M = {}
M.__index = M
function M.new(...)
local o = {}
setmetatable(o, M)
M.init(o, ...)
return o
end
function M:init(host, port, database, user, password)
self.conf = {
host = host,
port = port,
database = database,
user = user,... |
--[[
A nngraph unit that maps features ids to embeddings. When using multiple
features this can be the concatenation or the sum of each individual embedding.
]]
local FeaturesEmbedding, parent = torch.class('onmt.FeaturesEmbedding', 'nn.Container')
function FeaturesEmbedding:__init(dicts, dimExponent, dim, merge)
... |
---
-- @module HUDManager
ttt_include("vgui__cl_hudswitcher")
local current_hud_cvar = CreateClientConVar("ttt2_current_hud", ttt2net.GetGlobal({"hud_manager", "defaultHUD"}) or "pure_skin", true, true)
local current_hud_table = nil
HUDManager = {}
---
-- (Re)opens the HUDSwitcher
-- @realm client
function HUDManag... |
Gltf=Core.class()
function Gltf:init(path,name)
self.path=path
if name then
local f=io.open(path.."/"..name)
self.desc=json.decode(f:read("*a"))
f:close()
end
end
function Gltf:getScene(i)
i=i or self.desc.scene+1
local ns=self.desc.scenes[i]
local root={}
root.type="group"
root.parts={}... |
--
-- Moduł do zapisu/odczytu danych w formacie json.
--
-- Wymagane moduły
local loadsave = require( 'lib.loadsave' )
local app = require( 'lib.app' )
local colors = require( 'lib.colors' )
-- Deklaracja modułu
local M = {}
-- Tablica przechowująca wszelkie ustawienia dotyczące gry
-- w tym wynik użytkownik... |
local i, tmpEntityNum;
while true do
if memory.readbyte(0x03000964) == 255 or memory.readbyte(0x03000964) == 0 then
gui.text(16,0,"Running", 0xFFFF0000, topleft)
else
-- gui.text(16,0,"Proceeding", 0xFFFF0000, topleft)
tmpEntityNum = 0
i = 0
for i=0, 64, 1 do
if memory.readbyte(0x03000964 + 3 * i) == 255... |
local null_ls = require("null-ls")
local lspconfig = require("lspconfig")
local lsputils = require("cfg.lsputils")
local sources = {
-- Diagnostics
-- null_ls.builtins.diagnostics.selene,
null_ls.builtins.diagnostics.shellcheck,
-- Formatting
null_ls.builtins.formatting.black,
null_ls.builtins.formatting.gofumpt... |
-- require the utils library to work
--require("utils")
-- require("std")
local wurl = require("wurl")
local web = {}
web.understand = function(proto)
if proto == "http" or proto == "https" then
return true
else
return false
end
end
web.get = function(url)
local obj = utils.url_parser(url)
if web.unders... |
require("robot3")
|
local settings_key_prefix = "a2x1_config_bits" .. "-" .. "data_raw_ammo_turret" .. "-"
function __settings_startup__data_raw_ammo_turret(data, order)
return data:extend(
{
{
type = "int-setting",
name = settings_key_prefix .. "range",
setting_type = "startup",
default_value ... |
local tap = require('tap')
local mixcframe = require('libmixcframe')
local test = tap.test('lj-601-fix-gc-finderrfunc')
test:plan(1)
-- Test file to demonstrate LuaJIT incorrect behaviour, when
-- throwing error in __gc finalizer.
-- See also, https://github.com/LuaJIT/LuaJIT/issues/601.
-- Stop GC for now.
collectg... |
local self = {}
GLib.Rendering.Matrices.IMatrixStack = GLib.MakeConstructor (self)
function self:ctor ()
self.RevisionId = 0
self.Top = nil
end
function self:GetRevisionId ()
return self.RevisionId
end
function self:GetTop ()
GLib.Error ("IMatrixStack:GetTop : Not implemented.")
return self.Top
end
functio... |
local skynet = require "skynet"
local redis = require "skynet.db.redis"
local crypt = require "skynet.crypt"
local traceback = debug.traceback
local tpack = table.pack
local tunpack = table.unpack
local tconcat = table.concat
local math_floor = math.floor
local math_ceil = math.ceil
local math_random = math.random
lo... |
--- Contains functions related to the operating system and external environment.
--
module("vn.system", package.seeall)
-- ----------------------------------------------------------------------------
-- Variables
-- ----------------------------------------------------------------------------
local exitFunction = ni... |
--[[--ldoc desc
@module paixing_1575_1
@author SeryZeng
Date 2018-01-16 20:35:40
Last Modified by AmyGuo
Last Modified time 2018-05-28 17:55:51
]]
--4张牌点相同的的牌+任意2张其它牌(1对也当2张单牌处理)
local TongZhangDaiPai = import ("..base.TongZhangDaiPai")
local M = class(TongZhangDaiPai)
function M:ctor(data, ruleDa... |
local appId = require("lib/gameID")
-- Use discordRPC.lua by Joel Schumacher (see lib/LICENCE.md for more information)
function init_discord()
discordRPC.initialize(appId, true)
now = os.time(os.date("*t"))
presence = {
details = "In the menu!",
startTimestamp = now,
larg... |
local Verification = require "Verification"
local Message = require "Message"
local Busy = require "Busy"
local MenuOperations = {}
local function prepare(self)
if self.sample==nil or self.sample.pSample==nil then
return
end
if self.mainDisplay:isMarked() then
local from = self.mainDisplay:getMarkStart(... |
---@meta
--=== ws2812_effects ===
---@class ws2812_effects
ws2812_effects = {}
---Initialize the effects library with the provided buffer\
---for the connected LED strip.
---@param buffer buffer @is a ws2812.buffer for the connected strip.
---@return nil
function ws2812_effects.init(buffer) end
---Start the animati... |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
description 'ESX Cargo Delivery'
version '1.0.4'
client_script {
'@es_extended/locale.lua',
'locales/br.lua',
'locales/en.lua',
'client/main.lua',
'GUI.lua',
'config.lua',
}
server_scripts {
'@mysql-async/lib/MySQL.lua',
'@es_extended/locale.l... |
require "iupx"
plot = iupx.pplot {TITLE = "Simple Data", AXS_BOUNDS={0,0,100,100}}
plot:AddSeries ({{0,0},{10,10},{20,30},{30,45}})
plot:AddSeries ({{40,40},{50,55},{60,60},{70,65}})
iupx.show_dialog{plot; title="Easy Plotting",size="QUARTERxQUARTER"} |
local class = require "class"
local tcp = require "internal.TCP"
local crypt = require "crypt"
local base64encode = crypt.base64encode
local type = type
local tonumber = tonumber
local tostring = tostring
local match = string.match
local fmt = string.format
local os_date = os.date
local concat = table.concat
local M... |
---------------------------------------------------------------------------------------------------
--
--filename: game.actions.AttackTarget
--date:2019/10/8 9:55:08
--author:
--desc:
--
---------------------------------------------------------------------------------------------------
require("game.bt.BehaviourNode")... |
if not modules then modules = { } end modules ['node-fnt'] = {
version = 1.001,
comment = "companion to font-ini.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files",
}
if not context then os... |
--[[ Spawn Template, defaults to values shown if line not provided
mobs:spawn({
name = "",
- Name of mob, must be provided e.g. "mymod:my_mob"
nodes = {"group:soil, "group:stone"},
- Nodes to spawn on top of.
neighbors = {"air"},
- Nodes to spawn beside.
min_light = 0,
- Minimum light level.
max... |
object_mobile_dressed_padawan_male_sul_02 = object_mobile_shared_dressed_padawan_male_sul_02:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_padawan_male_sul_02, "object/mobile/dressed_padawan_male_sul_02.iff")
|
-- Event notes hooks
function onEvent(name, value1, value2)
if name == 'Add Background' then
makeLuaSprite(value1, value1, 0, 0)
setScrollFactor(value1, value2);
addLuaSprite(value1, false)
end
end |
local calendar_demo = {}
local function event_handler(obj, event)
if(event == lvgl.EVENT_VALUE_CHANGED) then
local date = lvgl.calendar_get_pressed_date(obj);
-- print(string.format("Clicked date: %02d.%02d.%d\n", date.day, date.month, date.year))
end
end
function calendar_dem... |
local paths = require("Paths")
local event = require("Event")
--------------------------------------------------------------------------------
local filesystem = {
SORTING_NAME = 1,
SORTING_TYPE = 2,
SORTING_DATE = 3,
}
local BUFFER_SIZE = 1024
local BOOT_PROXY
local mountedProxies = {}
-----------------------... |
--
-- Copyright (c) 2012-2021 Daniele Bartolini et al.
-- License: https://github.com/dbartolini/crown/blob/master/LICENSE
--
function toolchain(build_dir, lib_dir)
newoption
{
trigger = "compiler",
value = "COMPILER",
description = "Choose compiler",
allowed =
{
{ "android-arm", "Android - ARM" ... |
return {
id = "greenbandtophat",
name = "Green Banded Top Hat",
description = "A fashionable top hat with a green band.",
type = "hat",
rarity = 2,
hidden = false,
}
|
return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 32,
height = 32,
tilewidth = 16,
tileheight = 16,
properties = {},
tilesets = {
{
name = "tiles",
firstgid = 1,
tilewidth = 64,
tileheight = 64,
spacing = 0,
margin = 0,
imag... |
local common = require "scripts.common"
local add_clusters_similarity = common.add_clusters_similarity
local compute_center_scale = common.compute_center_scale
local compute_clusters = common.compute_clusters
local load_CSV = common.load_CSV
local preprocess = common.preprocess
local split = common.split
loc... |
object_tangible_holiday_love_day_rewards_11_love_day_prop_2011_flowers_s01 = object_tangible_holiday_love_day_rewards_11_shared_love_day_prop_2011_flowers_s01:new {
}
ObjectTemplates:addTemplate(object_tangible_holiday_love_day_rewards_11_love_day_prop_2011_flowers_s01, "object/tangible/holiday/love_day/rewards_11/lo... |
-- Bootstrap packer
local install_path = vim.fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
PACKER_BOOTSTRAP = vim.fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
end
require('packer').startup(func... |
local debug = require(script.Parent.debug)
local getRefLabel = debug.getRefLabel
local function _separatedPath(path, separator)
if path == nil then
return {}
end
if separator == nil then
separator = '.'
end
local _path = path
local hasPercent = false
if separator ~= '%' and (pat... |
include "openssl/e_os2"
include "openssl/symhacks"
include "openssl/buffer"
include "openssl/evp"
include "openssl/bio"
include "openssl/stack"
include "openssl/asn1"
include "openssl/safestack"
include "openssl/ec"
include "openssl/ecdsa"
include "openssl/ecdh"
include "openssl/rsa"
include "openssl/dsa"
include "o... |
Make New Project
1)Make the Following
5 Buttons
2 Radiobuttons
2 Labels
1 Listboxes
1 Timers
1 OpenFileDialog
1 Checkbox
1 Textbox
2).Rename the Following
Quote:
Changing Name :
Listbox1 = "DLLs"
Changing Text :
Button1 = "Browse"
Button2 = "Remove"
Button3 = "Clear List"
Button4 = "Inject"
Button5 = "Quit"
RadioBut... |
require("lsp").setup "javascript"
|
PLUGIN.name = "Hallucinations"
PLUGIN.author = "SpicyLemones"
PLUGIN.description = "Woo crazy."
/*
--include("psyhealth.lua")
include("charcreation/sh_defs.lua")
low50 = {"nightmare/voice/1shot_breathing_01.wav","vj_player/heartbeat.wav",
"senator/psy_voices_1_r.ogg",
"npc/bloodsucker/sucker_growl... |
local function getStateStack()
stateStack = {}
stateStack.states = {}
stateStack.backCounter = 0
stateStack.stateChanged = false
function stateStack:current()
if #self.states == 0 then
return nil
elseif #self.states > 0 then
return self.states[#self.states]... |
-- VARIABLES ===================================================================
BlockadeHealth = 3
-- FUNCTIONS ===================================================================
function Constructor()
end
function OnUpdate(dt)
end
-- Deal Core Damage =============================================================... |
minetest.register_biome({
name = "cheese",
node_top = "mobs:cheeseblock",
depth_top = 1,
node_stone = "mobs:cheeseblock",
node_water_top = "mobs:cheeseblock",
depth_water_top = 10,
y_max = 4,
y_min = -4,
heat_point = 20,
humidity_point = 65,
})
weird_biomes.include("cheese_decor... |
-- # Misc lib stuff
-- ## Random Stuff
do
local Seed0, Seed = 10014, 10014
-- set seed
function srand(seed) Seed=seed or Seed0 end
-- return random num
function rand(lo,hi)
lo, hi = lo or 0, hi or 1
Seed = (16807 * Seed) % 2147483647
return lo + (hi-lo) * Seed / 2147483647 end
-- return... |
---@class CS.UnityEngine.SphereCollider : CS.UnityEngine.Collider
---@field public center CS.UnityEngine.Vector3
---@field public radius number
---@type CS.UnityEngine.SphereCollider
CS.UnityEngine.SphereCollider = { }
---@return CS.UnityEngine.SphereCollider
function CS.UnityEngine.SphereCollider.New() end
return CS.... |
-- Copyright (C) 2011 - 2013 David Reid. See included LICENCE file.
function GTGUI.Element:ParticleSystemComponentPanel()
self:PanelGroupBox("Particle System", true);
-- File Path
self.FilePath = GTGUI.Server.CreateElement(self.Body, "particle-component-panel-file-path-textbox");
-- Play on ... |
UIWidget = class(function(a)
end)
function pickWidget(widgets, point)
for i,widget in ipairs(widgets) do
if (widget:contains(point)) then
return widget
end
end
return nil
end |
if redis.call("get", KEYS[1]) == ARGV[1] then
return redis.call("pexpire", KEYS[1], ARGV[2])
else
return redis.error_reply("No match")
end |
fx_version 'adamant'
game 'gta5'
author 'AdayDev'
description 'Aday Terrorist Bomb Bag'
version '1.0.0'
shared_script '@pmc-callbacks/import.lua'
server_scripts {
'server/main.lua'
}
client_scripts {
'client/main.lua'
}
|
function MarineCommander:TriggerHealingField(position, trace)
if not trace or trace.fraction ~= 1 then
CreateEntity(HealingField.kMapName, position, self:GetTeamNumber())
-- create custom sound for marine commander
--StartSoundEffectForPlayer(Observatory.kCommanderScanSound, self)... |
local S = aurum.get_translator()
awards.register_award("aurum_awards:first_blood", {
title = S"First Blood",
description = S"Slay any mob.",
icon = minetest.registered_items["aurum_tools:copper_machete"].inventory_image,
difficulty = 2,
trigger = {
type = "mob_kill",
target = 1,
},
})
awards.register_award(... |
-------------------------------
require 'torch'
require 'xlua'
require 'optim'
-------------------------------
local trainer = {}
-- C'Tor
function trainer:new(data_type, clipping)
-- CUDA?
if data_type == 'cuda' then
model:cuda()
criterion:cuda()
-- Log results to files
trainLogger = o... |
require("Framework.toLua.tolua")
return
|
-- See LICENSE for terms
if not g_AvailableDlc.shepard then
return
end
local mod_OpenOnSelect
-- fired when settings are changed/init
local function ModOptions()
mod_OpenOnSelect = CurrentModOptions:GetProperty("OpenOnSelect")
end
-- load default/saved settings
OnMsg.ModsReloaded = ModOptions
-- fired when optio... |
temple_guardian_wrath = class(AbilityBaseClass)
LinkLuaModifier( "modifier_temple_guardian_wrath_thinker", "modifiers/modifier_temple_guardian_wrath_thinker", LUA_MODIFIER_MOTION_NONE )
LinkLuaModifier( "modifier_temple_guardian_immunity", "modifiers/modifier_temple_guardian_immunity", LUA_MODIFIER_MOTION_NONE )
-----... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.