This file contains hidden or 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
| blueprint: | |
| name: IKEA Styrbar - control multiple Light/Switch Entities | |
| description: "**Manage multiple Light/Switch Entities with the IKEA Styrbar Switch\nRemote via Zigbee2MQTT**\n\n_Release Notes_:\n\n**Version 1.4** (2025-10-28):\n- Make smooth dimming transition max 2s.\n- Add per-entity smooth dimming selection so only chosen lights use transition-based smooth dimming.\n- Keep raw targets list (do not expand groups) so group entities are treated as single targets.\n- Add option to prevent a lamp from being turned fully off while dimming, with a configurable threshold slider.\n" | |
| domain: automation | |
| input: | |
| switch_remote: | |
| name: Styrbar switch remote | |
| description: Choose IKEA Styrbar switch remote | |
| selector: | |
| device: |
This file contains hidden or 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
| --[[ | |
| ===================================================================== | |
| ==================== READ THIS BEFORE CONTINUING ==================== | |
| ===================================================================== | |
| Kickstart.nvim is *not* a distribution. | |
| Kickstart.nvim is a template for your own configuration. | |
| The goal is that you can read every line of code, top-to-bottom, and understand |
This file contains hidden or 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
| Stack_Size EQU 0x00000400 | |
| AREA STACK, NOINIT, READWRITE, ALIGN=3 | |
| Stack_Mem SPACE Stack_Size | |
| __initial_sp | |
| THUMB | |
| AREA RESET, DATA, READONLY | |
| EXPORT __Vectors |
This file contains hidden or 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
| TARGET = banana | |
| CC = gcc | |
| LD = gcc | |
| # Add your sources here | |
| SRCS += main.c | |
| SRCS += banana.c | |
| INCLUDES += -I. |
This file contains hidden or 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
| ################################################################ | |
| # This is a generated script based on design: design_1 | |
| # | |
| # Though there are limitations about the generated script, | |
| # the main purpose of this utility is to make learning | |
| # IP Integrator Tcl commands easier. | |
| ################################################################ | |
| namespace eval _tcl { |
This file contains hidden or 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
| ################################################################ | |
| # This is a generated script based on design: design_1 | |
| # | |
| # Though there are limitations about the generated script, | |
| # the main purpose of this utility is to make learning | |
| # IP Integrator Tcl commands easier. | |
| ################################################################ | |
| namespace eval _tcl { |
This file contains hidden or 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
| ################################################################ | |
| # This is a generated script based on design: gpio_bram | |
| # | |
| # Though there are limitations about the generated script, | |
| # the main purpose of this utility is to make learning | |
| # IP Integrator Tcl commands easier. | |
| ################################################################ | |
| namespace eval _tcl { |
This file contains hidden or 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
| # grade midterm 2020 | |
| # requirements: | |
| # python3 | |
| # pip3 install boolean.py (boolean evaluation) | |
| # matplotlib for plotting | |
| # numpy - a couple small parts | |
| import logging | |
| # where do you wanna log? go to DEBUG / INFO / WARNING |
This file contains hidden or 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 ranks for mid2020 | |
| def read_csv(fname): | |
| import csv | |
| with open(fname, 'r') as f: | |
| n = [] | |
| s = csv.reader(f, delimiter=',') | |
| for i, row in enumerate(s): | |
| if i == 0: |
This file contains hidden or 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 vectors for alu2020 | |
| BIT_WIDTH = 32 | |
| INT_MAX = 2**(BIT_WIDTH-1)-1 | |
| INT_MIN = -2**(BIT_WIDTH-1) | |
| UINT_MAX = 2**(BIT_WIDTH)-1 | |
| ALU_OPS = { | |
| 'ALU_ADD' : '0000', | |
| 'ALU_SUB' : '1000', |
NewerOlder