content stringlengths 5 1.05M |
|---|
---@meta
--=== u8g2 ===
---@class u8g2
---I²C Display Drivers
---@field ld7032_i2c_60x32 function
---@field sh1106_i2c_128x64_vcomh0 function
---@field sh1106_i2c_128x64_noname function
---@field sh1107_i2c_64x128 function
---@field sh1107_i2c_128x128 function
---@field sh1107_i2c_seeed_96x96 function
---@field sh110... |
--[[
-- Copyright(c) 2019, All Rights Reserved
-- Created: 2019/4/20
--
-- @file l_ncm_x.lua
-- @brief 内置库require("l_ncm_x"), net client man x86模块
-- \n require("l_ncm_x")
-- @version 0.1
-- @history 修改历史
-- \n 2019/14/20 0.1 创建文件
-- @warning 没有警告
--]]
local l_ncm_x = {}
-- @brief 创建nsm对象
-- @param [in] na... |
local actions = require('telescope.actions')
local config = require('telescope.config')
local builtin = require('telescope.builtin')
require('telescope').load_extension('yabs')
vim.keymap.set('n', '<c-p>',
function ()
local ok = pcall(builtin.git_files)
if not ok then
builtin.find_files()
end
en... |
local mod = DBM:NewMod(2357, "DBM-Party-BfA", 11, 1178)
local L = mod:GetLocalizedStrings()
mod:SetRevision("2019041813709")
mod:SetCreatureID(150159)
mod:SetEncounterID(2290)
mod:SetZone()
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_AURA_APPLIED 297257 297261",
-- "SPELL_AURA_REMOVED",
"SPELL... |
----------------------------------------------------------------------
require('mobdebug').start()
require 'torch' -- torch
require 'nn'
require 'rnn'
require 'xlua'
dofile ('model/structured_hinge_loss.lua') -- new loss function
d = dofile('common/data.lua')
m = dofile('model/model.lua')
tr = dofile('train.lua')
--... |
local present, autotag = pcall(require, "nvim-ts-autotag")
if not present then
return
end
autotag.setup {
filetypes = {"html", "xml", "xhtml", "phtml", "javascript", "javascriptreact", "typescriptreact", "svelte", "vue"},
skip_tags = {
"area",
"base",
"br",
"col",
"c... |
--- Gets local translator for player
-- @module ClientTranslator
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local LocalizationService = game:GetService("LocalizationService")
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedSt... |
return {'femel','femelaar','femelarij','femelen','feminien','feminisatie','feminisering','feminisme','feminist','feministe','feministisch','femke','fem','femme','femmie','femmy','femelaars','femelden','femelt','feministen','feministes','feministische','feministischer','femelaren','femelde','femelaartje','feminiene','fe... |
local Path = require('plenary.path')
local actions = require('telescope.actions')
local finders = require('telescope.finders')
local pickers = require('telescope.pickers')
local conf = require('telescope.config').values
local M = {}
M.params = function()
return {
textDocument = vim.lsp.util.make_text_document... |
-- Combat settings
-- NOTE: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced"
worldType = "pvp"
hotkeyAimbotEnabled = true
protectionLevel = 100
killsToRedSkull = 3
killsToBlackSkull = 6
pzLocked = 60000
removeChargesFromRunes = true
timeToDecreaseFrags = 24 * 60 * 60 * 1000
whiteSkullTime = 15 * 60 * ... |
---
---
--- file: lua_logging.lua
---
---
---
---
---
logging = {}
logging.emailFlag = false
logging.level = 1
logging.defaultHeader = logging.defaultHeaderFunction
logging.defaultEntry = logging.defaultEntryFunction
logging.detailHelp ={}
function logging.description()
return "tgs logging manager"
end
functi... |
--[[
--=====================================================================================================--
Script Name: Spawn From Sky, for SAPP (PC & CE)
Description: This mod will spawn the player from the sky.
The player will have 7s of invulnerability.
~ requested by RhaegarTargaryen on opencarnag... |
require 'zoetrope'
Block = Tile:extend
{
width = 16,
height = 16,
blueGem = 'tests/assets/bluegem.png',
greenGem = 'tests/assets/greengem.png',
onNew = function (self)
if (math.random() > 0.5) then
self.image = self.blueGem
else
self.image = self.greenGem
end
self.velocity.x = math.random(-100, ... |
requireInjector(getfenv(1))
local Event = require('event')
local GPS = require('gps')
local ChestAdapter = require('chestAdapter18')
local Point = require('point')
local Socket = require('socket')
local Util = require('util')
if not device.wireless_modem then
error('Modem is req... |
--
local ctypes = require('ctypes')
local base = require('mx.base')
local _LIB, check_call = base._LIB, base.check_call
--
local M = {}
--- Set size limit on bulk execution.
---
--- Bulk execution bundles many operators to run together.
--- This can improve performance when running a lot of small
--- operators sequen... |
local EndGameDialog = require("screens/endgamedialog")
local assets =
{
Asset("ANIM", "anim/maxwell_throne.zip"),
Asset("SOUND", "sound/sanity.fsb"),
Asset("SOUND", "sound/common.fsb"),
Asset("SOUND", "sound/wilson.fsb")
}
local prefabs =
{
"maxwellendgame",
"puppet_wilson",
"puppet_willow",
... |
-- P27 - [练习 1.11]
-- 递归版本
function f(n)
if n < 3 then
return n
else
return f(n - 1) + 2 * f(n - 2) + 3 * f(n - 3)
end
end
-- 迭代版本
function f2(n)
function iter(a, b, c, count)
if count == 0 then
return c
else
return iter(b, c, c + 2 * b + 3 * ... |
-----------------------------------------
-- ID: 4576
-- Item: wizard_cookie
-- Food Effect: 5Min, All Races
-----------------------------------------
-- MP Recovered While Healing 7
-- Plantoid Killer 12
-- Slow Resist 12
-----------------------------------------
require("scripts/globals/status")
require("scripts/glob... |
hexchat.register("audacious", "1", "Audacious currently playing script")
local function get_np()
local handle = assert(io.popen("audtool current-song"))
local res = string.gsub(assert(handle:read("*a")), "\n", "")
handle:close()
hexchat.command("SAY np: " .. res)
return hexchat.EAT_ALL
end
hexchat... |
--[[
UTL.Stringify(this, [docol], [spacing_h], [spacing_v], [preindent])
Converts complex object to string
]]
function UTL.Stringify(this, docol, spacing_h, spacing_v, preindent)
local function _stringify(stack, this, spacing_h, spacing_v, space_n, parsed)
local this_type = type(this)
if this_type == "str... |
newoption {
trigger = "SFML_INSTALL_DIR",
value = "path",
description = "Path to SFML install directory"
}
SFML_INSTALL_DIR = _OPTIONS["SFML_INSTALL_DIR"]
WINDOWS = os.host() == "windows"
LINUX = os.host() == "linux"
if _ACTION and string.startswith(_ACTION, "vs20") and not SFML_INSTALL_DIR then
error("Please... |
if not CLIENT then return end
guthwhitelistsystem.setPanel( "Search", "icon16/report_magnify.png", math.huge, function()
local pnlS = vgui.Create( "DPanel" ) -- panel search
return pnlS
end )
|
local sub = string.sub
local StringIO = {}
StringIO.new = function(self, str)
local stringio = {
str = str,
cur = 1
}
setmetatable(stringio, StringIO)
self.__index = StringIO
return stringio
end
StringIO.read = function(self, num)
local new_cur = self.cur + num - 1
local r... |
NDefines.NGraphics.COUNTRY_FLAG_TEX_MAX_SIZE = 2048
NDefines.NGraphics.COUNTRY_FLAG_SMALL_TEX_MAX_SIZE = 512
NDefines.NGraphics.COUNTRY_FLAG_STRIPE_TEX_MAX_WIDTH = 10
NDefines.NGraphics.COUNTRY_FLAG_STRIPE_TEX_MAX_HEIGHT = 8196
NDefines.NGraphics.COUNTRY_FLAG_LARGE_STRIPE_MAX_WIDTH = 41
NDefines.NGraphics.COUNTRY_FLAG_... |
env = require('test_run')
test_run = env.new()
-- write data recover from latest snapshot and logs
test_run:cmd("restart server default")
engine = test_run:get_cfg('engine')
space = box.schema.space.create('test', { engine = engine })
index = space:create_index('primary')
space:insert({0})
box.snapshot()
space:inser... |
local MainUISkillBtnView = BaseClass()
function MainUISkillBtnView:DefaultVar( )
return {
UIConfig = {
prefab_path = "Assets/AssetBundleRes/ui/mainui/MainUISkillBtnView.prefab",
canvas_name = "MainUI",
components = {
-- {UI.HideOtherView},
{UI.DelayDestroy, {delay_time=5}},
},
},
}
end
function... |
local Bridge = {}
local Utils = require "util.utils"
local json = require "external.json"
local socket = require "socket"
local memory = require "util.memory"
local client = nil
local timeStopped = true
local timeMin = 0
local timeFrames = 0
local function send(prefix, body)
if client then
local message = prefi... |
local playsession = {
{"mewmew", {779952}},
{"Zory", {1079622}},
{"JoaoPinga", {226294}},
{"BallisticGamer04", {1066210}},
{"Krezal", {1054954}},
{"Frexich", {5772}},
{"Olekplane1", {341186}},
{"xubos", {837528}},
{"Podonkov", {4813}},
{"shakaman", {298022}},
{"sohu1233", {5816}},
{"JailsonBR", {473928}},
... |
--[[
Copyright 2012-2020 João Cardoso
PetTracker is distributed under the terms of the GNU General Public License (Version 3).
As a special exception, the copyright holders of this addon do not give permission to
redistribute and/or modify it.
This addon is distributed in the hope that it will be useful,
but WITHOUT A... |
AwardState = Class {
__includes = BaseState
}
local font = love.graphics.newFont('asset/fonts/04B_08__.TTF', 30)
function AwardState:enter(params)
self.selectedIngredients = SortBurger(params.selectedIngredients)
self.fallingIngredients = params.fallingIngredients
self.falling = params.falling
self... |
if engine.ActiveGamemode() ~= "terrortown" then return end
if SERVER then
AddCSLuaFile()
resource.AddFile("materials/vgui/ttt/dynamic/roles/icon_slk.vmt")
end
roles.InitCustomTeam(ROLE.name, {
icon = "vgui/ttt/dynamic/roles/icon_slk",
color = Color(0, 49, 82, 255)
})
function ROLE:PreInitialize()
... |
local get_f_fops = function(npl, nI)
local cnt = 0
for i = 2, #npl do
local factor
if i==#npl then
factor = 6
else
factor = 2
end
cnt = cnt + (npl[i-1] * npl[i] * nI * factor)
end
return cnt
end
local get_b_fops = function(npl, nI)
local cnt = 0
local da_last_fops = npl[#npl... |
object_mobile_coa_aclo_saboteur_zabrak_f = object_mobile_shared_coa_aclo_saboteur_zabrak_f:new {
}
ObjectTemplates:addTemplate(object_mobile_coa_aclo_saboteur_zabrak_f, "object/mobile/coa_aclo_saboteur_zabrak_f.iff")
|
sound.Add({ name = "V92_Uni_QuickMove",
channel = CHAN_WEAPON,
level = 100,
volume = 1.0,
pitch = { 95, 105 },
sound = "jessev92/weapons/univ/throw_gren.wav",
})
sound.Add({ name = "V92_Uni_Draw",
channel = CHAN_BODY,
level = 75,
volume = 1.0,
pitch = { 95, 105 },
sound = "jessev92/weapons/univ/d... |
local light = love.graphics.newShader[[
// Packed light data map
extern Image map;
// Number of lights
extern number w;
// Users screen info
extern number screenwidth;
extern number screenheight;
// Global light power
extern number lightpow;
//Effect
vec4 effect( vec4 color, Image texture,
... |
----------------------------------------------------------------------------------
--- Total RP 3
--- Pets/mounts managements
--- ---------------------------------------------------------------------------
--- Copyright 2014 Sylvain Cossement (telkostrasz@telkostrasz.be)
--- Copyright 2014-2019 Morgane "Ellypse" Parize... |
-----------------------------------------
-- ID: 15651
-- Item: Ice Trousers
-- Item Effect: Ice Spikes
-----------------------------------------
require("scripts/globals/settings")
-----------------------------------------
function onItemCheck(target)
return 0
end
function onItemUse(target)
target:addStatus... |
local C = Class:extend()
-- local ITEM_DATA = require 'database.items'
local OPTIONAL_REPLACES = {
'Max health increased by ',
'Max life increased by ',
'<ACH0041', -- Cave Story+ only, trigger achievement.
}
function C:new(path)
logInfo('reading TSC: ' .. path)
local file = lf.newFile(path)
assert(file... |
name = "Double Macguffin"
desc = function(self, who)
local desc = {}
desc[#desc+1] = "Return the macguffin to the son."
if self:isCompleted("macguffin-returned") then
desc[#desc+1] = "#LIGHT_GREEN#* You have returned the macguffin!#WHITE#"
else
desc[#desc+1] = "#SLATE#* You must return the macguffin to the son... |
-- Constants
NUM_INVENTORY_SLOTS = 18;
TRUE = 1;
FALSE = 0;
DIRECTION_EAST = 0.0f;
DIRECTION_NORTH = 90.0f;
DIRECTION_WEST = 180.0f;
DIRECTION_SOUTH = 270.0f;
PI = 3.141592f;
ATTITUDE_NEUTRAL = 0;
ATTITUDE_AGGRESSIVE = 1;
ATTITUDE_DEFENSIVE = 2;
ATTITUDE_SPECIAL = 3;
TALKVOLUME_TALK = 0;
TALKVOLUME_WHISPER = 1;
TALKVO... |
-- Copyright (c) 2020 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
local groupBy = require "moonpie.tables.group_by"
return function(set, func)
local g = groupBy(set, func)
local out = {}
for k, v in pairs(g) do
out[k] = #v
end
... |
local read_file=require("source")
local sink=require("sink")
local tb_key={"key1","key2"}
local tb={}
local queue_tb={}
local interval=10
local regex_str="(%d+) (%w+)"
local log_file="./demo/hello"
local sleep_interval=10
local sink_option = "hello world"
function mk_table(...)
for i=1, arg.n
do
... |
require 'xlua'
require 'optim'
require 'image'
require 'cunn'
require 'cudnn'
local c = require 'trepl.colorize'
local json = require 'cjson'
paths.dofile'augmentation.lua'
-- for memory optimizations and graph generation
local optnet = require 'optnet'
local graphgen = require 'optnet.graphgen'
--local iterm = requir... |
--- === plugins.finalcutpro.advanced.disablewaveforms ===
---
--- Disable Waveforms Plugin.
local require = require
local fcp = require "cp.apple.finalcutpro"
local i18n = require "cp.i18n"
local prop = require "cp.prop"
local mod = {}
--- plugins.finalcutpro.advanced.disablewavefo... |
-- Define sets used by this job file.
function init_gear_sets()
sets.engaged = {ammo="Automaton Oil +3",
head="Blistering Sallet +1",neck="Shulmanu Collar",ear1="Telos Earring",ear2="Dignitary's Earring",
body="Tali'ah Manteel +2",hands="Herculean Gloves",ring1="Gere Ring",ring2="Niqmaddu Ring",
... |
local L = {}
L.Binding = "Binding"
L.All = "All"
L.Account = "Account"
L.Equip = "On Equip"
L.Use = "On Use"
L.Pickup = "On Pickup"
L.Soulbound = "Soulbound"
local tooltipCache = setmetatable({}, {__index = function(t, k) local v = {} t[k] = v return v end})
local tooltipScanner = _G['LibItemSearchTooltipScanner'] or... |
external_services = {
["__DOMAIN__"] = {
[1] = {
port = "__PORT_STUN__",
transport = "udp",
type = "stun"
},
[2] = {
port = "__PORT_STUN__",
transport = "tcp",
type = "stun"
},
[3] = {
port ... |
--[[
file:mahjongLogic.lua
desc:麻将扑克
auth:Carol Luo
]]
local ipairs = ipairs
local math = require("extend_math")
local table = require("extend_table")
local class = require("class")
local gameLogic = require("game.logic")
---@class mahjongLogic:gameLogic @麻将扑克
local logic = class(gameLogic)
local this = l... |
local CommonFunc = {
setFeatureEnabled = function (this, path, status)
local feature = this:getFeature(path)
if (feature) then
feature:setFeatureStatus(EffectSdk.BEF_FEATURE_STATUS_ENABLED, status)
end
end,
}
local init_state = 1
local timer_id_13 = 101
local timer_id_15 = 201
local timer_id_17 = 3... |
object_building_kashyyyk_poi_kash_hut_generic_destroyed_s01 = object_building_kashyyyk_shared_poi_kash_hut_generic_destroyed_s01:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_poi_kash_hut_generic_destroyed_s01, "object/building/kashyyyk/poi_kash_hut_generic_destroyed_s01.iff")
|
print("\n\n\nWelcome to a new awesome lifespan!\n")
-- TODO add the date/some timestamp/a random quote
-- 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")
package.path = (package.path -- luacheck... |
--[[
Version: 2.52
Updated: September 7, 2015
Changelog: https://raw.githubusercontent.com/Feeez/BoL-Paid/master/ahri.changelog
Thread Link: http://botoflegends.com/forum/topic/37568-/
]]
if myHero.charName ~= 'Ahri' or not VIP_USER then return end
_G.AhriScriptName = _ENV.FILE_NAME
-- Set this to true if you ex... |
local gui00 = "181818"
local gui01 = "282828"
local gui02 = "383838"
local gui03 = "585858"
local gui04 = "b8b8b8"
local gui05 = "d8d8d8"
local gui06 = "e8e8e8"
local gui07 = "f8f8f8"
local gui08 = "ab4642"
local gui09 = "dc9656"
local gui0A = "f7ca88"
local gui0B = "a1b56c"
local gui0C = "86c1b9"
local gui0D = "7cafc2... |
version = 4
volume = 0.0
randSampContainer = 0
|
-- DEBUG - Remove later
-- /relog
-- Allows the player to invoke the create_player event as if
-- they had just connected to the server.
RegisterCommand('relog', function()
if not DoesCamExist(cam) then cam = CreateCam('DEFAULT_SCRIPTED_CAMERA', true) end
SetCamParams(cam, -1756.53, -1117.24, 18.0, 6.0, 0.0, 0.0,... |
RouterModes = {
Blacklist = "Blacklist",
NotConfigured = "Blacklist", --Per the FICST DOCS @ https://docs.ficsit.app/ficsit-networks/0.0.1/buildings/NetworkRouter.html
Whitelist = "Whitelist"
}
NetworkRouter = function(com, allowInbound)
local this = {
name = com.nick,
component = com,
portFilterMode = ... |
getgenv().point = "ACT:2"
-- Attributes
getgenv().cdelay = 1 -- Try to make it slower if u kee running in ratelimits, s dont spam yo keys to much lol
|
---@meta
---@class cc.Grid3D :cc.GridBase
local Grid3D={ }
cc.Grid3D=Grid3D
---*
---@return boolean
function Grid3D:getNeedDepthTestForBlit () end
---* Getter and Setter for depth test state when blit.<br>
---* js NA
---@param neededDepthTest boolean
---@return self
function Grid3D:setNeedDepthTestForBlit (needed... |
local Players = game:GetService('Players')
local UserInputService = game:GetService('UserInputService')
local TweenService = game:GetService('TweenService')
local RunService = game:GetService('RunService')
local ContentProvider = game:GetService('ContentProvider')
local Info = TweenInfo.new()
local Player = Players.Lo... |
addEvent("afkKickSelf", true)
addEventHandler("afkKickSelf", root, function (reason)
kickPlayer(client, reason)
end)
|
do
local function get_message_callback (extra , success, result)
if result.service then
local action = result.action.type
if action == 'chat_add_user' or action == 'chat_del_user' or action == 'chat_rename' or action == 'chat_change_photo' then
if result.action.user then
user_id = result.action.user.peer_... |
-- This file is subject to copyright - contact swampservers@gmail.com for more information.
-- INSTALL: CINEMA
include('shared.lua')
function SWEP:DrawWorldModel()
local ply = self:GetOwner()
local canScale = self.canScale or 1.25
self:SetModelScale(canScale, 0)
self:SetSubMaterial()
if IsValid(p... |
local SKILL = {}
SKILL.Cost = function(level) return level * 2 + 1 end
SKILL.CostPrestiege = function(level) return level + 1 end
SKILL.Mult = 0.05
SKILL.MaxLevel = 12
SKILL.MaxLevelPrestige = 3
SKILL.Requirements = {Level = 5}
return SKILL |
-- dir (0~ -math.pi), so the z alway be bottom
Rectangle = Shape:extend()
function Rectangle:new(x, y, z, lenX, lenY, dir, cFill, cLine, cMesh)
Rectangle.super.new(self, x, y, z, cFill, cLine, cMesh)
self.lenX = lenX
self.lenY = lenY
self.dir = 0
if dir~=nil then
if dir > 0 or dir < -math.... |
data:extend({
{--Group
type = "item-group",
name = "re-railworld",
order = "daa-d",
inventory_order = "d-a-d",
icon = "__RETech__/graphics/item-group/test.png",
icon_size = 64,
},
{--Machinery Workshops
type = "item-subgroup",
name = "re-workshop",
group = "re-railworld",
order = "a",
},
{--Ele... |
---
-- quick框架的一些扩展函数以及自定义函数
--
-- - xquick = require("xquick")
-- - 需要socket模块支持
--
-- @module xquick
require("socket")
------------------------------------------------------------------------------------------------------------------------
--- xquick 模块函数
-- @type xquick
--------------------------------------------... |
local tl = require("tl")
local util = require("spec.util")
describe("syntax errors", function()
it("missing expression", util.check_syntax_error([[
local x =
]], {
{ y = 1, msg = "expected an expression" },
}))
it("in enum", util.check_syntax_error([[
local Direction = enum
"nor... |
AdvNut.hook.Add("BuildHelpOptions", "AdvNut_VersionCounter", function(data, tree)
data:AddHelp("버전", function(tree)
return nut.lang.Get("framework_version", nut.config.frameworkVersion);
end, "icon16/server.png");
end); |
local addNetworkString = util.AddNetworkString
local recv = net.Receive
local vec3 = Vector
local l2w = util.LocalToWorld
local ang = Angle
local findInBox = ents.FindInBox
local clr = Color
addNetworkString("VBNET::Jobs::Medic::SpawnAmbulance")
local ambuSpawnPoints = {
{ vec3(-9165, 9033, 64), ang(0, 180, 0) },
... |
-- List input items for the building being built.
--[====[
devel/list-filters
==================
List input items for the building currently being built.
This is where the filters in lua/dfhack/buildings.lua come from.
]====]
local dumper = require 'dumper'
local utils = require 'utils'
local buildings =... |
//Base Admin Commands
//This is designed to replace the base admin commands.
local function PrintStatus(client)
DAK:ForAllPlayers(function (player, client)
local playerClient = Server.GetOwner(player)
if not playerClient then
Shared.Message("playerClient is nil in PrintStatus, alert Brian")
else
local pla... |
local crypt = require "client.crypt"
local util = require 'client_util'
local protobuf = require 'protobuf'
local c_game_niuniu = require "c_game_niuniu"
protobuf.register_file("protocol/netmsg.pb")
protobuf.register_file("protocol/game.pb")
protobuf.register_file("protocol/niuniu.pb")
local fd
local c_game = {}
... |
util.AddNetworkString("ghomes_force_sell")
util.AddNetworkString("ghomes_delete_home")
util.AddNetworkString("ghomes_reset_data")
util.AddNetworkString("ghomes_gettable")
util.AddNetworkString("ghomes_getsingletable")
util.AddNetworkString("ghomes_command")
util.AddNetworkString("ghomes_newhouse")
util.AddNetworkString... |
Octopus = {}
Import("Core.Animation.Animator");
Import("Core.Collision");
Import("Core.MathExp");
Import("Core.Dialog");
Import("Core.LevelSprite");
GetHook("TextDisplay");
UseLocalTrigger("Init");
UseLocalTrigger("Update");
function round(num)
if num >= 0 then return math.floor(num+.5)
else return math.c... |
object_building_kashyyyk_decd_wroshyr_twisted_tree_dead = object_building_kashyyyk_shared_decd_wroshyr_twisted_tree_dead:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_decd_wroshyr_twisted_tree_dead, "object/building/kashyyyk/decd_wroshyr_twisted_tree_dead.iff")
|
return {
{
['name'] = 'light',
['repeat'] = true,
['ws'] = L{'Chant du Cygne','Chant du Cygne'}
},
{
['name'] = 'radiance',
['repeat'] = true,
['ws'] = L{'Requiescat','Burning Blade','Flat Blade','Savage Blade','Chant du Cygne'}
},
{
['name'] = 'darkness',
['repeat'] = true,
['ws'] = L{'Requiesca... |
local fzf = {}
local utils = require('partials/utils')
vim.env.FZF_DEFAULT_OPTS = '--layout=reverse --bind ctrl-d:preview-down,ctrl-u:preview-up'
vim.g.fzf_layout = { window = { width = 0.8, height = 0.8 } }
vim.g.fzf_history_dir = '~/.local/share/fzf-history'
function fzf.goto_def(lines)
vim.cmd(string.format('e +B... |
----------------------------------------
--
-- Copyright (c) 2015, 128 Technology, Inc.
--
-- author: Hadriel Kaplan <hadriel@128technology.com>
--
-- This code is licensed under the MIT license.
--
-- Version: 1.0
--
------------------------------------------
-- prevent wireshark loading this file as a plugin
if not ... |
--[[
s:UI Unit Frame Layout Settings: Target of Target
Martin Karer / Sezz, 2014
http://www.sezz.at
--]]
local S = Apollo.GetPackage("Gemini:Addon-1.1").tPackage:GetAddon("SezzUI");
local UnitFramesLayout = S:GetModule("UnitFramesCore"):GetModule("Layout");
------------------------------------------... |
//-------------------------------------------------------------------------------
// Cop incentive
// incetivieses being a cop by giving a small payment to all cops on arrest
//
//by: Mikomi
//7/20/17
//-------------------------------------------------------------------------------
ciPolice = { "Mayor", ... |
local lsp_name = "elixirls"
local config = require("lspmanager.utilities").get_config(lsp_name)
local installers = require("lspmanager.installers")
local os = require("lspmanager.os")
local cmd_exec = "./language_server"
if os.get_os == os.OSes.Windows then
cmd_exec = cmd_exec .. ".bat"
else
cmd_exec = cmd_ex... |
function pairs (t)
return next, t, nil
end
for k, v in next, t do
...
end |
---------------------------------------------------------------------------------------------
-- Requirement summary:
-- [Policies]: "user_consent_prompt" field is included to the <appID>`s policies
--
-- Description:
-- Functional grouping that has "user_consent_prompt" field, is included to the <appID>`s policies
-- ... |
-- module Control.Monad.Eff.Unsafe
local Control_Monad_Eff_Unsafe = {}
Control_Monad_Eff_Unsafe.unsafeInterleaveEff = function (f)
return f
end
return Control_Monad_Eff_Unsafe
|
function nn.Module:reuseMem()
self.reuse = true
return self
end
function nn.Module:setReuse()
if self.reuse then
self.gradInput = self.output
end
end
function recognition_model1(x_size, y_size, z_size)
local inputs = {}
table.insert(inputs, nn.Identity()()) -- x
table.insert(inputs, n... |
local PlayerInfoLayer = class("PlayerInfoLayer")
PlayerInfoLayer.__index = PlayerInfoLayer
local Constants = require "Constants"
local Settings = require "Settings"
local SoundApp = require "SoundApp"
local const = require "Const_YunCheng"
local UIHelper = require "UIHelper"
function PlayerInfoLayer.extend(target)
... |
local skynet = require "skynet"
local list = require "common.list"
local objmgr = require "objmgr"
local assert = assert
local k = 0
local lasttick = 0
local cls = class("context")
function cls:ctor(id, ... )
-- body
-- self.ball = ball()
-- self.pool = Chestnut.EntitasPP.Pool.Create()
-- self.joinsystem = Chestn... |
return function()
local modes = {
'rainbow','random','run_color','run_rainbow',
'run_random','slow_random','smooth_random',
'spark_rainbow','spark_random','traffic',
'pulse_rainbow', 'wave_rainbow', 'smooth_rainbow',
'wblink','wblink', 'blink','blink'
}
clr_timers()
... |
local Piece = require 'tetris.components.piece'
local Ruleset = require 'tetris.rulesets.ruleset'
local CRS = Ruleset:extend()
CRS.name = "Cambridge"
CRS.hash = "Cambridge"
CRS.world = true
CRS.spawn_positions = {
I = { x=5, y=4 },
J = { x=4, y=5 },
L = { x=4, y=5 },
O = { x=5, y=5 },
S = { x=4, y=5 },
T = { x... |
-------------------------------------------------------------------------
-- Created by Adriano Spadoni
-- alte_br@hotmail.com
-- CoronaSDK was used for this game.
-------------------------------------------------------------------------
-- Global gemsSheet, made global to save us loading and removing it each gem!
if... |
local ldb = require("lua-db")
return function(w,h)
local hw,hh = w/2,h/2
local minhd = math.min(hw,hh)
local function circle_sdf(x,y,radius)
return math.sqrt(x*x+y*y)-radius
end
local function box_sdf(x,y,bw,bh)
local dx = math.abs(x)-bw
local dy = math.abs(y)-bh
local d = math.sqrt(math.max(dx,0)^2+mat... |
local r = {}
r.R = {
command = {"R"},
}
return r
|
--[[
Desc: Extension for string library
Author: SerDing
Since: 2017-07-28 21:54:14
Alter: 2019-10-24 23:28:48
]]
---@class Engine.String
local _STRING = {}
--- @param str string
--- @param delimiter string
--- @return table
function _STRING.Split(str, delimiter)
if str then
local result = {}
str = str..de... |
pga = 0
local tickCar = getTickCount()
function setPoliceLight()
pga = pga + 0.003
for i,player in ipairs(getElementsByType("player")) do
local vehicle = getPedOccupiedVehicle(player)
if getElementData(player,"vehicleColor") and vehicle then
local colorType = getElementData(player,"vehicleColor")
l... |
resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
client_scripts {
'@es_extended/locale.lua',
'translation/sv.lua',
'translation/en.lua',
'config.lua',
'client/main.lua',
}
|
--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--
-- Shell Screen template, associated code.
-- Some tuning values
gShellAnimTime = 0.4 -- default on animations if not specified
gPrevMovie = nil
gMovieAlwaysPlay = nil
-- Helper array. Turns a StateVoice icon into UV coords.
-- Val... |
function connectToVPN(e)
-- if e == hs.caffeinate.watcher.screensDidUnlock then
hs.applescript([[
ignoring application responses
tell application "System Events" to tell process "GlobalProtect"
click menu bar item 1 of menu bar 2
end tell
end ignoring
do shell script "killall System\... |
ability_quill_spray = class({})
LinkLuaModifier('modifier_ability_quill_spray_debuff_active', 'heroes/bristleback/quill_spray', LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier('modifier_ability_quill_spray_debuff', 'heroes/bristleback/quill_spray', LUA_MODIFIER_MOTION_NONE)
function ability_quill_spray:OnSpellStart()
self.c... |
require 'lcron'
require 'lunit'
module('lcron_testcase', lunit.testcase, package.seeall)
-- January 2001
-- Su Mo Tu We Th Fr Sa
-- 1 2 3 4 5 6
-- 7 8 9 10 11 12 13
-- 14 15 16 17 18 19 20
-- 21 22 23 24 25 26 27
-- 28 29 30 31
local basic_time = os.time {
year = 2001,
month... |
tripwire_trap = {
click = function(block, npc)
if (block.blType == BL_PC) then
-- Carnage etc.
if block.state == 1 then
return
end
if not block:canPK(block) then
return
end
end
block.attacker = npc.owner
removeTrapItem(npc)
npc:delete()
tripwire.cast(npc, block)
block:updateState(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.