Skip to content

Instantly share code, notes, and snippets.

Avatar

Adam Jahr atomjar

View GitHub Profile
View Portal Code
#include <FastLED.h>
#include <Wire.h>
#include <SparkFun_APDS9960.h>
// LEDs
#define NUM_LEDS 248
#define DATA_PIN8 8
#define DATA_PIN9 9
CRGB leds[NUM_LEDS];
@atomjar
atomjar / product_style
Last active Apr 1, 2022
Stylesheet for Vue Mastery's Intro to Vue course
View product_style
body {
font-family: tahoma;
color:#282828;
margin: 0px;
}
.nav-bar {
background: linear-gradient(-90deg, #84CF6A, #16C0B0);
height: 60px;
margin-bottom: 15px;
View bulma.html
<section class="hero is-primary is-medium">
<div class="hero-body">
<div class="container">
<h1 class="title is-1">Coding Quotes</h1>
<h2 class="subtitle">Like your favorites</h2>
</div>
</div>
</section>
<section class="section">
@atomjar
atomjar / data.json
Created Jan 23, 2017
Darkforce data model
View data.json
{
"FirebaseGenNode": {
"invitations": {
"autoGenKeyInvite": {
"sender": "GitHubUserName",
"receiver": "GitHubUserName"
}
},
"users": {
"autoGenUserKey": {
View assignment.sql
1) SELECT COUNT(*) FROM users;
50
2) SELECT * FROM items ORDER BY price DESC LIMIT 5;
25|Small Cotton Gloves|Automotive, Shoes & Beauty|Multi-layered modular service-desk|9984
83|Small Wooden Computer|Health|Re-engineered fault-tolerant adapter|9859
100|Awesome Granite Pants|Toys & Books|Upgradable 24/7 access|9790
40|Sleek Wooden Hat|Music & Baby|Quality-focused heuristic info-mediaries|9390
60|Ergonomic Steel Car|Books & Outdoors|Enterprise-wide secondary firmware|9341
View fixed4.js
function sentenceMaker (stringArray) {
let output = ''
for (var i = 0; i < stringArray.length - 1; i++) {
output = output + stringArray[i] + ' and '
}
output = output + stringArray[stringArray.length - 1]
return output
}
View fixed4.js
function compare(a, b) {
if (a > b) {
return `${a} is greater than ${b}`
} else if (b > a) {
return `${a} is less than ${b}`
} else {
return `${a} is equal to ${b}`
}
}
View fixed3.js
function weekendFinder (day) {
if (day === "Saturday" || day === "Sunday") {
return "We have to learn on our own :sadpanda:"
} else {
return "We get to go to school!"
}
}
View fixed2.js
function greet (name) {
return `Hello, ${name}`
}
View fixed.js
function CelsiusConverter (tempF) {
return (tempF - 32) / 1.8
}