content stringlengths 5 1.05M |
|---|
function cAPI.RequestModel(hash)
hash = tonumber(hash)
if not IsModelValid(hash) then
return
end
if not HasModelLoaded(hash) then
RequestModel(hash)
while not HasModelLoaded(hash) do
Citizen.Wait(10)
end
end
end
function cAPI.RequestAnimDict(dictionary)
if not HasAnimDictLoaded(dictionary) then
Re... |
local friendMainLayout = require(ViewPath.."hall/community/friend/friendMainLayout");
local community_pin_map = require("qnFiles/qnPlist/hall/community_pin")
local FriendMainLayout = class(CommonGameLayer,false);
local h_index = 0;
local getIndex = function(self)
h_index = h_index + 1;
ret... |
#!/usr/bin/env lua
if ... then
module(..., package.seeall)
end
if not ... then
print('Hello World!')
end
|
local otherfile = require("otherfile")
local util = require("util")
local subdirfile = require("subdir.subdirfile")
local othersubdirfile = require("subdir.othersubdirfile")
local subsubdirfile = require("subdir.subsubdir.subsubdirfile")
return {
otherFileFromDependency1 = otherfile.someFunc,
callUtil = functi... |
local fi = data.raw["item-group"]["food-industry"]
if fi == nil then
data:extend({
{
type = "autoplace-control",
category = "resource",
name = "food-plant",
order = "w",
richness = false,
},
{
type = "fuel-category",
... |
commandArray = {}
if devicechanged['Bathroom Motion'] == 'On' then
if timeofday['Nighttime'] == true then
commandArray['Bathroom Lights'] = 'On'
end
else
commandArray['Bathroom Lights'] = 'Off'
end
return commandArray
|
require('actors/Module.lua')
Weapon = class('Weapon', Module)
function Weapon:initialize(centerX, centerY, coolDown, projectileClass, quad, source)
super.initialize(self, centerX, centerY, quad)
self.coolDown = coolDown
self.projectileClass = projectileClass
self.source = source
end
function Weapon:fire()
... |
require "levelprops/triggers/floorbutton"
FloorButtonPeter = FloorButton:extend("FloorButtonPeter")
function FloorButtonPeter:new(...)
FloorButtonPeter.super.new(self, ...)
self:setImage("levelprops/triggers/button", 8)
self.anim:add("down", 8)
self.anim:add("up", 7)
end
function FloorButtonPeter:onOverlap(e, mi... |
local Countermeasures = ACF.Classes.Countermeasures
ACFM_Flares = {}
ACFM_FlareUID = 0
local Bullets = ACF.Bullets
function ACFM_RegisterFlare(BulletData)
BulletData.FlareUID = ACFM_FlareUID
ACFM_Flares[BulletData.Index] = ACFM_FlareUID
ACFM_FlareUID = ACFM_FlareUID + 1
local FlareObj = Countermeasures.Flare()... |
-- ======================================================================
-- Report Repair
-- Advent of Code 2020 Day 01 -- Eric Wastl -- https://adventofcode.com
--
-- lua implementation by Dr. Dean Earl Wright III
-- ======================================================================
-- ========================... |
local M = {}
M.actions = require('lib.actions')
M.open = require("lib.telescope").open
M.setup = function(opts) require('config').setup(opts) end
return M
|
object_tangible_food_foraged_foraged_fruit_s4_generic = object_tangible_food_foraged_shared_foraged_fruit_s4_generic:new {
}
ObjectTemplates:addTemplate(object_tangible_food_foraged_foraged_fruit_s4_generic, "object/tangible/food/foraged/foraged_fruit_s4_generic.iff")
|
local rq_sliders = require('cokeline/sliders')
local rq_utils = require('cokeline/utils')
local vim_echo = vim.api.nvim_echo
local vim_tbl_islist = vim.tbl_islist
local defaults = {
show_if_buffers_are_at_least = 1,
buffers = {
filter_valid = false,
filter_visible = false,
new_buffers_position = 'las... |
---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2010, Adrian C. <anrxc@sysphere.org>
-- * (c) Maildir Biff Widget, Fredrik Ax
---------------------------------------------------
-- {{{ Grab environment
local io = { popen = io.popen }
local setmetatable... |
function gui_tick()
spr(18, 0, 152)
write(player_coins, 0xffffff, 9, 153)
spr(19, 152, 152)
write(player_seeds, 0xffffff, 151 - string.len(player_seeds) * 6 + 1, 153)
end
|
version = "v0.3-beta5.2" |
local M = {}
M.setup = function()
local map = vim.api.nvim_set_keymap
local opts = {noremap = true, silent = true}
-- Buffer
map('n', 'dx', ':SoupBufDel<CR>', opts)
map('n', 'dX', ':SoupBufDel!<CR>', opts)
map('n', 'gb', ':SoupBufGoto<CR>', opts)
map('n', '[b', ':SoupBufPrev<CR>', opts)
map('n', ']b',... |
--[[
Create a copy of a list where each value is transformed by `callback`
]]
local function map(list, callback)
local new = {}
for i = 1, #list do
new[i] = callback(list[i], i)
end
return new
end
return map
|
local dev = require("eden.core.pack").dev
local M = {}
M.plugins = {
-- Language Servers ---------------------------------------------------------
{
"neovim/nvim-lspconfig",
config = function()
require("eden.modules.protocol.lsp")
end,
requires = {
"williamboman/nvim-lsp-installer",
... |
--[[
TTT Role Counter -> Base (ServerSide)
by Tassilo (https://github.com/TASSIA710)
--]]
-- Add network strings
util.AddNetworkString("TTTRoleCounter_NotifyStart")
util.AddNetworkString("TTTRoleCounter_NotifyLeave")
-- == Hook: TTTBeginRound == --
hook.Add("TTTBeginRound", "TTTRoleCounter_TTTBeginRound", fu... |
return Def.ActorFrame{
Def.BitmapText{
Font= "Common Normal", InitCommand= function(self)
self:xy(_screen.cx, _screen.cy):diffuse(fetch_color("text"))
:strokecolor(fetch_color("stroke")):wrapwidthpixels(_screen.w-32)
:settext(
"Online mode is not supported.\n" ..
"Choose a different theme to pl... |
VERY_LOW_INT = -99999999
VERY_HIGH_INT = 99999999
ABILITY_STANDARD = 0
ABILITY_PUSH = 1
ABILITY_QUEUE = 2
WARD_OBSERVER = "item_ward_observer"
WARD_SENTRY = "item_ward_sentry"
WARD_DISPENSER = "item_ward_dispenser" |
local AreEqual, Exists, Replace, IsTrue, IsFalse
local CustomEventTrigger = "CAERDON_PLATE_TESTS_DATA_LOADED"
local Tests
local frame
if IsAddOnLoaded("WoWUnit") then
frame = CreateFrame("frame")
AreEqual, Exists, Replace, IsTrue, IsFalse = WoWUnit.AreEqual, WoWUnit.Exists, WoWUnit.Replace, WoWUnit.IsTrue, WoW... |
--[[
@url https://github.com/ConnorWiseman/cannibalism
--]]
eventful = require 'plugins.eventful'
function trim(str)
return str:match'^%s*(.*%S)' or ''
end
eventful.enableEvent(eventful.eventType.UNIT_DEATH, 1)
eventful.onUnitDeath.death_monitor = function(unit_id)
if not dfhack.isWorldLoaded() then
re... |
effect = body:new {
size = 3,
__type = 'effect',
bodies = {}
}
function effect:draw()
graphics.setColor(color(self.variance + colortimer.time, self.alpha or self.alphafollows and self.alphafollows.var, self.coloreffect))
graphics.rectangle(self.mode, self.x, self.y, self.size, self.size)
end
function effect:u... |
local helpers = require('test.functional.helpers')(after_each)
local eq = helpers.eq
local clear = helpers.clear
local funcs = helpers.funcs
local command = helpers.command
before_each(clear)
describe('setmatches()', function()
it('correctly handles case when both group and pattern entries are numbers',
function... |
local TRACK_NAME = "Multicam - Selector"
local cameraSwitches = {}
local markerIndex = 0
while true do
local nextMakerIndex, _, position, _, name, _ =
reaper.EnumProjectMarkers(markerIndex)
local camera = string.match(name, "^Multicam %- Switch to camera (%d+)$")
if camera ~= nil then
table... |
local _, NS = ...
local Widgets = NS.Widgets
function Widgets:CreateButton(parent, text, tooltipText, func)
local button = CreateFrame("Button", nil, parent, "UIPanelButtonTemplate")
button:GetFontString():SetPoint("CENTER", -1, 0)
button:SetMotionScriptsWhileDisabled(true)
button:RegisterForClicks("An... |
-- ------------------------------------------------------------------------------------------
-- ITEMS
local base_accumulator = data.raw['accumulator']['accumulator']
data:extend{
{
type = 'item',
name = 'infinity-accumulator',
stack_size = 50,
icons = {apply_infinity_tint{icon=bas... |
--===============================================
--== VARIABLES ==
--===============================================
local creatorCoords = {x = 1275.0, y = -1721.51, z = 53.66}
local guiEnabled = false
local group = {}
--===============================================
--== RE... |
local mod = DBM:NewMod(2099, "DBM-Party-BfA", 9, 1001)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 18026 $"):sub(12, -3))
mod:SetCreatureID(127490)
mod:SetEncounterID(2103)
mod:SetZone()
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_AURA_APPLIED 257028",
"SPELL_CAST_START 25... |
local bit = require 'bit'
local tohex = bit.tohex
local fmt = string.format
local random = math.random
local _M = {}
math.randomseed(ngx.time() + ngx.worker.pid())
function _M.new_span_id()
return fmt("%s%s%s%s%s%s%s%s",
tohex(random(0, 255), 2),
tohex(random(0, 255), 2),
... |
Classes.ModSettingsClasses = {}
Ext.Require("Shared/Classes/ModSettings/Data/FlagData.lua")
Ext.Require("Shared/Classes/ModSettings/Data/VariableData.lua")
Ext.Require("Shared/Classes/ModSettings/Data/ButtonData.lua")
Ext.Require("Shared/Classes/ModSettings/Data/SettingsData.lua")
Ext.Require("Shared/Classes/ModSetting... |
return {
postgres = {
up = [[
CREATE TABLE IF NOT EXISTS "cluster_events" (
"id" UUID PRIMARY KEY,
"node_id" UUID NOT NULL,
"at" TIMESTAMP WITH TIME ZONE NOT NULL,
"nbf" TIMESTAMP WITH TIME ZONE,
... |
local handheld = require 'handheld'
local stringio = require 'pl.stringio'
local log = require 'log'
log.level = "error"
describe("handheld", function()
it("should parse and run a simple program", function()
local text = [[nop +0
acc +1
jmp +4
acc +3
jmp -3
acc -99
acc +1
nop -4
acc +6
]]
local f = stringio.... |
object_mobile_respec_seller_f_1 = object_mobile_shared_respec_seller_f_1:new {
}
ObjectTemplates:addTemplate(object_mobile_respec_seller_f_1, "object/mobile/respec_seller_f_1.iff")
|
game.ReplicatedStorage.RawData.OnServerInvoke = function(player, url)
local res = game:GetService("HttpService"):GetAsync(url)
return res
end |
the.DialogueSpeed = 0.05
the.DialogueFont = love.graphics.newFont("fonts/coolvetica rg.ttf", 18)
the.DialogueQueue = {}
local function NextOfQueue()
local tbl = the.DialogueQueue[1]
if not tbl then
KillDialogueDisplay()
else
table.remove(the.DialogueQueue,1)
if tbl.type == "text" then
if tbl.side ~= "n" th... |
-- This is weird code... I'm just playing with an idea
function wax.frame(object)
return wax.dimensions(object, "frame")
end
function wax.bounds(object)
return wax.dimensions(object, "bounds")
end
function wax.dimensions(object, varName)
return setmetatable({
object = object,
center = function(self)
... |
-- $Id: lups.lua 4099 2009-03-16 05:18:45Z jk $
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
--
-- file: api_gfx_lups.lua
-- brief: Lua Particle System
-- authors:... |
modifier_enchantress_untouchable_lua_debuff = class({})
--------------------------------------------------------------------------------
-- Classifications
function modifier_enchantress_untouchable_lua_debuff:IsHidden()
return false
end
function modifier_enchantress_untouchable_lua_debuff:IsDebuff()
return tr... |
require 'winapi'
pids = winapi.get_processes()
for _,pid in ipairs(pids) do
local P = winapi.process_from_id(pid)
local name = P:get_process_name(true)
if name then print(pid,name) end
P:close()
end
|
Locales ['en'] = {
['writingcontract'] = '%s plakası için kontrat yazılıyor.',
['soldvehicle'] = 'Aracı sicil numarasıyla sattınız. ~r~%s~s~',
['boughtvehicle'] = 'Aracı sicil numarasıyla satın aldınız. ~g~%s~s~',
['notyourcar'] = 'Bu araç senin değil!',
['nonearby'] = 'Yakında araç bulunamadı.',
['nonearby... |
-- This is part of the "Affair" library.
-- This file handles sending a server's data to the main server list.
-- Luasockets must be installed for this to work. If you have Löve installed, this is already the case.
local http = require("socket.http")
print( "[UNADVERTISE] Attempting to connect" )
local URL = arg[1] ... |
data:extend(
{
{
type = "recipe",
name = "biotech-glass-pipe",
ingredients = {{"biotech-glass", 1}},
result = "biotech-glass-pipe",
requester_paste_multiplier = 4
},
{
type = "recipe",
name = "biotech-glass-pipe-to-ground",
ingredients =
{
{"wood", 20},
{"biotech-gl... |
local cd_mgr = {}
function cd_mgr:get_cd( )
end
return cd_mgr |
--[[
Copyright (c) 2016, Andrew Lewis <nerf@judo.za.org>
Copyright (c) 2016, Vsevolod Stakhov <vsevolod@highsecure.ru>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/lice... |
ENT.Base = "wac_hc_base"
ENT.Type = "anim"
ENT.Author = wac.author
ENT.Category = wac.aircraft.spawnCategory
ENT.Spawnable = true
ENT.AdminSpawnable = true
ENT.PrintName = "Little Bird AH-6"
ENT.Model = "models/flyboi/littlebird/littlebirda_fb.mdl"
ENT.TopRotor = {
model = "models/flyboi/littlebird/li... |
-- Small CSV helper
-- Source: http://lua-users.org/wiki/LuaCsv
local csv = {}
function csv.parse(line, sep)
local res = {}
local pos = 1
sep = sep or ','
while true do
local c = string.sub(line,pos,pos)
if (c == "") then break end
if (c == '"') then
local txt = ""
... |
local args = {...}
local direction
-- Print usage
if #args ~= 3 then
print("Usage: harvest <x> <z> <left|right>")
return
else
-- left = 0; right = 1
direction = argument == "right" and 1 or 0
end
function checkItem(item)
for i = 1, 16 do
if turtle.getItemDetail(i) ~= nil and turtle.getItemDetail(i).name... |
Sharpen = 0
MotionBlur = 0
ViewWobble = 0
TrueViewWobble = 0
DisorientTime = 0
AdrenalineTime = 0
DrainTime = 0
ColorModify = {}
ColorModify[ "$pp_colour_addr" ] = 0
ColorModify[ "$pp_colour_addg" ] = 0
ColorModify[ "$pp_colour_addb" ] = 0
ColorModify[ "$pp_colour_brightness" ] = 0
ColorModify[ "$pp_colour_con... |
local _, ADDONSELF = ...
local L = ADDONSELF.L
local RegEvent = ADDONSELF.regevent
local BattleZoneHelper = ADDONSELF.BattleZoneHelper
local RegisterKeyChangedCallback = ADDONSELF.RegisterKeyChangedCallback
if HONOR_THISWEEK == nil then HONOR_THISWEEK = "This Week" end
if HONOR_LASTWEEK == nil then HONOR_LAS... |
local lfs = require"lfs"
print(_VERSION)
print(os.getenv("OS") .. " " .. os.getenv("PROCESSOR_ARCHITECTURE") .. " CPUx" .. os.getenv("NUMBER_OF_PROCESSORS"))
--_ENV
_HOME = lfs.currentdir();
print("APP_HOME=", _HOME)
require "config"
require "lua.main"
main() |
workspace "Commodore64Emulator"
architecture "x64"
configurations {
"Debug",
"Release",
"Dist"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
-- Include directories relaative to root folder (solution directory)
IncludeDir = {}
project "Commodore64Emulator"
location "Commodore64Emulator"... |
/*#################################################
### GoldenHUDV3 By chredeur ###
#################################################*/
local vehiclehide = false if GoldenHUDV3.VehicleEnable == true && GoldenHUDV3.Vehicle == "vcmod" then vehiclehide = true end
local HideElementsTable = {... |
local db = require("lapis.db")
local schema = require("lapis.db.schema")
local migrations = {}
function migrations.rev_2016_01_16_init()
schema.create_table("pasta", {
{"hash", schema.types.varchar},
{"self_burning", schema.types.boolean},
{"filename", schema.types.varchar},
{"salt... |
require "30log-global"
Player = class("Player")
function Player:init(character, stance, stanceLimit, x, y, spriteSpeed, spriteTimer)
self.character = character
self.stance = stance
self.stanceLimit = stanceLimit
self.stanceCount = 1
self.x = x
self.y = y
self.spriteSpeed = spriteSpeed
self.spriteTimer = sprit... |
--preloader.lua
--local protobuf = require "protobuf"
require "utils"
require "msgcode"
-- print("PRELOAD", ...) |
local Job = require("flutter-tools.job")
local ui = require("flutter-tools.ui")
local utils = require("flutter-tools.utils")
local devices = require("flutter-tools.devices")
local config = require("flutter-tools.config")
local executable = require("flutter-tools.executable")
local dev_log = require("flutter-tools.log")... |
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat:setParameter(COMBAT_PARAM_DISPEL, CONDITION_POISON)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
local spell = Spell("instant")
function spell.onCastSpell(creature, variant)
return combat:execute(creature, variant)
en... |
--
--
-- ----------------------------------------------------------
-- Mosaic | OF Visual Patching Developer Platform
--
-- Copyright (c) 2019 Emanuele Mazza aka n3m3da
--
-- Mosaic is distributed under the MIT License. This gives everyone the
-- freedoms to use Mosaic in any context: commercial or non-commercial,
-- ... |
local export = {}
local data = mw.loadData("Module:utilities/data")
local notneeded = data.notneeded
local neededhassubpage = data.neededhassubpage
-- A helper function to escape magic characters in a string
-- Magic characters: ^$()%.[]*+-?
function export.pattern_escape(text)
if type(text) == "table" then
text =... |
debug = false
BUTTON_HEIGHT = 64
blockw = 50
blockh = blockw
nb_block_x = 800/blockw
nb_block_y = 700/blockh
DeletedMapBlock = 0
CameraYAdd = 0
screenw = love.graphics.getWidth()
screenh = love.graphics.getHeight()
screenw2 = screenw / 2
screenh2 = screenh / 2
test = 0
|
local class = require '30log'
local SingletonClass = class("Singleton")
local instance = SingletonClass()
function SingletonClass.new()
error('Cannot instantiate from a Singleton class')
end
function SingletonClass.init() end
function SingletonClass.extend()
error('Cannot extend from a Singleton class')
end
f... |
function applyAffect(name,affectid)
whoison.updateStats(name)
local player = minetest.get_player_by_name(name)
local oStage = affects._affectedPlayers[name][affectid].stage
local stageChange = false
minetest.log("action","Applying affect "..affectid.." stage " .. tostring(oStage) .. " on "..name)
-- see if they n... |
local mod = get_mod("rwaon_talents")
mod:hook_origin(PlayerCharacterStateLunging, "update", function (self, unit, input, dt, context, t)
local csm = self.csm
local movement_settings_table = PlayerUnitMovementSettings.get_movement_settings_table(unit)
local input_extension = self.input_extension
local status_extens... |
vim.bo[0].shiftwidth = 4
vim.bo[0].softtabstop = 4
vim.bo[0].tabstop = 4
vim.bo[0].expandtab = true
vim.bo[0].commentstring = '# %s' |
local MpeSim = {}
--[[
Override the native client code to get host player id
Host is now retrieved from stonehearth_mpe.services.server.player.player_service
--]]
MpeSim._old_get_host_player_id = _radiant.sim.get_host_player_id
function MpeSim.get_host_player_id()
return stonehearth_mpe.player:get_host_player_id()... |
return require "lovesnow.snax" |
-- Configuration
function love.conf(t)
t.version = "0.9.2"
t.title = "Not Zombies"
t.window.width = 1600
t.window.height = 900
t.window.fullscreen = true
t.window.fsaa = 4
t.console = false
end
|
if EffectManager == nil then
EffectManager = {}
end
---@alias LeaderLibEffectManagerTarget UUID|NETID|EsvCharacter|EsvItem|number[]
---@class LeaderLibObjectLoopEffectSaveData
---@field Effect string
---@field Bone string
---@field Handle integer
---@param uuid string
---@param effect string
---@param bone string
-... |
AddCSLuaFile( )
DEFINE_BASECLASS("base_anim")
ENT.PrintName = "PotatOS"
ENT.Category = "Aperture Science"
ENT.Spawnable = true
ENT.Editable = true
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.AutomaticFrameAdvance = true
function ENT:Draw()
self:DrawModel()
local pos = self:LocalToWorld(Vector( 1.8, 4.7, 7))
... |
local helpers = require('test.functional.helpers')(after_each)
local eq = helpers.eq
local clear = helpers.clear
local meths = helpers.meths
local redir_exec = helpers.redir_exec
before_each(clear)
describe(':let command', function()
it('correctly lists variables with curly-braces', function()
meths.set_var('v... |
TUTORIALS['en'][#TUTORIALS['en'] + 1] = {
name = "Using the Pokedex",
contents = {
{type = CONTENT_TYPES.IMAGE, value = "/images/tutorial/pokedex_use.png"},
{type = CONTENT_TYPES.TEXT, value = "The use of the Pokedex is simple as well as any other item within the game. The necessary first step i... |
--[[
The MIT License (MIT)
Copyright (c) 2014 Marcus Ihde
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge,... |
local text = require('text')
local letters = {
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'
}
function to_alpha(num)
local result = ''
while num > 0 do
num = num - 1
local remainder = math.fmod(num, 26)
result = le... |
Global( "PlayerMana", {} )
function PlayerMana:Init(anID)
self.playerID = anID
self.unitParams = {}
self.mana = 0
self.lastMana = -1
self.eventFunc = self:GetEventFunc()
self.base = copyTable(PlayerBase)
self.base:Init()
self:RegisterEvent(anID)
end
function PlayerMana:ClearLastValues()
self.lastMana ... |
object_tangible_quest_rebel_rtp_c3po_medical_supply_source = object_tangible_quest_rebel_shared_rtp_c3po_medical_supply_source:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_rebel_rtp_c3po_medical_supply_source, "object/tangible/quest/rebel/rtp_c3po_medical_supply_source.iff")
|
function requestModel(modelName,cb)
if type(modelName) ~= 'number' then
modelName = tonumber(modelName)
end
local breaker = 0
RequestModel(modelName)
while not HasModelLoaded(modelName) do
Citizen.Wait(1)
breaker = breaker + 1
if breaker >= 100 then
bre... |
-- Code from: http://lua-users.org/wiki/LuaXml
-----------------------------------------------------------------------------------------
-- LUA only XmlParser from Alexander Makeev
-----------------------------------------------------------------------------------------
XmlParser = {};
function XmlParser:ToXmlString(... |
local ObjectManager = require("managers.object.object_manager")
squillLairMenuComponent = { }
function squillLairMenuComponent:fillObjectMenuResponse(pSceneObject, pMenuResponse, pPlayer)
local menuResponse = LuaObjectMenuResponse(pMenuResponse)
if (CreatureObject(pPlayer):hasScreenPlayState(1, "hero_of_tatooine")... |
require 'commons'
local ADDR = 0x23
local CMD = 0x10
local i2c = i2c
local function read_data()
i2c.start(0)
i2c.address(0, ADDR, i2c.TRANSMITTER)
i2c.write(0, CMD)
i2c.stop(0)
i2c.start(0)
i2c.address(0, ADDR,i2c.RECEIVER)
ftr.sleep(300)
c = i2c.read(0, 2)
i2c.stop(0)
return c
e... |
-- return true = There are others migrations file
-- return false = This is the last migration file
function onUpdateDatabase()
return false
end
|
--[[
Copyright © 2017, Sammeh of Quetzalcoatl
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions a... |
local olua = require "olua"
local clang = require "clang"
local writer = require 'autoconf-writer'
local format = olua.format
local ignored_type = {}
local visited_type = {}
local refed_type = {}
local type_alias = {}
local type_convs = {}
local module_files = {}
local clang_tu
local M = {}
local logfile = io.open(... |
PROPERTY = {};
PROPERTY.ID = 46;
PROPERTY.Name = "Suburbs House #8";
PROPERTY.Category = "House";
PROPERTY.Description = "A small house in the suburbs.";
PROPERTY.Image = "ev3x_subs78";
PROPERTY.Cost = 2000;
PROPERTY.Doors = {
{Vector(-3654.78125, 12153, 286.25), 'models/props_c17/door01_left.mdl'},
... |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf"
module('RoleAudit_pb', package.seeall)
local ROLEAUDIT = protobuf.Descriptor();
local ROLEAUDIT_SESSIONID_FIELD = protobuf.FieldDescriptor();
local ROLEAUDIT_LEVEL_FIELD = protobuf.FieldDescriptor();
local ROLEAUDIT_EXP_FIELD = protobuf.Fi... |
data:extend({
{
type = "technology",
name = "vacuum-logistics-4",
icon_size = 128,
icon = "__base__/graphics/technology/logistics.png",
effects =
{
{
type = "unlock-recipe",
recipe = "vacuum-transport-belt"
},
{
type = "unlock-recipe",
recipe = "vacuum-underground-belt"
},
{
type = "unlock-... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... |
function fuse(together, allpersonas)
local combos = require("data/fusion_combos")[#together.."way"]
local fusebetween = ""
local fusebetweenbackwards = ""
local base_level = 0
local temp = {}
local nextlowest = {}
local common = false
for name, persona in pairs(together) do
if persona.arcana == common then co... |
--[[
说明:
本示例C++源码:
\Source\TPSProject\TutorialObject.cpp
]]--
require "UnLua"
local Screen = require "Tutorials.Screen"
local M = Class()
function M:ReceiveBeginPlay()
local msg =
[[
—— 本示例来自 "Content/Script/Tutorials.09_StaticExport.lua"
]]
Screen.Print(msg)
local tut... |
local Map = require "maps.map"
local Polis = Map:new()
function Polis:new(o, control)
o = o or Map:new(o, control)
setmetatable(o, self)
self.__index = self
return o
end
function Polis:create()
Map.create(self)
end
function Polis:enter()
Map.enter(self)
local door = self.data.objects.cellar_door
if... |
-- Take note that if you change the paths here, the paths quoted into the tas-scaffolding's README.md will be no
-- more valid. Do it with caution.
return {
['bk2'] = 'plugins/bizhawk/bk2',
['files'] = 'configuration/files',
['preloads'] = 'plugins/preload/collection',
['savestate'] = 'plugins/preload/... |
object_draft_schematic_food_bantha_surprise = object_draft_schematic_food_shared_bantha_surprise:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_food_bantha_surprise, "object/draft_schematic/food/bantha_surprise.iff")
|
local composer = require( "composer" )
local cards = require('cards')
local scene = composer.newScene()
local bottomHeight = 100
local restHeight = display.contentHeight - bottomHeight
local restCenterY = restHeight * 0.5
local padding = 50
local cornerRadius = 20
local cardSpacing = 50 * 0.5
local sceneGroup
local... |
-- Copyright © 2016 g0ld <g0ld@tuta.io>
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the COPYING file for more details.
-- Quest: @Rympex
local sys = require "Libs/syslib"
local g... |
local mock = require('luassert.mock')
describe("Kartograaf", function()
local cut = require('../lua/kartograaf')
describe("map", function()
it("Should call nvim_set_keymap", function()
local maps = {}
maps['i'] = { { 'l', 'r' } }
maps['n'] = maps['i']
local api = mock(vim.api, true)
... |
-- See LICENSE for terms
local ChoOrig_ConstructionSite_BuildingUpdate = ConstructionSite.BuildingUpdate
function ConstructionSite:BuildingUpdate(...)
if self.construction_started and g_ConstructionNanitesResearched and self.working then
return ChoOrig_ConstructionSite_BuildingUpdate(self, ...)
end
end
|
--- === cp.apple.finalcutpro.main.EffectsBrowser ===
---
--- Effects Browser Module.
local require = require
-- local log = require "hs.logger".new("EffectsBrowser")
local geometry = require "hs.geometry"
local fnutils = require "hs.fnutils"
local axutils = require "cp.ui.axutils"
local Gro... |
require 'nn'
require 'nngraph'
require 'optim'
require 'cutorch'
require 'cunn'
require 'image'
require 'cudnn'
cmd = torch.CmdLine()
cmd:text()
cmd:text('Options:')
cmd:option('--imageDir', '/home/jchen16/NEW/data/X10/train/', 'the directory to load')
cmd:option('--labelDir', '/home/jchen16/NEW/data/X10/label/', 'the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.