This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`timescale 1ns / 1ps | |
////////////////////////////////////////////////////////////////////////////////// | |
// Company: | |
// Engineer: | |
// | |
// Create Date: 03/09/2024 02:08:14 PM | |
// Design Name: | |
// Module Name: dac | |
// Project Name: | |
// Target Devices: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generate test signal | |
t = linspace(0,120*pi, 1000) | |
baseband = cos(t/40) | |
carrier = cos(t) | |
modulated = carrier .* baseband | |
# Downshift and split into I and Q | |
fq_offset = 1.05 # Carrier and LO are off by 5% | |
i = cos(t*fq_offset) .* modulated | |
q = sin(t*fq_offset) .* modulated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Baseband sample rate | |
import math | |
import matplotlib.pyplot as plt | |
import numpy | |
from scipy import signal, fft | |
import numpy as np | |
# RF sampling rate | |
rf_rate = 6e6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module dds | |
#(parameter ACC_LENGTH = 48, | |
parameter PHASE_LENGTH = 14 | |
) ( | |
input sys_clk, | |
input spi_clk, | |
input spi_data, | |
input freq_cs, | |
input phaseshift_cs, | |
input [1:0] mode_in, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from functools import lru_cache | |
import requests | |
import time | |
class AutomationClient: | |
""" | |
Low level Aria Automation/Orchestration client. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package nu.rydin.enchante.utils; | |
import net.minecraft.core.BlockPos; | |
import net.minecraft.world.level.LevelReader; | |
import net.minecraft.world.level.block.Block; | |
import net.minecraft.world.level.block.state.BlockState; | |
import net.minecraft.world.level.block.state.properties.Property; | |
import javax.annotation.Nullable; | |
import java.util.Collection; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
def handler(context, inputs): | |
# We only care about updates | |
if inputs["eventType"] != "UPDATE_DEPLOYMENT": | |
return inputs | |
result = context.request("/blueprint/api/blueprint-requests/%s/resources-plan?expand=true" % inputs["id"], "GET", "") | |
if result["status"] != 200: | |
raise Exception(result["content"]) | |
envelope = json.loads(result["content"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
def handler(context, inputs): | |
payload = { | |
"key": "enable.custom.resource.user-defined-schema", | |
"value": "true" | |
} | |
print(context.request("/provisioning/config/toggles", "POST", json.dumps(payload))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"resources": [ | |
{ | |
"metrics": [ | |
{ | |
"name": "virtualDisk:scsi0:1|totalReadLatency_average", | |
"samples": [ | |
{ | |
"t": 1616713319999, | |
"v": 0.7333333492279053 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] Scanning for projects... | |
[WARNING] | |
[WARNING] Some problems were encountered while building the effective model for io.jenkins.plugins:vrealize-automation-8:hpi:1.1-SNAPSHOT | |
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.jenkinsci.plugins:pipeline-model-definition:jar -> duplicate declaration of version ${pipeline-model-definition-plugin.version} @ line 154, column 21 | |
[WARNING] | |
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. | |
[WARNING] | |
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects. | |
[WARNING] | |
[INFO] |
NewerOlder