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 <stdio.h> | |
#include <string.h> | |
#include "freertos/FreeRTOS.h" | |
#include "freertos/task.h" | |
#include "driver/gpio.h" | |
#include "sdkconfig.h" | |
#include <driver/dac.h> | |
// The 8-bit values in our sound sample | |
#include "track.h" |
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
x |
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
IDENTIFICATION DIVISION. | |
PROGRAM-ID. SAMPLE. | |
ENVIRONMENT DIVISION. | |
CONFIGURATION SECTION. | |
SOURCE-COMPUTER. IBM-ATX. | |
OBJECT-COMPUTER. IBM-ATX. | |
SPECIAL-NAMES. |
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 <Arduino.h> | |
#include <WiFi.h> | |
#include <driver/dac.h> | |
const int dataPin = 4; // Blinkt pin 16 | |
const int clockPin = 5; // blinkt pin 18 | |
const int numLEDs = 8; | |
uint8_t pixels[numLEDs * 3]; | |
void spi_out(uint8_t n) { |
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 <fstream> | |
#include <sstream> | |
std::string slurp(const char *filename) | |
{ | |
std::ifstream in; | |
in.open(filename, std::ifstream::in | std::ifstream::binary); | |
std::stringstream sstr; | |
sstr << in.rdbuf(); | |
in.close(); |
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
#!/usr/bin/env bash | |
# Setup for Ubuntu 18.08, 18.10 | |
# standard'ish GNU tools | |
sudo apt-get install libtool # stops configure.ac AC_ENABLE_SHARED, ... probs | |
# Other items seems required by ubuntu 17.10 | |
sudo apt-get install nasm | |
sudo apt install libfontconfig1-dev intltool libxft-dev |
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
#!/usr/bin/env perl6 | |
# Reference: | |
# https://wiki.osdev.org/Partition_Table | |
my %ids = 0x00 => "Empty", 0x0b => "W95 FAT32", 0x0c => "W95 FAT32 (LBA)", | |
0x82 => "Linux swap", 0x83 => "Linux", 0x93 => "Amoeba"; | |
sub MAIN($filename) { | |
say "Disk: $filename"; |
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
# Desktop entry for dillo. | |
# System wide install as /usr/share/applications, or /usr/local/share/applications | |
# Private install as $HOME/.local/share/applications | |
# See http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.0.html | |
# See http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html | |
[Desktop Entry] | |
Version=3.0.5 | |
Type=Application | |
Name=Dillo web browser | |
GenericName=Web Browser |
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
grammar G { | |
token TOP { <atom>* } | |
token atom { IFX { print "\n.. GOT IFX..\n"; } | |
| IF {print "\n--GOT IF--\n"; } | |
| . { print $/; } | |
} | |
} | |
my $str = "heIFllIFXo\n"; |
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 Variables --- | |
----------------------------------------------- | |
--- WIFI CONFIGURATION --- | |
WIFI_SSID = "" | |
WIFI_PASSWORD = "" | |
WIFI_SIGNAL_MODE = wifi.PHYMODE_N | |
--- IP CONFIG (Leave blank to use DHCP) --- | |
ESP8266_IP="192.168.0.30" |
NewerOlder