Skip to content

Instantly share code, notes, and snippets.

View theuiguru's full-sized avatar
💻

Chris Thomas theuiguru

💻
View GitHub Profile
@theuiguru
theuiguru / git-cheat-sheet.md
Created January 24, 2025 20:43 — forked from bradtraversy/git-cheat-sheet.md
Cheat Sheet for Git Crash Course

Git & GitHub Crash Course 2025 Cheat Sheet

What is Git?

Git is a distributed version control system that allows developers to:

  • Track changes in code.
  • Collaborate on projects.
  • Manage multiple versions of a project.
  • Work offline with a full local repository.
State Senate House Total Senate Democrats Senate GOP Senate Independent House Democrats House GOP House Independent Democrats GOP Result
Alabama 2 7 9 2 1 6 1 8 Republicans
Alaska 2 1 3 2 1 1 2 Republicans
Arizona 2 9 11 1 1 3 6 4 6 Republicans
Arkansas 2 4 6 2 4 0 6 Republicans
California 2 52 54 2 40 12 42 12 Democrats
Colorado 2 8 10 2 5 3 7 3 Democrats
Connecticut 2 5 7 2 5 7 0 Democrats
Delaware 2 1 3 2 1 3 0 Democrats
Florida 2 28 30 2 8 20 8 22 Republicans
@theuiguru
theuiguru / SolarEclipse.md
Created April 7, 2024 23:08
DIY Solar Eclipses Glasses

First off, do not look directly into the sun. Put sunglasses on if you don't have the proper eyewear. Supplies

  1. Pen
  2. Paper
  3. Cereal box
  4. Aluminum foil
  5. Scissors
  6. Transparent tape

How to make an eclipse viewer yourself:

@theuiguru
theuiguru / main.dart
Last active March 7, 2024 03:30
Tic Tac Toe in Flutter
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
//const MyApp({super.key});
@override

JavaScript Patterns

  • Characters Only: [A-Za-z]+
  • Char + Num: [A-Za-z0-9]+
  • Email: [a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,3}$
  • Number Only: [0-9]+
{
"meta": {
"theme": "stackoverflow"
},
"basics": {
"name": "Chris Thomas",
"label": "Software Engineer",
"image": "https://media.licdn.com/dms/image/C4D03AQEhAGToYXguBA/profile-displayphoto-shrink_800_800/0/1642436379248?e=2147483647&v=beta&t=8du8y5b47NJUkTzxeGRIg8S9cv86ve90MZUPvmSPnuA",
"summary": "An innovative and passionate software engineer and an excellent team player living in New York (am always willing to relocate/remote) with 10+ years of knowledge and experience within the healthcare and financial industries analyzing large quantitative data sets, and developing web and mobile applications using modern web technologies to deliver the best user experiences across any platform.",
"website": "https://tiny.cc/cthomas",
from requests_html import HTMLSession
s = HTMLSession()
query = 'hauppauge, ny'
url = f'https://www.google.com/search?q=weather+{query}'
r= s.get(url, headers={'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36'})
temp = r.html.find('span#wob_tm', first=True).text
unit = r.html.find('div.vk_bk.wob-unit span.wob_t', first=True).text
desc = r.html.find('div.VQF4g', first=True).find('span#wob_dc', first=True).text
print(query, temp, unit, desc)
@theuiguru
theuiguru / jekyll.md
Last active September 17, 2021 16:18
New Jekyll Project Instructions for mac m1

ruby -v

rbenv install 3.0.1

eval "$(rbenv init -)"

rbenv global 3.0.1

cd into directory

@theuiguru
theuiguru / video.html
Last active May 29, 2021 16:59
html5 video
<video id="vid" autoplay></video>
<script>
navigator.mediaDevices.getUserMedia({
video: {
width: {
min: 640,
ideal: 1280,
max: 1280
},
height: {
@theuiguru
theuiguru / basics.R
Created September 19, 2018 17:35
R Programming Tutorials
## VARIABLES
# chris <- tuna <- 20
# chris
# tuna
# assign("ham", 71)
# ham
# rm(ham)
# ham
## DATA TYPES