Skip to content

Instantly share code, notes, and snippets.

View yoyomo's full-sized avatar

Armando J. Ortiz Garcia yoyomo

  • Gavel
  • Los Angeles
View GitHub Profile
@yoyomo
yoyomo / udemy_skip_goodbyes.js
Last active November 17, 2022 04:59
Script to skip udemy lectures to the next when they are marked as complete; to avoid having to hear a lecture's goodbye hundreds of times
let currentItem = document.querySelector('li[aria-current="true"]')
let currentInput = currentItem.querySelector('input')
const skipToTheNext = () => {
if(currentInput.checked){
currentItem = currentItem.nextSibling
currentInput = currentItem.querySelector('input')
currentItem.querySelector('div').click()
}
}
package main
import (
"fmt"
"log"
"encoding/json"
"github.com/gorilla/mux"
"github.com/subosito/gotenv"
"io/ioutil"
@yoyomo
yoyomo / force_merge_conflicts
Created July 2, 2019 08:16
Force merge conflicts
/\s^<<<<<<< HEAD((?s).*?)=======((?s).*?)>>>>>>> development$\s/g
<html>
<head>
</head>
<body>
<div>
Calculate the area of a random object and a given starting point
</div>
<div style="display: inline-block; margin: 10px;">
<div style="font-weight: 800;">Example 1:</div>
@yoyomo
yoyomo / sudoku_solver.rs
Created May 14, 2019 09:19
Sudoku Solver in Rust
use std::char;
struct Answer {
row: usize,
column: usize,
number: usize,
}
fn init_possible_answers(board: &mut Vec<Vec<char>>) -> Vec<Vec<Vec<u8>>> {
let mut possible_answers: Vec<Vec<Vec<u8>>> = vec![vec![vec![1; 9]; 9]; 9];