Skip to content

Instantly share code, notes, and snippets.

View joshuaaguilar20's full-sized avatar
🎯
Focusing

Joshua Aguilar joshuaaguilar20

🎯
Focusing
View GitHub Profile
@joshuaaguilar20
joshuaaguilar20 / week-2.js
Created August 21, 2019 00:24
Lesson Plan Student Deep
/*
Review Functions and String Literals
Examples Below
*/
function nameOfFunction(input){
//This Defines The Function The Input It takes and the Output it Returns.This Does Not Run the Function
console.log(`this is my input: ${input}`);
};
@joshuaaguilar20
joshuaaguilar20 / Notes.Md
Created June 26, 2019 16:37
Tom Leighton's MIT Mathmatical Proofs Course Week 1

Predicate: Proposition whos truth depends on the value of the variable, Prime Numbers: used to Break RSA Encrytions Implication: p => q if p is false or q is true = will be true False Implys Anything is True* (if Pigs could fly I would be king ) Proposition - True or False

Truth Table p|q| p => q | q <=> p| p <==> q|

@joshuaaguilar20
joshuaaguilar20 / functionExpressions.js
Created February 25, 2019 23:14
Function Expressions
"use strict";
``
var a = 2;
(function foo(){ // <-- insert this
var a = 3;
console.log( a ); // 3
@joshuaaguilar20
joshuaaguilar20 / ClosuresCheatsCH2.js
Last active February 25, 2019 22:37
Closure Cheats( Do Not Use) CH-2
function foo(str) {
"use strict";
eval( str );
console.log( a ); // ReferenceError: a is not defined
}
foo( "var a = 2" );
` There are other facilities in JavaScript that amount to a very similar
effect to eval(..) . setTimeout(..) and setInterval(..) can take a
string for their respective first argument, the contents of which are
@joshuaaguilar20
joshuaaguilar20 / my.cnf
Last active June 29, 2020 06:54
MariaDB 10:2 Server Config file
root@c836246fc87c:/etc/mysql# cat my.cnf
# MariaDB database server configuration file.
#
# You can copy this file to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
@joshuaaguilar20
joshuaaguilar20 / mitch.js
Created February 4, 2019 21:02
code demo
alert('this is some code from the internet');
@joshuaaguilar20
joshuaaguilar20 / pset.txt
Last active January 31, 2019 02:56
SumZero
//Thanks for coming tonight. Here are tonights Psets along with a copy of cracking the code 6th edition
Cracking the code 6th edition
https://drive.google.com/file/d/1tHI36_h9AgL07WtfPyxY4X5MuhAJCiRT/view?usp=sharing
1a) Same Problem***
@joshuaaguilar20
joshuaaguilar20 / ObjectSolution.js
Created January 29, 2019 22:24
Teaching Object CRUD Operations to Students*
// Setup
var collection = {
"2548": {
"album": "Slippery When Wet",
"artist": "Bon Jovi",
"tracks": [
"Let It Rock",
"You Give Love a Bad Name"
@joshuaaguilar20
joshuaaguilar20 / buildingRuningDockerImages.txt
Created January 28, 2019 23:55
Docker Building Basic Node Application
Building and Running Docker Images
Needs Base Image
Dependencies
Start-Up Command
Touch Dockerfile (no file ext)
inside of file with no ext. define system and variables
@joshuaaguilar20
joshuaaguilar20 / dockerBuildRunImg.txt
Created January 28, 2019 23:22
DockerBuildRunImage
Building and Running Docker Images
Needs Base Image
Dependencies
Start-Up Command
Touch Dockerfile (no file ext)
inside of file with no ext. define system and variables