Skip to content

Instantly share code, notes, and snippets.

View AJ-Acevedo's full-sized avatar
🤓
Studying

AJ Acevedo AJ-Acevedo

🤓
Studying
View GitHub Profile
@AJ-Acevedo
AJ-Acevedo / romanhosh1.cc
Last active December 5, 2022 00:23 — forked from romanhosh/escape room project not complete c++
escape room project not complete c++
#include <iostream>
int main() {
// Variables
int start = 0;
int answer= 0;
int store = 0;
int pin = 0;
int tries = 0;
@AJ-Acevedo
AJ-Acevedo / pyver.py
Last active May 6, 2022 03:59
PyVer - A simple python script to show what version of python is being run by when executed
#!/usr/bin/env python3
# PyVer
# Version 0.4
# A simple python script to show what version of python is being run when executed.
# Author: AJ Acevedo - GitHub @AJ-Acevedo
import sys
@AJ-Acevedo
AJ-Acevedo / pyip.py
Last active May 6, 2022 03:44
A Python 3 script to display your external IP address
#!/usr/bin/env python3
# PyIP
# Author: AJ Acevedo
# Description: A Python 3 script to display your external IP address
# This could also be achived using curl on the CLI
# curl https://ipecho.net/plain
# Requests: https://docs.python-requests.org/en/latest/
# Version 0.1
@AJ-Acevedo
AJ-Acevedo / pelotonFTP.sh
Last active January 10, 2022 03:48
Peloton Power Zone Calculator
#!/usr/bin/env bash
# AJAlabs.com
#
# Peloton Power Zone Calculator
# v0.3
#
# LICENSE: MIT LICENSE (https://opensource.org/licenses/MIT)
@AJ-Acevedo
AJ-Acevedo / pyepoch.py
Created May 6, 2021 02:22
Python Epoch time converter for Cisco CDR
#!/usr/bin/env python3
# PyEpoch
# Python Epoch time converter for Cisco CDR
# Version 0.1
# Author: AJ Acevedo - GitHub @AJ-Acevedo
import datetime
epoch_time = 1617372006
@AJ-Acevedo
AJ-Acevedo / fibonacci2num.py
Last active April 12, 2021 02:26
Calculate the Fibonacci Sequence using Python to a number specified by user input on the CLI
#!/usr/bin/env python
# Fibonacci2Num
# version 0.2
#
# Fibonacci Sequence using Python
#
# Calculate the Fibonacci Sequence using Python to a number specified by user input on the CLI.
# The user's input string is restricted to the input fuctions's 1024 character limit.
#
@AJ-Acevedo
AJ-Acevedo / Fibonacci2nth.py
Last active April 12, 2021 02:23
Calculate the Fibonacci Sequence using Python to the nth number in the sequence specified by user input on the CLI
#!/usr/bin/env python
# Fibonacci2nth
# version 0.2
#
# Fibonacci Sequence using Python
#
# Calculate the Fibonacci Sequence using Python to the nth number in the
# sequence specified by user input on the CLI.
#

FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@AJ-Acevedo
AJ-Acevedo / host.rb
Last active December 23, 2018 10:09
Ruby code snippets to determine host OS and currently running ruby version
#!/usr/bin/env ruby
# Ruby code snippets to determine host OS and currently running ruby version
##############################################################
# RbConfig to determine host OS and exit if not mac or linux #
##############################################################
require 'rbconfig'
@os = RbConfig::CONFIG['host_os']
@AJ-Acevedo
AJ-Acevedo / fizzbuzz_for_loop.js
Last active April 25, 2018 23:53
JavaScript - Fizz Buzz
#!/usr/bin/env node
/*
* JavaScript Fizz Buzz using a for loop
* Copyright (c) 2013 AJ Acevedo | http://ajacevedo.com
* This content is released under the MIT License.
* http://www.opensource.org/licenses/mit-license.php
* Version: 0.1
*/