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
import { strictEqual } from 'assert'; | |
import { describe, it } from '@jest/globals'; | |
import { createLocalVue, mount, RouterLinkStub } from '@vue/test-utils'; | |
import Vue from 'vue'; | |
import { findId } from '~/helpers/test-utils'; | |
import ElMarkup from './Markup'; | |
const createWrapper = (options = {}) => { | |
const localVue = createLocalVue(); |
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 <ESP8266WiFi.h> | |
#include <ESP8266HTTPClient.h> | |
const char* ssid = "YourWifiSSID"; | |
const char* password = "YourWifiPassword"; | |
// Set a user ID we want to fetch information from | |
uint16_t user_id = 1; | |
void setup () { |
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
/* *********************************************************** | |
* Global Constants * | |
* Hardware Definitions * | |
* ********************************************************* */ | |
// Wemos Mini D1 Pro pinout. This should have been provided by selecting the correct board but this | |
// board wasn't available when I looked for it so whatever this requires less dependency on the | |
// Arduino IDE configuration anyway. | |
// https://arduino-projekte.info/wp-content/uploads/2017/03/wemos_d1_mini_pro_pinout.png | |
byte PIN_D0 = 16; |
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
/* *********************************************************** | |
* Global Constants * | |
* Hardware Definitions * | |
* ********************************************************* */ | |
// Wemos Mini D1 Pro pinout. This should have been provided by selecting the correct board but this | |
// board wasn't available when I looked for it so whatever this requires less dependency on the | |
// Arduino IDE configuration anyway. | |
// https://arduino-projekte.info/wp-content/uploads/2017/03/wemos_d1_mini_pro_pinout.png | |
byte PIN_D0 = 16; |
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
void setup() { | |
Serial.begin(115200); | |
} | |
void loop() { | |
delay(1000); | |
Serial.println("Hello World!"); | |
delay(1000); | |
Serial.println("Goodbye, Cruel World!"); | |
} |
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
// Wemos Mini D1 Pro pinout. This should have been provided by selecting the correct board but this | |
// board wasn't available when I looked for it so whatever this requires less dependency on the | |
// Arduino IDE configuration anyway. | |
// https://arduino-projekte.info/wp-content/uploads/2017/03/wemos_d1_mini_pro_pinout.png | |
byte PIN_D0 = 16; | |
byte PIN_D1 = 5; | |
byte PIN_D2 = 4; | |
byte PIN_D3 = 0; | |
byte PIN_D4 = 2; | |
byte PIN_D5 = 14; |
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
// Wemos Mini D1 Pro pinout. This should have been provided by selecting the correct board but this | |
// board wasn't available when I looked for it so whatever this requires less dependency on the | |
// Arduino IDE configuration anyway. | |
// https://arduino-projekte.info/wp-content/uploads/2017/03/wemos_d1_mini_pro_pinout.png | |
byte PIN_D0 = 16; | |
byte PIN_D1 = 5; | |
byte PIN_D2 = 4; | |
byte PIN_D3 = 0; | |
byte PIN_D4 = 2; | |
byte PIN_D5 = 14; |
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
function tokenize(characters) { | |
return characters | |
.replace(/\s\s+/g, ' ') | |
.replace(/\(/g, ' ( ') | |
.replace(/\)/g, ' ) ') | |
.split(' ') | |
.filter(t => ' \t\n'.indexOf(t) === -1) | |
} | |
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
# options | |
set -s escape-time 0 | |
set-option -g status-bg default | |
set-option -g status-fg default | |
set-option -g default-shell /usr/bin/zsh | |
set-option -g history-limit 5000 | |
set -g default-terminal "screen-256color" | |
set -g base-index 1 # start counting from 1 instead of 0 | |
set -g status-keys vi | |
set -g status-justify centre |