Skip to content

Instantly share code, notes, and snippets.

@tjstalcup
tjstalcup / rare.js
Created July 4, 2020 21:11
WoW Rare Found at your Location Macro
/run z = C_Map.GetBestMapForUnit("player"); pos = C_Map.GetPlayerMapPosition(z,"player");SendChatMessage(("Rare at: %s - %0.1f, %0.1f"):format(C_Map.GetMapInfo(z).name, math.ceil(pos.x*10000)/100, math.ceil(pos.y*10000)/100),"CHANNEL",nil,"1")
@tjstalcup
tjstalcup / index.css
Created June 27, 2020 13:12
supreet css cleanup
.Header__not-logged-in {
background-color: forestgreen;
padding: 20px;
font-size: 20px;
}
.Header__not-logged-in a {
color: white;
text-decoration: none;
}
@tjstalcup
tjstalcup / slles6.js
Created June 18, 2020 20:32
Singly Linked List ES6
class LinkedList {
this.head = null;
push = val => {
const node = {
value: val,
next: null
}
if(!this.head){
@tjstalcup
tjstalcup / test.txt
Created February 7, 2020 14:44
Test File
Plain Text
@tjstalcup
tjstalcup / additional.css
Created February 15, 2019 23:01
Mary.codes responsive
div#nav {
margin: 20px 0;
width: 100%;
text-align: center;
overflow: auto;
}
@tjstalcup
tjstalcup / books.js
Created October 27, 2018 00:41
tjs' thoughts for will
nuggets = nuggets.map((nugget)=> {
Nugget.create(nugget)
.then((nug)=>nug._id)
.catch((err) => {
console.error(err);
res.send(500);
});
});
@tjstalcup
tjstalcup / README.md
Created October 24, 2018 14:21
TJ's Coding Challenges - October 2018

TJ's Coding Challenge - October 2018

This is part of a weekly series to have students engaged early on with coding challenges. I will attempt to tailor them to real life situations both on the job and during the job interview process

  • Pair up with another student
  • Schedule time with each other
  • Share coding responsibilities

This weeks challenge

This week we will be working with basic JavaScript Arrays and JSON. If variables are boxes, Arrays are the storage containers holding the boxes. JSON is how JavaScript uses it's Object structure for data storage. Think of it like a dictionary, there is a term or key and then a definition or value.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<main>
@tjstalcup
tjstalcup / lol.js
Created September 18, 2018 02:05
LOL Game API Calls
{"frames":[{"participantFrames":{"1":{"participantId":1,"position":{"x":1102,"y":1180},"currentGold":1400,"totalGold":1400,"level":1,"xp":660,"minionsKilled":0,"jungleMinionsKilled":0,"dominionScore":0,"teamScore":0},"2":{"participantId":2,"position":{"x":1102,"y":960},"currentGold":1400,"totalGold":1400,"level":1,"xp":660,"minionsKilled":0,"jungleMinionsKilled":0,"dominionScore":0,"teamScore":0},"3":{"participantId":3,"position":{"x":893,"y":892},"currentGold":1400,"totalGold":1400,"level":1,"xp":660,"minionsKilled":0,"jungleMinionsKilled":0,"dominionScore":0,"teamScore":0},"4":{"participantId":4,"position":{"x":763,"y":1070},"currentGold":1400,"totalGold":1400,"level":1,"xp":660,"minionsKilled":0,"jungleMinionsKilled":0,"dominionScore":0,"teamScore":0},"5":{"participantId":5,"position":{"x":853,"y":1248},"currentGold":1400,"totalGold":1400,"level":1,"xp":660,"minionsKilled":0,"jungleMinionsKilled":0,"dominionScore":0,"teamScore":0},"6":{"participantId":6,"position":{"x":12006,"y":11716},"currentGold":1400,"
@tjstalcup
tjstalcup / hydration.txt
Created September 15, 2018 00:51
hydration explanation
--------------------------------------------------------------------------------
noteid | title | tagName | tagId
--------------------------------------------------------------------------------
1 | my note | work | 123
1 | my note | thinkful | 124
1 | my note | productivity | 125
[{
noteid: 1,
title: "my note",