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
--[[ | |
===================================================================== | |
==================== 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 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 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 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 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 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 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 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 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', |
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
with open('contacts.vcf') as f: | |
r = f.read() | |
contacts = r.split('VCARD') | |
with open('out.csv', 'w') as f: | |
for c in contacts: | |
if 'FN:' in c: | |
x = c.strip().split('FN:') | |
y = x[1].strip().split('N:') |
NewerOlder