Skip to content

Instantly share code, notes, and snippets.

View atomjar's full-sized avatar

Adam Jahr atomjar

View GitHub Profile
#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 August 13, 2024 11:34
Stylesheet for Vue Mastery's Intro to Vue course
body {
font-family: tahoma;
color:#282828;
margin: 0px;
}
.nav-bar {
background: linear-gradient(-90deg, #84CF6A, #16C0B0);
height: 60px;
margin-bottom: 15px;
@atomjar
atomjar / bulma.html
Last active September 1, 2017 21:25
<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 January 23, 2017 23:29
Darkforce data model
{
"FirebaseGenNode": {
"invitations": {
"autoGenKeyInvite": {
"sender": "GitHubUserName",
"receiver": "GitHubUserName"
}
},
"users": {
"autoGenUserKey": {
@atomjar
atomjar / assignment.sql
Created January 18, 2017 21:15
SQL Assignment
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
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
}
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}`
}
}
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!"
}
}
function greet (name) {
return `Hello, ${name}`
}
function CelsiusConverter (tempF) {
return (tempF - 32) / 1.8
}