Skip to content

Instantly share code, notes, and snippets.

@notionparallax
notionparallax / nyan_cat.py
Created March 20, 2017 02:34
Prints a nyan cat, in colour, and satisfies the flake 8 linter!
# -*- coding: UTF-8 -*-
from colorama import Fore
from colorama import Style
def nyan_cat():
cattern = [
['{BRIGHT_BLUE}', '{x}'*80],
['{BRIGHT_BLUE}', '{x}'*80],
['{RED}', '{x}'*18, '{BRIGHT_BLUE}', '{x}'*16, '{BLACK}',

This comment has turned out to be rather long. I'd be really interested to hear what other people thought about A City Is Not a Computer. Especially you Mel!

I thought that this was a good article. It's well written and well researched. The middle section that covers the history of cities' evolution is great.

However, and there always has to be a however it seems, there were a few things that grated on me.

The argument part---rather than the history part---hinges on this assertion:

Urban intelligence is more than information processing.

@notionparallax
notionparallax / setYourselfBeforeYouWreckYourself.sh
Last active February 1, 2017 20:47
An attempt to make changing configuration of a virtual machine easy.
#!/bin/bash
clear
toilet " CODE1161 " --metal --font future
echo ""
toilet "Let's get started!" --metal --font future
echo ""
echo "We need to make this computer be YOURS"
echo "We need a name for you and your computer, make it short or it'll take up a lot of space."
echo "My computer is called um and my name is ben, so I get ben@um:~$ as my command prompt."
echo ""
@notionparallax
notionparallax / dump-eeprom.txt
Last active January 22, 2017 21:43
The results from various dumps from my keyboard.
00000000: edfe 0000 0000 00ff 0123 0020 ffff ffff .........#. ....
00000010: 92c4 2ca1 03d0 0000 0000 0000 0000 0000 ..,.............
00000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000050: 0000 2914 1a08 1517 1c18 0c12 132a 2b04 ..)..........*+.
00000060: 1607 090a 0b0d 0e0f 0028 e100 1d1b 0619 .........(......
00000070: 0511 1038 52e5 e0e3 e200 2cc0 0000 0050 ...8R.....,....P
00000080: 514f 351e 1f20 2122 2324 2526 2701 393a QO5.. !"#$%&'.9:
00000090: 3b3c 494a 4b2f 302e 002d 0100 3d3e 3f4c ;<IJK/0..-..=>?L
cd
git clone https://github.com/atom/atom.git
sudo apt-get -y install build-essential git libgnome-keyring-dev fakeroot rpm libx11-dev libxkbfile-dev
sudo npm install -g node-gyp
cd atom
script/build --install
cd ..
cd /media/sf_projects/git/programming---a-new-hope

I've just got my first mechanical keyboard. I want to set it up so that it has the same layout as my android keyboard, the theory being that it's probably easier to learn, even if it does seem a bit odd.

I've been using keyboard-layout-editor.com to fiddle with the planned layout, here but then when it comes to actually programming the keyboard it looks pretty manual.

I started a quick stab at something to help speed it up, but I wondered if I was reinventing the wheel. Has anyone already been down this road?

I've jsut got my first mechanical keyboard. I want to set it up so that it has the same layout as my android keyboard, the theory being that it's probably easier to learn, even if it does seem a bit odd.

I've been using keyboard-layout-editor.com to fiddle with the planned layout, here but then when it comes to actually programming the keyboard it looks pretty manual.

I started a quick stab at something to help speed it up, but I wondered if I was reinventing the wheel. Has anyone already been down this road?

;;
;; Domain: notionparallax.co.uk
;; Exported: 2016-11-04 05:28:50
;;
;; This file is intended for use for informational and archival
;; purposes ONLY and MUST be edited before use on a production
;; DNS server. In particular, you must:
;; -- update the SOA record with the correct authoritative name server
;; -- update the SOA record with the contact e-mail address information
;; -- update the NS record(s) with the authoritative name servers for this domain.
<!doctype html>
<html lang=en>
<head>
<meta charset=utf-8>
<title>Training data stickers</title>
</head>
<body>
<style>
text{
font-size:57.83px;
var zlib = require("zlib");
var rawParser = bodyParser.raw({type: '*/*'});
app.post('/zipped', rawParser, function(req, res) {
// console.log('here we go');
// console.log('body', req.body);
// console.log('body', req.headers);
// console.log('body type', typeof req.body);
// console.log('req body len', req.body.length);