This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
| #include <stdio.h> | |
| #include <stdint.h> | |
| // Philips Sonicare NFC Head Password calculation by @atc1441 Video manual: https://www.youtube.com/watch?v=EPytrn8i8sc | |
| uint16_t CRC16(uint16_t crc, uint8_t *buffer, int len) // Default CRC16 Algo | |
| { | |
| while(len--) | |
| { | |
| crc ^= *buffer++ << 8; | |
| int bits = 0; | |
| do |
| FROM hayd/alpine-deno:1.10.1 | |
| WORKDIR /src/app | |
| ADD deps.ts ./ | |
| RUN ["deno", "cache", "deps.ts"] | |
| ADD *.ts ./ | |
| RUN ["deno", "cache", "mod.ts"] | |
| ENTRYPOINT ["deno", "run", "--unstable", "--allow-net", "--allow-hrtime", "--allow-env", "--cached-only", "--no-check", "mod.ts"] |
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
A list of playable boot sector games, most of which are on github. Fun to play, great to learn from. There are also many cool non-booting boot sectors out there that aren't games (so more like demos), but this page is just reserved to interactive boot sectors / games. This list is also not complete, but not on purpose, it is a best effort collection of games, so if you know of any fun boot sector games, please contribute.
This page lists a collection of 31 games spanning several authors: nanochess, me, daniel-e, shikhin, JulianSlzr, XanClic, QiZD90, darkvoxels, guyhill, w-shackleton, egtzori, VileR, ish_works, franeklubi, queso_fuego, franeklubi, Jethro82, waternine9, tevoran, palma3k, taylor-hartman. peterferrie should also be mentioned as he has touched a lot of these games.
https://github.com/daniel-e/tetros
Tetris Clone. Full color, no score. This was one of the older boot sector games out there. () |
| // this sketch was brutally hacked together by TJ Bruno --- https://medium.com/@tbruno25 | |
| #include <mcp_can.h> | |
| #include <SPI.h> | |
| unsigned long int rxId; | |
| unsigned char len = 0; | |
| unsigned char rxBuf[8]; | |
| bool displayOnce; |
| URLClassLoader cl = (URLClassLoader) App.class.getClassLoader(); | |
| URL url = cl.findResource("META-INF/MANIFEST.MF"); | |
| Manifest manifest = new Manifest(url.openStream()); | |
| Attributes attr = manifest.getMainAttributes()); | |
| System.out.println(manifest.getMainAttributes().getValue("Implementation-Title")); |
| From: http://www.labnol.org/software/wget-command-examples/28750/ | |
| How do I download an entire website for offline viewing? How do I save all the MP3s from a website to a folder on my computer? How do I download files that are behind a login page? How do I build a mini-version of Google? | |
| Wget is a free utility – available for Mac, Windows and Linux (included) – that can help you accomplish all this and more. What makes it different from most download managers is that wget can follow the HTML links on a web page and recursively download the files. It is the same tool that a soldier had used to download thousands of secret documents from the US army’s Intranet that were later published on the Wikileaks website. | |
| You mirror an entire website with wget | |
| Mirror an entire website with wget | |
| Spider Websites with Wget – 20 Practical Examples |
| #! python3 | |
| import canopen | |
| from canopen.objectdictionary import datatypes | |
| def curtis_1232e_dict(): | |
| """CAN object dictionary template for the Curtis 1232E motor controller""" | |
| od = canopen.objectdictionary.import_od('../od/Curtis_1232E.eds') |
This document assumes the use of Linux as the chosen development platform. Items in bold are highly recommended.
It is recommended to use SocketCAN when working with CAN bus on Linux. It is supported by the Linux kernel mainline and follows the Linux interface model, allowing you to use other network tools such as Wireshark. This also allows the creation of virtual CAN interfaces where no physical hardware is required to simulate or replay CAN messages.