Skip to content

Instantly share code, notes, and snippets.

View jeffgabhart's full-sized avatar

Jeff Gabhart jeffgabhart

View GitHub Profile
@tasercake
tasercake / pyenv_macos_virtualenv.md
Last active April 24, 2025 01:16
Setting up pyenv virtualenvs on a Mac (with Homebrew)

Install Pyenv & Pyenv-virtualenv

Install Python build dependencies

xcode-select --install
brew install openssl readline sqlite3 xz zlib

Install using Homebrew

@bryant988
bryant988 / zillow.js
Last active April 29, 2025 19:51
Zillow Image Downloader
/**
* NOTE: this specifically works if the house is for sale since it renders differently.
* This will download the highest resolution available per image.
*/
/**
* STEP 1: Make sure to *SCROLL* through all images so they appear on DOM.
* No need to click any images.
@kentcdodds
kentcdodds / get-watchers.js
Last active December 4, 2023 22:34
Get Watchers of element and its children
function getWatchers(root) {
root = angular.element(root || document.documentElement);
var watcherCount = 0;
function getElemWatchers(element) {
var isolateWatchers = getWatchersFromScope(element.data().$isolateScope);
var scopeWatchers = getWatchersFromScope(element.data().$scope);
var watchers = scopeWatchers.concat(isolateWatchers);
angular.forEach(element.children(), function (childElement) {
watchers = watchers.concat(getElemWatchers(angular.element(childElement)));
@pikhovkin
pikhovkin / weasyprint_complex_headers.py
Last active October 8, 2024 04:49
Repeat on each page of complex headers (eg, tables) except the first page
# coding: utf-8
from weasyprint import HTML, CSS
def get_page_body(boxes):
for box in boxes:
if box.element_tag == 'body':
return box
@assaframan
assaframan / gist:3079570
Created July 9, 2012 22:54
Get Facebook Friends From ServiceStack Session
public class Friend
{
public String Id { get; set; }
public String Name { get; set; }
};
private class Paging
{
public String next { get; set; }