Skip to content

Instantly share code, notes, and snippets.

Print GitHub Markdown Bookmarklet

javascript:document.body.appendChild(document.querySelector("#readme"));document.querySelector("header").remove();document.querySelector(".application-main").remove();document.querySelector("footer").remove();window.print();

Make it into a bookmarklet. It removes everything around the markdown article and opens the print dialog.

@davidcann
davidcann / evmavericks-census.md
Last active May 2, 2022 19:30
EVMavericks Census

EVMavericks Census

May 1, 2022

This is data collected from addresses that have held EVMavericks NFTs (ManeNet DAO). The numbers are the percentage of holders that have interacted with these smart contracts.

Highlights

  • 43% have an ENS
  • 3x use Rocket Pool (19%) vs Lido (6%)
// example of result (including comment changes): http://davidcann.com/cappuccino-cpview-drag-drop/
// ****************** AppController.j *********************
@import <Foundation/CPObject.j>
@import "DCDragView.j"
@import "DCDropView.j"
@implementation AppController : CPObject {
}
/*
* DCToolbar.j
* Flllow
*
* Created by Cann on May 24, 2010.
* Copyright 2010, Cann All rights reserved.
*/
@import <Foundation/CPObject.j>
AVAudioPlayer *audioPlayer;
...
audioPlayer = [[AVAudioPlayer alloc] initWithData:[NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"DCMainCarouselMusic" ofType:@"m4a"]] error:nil];
audioPlayer.numberOfLoops = 0;
[audioPlayer prepareToPlay];
[audioPlayer play];
...
/*
* DCTextArea.j
*
* Created by David Cann on __Date__.
* Copyright 2008 __MyCompanyName__. All rights reserved.
*/
@import <Foundation/CPObject.j>
@implementation DCTextArea : CPControl {
/*
* DCLinkTextField.j
*
* Created by David Cann on __Date__.
* Copyright 2008 __MyCompanyName__. All rights reserved.
*/
@import <Foundation/CPObject.j>
@implementation DCLinkTextField : CPTextField {
/*
* DCInfoBubbleController.j
*
* Created by David Cann.
* Copyright 2008 __MyCompanyName__. All rights reserved.
*/
@import <Foundation/CPObject.j>
@import "DCLinkTextField.j"
// assumes sheet is an ivar
var mainWindow = [[[CPApplication sharedApplication] delegate] theWindow];
[[mainWindow contentView] addSubview:shadeView];
[[CPApplication sharedApplication] runModalForWindow:sheet];
[sheet setFrame:CGRectMake(
([mainWindow frame].size.width / 2) - ([sheet frame].size.width / 2),
-[sheet frame].size.height - 20,
/*
* CPPropertyAnimation.j
* AppKit
*
* Created by Nicholas Small. (extended by David Cann)
* Copyright 2008, Nicholas Small.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either