Skip to content

Instantly share code, notes, and snippets.

View lovettbarron's full-sized avatar
🕶️
at night

Andrew Lovett-Barron lovettbarron

🕶️
at night
View GitHub Profile
@henfiber
henfiber / KB-Buying-guide-EU.md
Last active March 9, 2025 14:07
Buying keyboards and keyboard components from EU

Europe

  • SkinFlint : Price comparison site which has some nice filtering options per switch type etc. Searches for offers in UK, Germany, Poland and Austria
  • mykeyboard.eu : Keyboards, keycaps and accessories. Based in Belgium.
  • candykeys.com : European Store selling Vortex, Leopold, KBP, Anne Pro keyboards, keycap sets and components (ISO + ANSI). Based in Germany, ships to EU.
  • falba.tech : custom wooden bamboo cases, and some acrylic and carbon ones. Switch packs (65 browns at 48EUR). Other parts for the GH60, Atreus, ErgoDox. Also Microcontrollers, diodes, leds etc.
  • 42keebs.eu - Mostly PCBs, tools and accessories. Located in Czech Republic.
  • KEYGEM : Switches, Keycaps, lubes, cables, DIY kits and deskmats. Based in Germany, ships to the EU and worldwide.
  • [Eloquent Clicks - Custom Mechanical Keyboard Store](https://www.eloquen
@twolfson
twolfson / README.md
Last active February 25, 2019 13:41
Terms of use and privacy policy evaluation
@jkubecki
jkubecki / ExportKindle.js
Last active February 17, 2025 10:40
Amazon Kindle Export
// The following data should be run in the console while viewing the page https://read.amazon.com/
// It will export a CSV file called "download" which can (and should) be renamed with a .csv extension
var db = openDatabase('K4W', '3', 'thedatabase', 1024 * 1024);
getAmazonCsv = function() {
// Set header for CSV export line - change this if you change the fields used
var csvData = "ASIN,Title,Authors,PurchaseDate\n";
db.transaction(function(tx) {
# 10_basic.py
# 15_make_soup.py
# 20_search.py
# 25_navigation.py
# 30_edit.py
# 40_encoding.py
# 50_parse_only_part.py
@kylemcdonald
kylemcdonald / 0_RectilinearEmbeddingSort.h
Last active December 4, 2015 06:52
Work in progress, exploring grid embedding of point clouds with Quasimondo.
#include "ofMain.h"
#include <algorithm>
template <class T>
vector<T> zip(const vector<T>& x) {
vector<T> results;
int n = x.size();
int mid = n / 2;
for(int i = 0; i < mid; i++) {
results.push_back(x[i]);

Automating reading list management

What I'm using:

zotero Zotero: In browser integration mean that its a single click to save citation information (and a full-text PDF if available)

...but I'm using trello Trello to stay on top of tasks, and my "to-read" list needs to have a presence in my "to-do" list, as Trello gives a better single view of my work than zotero.

What I'd like:

Cards for new "to-read" articles in Trello, automatically - without cut + paste.

@dovy
dovy / Sendy.md
Last active January 12, 2022 19:50 — forked from danielepolencic/Sendy.md

Sendy

Sendy is a self hosted email newsletter application that lets you send trackable emails via Amazon Simple Email Service (SES).

Heroku

You can deploy Sendy on Heroku using the following instructions (I assume you've already installed the heroku toolbelt).

  1. On Heroku, create a new app.
  2. Clone that app to your desktop

Here are some pointers on what to look for on a used bike purchase. Take a clipboard with you when viewing the bike, and look for the following items:

ENGINE Check the oil prior to starting, is it clean? Or at least filled to the correct level? Check the coolant (if applicable) is it filled properly? Check the air filter as well if possible. After all the checks, start the motor...does it start and run smooth? Any visible smoke coming out of the pipe(s)? Does the throttle rev smoothly? Any odd noises coming from the engine, like valve ticking or coughs, spits, sputters, or rattles? Does the clutch engage easily and does the shifter click naturally as you go into gear? (many bikes have a side stand safety feature that prevents the motor from going into gear while parked, raise the side stand before doing this...and then put it down while it's in gear/clutch in to see if the feature works). Check for oil leaks around the motor, any trails of dust/dirt build-up at any of the engine seams?

TIRES Are they new?

@Kartones
Kartones / postgres-cheatsheet.md
Last active March 14, 2025 09:32
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@raddeus
raddeus / app.js
Last active February 4, 2025 09:42
Basic Express 4.0 Setup with connect-flash
var express = require('express');
var session = require('express-session');
var cookieParser = require('cookie-parser');
var flash = require('connect-flash');
var app = express();
app.use(cookieParser('secret'));
app.use(session({cookie: { maxAge: 60000 }}));
app.use(flash());