Skip to content

Instantly share code, notes, and snippets.

View joshvasquez's full-sized avatar

Joshua Vasquez joshvasquez

View GitHub Profile
# Traveling Minstrel
def total_song_knowers(num_villagers, attendees_lists):
song_list = []
villager_list ={}
# First, instantiate the villagers from the num_villagers
for i in range(num_villagers+1)[1:]: # index + 1
villager_list[i] = []
for song_name, nights_attendees in enumerate(attendees_lists):
@joshvasquez
joshvasquez / init.lua
Last active October 17, 2022 00:36
Simple Hammerspoon Configuration
-- for simpler binding of keys, define the modifiers ahead of time.
local hyper = {"cmd","alt","ctrl","shift"}
local meh = {"alt","ctrl","shift"}
-- grid size determines how the windows can be split into a grid
-- laid out evenly onto the desktop
-- grid margins defines spacing on x and y between windows and the menu
-- bar/monitor edges 0x0 if you want no space between windows.
-- for the case where you only ever need to move a window between three
@-webkit-keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
#sVim-command {

Meal Prep Plans

Meals should be approximately 500 calories each leaving 200 calories for a snack (1 cup almonds is ~180 calories). 1700 calories should be the limit with no exercise for weight loss. With exercise, subtract active calories. This adds approximately 350-500 calories for my walking.

South Beach Diet phases 10% carbs (50g) => 27% (135g) => 28% (140g)

Breakfast

Keybase proof

I hereby claim:

  • I am joshvasquez on github.
  • I am least (https://keybase.io/least) on keybase.
  • I have a public key ASDInSDBbsLc62BtQAt6QsklzTbYs5lzrpgEMI8NadWxdAo

To claim this, I am signing this object:

--- Day 6: Chronal Coordinates ---
The device on your wrist beeps several times, and once again you feel like you're falling.
"Situation critical," the device announces. "Destination indeterminate. Chronal interference detected. Please specify new target coordinates."
The device then produces a list of coordinates (your puzzle input). Are they places it thinks are safe or dangerous? It recommends you check manual page 729. The Elves did not give you a manual.
If they're dangerous, maybe you can minimize the danger by finding the coordinate that gives the largest distance from the other points.
loop1: for (let k = 0; k < boxID.length - 1; k++) {
for (let l = 1; l < boxID.length - 1; l++) {
newDiff = findDiff(boxID[k], boxID[l])
if (newDiff.diff === 1) {
smallestDiff = newDiff
break loop1
}
}
}
{
"items": [
{
"title": "Disrupting Education? Experimental Evidence on Technology-Aided Instruction in India",
"href": "https://www.google.com",
"collaborators": ["Abhijeet Singh", "Alejandro Ganimia"],
"publication": "American Economic Review",
"date": "(Accepted)",
"files": [
{
import React from "react"
import triangle from "../images/triangle_left.gif"
class ResearchSectionTitle extends React.Component {
constructor(props) {
super(props)
}
render() {
return (
<div className="grid_2">