Skip to content

Instantly share code, notes, and snippets.

@anthillsocial
anthillsocial / index.html
Created March 18, 2024 16:08
p5.js Physics Engine Example
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.2/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.2/addons/p5.dom.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.2/addons/p5.sound.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<meta charset="utf-8" />
</head>
@anthillsocial
anthillsocial / ClassForbottle.py
Last active December 26, 2015 05:29
Class to run the bottle.py web server easily within python scripts
import os
from bottle import Bottle, static_file, route, template
class BottleServer:
def __init__(self, host, port):
self._host = host
self._port = port
self._killoldports()
self._app = Bottle()
self._route()

thomas-mcdonald/bootstrap-sass

@anthillsocial
anthillsocial / 0_reuse_code.js
Created October 2, 2013 10:29
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@anthillsocial
anthillsocial / Arch Linux Ngnix|PHP Server.md
Last active May 18, 2021 17:34
Setting up an Arch linux server on the Raspberry Pi. The sever uses a combination of Nginx and php

Burn the SD card

  1. Check the downloaded img is ok by comparing checksum: $ sha1sum archlinux-hf-2013-07-22.img.zip
  2. Burn the image to a new SD card: $ cd Downloads $ sudo umount /dev/mmcblk0* $ sudo dcfldd bs=4M if=archlinux-hf-2013-07-22.img of=/dev/mmcblk0
  3. Plug your Rpi into an ethernet network.
  4. Find its IP address with: $ sudo nmap -sP 192.168.1.0/24