Skip to content

Instantly share code, notes, and snippets.

@ghostlevel
ghostlevel / unfav.js
Last active July 11, 2019 18:48
unfavorite
// untested
// src: https://jeffreifman.com/2018/04/12/how-to-delete-your-twitter-favorites-with-javascript/
// voir https://gist.github.com/ashander/087ee26731c7eb68abc063fd299b8ba8
var cnt=1;
var interval = setInterval(clearFavs, 1500);
function clearFavs()
{
cnt+=1;
window.scrollTo(0,document.body.scrollHeight);
@ghostlevel
ghostlevel / README.md
Created January 25, 2017 09:29 — forked from rvagg/README.md
Kindleberry "Paperwhite" Pi

Work in progress, I'll write this up properly when I'm done.

Almost all credit goes to @maxogden for putting me on to this and pointing me in the right direction for each of these items.

Prerequisites:

  • Raspberry Pi
  • Kindle Paperwhite freed from its locked down state (jailbroken) http://www.mobileread.com/forums/showthread.php?t=198446
    • You have to downgrade your Kindle to 5.3.1 to install the current jailbreak; that's just a matter of getting the old version image, putting it on your Kindle via USB and telling it to install "upgrade". Then you put in the Jailbreak files, load the ebook and break.
  • Your kindle will be quick to detect an upgrade is available so it'll want to upgrade soon afterwards but the jailbreak will last but you have to reinstall the developer certificates so it's a bit of a pain but doable. Find all the instructions on the mobileread.com forums and wiki.
float xoff = 0.0;
int val, valInc = 5;
float[] tab1;
void setup()
{
size(500,500, P2D);
noSmooth();
@ghostlevel
ghostlevel / gameofpixels.pde
Last active October 31, 2015 03:30
Pixels buffer Game of Life in #Processing, v1.0
int j=100;
color bgc = #000000; color fgc = #00ffaa;
PImage temp = createImage(j, j, ARGB);
void setup() {
loadPixels();
//some kind of random starting rule
for(int m=0;m<j*j;m++) {
if (random(100) < 12) pixels[m] = fgc;
else pixels[m] = bgc;