Skip to content

Instantly share code, notes, and snippets.

View frankbi's full-sized avatar

Frank Bi frankbi

View GitHub Profile
dannguyen /
Last active February 15, 2023 15:59
Using Selenium and Python to screenshot a javascript-heavy page

Using Selenium and Python to screenshot a javascript-heavy page

As websites become more JavaScript heavy, it's harder to automate things like screenshotting for archival purposes. I've seen examples and suggestions to use PhantomJS for visual testing/archiving of websites, but have run into issues such as the non-rendering of webfonts. I've never tried out Selenium until today...and while I'm not thinking about performance implications yet, Selenium seems far more accurate than PhantomJS...which makes sense since it actually opens a real browser. And it's not too hard to script to do complex interactions: here's an [example of how to log in to Twitter, write a tweet, upload an image, and send a tweet via Selenium and DOM element selection](

rtt /
Last active December 4, 2023 02:05
Tinder API Documentation

Tinder API documentation

Note: this was written in April/May 2014 and the API may has definitely changed since. I have nothing to do with Tinder, nor its API, and I do not offer any support for anything you may build on top of this. Proceed with caution

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> (horribly quick and dirty, you've been warned!)

View patch-edid.rb
# Create display override file to force Mac OS X to use RGB mode for Display
# see
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
phoebebright / index.html
Created July 6, 2012 16:34
d3 axis label prettified and using extent
View index.html
<title>D3 Axis Example</title>
<script src=""></script>
<style type="text/css">
.axis path,
.axis line {
fill: none;
mbostock / .block
Last active August 5, 2023 12:53
Margin Convention
View .block
license: gpl-3.0
paulmillr /
Last active November 18, 2023 07:59
Most active GitHub users (by contributions).

Most active GitHub users (

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at from Wed, 21 Sep 2022 till Thu, 21 Sep 2023.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

 .filter(user =&gt; user.followers &gt; 1000)
# -*- coding: utf-8 -*-
Example Usage
>>> import datetime
>>> start =, 6, 21)
>>> g1 = daterange(start)