Skip to content

Instantly share code, notes, and snippets.

View zacjones93's full-sized avatar
๐Ÿ‹๏ธโ€โ™‚๏ธ

Zac Jones zacjones93

๐Ÿ‹๏ธโ€โ™‚๏ธ
View GitHub Profile
A place for a Machine learning image
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Hamburger Menu</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
@zacjones93
zacjones93 / machine.js
Last active May 27, 2022 05:02
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@zacjones93
zacjones93 / map.js
Last active May 4, 2020 16:13
Iterate through an an Array with JavaScript map
const numbers = [2, 4, 6, 8]
const numbers2 = numbers.map(number => number * 2)
console.log(numbers)
console.log(numbers2)
@zacjones93
zacjones93 / egghead data
Last active May 27, 2022 05:01
A CLI using John Lindquist's simplescripts package to retrieve various egghead data
import toLower from "lodash"
import { paramCase } from "change-case"
let { success } = await import("./helpers/chalk.js")
// let eggAxios = axios.create({
// baseURL: 'https://egghead.io',
// headers: {Authorization: `Bearer ${env.EGGHEAD_AUTH_TOKEN}`},
// })
// Menu: Gist from Finder
// Description: Select a file in Finder, then create a Gist
// Author: John Lindquist
// Twitter: @johnlindquist
let filePath = await getSelectedFile()
let file = filePath.split('/').pop()
let isPublic = await arg('Should the gist be public?', {
type: 'confirm',
let _ = await need("lodash")
let { paramCase } = await need("change-case")
console.log(paramCase)
let chalk = await need("chalk")
// let console.log = (str) => chalk.green`${str}`
// let console.warn = (str) => chalk.red`${str}`
// https://egghead.io/playlists/
let {default: _} = await npm("lodash")
let playlistID = {
"292804": "create-and-deploy-a-basic-static-html-website-2960",
"402036": "composing-closures-and-callbacks-in-javascript-1223",
"405344": "scale-react-development-with-nx-4038",
"409013": "react-real-time-messaging-with-graphql-using-urql-and-onegraph-be5a",
"410100": "headless-wordpress-4a14",
"410102": "containerize-full-stack-javascript-applications-with-docker-30a8",
"412781": "create-an-ecommerce-store-with-next-js-and-stripe-checkout-562c",
[
{
"5":"react-flux-architecture-es5"
},
{
"9":"angularjs-application-architecture"
},
{
"10":"learn-html5-graphics-and-animation"
},
@zacjones93
zacjones93 / create-and-deploy-a-basic-static-html-website-2960
Last active May 27, 2022 05:00
Example of what shape the data needs to be in
{
externalId: '292804',
type: 'course',
slug: {
current: 'create-and-deploy-a-basic-static-html-website-2960'} ,
bullets: [
'Getting Started with HTML',
'Global Structure of an HTML Document',
'Structuring Your Content',
'CSS Media queries',