Skip to content

Instantly share code, notes, and snippets.

View joshuaaguilar20's full-sized avatar
🎯
Focusing

Joshua Aguilar joshuaaguilar20

🎯
Focusing
View GitHub Profile

Tonys Celebration of Life

  • 6:00PM: Time Start
  • 6:00PM: Dinner
  • 7:00PM: Guest Speaker Chris
  • 8:00PM: Drinks/Music/Video

Supplies for Eating and Drinks - Camille

@joshuaaguilar20
joshuaaguilar20 / translate.html
Last active March 17, 2020 23:59
google translate api
<!DOCTYPE html>
<html lang="en-US">
<body>
<h1>Joshuas web translator</h1>
<p>Hello DEF NOT HELLO WORLD</p>
<p>Translate this page:</p>
{
"id": "sku_FI4lrgGXvza0nv",
"object": "sku",
"active": true,
"attributes": {
"name": "LC-81"
},
"created": 1561053825,
"currency": "usd",
"image": "https://files.stripe.com/links/fl_live_WSngUWJBUIaD4RyvoKBsv9gL",
@joshuaaguilar20
joshuaaguilar20 / NewObject.js
Created September 27, 2019 18:21
API returning different Data
{
"id": "sku_FI4lrgGXvza0nv",
"object": "sku",
"active": true,
"attributes": {
"name": "LC-81"
},
"created": 1561053825,
"currency": "usd",
"image": "https://files.stripe.com/links/fl_live_WSngUWJBUIaD4RyvoKBsv9gL",
@joshuaaguilar20
joshuaaguilar20 / bitshifting.go
Created September 6, 2019 23:25
Bit Shifting Iota
func main() {
iotatoKb()
}
func iotatoKb(){
const (
@joshuaaguilar20
joshuaaguilar20 / main.go
Created September 6, 2019 23:14
Bit Shifting Go Lang
package main
import "fmt"
func main() {
// x:= 4
// fmt.Printf("%d\t\t%b\n", x, x)
@joshuaaguilar20
joshuaaguilar20 / iota.go
Created September 6, 2019 23:00
Go Iota
package main
import "fmt"
const (
A0 = iota
A1 = iota
A2 = iota
@joshuaaguilar20
joshuaaguilar20 / digits.go
Created September 6, 2019 22:52
Printing Numbers From String to Byte to Hex, Binary
func main() {
s:= "A"
bs:= []byte(s)
fmt.Println(bs)
n:=bs[0]
fmt.Printf("%T \n", n)
fmt.Printf("%b \n", n)
fmt.Printf("%#X\n", n)
@joshuaaguilar20
joshuaaguilar20 / Greedy.txt
Last active September 4, 2019 01:58
Week 3 Project Deep D
Greedy Algorithms
US coins
When making change, odds are you want to minimize the number of coins you’re dispensing for each customer, lest you run out (or annoy the customer!). Fortunately, computer science has given cashiers everywhere ways to minimize numbers of coins due: greedy algorithms.
According to the National Institute of Standards and Technology (NIST), a greedy algorithm is one “that always takes the best immediate, or local, solution while finding an answer. Greedy algorithms find the overall, or globally, optimal solution for some optimization problems, but may find less-than-optimal solutions for some instances of other problems.”
What’s all that mean? Well, suppose that a cashier owes a customer some change and in that cashier’s drawer are quarters (25¢), dimes (10¢), nickels (5¢), and pennies (1¢). The problem to be solved is to decide which coins and how many of each to hand to the customer. Think of a “greedy” cashier as one who wants to take the biggest bite out of this problem as possi
@joshuaaguilar20
joshuaaguilar20 / Main.go
Last active September 4, 2019 15:31
Deep D Week 3 Go Lang
#1 Understand the Native Modules Provided
#2 Go is based on using native modules as opposed to using NPM
Link To Documents
https://golang.org/pkg/
Tuff Concepts