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
set _CHIPNAME rpi4 | |
set _DAP_TAPID 0x4ba00477 | |
adapter_khz 8192 | |
# taken from the forum: https://www.raspberrypi.org/forums/viewtopic.php?t=252551 | |
transport select jtag | |
reset_config trst_and_srst |
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
[7] [8] | |
extractbb:warning: Can't find file (/c/work/review/rust-embedded3/images/02_exception_interrupt/fig1.png), or it is forbidden to read ...skipping | |
LaTeX Warning: File `/c/work/review/rust-embedded3/images/02_exception_interrup | |
t/fig1.png' not found on input line 84. | |
./02_exception_interrupt.tex:84: LaTeX Error: Cannot determine size of graphic |
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
# directory contains .re files | |
CONTENTS_DIR := contents | |
# output files | |
BOOK_NAME := rust-embedded2 | |
OUT_PDF := $(BOOK_NAME).pdf | |
OUT_EPUB := $(BOOK_NAME).epub | |
# dependencies | |
SRCS := $(wildcard $(CONTENTS_DIR)/*.re) $(wildcard *.yml) $(wildcard sty/*.sty) $(wildcard sty/*.cls) |
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
diff --git a/mainline/stretch/Dockerfile b/mainline/stretch/Dockerfile | |
index 09e2d84..1f96b37 100644 | |
--- a/mainline/stretch/Dockerfile | |
+++ b/mainline/stretch/Dockerfile | |
@@ -1,9 +1,10 @@ | |
-FROM debian:stretch-slim | |
+FROM ubuntu:cosmic | |
LABEL maintainer="NGINX Docker Maintainers <docker-maint@nginx.com>" |
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
#!/bin/bash | |
# Usage: ./gen_users.sh [num] [dest_dir(option)] | |
NUM=$1 # number of accounts | |
DIR_NAME=$2 | |
PW_FILE=./.htpasswd # for nginx setting | |
CSV_FILE=./id_list.csv # for print |
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
// Originally published here: https://github.com/avr-rust/blink | |
#![feature(asm, lang_items, unwind_attributes)] | |
#![no_std] | |
#![no_main] | |
extern crate arduino; | |
use arduino::{DDRB, PORTB}; | |
use core::ptr::write_volatile; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>Property</Title> | |
<Shortcut>pp</Shortcut> | |
</Header> | |
<Snippet> | |
<Declarations> | |
<Literal> | |
<ID>name</ID> |
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 = atmega88 | |
COMPILE = avr-gcc -Wall -O2 -I. -mmcu=$(TARGET) # -DDEBUG_LEVEL=2 | |
OBJECTS = main.o | |
all: main.hex | |
.c.o: |
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
#include <avr/io.h> | |
#define F_CPU 8000000UL //8MHz | |
#include <util/delay.h> | |
int main(void){ | |
DDRC = 0x02; // C1 to output | |
CLKPR = (1 << CLKPCE); // Enable clock change | |
CLKPR = 0; // 0 to 1-div clock (max speed = 8MHz) | |
for(;;){ |
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
{ | |
// somewhere | |
Slider.ThumbToolTipValueConverter = new SliderValueConverter() { Labels = new List<string>(){"a", "b", "c"} }; | |
} | |
public class SliderValueConverter : IValueConverter | |
{ | |
public List<string> Labels { get; set; } | |
public object Convert(object value, Type targetType, object parameter, string language) |
NewerOlder