Skip to content

Instantly share code, notes, and snippets.

View jesse-spevack's full-sized avatar

Jesse Spevack jesse-spevack

View GitHub Profile
@jesse-spevack
jesse-spevack / removeVideosFromPlaylist.js
Created December 15, 2024 18:41
Bulk remove videos from a youtube playlist
async function removeVideosFromPlaylist(count = 25) {
console.log('%c=== Starting Playlist Video Removal Script ===', 'color: #00ff00; font-weight: bold;');
console.log(`Will attempt to remove ${count} videos`);
for (let i = 0; i < count; i++) {
console.log(`\n%c[Step ${i + 1}/${count}] Starting removal process...`, 'color: #4CAF50; font-weight: bold;');
// 1. Find menu buttons
console.log('1️⃣ Searching for menu buttons...');
const menuButtons = Array.from(document.querySelectorAll('ytd-playlist-video-renderer ytd-menu-renderer button'));
@jesse-spevack
jesse-spevack / bookshelf.gs
Created August 14, 2024 17:28
Custom scripts for querying data from Google Books and writing it to a spreadsheet
function getBookInfo(bookTitle) {
var scriptProperties = PropertiesService.getScriptProperties();
// Put your api key from google books into script properties with key "GOOGLE_BOOKS_API_KEY"
var apiKey = scriptProperties.getProperty('GOOGLE_BOOKS_API_KEY');
var url = 'https://www.googleapis.com/books/v1/volumes?country=US&q=intitle:' + encodeURIComponent(bookTitle) + '&key=' + apiKey;
var response = UrlFetchApp.fetch(url);
var json = response.getContentText();
var data = JSON.parse(json);
if (data.totalItems > 0) {
@jesse-spevack
jesse-spevack / auth.gs
Created January 18, 2024 18:58
Delete Your Tweets
const API_KEY = PropertiesService.getScriptProperties().getProperty('apiKey')
const API_SECRET = PropertiesService.getScriptProperties().getProperty('apiKeySecret')
const ACCESS_TOKEN = PropertiesService.getScriptProperties().getProperty('accessToken')
const ACCESS_TOKEN_SECRET = PropertiesService.getScriptProperties().getProperty('accessTokenSecret')
const CLIENT_ID = PropertiesService.getScriptProperties().getProperty('clientId')
const CLIENT_SECRET = PropertiesService.getScriptProperties().getProperty('clientSecret')
/**
* Authorizes and makes a request to the Twitter API v2
* OAuth 2.0 Making requests on behalf of users
<div
data-controller="multiselect"
data-multiselect-selected-items-value=[]
>
...
</div>

The Minaswan::Interview

Session Format: Talk

Abstract

White-boarding is not nice. An unpaid take home project is not nice. We decided to apply the Ruby community motto "Matz is nice and so we are nice," to our enterprise technical interview process. Come learn what changes we made, how we enlisted support of other rubyists and non-rubyists alike, and how you can too.

Details

The current state of interviewing is not nice

About Turing Shadow Day

On-Site Job Shadowing

Schedule

Time Event
12:30 Welcome and overview of the day
1:00 Pair with Engineer
3:00 Q & A with Engineering Manager
3:30 Q & A with HR
@jesse-spevack
jesse-spevack / cfp_railsconf19_panic.md
Last active January 22, 2019 19:43
I am not panicking. You're panicking.

Title

Publicly viewable title. Ideally catchy, interesting, essence of the talk. Limited to 60 characters.

I am not panicking. You're panicking.

Format

  • Regular Session
  • Workshop

Track

```javascript
import {Component} from 'react'
class Counter extends Component {
state = {
count: 0
};
render() {
import React, { Component, PropTypes } from 'react';
const TOGGLE_BUTTON_SELECTOR = "toggle-button"
const TOGGLE_LABEL_SELECTOR = "toggle-label"
const DEFAULT_LABEL_TEXT = "Label Text"
const DEFAULT_BUTTON_LEFT_TEXT = "Button Left"
const DEFAULT_BUTTON_RIGHT_TEXT = "Button Right"
class ToggleButton extends Component {
constructor(props) {

Contributing to shoulda matchers

  • Why: I use shoulda matchers.
  • What: I found a feature request at thoughtbot/shoulda-matchers#927 that sounds approachable. It asks for some clarification in the docs / code about using the enum matcher.
  • I Need: to dig into shoulda matchers and get the dev setup running locally.
  • When I'm Done: In the original GitHub issue it sounds like the developers are in favor of the feature, so I think I can get this accepted for the next version of the library.

Contributing to factory girl

  • Why: I use factory girl.