Skip to content

Instantly share code, notes, and snippets.

Installation

In WSL:

Download tensorflow:

git clone --depth 1 https://github.com/tensorflow/tensorflow.git

cd tensorflow

@dwaq
dwaq / apio.ini
Created November 26, 2019 17:03
Traffic Light project in Verilog using APIO
[env]
board = TinyFPGA-BX
@dwaq
dwaq / clapper.ino
Created August 7, 2019 22:58
Arduino code for the Clap-Activated Applause Machine https://hackaday.io/project/166959-clap-activated-applause-machine
//***************************************************************************************
// Clap-Activated Applause Machine
//
// By: Dillon Nichols
// @Dillon1337
// https://hackaday.io/project/166959-clap-activated-applause-machine
//
// This work is licensed under a Creative Commons Attribution 3.0 Unported License.
//***************************************************************************************
function menu(e) {
var ui = SpreadsheetApp.getUi();
ui.createMenu('Macros')
.addItem('Parse email', 'interest')
.addToUi();
}
function interest() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var s = ss.getActiveSheet();
https://www.youtube.com/watch?v=rA7u0l9QbJg
https://github.com/scanlime/metalkit
list all nested files in directory
$ find . | less
find text in files recursively
$ grep -t text2find .
https://www.youtube.com/watch?v=KguyjVDlH1o
## Master Boot Record
copy image of flash card
move to ubunutu
full disc image so has MBR
MBR tells about partitions, code to boot bootloader (512 bytes)
> xxd file.img | less
> xxd -g1
@dwaq
dwaq / redirection.html
Last active September 29, 2023 16:30
I use this script on my old Blogger (https://tinkeringetc.blogspot.com) to redirect to my Medium (https://medium.com/my-life-as-a-tinkerer/)
<!--
Code Flow:
* Checks page-title aginst all pages/posts
* Calls checkCookie()
* uses getCookie() to get cookie
* True: redirectPage(link);
* False: askToRedirect(link, post, false);
* Doesn't exist: askToRedirect(link, post, true);
@dwaq
dwaq / blink-ATtiny13a.c
Created March 7, 2014 14:09
Blink LED on ATtiny13A when switch is pressed. tinkeringetc.blogspot.com
@dwaq
dwaq / How to program ATTINY13A with Arduino as ISP.md
Last active October 23, 2023 18:43
How to program ATTINY13A with Arduino as ISP http://tinkeringetc.blogspot.com/
@dwaq
dwaq / SA56004ED_temp.ino
Created December 19, 2013 02:17
reading temperature from SA56004ED temperature sensor http://tinkeringetc.blogspot.com/
// reading temperature from SA56004ED temperature sensor
// http://tinkeringetc.blogspot.com/
#include <Wire.h>
#define SA56004ED 0x4C // SA56004ED temperature sensor device address
#define LTHB 0x00 // local temperature high byte register address
#define LTLB 0x22 // local temperature high byte register address
float lthb, ltlb; // local temperature low and high bytes