Skip to content

Instantly share code, notes, and snippets.

@jjclark1982
jjclark1982 / PLDB-viz.ipynb
Created May 29, 2024 15:32
PLDB visualization
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jjclark1982
jjclark1982 / hat-monotile-grid.svg
Created March 25, 2023 18:43
SVG files for laser-cutting the "hat" aperiodic monotile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/sh -euo pipefail
for pbpfile in *.PBP; do
echo "Hiding $pbpfile"
mv "$pbpfile" ".$pbpfile" || echo "(No files to hide)"
done
find . -name "*.PBP" -print0 | while read -d $'\0' pbpfile
do
echo "\nProcessing $pbpfile"
%YAML 1.1
# ROS distribution file
# see REP 143: http://ros.org/reps/rep-0143.html
---
release_platforms:
ubuntu:
- xenial
repositories:
magic_msgs:
release:
@jjclark1982
jjclark1982 / domains.txt
Last active March 27, 2019 07:57
domain block list
www.advnet.xyz
www.allanalpass.com
s.anysex.com
www.fapoff.com
www.harmonyvisioncams.com
www.lethalpass.com
img.mediad2.jp
mvlcwazi.bid
mwenzdgzgez.bid
www.picbucks.com
@jjclark1982
jjclark1982 / index.html
Last active September 18, 2017 07:15
simple web server
$def with (name)
<head>
<title>Home Page</title>
<style>
body {
background: url(http://placekitten.com.s3.amazonaws.com/homepage-samples/408/287.jpg);
color: cyan;
}
fieldset {
FROM debian:latest
RUN apt-get update && apt-get install -y curl
# usability
RUN echo 'alias ls="ls --color=auto"' >> /root/.bashrc; \
echo 'stty erase ^?' >> /root/.bashrc;
# RUN echo '"\e[A": history-search-backward' >> /root/.inputrc; \
# echo '"\e[B": history-search-forward' >> /root/.inputrc; \
# echo 'set show-all-if-ambiguous on' >> /root/.inputrc; \
@jjclark1982
jjclark1982 / App.js
Last active November 2, 2016 07:06
React Todo List Example
import React from 'react';
import 'todomvc-app-css/index.css';
import './App.css';
import TodoItem from './TodoItem.jsx';
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
showing: "all"