Skip to content

Instantly share code, notes, and snippets.

View caesiumtea's full-sized avatar

vance caesiumtea

View GitHub Profile
@caesiumtea
caesiumtea / js22
Created November 11, 2023 07:07
codedex js course lesson 22 - two solutions
// Write code below 💖
let myNumber = 47;
let binary = "";
while (myNumber > 0) {
if (myNumber % 2 === 0) {
binary = "0" + binary;
} else {
binary = "1" + binary;
@caesiumtea
caesiumtea / rps.js
Created August 3, 2023 02:11
Codedex JS Rock-Paper-Scissors
/* Rock Paper Scissors
Solution to this Codedex.io challenge:
https://www.codedex.io/javascript/17-rock-paper-scissors
*/
const rock = 0;
const scissors = 1;
const paper = 2;
let player = rock;
@caesiumtea
caesiumtea / workshop-prep.md
Last active July 8, 2023 00:42
Setup steps for Codédex GitHub workshop

Setup steps for Codédex GitHub workshop

This document will help you get everything set up ahead of time so you can follow along with the Codédex "Getting Started with GitHub" workshop on 7/20/23! You can still learn the concepts from the workshop without taking these steps ahead of time, and we encourage you to attend whether you take these steps or not. But if you get all of these things set up in advance, then you'll be ready to start using GitHub right away on the day of the workshop, and you'll have the chance to copy our examples on your own computer while you're there.

If you're not a workshop attendee, hopefully this document can still serve as a general guide on how to start using Git and GitHub!

Tl;dr

  1. Install Git
  2. Make a GitHub account
  3. Either set up VS Code integration with GitHub or know how to access the terminal (command line)
@caesiumtea
caesiumtea / pandas.md
Created July 4, 2023 20:40
Pandas notes

terminology

  • a pandas table is called a dataframe

  • columns of a dataframe are usually called variables because they correlate to variables of an experiment -- so think 'variable' as in experiments, not variable as in programming

  • rows of a dataframe are often called records or cases or observations

  • one-dimensional data in pandas is called a series, bsicaly a list

    • but it can have a name as well as a value for each item, which looks like 2 columns, but still counts as one dimensional?
  • a null in pandas is any cell that pandas counts as "missing data"; there are various forms of this

@caesiumtea
caesiumtea / sheetsSpellCheck.gs
Last active August 18, 2022 03:20
Google Sheets spell check function
/**
* Google Sheets spell check function
* version 1.1, 8/17/22
* caesiumtea
*/
/**
* Shows misspelled words in input cell or cells.
*
* @param {string|Array<Array<string>>} input The cell or range of cells