Skip to content

Instantly share code, notes, and snippets.

Downloading Photos and Videos from a LeapPad2 onto a Raspberry Pi

The Problem

In some dark corner of the house, I found an old LeapPad2 that hadn't been used for years. Before sending it to Goodwill, I wanted to wipe any data off of it, but before I could get to that, I found a number of old photos on the it. The OEM software (LeapFrog Connect) would download some of them, but not all of them. Do we have any other options for saving these crude, blurry, sentimental photos and videos?!

Disclaimers

I am not an expert in USB devices, nor embedded Linux, nor even Linux. This worked for me, and I'm writing it up in case it works for someone else, but if you try it and run into a problem, there is functionally no chance that I will be able to help you. Please proceed at your own caution.

@ssinss
ssinss / EndlessRecyclerOnScrollListener.java
Last active January 19, 2024 08:52
Endless RecyclerView OnScrollListener
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
public abstract class EndlessRecyclerOnScrollListener extends RecyclerView.OnScrollListener {
public static String TAG = EndlessRecyclerOnScrollListener.class.getSimpleName();
private int previousTotal = 0; // The total number of items in the dataset after the last load
private boolean loading = true; // True if we are still waiting for the last set of data to load.
private int visibleThreshold = 5; // The minimum amount of items to have below your current scroll position before loading more.
int firstVisibleItem, visibleItemCount, totalItemCount;
@tjhanley
tjhanley / adaptive_image.js
Last active August 29, 2015 14:09
Emerson Trait for lazy loading the correct images based on media query. Follows the same image list pattern as Foundation's Interchange
/**
* Combines some functionality of Foundation.interchange & custom Lazy Loading
*
* dependencies:
* Foundation
* jquery.viewport
*
* references:
* http://foundation.zurb.com/docs/components/interchange.html
* http://foundation.zurb.com/docs/javascript-utilities.html#media-queries
@grantland
grantland / post.md
Last active February 9, 2023 05:09
RecyclerView item onClick

RecyclerView item onClick

RecyclerView does not have an OnItemClickListener like it's predecessor, ListView. However, detecting item clicks is pretty simple.

Set an OnClickListener in your ViewHolder creation:

private class MyAdapter extends RecyclerView.Adapter<MyAdapter.ViewHolder>  {

    public static class ViewHolder extends RecyclerView.ViewHolder
@sandro
sandro / threaded_httparty.rb
Created August 27, 2011 01:34
Parallel HTTParty requests using threads
require 'rubygems'
require 'httparty'
require 'benchmark'
require 'thread'
class Google
include HTTParty
base_uri 'http://google.com'
def self.benchmark