Skip to content

Instantly share code, notes, and snippets.

View SheepTester's full-sized avatar
🐑
Existing

Sean SheepTester

🐑
Existing
View GitHub Profile
@SheepTester
SheepTester / render-gui.jsx
Last active April 11, 2024 11:47
To load a project file from a URL for a Scratch 3.0 mod (see comments)
import React from 'react';
import ReactDOM from 'react-dom';
import {compose} from 'redux';
import AppStateHOC from '../lib/app-state-hoc.jsx';
import GUI from '../containers/gui.jsx';
import HashParserHOC from '../lib/hash-parser-hoc.jsx';
import log from '../lib/log.js';
const onClickLogo = () => {
@SheepTester
SheepTester / explainer.md
Created May 4, 2020 19:35
Change speed of Edpuzzle video

Edpuzzle aggressively reverts the playbackRate of a <video> element, so you can't simply change it to increase the speed. Thus, a more aggressive response is necessary to combat it.

Firstly, we get the <video> element:

video = document.querySelector('video')

Then, we get the setter function for the playbackRate property using Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype, 'playbackRate').set. It is called with the <video> element as this and with speed as the new value. This way, the <video> element is properly notified of the speed change by simulating assigning a value to playBackRate directly (ie using =).

@SheepTester
SheepTester / fa23-available.md
Last active September 5, 2023 19:44
Available courses in FA23

FA23 available courses

Enrollable sections with available seats. Updated 2023-09-05.

Lower division (0xx)

  • ANTH 87: A00 (14/20) · B00 (8/20)
  • AWP 3: 019 (11/12) · 030 (9/12) · 031 (10/12) · 032 (10/12) · 035 (4/12) · 036 (10/12) · 037 (1/12) · 043 (0/12) · 044 (9/12) · 046 (11/12) · 047 (11/12) · 048 (10/12) · 049 (2/12) · 050 (5/12) · 053 (8/12) · 054 (4/12) · 055 (1/12) · 056 (5/12) · 058 (7/12) · 059 (5/12) · 060 (3/12) · 061 (5/12) · 062 (6/12) · 063 (3/12) · 065 (7/12) · 066 (0/12) · 067 (6/12) · 069 (6/12) · 072 (0/12) · 073 (4/12) · 075 (5/12) · 076 (9/12) · 077 (8/12) · 078 (1/12) · 079 (4/12) · 081 (10/12) · 082 (5/12) · 083 (6/12) · 084 (3/12)
  • BENG 2: A00 (22/30)
  • BILD 2: A01 (62/65) · A02 (64/65) · A03 (49/65) · B01 (40/65) · B02 (58/65) · B03 (61/65) · C01 (44/70) · C02 (19/70) · C03 (2/70)
@SheepTester
SheepTester / powell.md
Last active July 5, 2023 02:32
A selection of wisdom of Thomas A. Powell, from the CSE 110 SP23 Slack

Apr 4th 8:32 PM, explaining the purpose of #random.

I have to replenish my supply also there is method. Humor is required if one is going to deal with insanity. You must have a deep ability to deal with things that will make zero sense. Key life skill in a world that thinks they can dry the equivalent of software concrete in 1 day or something. IRL that is ludicrous, but you will actually need to figure out how to circumvent and address magical thinking. Humor is tactic, teaching will be a tactic, a rigid system will be a tactic, etc. also who doesn’t want to have a little fun here and there 🙂

Apr 4th 9:53 PM, after someone asked for clarification on whether the GitHub-generated README.md file was considered a "new file."

Ah cool good detail thinking, but let’s hope to be sticklers but not “literalists”. Asking question is awesome, but always look for intent. The folks in industry will often be very handwavy and these labs are way too cook book prescriptive in my opinion, b

@SheepTester
SheepTester / summer.md
Last active June 18, 2023 23:29
UCSD remote summer classes 2023

S123: Summer Session I 2023

  • ANAR 144: A00
  • ANSC 148: A00
  • ANSC 150: A00
  • ANTH 1: A00
  • ANTH 2: A01
  • ANTH 23: A01
  • ANTH 101: A01
  • ANTH 105: A00
@SheepTester
SheepTester / README.md
Last active May 18, 2023 21:53
CSE 110 Content Map (craft.do is annoying)

CSE 110 Content Map

This document serves as a table of contents and map to UC San Diego’s CSE 110 - Software Engineering as taught by Thomas Powell for Spring 2023. Offerings by other instructors may vary in emphasis and content so use this material with extreme caution if somehow you have gained access to it outside the course.

This is a work in progress. I'll change this update statement when I make a major change

Week 1 - Introduction and Definitions


Summary Notes: https://www.craft.do/s/BEtiGoivUaqXO5
Backup and Detail Slides: https://cse110-spring2023.slack.com/files/U04UPM79ZBK/F051EGK394P/1_-_se_introduction-23.pdf

Week 2 - Growing Individual Software EngineersSummary Notes:

@SheepTester
SheepTester / rimac_activity_data.csv
Last active March 13, 2023 17:08
RIMAC activity data, collected by Etienne
We can't make this file beautiful and searchable because it's too large.
datetime,busyness,capacity,hourSummary,isAvailable,isOpen,people,percentage
2023-01-10 16:05,99,125,open,true,true,178,0.99
2023-01-10 16:10,99,125,open,true,true,172,0.99
2023-01-10 16:15,99,125,open,true,true,166,0.99
2023-01-10 16:20,99,125,open,true,true,174,0.99
2023-01-10 16:25,99,125,open,true,true,184,0.99
2023-01-10 16:30,99,125,open,true,true,175,0.99
2023-01-10 16:35,99,125,open,true,true,185,0.99
2023-01-10 16:40,99,125,open,true,true,186,0.99
2023-01-10 16:45,99,125,open,true,true,178,0.99
@SheepTester
SheepTester / underground-schoology.user.js
Last active December 22, 2022 00:24
Underground Schoology userscript
// ==UserScript==
// @name Underground Schoology
// @namespace https://orbiit.github.io/
// @version pre-1.1.15
// @description A second social media on top of Schoology
// @author Anti-SELF revolutionaries
// @match https://pausd.schoology.com/home
// @grant none
// ==/UserScript==
@SheepTester
SheepTester / build.yml
Created July 30, 2022 05:09
GitHub workflow for building Carbon with GitHub Actions
name: Build Carbon
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
@SheepTester
SheepTester / graph_tab_template.html
Created November 14, 2022 23:48
Graph tab on chrome://discards
<!--
Copyright 2018 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
This document is loaded into a <webview> from the graph_tab element as a data:
URL. As result, this document needs to be self-contained, hence inline scripts.
-->
<html>
<head>