I wrote this script to wrest some control over the content I see from the Twitter algorithm.
It mutes everyone I follow and un-mutes 30 random people.
You can run it as a scheduled Firebase Cloud Function so you have a new feed every day.
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"unsafe" | |
"modernc.org/libc" | |
"modernc.org/libc/sys/types" |
-- subscribers | |
DROP TABLE IF EXISTS subscribers; | |
CREATE TABLE subscribers ( | |
id INTEGER PRIMARY KEY, | |
uuid TEXT NOT NULL UNIQUE, | |
email TEXT NOT NULL UNIQUE, | |
name TEXT NOT NULL, | |
attribs TEXT NOT NULL DEFAULT '{}' CHECK (json(attribs) IS NOT NULL), | |
status TEXT NOT NULL DEFAULT 'enabled' CHECK (status IN ('enabled', 'disabled', 'blocklisted')), | |
campaigns TEXT CHECK (json_array_length(campaigns) > 0), |
I wrote this script to wrest some control over the content I see from the Twitter algorithm.
It mutes everyone I follow and un-mutes 30 random people.
You can run it as a scheduled Firebase Cloud Function so you have a new feed every day.
This September I decided to share my laser printer so anyone on the internet could send me printed messages.
Within a few days I got hundreds of fun print-outs from people all over the world.
Using Google Cloud Print, you can easily make your printer public too. Here's how to do it:
1994-12-30 http://IJL.COM
1994-12-30 http://HEB.COM
1994-12-30 http://HDRINC.COM
1994-12-30 http://GRAPHIC.COM
1994-12-30 http://GHI.COM
1994-12-30 http://GCR1.COM
1994-12-30 http://FORENSICDOC.COM
1994-12-30 http://EURAIL.COM
1994-12-30 http://ENI.COM
1994-12-30 http://EMSQUARE.COM
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import html | |
import random | |
import requests | |
import sys | |
def get_abstract(abstract_id): |
// package main provides a random daily schedule generator | |
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"strings" | |
"time" | |
) |
// Support Classes | |
class Vec3f { | |
float x, y, z; | |
Vec3f(float x, float y, float z) { | |
this.x = x; | |
this.y = y; | |
this.z = z; | |
} | |
void scale(float scale) { | |
this.x *= scale; |
#include "cinder/app/AppBasic.h" | |
#include "cinder/gl/gl.h" | |
#include "cinder/Rand.h" | |
using namespace ci; | |
using namespace ci::app; | |
using namespace std; | |
const Vec3f DrawingOffset = Vec3f(50, 50, 0); | |
const Vec2f DrawingDimensions = Vec2f(12, 23); |
# Sketchup & Ruby | |
# | |
# Pittsburgh.rb Presentation | |
# 7/1/10 | |
# Draw rectangle | |
model = Sketchup.active_model | |
entities = model.entities | |
model.selection.add entities.to_a.last |