Skip to content

Instantly share code, notes, and snippets.

View archmangler's full-sized avatar
🌴
On vacation

Traiano Welcome archmangler

🌴
On vacation
View GitHub Profile
@archmangler
archmangler / Terraform azurerm azure fw debug output
Created May 24, 2020 14:44
terraform azurerm azure fw debug output
- After terraform destroy, we attempt to run terraform plan again but get the following errors:
```
3 error(s) occurred:
* module.firewall_outbound_region2.azurerm_firewall_application_rule_collection.outbound[1]: 1 error(s) occurred:
* azurerm_firewall_application_rule_collection.outbound.1 Error creating/updating Application Rule Collection "rule-lolcorp-dev-mydept-02" in Firewall
"afw-lolcorp-hub-region2-out" (Resource Group: "rsg-lolcorp-hub-region2-networkfrontend"): network.AzureFirewallsClient#CreateorUpdate: Failure sending request:
StatusCode=400 -- Original Error: Code="InvalidRequestFormat" Message="Cannot parse the request." Details = [{"code","DuplicateResourceName"},"message",
@archmangler
archmangler / arduino-interface-to-hn3806-ab.md
Created May 23, 2020 17:38
Rotary Encoder Reading with Arduino and HN3806-AB-600N optical encoder

Experimental interfaces to an AB photoelectric incremental encoder


Code

@archmangler
archmangler / rotary-encoder-example.md
Created May 23, 2020 17:31
rotary-encoder-example
/*     Arduino Rotary Encoder Tutorial
 *      
 *  by Dejan Nedelkovski, www.HowToMechatronics.com
 *  
 */
 
 #define outputA 6
 #define outputB 7
@archmangler
archmangler / stepper-motor-drive-codes.md
Created May 22, 2020 16:11
Stepper Motor Drive Codes
@archmangler
archmangler / pic-assembly-example-buzzer.asm
Created May 17, 2020 18:53
PIC Assembly Buzzer Example
; Connect switch header to PORTB (RB)
; Uses RETLW instruction to return a value from subroutine which
; sets buzzer frequency. Which value is returned depends on number in index.
; Buzzer starts when switch 0 is pressed and
; stops when switch 0 is released.
Title "buzzer using RETLW"
#include "p16F1789.inc"
@archmangler
archmangler / scala-journey.md
Last active May 17, 2020 07:22
Scala Programming Learning Journey

Pitfalls along the way to learning Scala Programming

  • day #1: Choosing a reference source (learning scala (ls), jason schwartz), setting up the environment (mac osx, jdk 14.0.1)
  • [p] End of Chapter Exercises
  • day #2: ls-ch1: hello world, projects in intellij (LEARN TO USE AN IDE FOR A CHANGE). sbt tool.
  • [p] End of Chapter Exercises
  • day #3: ls-ch2: basic types and operations etc.
  • End of Chapter Exercises
  • day #4: ls-ch3: Expressions and Conditionals
@archmangler
archmangler / python3-oop-journey.md
Last active August 30, 2020 15:43
Python 3 OOP Journey

Snippettes along the way to mastering OOP with Python

Progress

Book: Python3 Objected Oriented Programming 3rd Ed.

[] ch.3 - when objects are alike (p79 of 456)

  • In the programming world, duplicate code is considered evil. We should not have multiple
@archmangler
archmangler / nns-systematic-introduction-rochas.md
Last active May 1, 2020 17:56
Reading Notes: Neural Networks: A Systematic Introduction (Rochas)

Readings and Notes from the book "Neural Networks a Systematic Introduction" by Raul Rochas

  • Extracts, Questions and thoughts.
  • Some supplementary extracts from other sources

ch1

A single biological neuron is more complex than any single Human Built computer currently in existence

@archmangler
archmangler / python3-adventures-2020.md
Last active May 15, 2020 08:18
Python 3 Adventures 2020

A Journal of Tiny Python 3 Lessons and Notes

#0003 really simple command line arguments management

#!/usr/bin/env python3
#Purpose: Say hello