Skip to content

Instantly share code, notes, and snippets.

View remainstheday's full-sized avatar
💻
Working from home

remainstheday remainstheday

💻
Working from home
View GitHub Profile
import {
faSquare,
faThLarge,
faUserFriends,
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { DisplayContext, LiveKitRoom } from "@livekit/react-components";
import { RoomEvent, setLogLevel, VideoPresets } from "livekit-client";
import { useState } from "react";
import "react-aspect-ratio/aspect-ratio.css";
@remainstheday
remainstheday / keybindings.json
Created August 31, 2022 02:01
vscode keybindings
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "cmd+0",
"command": "-workbench.action.focusSideBar"
},
{
"key": "cmd+0",
"command": "workbench.action.terminal.toggleTerminal"
},
@remainstheday
remainstheday / settings.json
Created August 31, 2022 01:47
Visual Studio Code settings that don't suck
{
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"workbench.colorCustomizations": {
"statusBar.background": "#303035",
This file has been truncated, but you can view the full file.
[
{
"gun_time": 8560,
"chip_time": 8557,
"bib": 2,
"name": "Colby-Wayne Mehmen",
"city": "Princeton",
"state": "TX",
"division": "Marathon Overall",
"class_position": "1",
function timeConvert(n) {
var num = n;
var hours = (num / 60);
var rhours = Math.floor(hours);
var minutes = (hours - rhours) * 60;
var rminutes = Math.round(minutes);
return num + " minutes = " + rhours + " hour(s) and " + rminutes + " minute(s).";
}
console.log(timeConvert(200));
/*
# A bracket is considered to be any one of the following characters: ( ) { } [ or ].
# Two brackets are a matched pair if the an opening bracket i.e. ( [ or { occurs to the left of a closing bracket i.e. ) ] or } of the same type. There are three types of matched pairs of brackets: [], {}, and ().
#
# A matching pair of brackets is not balanced if the set of brackets it encloses are not matched. For example, {[(])} is not balanced because the contents in between { and } are not balanced. The pair of square brackets encloses a single, unbalanced opening bracket, (, and the pair of parentheses encloses a single, unbalanced closing square bracket, ].
#
# By this logic, we say a sequence of brackets is balanced if the following conditions are met:
#
# It contains no unmatched brackets.
# The subset of brackets enclosed within the confines of a matched pair of brackets is also a matched pair of brackets.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@remainstheday
remainstheday / marathon.json
Last active April 1, 2019 14:14
2018 memphis marathon results
[{"place":1,"name":"Garang Madut","age":23,"sex_place":1,"sex":"M","rank":1,"time_10k":2076,"rank_10k":1,"time_15k":3128,"rank_15k":1,"halfway":4632,"halfway_rank":"1","time_35k":7341,"rank_35k":"2","time_25m":8513,"time":8941,"pace":342,"city":"Lebanon","state":"TN","clock_time":8944,"bib_number":3,"link":"http://www.youtube.com/watch?v=PqGo2jYWp-M&t=8s"},{"place":2,"name":"Jake Burch","age":24,"sex_place":2,"sex":"M","rank":2,"time_10k":2210,"rank_10k":2,"time_15k":3317,"rank_15k":2,"halfway":4939,"halfway_rank":"2","time_35k":7919,"rank_35k":"3","time_25m":9182,"time":9643,"pace":369,"city":"Springfield","state":"MO","clock_time":9645,"bib_number":8,"link":"http://www.youtube.com/watch?v=PqGo2jYWp-M&t=710s"},{"place":3,"name":"Xaviour Walker","age":37,"sex_place":3,"sex":"M","rank":7,"time_10k":2375,"rank_10k":6,"time_15k":3538,"rank_15k":3,"halfway":5195,"halfway_rank":"3","time_35k":8120,"rank_35k":"4","time_25m":9330,"time":9745,"pace":372,"city":"Irvine","state":"CA","clock_time":9750,"bib_number":1848
@remainstheday
remainstheday / .zshrc
Last active December 4, 2018 01:54
latest version of my zsh terminal configs
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/kennedyt/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@remainstheday
remainstheday / .hyper.js
Last active December 4, 2018 01:53
latest version of my personal Hyper Terminal configs
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',