Skip to content

Instantly share code, notes, and snippets.

View Mackaber's full-sized avatar
🚂
I like trains

Mackaber (Miguel Bravo) Mackaber

🚂
I like trains
View GitHub Profile
// Include the Servo library
#include <Servo.h>
// --- Pin Definitions (as variables) ---
// L298N Motor Driver Pins
const int enA = 7; // Enable A (Left Motor Speed)
const int leftMotorIn1 = 6; // IN1 (Left Motor)
const int leftMotorIn2 = 5; // IN2 (Left Motor)
const int rightMotorIn1 = 4; // IN3 (Right Motor)
const int rightMotorIn2 = 3; // IN4 (Right Motor)
// Include the Servo library
#include <Servo.h>
// --- Pin Definitions (as variables) ---
// L298N Motor Driver Pins
const int enA = 7; // Enable A (Left Motor Speed)
const int leftMotorIn1 = 6; // IN1 (Left Motor)
const int leftMotorIn2 = 5; // IN2 (Left Motor)
const int rightMotorIn1 = 4; // IN3 (Right Motor)
const int rightMotorIn2 = 3; // IN4 (Right Motor)
/*
Arduino C++ solutions for conditional logic exercises.
This version is updated to only use int, String, and float data types.
Upload this code to your Arduino and open the Serial Monitor (baud rate 9600) to see the output.
*/
void setup() {
// Initialize serial communication to print output
Serial.begin(9600);
delay(1000); // Wait a moment for the serial monitor to connect
@Mackaber
Mackaber / quake.xml
Last active June 18, 2024 16:55
quake.xml
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2024-06-18 10:49:42" build="230724">
<value name="Language" type="string" data="en"/>
<value name="StartType" type="hex" data="02"/>
<value name="CmdLine" type="string" data=""/>
<value name="StartTasksFile" type="string" data=""/>
<value name="StartTasksName" type="string" data="{Shells::PowerShell}"/>
<value name="StartFarFolders" type="hex" data="00"/>
AAHED
AALII
AALST
AALTO
AAMSI
AAPSS
AARAU
AAREN
AARGH
AARON
@Mackaber
Mackaber / fyfacebook.js
Last active March 17, 2019 16:18
Facebook Block Infinitescroll
// ==UserScript==
// @name Facebook Block Infinitescroll
// @namespace https://mackaber.me/
// @version 0.1
// @description Blocks Facebook to infinite scroll
// @author Mackaber
// @match https://m.facebook.com/
// @grant none
// ==/UserScript==
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Mackaber
Mackaber / mexico_interest_dataset.json
Created September 5, 2018 22:49
Intereses tomados de facebook
[
{
"raw_name": "Business and industry",
"name": "Business and industry",
"path": [
"Interests"
],
"key": "Interests > Business and industry",
"parent": "Interests"
},
var elements = document.querySelectorAll('*[style="display:none"]');
elements.forEach(function(el){
el.style.display = "block";
})
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.